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

Function navigationState

__tests__/sync-navigation-retry.test.ts:570–573  ·  view source on GitHub ↗
(graph: CodeGraph)

Source from the content-addressed store, hash-verified

568
569 /** `<file> failed` per failed `navigate` call, `<file> → <route>` per navigation. */
570 const navigationState = (graph: CodeGraph): string[] => [
571 ...internals(graph).queries.getFailedCallsByTail(['navigate']).map((ref) => `${ref.filePath} failed`),
572 ...internals(graph).queries.getResolvedNavigations().map((e) => `${e.sourceFilePath} → ${graph.getNode(e.target)?.name}`),
573 ].sort();
574
575 /** The app's `/` route, moved to `path` — a route of that app the sync added. */
576 const routeAt = (route: Node, path: string): Node => ({ ...route, id: route.id.replace(/:\/$/, `:${path}`), name: path });

Callers 1

Calls 5

mapMethod · 0.80
getFailedCallsByTailMethod · 0.80
getNodeMethod · 0.80
internalsFunction · 0.70

Tested by

no test coverage detected