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 264 to 318

Compare

+11 −1 in 2 places
Lines 348–356 at 318 (were 348–354 at 264)
348348 return new Proxy([] as T[], {
349349 get(target, key, receiver) {
350350 if (key === "length") return length();
351− if (indexKey(key)) return Number(key) < length() ? read(key) : undefined;
351+ // No length read first (abso Capacity): set writes the row and the length together and nothing shrinks, so no
352+ // row lies past the length. Half of a cold layout's reads were this length.
353+ if (indexKey(key)) return read(key);
352354 return Reflect.get(target, key, receiver);
353355 },
354356 set(_target, key, value) {
Lines 421–434 at 318 (were 419–424 at 264)
419421 }
420422 for (const [key] of storage.entries(`${name}:lengths`)) yield key;
421423 },
424+ /** Values [index * PAGE, (index + 1) * PAGE) of `key`'s list: one page, not the whole list (abso Capacity). */
425+ pageAt(key: string, index: number): readonly V[] {
426+ const count = length(key);
427+ const values = page(key, index);
428+ if (values.length !== Math.min(pageSize, count - index * pageSize))
429+ throw new Error(`incomplete writer list page in ${name}`);
430+ return values;
431+ },
422432 *values(key: string): IterableIterator<V> {
423433 const count = length(key);
424434 for (let start = 0; start < count; start += pageSize) {
MCP
compare on this site's /mcp
CLI
abso diff 264 318 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/264..318?file=src%2Fengine%2Fstate-source.ts&format=json