(toolArgs)
| 28 | .describe("Timeout in ms for the Cursor CLI call (optional)"), |
| 29 | }, |
| 30 | async execute(toolArgs) { |
| 31 | const res = await run(args.agentBin, ["status"], { |
| 32 | cwd: args.cwd, |
| 33 | timeoutMs: toolArgs.timeoutMs ?? 60_000, |
| 34 | }); |
| 35 | if (res.code !== 0) { |
| 36 | throw new Error( |
| 37 | `Cursor CLI status failed (exit ${res.code}).\n${res.stderr.trim()}`, |
| 38 | ); |
| 39 | } |
| 40 | return res.stdout.trim(); |
| 41 | }, |
| 42 | }), |
| 43 | |
| 44 | cursor_cli_models: tool({ |
nothing calls this directly
no test coverage detected