Versions 7 to 318
new file, 242 lines
8+import { indexAcceptedProjectionAtom, ProjectionAtomIndex } from "../experimental/projection-atom-index.ts";
13+
14+test("accepted atom indexing preserves the original digest without serializing the whole atom", (t) => {
17+ const repo = Repo.init({ "a.txt": `${"x".repeat(16383)}\ud83d\ude80\n${"\u0000".repeat(20000)}\n` });
28+
39+ assert.deepEqual(descriptor.item("inserts", 0), { file: "a.txt", parent: "^a.txt", lines: 1000 });
45+ assert.throws(() => new ProjectionAtomIndex(db).put(atom, digest, ["a.txt"]), /already exists/);
51+
106+
146+
147+test("indexed adoption reopens through dependencies, attributes, deletion and reverse removal without atom reads", () => {
185+ const p = new ExperimentalMarkerProjection(db, new Graph({ storage: db }), "a.txt", "indexed");
202+ const actual = new ExperimentalMarkerProjection(db, new Graph({ storage: db }), "a.txt", "indexed");
216+
238+ assert.throws(() => new Graph({ indexAcceptedAtom: indexAcceptedProjectionAtom }), /requires persistent/);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 7 318 src/engine/test/projection-atom-index.test.ts --json
- JSON
- /christopher/abso-core/compare/7..318?file=src%2Fengine%2Ftest%2Fprojection-atom-index.test.ts&format=json