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

Function field

graph-ui/src/galaxy/selected-node.ts:21–25  ·  view source on GitHub ↗
(value: string | undefined, name: string)

Source from the content-addressed store, hash-verified

19 }
20 const truncatedFields: string[] = [];
21 const field = (value: string | undefined, name: string) => {
22 if (value === undefined || value.length <= 256) return value;
23 truncatedFields.push(name);
24 return `${value.slice(0, 256)}…`;
25 };
26 const selectedNode = {
27 name: field(selected.name, 'name'),
28 qualifiedName: field(selected.qualified_name, 'qualifiedName'),

Callers 10

selectedGraphContextFunction · 0.70
grammar.jsFile · 0.50
grammar.jsFile · 0.50
grammar.jsFile · 0.50
statementsFunction · 0.50
define-grammar.jsFile · 0.50
grammar.jsFile · 0.50
grammar.jsFile · 0.50

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected