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
chore(hosted): document new hosted domains and clean up unused imports
Steven Enamakele2cfbcaa0987
diff --git a/crates/openhuman-core/src/api/rest.rs b/crates/openhuman-core/src/api/rest.rsindex 08c535b153..59886cb6a1 100644--- a/crates/openhuman-core/src/api/rest.rs+++ b/crates/openhuman-core/src/api/rest.rs@@ -3,7 +3,7 @@use anyhow::{Context, Result};use base64::Engine;use reqwest::{Client, Method, Url};-use serde::{Deserialize, Serialize};+use serde_json::{json, Value};use std::sync::Arc;diff --git a/crates/openhuman-core/src/api/rest_tests.rs b/crates/openhuman-core/src/api/rest_tests.rsindex eff9e8e383..20149a1cd4 100644--- a/crates/openhuman-core/src/api/rest_tests.rs+++ b/crates/openhuman-core/src/api/rest_tests.rs@@ -207,7 +207,10 @@ async fn backend_client_sends_x_core_version_on_auth_requests() {let (base_url, captured) = spawn_header_capture_server().await;let client = BackendOAuthClient::new(&base_url).unwrap();- let profile = client.fetch_profile("test-jwt").await.unwrap();+ let profile = client+ .authed_json("test-jwt", Method::GET, "auth/me", None)+ .await+ .unwrap();assert_eq!(profile["_id"], "user-123");let headers = captured.take();diff --git a/crates/openhuman-core/src/channels/controllers/ops/discord.rs b/crates/openhuman-core/src/channels/controllers/ops/discord.rsindex 988919a1e7..c7e801faee 100644--- a/crates/openhuman-core/src/channels/controllers/ops/discord.rs+++ b/crates/openhuman-core/src/channels/controllers/ops/discord.rs@@ -3,7 +3,6 @@//! The managed link flow (`channels.discord_link_*`) needs a TinyHumans//! account and lives in `openhuman-tinyhumans` (`hosted::channel_link`).-use serde_json::Value;use crate::config::Config;use crate::rpc::RpcOutcome;diff --git a/crates/openhuman-core/src/channels/controllers/schemas_tests.rs b/crates/openhuman-core/src/channels/controllers/schemas_tests.rsindex 67a5b4629e..142c8b7940 100644--- a/crates/openhuman-core/src/channels/controllers/schemas_tests.rs+++ b/crates/openhuman-core/src/channels/controllers/schemas_tests.rs@@ -1,4 +1,5 @@use super::*;+use crate::core::TypeSchema;use serde_json::json;#[test]diff --git a/crates/openhuman-core/src/skills/webhooks/ops_tests.rs b/crates/openhuman-core/src/skills/webhooks/ops_tests.rsindex 68d49c88b7..e8b2fa7d0b 100644--- a/crates/openhuman-core/src/skills/webhooks/ops_tests.rs+++ b/crates/openhuman-core/src/skills/webhooks/ops_tests.rs@@ -1,4 +1,5 @@use super::*;+use serde_json::json;// ── Router-not-initialized fallback paths ─────────────────────// These tests run without a global SocketManager so the router// accessor returns an error and the ops fall back gracefully.diff --git a/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs b/crates/openhuman-core/src/skills/webhooks/schemas_tests.rsindex 2b1300082c..2987b031f2 100644--- a/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs+++ b/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs@@ -194,19 +194,6 @@ fn deserialize_params_reports_invalid_params_errors() {);}-#[test]-fn deserialize_params_honours_camel_case_rename_for_update_tunnel() {- // `WebhookUpdateTunnelParams` uses `#[serde(rename_all = "camelCase")]`,- // so the JSON key is `isActive` even though the Rust field is- // `is_active`. This test locks in that contract.- let mut params = Map::new();- params.insert("id".to_string(), Value::String("t-1".into()));- params.insert("isActive".to_string(), Value::Bool(true));- let parsed = deserialize_params::<WebhookUpdateTunnelParams>(params).unwrap();- assert_eq!(parsed.id, "t-1");- assert_eq!(parsed.is_active, Some(true));-}-// ── json_output / to_json ─────────────────────────────────────#[test]diff --git a/crates/openhuman-tinyhumans/src/hosted/mod.rs b/crates/openhuman-tinyhumans/src/hosted/mod.rsindex bab647a7f7..cfb5c8f833 100644--- a/crates/openhuman-tinyhumans/src/hosted/mod.rs+++ b/crates/openhuman-tinyhumans/src/hosted/mod.rs@@ -6,19 +6,40 @@//! connection has no use for them: [`extension`] hands them to the core's//! controller registry (`DomainGroup::Hosted`) when [`crate::install`] runs,//! and the RPC names (`openhuman.billing_*`, `team_*`, `referral_*`,-//! `announcements_*`) are unchanged wire contracts.+//! `announcements_*`, and the account-bound `auth_*` / `channels_*` /+//! `webhooks_*` methods below) are unchanged wire contracts.+//!+//! Every domain reaches the backend through [`client::HostedClient`]: the+//! SDK's typed client, authenticated with the core's resolved credential, with+//! one mapping from SDK errors to the core's RPC sentinels. A user with no+//! TinyHumans account (offline local session, signed out) gets the core's+//! `BACKEND_UNAVAILABLE:` / session sentinel without a request.//!//! - [`announcements`] — product announcements feed//! - [`billing`] — credits, plans, Stripe/Coinbase-backed balance reads+//! - [`channel_link`] — managed Telegram/Discord bot linking+//! (`auth.create_channel_link_token`, `channels.telegram_login_*`,+//! `channels.discord_link_*`)+//! - [`oauth`] — backend-brokered OAuth integrations (`auth.oauth_*`)//! - [`referral`] — referral codes and rewards-//! - [`team`] — team membership/roles/invites (authorization is-//! enforced server-side; this is a proxy, not a local implementation)+//! - [`team`] — team membership/roles/invites and the usage document+//! (authorization is enforced server-side; this is a proxy)+//! - [`webhooks`] — backend-managed webhook tunnels and bandwidth+//!+//! `channel_link`, `oauth` and `webhooks` share the `auth`, `channels` and+//! `webhooks` namespaces with core controllers. The registry keys controllers+//! by `namespace.function`, so a namespace may be split between the core and+//! this extension; the core keeps describing those namespaces, which is why+//! they are not in [`NAMESPACES`].pub mod announcements;-pub mod client;pub mod billing;+pub mod channel_link;+pub mod client;+pub mod oauth;pub mod referral;pub mod team;+pub mod webhooks;#[cfg(test)]pub(crate) mod test_support;