Function
appendToolUse
(
state: SessionState,
messageId: string,
toolCallId: string,
toolName: string,
input: unknown,
outputLines?: string[],
)
Source from the content-addressed store, hash-verified
| 401 | } |
| 402 | |
| 403 | function appendToolUse( |
| 404 | state: SessionState, |
| 405 | messageId: string, |
| 406 | toolCallId: string, |
| 407 | toolName: string, |
| 408 | input: unknown, |
| 409 | outputLines?: string[], |
| 410 | ): void { |
| 411 | const msg = state.messages.find((m) => m.id === messageId); |
| 412 | if (!msg) return; |
| 413 | msg.content.push({ type: 'toolUse', toolCallId, toolName, input, outputLines }); |
| 414 | } |
| 415 | |
| 416 | function toolProgressOutput(payload: Record<string, unknown>): { outputChunk: string; stream: 'stdout' | 'stderr' } | null { |
| 417 | const update = payload['update']; |
Tested by
no test coverage detected