(
{ task_id, shell_id },
{ getAppState, setAppState, abortController },
)
| 105 | renderToolUseMessage, |
| 106 | renderToolResultMessage, |
| 107 | async call( |
| 108 | { task_id, shell_id }, |
| 109 | { getAppState, setAppState, abortController }, |
| 110 | ) { |
| 111 | // Support both task_id and shell_id (deprecated KillShell compat) |
| 112 | const id = task_id ?? shell_id |
| 113 | if (!id) { |
| 114 | throw new Error('Missing required parameter: task_id') |
| 115 | } |
| 116 | |
| 117 | const result = await stopTask(id, { |
| 118 | getAppState, |
| 119 | setAppState, |
| 120 | }) |
| 121 | |
| 122 | return { |
| 123 | data: { |
| 124 | message: `Successfully stopped task: ${result.taskId} (${result.command})`, |
| 125 | task_id: result.taskId, |
| 126 | task_type: result.taskType, |
| 127 | command: result.command, |
| 128 | }, |
| 129 | } |
| 130 | }, |
| 131 | } satisfies ToolDef<InputSchema, Output>) |
| 132 |
nothing calls this directly
no test coverage detected