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 205 to 206

Compare

+17 −0 in 1 place
Lines 413–435 at 206 (were 413–418 at 205)
413413 storage.write(`${name}:pages`, pageKey(key, index), values);
414414 storage.write(`${name}:lengths`, key, count + 1);
415415 },
416+ /** Append several values, writing each page they touch once. */
417+ appendAll(key: string, more: readonly V[]): void {
418+ if (more.length === 0) return;
419+ const count = length(key);
420+ let index = Math.floor(count / pageSize);
421+ let values = count % pageSize === 0 ? [] : page(key, index);
422+ if (values.length !== count % pageSize) throw new Error(`invalid writer list length in ${name}`);
423+ for (const value of more) {
424+ if (values.length === pageSize) {
425+ storage.write(`${name}:pages`, pageKey(key, index++), values);
426+ values = [];
427+ }
428+ values.push(value);
429+ }
430+ storage.write(`${name}:pages`, pageKey(key, index), values);
431+ storage.write(`${name}:lengths`, key, count + more.length);
432+ },
416433 };
417434}
418435
MCP
compare on this site's /mcp
CLI
abso diff 205 206 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/205..206?file=src%2Fengine%2Fstate-source.ts&format=json