mirror of
https://github.com/openai/codex.git
synced 2026-04-30 03:12:20 +03:00
Restore the process RPC client/server implementation on top of the initialize-only base.\n\nCo-authored-by: Codex <noreply@openai.com>
21 lines
625 B
Rust
21 lines
625 B
Rust
mod handler;
|
|
mod processor;
|
|
mod routing;
|
|
mod transport;
|
|
|
|
pub(crate) use handler::ExecServerHandler;
|
|
pub(crate) use routing::ExecServerOutboundMessage;
|
|
pub(crate) use routing::ExecServerServerNotification;
|
|
pub use transport::ExecServerTransport;
|
|
pub use transport::ExecServerTransportParseError;
|
|
|
|
pub async fn run_main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
run_main_with_transport(ExecServerTransport::Stdio).await
|
|
}
|
|
|
|
pub async fn run_main_with_transport(
|
|
transport: ExecServerTransport,
|
|
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|
transport::run_transport(transport).await
|
|
}
|