Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 280 to 281

Compare

+4 −2 in 2 places
Lines 6–12 at 281 (were 6–11 at 280)
66import { boxOf, runRun, shellWord, undoGitBashPaths } from "./box-commands.ts";
77import { type Env, EXIT, type Output, open } from "./command-env.ts";
88import { fetchedText, fetchFromBox } from "./fetch.ts";
9+import { stateDir } from "./state-dir.ts";
910import { untarGz } from "./tar.ts";
1011
1112/** abso serve [--version N]: a preview of one version of shared at a stable URL, built once on the server (#37). */
Lines 330–344 at 281 (were 329–342 at 280)
329330 if (image) {
330331 const info = lines.find((l) => l.startsWith("ABSO_SHOT_IMAGE "));
331332 const { root, api } = open(env);
332− void root;
333333 api.box = boxOf(args, env);
334334 const gz = await api.boxFiles(`.abso-shot/${name}`);
335335 const png = gz === null ? undefined : untarGz(gz).find((e) => e.path === `.abso-shot/${name}`);
336336 if (!png || !info)
337337 return { exit: EXIT.error, text: "The screenshot ran but its file was not in the box.", json: { notes } };
338338 const { w, h } = JSON.parse(info.slice("ABSO_SHOT_IMAGE ".length)) as { w: number; h: number };
339− const path = resolve(env.cwd, str(args, "out") ?? join(".avcs", "shots", name));
339+ // In the folder's own state folder (.abso/, or .avcs/ in an older folder), which abso never records.
340+ const path =
341+ str(args, "out") !== undefined ? resolve(env.cwd, str(args, "out")!) : join(stateDir(root), "shots", name);
340342 mkdirSync(join(path, ".."), { recursive: true });
341343 writeFileSync(path, png.data);
342344 shot = { path, w, h, bytes: png.data.length, tokens: imageTokens(w, h) };
MCP
compare on this site's /mcp
CLI
abso diff 280 281 client/src/serve-commands.ts --json
JSON
/christopher/abso-core/compare/280..281?file=client%2Fsrc%2Fserve-commands.ts&format=json