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

Function node

graph-ui/src/architecture/semantic-graph.test.ts:5–8  ·  view source on GitHub ↗
(id: number, file: string, name = `symbol${id}`, status: GraphNode['status'] = 'normal')

Source from the content-addressed store, hash-verified

3import type { GraphData, GraphNode } from '../galaxy/types';
4
5const node = (id: number, file: string, name = `symbol${id}`, status: GraphNode['status'] = 'normal'): GraphNode => ({
6 id, name, label: 'Function', file_path: file, qualified_name: `fixture.${name}`, status,
7 start_line: 10, end_line: 30, x: 0, y: 0, z: 0, color: '', size: 1,
8});
9const fixture: GraphData = { nodes: [node(1, 'src/api/server.ts', 'start', 'entry'),
10 node(2, 'src/service/users.ts', 'users'), node(3, 'src/store/db.ts', 'save'),
11 node(4, 'src/service/read.ts', 'read')], total_nodes: 4, edges: [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected