Fix exec-server compile breakage and websocket test helpers

This commit is contained in:
starr-openai
2026-03-19 01:18:16 +00:00
parent f58a8674bc
commit 53bb53b968
7 changed files with 203 additions and 223 deletions

View File

@@ -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
}