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

Function node

graph-ui/src/why/selection-context.test.ts:5–8  ·  view source on GitHub ↗
(id: number, status: GraphNode['status'] = 'normal')

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected