(progressMessagesForMessage: ProgressMessage<PowerShellProgress>[], {
verbose,
tools: _tools,
terminalSize: _terminalSize,
inProgressToolCallCount: _inProgressToolCallCount
}: {
tools: Tool[];
verbose: boolean;
terminalSize?: {
columns: number;
rows: number;
};
inProgressToolCallCount?: number;
})
| 48 | return displayCommand; |
| 49 | } |
| 50 | export function renderToolUseProgressMessage(progressMessagesForMessage: ProgressMessage<PowerShellProgress>[], { |
| 51 | verbose, |
| 52 | tools: _tools, |
| 53 | terminalSize: _terminalSize, |
| 54 | inProgressToolCallCount: _inProgressToolCallCount |
| 55 | }: { |
| 56 | tools: Tool[]; |
| 57 | verbose: boolean; |
| 58 | terminalSize?: { |
| 59 | columns: number; |
| 60 | rows: number; |
| 61 | }; |
| 62 | inProgressToolCallCount?: number; |
| 63 | }): React.ReactNode { |
| 64 | const lastProgress = progressMessagesForMessage.at(-1); |
| 65 | if (!lastProgress || !lastProgress.data) { |
| 66 | return <MessageResponse height={1}> |
| 67 | <Text dimColor>Running…</Text> |
| 68 | </MessageResponse>; |
| 69 | } |
| 70 | const data = lastProgress.data; |
| 71 | return <ShellProgressMessage fullOutput={data.fullOutput} output={data.output} elapsedTimeSeconds={data.elapsedTimeSeconds} totalLines={data.totalLines} totalBytes={data.totalBytes} timeoutMs={data.timeoutMs} taskId={data.taskId} verbose={verbose} />; |
| 72 | } |
| 73 | export function renderToolUseQueuedMessage(): React.ReactNode { |
| 74 | return <MessageResponse height={1}> |
| 75 | <Text dimColor>Waiting…</Text> |
nothing calls this directly
no outgoing calls
no test coverage detected