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 34 to 318

Compare

+10 −11 in 7 places
Lines 72–78 at 318 (were 72–78 at 34)
7272
7373/**
7474 * abso run --with <box path>=<local path>[,...]: files for one run only (#37,
75− * Builder 6's A/B runs), sent with the folder and never written to it or
75+ * for A/B runs), sent with the folder and never written to it or
7676 * recorded. A local folder sends every file under it. Text goes with LF line
7777 * endings, as the folder's files do.
7878 */
Lines 106–112 at 318 (were 106–113 at 34)
106106 : [[box, local] as const];
107107 for (const [path, from] of files) {
108108 const text = readText(from);
109− const data =
110− text !== undefined && text.includes("\r") ? Buffer.from(text.replace(/\r\n?/g, "\n")) : readFileSync(from);
109+ const data = text?.includes("\r") ? Buffer.from(text.replace(/\r\n?/g, "\n")) : readFileSync(from);
111110 const exec = (statSync(from).mode & 0o111) !== 0 || (data[0] === 0x23 && data[1] === 0x21);
112111 out.push({ path, data, ...(exec ? { mode: 0o755 } : {}) });
113112 }
Lines 176–182 at 318 (were 177–183 at 34)
177176
178177/**
179178 * abso bisect [--good N] [--bad N] -- <check>: the first version of the folder's
180− * space where the check fails (#37, Builders 1 and 6). Each step is an abso run
179+ * space where the check fails (#37). Each step is an abso run
181180 * --at in the box. Without --good it walks back from --bad (newest by default)
182181 * in doubling steps until a version passes, then halves the gap.
183182 */
Lines 290–296 at 318 (were 291–297 at 34)
291290export async function runRun(args: Parsed, env: Env, as: "run" | "prep" = "run"): Promise<Output> {
292291 if (args.positionals.length === 0)
293292 throw new UsageError("give the command to run: abso run <command>, or abso run -- <program> <arg...>");
294− // A glob before -- next to a list flag is a second value given the wrong way (#37, Builder 5: --fetch 'a' 'b' -- cmd ran "b"
293+ // A glob before -- next to a list flag is a second value given the wrong way (#37: --fetch 'a' 'b' -- cmd ran "b"
295294 // as the command, joined with the words after --, which lost their quoting).
296295 // Once a plain word comes, run keeps the rest as typed, -- included; so the words before a literal -- are the suspects.
297296 const before = args.dashed !== undefined ? args.dashed : args.positionals.indexOf("--");
Lines 305–313 at 318 (were 306–314 at 34)
306305 );
307306 }
308307 }
309− // avcs's own lines (on stderr); --quiet drops them, and the box's stdout and stderr stay as they are (#37, Builder 3).
308+ // avcs's own lines (on stderr); --quiet drops them, and the box's stdout and stderr stay as they are (#37).
310309 const notice = bool(args, "quiet") ? (_text: string): void => {} : (env.writeErr ?? env.write);
311− // What the box said about its prep (X-Avcs-Prep): null when it has none.
310+ // What the box said about its prep (X-Abso-Prep): null when it has none.
312311 let prepState: string | null | undefined;
313312 const posix = undoGitBashPaths(args.positionals, env.env);
314313 if (posix.undone.length > 0) {
Lines 362–369 at 318 (were 363–370 at 34)
363362 entries.push({ path: rel, data: new Uint8Array(0), link: d.link });
364363 continue;
365364 }
366− // Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37, Builder 2).
367− const lf = d.text !== undefined && d.text.includes("\r") ? Buffer.from(d.text.replace(/\r\n?/g, "\n")) : undefined;
365+ // Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37).
366+ const lf = d.text?.includes("\r") ? Buffer.from(d.text.replace(/\r\n?/g, "\n")) : undefined;
368367 if (lf !== undefined) toLf.push(rel);
369368 const data = lf ?? readFileSync(path);
370369 // The bit from the disk, or (on Windows) from the server; a script with "#!" runs either way.
Lines 516–525 at 318 (were 517–526 at 34)
517516 * (ABSO_BOX=2 in its environment), so their runs don't wait on each other.
518517 */
519518/**
520− * What this folder last heard about a box's prep: a run's X-Avcs-Prep, or
519+ * What this folder last heard about a box's prep: a run's X-Abso-Prep, or
521520 * abso prep and prep --forget. null means no prep; undefined, never heard. So
522521 * publish --check can refuse before running a check that can't be trusted
523− * (#37, Artist 1: a 40 s suite ran, then was refused).
522+ * (#37: a 40 s suite ran, then was refused).
524523 */
525524function prepFile(root: string): string {
526525 return join(stateDir(root), "box-prep.json");
MCP
compare on this site's /mcp
CLI
abso diff 34 318 client/src/box-commands.ts --json
JSON
/christopher/abso-core/compare/34..318?file=client%2Fsrc%2Fbox-commands.ts&format=json