* 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)
| 4844 | * callback is WIRED, not where it's invoked. |
| 4845 | */ |
| 4846 | private edgeLabel(edge: Edge): string | null { |
| 4847 | if (edge.kind === 'calls') return null; |
| 4848 | if (edge.metadata?.fnRef === true) return 'callback registration'; |
| 4849 | if (edge.kind === 'instantiates') return 'instantiation'; |
| 4850 | if (edge.kind === 'imports') return 'import'; |
| 4851 | if (edge.kind === 'references') return 'reference'; |
| 4852 | return edge.kind; |
| 4853 | } |
| 4854 | |
| 4855 | private formatImpact(symbol: string, impact: Subgraph): string { |
| 4856 | const nodeCount = impact.nodes.size; |