mirror of
https://github.com/openai/codex.git
synced 2026-10-30 19:18:49 +00:00
Add a standalone codex-exec-server executable (#57589)
## What changed Extract executor startup into `codex-exec-server-cli`, shared by `codex exec-server` and the new standalone binary. Preserve executor arguments, authentication, configuration overrides, and sandbox helper dispatch across both entry points. Build the standalone binary with `cargo build -p codex-exec-server-cli --bin codex-exec-server` and run it with `codex-exec-server --listen stdio`. ## Testing Add standalone CLI parsing and help coverage, plus an integration test for version reporting, stdio initialization, filesystem reads, process execution, and sandbox helper re-execution when supported. GitOrigin-RevId: ab3a81c6b91b6f45e4d72d8add2e01af8372e97f
This commit is contained in:
committed by
copyberry
parent
37f199dab1
commit
a9ea49e78b
@@ -0,0 +1,14 @@
|
||||
//! Standalone executor entry point; startup and sandbox dispatch are shared with Codex.
|
||||
|
||||
#[cfg(all(
|
||||
target_os = "linux",
|
||||
target_env = "musl",
|
||||
any(target_arch = "x86_64", target_arch = "aarch64")
|
||||
))]
|
||||
#[global_allocator]
|
||||
static ALLOCATOR: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
codex_build_info::initialize!();
|
||||
codex_exec_server_cli::run_standalone()
|
||||
}
|
||||
Reference in New Issue
Block a user