({ cwd, model = null })
| 501 | } |
| 502 | |
| 503 | export function buildCodexArgs({ cwd, model = null }) { |
| 504 | const args = [ |
| 505 | '--ask-for-approval', |
| 506 | 'never', |
| 507 | 'exec', |
| 508 | '--json', |
| 509 | '--ephemeral', |
| 510 | '--ignore-user-config', |
| 511 | '--ignore-rules', |
| 512 | '--skip-git-repo-check', |
| 513 | '--cd', |
| 514 | cwd, |
| 515 | '--sandbox', |
| 516 | 'read-only', |
| 517 | ]; |
| 518 | if (model) args.push('--model', model); |
| 519 | args.push('-'); |
| 520 | return args; |
| 521 | } |
| 522 | |
| 523 | function buildPrompt(mode, contextFile, contextText) { |
| 524 | return [ |
no outgoing calls
no test coverage detected