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

Method getResolvedNavigations

src/db/queries.ts:5275–5290  ·  view source on GitHub ↗

* The `navigates` edges a router's resolver made (not a synthesizer's), with * the source file and language a resurrection needs — the navigation calls * a sync re-resolves after a route appeared or went away.

()

Source from the content-addressed store, hash-verified

5273 * a sync re-resolves after a route appeared or went away.
5274 */
5275 getResolvedNavigations(): Array<Edge & { edgeId: number; sourceFilePath: string; sourceLanguage: Language }> {
5276 const rows = this.db
5277 .prepare(
5278 `SELECT e.*, src.file_path AS source_file_path, src.language AS source_language
5279 FROM edges e
5280 JOIN nodes src ON src.id = e.source
5281 WHERE e.kind = 'navigates' AND (e.provenance IS NULL OR e.provenance != 'heuristic')`
5282 )
5283 .all() as Array<EdgeRow & { source_file_path: string; source_language: Language }>;
5284 return rows.map((row) => ({
5285 ...rowToEdge(row),
5286 edgeId: row.id,
5287 sourceFilePath: row.source_file_path,
5288 sourceLanguage: row.source_language,
5289 }));
5290 }
5291
5292 /**
5293 * The keys failed references wait for a module under (`module:pages`), each

Callers 2

reopenNavigationsForMethod · 0.80
navigationStateFunction · 0.80

Calls 4

rowToEdgeFunction · 0.85
mapMethod · 0.80
allMethod · 0.65
prepareMethod · 0.65

Tested by 1

navigationStateFunction · 0.64