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

Function node

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected