MCPcopy Create free account
hub / github.com/garrytan/gstack / writeMemory

Function writeMemory

test/memory-cache-injection.test.ts:34–36  ·  view source on GitHub ↗
(nuggets: Array<{ nugget: string; applies_to_signal_keys: string[]; applied_at?: string }>)

Source from the content-addressed store, hash-verified

32});
33
34function writeMemory(nuggets: Array<{ nugget: string; applies_to_signal_keys: string[]; applied_at?: string }>) {
35 fs.writeFileSync(path.join(stateRoot, 'free-text-memory.json'), JSON.stringify({ nuggets }));
36}
37
38function runHook(stdin: object): { stdout: string; stderr: string; status: number; parsed: any } {
39 const env: Record<string, string> = {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected