(result: {
content: ReadonlyArray<{ type: string; text?: string; [key: string]: unknown }>;
})
| 16 | * Extract and join all text content items from a tool response. |
| 17 | */ |
| 18 | export function allText(result: { |
| 19 | content: ReadonlyArray<{ type: string; text?: string; [key: string]: unknown }>; |
| 20 | }): string { |
| 21 | return result.content |
| 22 | .filter( |
| 23 | (c): c is { type: 'text'; text: string } => c.type === 'text' && typeof c.text === 'string', |
| 24 | ) |
| 25 | .map((c) => c.text) |
| 26 | .join('\n'); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Assert that a tool response represents a pending xcodebuild result |
no outgoing calls
no test coverage detected