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: remove unused openhuman-session crate
Steven Enamakel2cc8482d0752
diff --git a/Cargo.toml b/Cargo.tomlindex 1921b16046..a1bb13c12c 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -13,7 +13,6 @@ members = ["crates/openhuman-core","crates/openhuman-embed","crates/openhuman-rpc",- "crates/openhuman-session","crates/openhuman-tinyhumans","crates/openhuman-tui",]@@ -34,7 +33,6 @@ repository = "https://github.com/tinyhumansai/openhuman"[workspace.dependencies]openhuman-core = { path = "crates/openhuman-core", package = "openhuman" }openhuman-rpc = { path = "crates/openhuman-rpc", default-features = false }-openhuman-session = { path = "crates/openhuman-session" }openhuman-embed = { path = "crates/openhuman-embed", default-features = false }openhuman-tinyhumans = { path = "crates/openhuman-tinyhumans", default-features = false }diff --git a/crates/openhuman-session/Cargo.toml b/crates/openhuman-session/Cargo.tomldeleted file mode 100644index 2127e80df5..0000000000--- a/crates/openhuman-session/Cargo.toml+++ /dev/null@@ -1,33 +0,0 @@-[package]-name = "openhuman-session"-description = "TinyHumans login/session ownership for OpenHuman hosts: login-token exchange, /auth/me validation, current-user cache, and credential handoff into a core"-version.workspace = true-edition.workspace = true-license.workspace = true-repository.workspace = true-publish = false--[dependencies]-async-trait = "0.1"-chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }-log = "0.4"-reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }-serde = { version = "1", features = ["derive"] }-serde_json = "1"-thiserror = "2"-# The vendored SDK owns the backend routes and the `Authorization` /-# `x-api-key` header shapes. `default-features = false` drops its Socket.IO-# transport, which this crate never uses.-tinyhumans-sdk = { path = "../../vendor/tinyhumans-sdk", default-features = false }-tokio = { version = "1", features = ["sync", "time", "rt"] }-url = "2"--[target.'cfg(target_os = "windows")'.dependencies]-# Windows honours the OS certificate store through schannel so corporate-# TLS-inspecting proxies keep working — same policy as the core's-# `util::tls::tls_client_builder`.-reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls", "native-tls"] }--[dev-dependencies]-axum = "0.8"-tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "sync", "time"] }diff --git a/crates/openhuman-session/README.md b/crates/openhuman-session/README.mddeleted file mode 100644index ab7953d533..0000000000--- a/crates/openhuman-session/README.md+++ /dev/null@@ -1,45 +0,0 @@-# openhuman-session--Login and backend-session ownership for OpenHuman **hosts**. The core-(`openhuman`) only holds and uses a backend credential — a TinyHumans session-JWT or API key — and never obtains, validates, exchanges or refreshes one. This-crate is where those steps live, shared by the Tauri shell-(`crates/openhuman-app`, over the core's loopback JSON-RPC) and the TUI-(`crates/openhuman-tui`, over an in-process `CoreRuntime`).--No `openhuman` dependency: the shell's own Cargo world must be able to build it,-and core policy must not leak back in through it.--## Pieces--| Module | Role |-| --- | --- |-| `credential` | `Credential` / `CredentialKind` (`session`, `api-key`, `local`), local-session shape detection, JWT `exp` decode, subject-claim and `/auth/me`-payload user-id extraction. |-| `client` | `SessionClient`: `POST /auth/login-token/consume`, `GET /auth/me`, and `validate_for_store` (12 s budget, one retry, transient classification). Sends `x-sdk-name` / `x-core-version` / `x-tauri-version` from `ClientHeaders`. schannel on Windows, rustls elsewhere. |-| `cache` | `CurrentUserCache`: 5 s TTL, stale-while-revalidate, negative cache with a bounded backoff, keyed on `(base_url, secret)`. |-| `link` | `CoreLink` trait (`invoke(method, params)`) plus the `auth.set_credential` / `auth.clear_credential` / `auth.get_state` / `auth.get_session_token` / `config.resolve_api_url` helpers. |-| `manager` | `SessionManager<L: CoreLink>`: `login_with_token`, `store_session_token`, `store_api_key`, `logout`, `current_user`, `state`, and a broadcast of `SessionEvent::{Changed, Expired}`. |-| `identity` | Process-global `peek_user_id()` for synchronous Sentry hooks. |--## Flow--```-login token ──consume──▶ JWT ──validate (/auth/me)──▶ auth.set_credential {token, kind, userId, user}- │ rejected: nothing stored (REJECTED)- │ unreachable + live exp + subject: stored with- │ {pendingBackendValidation:true}, revalidated in the background-current_user ──cache──▶ /auth/me ──rejected──▶ auth.clear_credential + SessionEvent::Expired-```--The core is the store of record; the manager keeps no copy of the secret and-reads it back through the link when it needs to refresh.--## Environment--- `OPENHUMAN_AUTH_ME_TIMEOUT_MS` — store-time validation budget (default 12000; the legacy `OPENHUMAN_AUTH_ME_STORE_TIMEOUT_MS` is still honoured).-- `OPENHUMAN_AUTH_FETCH_TIMEOUT_SECS` — current-user refresh budget (2–12, default 5).--## Tests--`cargo test -p openhuman-session` — in-process axum stubs for the backend and a-fake `CoreLink`; no network, no core.