MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / cloneStore

Function cloneStore

apps/desktop/src/main/snapshots-db.ts:49–51  ·  view source on GitHub ↗
(data: StoreData)

Source from the content-addressed store, hash-verified

47const DIAGNOSTIC_DEDUP_WINDOW_MS = 200;
48
49function cloneStore(data: StoreData): StoreData {
50 return JSON.parse(JSON.stringify(data)) as StoreData;
51}
52
53function emptyStore(): StoreData {
54 return cloneStore(EMPTY_STORE);

Callers 3

emptyStoreFunction · 0.85
readStoreFunction · 0.85
writeStoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected