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

Function node

graph-ui/src/architecture/source-metrics.test.ts:6–8  ·  view source on GitHub ↗
(id: number, file_path: string, label: string, start_line?: number, end_line?: number)

Source from the content-addressed store, hash-verified

4import { collectSourceMetrics, measureSourceNode, scopeBrickHeights, sourceBrickHeight, sourceLanguage, languageColor, sourceNodeSizePercent } from './source-metrics';
5
6const node = (id: number, file_path: string, label: string, start_line?: number, end_line?: number): GraphNode => ({
7 id, file_path, label, start_line, end_line, name: `node${id}`, x: 0, y: 0, z: 0, size: 1, color: '',
8});
9const graph: GraphData = { nodes: [node(1, 'src/api/a.ts', 'File', 0, 0), node(2, 'src/api/a.ts', 'Module', 1, 100),
10 node(3, 'src/api/a.ts', 'Class', 2, 95), node(4, 'src/api/a.ts', 'Method', 10, 80),
11 node(5, 'src/api/b.py', 'Module', 1, 300), node(6, 'src/api/b.py', 'Module', 1, 300),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected