(rootDir: string)
| 97 | } |
| 98 | |
| 99 | async function persistGraph(rootDir: string): Promise<void> { |
| 100 | const store = graphCache.get(rootDir); |
| 101 | if (!store) return; |
| 102 | await ensureMcpDataDir(rootDir); |
| 103 | await writeFile(join(rootDir, CACHE_DIR, GRAPH_FILE), JSON.stringify(store, null, 2)); |
| 104 | } |
| 105 | |
| 106 | function scheduleSave(rootDir: string): void { |
| 107 | const existing = saveTimeout.get(rootDir); |
no test coverage detected