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

Function scopeNode

graph-ui/src/architecture/SpatialArchitecture.tsx:139–140  ·  view source on GitHub ↗
(kind: 'area' | 'file', path: string)

Source from the content-addressed store, hash-verified

137 // its measure, the parts shown, its hotspot findings and the connections between the parts.
138 const openedEvidence = () => {
139 const scopeNode = (kind: 'area' | 'file', path: string): SemanticNode => ({ id: `${kind}:${path}`, kind, label: path, detail: '', position: [0, 0, 0], count: 0, members: [],
140 ...kind === 'area' ? { areaPath: path } : { filePath: path } });
141 // Largest first, areas before files: the first parts named are the ones that make up the area.
142 const parts = model.nodes.filter(node => (node.kind === 'area' || node.kind === 'file') && !node.external)
143 .map(node => ({ node, measure: measureSourceNode(node, catalog) }))

Callers 1

openedEvidenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected