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

Function scopedLabel

graph-ui/src/architecture/semantic-graph.ts:493–493  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

491 return at < 0 ? undefined : at + 1 < trail.length ? { kind: 'area', path: trail[at + 1] } : { kind: 'file', path };
492 };
493 const scopedLabel = (path: string) => scope && path.startsWith(`${scope}/`) ? path.slice(scope.length + 1) : path;
494 for (const node of graph.nodes.filter(sourceNode).sort(nodeOrder)) {
495 if (options.visibleFiles && !options.visibleFiles.has(node.file_path!)) continue;
496 if (options.filePath) {

Callers 1

buildSemanticGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected