Versions 2 to 318
Lines 89–99 at 318 (were 89–97 at 2)
9090 /** The next publish: commit it and answer 500 ('after'), or answer 500 without it ('before'), as a storage reset does. */
92+ /** How many of the next pulls to carry out and then cut before answering, as an answer that never arrives (abso-core 26). */
94− /** Each run POST's X-Avcs-Run-Key, and whether a run started for it. */
Lines 101–107 at 318 (were 99–105 at 2)
100102
102− return path === ".avcs" || path.startsWith(".avcs/") || path.startsWith("./.avcs/");
104+ return [".abso", ".avcs"].some((d) => path === d || path.startsWith(`${d}/`) || path.startsWith(`./${d}/`));
104106
Lines 157–163 at 318 (were 155–160 at 2)
Lines 253–259 at 318 (were 250–256 at 2)
253− res.writeHead(200, { "content-type": "application/gzip", "x-avcs-files": String(files.length) });
256+ res.writeHead(200, { "content-type": "application/gzip", "x-abso-files": String(files.length) });
Lines 274–280 at 318 (were 271–277 at 2)
274− /^\/p\/([^/]+)\/(init|status|queue|change\/\d+|changes|notes|ci\/revoke|ci|blame|why|where|labels|files|log|show|file|compare|a\/([^/]+)\/(edit|record|publish|sync|run|draft|land|draft-sync|diff|restore|announce|news|starting|reader|drop|pluck|amend|label|files|unqueue|note|note-close|move))$/.exec(
277+ /^\/p\/([^/]+)\/(init|status|queue|change\/\d+|changes|notes|ci\/revoke|ci|blame|why|where|labels|files|diff|log|show|file|compare|without|a\/([^/]+)\/(edit|record|publish|sync|run|draft|land|draft-sync|diff|restore|announce|news|starting|reader|drop|pluck|amend|label|files|unqueue|note|note-close|move))$/.exec(
Lines 298–304 at 318 (were 295–301 at 2)
295298 if (!files || typeof files !== "object") return send(res, 400, { error: "init needs {files: {path: text}}" });
298− if (bad) return send(res, 400, { error: `${bad} is under .avcs/, which stays in the agent's folder` });
301+ if (bad) return send(res, 400, { error: `${bad} is under .abso/, which stays in the agent's folder` });
Lines 408–424 at 318 (were 405–410 at 2)
412+ // Another agent's draft, read only (abso diff --agent), as the Worker answers GET /p/:project/diff?agent=.
419+ return send(res, code === "not-found" ? 404 : 500, { error: e instanceof Error ? e.message : String(e) });
Lines 437–462 at 318 (were 423–434 at 2)
423437 return send(res, 200, blame(hosted.project, q.file, num(q.from), num(q.to), num(q.version), view));
425439 if (!line || !Number.isInteger(line)) return send(res, 400, { error: "why needs ?line=<number>" });
426− return send(res, 200, why(hosted.project, q.file, line, view));
440+ return send(res, 200, why(hosted.project, q.file, line, { ...view, version: num(q.version) }));
429443 return send(res, code === "bad-request" ? 400 : 500, { error: e instanceof Error ? e.message : String(e) });
453+ hosted.project.without(Number(q.version), (q.versions ?? "").split(",").filter(Boolean).map(Number)),
457+ return send(res, code === "bad-request" ? 400 : 500, { error: e instanceof Error ? e.message : String(e) });
Lines 499–511 at 318 (were 471–483 at 2)
474− const key = req.headers["x-avcs-run-key"];
480− kind: String(req.headers["x-avcs-kind"] ?? ""),
Lines 526–532 at 318 (were 498–504 at 2)
499527 return send(res, 400, { error: "edit needs {file, old, new}, {file, content} or {file, edits}" });
501− return send(res, 400, { error: `${body.file} is under .avcs/, which stays in the agent's folder` });
529+ return send(res, 400, { error: `${body.file} is under .abso/, which stays in the agent's folder` });
502530 return send(res, 200, project.edit(agent, body as unknown as Parameters<Project["edit"]>[1], Date.now()));
Lines 534–540 at 318 (were 506–512 at 2)
509− if (bad) return send(res, 400, { error: `${bad} is under .avcs/, which stays in the agent's folder` });
537+ if (bad) return send(res, 400, { error: `${bad} is under .abso/, which stays in the agent's folder` });
Lines 555–561 at 318 (were 527–533 at 2)
530− return send(res, 400, { error: "publish needs {message} saying why" });
533561 const storageReset = { error: "Internal error in Durable Object storage caused object to be reset." };
Lines 635–645 at 318 (were 607–612 at 2)
Lines 678–684 at 318 (were 645–651 at 2)
645678 const run: Run = { out: Buffer.alloc(0), err: Buffer.alloc(0), split, end: undefined, listeners: new Set() };
648− res.writeHead(200, { "content-type": "application/x-ndjson", "x-avcs-box": "warm", "x-avcs-run": id });
681+ res.writeHead(200, { "content-type": "application/x-ndjson", "x-abso-box": "warm", "x-abso-run": id });
Lines 759–767 at 318 (were 726–731 at 2)
762+ // Never close an idle kept-alive connection: on Windows, under load, the client could reuse one in the moment
763+ // the server closed it, and the next call failed with ECONNRESET. close() below drops every connection.
- MCP
- compare on this site's /mcp
- CLI
- abso diff 2 318 client/test/fake-server.ts --json
- JSON
- /christopher/abso-core/compare/2..318?file=client%2Ftest%2Ffake-server.ts&format=json