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

Function memoryStore

graph-ui/src/why/why-store.test.ts:14–22  ·  view source on GitHub ↗
(seed: Record<string, string> = {})

Source from the content-addressed store, hash-verified

12import { readWhyAnswer, recordWhyAnswer, whyKey } from './why-store';
13
14function memoryStore(seed: Record<string, string> = {}): KeyValueStore {
15 const map = new Map<string, string>(Object.entries(seed));
16 return {
17 getItem: (key) => map.get(key) ?? null,
18 setItem: (key, value) => {
19 map.set(key, value);
20 },
21 };
22}
23
24/** A store that refuses everything, as a browser with site data switched off does. */
25const refusing: KeyValueStore = {

Callers 1

why-store.test.tsFile · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected