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

Method edgeLabel

src/mcp/tools.ts:9254–9261  ·  view source on GitHub ↗

* Relationship label for a non-`calls` edge in callers/callees lists. A * function-as-value edge (#756) is the high-signal one: `callers(cb)` * showing "via callback registration" tells the agent this is where the * callback is WIRED, not where it's invoked.

(edge: Edge)

Source from the content-addressed store, hash-verified

9252 * callback is WIRED, not where it's invoked.
9253 */
9254 private edgeLabel(edge: Edge): string | null {
9255 if (edge.kind === 'calls') return null;
9256 if (edge.metadata?.fnRef === true) return 'callback registration';
9257 if (edge.kind === 'instantiates') return 'instantiation';
9258 if (edge.kind === 'imports') return 'import';
9259 if (edge.kind === 'references') return 'reference';
9260 return edge.kind;
9261 }
9262
9263 private formatImpact(symbol: string, impact: Subgraph): string {
9264 const nodeCount = impact.nodes.size;

Callers 1

collectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected