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

Function record

graph-ui/src/architecture/semantic-graph.ts:390–394  ·  view source on GitHub ↗
(route: GraphNode, node: GraphNode)

Source from the content-addressed store, hash-verified

388 // its own registration, its handlers and its callers.
389 const verdicts = new Map<string, boolean[]>();
390 const record = (route: GraphNode, node: GraphNode) => {
391 const file = node.file_path && !['{}', '-'].includes(node.file_path) ? node.file_path : undefined;
392 if (!file && node.status !== 'test') return;
393 const list = verdicts.get(identity(route)) ?? []; list.push(node.status === 'test' || TEST_SOURCE.test(file!)); verdicts.set(identity(route), list);
394 };
395 for (const node of graph.nodes) if (node.label === 'Route') record(node, node);
396 for (const edge of recorded) {
397 const route = edge.target.label === 'Route' ? edge.target : edge.source.label === 'Route' ? edge.source : undefined;

Callers 1

buildSemanticGraphFunction · 0.70

Calls 3

identityFunction · 0.70
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected