(memoryPath: string, memories: Memory[])
| 105 | } |
| 106 | |
| 107 | export 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 | |
| 112 | export async function appendMemoryFile( |
| 113 | memoryPath: string, |
no outgoing calls
no test coverage detected