(args: string[], name: string)
| 85 | } |
| 86 | |
| 87 | function flagValue(args: string[], name: string): string | undefined { |
| 88 | const prefix = `${name}=` |
| 89 | const inline = args.find((arg) => arg.startsWith(prefix)) |
| 90 | if (inline) return inline.slice(prefix.length) |
| 91 | const index = args.indexOf(name) |
| 92 | return index >= 0 ? args[index + 1] : undefined |
| 93 | } |
| 94 | |
| 95 | function codexAppServerFromEnvOrFlags(command: string[], env: NodeJS.ProcessEnv): RuntimeNodeCodexAppServerConfig | undefined { |
| 96 | const websocketUrl = flagValue(command, "--codex-server-url") ?? env.RUNTIME_NODE_CODEX_SERVER_URL |
no outgoing calls
no test coverage detected