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

Method getIndexState

src/index.ts:1096–1101  ·  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

1094 * `codegraph status`.
1095 */
1096 getIndexState(): 'indexing' | 'complete' | 'partial' | 'failed' | null {
1097 const raw = this.queries.getMetadata('index_state');
1098 return raw === 'indexing' || raw === 'complete' || raw === 'partial' || raw === 'failed'
1099 ? raw
1100 : null;
1101 }
1102
1103 /**
1104 * Which engine built the current index: the package version + extraction

Callers 2

mainFunction · 0.80

Calls 1

getMetadataMethod · 0.80

Tested by

no test coverage detected