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 185 to 186

Compare

+15 −1 in 2 places
Lines 271–277 at 186 (were 271–277 at 185)
271271 return;
272272 }
273273 const m =
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(
274+ /^\/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(
275275 url.pathname,
276276 );
277277 if (!m) return send(res, 404, { error: "no such route; see docs/v2-slice1.md" });
Lines 440–459 at 186 (were 440–445 at 185)
440440 return send(res, code === "bad-request" ? 400 : 500, { error: e instanceof Error ? e.message : String(e) });
441441 }
442442 }
443+ if (op === "without") {
444+ // GET ?version=<n>&versions=<n,n>, as worker/project/http.ts routes it.
445+ const q = Object.fromEntries(url.searchParams) as Record<string, string | undefined>;
446+ try {
447+ return send(
448+ res,
449+ 200,
450+ hosted.project.without(Number(q.version), (q.versions ?? "").split(",").filter(Boolean).map(Number)),
451+ );
452+ } catch (e) {
453+ const code = (e as { code?: string }).code;
454+ return send(res, code === "bad-request" ? 400 : 500, { error: e instanceof Error ? e.message : String(e) });
455+ }
456+ }
443457 if (op === "log" || op === "show" || op === "file" || op === "compare") {
444458 // As the Worker routes them: ?draft=<name>, shared when absent.
445459 const q = Object.fromEntries(url.searchParams) as Record<string, string | undefined>;
MCP
compare on this site's /mcp
CLI
abso diff 185 186 client/test/fake-server.ts --json
JSON
/christopher/abso-core/compare/185..186?file=client%2Ftest%2Ffake-server.ts&format=json