MCPcopy Create free account
hub / github.com/anus-dev/ANUS / ToolInfo

Function ToolInfo

packages/cli/src/ui/components/messages/ToolMessage.tsx:152–185  ·  view source on GitHub ↗
({
  name,
  description,
  status,
  emphasis,
})

Source from the content-addressed store, hash-verified

150 emphasis: TextEmphasis;
151};
152const 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
187const TrailingIndicator: React.FC = () => (
188 <Text color={Colors.Foreground} wrap="truncate">

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected