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

Function add

graph-ui/src/browser-ai/question-intent.ts:185–185  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

183export function knownNames(sources: { galaxy?: GalaxyEvidence; texts: readonly string[]; names: readonly string[] }): (word: string) => boolean {
184 const words = new Set<string>();
185 const add = (text: string) => { for (const word of text.match(/[\p{L}\p{N}_][\p{L}\p{N}_.-]*/gu) ?? []) words.add(word.toLowerCase()); };
186 sources.texts.forEach(add);
187 const lastPart = (name: string) => (name.split(/[/.:]/).filter(Boolean).pop() ?? name).toLowerCase();
188 sources.names.forEach(name => { words.add(name.toLowerCase()); words.add(lastPart(name)); });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected