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

Function browserStore

graph-ui/src/checklist/understanding-store.ts:222–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 * working with no record at all, which is the same state a first visit is in.
221 */
222export function browserStore(): KeyValueStore {
223 try {
224 const probe = globalThis.localStorage;
225 if (probe !== undefined && probe !== null) {
226 return probe;
227 }
228 } catch {
229 // falls through to the forgetful store
230 }
231 const memory = new Map<string, string>();
232 return {
233 getItem: (key) => memory.get(key) ?? null,
234 setItem: (key, value) => {
235 memory.set(key, value);
236 },
237 };
238}

Callers 1

ProjectWindowViewFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected