(rootDir: string, fileName: string)
| 415 | } |
| 416 | |
| 417 | export async function loadEmbeddingCache(rootDir: string, fileName: string): Promise<EmbeddingCache> { |
| 418 | try { |
| 419 | return JSON.parse(await readFile(join(rootDir, CACHE_DIR, fileName), "utf-8")); |
| 420 | } catch { |
| 421 | return {}; |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | export async function saveEmbeddingCache(rootDir: string, cache: EmbeddingCache, fileName: string): Promise<void> { |
| 426 | await ensureMcpDataDir(rootDir); |
no outgoing calls
no test coverage detected