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

Method getResolvedNavigations

src/db/queries.ts:5164–5179  ·  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

5162 * a sync re-resolves after a route appeared or went away.
5163 */
5164 getResolvedNavigations(): Array<Edge & { edgeId: number; sourceFilePath: string; sourceLanguage: Language }> {
5165 const rows = this.db
5166 .prepare(
5167 `SELECT e.*, src.file_path AS source_file_path, src.language AS source_language
5168 FROM edges e
5169 JOIN nodes src ON src.id = e.source
5170 WHERE e.kind = 'navigates' AND (e.provenance IS NULL OR e.provenance != 'heuristic')`
5171 )
5172 .all() as Array<EdgeRow & { source_file_path: string; source_language: Language }>;
5173 return rows.map((row) => ({
5174 ...rowToEdge(row),
5175 edgeId: row.id,
5176 sourceFilePath: row.source_file_path,
5177 sourceLanguage: row.source_language,
5178 }));
5179 }
5180
5181 /**
5182 * 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