mirror of
https://github.com/openai/codex.git
synced 2026-04-28 16:45:54 +00:00
Fix exec-server compile breakage and websocket test helpers
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
mod filesystem;
|
||||
mod handler;
|
||||
mod jsonrpc;
|
||||
mod registry;
|
||||
mod processor;
|
||||
mod transport;
|
||||
|
||||
pub(crate) use handler::ExecServerHandler;
|
||||
pub use transport::DEFAULT_LISTEN_URL;
|
||||
pub use transport::ExecServerListenUrlParseError;
|
||||
pub use transport::ExecServerListenUrlParseError as ExecServerTransportParseError;
|
||||
|
||||
pub async fn run_main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
run_main_with_listen_url(DEFAULT_LISTEN_URL).await
|
||||
run_main_with_transport(DEFAULT_LISTEN_URL).await
|
||||
}
|
||||
|
||||
pub async fn run_main_with_listen_url(
|
||||
@@ -18,3 +17,9 @@ pub async fn run_main_with_listen_url(
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
transport::run_transport(listen_url).await
|
||||
}
|
||||
|
||||
pub async fn run_main_with_transport(
|
||||
listen_url: &str,
|
||||
) -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
transport::run_transport(listen_url).await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user