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 119 to 120

Compare

+6 −2 in 1 place
Lines 260–275 at 120 (were 260–271 at 119)
260260}
261261
262262/** Append-only per-key lists, retaining at most one fixed-size page per iterator. */
263−export function storedLists<V>(storage: GraphStateStorage, name: string) {
263+export function storedLists<V>(
264+ storage: GraphStateStorage,
265+ name: string,
266+ legacyKey = (key: string) => JSON.stringify(["string", key]),
267+) {
264268 const pageSize = 256;
265269 // The previous experimental layout stored one whole historical list per key.
266270 const length = (key: string) => {
267271 const stored = storage.read(`${name}:lengths`, key) as number | undefined;
268− if (stored === undefined && storage.read(name, JSON.stringify(["string", key])) !== undefined)
272+ if (stored === undefined && storage.read(name, legacyKey(key)) !== undefined)
269273 throw new Error(`writer list index ${name} requires canonical-log adoption`);
270274 const count = stored ?? 0;
271275 if (!Number.isSafeInteger(count) || count < 0) throw new Error(`invalid writer list count in ${name}`);
MCP
compare on this site's /mcp
CLI
abso diff 119 120 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/119..120?file=src%2Fengine%2Fstate-source.ts&format=json