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

Function id

graph-ui/src/galaxy/graph-scope.ts:34–38  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

32const BATCH_SIZE = 64;
33const number = (value: string | undefined): number | undefined => value !== undefined && value !== '' && Number.isFinite(Number(value)) ? Number(value) : undefined;
34const id = (value: string | undefined): number => {
35 const parsed = number(value);
36 if (parsed === undefined || !Number.isSafeInteger(parsed) || parsed < 0) throw new Error('Graph response contains an invalid identity.');
37 return parsed;
38};
39const nodeColumns = (alias: string, prefix: string) => [`id(${alias}) AS ${prefix}id`, `${alias}.label AS ${prefix}label`, `${alias}.name AS ${prefix}name`, `${alias}.qualified_name AS ${prefix}qn`, `${alias}.file_path AS ${prefix}file`, `${alias}.start_line AS ${prefix}start_line`, `${alias}.end_line AS ${prefix}end_line`].join(', ');
40
41/** The cursor binds a complete query result to one graph generation. Every

Callers 4

readGraphPagesFunction · 0.85
readNodeFunction · 0.85
loadGraphScopeFunction · 0.85
frontierCallCountFunction · 0.85

Calls 1

numberFunction · 0.70

Tested by

no test coverage detected