Versions 205 to 206
Lines 256–270 at 206 (were 256–261 at 205)
258258
259+/** A line in its file's packed history: [n, parent code, writer seq, k, 1 when it replaces its parent]. */
267+
Lines 303–310 at 206 (were 294–299 at 205)
296305 indexAcceptedAtom?: (atom: Atom, files: readonly string[], storage: GraphStateStorage) => void;
306+ /** false: a new stored graph keeps no packed file history, and lays files out line by line (tests of that path). */
Lines 594–651 at 206 (were 583–591 at 205)
588604
605+ // Each file's line history packed, in pages (abso Capacity) ---------------------------------------------------
606+ // For each file, by its path index: every line written in it ([n, parent code, writer seq, k, replaces]) and its
607+ // text, every delete of one of those lines ([n, deleter seq]), and every attribute set on it ([seq, name, value]).
608+ // Appended as atoms are added, so a view lays a file out from a few pages instead of a row read per line. Kept from
610+
617+ /** Whether this graph's files are packed: read once, when first asked, so opening reads nothing. */
620+ this.#packedKnown ??= !!this.#storage && this.#storage.read("file-lines:meta", "format") === 1;
623+
648+
589649 /** Where an atom's key and delete lists are when the graph doesn't keep them (#46): the stored atom. */
Lines 1437–1446 at 206 (were 1377–1382 at 205)
13801444
13811445 if (this.#storage) this.withProjectionScratch((scratch) => this.#validateAcceptedAtom(atom, scratch));
Lines 1489–1507 at 206 (were 1425–1435 at 205)
Lines 1522–1547 at 206 (were 1450–1455 at 205)
14501522
1542+ run.lines.map((text) => (typeof text === "string" && text.length <= PACKED_TEXT ? text : null)),
Lines 1565–1572 at 206 (were 1473–1478 at 205)
1569+ for (const a of frozen.attrs ?? []) this.#fileAttrs!.append(String(this.#pathOf(a.file)), [seq, a.name, a.value]);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 205 206 src/engine/graph.ts --json
- JSON
- /christopher/abso-core/compare/205..206?file=src%2Fengine%2Fgraph.ts&format=json