The call stops merging, says merge-called with what landed and refused, and raises merge-partial (scope delivery, id the call, urgent, resolver operator) in the module's findings; a later call landing every refused member clears it, and forge_partial_clear clears one by hand after the hand-act log took it. Builds: design 47 H §767; H-A-1, H-A-18, H-A-81 Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
12 lines
516 B
TypeScript
12 lines
516 B
TypeScript
// A state of the runtime in memory, for the tests of the merge calls (calls.ts, partials.ts).
|
|
export function memory() {
|
|
const kv = new Map<string, unknown>();
|
|
return { kv, st: {
|
|
get: async (k: string) => (kv.has(k) ? { key: k, value: structuredClone(kv.get(k)), revision: 1 } : null),
|
|
put: async (k: string, v: unknown) => { kv.set(k, structuredClone(v)); return 1; },
|
|
delete: async (k: string) => { kv.delete(k); },
|
|
keys: async () => [...kv.keys()].sort(),
|
|
watch: async () => {},
|
|
} };
|
|
}
|