(message: string, error: unknown)
| 137 | } |
| 138 | |
| 139 | function asIndexCorrupted(message: string, error: unknown): IndexCorruptedError { |
| 140 | const suffix = error instanceof Error ? error.message : String(error); |
| 141 | return new IndexCorruptedError(`${message}: ${suffix}`); |
| 142 | } |
| 143 | |
| 144 | export async function readIndexMeta(rootDir: string): Promise<IndexMeta> { |
| 145 | const metaPath = path.join(rootDir, CODEBASE_CONTEXT_DIRNAME, INDEX_META_FILENAME); |
no outgoing calls
no test coverage detected