MCPcopy Create free account
hub / github.com/freecodexyz/free-code / renderToolUseProgressMessage

Function renderToolUseProgressMessage

src/tools/PowerShellTool/UI.tsx:50–72  ·  view source on GitHub ↗
(progressMessagesForMessage: ProgressMessage<PowerShellProgress>[], {
  verbose,
  tools: _tools,
  terminalSize: _terminalSize,
  inProgressToolCallCount: _inProgressToolCallCount
}: {
  tools: Tool[];
  verbose: boolean;
  terminalSize?: {
    columns: number;
    rows: number;
  };
  inProgressToolCallCount?: number;
})

Source from the content-addressed store, hash-verified

48 return displayCommand;
49}
50export 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}
73export function renderToolUseQueuedMessage(): React.ReactNode {
74 return <MessageResponse height={1}>
75 <Text dimColor>Waiting…</Text>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected