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 211 to 212

Compare

+11 −0 in 2 places
Lines 262–268 at 212 (were 262–267 at 211)
262262export type PackedDelete = [number, number];
263263/** An attribute set on a file: [seq, name, value]. */
264264export type PackedAttr = [number, string, string | null];
265+const EMPTY_NUMBERS: readonly number[] = Object.freeze([]);
265266/** Lines longer than this aren't packed with their file; their text is read on its own. */
266267const PACKED_TEXT = 4096;
267268
Lines 880–895 at 212 (were 879–884 at 211)
879880 return out;
880881 }
881882
883+ /** The numbers of the lines an atom deletes, from the graph's packed copy: no lookup per line id. */
884+ *deletedNumbers(id: AtomId): IterableIterator<number> {
885+ const seq = this.#seq(id);
886+ if (this.#storage?.read("atom-delete-counts", String(seq)) !== undefined) {
887+ yield* storedLists<number>(this.#storage!, "atom-deletes").values(String(seq));
888+ return;
889+ }
890+ yield* this.#atomDeletes[seq] ?? EMPTY_NUMBERS;
891+ }
882893 /** How many lines an atom deletes, without reading its lists. */
883894 deleteCount(id: AtomId): number {
884895 const seq = this.#seq(id);
MCP
compare on this site's /mcp
CLI
abso diff 211 212 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/211..212?file=src%2Fengine%2Fgraph.ts&format=json