MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / formatTextCodeBlock

Function formatTextCodeBlock

src/gateway/bindingRuntime.ts:637–640  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

635}
636
637function formatTextCodeBlock(text: string): string {
638 const safe = text.trim().replace(/```/g, '``\u200b`');
639 return `\n\`\`\`text\n${safe}\n\`\`\`\n`;
640}
641
642function renderJson(value: unknown, maxChars: number): string {
643 try {

Callers 2

constructorMethod · 0.70
formatPermissionRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected