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

Method probe

src/ui-server/api/events.ts:471–479  ·  view source on GitHub ↗

* The current revision, or null when there is no readable index. * * A missing index is not an error here: `codegraph ui` refuses to start * without one, but a user can delete `.codegraph/` with the viewer open, and * every endpoint already says so in its own words when asked.

()

Source from the content-addressed store, hash-verified

469 * every endpoint already says so in its own words when asked.
470 */
471 private probe(): WireIndexRevision | null {
472 try {
473 const cg: CodeGraph = this.session.acquire();
474 const revision = cg.getIndexRevision();
475 return { lastIndexedAt: revision.lastIndexedAt, files: revision.fileCount };
476 } catch {
477 return null;
478 }
479 }
480}

Callers 2

ensureWatchingMethod · 0.95
checkIndexMethod · 0.95

Calls 2

acquireMethod · 0.45
getIndexRevisionMethod · 0.45

Tested by

no test coverage detected