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

Function isSource

graph-ui/src/architecture/repository-map.ts:55–56  ·  view source on GitHub ↗
(node: GraphNode)

Source from the content-addressed store, hash-verified

53export const areaLevels = (area: string): string[] => area === '(root)' ? [area] : areaTrail(`${area}/-`);
54
55const isSource = (node: GraphNode) => Boolean(node.file_path && node.file_path !== '{}'
56 && !['Project', 'Folder', 'Package', 'Branch'].includes(node.label));
57const priority = (a: GraphNode, b: GraphNode) => (b.in_calls ?? 0) - (a.in_calls ?? 0)
58 || (b.out_calls ?? 0) - (a.out_calls ?? 0) || a.name.localeCompare(b.name);
59

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected