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 51 to 52

Compare

+12 −1 in 2 places
Lines 271–277 at 52 (were 271–277 at 51)
271271 return;
272272 }
273273 const m =
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(
274+ /^\/p\/([^/]+)\/(init|status|queue|change\/\d+|changes|notes|ci\/revoke|ci|blame|why|where|labels|files|diff|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(
275275 url.pathname,
276276 );
277277 if (!m) return send(res, 404, { error: "no such route; see docs/v2-slice1.md" });
Lines 405–421 at 52 (were 405–410 at 51)
405405 }
406406 if (op === "where") return send(res, 200, where(hosted.project));
407407 if (op === "labels") return send(res, 200, hosted.project.labels());
408+ if (op === "diff" && agent === undefined) {
409+ // Another agent's draft, read only (abso diff --agent), as the Worker answers GET /p/:project/diff?agent=.
410+ const of = url.searchParams.get("agent");
411+ if (!of) return send(res, 400, { error: "diff needs ?agent=<name>" });
412+ try {
413+ return send(res, 200, hosted.project.diffOf(of));
414+ } catch (e) {
415+ const code = (e as { code?: string }).code;
416+ return send(res, code === "not-found" ? 404 : 500, { error: e instanceof Error ? e.message : String(e) });
417+ }
418+ }
408419 if (op === "files" && agent === undefined) {
409420 const q = Object.fromEntries(url.searchParams) as Record<string, string | undefined>;
410421 try {
MCP
compare on this site's /mcp
CLI
abso diff 51 52 client/test/fake-server.ts --json
JSON
/christopher/abso-core/compare/51..52?file=client%2Ftest%2Ffake-server.ts&format=json