(input: Partial<Input>)
| 4 | import { jsonStringify } from '../../utils/slowOperations.js'; |
| 5 | import type { Input, Output } from './ConfigTool.js'; |
| 6 | export function renderToolUseMessage(input: Partial<Input>): React.ReactNode { |
| 7 | if (!input.setting) return null; |
| 8 | if (input.value === undefined) { |
| 9 | return <Text dimColor>Getting {input.setting}</Text>; |
| 10 | } |
| 11 | return <Text dimColor> |
| 12 | Setting {input.setting} to {jsonStringify(input.value)} |
| 13 | </Text>; |
| 14 | } |
| 15 | export function renderToolResultMessage(content: Output): React.ReactNode { |
| 16 | if (!content.success) { |
| 17 | return <MessageResponse> |
nothing calls this directly
no test coverage detected