MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / formatResponse

Function formatResponse

lib/plugin/analyze.js:393–403  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

391}
392
393function formatResponse(response) {
394 return response
395 .replace(/<think>([\s\S]*?)<\/think>/g, store.debugMode ? colors.cyan('$1') : '')
396 .split('\n')
397 .map(line => line.trim())
398 .filter(line => !/^[A-Z\s]+$/.test(line))
399 .map(line => markdownToAnsi(line))
400 .map(line => line.replace(/^x /gm, ` ${colors.red.bold('x')} `))
401 .join('\n')
402 .trim()
403}

Callers 2

clusterizeFunction · 0.85
analyzeFunction · 0.85

Calls 2

markdownToAnsiFunction · 0.90
filterMethod · 0.80

Tested by

no test coverage detected