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

Method fmt

src/mcp/tools.ts:4262–4266  ·  view source on GitHub ↗
(e: { node: Node; edge: Edge })

Source from the content-addressed store, hash-verified

4260 private formatTrail(cg: CodeGraph, node: Node): string {
4261 const TRAIL_CAP = 12;
4262 const fmt = (e: { node: Node; edge: Edge }) => {
4263 const base = `${e.node.name} (${e.node.filePath}:${e.node.startLine})`;
4264 const synth = this.synthEdgeNote(e.edge);
4265 return synth ? `${base} [${synth.compact}]` : base;
4266 };
4267 const collect = (edges: Array<{ node: Node; edge: Edge }>): Array<{ node: Node; edge: Edge }> => {
4268 const seen = new Set<string>([node.id]);
4269 const out: Array<{ node: Node; edge: Edge }> = [];

Callers

nothing calls this directly

Calls 1

synthEdgeNoteMethod · 0.95

Tested by

no test coverage detected