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 175 to 318

Compare

+14 −7 in 5 places
Lines 47–53 at 318 (were 47–52 at 175)
4747 }
4848});
4949
50+// The line-by-line layout, which a graph adopted before packed file history still uses (packFiles: false).
5051test("current visibility stops at the first included deletion while history retains every deleter", () => {
5152 class ObservedStorage extends SqlState {
5253 pageReads = 0;
Lines 60–66 at 318 (were 59–65 at 175)
5960 try {
6061 const oracle = Repo.init({ "a.txt": "gone\nlive\n" });
6162 const deletion = oracle.draft({ edits: [{ file: "a.txt", old: "gone\n", new: "" }] });
62− const graph = new Graph({ storage });
63+ const graph = new Graph({ storage, packFiles: false });
6364 graph.add(oracle.graph.atom("a0"));
6465 const ids = ["a0"];
6566 for (let seq = 1; seq <= 514; seq++) {
Lines 69–75 at 318 (were 68–74 at 175)
6869 oracle.graph.add(atom);
6970 ids.push(atom.id);
7071 }
71− const reopened = new Graph({ storage });
72+ const reopened = new Graph({ storage, packFiles: false });
7273 const membership = new StableOverlaySet(ids);
7374 const view = new View(reopened, membership);
7475 storage.pageReads = 0;
Lines 480–488 at 318 (were 479–487 at 175)
479480 }
480481 const before = oracle.view().text("a.txt");
481482 oracle.edit({ edits: [{ file: "a.txt", old: before, new: "live\n" }] });
482− const graph = new Graph({ storage });
483+ const graph = new Graph({ storage, packFiles: false });
483484 for (const id of oracle.shared) graph.add(oracle.graph.atom(id));
484− const reopened = new Graph({ storage });
485+ const reopened = new Graph({ storage, packFiles: false });
485486 reopened.eachChildN = () => {
486487 throw Error("unordered child collection forbidden");
487488 };
Lines 541–560 at 318 (were 540–553 at 175)
540541 const storage = new SqlState();
541542 try {
542543 const oracle = Repo.init({ "a.txt": "one\n" });
543− const graph = new Graph({ storage });
544+ const graph = new Graph({ storage, packFiles: false });
544545 graph.add(oracle.graph.atom("a0"));
545546 storage.remove("ordered-children", "format");
546− assert.throws(() => new View(new Graph({ storage }), new StableOverlaySet(["a0"])).text("a.txt"), /fresh adoption/);
547547 assert.throws(
548− () => new Graph({ storage }).add(oracle.draft({ edits: [{ file: "a.txt", old: "one", new: "two" }] })),
548+ () => new View(new Graph({ storage, packFiles: false }), new StableOverlaySet(["a0"])).text("a.txt"),
549549 /fresh adoption/,
550550 );
551+ assert.throws(
552+ () =>
553+ new Graph({ storage, packFiles: false }).add(
554+ oracle.draft({ edits: [{ file: "a.txt", old: "one", new: "two" }] }),
555+ ),
556+ /fresh adoption/,
557+ );
551558 storage.write("ordered-children", "format", 2);
552559 const parent = graph.startCodeOf("a.txt")!;
553560 storage.remove("ordered-children", JSON.stringify([String(parent), "meta"]));
MCP
compare on this site's /mcp
CLI
abso diff 175 318 src/engine/test/state-source.test.ts --json
JSON
/christopher/abso-core/compare/175..318?file=src%2Fengine%2Ftest%2Fstate-source.test.ts&format=json