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

Function selection

graph-ui/src/browser-ai/relationship-answer.ts:246–246  ·  view source on GitHub ↗
(word: string)

Source from the content-addressed store, hash-verified

244 if (!evidence) continue;
245 const names = new Set([evidence.label, ...evidence.roots.map(root => root.name)].map(name => name.toLowerCase()));
246 const selection = (word: string) => names.has(word) || names.has(word.split(/[.:]/).pop()!) || SELF.has(word) || nearSelection(word, evidence);
247 const at = words.findIndex(selection);
248 if (at < 0) continue;
249 // The selection may take several words ("this class"); what follows them is the verb.

Callers

nothing calls this directly

Calls 1

nearSelectionFunction · 0.85

Tested by

no test coverage detected