mirror of
https://github.com/openai/codex.git
synced 2026-09-17 12:23:33 +00:00
Stacked PR 2/3, based on the stub PR. Adds the exec RPC implementation and process/event flow in exec-server only. --------- Co-authored-by: Codex <noreply@openai.com>
20 lines
517 B
Rust
20 lines
517 B
Rust
mod filesystem;
|
|
mod handler;
|
|
mod processor;
|
|
mod registry;
|
|
mod transport;
|
|
|
|
pub(crate) use handler::ExecServerHandler;
|
|
pub use transport::DEFAULT_LISTEN_URL;
|
|
pub use transport::ExecServerListenUrlParseError;
|
|
|
|
pub async fn run_main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
run_main_with_listen_url(DEFAULT_LISTEN_URL).await
|
|
}
|
|
|
|
pub async fn run_main_with_listen_url(
|
|
listen_url: &str,
|
|
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
transport::run_transport(listen_url).await
|
|
}
|