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 122 to 123

Compare

+22 −1 in 2 places
Lines 1–7 at 123 (were 1–7 at 122)
11import assert from "node:assert/strict";
22import { test } from "node:test";
33import { checkDraft, Graph, View } from "../index.ts";
4−import { CachedStateStorage, storedLists, storedNumbers } from "../state-source.ts";
4+import { CachedStateStorage, StableOverlaySet, storedLists, storedNumbers } from "../state-source.ts";
55import { lines, Repo } from "./helpers.ts";
66import { SqlState } from "./storage-helper.ts";
77
Lines 44–70 at 123 (were 44–49 at 122)
4444 }
4545});
4646
47+test("stable views stream movers instead of allocating a filtered history array", (t) => {
48+ const oracle = Repo.init({ "a.txt": lines("one", "two"), "b.txt": "" });
49+ oracle.edit({ move: { file: "a.txt", start: 0, end: 1, to: "b.txt", at: 0 } });
50+ const expected = oracle.files();
51+ const movers = oracle.graph.movers();
52+ t.mock.method(
53+ oracle.graph,
54+ "movers",
55+ () =>
56+ new Proxy(movers, {
57+ get(target, key, receiver) {
58+ if (key === "filter") throw new Error("whole mover history copied");
59+ return Reflect.get(target, key, receiver);
60+ },
61+ }),
62+ );
63+ const view = new View(oracle.graph, new StableOverlaySet(oracle.shared));
64+ assert.equal(view.hasMoves(), true);
65+ assert.deepEqual(view.files(), expected);
66+});
4768test("per-file list pages append and reopen without reading the full historical list", () => {
4869 const source = new SqlState();
4970 try {
MCP
compare on this site's /mcp
CLI
abso diff 122 123 src/engine/test/state-source.test.ts --json
JSON
/christopher/abso-core/compare/122..123?file=src%2Fengine%2Ftest%2Fstate-source.test.ts&format=json