diff --git a/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts b/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts index f74cb7e..d77155b 100644 --- a/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts +++ b/understand-anything-plugin/packages/core/src/analyzer/graph-builder.ts @@ -328,14 +328,15 @@ export class GraphBuilder { console.warn(`[GraphBuilder] Duplicate node ID "${childId}" — skipping`); continue; } + const name = `${ep.method ?? ""} ${ep.path}`.trim() this.nodeIds.add(childId); this.nodes.push({ id: childId, type: "endpoint", - name: `${ep.method ?? ""} ${ep.path}`.trim(), + name, filePath, lineRange: ep.lineRange, - summary: `Endpoint: ${ep.method ?? ""} ${ep.path}`.trim(), + summary: `Endpoint: ${name}`, tags: [], complexity: meta.complexity, });