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

Compare

+5 −5 in 3 places
Lines 41–47 at 318 (were 41–47 at 41)
4141 readonly onRetry?: (why: string, attempt: number) => void;
4242 /** Stop the runs still going in the box first, instead of a 409 (abso run --replace). */
4343 readonly replace?: boolean;
44− /** Called when the run starts: whether the box is fresh, and what X-Avcs-Prep says about its prep. */
44+ /** Called when the run starts: whether the box is fresh, and what X-Abso-Prep says about its prep. */
4545 readonly onBox?: (cold: boolean, prep: string | undefined) => void;
4646 /** Start from the plain image this once, not the prep (abso run --fresh). */
4747 readonly fresh?: boolean;
Lines 150–164 at 318 (were 150–164 at 41)
150150 try {
151151 // stderr=split: the box's stderr comes apart from stdout (7a5a111); older servers ignore it.
152152 // replace=1: stop the runs still going in the box first; without it the server answers 409 (#25).
153− const answer = await fetch(
153+ const answer = await api.send(
154154 `${api.url(api.agentPath("run"))}?cmd=${encodeURIComponent(command)}&stderr=split${replace ? "&replace=1" : ""}${fresh ? "&fresh=1" : ""}${boxQuery(api.box)}`,
155155 {
156156 method: "POST",
157− headers: { ...api.headers("application/gzip"), "x-avcs-run-key": key, "x-avcs-kind": api.runKind },
157+ headers: { ...api.headers("application/gzip"), "x-abso-run-key": key, "x-abso-kind": api.runKind },
158158 body: tarGz,
159159 },
160160 );
161− if (answer.status < 500 || answer.headers.get("x-avcs-run") !== null) {
161+ if (answer.status < 500 || answer.headers.get("x-abso-run") !== null) {
162162 res = answer;
163163 break;
164164 }
Lines 216–222 at 318 (were 216–222 at 41)
216216 onReconnect?.(last, attempt + 1);
217217 await new Promise((ok) => setTimeout(ok, delay));
218218 try {
219− const res = await fetch(followUrl(api, id, seen), { headers: api.headers() });
219+ const res = await api.send(followUrl(api, id, seen), { headers: api.headers() });
220220 if (res.status === 404)
221221 throw new ApiError(
222222 `the run broke off (${why}) and is gone from the box: ${errorSentence(await res.text())}`,
MCP
compare on this site's /mcp
CLI
abso diff 41 318 client/src/box-run.ts --json
JSON
/christopher/abso-core/compare/41..318?file=client%2Fsrc%2Fbox-run.ts&format=json