MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / memoryStore

Function memoryStore

graph-ui/src/agents/agent-preference.test.ts:23–32  ·  view source on GitHub ↗
(seed: Record<string, string> = {})

Source from the content-addressed store, hash-verified

21import type { PreferenceStore } from './agent-preference';
22
23function memoryStore(seed: Record<string, string> = {}): PreferenceStore & { map: Map<string, string> } {
24 const map = new Map<string, string>(Object.entries(seed));
25 return {
26 map,
27 getItem: (key) => map.get(key) ?? null,
28 setItem: (key, value) => {
29 map.set(key, value);
30 },
31 };
32}
33
34describe('die Wahl am Instrument', () => {
35 it('startet kompakt, mit beiden Akteursarten und ohne einen einzigen Schalter an', () => {

Callers 1

Calls 1

getMethod · 0.65

Tested by

no test coverage detected