(options = {})
| 540 | configPath, |
| 541 | checks, |
| 542 | pass: checks.every((check) => check.pass), |
| 543 | recommendation: isWindows |
| 544 | ? 'Prefer [windows] sandbox = "elevated"; use "unelevated" only when elevated setup is blocked.' |
| 545 | : 'Native Windows sandbox checks are advisory outside Windows.', |
| 546 | }; |
| 547 | } |
| 548 | |
| 549 | function createAppServerProbe(options = {}) { |
| 550 | const listen = options.listen || 'stdio://'; |
| 551 | const args = ['app-server', '--listen', listen]; |
| 552 | if (options.wsAuth) args.push('--ws-auth', options.wsAuth); |
| 553 | if (options.wsTokenFile) args.push('--ws-token-file', path.resolve(options.wsTokenFile)); |
| 554 | |
| 555 | return { |
| 556 | command: 'codex', |
| 557 | args, |
| 558 | localOnly: listen === 'stdio://' || listen.startsWith('unix://') || listen.startsWith('ws://127.0.0.1') || listen.startsWith('ws://localhost'), |
| 559 | warning: listen.startsWith('ws://') && !options.wsAuth |
| 560 | ? 'WebSocket app-server probes should use a local listener or explicit auth.' |
no outgoing calls
no test coverage detected