Download packages/cli/src/ui/components/messages/SubagentHistoryMessage.tsx from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 1.11 kB
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/messages/SubagentHistoryMessage.tsx
- Command line
-
hf download hf://SaylorTwift/gemini-cli/packages/cli/src/ui/components/messages/SubagentHistoryMessage.tsx
-
curl -L -o SubagentHistoryMessage.tsx https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/packages/cli/src/ui/components/messages/SubagentHistoryMessage.tsx
1.11 kB
| /** | |
| * @license | |
| * Copyright 2026 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import type React from 'react'; | |
| import { Box, Text } from 'ink'; | |
| import type { HistoryItemSubagent } from '../../types.js'; | |
| interface SubagentHistoryMessageProps { | |
| item: HistoryItemSubagent; | |
| terminalWidth: number; | |
| } | |
| export const SubagentHistoryMessage: React.FC<SubagentHistoryMessageProps> = ({ | |
| item, | |
| terminalWidth, | |
| }) => ( | |
| <Box flexDirection="column" width={terminalWidth} marginBottom={1}> | |
| <Box marginBottom={1}> | |
| <Text bold color="cyan"> | |
| 🤖 {item.agentName} Trace ({item.history.length} items) | |
| </Text> | |
| </Box> | |
| {item.history.map((activity) => ( | |
| <Box key={activity.id} marginLeft={2} marginBottom={0}> | |
| <Text color={activity.type === 'thought' ? 'gray' : 'white'}> | |
| {activity.type === 'thought' ? '🧠' : '🛠️'} {activity.content} | |
| {activity.status === 'running' && ' (Running...)'} | |
| {activity.status === 'completed' && ' ✅'} | |
| {activity.status === 'error' && ' ❌'} | |
| </Text> | |
| </Box> | |
| ))} | |
| </Box> | |
| ); | |