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

Function strength

graph-ui/src/galaxy/selection-evidence.ts:166–166  ·  view source on GitHub ↗
(item: unknown)

Source from the content-addressed store, hash-verified

164 const members = list ? { members: list.map(member => symbolIdentity(member, list.length === 1)) } : {};
165 const all = Array.isArray(relationships?.items) ? relationships.items : undefined;
166 const strength = (item: unknown) => { const total = row(item)?.count; return typeof total === 'number' ? total : 0; };
167 const items = all ? { items: [...all].sort((left, right) => strength(right) - strength(left)).slice(0, ARCHITECTURE_CONNECTIONS).map(item => {
168 const edge = row(item);
169 if (!edge || !Array.isArray(edge.evidence)) return item;

Callers 1

compactArchitectureFunction · 0.85

Calls 1

rowFunction · 0.70

Tested by

no test coverage detected