(input: BashToolInput, context: ToolContext)
| 119 | } |
| 120 | |
| 121 | export async function runShellTool(input: BashToolInput, context: ToolContext): Promise<ToolResponse> { |
| 122 | const tool = createBashTool(context.cwd); |
| 123 | const timeout = input.timeout === undefined ? 30 : Math.min(input.timeout, 300); |
| 124 | |
| 125 | return runTool((params) => tool.execute("run_shell", params), { |
| 126 | command: input.command, |
| 127 | timeout, |
| 128 | }, context); |
| 129 | } |
no test coverage detected