(input: {
readonly toolCallId: string
readonly toolName: string
readonly state: RunningToolState
readonly cwd?: string
})
| 168 | } |
| 169 | |
| 170 | export function duplicateRunningToolUpdate(input: { |
| 171 | readonly toolCallId: string |
| 172 | readonly toolName: string |
| 173 | readonly state: RunningToolState |
| 174 | readonly cwd?: string |
| 175 | }): ToolCallUpdate { |
| 176 | return { |
| 177 | toolCallId: input.toolCallId, |
| 178 | status: "in_progress", |
| 179 | kind: toToolKind(input.toolName), |
| 180 | title: toolTitle(input.toolName, input.state.input, input.state.title), |
| 181 | locations: toLocations(input.toolName, input.state.input, input.cwd), |
| 182 | rawInput: rawInput(input.toolName, input.state.input, input.cwd), |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | export function completedToolUpdate(input: { |
| 187 | readonly toolCallId: string |
no test coverage detected