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 257 to 258

Compare

+15 −1 in 3 places
Lines 41–59 at 258 (were 41–47 at 257)
4141 * all the news it was told: 4.3 MB for abso's 109 agents) otherwise push every small page out of the cache.
4242 */
4343 readonly #maxEntryBytes: number;
44− constructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096, maxEntryBytes = maxBytes) {
44+ /**
45+ * Collections read straight through, never kept (abso Capacity): a file's packed line pages are read only to lay the
46+ * file out, and the view keeps the layout, so keeping the pages too held them twice and pushed out the small rows
47+ * read on every call (an agent's tree re-read 3,500 of them each time).
48+ */
49+ readonly #passThrough: (collection: string) => boolean;
50+ constructor(
51+ source: GraphStateStorage,
52+ maxBytes = 1_048_576,
53+ maxEntries = 4096,
54+ maxEntryBytes = maxBytes,
55+ passThrough: (collection: string) => boolean = () => false,
56+ ) {
4557 if (
4658 !Number.isSafeInteger(maxBytes) ||
4759 maxBytes < 0 ||
Lines 67–73 at 258 (were 55–60 at 257)
5567 this.#maxBytes = maxBytes;
5668 this.#maxEntries = maxEntries;
5769 this.#maxEntryBytes = Math.min(maxEntryBytes, maxBytes);
70+ this.#passThrough = passThrough;
5871 }
5972 get retainedBytes(): number {
6073 return this.#bytes;
Lines 87–93 at 258 (were 74–79 at 257)
7487 }
7588 }
7689 read(collection: string, key: string): unknown {
90+ if (this.#passThrough(collection)) return this.#source.read(collection, key);
7791 const cacheKey = JSON.stringify([collection, key]);
7892 const hit = this.#cache.get(cacheKey);
7993 if (hit) {
MCP
compare on this site's /mcp
CLI
abso diff 257 258 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/257..258?file=src%2Fengine%2Fstate-source.ts&format=json