MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / readHealthFile

Function readHealthFile

src/health/store.ts:95–102  ·  view source on GitHub ↗
(healthPath: string)

Source from the content-addressed store, hash-verified

93}
94
95export 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
104export function normalizeHealthLookupKey(filePath: string, rootPath?: string): string {
105 const normalized = filePath.replace(/\\/g, '/').replace(/^\.\//, '');

Callers 2

handleFunction · 0.85
handleFunction · 0.85

Calls 1

normalizeHealthArtifactFunction · 0.85

Tested by

no test coverage detected