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

Function priority

graph-ui/src/architecture/repository-map.ts:57–58  ·  view source on GitHub ↗
(a: GraphNode, b: GraphNode)

Source from the content-addressed store, hash-verified

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
60/** Linear in the already loaded graph. Every aggregate retains its real edges. */
61export function repositoryMap(graph: GraphData): RepositoryMap {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected