( toolCallIds: string[], )
| 87 | |
| 88 | // Function to cancel multiple terminal commands at once |
| 89 | export async function killMultipleTerminalProcesses( |
| 90 | toolCallIds: string[], |
| 91 | ): Promise<void> { |
| 92 | const cancelPromises = toolCallIds.map((toolCallId) => |
| 93 | killTerminalProcess(toolCallId), |
| 94 | ); |
| 95 | await Promise.all(cancelPromises); |
| 96 | } |
| 97 | |
| 98 | // Function to cancel ALL currently running terminal commands |
| 99 | export async function killAllRunningTerminalProcesses(): Promise<string[]> { |
no test coverage detected