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

Function keep

graph-ui/tools/call-feedback-capture.mjs:101–104  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

99 // Was zwischen Seite und Modell-Worker hin und her geht: der echte Prompt.
100 window.__probeWorker = [];
101 const keep = (entry) => {
102 window.__probeWorker.push(entry);
103 if (window.__probeWorker.length > 4000) window.__probeWorker.splice(0, 1000);
104 };
105 const safe = (value) => {
106 try { return JSON.parse(JSON.stringify(value, (key, item) => (typeof item === 'string' && item.length > 20000 ? `${item.slice(0, 20000)}...` : item))); }
107 catch { return String(value); }

Callers 4

constructorMethod · 0.85
postMessageMethod · 0.85
store_collect_nodesFunction · 0.85
cr_preferFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected