Loading...
Loading...
Compare original and translation side by side
cmux-workspace/tmpcmux-workspace/tmpBRANCH="$(git -C <worktree-or-repo> branch --show-current 2>/dev/null || echo task)"
ASSET_ROOT="/cmux-assets/${BRANCH:-task}/<artifact-slug>"
mkdir -p "$ASSET_ROOT"/cmux-assetscmux-assets/<branch>/<artifact-slug>/tmpBRANCH="$(git -C <worktree-or-repo> branch --show-current 2>/dev/null || echo task)"
ASSET_ROOT="/cmux-assets/${BRANCH:-task}/<artifact-slug>"
mkdir -p "$ASSET_ROOT"/cmux-assetscmux-assets/<branch>/<artifact-slug>/tmprun-transcript.mdserver.logfailure.logscreenshot.pngindex.htmlrun-transcript.mdserver.logfailure.logscreenshot.pngindex.htmlindex.htmlindex.htmlindex.htmlfile://cmux opencmux openindex.htmlFILE_URL="$(node -e 'const {pathToFileURL}=require("url"); console.log(pathToFileURL(process.argv[1]).href)' "$ASSET_ROOT/index.html")"
cmux browser --surface surface:<existing-artifact-browser> goto "$FILE_URL" --snapshot-after
cmux browser --surface surface:<existing-artifact-browser> reload --snapshot-afterindex.htmlFILE_URL="$(node -e 'const {pathToFileURL}=require("url"); console.log(pathToFileURL(process.argv[1]).href)' "$ASSET_ROOT/index.html")"
cmux new-surface --workspace "${CMUX_WORKSPACE_ID:-}" \
--pane pane:<right-helper> \
--type browser \
--url "$FILE_URL" \
--focus false
cmux open "$ASSET_ROOT/failure.log" \
--workspace "${CMUX_WORKSPACE_ID:-}" \
--pane pane:<right-helper> \
--no-focuscmux-workspacecmux opencmux identify --jsonindex.htmlfile://cmux opencmux openindex.htmlFILE_URL="$(node -e 'const {pathToFileURL}=require("url"); console.log(pathToFileURL(process.argv[1]).href)' "$ASSET_ROOT/index.html")"
cmux browser --surface surface:<existing-artifact-browser> goto "$FILE_URL" --snapshot-after
cmux browser --surface surface:<existing-artifact-browser> reload --snapshot-afterindex.htmlFILE_URL="$(node -e 'const {pathToFileURL}=require("url"); console.log(pathToFileURL(process.argv[1]).href)' "$ASSET_ROOT/index.html")"
cmux new-surface --workspace "${CMUX_WORKSPACE_ID:-}" \
--pane pane:<right-helper> \
--type browser \
--url "$FILE_URL" \
--focus false
cmux open "$ASSET_ROOT/failure.log" \
--workspace "${CMUX_WORKSPACE_ID:-}" \
--pane pane:<right-helper> \
--no-focuscmux-workspacecmux opencmux identify --jsontest -f "$ASSET_ROOT/index.html"
ls -la "$ASSET_ROOT"cmux list-pane-surfaces --workspace "${CMUX_WORKSPACE_ID:-}" --jsonindex.htmltest -f "$ASSET_ROOT/index.html"
ls -la "$ASSET_ROOT"cmux list-pane-surfaces --workspace "${CMUX_WORKSPACE_ID:-}" --jsonindex.html/tmp--no-focus--focus false/tmp--no-focus--focus false