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

Compare

+5 −6 in 4 places
Lines 106–112 at 318 (were 106–113 at 38)
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 307–313 at 318 (were 308–314 at 38)
308307 }
309308 // 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 363–369 at 318 (were 364–370 at 38)
364363 continue;
365364 }
366365 // Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37).
367− const lf = d.text !== undefined && d.text.includes("\r") ? Buffer.from(d.text.replace(/\r\n?/g, "\n")) : undefined;
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 38)
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 38 318 client/src/box-commands.ts --json
JSON
/christopher/abso-core/compare/38..318?file=client%2Fsrc%2Fbox-commands.ts&format=json