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

Function node

graph-ui/src/architecture/repository-guide.test.ts:6–8  ·  view source on GitHub ↗
(id: number, file_path: string, name: string, status: GraphNode['status'] = 'normal')

Source from the content-addressed store, hash-verified

4import type { GraphData, GraphNode } from '../galaxy/types';
5
6const node = (id: number, file_path: string, name: string, status: GraphNode['status'] = 'normal'): GraphNode => ({
7 id, file_path, name, status, label: 'Function', x: 0, y: 0, z: 0, size: 1, color: '',
8});
9const graph: GraphData = { total_nodes: 3, nodes: [node(1, 'src/api/main.ts', 'main', 'entry'),
10 node(2, 'src/service/users.ts', 'users'), node(3, 'src/store/save.ts', 'save')],
11 edges: [{ source: 1, target: 2, type: 'CALLS' }, { source: 2, target: 3, type: 'IMPORTS' }, { source: 2, target: 3, type: 'CALLS' }] };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected