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

Function inScope

graph-ui/src/architecture/semantic-graph.ts:526–528  ·  view source on GitHub ↗
(node: GraphNode)

Source from the content-addressed store, hash-verified

524 let scopedEvidence = evidence;
525 if (options.areaPath || options.filePath) {
526 const inScope = (node: GraphNode) => sourceNode(node)
527 && (!options.visibleFiles || options.visibleFiles.has(node.file_path!))
528 && (options.filePath ? node.file_path === options.filePath : levelOf(node.file_path!) !== undefined);
529 // An outside area is named where its trail leaves the opened one: a sibling, not a repository root area.
530 const reference = scope ? areaLevels(scope) : trailOf(options.filePath!);
531 const outsideArea = (path: string) => {

Callers 1

buildSemanticGraphFunction · 0.85

Calls 2

sourceNodeFunction · 0.85
levelOfFunction · 0.70

Tested by

no test coverage detected