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

Function node

graph-ui/src/architecture/hotspot-map.test.ts:7–7  ·  view source on GitHub ↗
(id: number, name: string, file: string)

Source from the content-addressed store, hash-verified

5import { buildHotspotGraph, collectHotspots, gravityPercent, gravityStrength, hotspotSignals, hotspotsForNode } from './hotspot-map';
6
7const node = (id: number, name: string, file: string): GraphNode => ({ id, name, qualified_name: `project.${name}`, label: 'Function', file_path: file, start_line: 10, end_line: 80, x: 0, y: 0, z: 0, size: 1, color: '' });
8const graph: GraphData = { nodes: [node(1, 'busy', 'src/api/busy.ts'), node(2, 'complex', 'src/api/complex.ts'), node(3, 'plain', 'other/plain.py')],
9 edges: [{ id: 5, source: 1, target: 2, type: 'CALLS' }], total_nodes: 3 };
10const findings: ArchitectureHotspot[] = [{ name: 'busy', qualifiedName: 'project.busy', fanIn: 100 },

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected