Skip to content

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

feat(team): add hosted team ops and transport tests

Steven Enamakelc9d6ae33ce35
diff --git a/crates/openhuman-tinyhumans/src/hosted/team/ops.rs b/crates/openhuman-tinyhumans/src/hosted/team/ops.rs
index 921f091fef..b8176d1d7a 100644
--- a/crates/openhuman-tinyhumans/src/hosted/team/ops.rs
+++ b/crates/openhuman-tinyhumans/src/hosted/team/ops.rs
@@ -16,7 +16,7 @@ use serde_json::{json, Value};
use tinyhumans_sdk::api::types::{CodeRequest, CreateTeamInviteRequest};
use crate::backend::url::effective_backend_api_url;
-use openhuman_embed::__host::backend::BackendClient;
+use crate::client::BackendClient;
use openhuman_embed::__host::config::Config;
use openhuman_embed::__host::core::Outcome;
use crate::integrations::client::budget_gate;
@@ -124,7 +124,7 @@ async fn legacy_authed_value(
client
.authed_json(credential, method, path, body)
.await
- .map_err(openhuman_embed::__host::backend::flatten_authed_error)
+ .map_err(crate::client::flatten_authed_error)
}
pub async fn update_team(
diff --git a/crates/openhuman-tinyhumans/src/transport/transport_tests.rs b/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
index a3cc0321fa..97f8317649 100644
--- a/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
+++ b/crates/openhuman-tinyhumans/src/transport/transport_tests.rs
@@ -236,7 +236,7 @@ async fn backend_client_round_trips_through_the_installed_transport() {
let _guard = global_lock().lock().await;
let _t = crate::install(crate::InstallOptions::default()).unwrap();
- let client = openhuman_embed::__host::backend::BackendClient::new(&server.uri()).unwrap();
+ let client = crate::client::BackendClient::new(&server.uri()).unwrap();
let value = client
.authed_json("jwt", reqwest::Method::GET, "/announcements/latest", None)
.await
@@ -331,7 +331,7 @@ fn product_identity_and_attribution_come_from_this_crate() {
#[tokio::test]
async fn core_channel_routes_recover_from_the_transports_typed_404s() {
- use openhuman_embed::__host::backend::BackendApiError;
+ use crate::client::HostedApiError as BackendApiError;
// POST + DELETE only, mirroring the deployed router: PATCH falls through
// to Express's HTML 404 (#5230); DELETE answers a handler-level 404.
let server = MockServer::start().await;
@@ -353,7 +353,7 @@ async fn core_channel_routes_recover_from_the_transports_typed_404s() {
let _guard = global_lock().lock().await;
let _t = crate::install(crate::InstallOptions::default()).unwrap();
- let client = openhuman_embed::__host::backend::BackendClient::new(&server.uri()).unwrap();
+ let client = crate::client::BackendClient::new(&server.uri()).unwrap();
let err = client
.send_channel_edit("telegram", "1103", "jwt", json!({}))