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 259 to 260

Compare

+1 −15 in 3 places
Lines 41–47 at 260 (were 41–59 at 259)
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− /**
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− ) {
44+ constructor(source: GraphStateStorage, maxBytes = 1_048_576, maxEntries = 4096, maxEntryBytes = maxBytes) {
5745 if (
5846 !Number.isSafeInteger(maxBytes) ||
5947 maxBytes < 0 ||
Lines 55–60 at 260 (were 67–73 at 259)
6755 this.#maxBytes = maxBytes;
6856 this.#maxEntries = maxEntries;
6957 this.#maxEntryBytes = Math.min(maxEntryBytes, maxBytes);
70− this.#passThrough = passThrough;
7158 }
7259 get retainedBytes(): number {
7360 return this.#bytes;
Lines 74–79 at 260 (were 87–93 at 259)
8774 }
8875 }
8976 read(collection: string, key: string): unknown {
90− if (this.#passThrough(collection)) return this.#source.read(collection, key);
9177 const cacheKey = JSON.stringify([collection, key]);
9278 const hit = this.#cache.get(cacheKey);
9379 if (hit) {
MCP
compare on this site's /mcp
CLI
abso diff 259 260 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/259..260?file=src%2Fengine%2Fstate-source.ts&format=json