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

Function priority

graph-ui/src/galaxy/GalaxyNavigator.tsx:106–106  ·  view source on GitHub ↗
(choice: Choice)

Source from the content-addressed store, hash-verified

104 scope: { kind: folder ? 'folder' : 'file', path: path.replace(/\/$/, ''), name: path } });
105 }
106 const priority = (choice: Choice) => searchPriority(choice, needle);
107 const unique = new Map(choices.map(choice => [choice.key, choice]));
108 for (const choice of remote) if (!unique.has(choice.key)) unique.set(choice.key, choice);
109 return [...unique.values()].sort((a, b) => priority(a) - priority(b) || a.name.localeCompare(b.name)).slice(0, 12);

Callers 1

GalaxyNavigatorFunction · 0.70

Calls 1

searchPriorityFunction · 0.85

Tested by

no test coverage detected