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

Function codeFactsMarkdown

graph-ui/src/browser-ai/code-facts.ts:185–190  ·  view source on GitHub ↗
(facts: CodeFacts, language: 'en' | 'de')

Source from the content-addressed store, hash-verified

183
184/** "In the source:" with the lines as a code block and what did not fit, in the language of the question. */
185export function codeFactsMarkdown(facts: CodeFacts, language: 'en' | 'de'): string {
186 const words = chatRound3Text[language];
187 const mark = facts.lines.some(line => line.includes('```')) ? '~~~' : '```';
188 const more = facts.more ? `\n\n${facts.unit === 'members' ? words.moreMembers(facts.more) : words.moreLines(facts.more)}` : '';
189 return `${words.inSource}\n\n${mark}${facts.fence}\n${facts.lines.join('\n')}\n${mark}${more}`;
190}

Callers 4

explainFunction · 0.90
sendFunction · 0.90
code-facts.test.tsFile · 0.90
codeSourceFactsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected