(cache: EmbeddingCache, relativePath: string)
| 143 | } |
| 144 | |
| 145 | function removeFileScopedCacheEntries(cache: EmbeddingCache, relativePath: string): void { |
| 146 | const definitionPrefix = `id:${relativePath}:`; |
| 147 | const callsitePrefix = `${CALLSITE_CACHE_PREFIX}${relativePath}:`; |
| 148 | for (const key of Object.keys(cache)) { |
| 149 | if (key.startsWith(definitionPrefix) || key.startsWith(callsitePrefix)) { |
| 150 | delete cache[key]; |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | async function buildIdentifierDocsForFile(rootDir: string, relativePath: string): Promise<IdentifierDoc[]> { |
| 156 | const normalized = normalizeRelativePath(relativePath); |
no outgoing calls
no test coverage detected