({
name,
description,
status,
emphasis,
})
| 150 | emphasis: TextEmphasis; |
| 151 | }; |
| 152 | const ToolInfo: React.FC<ToolInfo> = ({ |
| 153 | name, |
| 154 | description, |
| 155 | status, |
| 156 | emphasis, |
| 157 | }) => { |
| 158 | const nameColor = React.useMemo<string>(() => { |
| 159 | switch (emphasis) { |
| 160 | case 'high': |
| 161 | return Colors.Foreground; |
| 162 | case 'medium': |
| 163 | return Colors.Foreground; |
| 164 | case 'low': |
| 165 | return Colors.Gray; |
| 166 | default: { |
| 167 | const exhaustiveCheck: never = emphasis; |
| 168 | return exhaustiveCheck; |
| 169 | } |
| 170 | } |
| 171 | }, [emphasis]); |
| 172 | return ( |
| 173 | <Box> |
| 174 | <Text |
| 175 | wrap="truncate-end" |
| 176 | strikethrough={status === ToolCallStatus.Canceled} |
| 177 | > |
| 178 | <Text color={nameColor} bold> |
| 179 | {name} |
| 180 | </Text>{' '} |
| 181 | <Text color={Colors.Gray}>{description}</Text> |
| 182 | </Text> |
| 183 | </Box> |
| 184 | ); |
| 185 | }; |
| 186 | |
| 187 | const TrailingIndicator: React.FC = () => ( |
| 188 | <Text color={Colors.Foreground} wrap="truncate"> |
nothing calls this directly
no outgoing calls
no test coverage detected