Fix exec-server in-order request handling and stdio transport

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-03-19 01:14:53 +00:00
parent 6742da0030
commit f58a8674bc
12 changed files with 533 additions and 121 deletions

View File

@@ -1,19 +1,20 @@
mod filesystem;
mod handler;
mod processor;
mod jsonrpc;
mod registry;
mod processor;
mod transport;
pub(crate) use handler::ExecServerHandler;
pub use transport::ExecServerTransport;
pub use transport::ExecServerTransportParseError;
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_transport(ExecServerTransport::Stdio).await
run_main_with_listen_url(DEFAULT_LISTEN_URL).await
}
pub async fn run_main_with_transport(
transport: ExecServerTransport,
pub async fn run_main_with_listen_url(
listen_url: &str,
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
transport::run_transport(transport).await
transport::run_transport(listen_url).await
}