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 117 to 118

Compare

+4 −0 in 2 places
Lines 251–257 at 118 (were 251–256 at 117)
251251}
252252
253253export interface StateMap<K, V> {
254+ keys(): IterableIterator<K>;
254255 get(key: K): V | undefined;
255256 set(key: K, value: V): StateMap<K, V>;
256257 has(key: K): boolean;
Lines 263–271 at 118 (were 262–267 at 117)
262263export function storedMap<K extends string | number, V>(storage: GraphStateStorage, name: string): StateMap<K, V> {
263264 const keyOf = (key: K) => JSON.stringify([typeof key, key]);
264265 const map: StateMap<K, V> = {
266+ *keys() {
267+ for (const [key] of storage.entries(name)) yield (JSON.parse(key) as [string, K])[1];
268+ },
265269 get: (key) => storage.read(name, keyOf(key)) as V | undefined,
266270 has: (key) => storage.read(name, keyOf(key)) !== undefined,
267271 set(key, value) {
MCP
compare on this site's /mcp
CLI
abso diff 117 118 src/engine/state-source.ts --json
JSON
/christopher/abso-core/compare/117..118?file=src%2Fengine%2Fstate-source.ts&format=json