mirror of
https://github.com/openai/codex.git
synced 2026-09-04 15:08:45 +00:00
Stacked PR 1/3. This is the initialize-only exec-server stub slice: binary/client scaffolding and protocol docs, without exec/filesystem implementation. --------- Co-authored-by: Codex <noreply@openai.com>
19 lines
520 B
Rust
19 lines
520 B
Rust
mod handler;
|
|
mod jsonrpc;
|
|
mod processor;
|
|
mod transport;
|
|
|
|
pub(crate) use handler::ExecServerHandler;
|
|
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
|
|
}
|