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

Function narrower

graph-ui/src/galaxy/galaxy-strings.ts:85–85  ·  view source on GitHub ↗
(direction: TraceDirectionWord)

Source from the content-addressed store, hash-verified

83type TraceDirectionWord = 'both' | 'inbound' | 'outbound';
84/* With the direct neighbours unnamed the root alone has too many: fewer layers would not help, a narrower trace would. */
85const narrower = (direction: TraceDirectionWord) => (direction === 'both' ? 'trace one direction or fewer edge types' : 'trace fewer edge types');
86const namedFew = (sides: HierarchyNamedSides) => ['the root',
87 sides.incoming > 0 ? `its ${count(sides.incoming, 'incoming neighbour', 'incoming neighbours')}` : '',
88 sides.outgoing > 0 ? `its ${count(sides.outgoing, 'outgoing neighbour', 'outgoing neighbours')}` : ''].filter(Boolean).join(' and ');

Callers 1

galaxy-strings.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected