(value, projectRoot)
| 45 | } |
| 46 | |
| 47 | function sandboxPolicyFor(value, projectRoot) { |
| 48 | if (!value) return null; |
| 49 | if (value === 'readOnly') return { type: 'readOnly' }; |
| 50 | if (value === 'workspaceWrite') { |
| 51 | return { |
| 52 | type: 'workspaceWrite', |
| 53 | writableRoots: [projectRoot], |
| 54 | networkAccess: false, |
| 55 | }; |
| 56 | } |
| 57 | if (value === 'dangerFullAccess') return { type: 'dangerFullAccess' }; |
| 58 | throw new Error(`Unsupported --turn-sandbox value: ${value}`); |
| 59 | } |
| 60 | |
| 61 | if (process.argv.includes('--help')) { |
| 62 | console.log('Usage: node scripts/codex-app-server-capture.js [--project-root PATH] [--out PATH] [--handshake-only] [--turn "prompt"]'); |
no outgoing calls
no test coverage detected