MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / hops

Function hops

graph-ui/src/galaxy/scope-path.test.ts:6–6  ·  view source on GitHub ↗
(steps: ReturnType<typeof shortestScopePath>)

Source from the content-addressed store, hash-verified

4
5const edge = (id: number, source: number, target: number, type = 'CALLS', line?: number): GraphEdge => ({ id, source, target, type, line });
6const hops = (steps: ReturnType<typeof shortestScopePath>) => steps?.map(step => `${step.from}>${step.to}:${step.edge.id}`);
7
8describe('shortest path inside the loaded scope', () => {
9 // 1 -> 2 -> 3 -> 4, a shortcut 1 -> 4 typed IMPORTS, and a caller 5 -> 1.

Callers 1

scope-path.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected