* 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
()
| 1163 | * `codegraph status`. |
| 1164 | */ |
| 1165 | getIndexState(): 'indexing' | 'complete' | 'partial' | 'failed' | null { |
| 1166 | const raw = this.queries.getMetadata('index_state'); |
| 1167 | return raw === 'indexing' || raw === 'complete' || raw === 'partial' || raw === 'failed' |
| 1168 | ? raw |
| 1169 | : null; |
| 1170 | } |
| 1171 | |
| 1172 | /** |
| 1173 | * Which engine built the current index: the package version + extraction |
no test coverage detected