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
docs: document session module and re-export order in tinyhumans
Steven Enamakel271972a4c344
diff --git a/crates/openhuman-tinyhumans/README.md b/crates/openhuman-tinyhumans/README.mdindex 40e720e305..14d1852996 100644--- a/crates/openhuman-tinyhumans/README.md+++ b/crates/openhuman-tinyhumans/README.md@@ -48,6 +48,7 @@ openhuman_tinyhumans::install(openhuman_tinyhumans::InstallOptions::default())?;| `transport` | `SdkBackendTransport`: one `reqwest::Client` per `TransportProfile`, built from the core's `api::headers` so TLS, timeouts and `x-core-version` / `x-tauri-version` / `x-sdk-name` are exactly what the core specifies; SDK route policy; `tinyhumans_sdk::Error` → `BackendTransportError` || `install` | process-global installation, idempotent || `RuntimeBuilder` | embed builder + transport |+| `session` | the host-side login/session owner (formerly the `openhuman-session` crate): `SessionClient` (login-token exchange, `GET /auth/me`), `CurrentUserCache`, `CoreLink` (credential handoff into whichever core the host owns), `SessionManager`, process-global `identity` for sync Sentry hooks. May use core utilities (`util::tls`, `api::product`) but never `openhuman_core::security::*` — the core only *takes* a credential || `jwt` | the SDK's JWT readers, for hosts that already depend on this crate |Routes and error classification stay in the core (`api/rest.rs`,@@ -62,4 +63,6 @@ cargo test -p openhuman-tinyhumans`transport_tests.rs` pins the wire shape the core's classifiers depend on(bearer vs `x-api-key`, attribution headers, `Status` / `Envelope` mapping,-SDK route refusal) against a wiremock backend.+SDK route refusal) against a wiremock backend. `session/*_tests.rs` drive+the login/session owner against an in-process axum stub backend and a stub+`CoreLink`.diff --git a/crates/openhuman-tinyhumans/src/lib.rs b/crates/openhuman-tinyhumans/src/lib.rsindex b575c69145..4012b3a43c 100644--- a/crates/openhuman-tinyhumans/src/lib.rs+++ b/crates/openhuman-tinyhumans/src/lib.rs@@ -41,6 +41,10 @@ pub mod session;pub mod transport;pub use install::{install, is_installed, InstallError, InstallOptions};+pub use openhuman_embed::{+ BackendRequest, BackendTransport, BackendTransportError, TransportProfile,+};+pub use runtime::{RuntimeBuilder, RuntimeError};pub use session::{cache::{CachedUser, CurrentUserCache},client::{ClientHeaders, FetchMeError, SessionClient, SessionClientError},@@ -52,8 +56,4 @@ pub use session::{link::{self, CoreAuthState, CoreLink},manager::{SessionError, SessionEvent, SessionManager, SessionState},};-pub use openhuman_embed::{- BackendRequest, BackendTransport, BackendTransportError, TransportProfile,-};-pub use runtime::{RuntimeBuilder, RuntimeError};pub use transport::{map_sdk_error, SdkBackendTransport};diff --git a/crates/openhuman-tinyhumans/src/session/credential_tests.rs b/crates/openhuman-tinyhumans/src/session/credential_tests.rsindex 923be93133..449f22527f 100644--- a/crates/openhuman-tinyhumans/src/session/credential_tests.rs+++ b/crates/openhuman-tinyhumans/src/session/credential_tests.rs@@ -1,5 +1,7 @@use super::*;-use crate::session::test_support::{EXPIRED_JWT, LIVE_JWT, LIVE_JWT_NO_SUB, LOCAL_TOKEN, OPAQUE_TOKEN};+use crate::session::test_support::{+ EXPIRED_JWT, LIVE_JWT, LIVE_JWT_NO_SUB, LOCAL_TOKEN, OPAQUE_TOKEN,+};use serde_json::json;#[test]