MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getTextOutput

Function getTextOutput

cli/src/utils/agent-display.ts:65–75  ·  view source on GitHub ↗
(
  blocks: NonNullable<AgentContentBlock['blocks']>,
)

Source from the content-addressed store, hash-verified

63}
64
65function getTextOutput(
66 blocks: NonNullable<AgentContentBlock['blocks']>,
67): string {
68 return blocks
69 .filter(
70 (block): block is TextContentBlock =>
71 block.type === 'text' && block.textType !== 'reasoning',
72 )
73 .map((block) => block.content)
74 .join('\n')
75}
76
77function getCommandOutput(
78 blocks: NonNullable<AgentContentBlock['blocks']>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected