MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getIndexState

Method getIndexState

src/index.ts:2290–2295  ·  view source on GitHub ↗

* Completeness of the last full index run. `'complete'` is the only good * state. `'indexing'` after the fact means a run was killed mid-index (OOM, * SIGKILL, liveness watchdog) and the on-disk index is truncated; * `'partial'` means the run finished but silently dropped files * (discov

()

Source from the content-addressed store, hash-verified

2288 * `codegraph status`.
2289 */
2290 getIndexState(): 'indexing' | 'complete' | 'partial' | 'failed' | null {
2291 const raw = this.queries.getMetadata('index_state');
2292 return raw === 'indexing' || raw === 'complete' || raw === 'partial' || raw === 'failed'
2293 ? raw
2294 : null;
2295 }
2296
2297 /**
2298 * Which engine built the current index: the package version + extraction

Callers 7

syncMethod · 0.95
buildStatsFunction · 0.80
readLastIndexRunFunction · 0.80
mainFunction · 0.80
sync.test.tsFile · 0.80

Calls 1

getMetadataMethod · 0.80

Tested by

no test coverage detected