mirror of
https://github.com/openai/codex.git
synced 2026-04-26 15:45:02 +00:00
Summary - delete the deprecated stdio transport plumbing from the exec server stack - add a basic `exec_server()` harness plus test utilities to start a server, send requests, and await events - refresh exec-server dependencies, configs, and documentation to reflect the new flow Testing - Not run (not requested) --------- Co-authored-by: starr-openai <starr@openai.com> Co-authored-by: Codex <noreply@openai.com>
19 lines
499 B
Rust
19 lines
499 B
Rust
use clap::Parser;
|
|
|
|
#[derive(Debug, Parser)]
|
|
struct ExecServerArgs {
|
|
/// Transport endpoint URL. Supported values: `ws://IP:PORT` (default).
|
|
#[arg(
|
|
long = "listen",
|
|
value_name = "URL",
|
|
default_value = codex_exec_server::DEFAULT_LISTEN_URL
|
|
)]
|
|
listen: String,
|
|
}
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
let args = ExecServerArgs::parse();
|
|
codex_exec_server::run_main_with_listen_url(&args.listen).await
|
|
}
|