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

Function getCommandOutput

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

Source from the content-addressed store, hash-verified

75}
76
77function getCommandOutput(
78 blocks: NonNullable<AgentContentBlock['blocks']>,
79): string {
80 return blocks
81 .filter(
82 (block): block is ToolContentBlock =>
83 block.type === 'tool' && block.toolName === 'run_terminal_command',
84 )
85 .map((block) => block.output ?? '')
86 .join('\n')
87}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected