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 237 to 238

Compare

+11 −0 in 2 places
Lines 820–835 at 238 (were 820–825 at 237)
820820 return this.#atoms.length;
821821 }
822822
823+ /**
824+ * How many atoms this graph object has accepted since it was made (abso Capacity): in memory, so a cache over the
825+ * graph can tell nothing was added without reading storage. A rolled-back add still counts, which only makes such a
826+ * cache look again.
827+ */
828+ get accepted(): number {
829+ return this.#accepted;
830+ }
831+ #accepted = 0;
823833 /** The id the next accepted atom must have. */
824834 nextId(): AtomId {
825835 return atomId(this.#atoms.length);
Lines 1540–1546 at 238 (were 1530–1535 at 237)
15301540 this.#lists ? this.#listReader(seq) : undefined,
15311541 );
15321542 this.#atoms.push(this.#storage ? atom : frozen);
1543+ this.#accepted++;
15331544 let lam = 0;
15341545 for (const d of deps) lam = Math.max(lam, this.lamport(d) + 1);
15351546 if (this.#lamportPages) this.#lamportPages.push(lam);
MCP
compare on this site's /mcp
CLI
abso diff 237 238 src/engine/graph.ts --json
JSON
/christopher/abso-core/compare/237..238?file=src%2Fengine%2Fgraph.ts&format=json