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

Function hasIndexArtifacts

scripts/run-eval.mjs:69–74  ·  view source on GitHub ↗
(rootPath)

Source from the content-addressed store, hash-verified

67}
68
69function hasIndexArtifacts(rootPath) {
70 const contextDir = path.join(rootPath, '.codebase-context');
71 const keywordIndexPath = path.join(contextDir, 'index.json');
72 const vectorDirPath = path.join(contextDir, 'index');
73 return existsSync(keywordIndexPath) && existsSync(vectorDirPath);
74}
75
76async function maybeReindex(rootPath, skipReindex) {
77 if (skipReindex && hasIndexArtifacts(rootPath)) {

Callers 1

maybeReindexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected