(content: Output)
| 13 | </Text>; |
| 14 | } |
| 15 | export function renderToolResultMessage(content: Output): React.ReactNode { |
| 16 | if (!content.success) { |
| 17 | return <MessageResponse> |
| 18 | <Text color="error">Failed: {content.error}</Text> |
| 19 | </MessageResponse>; |
| 20 | } |
| 21 | if (content.operation === 'get') { |
| 22 | return <MessageResponse> |
| 23 | <Text> |
| 24 | <Text bold>{content.setting}</Text> = {jsonStringify(content.value)} |
| 25 | </Text> |
| 26 | </MessageResponse>; |
| 27 | } |
| 28 | return <MessageResponse> |
| 29 | <Text> |
| 30 | Set <Text bold>{content.setting}</Text> to{' '} |
| 31 | <Text bold>{jsonStringify(content.newValue)}</Text> |
| 32 | </Text> |
| 33 | </MessageResponse>; |
| 34 | } |
| 35 | export function renderToolUseRejectedMessage(): React.ReactNode { |
| 36 | return <Text color="warning">Config change rejected</Text>; |
| 37 | } |
nothing calls this directly
no test coverage detected