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

Method getIndexBuildInfo

src/index.ts:2286–2291  ·  view source on GitHub ↗

* Which engine built the current index: the package version + extraction * version stamped at the last full `indexAll`. Either field is null for an * index built before stamping existed (treated as stale). See * `extraction-version.ts` and `isIndexStale()`.

()

Source from the content-addressed store, hash-verified

2284 * `extraction-version.ts` and `isIndexStale()`.
2285 */
2286 getIndexBuildInfo(): { version: string | null; extractionVersion: number | null } {
2287 const version = this.queries.getMetadata('indexed_with_version');
2288 const ev = this.queries.getMetadata('indexed_with_extraction_version');
2289 const parsed = ev != null ? parseInt(ev, 10) : NaN;
2290 return { version, extractionVersion: Number.isFinite(parsed) ? parsed : null };
2291 }
2292
2293 /**
2294 * True when the on-disk index was built by an engine whose extraction is

Callers 6

isIndexStaleMethod · 0.95
handleStatusMethod · 0.80
buildStatsFunction · 0.80
mainFunction · 0.80
upgrade.test.tsFile · 0.80

Calls 1

getMetadataMethod · 0.80

Tested by

no test coverage detected