Skip to content

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

chore: rename `openhuman-session` crate to `openhuman-tinyhumans`

Steven Enamakelef24e61c09aa
diff --git a/.github/workflows/ci-lite.yml b/.github/workflows/ci-lite.yml
index 6c0bb7a47b..761f111f04 100644
--- a/.github/workflows/ci-lite.yml
+++ b/.github/workflows/ci-lite.yml
@@ -164,7 +164,7 @@ jobs:
- 'Cargo.toml'
- 'crates/openhuman-core/**'
- 'crates/openhuman-embed/**'
- - 'crates/openhuman-session/**'
+ - 'crates/openhuman-tinyhumans/**'
- 'crates/openhuman-tui/**'
- 'Cargo.lock'
- 'build.rs'
@@ -199,7 +199,7 @@ jobs:
- 'Cargo.toml'
- 'crates/openhuman-core/Cargo.toml'
- 'crates/openhuman-embed/Cargo.toml'
- - 'crates/openhuman-session/Cargo.toml'
+ - 'crates/openhuman-tinyhumans/Cargo.toml'
- 'crates/openhuman-tui/Cargo.toml'
- 'Cargo.lock'
- 'build.rs'
@@ -217,7 +217,7 @@ jobs:
- 'crates/openhuman-core/src/**'
- 'crates/openhuman-embed/src/**'
- 'crates/openhuman-embed/tests/**'
- - 'crates/openhuman-session/src/**'
+ - 'crates/openhuman-tinyhumans/src/**'
- 'crates/openhuman-tui/src/**'
- 'crates/openhuman-tui/tests/**'
- 'tests/**'
@@ -487,8 +487,8 @@ jobs:
# Tauri shell and the TUI. It has no `openhuman` dependency, so it
# compiles in seconds and its tests run against in-process stubs.
run: |
- bash scripts/ci-cancel-aware.sh cargo clippy -p openhuman-session --all-targets -- -D warnings
- bash scripts/ci-cancel-aware.sh cargo test -p openhuman-session
+ bash scripts/ci-cancel-aware.sh cargo clippy -p openhuman-tinyhumans --all-targets -- -D warnings
+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman-tinyhumans
- name: Cache CEF binary distribution
if: needs.changes.outputs['rust-tauri'] == 'true'
diff --git a/Cargo.toml b/Cargo.toml
index a1bb13c12c..d2bf50212c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
# Virtual workspace root. Members: `crates/openhuman-core` (package `openhuman`,
# the core + `openhuman-core` CLI), `crates/openhuman-embed` (library facade),
-# `crates/openhuman-rpc` (shared RPC contracts/client), `crates/openhuman-session`
+# `crates/openhuman-rpc` (shared RPC contracts/client), `crates/openhuman-tinyhumans`
# (login/session ownership for hosts), and `crates/openhuman-tui` (terminal client). `crates/openhuman-app` is deliberately excluded: it is its
# own Cargo world with its own lockfile and target directory so that root-only
# Cargo commands don't resolve GTK/WebKit/Tauri, and it must mirror this file's
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index a9d1df8122..5d40c4b7bf 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -36,8 +36,11 @@ serde_json = "1"
[dependencies]
openhuman-rpc = { path = "../openhuman-rpc", features = ["http-client"] }
# The desktop session owner (login-token exchange, /auth/me, current-user
-# cache). No core dependency of its own; see crates/openhuman-session/README.md.
-openhuman-session = { path = "../openhuman-session" }
+# cache) and the SDK-backed backend transport the core needs installed at
+# boot. `default-features = false`: the shell controls every product gate
+# through the `openhuman_core` line above, and this crate must not re-enable
+# defaults behind `check-feature-forwarding`'s back.
+openhuman-tinyhumans = { path = "../openhuman-tinyhumans", default-features = false }
# Tauri core and plugins. Use upstream Tauri's native WebView runtime (Wry),
# rather than the removed Chromium/CEF fork.
tauri = { version = "2.11", default-features = false, features = [
diff --git a/crates/openhuman-app/src/session/commands.rs b/crates/openhuman-app/src/session/commands.rs
index 7f53dcf306..e46c5176b0 100644
--- a/crates/openhuman-app/src/session/commands.rs
+++ b/crates/openhuman-app/src/session/commands.rs
@@ -1,13 +1,13 @@
//! Tauri commands the renderer uses to drive login, logout and the current
//! user. Each is a one-line delegate to the managed `SessionHost`; the
-//! `Err(String)` carries `openhuman_session::SessionError`'s stable
+//! `Err(String)` carries `openhuman_tinyhumans::SessionError`'s stable
//! `PREFIX:` so the frontend can classify without parsing prose.
-use openhuman_session::{CachedUser, SessionState};
+use openhuman_tinyhumans::{CachedUser, SessionState};
use super::SessionHost;
-fn err(error: openhuman_session::SessionError) -> String {
+fn err(error: openhuman_tinyhumans::SessionError) -> String {
error.to_string()
}
diff --git a/crates/openhuman-app/src/session/link.rs b/crates/openhuman-app/src/session/link.rs
index 6765a0aeb3..f6819d4b68 100644
--- a/crates/openhuman-app/src/session/link.rs
+++ b/crates/openhuman-app/src/session/link.rs
@@ -5,7 +5,7 @@
//! loopback.
use async_trait::async_trait;
-use openhuman_session::CoreLink;
+use openhuman_tinyhumans::CoreLink;
use serde_json::{json, Value};
use crate::core_process::CoreProcessHandle;
diff --git a/crates/openhuman-app/src/session/mod.rs b/crates/openhuman-app/src/session/mod.rs
index 9ce0cb8ce2..3f7d2e5e1d 100644
--- a/crates/openhuman-app/src/session/mod.rs
+++ b/crates/openhuman-app/src/session/mod.rs
@@ -1,5 +1,5 @@
//! The desktop session owner: login-token exchange, `/auth/me` and the
-//! current-user cache live in `openhuman-session`; this module is the glue
+//! current-user cache live in `openhuman-tinyhumans`; this module is the glue
//! that gives it a link to the embedded (or gateway) core, exposes it to the
//! renderer as Tauri commands, and forwards its change events as Tauri events.
//!
@@ -13,7 +13,7 @@ mod link;
use std::sync::Arc;
-use openhuman_session::{ClientHeaders, SessionEvent, SessionManager};
+use openhuman_tinyhumans::{ClientHeaders, SessionEvent, SessionManager};
use tauri::{AppHandle, Emitter, Manager};
use crate::core_process::CoreProcessHandle;
@@ -22,7 +22,7 @@ use crate::AppRuntime;
pub(crate) use link::HttpCoreLink;
/// Tauri event emitted whenever the credential or the current user changes.
-/// Payload: `openhuman_session::SessionState`.
+/// Payload: `openhuman_tinyhumans::SessionState`.
pub const AUTH_CHANGED_EVENT: &str = "auth://changed";
/// Tauri event emitted when the backend rejected the stored credential and it
/// has been cleared. Payload: `{ source }`.
@@ -89,5 +89,5 @@ pub fn install(app: &AppHandle<AppRuntime>, desktop: CoreProcessHandle) {
/// The signed-in user id, for synchronous callers (Sentry `before_send`).
pub fn peek_user_id() -> Option<String> {
- openhuman_session::identity::peek_user_id()
+ openhuman_tinyhumans::identity::peek_user_id()
}
diff --git a/crates/openhuman-tui/Cargo.toml b/crates/openhuman-tui/Cargo.toml
index 5e323bf4bf..8792fa7e47 100644
--- a/crates/openhuman-tui/Cargo.toml
+++ b/crates/openhuman-tui/Cargo.toml
@@ -18,7 +18,7 @@ path = "src/main.rs"
[dependencies]
openhuman-core.workspace = true
openhuman-rpc.workspace = true
-openhuman-session.workspace = true
+openhuman-tinyhumans.workspace = true
anyhow = "1"
base64 = "0.22"
chrono = "0.4"
diff --git a/crates/openhuman-tui/src/controls.rs b/crates/openhuman-tui/src/controls.rs
index ebdbc48ec2..dd592c9da4 100644
--- a/crates/openhuman-tui/src/controls.rs
+++ b/crates/openhuman-tui/src/controls.rs
@@ -198,7 +198,7 @@ async fn login_with_token(runtime: &Arc<CoreRuntime>, ui: &mut UiState) {
}
ui.settings_status = "Signing in…".to_string();
// Exchange, validate against `/auth/me`, and install in the core — all
- // owned by `openhuman-session`; the JWT never passes through this module.
+ // owned by `openhuman-tinyhumans`; the JWT never passes through this module.
let result = crate::session::session_manager(runtime)
.login_with_token(token.trim())
.await;
diff --git a/crates/openhuman-tui/src/runner_tests.rs b/crates/openhuman-tui/src/runner_tests.rs
index d781b746b2..085df170f1 100644
--- a/crates/openhuman-tui/src/runner_tests.rs
+++ b/crates/openhuman-tui/src/runner_tests.rs
@@ -65,13 +65,13 @@ fn tui_invokes_use_canonical_registered_rpc_method_names() {
"openhuman.config_get_privacy_mode",
"openhuman.config_set_privacy_mode",
"openhuman.auth_get_state",
- // Session ownership lives in `openhuman-session`; these are the
+ // Session ownership lives in `openhuman-tinyhumans`; these are the
// credential RPCs its `CoreLink` drives through the in-process link.
- openhuman_session::link::AUTH_GET_STATE,
- openhuman_session::link::AUTH_GET_SESSION_TOKEN,
- openhuman_session::link::AUTH_SET_CREDENTIAL,
- openhuman_session::link::AUTH_CLEAR_CREDENTIAL,
- openhuman_session::link::CONFIG_RESOLVE_API_URL,
+ openhuman_tinyhumans::link::AUTH_GET_STATE,
+ openhuman_tinyhumans::link::AUTH_GET_SESSION_TOKEN,
+ openhuman_tinyhumans::link::AUTH_SET_CREDENTIAL,
+ openhuman_tinyhumans::link::AUTH_CLEAR_CREDENTIAL,
+ openhuman_tinyhumans::link::CONFIG_RESOLVE_API_URL,
];
methods.push("openhuman.skills_list");
methods.push("openhuman.mcp_clients_installed_list");
diff --git a/crates/openhuman-tui/src/session.rs b/crates/openhuman-tui/src/session.rs
index e4d274d01f..a8bfc80aa9 100644
--- a/crates/openhuman-tui/src/session.rs
+++ b/crates/openhuman-tui/src/session.rs
@@ -1,4 +1,4 @@
-//! The TUI's session owner: `openhuman-session` over an in-process
+//! The TUI's session owner: `openhuman-tinyhumans` over an in-process
//! [`CoreRuntime`]. Login-token exchange and `/auth/me` happen here, in the
//! TUI process; the core only receives the resulting credential through
//! `auth.set_credential`.
@@ -7,7 +7,7 @@ use std::sync::{Arc, OnceLock};
use async_trait::async_trait;
use openhuman_core::core::runtime::CoreRuntime;
-use openhuman_session::{ClientHeaders, CoreLink, SessionManager};
+use openhuman_tinyhumans::{ClientHeaders, CoreLink, SessionManager};
/// `CoreLink` over `CoreRuntime::invoke` — no HTTP, no bearer.
pub struct InProcessLink(pub Arc<CoreRuntime>);