(healthPath: string)
| 93 | } |
| 94 | |
| 95 | export async function readHealthFile(healthPath: string): Promise<CodebaseHealthArtifact | null> { |
| 96 | try { |
| 97 | const content = await fs.readFile(healthPath, 'utf-8'); |
| 98 | return normalizeHealthArtifact(JSON.parse(content)); |
| 99 | } catch { |
| 100 | return null; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | export function normalizeHealthLookupKey(filePath: string, rootPath?: string): string { |
| 105 | const normalized = filePath.replace(/\\/g, '/').replace(/^\.\//, ''); |
no test coverage detected