MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / writeMemoriesFile

Function writeMemoriesFile

src/memory/store.ts:107–110  ·  view source on GitHub ↗
(memoryPath: string, memories: Memory[])

Source from the content-addressed store, hash-verified

105}
106
107export async function writeMemoriesFile(memoryPath: string, memories: Memory[]): Promise<void> {
108 await fs.mkdir(path.dirname(memoryPath), { recursive: true });
109 await fs.writeFile(memoryPath, JSON.stringify(memories, null, 2));
110}
111
112export async function appendMemoryFile(
113 memoryPath: string,

Callers 2

appendMemoryFileFunction · 0.85
removeMemoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected