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

Function endpoint

graph-ui/src/architecture/route-graph-source.ts:46–52  ·  view source on GitHub ↗
(row: Record<string, string>, side: 'source' | 'target', label: string)

Source from the content-addressed store, hash-verified

44 return Number.isSafeInteger(result) && result >= 0 ? result : undefined;
45}
46function endpoint(row: Record<string, string>, side: 'source' | 'target', label: string): GraphNode | undefined {
47 const id = integer(row[side]);
48 if (id === undefined) return undefined;
49 return { id, label, name: clean(row[`${side}_name`]) ?? clean(row[`${side}_qn`]) ?? label,
50 qualified_name: clean(row[`${side}_qn`]), file_path: clean(row[`${side}_file`]),
51 start_line: integer(row[`${side}_line`]) || undefined, x: 0, y: 0, z: 0, size: 1, color: '' };
52}
53
54export interface RouteGraphOptions extends RpcClientOptions {
55 /** Read-only seam for deterministic pagination and incomplete-result tests. */

Callers 1

loadRouteGraphFunction · 0.85

Calls 2

integerFunction · 0.70
cleanFunction · 0.70

Tested by

no test coverage detected