Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: reorder module declarations and imports for consistency

Steven Enamakel2e2ee8aeb536
diff --git a/crates/openhuman-core/src/tools/impl/browser/browser.rs b/crates/openhuman-core/src/tools/impl/browser/browser.rs
index d715f75a42..7ee4a7cec1 100644
--- a/crates/openhuman-core/src/tools/impl/browser/browser.rs
+++ b/crates/openhuman-core/src/tools/impl/browser/browser.rs
@@ -1,8 +1,8 @@
//! Agent-facing browser backed by the TinyComputer module's browser and task members.
-#[path = "browser_cleanup.rs"]
-mod cleanup;
#[path = "browser_drop.rs"]
mod browser_drop;
+#[path = "browser_cleanup.rs"]
+mod cleanup;
#[path = "browser_pending.rs"]
mod pending;
#[path = "browser_session_pool.rs"]
diff --git a/crates/openhuman-rpc/src/http_host/auth.rs b/crates/openhuman-rpc/src/http_host/auth.rs
index f7baf13c39..ea65c7e130 100644
--- a/crates/openhuman-rpc/src/http_host/auth.rs
+++ b/crates/openhuman-rpc/src/http_host/auth.rs
@@ -3,9 +3,9 @@ use axum::response::{IntoResponse, Response};
use base64::Engine as _;
use rand::RngExt as _;
-use openhuman_core::config;
use crate::http_host::types::HostedDirAuth;
use crate::http_host::LOG_PREFIX;
+use openhuman_core::config;
use openhuman_core::security::credentials::session_support;
pub(crate) fn ensure_authorized(headers: &HeaderMap, auth: &HostedDirAuth) -> Result<(), Response> {
diff --git a/crates/openhuman-rpc/src/http_host/rpc.rs b/crates/openhuman-rpc/src/http_host/rpc.rs
index 9a82b982a9..f61e2f25d9 100644
--- a/crates/openhuman-rpc/src/http_host/rpc.rs
+++ b/crates/openhuman-rpc/src/http_host/rpc.rs
@@ -1,11 +1,11 @@
//! RPC adapters for the `http_host` domain.
-use openhuman_core::core::Outcome;
use crate::http_host::ops;
use crate::http_host::types::{
HostedDirGetResult, HostedDirListResult, HostedDirLookupParams, HostedDirStartResult,
HostedDirStopResult, StartHostedDirParams,
};
+use openhuman_core::core::Outcome;
pub async fn start(params: StartHostedDirParams) -> Result<Outcome<HostedDirStartResult>, String> {
let server = ops::start_hosted_dir_server(params).await?;
diff --git a/crates/openhuman-rpc/src/lib.rs b/crates/openhuman-rpc/src/lib.rs
index fb3a96ef20..8d8ac91531 100644
--- a/crates/openhuman-rpc/src/lib.rs
+++ b/crates/openhuman-rpc/src/lib.rs
@@ -21,9 +21,9 @@
#[cfg(feature = "http-client")]
mod client;
mod envelope;
-mod origin;
#[cfg(feature = "server")]
pub mod http_host;
+mod origin;
#[cfg(feature = "server")]
pub mod server;