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

Function side

graph-ui/src/browser-ai/explanation-context.ts:267–274  ·  view source on GitHub ↗
(name: 'incoming' | 'outgoing')

Source from the content-addressed store, hash-verified

265 if (galaxy) {
266 const words = relationshipWords[language];
267 const side = (name: 'incoming' | 'outgoing') => {
268 const groups = galaxy.relationships[name];
269 if (!sideLoaded(galaxy, name)) return name === 'incoming' ? words.incomingNotLoaded : words.outgoingNotLoaded;
270 if (!groups.length) return galaxy.truncated ? words.cut(name) : name === 'incoming' ? words.noIncoming : words.noOutgoing;
271 const total = groups.reduce((sum, group) => sum + group.count, 0);
272 const line = name === 'incoming' ? words.incoming(total, galaxy.relationships.incomingSymbols) : words.outgoing(total, galaxy.relationships.outgoingSymbols);
273 return `${line.slice(0, -1)} (${groups.map(group => `${group.type} ${group.count}`).join(', ')}).`;
274 };
275 return [selectionSentence(galaxy, words)[0], side('incoming'), side('outgoing'), scopeSentence(galaxy, words)];
276 }
277 let parsed: Record<string, unknown> | undefined;

Callers 1

selectionSummaryFunction · 0.70

Calls 2

sideLoadedFunction · 0.90
reduceMethod · 0.80

Tested by

no test coverage detected