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 318

Compare

+16 −2 in 2 places
Lines 1–6 at 318 (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–69 at 318 (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+ // The file list at each version, folded from the kept shapes' files made and taken out: newest first, then from 0.
56+ assert.deepEqual(project.pathsAt(oracle.version), oracle.pathsAt(oracle.version));
57+ for (let v = 0; v <= oracle.version; v++) assert.deepEqual(project.pathsAt(v), oracle.pathsAt(v), `paths at ${v}`);
58+ for (let v = 0; v <= oracle.version; v++)
59+ assert.deepEqual(project.tree("", { version: v }), oracle.tree("", { version: v }), `tree at ${v}`);
60+ // A compare reads the kept lists for the versions between (version-log.ts): both ways, and across the drop.
61+ for (const [from, to] of [
62+ [0, oracle.version],
63+ [oracle.version, 0],
64+ [2, 7],
65+ [5, 9],
66+ [3, 3],
67+ ] as const)
68+ assert.deepEqual(project.compare(from, to), oracle.compare(from, to), `compare ${from} to ${to}`);
5569});
MCP
compare on this site's /mcp
CLI
abso diff 207 318 worker/project/test/version-files.test.ts --json
JSON
/christopher/abso-core/compare/207..318?file=worker%2Fproject%2Ftest%2Fversion-files.test.ts&format=json