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

Function rootFiles

graph-ui/src/architecture/source-metrics.ts:160–160  ·  view source on GitHub ↗
(node: SemanticNode)

Source from the content-addressed store, hash-verified

158 */
159export function scopeBrickHeights(nodes: SemanticNode[], lines: (node: SemanticNode) => number | undefined): Map<string, number> {
160 const rootFiles = (node: SemanticNode) => node.kind === 'area' && node.areaPath === '(root)';
161 const bricks = nodes.filter(node => (node.kind === 'area' || node.kind === 'file') && !node.external);
162 const reference = Math.max(1, ...bricks.filter(node => !rootFiles(node)).map(node => lines(node) ?? 0));
163 return new Map(bricks.map(node => [node.id, rootFiles(node) ? 0.35 : sourceBrickHeight(lines(node), reference)]));

Callers 1

scopeBrickHeightsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected