MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / asIndexCorrupted

Function asIndexCorrupted

src/core/index-meta.ts:139–142  ·  view source on GitHub ↗
(message: string, error: unknown)

Source from the content-addressed store, hash-verified

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

Callers 2

readIndexMetaFunction · 0.85
validateIndexArtifactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected