Versions 24 to 318
Lines 10–16 at 318 (were 10–15 at 24)
1415import { absolute, isLocalOnly, loadIgnore, readText, walk, writeFileAtomic } from "./folder.ts";
Lines 72–78 at 318 (were 71–77 at 24)
7172
74− * Builder 6's A/B runs), sent with the folder and never written to it or
Lines 106–112 at 318 (were 105–112 at 24)
108− const data =
109− 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);
Lines 176–182 at 318 (were 176–182 at 24)
176176
179− * space where the check fails (#37, Builders 1 and 6). Each step is an abso run
Lines 290–296 at 318 (were 290–296 at 24)
290290export async function runRun(args: Parsed, env: Env, as: "run" | "prep" = "run"): Promise<Output> {
292292 throw new UsageError("give the command to run: abso run <command>, or abso run -- <program> <arg...>");
293− // 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"
295295 // Once a plain word comes, run keeps the rest as typed, -- included; so the words before a literal -- are the suspects.
Lines 305–313 at 318 (were 305–313 at 24)
308− // 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).
309309 const notice = bool(args, "quiet") ? (_text: string): void => {} : (env.writeErr ?? env.write);
310− // What the box said about its prep (X-Avcs-Prep): null when it has none.
Lines 362–369 at 318 (were 362–369 at 24)
365− // Text goes as abso records it, with LF line endings: a CRLF script fails in the box's sh (#37, Builder 2).
366− 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).
369369 // The bit from the disk, or (on Windows) from the server; a script with "#!" runs either way.
Lines 380–389 at 318 (were 380–389 at 24)
383− const space = stamp.AVCS_SPACE === "shared" ? "shared" : `draft ${stamp.AVCS_SPACE}`;
386− stamp = { ...stamp, AVCS_VERSION: String(at), AVCS_DRAFT: "0", AVCS_DRAFT_HASH: "", AVCS_AT: String(at) };
386+ stamp = { ...stamp, ABSO_VERSION: String(at), ABSO_DRAFT: "0", ABSO_DRAFT_HASH: "", ABSO_AT: String(at) };
388388 `abso: running version ${at} of ${space} in the box (${plural(entries.length, "file")}); your folder is untouched.\n`,
Lines 392–398 at 318 (were 392–398 at 24)
393393 const gone = entries.filter((e) => pick(e.path) && !old.some((o) => o.path === e.path)).map((e) => e.path);
394394 entries = [...entries.filter((e) => !pick(e.path)), ...old].sort((a, b) => a.path.localeCompare(b.path));
395− stamp = { ...stamp, AVCS_AT: `${at} files ${filesGlob}` };
Lines 444–458 at 318 (were 444–458 at 24)
447− // A broken stream reconnects to the run quietly; .avcs/run.log says when and why.
450− env.env[name]
454− const reconnect = delays("AVCS_RUN_RECONNECT_MS");
455− const retry = delays("AVCS_RUN_RETRY_MS");
458458 ? new Api(api.config, api.timeoutMs, reconnect?.length ? reconnect : undefined, retry?.length ? retry : undefined)
Lines 512–525 at 318 (were 512–525 at 24)
512512/** abso fetch <glob...>: files the box made, written into the folder where abso ignores them. */
515− * AVCS_BOX, else the agent's own. A lead can give each subagent its own box
516− * (AVCS_BOX=2 in its environment), so their runs don't wait on each other.
515+ * ABSO_BOX (or the older AVCS_BOX), else the agent's own. A lead can give each subagent its own box
519− * What this folder last heard about a box's prep: a run's X-Avcs-Prep, or
522− * (#37, Artist 1: a 40 s suite ran, then was refused).
Lines 549–555 at 318 (were 549–555 at 24)
550550
552− const box = str(args, "box") ?? (env.env.AVCS_BOX || undefined);
554554 throw new UsageError(`a box name is 1-24 letters, digits, - or _ (got ${JSON.stringify(box)})`);
Lines 581–597 at 318 (were 581–597 at 24)
581581
584− readonly AVCS_AGENT: string;
586− readonly AVCS_SPACE: string;
588− readonly AVCS_VERSION: string;
590− readonly AVCS_DRAFT: string;
592− readonly AVCS_DRAFT_HASH: string;
593593 /** With abso run --at: the version run ("12"), or the files taken from it ("12 files src/*.ts"). */
594− readonly AVCS_AT?: string;
596596
Lines 605–623 at 318 (were 605–622 at 24)
608− AVCS_AGENT: agent,
609− AVCS_SPACE: me?.draft ?? "shared",
610− AVCS_VERSION: String(me?.base ?? status.version),
611− AVCS_DRAFT: String(me?.draftChanges ?? 0),
612− AVCS_DRAFT_HASH: hash,
615615
616616/** `export A='x' B='y'; `: on every part of a compound command, unlike a bare assignment prefix. */
619− return `export ${Object.entries(stamp)
- MCP
- compare on this site's /mcp
- CLI
- abso diff 24 318 client/src/box-commands.ts --json
- JSON
- /christopher/abso-core/compare/24..318?file=client%2Fsrc%2Fbox-commands.ts&format=json