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 207 to 208

Compare

+11 −2 in 2 places
Lines 1–6 at 208 (were 1–6 at 207)
11// Each version's changed files kept as it lands (abso Capacity, version-files.ts): a writer-backed project's log,
2−// path histories and shows match the in-memory project's through edits, new and removed files, a line taken out and
3−// put back with the same text, moves and a drop.
2+// path histories, shows and compares match the in-memory project's through edits, new and removed files, a line
3+// taken out and put back with the same text, moves and a drop.
44
55import assert from "node:assert/strict";
66import { test } from "node:test";
Lines 52–64 at 208 (were 52–55 at 207)
5252 for (const path of ["a.txt", "b.txt", "c.txt", "d.txt", "e.txt", "gone.txt"])
5353 assert.deepEqual(project.log({ limit: 100, path }), oracle.log({ limit: 100, path }), path);
5454 for (let v = 0; v <= oracle.version; v++) assert.deepEqual(project.show(v), oracle.show(v), `version ${v}`);
55+ // A compare reads the kept lists for the versions between (version-log.ts): both ways, and across the drop.
56+ for (const [from, to] of [
57+ [0, oracle.version],
58+ [oracle.version, 0],
59+ [2, 7],
60+ [5, 9],
61+ [3, 3],
62+ ] as const)
63+ assert.deepEqual(project.compare(from, to), oracle.compare(from, to), `compare ${from} to ${to}`);
5564});
MCP
compare on this site's /mcp
CLI
abso diff 207 208 worker/project/test/version-files.test.ts --json
JSON
/christopher/abso-core/compare/207..208?file=worker%2Fproject%2Ftest%2Fversion-files.test.ts&format=json