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

+11 −0 in 1 place
Lines 350–366 at 186 (were 350–355 at 185)
350350 const limit = q.limit !== undefined && Number.isInteger(Number(q.limit)) ? Number(q.limit) : undefined;
351351 return { status: 200, body: history.refusals(q.agent || undefined, limit) };
352352 }
353+ if (op === "without") {
354+ // GET ?version=<n>&versions=<n,n>: version n of shared with those versions left out (without.ts).
355+ const q = (body ?? {}) as Record<string, string | undefined>;
356+ const history = project as ProjectCalls & Partial<ProjectHistory>;
357+ if (!history.without) return fail(501, "without needs the engine");
358+ const version = q.version !== undefined && /^\d+$/.test(q.version) ? Number(q.version) : undefined;
359+ const versions = (q.versions ?? "").split(",").filter((s) => s.trim() !== "");
360+ if (version === undefined || versions.length === 0 || versions.some((s) => !/^\s*\d+\s*$/.test(s)))
361+ return fail(400, "without needs ?version=<number>&versions=<number,number>");
362+ return { status: 200, body: history.without(version, versions.map(Number)) };
363+ }
353364 if (op === "log" || op === "show" || op === "file" || op === "compare") {
354365 // GETs: ?draft=<name> (shared when absent); log ?limit, ?path; show ?version; file ?path, ?version; compare ?from, ?to.
355366 const q = (body ?? {}) as Record<string, string | undefined>;
MCP
compare on this site's /mcp
CLI
abso diff 185 186 worker/project/http.ts --json
JSON
/christopher/abso-core/compare/185..186?file=worker%2Fproject%2Fhttp.ts&format=json