(opts: { cwd: string; model?: string | null })
| 17 | } |
| 18 | |
| 19 | export function createCursorAcpBackend(opts: { cwd: string; model?: string | null }): AcpSdkBackend { |
| 20 | const args = ['acp']; |
| 21 | if (!isDefaultSpawnModel(opts.model)) { |
| 22 | args.unshift('--model', opts.model!.trim()); |
| 23 | } |
| 24 | |
| 25 | return new AcpSdkBackend({ |
| 26 | command: 'agent', |
| 27 | args, |
| 28 | env: filterEnv(process.env) |
| 29 | }); |
| 30 | } |
| 31 | |
| 32 | export const CURSOR_ACP_REQUIRED_MESSAGE = |
| 33 | 'Cursor ACP mode is required for new Cursor remote sessions. Run `agent update` and verify `agent help acp`.'; |
no test coverage detected