(input: {
readonly toolCallId: string
readonly toolName: string
readonly state: { readonly input: ToolInput; readonly title?: string }
readonly cwd?: string
})
| 122 | } |
| 123 | |
| 124 | export function pendingToolCall(input: { |
| 125 | readonly toolCallId: string |
| 126 | readonly toolName: string |
| 127 | readonly state: { readonly input: ToolInput; readonly title?: string } |
| 128 | readonly cwd?: string |
| 129 | }): ToolCall { |
| 130 | return { |
| 131 | toolCallId: input.toolCallId, |
| 132 | title: toolTitle(input.toolName, input.state.input, input.state.title), |
| 133 | kind: toToolKind(input.toolName), |
| 134 | status: "pending", |
| 135 | locations: toLocations(input.toolName, input.state.input, input.cwd), |
| 136 | rawInput: rawInput(input.toolName, input.state.input, input.cwd), |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | export function runningToolUpdate(input: { |
| 141 | readonly toolCallId: string |
no test coverage detected