The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(rpc): update tenant type paths after module move
Steven Enamakelc3388e33a61b
diff --git a/crates/openhuman-rpc/src/server/socketio.rs b/crates/openhuman-rpc/src/server/socketio.rsindex f248c69c9b..85f6bd047c 100644--- a/crates/openhuman-rpc/src/server/socketio.rs+++ b/crates/openhuman-rpc/src/server/socketio.rs@@ -69,7 +69,7 @@ struct AuthedConnection;/// The per-process bearer authenticates the connection but does not encode a/// SaaS profile, so never accept tenant selection from a later event payload.#[derive(Clone, Debug)]-struct SocketTenant(crate::core_host::core::runtime::tenant::Tenant);+struct SocketTenant(crate::core_host::core::runtime::Tenant);/// Connection-time payload the client passes via Socket.IO's `auth` field.///@@ -1232,11 +1232,11 @@ fn replay_parked_plan_review(socket: &SocketRef, thread_id: &str) {fn tenant_for_socket_connection(tenant: Result<- crate::core_host::core::runtime::tenant::Tenant,- crate::core_host::core::runtime::tenant::NoTenant,+ crate::core_host::core::runtime::Tenant,+ crate::core_host::core::runtime::NoTenant,>,saas: bool,-) -> Option<crate::core_host::core::runtime::tenant::Tenant> {+) -> Option<crate::core_host::core::runtime::Tenant> {match tenant {Ok(tenant) => Some(tenant),Err(_) if saas => None,diff --git a/crates/openhuman-rpc/src/server/socketio_tests.rs b/crates/openhuman-rpc/src/server/socketio_tests.rsindex 6fe079f076..c9a8f7e3a2 100644--- a/crates/openhuman-rpc/src/server/socketio_tests.rs+++ b/crates/openhuman-rpc/src/server/socketio_tests.rs@@ -18,7 +18,7 @@ fn thread_subscribe_cannot_choose_a_profile_for_review_replay() {#[test]fn socket_review_replay_uses_the_profile_captured_from_server_context() {- let authenticated_profile = crate::core_host::core::runtime::tenant::Tenant {+ let authenticated_profile = crate::core_host::core::runtime::Tenant {profile: Some("socket-profile".into()),agent: None,};@@ -29,7 +29,7 @@ fn socket_review_replay_uses_the_profile_captured_from_server_context() {#[test]fn local_socket_review_replay_preserves_the_active_profile() {- let active_profile = crate::core_host::core::runtime::tenant::Tenant {+ let active_profile = crate::core_host::core::runtime::Tenant {profile: Some("active-profile".into()),agent: None,};@@ -40,11 +40,10 @@ fn local_socket_review_replay_preserves_the_active_profile() {#[test]fn socket_review_replay_fails_closed_without_saas_server_context() {- assert!(tenant_for_socket_connection(- Err(crate::core_host::core::runtime::tenant::NoTenant),- true,- )- .is_none());+ assert!(+ tenant_for_socket_connection(Err(crate::core_host::core::runtime::NoTenant), true,)+ .is_none()+ );}#[test]