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 131 to 132

Compare

+14 −0 in 2 places
Lines 16–22 at 132 (were 16–21 at 131)
1616 startNode,
1717} from "./keys.ts";
1818import { OrderedIndex, orderedChildKey } from "./ordered-index.ts";
19+import { withProjectionScratch } from "./projection-scratch.ts";
1920import {
2021 type GraphStateStorage,
2122 type StateMap,
Lines 636–654 at 132 (were 635–640 at 131)
635636 get hasOrderedChildren(): boolean {
636637 return this.#storage !== undefined;
637638 }
639+ /** Synchronous derived work against one graph identity. Scratch never commits. */
640+ withProjectionScratch<T>(operation: (scratch: GraphStateStorage) => T): T {
641+ if (!this.#storage) throw new Error("projection scratch requires persistent graph storage");
642+ const size = this.size;
643+ const lines = this.lineCount;
644+ return withProjectionScratch(
645+ this.#storage,
646+ () => {
647+ if (this.size !== size || this.lineCount !== lines) throw new Error("projection graph identity changed");
648+ },
649+ operation,
650+ );
651+ }
638652 #childPriority(n: number): string {
639653 const seq = this.writerSeqOf(n);
640654 return orderedChildKey({
MCP
compare on this site's /mcp
CLI
abso diff 131 132 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/131..132?file=src%2Fengine%2Fgraph.ts&format=json