Versions 7 to 318
Lines 6–15 at 318 (were 6–14 at 7)
1011
11−/** abso serve [--version N]: a preview of one version of shared at a stable URL, built once on the server (#37, Playtester 1). */
12+/** abso serve [--version N]: a preview of one version of shared at a stable URL, built once on the server (#37). */
Lines 17–23 at 318 (were 16–22 at 7)
19− "avcs: building a preview of the newest version of shared (once per version; a minute the first time)…\n",
20+ "abso: building a preview of the newest version of shared (once per version; a minute the first time)…\n",
2122 const s = await api.serve(raw === undefined ? undefined : Number(raw), str(args, "build"), str(args, "out"));
Lines 37–51 at 318 (were 36–50 at 7)
3738
39− * The script abso shot runs in the box (from /w/.avcs-shot, so 'playwright' is
40− * the project's own). It reads its setup from AVCS_SHOT and prints marked
41− * lines the client picks out: AVCS_SHOT_IMAGE {json}, blocks between
42− * AVCS_SHOT_BEGIN <name> and AVCS_SHOT_END, and "eval: ", "page error: ",
47−const c = JSON.parse(process.env.AVCS_SHOT);
Lines 98–106 at 318 (were 97–105 at 7)
100− console.log('AVCS_SHOT_BEGIN ' + name);
101102 console.log(text.length > max ? text.slice(0, max) + '\n... (' + (text.length - max) + ' more characters; --max-chars raises the cap)' : text);
102− console.log('AVCS_SHOT_END');
Lines 149–155 at 318 (were 148–154 at 7)
151− console.log('AVCS_SHOT_IMAGE ' + JSON.stringify({ w, h, bytes: png.length }));
Lines 197–211 at 318 (were 196–210 at 7)
197198 if (!/^\d{2,5}x\d{2,5}$/.test(size)) throw new UsageError("--size is WIDTHxHEIGHT, like 1280x720");
199− // --eval and --click set the page up before the shot (#37, Builder 7): JS first, then each click, in order.
200+ // --eval and --click set the page up before the shot (#37): JS first, then each click, in order.
201− // x,y@ms waits ms before that click (#37, Writer 1): a card --eval or an earlier click brings up may need a draw or two.
202+ // x,y@ms waits ms before that click (#37): a card --eval or an earlier click brings up may need a draw or two.
207− // --mouse leaves the pointer over a point for the shot, for hover cards (#37, Builder 7).
Lines 261–267 at 318 (were 260–266 at 7)
263− out: `.avcs-shot/${name}`,
Lines 282–297 at 318 (were 281–296 at 7)
281282 "(npx --no-install vite --host 127.0.0.1 --port 4173 --strictPort >/tmp/shot-vite.log 2>&1 &)",
282283 "for i in $(seq 120); do curl -sf -o /dev/null http://127.0.0.1:4173/ && break; sleep 0.5; done",
283284 'curl -sf -o /dev/null http://127.0.0.1:4173/ || { echo "the vite dev server did not start:"; tail -20 /tmp/shot-vite.log; exit 1; }',
284− "mkdir -p .avcs-shot",
285− `cat > .avcs-shot/shoot.mjs <<'AVCS_SHOT_EOF'\n${SHOOTER}\nAVCS_SHOT_EOF`,
286− `AVCS_SHOT=${shellWord(JSON.stringify(setup))} node .avcs-shot/shoot.mjs`,
293− // --at shoots a version of the folder's space instead of the folder, as abso run --at runs one (#37, Builder 5).
294+ // --at shoots a version of the folder's space instead of the folder, as abso run --at runs one (#37).
Lines 309–318 at 318 (were 308–317 at 7)
311− if (!lines[i]!.startsWith("AVCS_SHOT_BEGIN ")) continue;
312− const end = lines.indexOf("AVCS_SHOT_END", i + 1);
314− name: lines[i]!.slice("AVCS_SHOT_BEGIN ".length),
Lines 328–344 at 318 (were 327–342 at 7)
328329 let shot: { path: string; w: number; h: number; bytes: number; tokens: number } | null = null;
330− const info = lines.find((l) => l.startsWith("AVCS_SHOT_IMAGE "));
332− void root;
334− const gz = await api.boxFiles(`.avcs-shot/${name}`);
335− const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.avcs-shot/${name}`);
335+ const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.abso-shot/${name}`);
337337 return { exit: EXIT.error, text: "The screenshot ran but its file was not in the box.", json: { notes } };
338− const { w, h } = JSON.parse(info.slice("AVCS_SHOT_IMAGE ".length)) as { w: number; h: number };
339− const path = resolve(env.cwd, str(args, "out") ?? join(".avcs", "shots", name));
338+ const { w, h } = JSON.parse(info.slice("ABSO_SHOT_IMAGE ".length)) as { w: number; h: number };
339+ // In the folder's own state folder (.abso/, or .avcs/ in an older folder), which abso never records.
341+ str(args, "out") !== undefined ? resolve(env.cwd, str(args, "out")!) : join(stateDir(root), "shots", name);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 7 318 client/src/serve-commands.ts --json
- JSON
- /christopher/abso-core/compare/7..318?file=client%2Fsrc%2Fserve-commands.ts&format=json