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

Function facts

graph-ui/src/browser-ai/chat-model.ts:163–163  ·  view source on GitHub ↗
(block: string)

Source from the content-addressed store, hash-verified

161 if (!turn.answeredFrom) return turn.answer;
162 const blocks = turn.answer.replace(CODE_LINES, '').split(/\n{2,}/).map(block => block.trim()).filter(block => block && !/^_[^\n]*_$/.test(block));
163 const facts = (block: string) => /^(?:- |\d+\. )/.test(block);
164 if (turn.answeredFrom === 'grounded') {
165 const sentence = blocks.filter(block => !facts(block));
166 return (sentence.length ? sentence : blocks).join('\n\n');

Callers 1

historyAnswerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected