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: files changed crates/openhuman-core/src/agent/goals/tools.rs,crates/openhuman-core/src/agent/
Steven Enamakel0635bdb27ae5
diff --git a/crates/openhuman-core/src/agent/goals/tools.rs b/crates/openhuman-core/src/agent/goals/tools.rsindex 1c25f58550..6187ea3abe 100644--- a/crates/openhuman-core/src/agent/goals/tools.rs+++ b/crates/openhuman-core/src/agent/goals/tools.rs@@ -12,7 +12,7 @@ use std::sync::Arc;use tinyagents_graph::goals::{GoalTool, GoalToolKind, GoalUpdateHook};use tinytools::Tool;-use super::{goal_to_value, store, ThreadGoal};+use {super::goal_to_value, super::store, tinyagents_graph::goals::ThreadGoal};/// The model-facing goal tools for `workspace_dir`, each publishing/// `DomainEvent::ThreadGoalUpdated` after a write.diff --git a/crates/openhuman-core/src/agent/harness/agent_graph.rs b/crates/openhuman-core/src/agent/harness/agent_graph.rsindex 967517312a..2dbe876277 100644--- a/crates/openhuman-core/src/agent/harness/agent_graph.rs+++ b/crates/openhuman-core/src/agent/harness/agent_graph.rs@@ -71,7 +71,7 @@ pub struct AgentTurnRequest {/// (`definition.effective_tokenjuice_compression()`), threaded into the/// sub-agent `TurnContextMiddleware` so tool outputs compact like the chat/// path instead of taking a blunt byte-cap truncation (#4466).- pub tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression,+ pub tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression,/// The spawn's host-config snapshot, supplying the `[context]` middleware/// knobs (compaction, microcompact, autocompact, tool-result budget).///diff --git a/crates/openhuman-core/src/agent/harness/builtin_definitions.rs b/crates/openhuman-core/src/agent/harness/builtin_definitions.rsindex 5fc645ff06..08c49a2698 100644--- a/crates/openhuman-core/src/agent/harness/builtin_definitions.rs+++ b/crates/openhuman-core/src/agent/harness/builtin_definitions.rs@@ -73,7 +73,7 @@ pub(crate) fn test_main_def() -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![SubagentEntry::AgentId("__test_inherit_echo".into()),SubagentEntry::AgentId("__test_inherit_parallel_worker".into()),@@ -119,7 +119,7 @@ pub(crate) fn test_inherit_echo_def() -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,@@ -158,7 +158,7 @@ pub(crate) fn test_inherit_parallel_worker_def() -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,diff --git a/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs b/crates/openhuman-core/src/agent/harness/definition/agent_definition.rsindex c3e27dbbf7..d8a4c836f5 100644--- a/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs+++ b/crates/openhuman-core/src/agent/harness/definition/agent_definition.rs@@ -9,7 +9,7 @@ use super::prompt_source::PromptSource;use super::source::DefinitionSource;use super::subagents::{deserialize_subagent_entries, SubagentEntry};use super::tier::AgentTier;-use crate::inference::tokenjuice::AgentTokenjuiceCompression;+use tinyjuice_bus::types::AgentTokenjuiceCompression;/// Iteration ceiling for an [`IterationPolicy::Extended`] agent — the higher/// bound a long-running agent (orchestrator, deep research) is allowed to reachdiff --git a/crates/openhuman-core/src/agent/harness/definition_tests.rs b/crates/openhuman-core/src/agent/harness/definition_tests.rsindex a28b3cae28..9731fadab1 100644--- a/crates/openhuman-core/src/agent/harness/definition_tests.rs+++ b/crates/openhuman-core/src/agent/harness/definition_tests.rs@@ -24,7 +24,7 @@ fn make_def(id: &str) -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,diff --git a/crates/openhuman-core/src/agent/library/ops_tests.rs b/crates/openhuman-core/src/agent/library/ops_tests.rsindex 62c7059d5e..ecb210cda2 100644--- a/crates/openhuman-core/src/agent/library/ops_tests.rs+++ b/crates/openhuman-core/src/agent/library/ops_tests.rs@@ -25,7 +25,7 @@ fn definition() -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::ReadOnly,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![SubagentEntry::AgentId("critic".to_string()),SubagentEntry::Skills(SkillsWildcard {diff --git a/crates/openhuman-core/src/agent/session_host/builder/factory.rs b/crates/openhuman-core/src/agent/session_host/builder/factory.rsindex 5ea2f564d4..c708ae204a 100644--- a/crates/openhuman-core/src/agent/session_host/builder/factory.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/factory.rs@@ -670,7 +670,7 @@ impl OpenHumanSessionHost {.unwrap_or(false);let effective_tokenjuice_compression = target_def.map(|def| def.effective_tokenjuice_compression())- .unwrap_or(crate::inference::tokenjuice::AgentTokenjuiceCompression::Full);+ .unwrap_or(tinyjuice_bus::types::AgentTokenjuiceCompression::Full);// Stamp the resolved agent definition id onto the OpenHumanSessionHost via the// builder. Without this call, `agent_definition_name` fallsdiff --git a/crates/openhuman-core/src/agent/session_host/builder/setters.rs b/crates/openhuman-core/src/agent/session_host/builder/setters.rsindex 08f74adce5..1748d6f576 100644--- a/crates/openhuman-core/src/agent/session_host/builder/setters.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/setters.rs@@ -39,7 +39,7 @@ impl SessionHostBuilder {session_history_locator: None,omit_memory_context: None,payload_summarizer: None,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Full,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Full,tool_policy: None,}}@@ -387,7 +387,7 @@ impl SessionHostBuilder {/// Set the per-agent TokenJuice tool-output compression profile.pub fn tokenjuice_compression(mut self,- profile: crate::inference::tokenjuice::AgentTokenjuiceCompression,+ profile: tinyjuice_bus::types::AgentTokenjuiceCompression,) -> Self {self.tokenjuice_compression = profile;selfdiff --git a/crates/openhuman-core/src/agent/session_host/types.rs b/crates/openhuman-core/src/agent/session_host/types.rsindex 2634f09359..66ffeeb7f7 100644--- a/crates/openhuman-core/src/agent/session_host/types.rs+++ b/crates/openhuman-core/src/agent/session_host/types.rs@@ -429,7 +429,7 @@ pub struct OpenHumanSessionHost {Option<Arc<dyn crate::agent::tinyagents::payload_summarizer::PayloadSummarizer>>,/// Per-agent TokenJuice profile for tool results entering this session's/// model context.- pub(super) tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression,+ pub(super) tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression,/// Pre-execution policy hook for tool calls in this session. The/// default policy allows all calls so existing agents keep their/// behaviour unless a caller opts into stricter policy.@@ -615,7 +615,7 @@ pub struct SessionHostBuilder {pub(super) payload_summarizer:Option<Arc<dyn crate::agent::tinyagents::payload_summarizer::PayloadSummarizer>>,/// Per-agent TokenJuice tool-output compression profile.- pub(super) tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression,+ pub(super) tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression,/// Optional pre-execution tool policy. Defaults to allow-all.pub(super) tool_policy: Option<Arc<dyn ToolPolicy>>,}diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rsindex 7ae9e9f158..c74bcdf6be 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs@@ -53,14 +53,14 @@ pub(super) use dispatch::{run_subagent_via_graph, AggregatedUsage};#[cfg(test)]use crate::agent::progress::AgentProgress;#[cfg(test)]-use crate::inference::tokenjuice::AgentTokenjuiceCompression;-#[cfg(test)]use std::collections::HashSet;#[cfg(test)]use std::sync::Arc;#[cfg(test)]use tinyagents_session::transcript::TranscriptMessage;#[cfg(test)]+use tinyjuice_bus::types::AgentTokenjuiceCompression;+#[cfg(test)]#[cfg(test)]use worker_mirror::{mirror_worker_thread, mirror_worker_thread_from_history};diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rsindex 8edb389e77..f61196e07b 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph/dispatch.rs@@ -9,9 +9,9 @@ use std::sync::Arc;use crate::agent::progress::AgentProgress;use crate::agent::subagent_host::types::SubagentRunError;use crate::agent::tinyagents::{run_turn_via_tinyagents_shared, SubagentScope};-use crate::inference::tokenjuice::AgentTokenjuiceCompression;use tinyagents_harness::run_queue::RunQueue;use tinyagents_session::transcript::TranscriptMessage;+use tinyjuice_bus::types::AgentTokenjuiceCompression;use tinytools::WorkspaceDescriptor;use tinytools::{Tool, ToolSpec};use tinytools_agent::dialect::TranscriptEntry;diff --git a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rsindex a2747625c1..32f9fe2675 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops_tests.rs@@ -26,7 +26,7 @@ fn make_def_named_tools(names: &[&str]) -> AgentDefinition {timeout_secs: None,sandbox_mode: crate::agent::harness::definition::SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,diff --git a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rsindex 32fd135ea8..90a12ca2c7 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/budget_gate.rs@@ -68,8 +68,8 @@ use tinyinference_llm::usage::Usage;use crate::config::{Config, DEFAULT_MODEL};use crate::cron::scheduler_gate;-use crate::inference::tokenjuice::AgentTokenjuiceCompression;use crate::platform::cost;+use tinyjuice_bus::types::AgentTokenjuiceCompression;/// OpenHuman's [`BudgetGate`]: scheduler-gate back-pressure, cost-tracker/// budget enforcement, and TokenJuice-profile-aware compression advice.diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rsindex e1a0518ab7..bf05301d5c 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/tool_output.rs@@ -20,10 +20,10 @@ use crate::agent::harness::tool_result_artifacts::{};use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;use crate::inference::tokenjuice::generate::GenerateTicket;-use crate::inference::tokenjuice::AgentTokenjuiceCompression;use tinyagents_harness::artifacts::tool_results::{apply_per_result_persistence, ArtifactRead, ToolResultArtifactStore,};+use tinyjuice_bus::types::AgentTokenjuiceCompression;/// TinyJuice's own estimate: `ceil(characters / 4)`, not bytes. Multibyte/// content has more bytes than characters, so a byte-based estimate herediff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rsindex eec547a5f9..00cb5f4dc0 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/turn_context.rs@@ -18,8 +18,8 @@ use tinytools::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;use crate::agent::tinyagents::turn_outcome::ToolCallOutcome;-use crate::inference::tokenjuice::AgentTokenjuiceCompression;use tinyagents_harness::artifacts::tool_results::ToolResultArtifactStore;+use tinyjuice_bus::types::AgentTokenjuiceCompression;use super::tool_output::ToolOutputMiddleware;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rsindex 3ae7013bcf..16424eb5a1 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs@@ -20,9 +20,9 @@ use tinytools::{ToolPolicy as TaToolPolicy, ToolResult as TaToolResult};use crate::agent::context::CLEARED_PLACEHOLDER;use crate::agent::tinyagents::payload_summarizer::PayloadSummarizer;-use crate::inference::tokenjuice::AgentTokenjuiceCompression;use tinyagents_harness::context::{RunConfig, RunContext};use tinyinference_llm::model::ModelRequest;+use tinyjuice_bus::types::AgentTokenjuiceCompression;use tinytools::Tool;fn ctx() -> RunContext<crate::agent::tinyagents::host::OpenHumanRunContext> {@@ -94,7 +94,7 @@ fn summarizer_mw(ps: Arc<dyn PayloadSummarizer>) -> ToolOutputMiddleware {payload_summarizer: Some(ps),artifact_store: None,tokenjuice_compaction_enabled: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Full,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Full,runtime_config: Some(summarizing_config()),tool_policies: HashMap::new(),artifact_reads: Default::default(),@@ -109,10 +109,7 @@ fn summarizer_mw(ps: Arc<dyn PayloadSummarizer>) -> ToolOutputMiddleware {/// Run `fut` against a stubbed TinyJuice module, returning what it was sent.async fn with_module<F: std::future::Future>(fut: F,-) -> (- F::Output,- Vec<crate::inference::tokenjuice::types::CompactRequest>,-) {+) -> (F::Output, Vec<tinyjuice_bus::wire::CompactRequest>) {use crate::inference::tokenjuice::module_stub;let recorded = Arc::new(std::sync::Mutex::new(Vec::new()));let output = module_stub::with_stub(module_stub::summarizing(recorded.clone()), fut).await;diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_file_read_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_file_read_tests.rsindex 4187e65426..f723e644b1 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_file_read_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tool_output_file_read_tests.rs@@ -10,10 +10,7 @@ async fn run_shell(id: &str,command: &str,output: &str,-) -> (- String,- Vec<crate::inference::tokenjuice::types::CompactRequest>,-) {+) -> (String, Vec<tinyjuice_bus::wire::CompactRequest>) {let mut ctx = ctx();let mut call = TaToolCall::new(id, "shell", json!({ "command": command }));mw.before_tool(&mut ctx, &(), &mut call).await.unwrap();diff --git a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rsindex b2ef8ca627..f057226623 100644--- a/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/payload_summarizer_tests.rs@@ -30,7 +30,7 @@ fn dummy_definition() -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs b/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rsindex 04f0763fdf..e86fc1faa7 100644--- a/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs+++ b/crates/openhuman-core/src/channels/runtime/dispatch/mod_scoping_tests_tests.rs@@ -69,7 +69,7 @@ fn def_with_scope(scope: ToolScope) -> AgentDefinition {timeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: None,agent_tier: crate::agent::harness::definition::AgentTier::Worker,diff --git a/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs b/crates/openhuman-core/src/flows/builder_tools/kind_reads.rsindex d712d39a01..168fb52d91 100644--- a/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs+++ b/crates/openhuman-core/src/flows/builder_tools/kind_reads.rs@@ -245,7 +245,7 @@ impl Tool for GetNodeKindContractTool {None => Ok(ToolResult::error(format!("'{kind}' is not a tinyflows node kind — call list_node_kinds for the {} valid \kinds.",- crate::flows::node_contracts::NODE_KINDS.len()+ tinyflows::catalog::NODE_KINDS.len()))),}}diff --git a/crates/openhuman-core/src/flows/node_contracts.rs b/crates/openhuman-core/src/flows/node_contracts.rsindex 02568086e6..81ad85ef95 100644--- a/crates/openhuman-core/src/flows/node_contracts.rs+++ b/crates/openhuman-core/src/flows/node_contracts.rs@@ -14,7 +14,7 @@//! `propose_workflow` description all read the *overlaid* view via//! [`all_node_kind_contracts`] / [`node_kind_contract`].-pub use tinyflows::catalog::{ConfigField, NodeKindContract, PortSpec, NODE_KINDS};+use tinyflows::catalog::{ConfigField, NodeKindContract, PortSpec, NODE_KINDS};/// Appends this host's vendor-specific caveats to a portable tinyflows/// contract. One arm per kind that has host-owned facts; the rest pass throughdiff --git a/crates/openhuman-core/src/flows/skills/mod.rs b/crates/openhuman-core/src/flows/skills/mod.rsindex 51c8bc287e..01b4bd3238 100644--- a/crates/openhuman-core/src/flows/skills/mod.rs+++ b/crates/openhuman-core/src/flows/skills/mod.rs@@ -23,7 +23,7 @@//! The manual's bytes live in `tinyflows-copilot`; this host only converts the//! portable file list into its native bundled-skill registration.-use crate::skills::bundled::{BundledFile, BundledSkill};+use {tinyskills::BundledFile, tinyskills::BundledSkill};/// The `flow-authoring` bundle, embedded from the sibling directory.///diff --git a/crates/openhuman-core/src/flows/store.rs b/crates/openhuman-core/src/flows/store.rsindex d5e39bc9c4..d1570ed231 100644--- a/crates/openhuman-core/src/flows/store.rs+++ b/crates/openhuman-core/src/flows/store.rs@@ -23,7 +23,7 @@ use tinyflows_catalog::{};use tinyflows_drivers::catalog::FlowCatalogDocuments;-pub use tinyflows_sqlite::flows::{FlowUpdateError, MAX_FLOW_RUNS_PER_FLOW};+use tinyflows_sqlite::flows::{FlowUpdateError, MAX_FLOW_RUNS_PER_FLOW};/// The document catalog for this call when the host configured a storage/// backend ([`crate::storage`]), in the acting agent's scope.diff --git a/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs b/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rsindex f08a55f87f..9b7aebeaac 100644--- a/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/module_stub_tests.rs@@ -8,7 +8,10 @@ use std::sync::{Arc, Mutex};use futures::future::BoxFuture;-use super::types::{CompactRequest, CompactResponse, GenerateRequest};+use {+ tinyjuice_bus::wire::CompactRequest, tinyjuice_bus::wire::CompactResponse,+ tinyjuice_bus::wire::GenerateRequest,+};pub(crate) type StubCompactor =Arc<dyn Fn(CompactRequest) -> BoxFuture<'static, CompactResponse> + Send + Sync>;diff --git a/crates/openhuman-core/src/inference/tokenjuice/savings.rs b/crates/openhuman-core/src/inference/tokenjuice/savings.rsindex 8bacba83a4..dad25c609e 100644--- a/crates/openhuman-core/src/inference/tokenjuice/savings.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/savings.rs@@ -22,7 +22,7 @@ use std::sync::{Mutex, OnceLock};use serde::{Deserialize, Serialize};-use crate::inference::tokenjuice::types::{CompressorKind, ContentKind};+use {tinyjuice_bus::types::CompressorKind, tinyjuice_bus::types::ContentKind};/// Per-key (model / compressor) rolled-up savings.#[derive(Debug, Clone, Default, Serialize, Deserialize)]diff --git a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs b/crates/openhuman-core/src/inference/tokenjuice/schemas.rsindex 46333c5d2a..43c948337b 100644--- a/crates/openhuman-core/src/inference/tokenjuice/schemas.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/schemas.rs@@ -11,7 +11,7 @@ use serde_json::{Map, Value};use crate::core::all::{ControllerFuture, RegisteredController};use crate::core::{ControllerSchema, FieldSchema, TypeSchema};-use super::types::{ContentHint, ContentKind};+use {tinyjuice_bus::types::ContentHint, tinyjuice_bus::types::ContentKind};pub fn all_controller_schemas() -> Vec<ControllerSchema> {vec![diff --git a/crates/openhuman-core/src/inference/tokenjuice/tools.rs b/crates/openhuman-core/src/inference/tokenjuice/tools.rsindex 2df7407ed1..f08043ed7a 100644--- a/crates/openhuman-core/src/inference/tokenjuice/tools.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/tools.rs@@ -11,8 +11,8 @@use async_trait::async_trait;use serde_json::{json, Value};-use crate::inference::tokenjuice::types::{RangeUnit, RetrieveRange};use tinytools::{PermissionLevel, Tool, ToolResult};+use {tinyjuice_bus::wire::RangeUnit, tinyjuice_bus::wire::RetrieveRange};pub struct TokenjuiceRetrieveTool;diff --git a/crates/openhuman-core/src/inference/tokenjuice/types.rs b/crates/openhuman-core/src/inference/tokenjuice/types.rsindex 368405a22a..eea94a32d1 100644--- a/crates/openhuman-core/src/inference/tokenjuice/types.rs+++ b/crates/openhuman-core/src/inference/tokenjuice/types.rs@@ -15,11 +15,11 @@//! values the `tinyjuice` library itself uses and envelopes that exist only on//! the bus. Nothing here needs to care which is which.-pub use tinyjuice_bus::types::{+use tinyjuice_bus::types::{AgentTokenjuiceCompression, CompressOptions, CompressedOutput, CompressorKind, ContentHint,ContentKind, LlmSummaryMode,};-pub use tinyjuice_bus::wire::{+use tinyjuice_bus::wire::{CacheStats, CompactRequest, CompactResponse, GenerateRequest, InstallRequest, RangeUnit,RetrieveRange,};diff --git a/crates/openhuman-core/src/modules/tokenjuice_host.rs b/crates/openhuman-core/src/modules/tokenjuice_host.rsindex 2832440b63..648bcbd2d6 100644--- a/crates/openhuman-core/src/modules/tokenjuice_host.rs+++ b/crates/openhuman-core/src/modules/tokenjuice_host.rs@@ -19,7 +19,7 @@ impl MlHost {/// or already used, and the module falls back to its own compressors.async fn generate(&self,- request: crate::inference::tokenjuice::types::GenerateRequest,+ request: tinyjuice_bus::wire::GenerateRequest,) -> tinybus::Result<Option<String>> {crate::inference::tokenjuice::generate::serve(request).awaitdiff --git a/crates/openhuman-core/src/skills/bundled/mod.rs b/crates/openhuman-core/src/skills/bundled/mod.rsindex e10356f79c..784856e508 100644--- a/crates/openhuman-core/src/skills/bundled/mod.rs+++ b/crates/openhuman-core/src/skills/bundled/mod.rs@@ -2,7 +2,7 @@use std::path::{Path, PathBuf};-pub use tinyskills::{BundledFile, BundledSkill, InstallReport};+use tinyskills::{BundledFile, BundledSkill, InstallReport};#[cfg(test)]#[path = "mod_tests.rs"]diff --git a/crates/openhuman-core/src/skills/bus.rs b/crates/openhuman-core/src/skills/bus.rsindex 26073946eb..8fe6cdac2f 100644--- a/crates/openhuman-core/src/skills/bus.rs+++ b/crates/openhuman-core/src/skills/bus.rs@@ -26,7 +26,7 @@ use tinybus::SubscriptionHandle;/// [`DomainEvent`] exposes no stable slug yet, so matching passes an empty/// slug: bare-domain patterns match every event in the domain and/// slug-qualified patterns stay inert rather than firing for the whole domain.-pub use tinyskills::TriggerPattern;+use tinyskills::TriggerPattern;fn pattern_matches_event(pattern: &TriggerPattern, event: &DomainEvent) -> bool {// TODO(#skills-triggers): pass the real slug once DomainEvent exposes one.diff --git a/crates/openhuman-core/src/skills/catalog/ops.rs b/crates/openhuman-core/src/skills/catalog/ops.rsindex 5425e4271e..e83b147ebf 100644--- a/crates/openhuman-core/src/skills/catalog/ops.rs+++ b/crates/openhuman-core/src/skills/catalog/ops.rs@@ -14,13 +14,14 @@ use tinyskills::{};use super::registry::skill_registry;-use super::types::{- CatalogDetail, CatalogEntry, CatalogPage, CatalogQuery, RegistryCatalogEntry, RegistryFacets,- DEFAULT_PAGE_SIZE, MAX_PAGE_SIZE,-};use crate::skills::ops_install::{fetch_scanned, gate_install, ScanAcknowledgement, SkillInstallOutcome,};+use {+ super::types::CatalogDetail, super::types::CatalogPage, super::types::CatalogQuery,+ super::types::RegistryCatalogEntry, super::types::DEFAULT_PAGE_SIZE,+ super::types::MAX_PAGE_SIZE, tinyskills::CatalogEntry, tinyskills::RegistryFacets,+};const REFRESH_ON_BOOT_ENV: &str = "OPENHUMAN_SKILL_REGISTRY_REFRESH_ON_BOOT";/// Prefix of every registry error a caller sees, followed by thediff --git a/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs b/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rsindex eade11d4ce..04f66aaae8 100644--- a/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs+++ b/crates/openhuman-core/src/skills/catalog/schemas/wire_types.rs@@ -3,9 +3,12 @@use serde::{Deserialize, Serialize};use crate::core::ControllerSchema;-use crate::skills::catalog::types::{CatalogPage, CatalogQuery, Facet, Freshness};use crate::skills::ops_install::SkillInstallOutcome;use crate::skills::ops_types::WorkflowScope;+use {+ crate::skills::catalog::types::CatalogPage, crate::skills::catalog::types::CatalogQuery,+ tinyskills::Facet, tinyskills::Freshness,+};// ── Params ──────────────────────────────────────────────────────────────────diff --git a/crates/openhuman-core/src/skills/catalog/schemas/wire_types_tests.rs b/crates/openhuman-core/src/skills/catalog/schemas/wire_types_tests.rsindex 12b210e599..37fd077feb 100644--- a/crates/openhuman-core/src/skills/catalog/schemas/wire_types_tests.rs+++ b/crates/openhuman-core/src/skills/catalog/schemas/wire_types_tests.rs@@ -2,7 +2,7 @@ use super::*;use serde_json::json;-use crate::skills::catalog::types::{CatalogEntry, RegistryCatalogEntry};+use {crate::skills::catalog::types::RegistryCatalogEntry, tinyskills::CatalogEntry};fn params(value: serde_json::Value) -> CatalogParams {serde_json::from_value(value).expect("params")diff --git a/crates/openhuman-core/src/skills/catalog/tools.rs b/crates/openhuman-core/src/skills/catalog/tools.rsindex 469be55285..faccf6eb8f 100644--- a/crates/openhuman-core/src/skills/catalog/tools.rs+++ b/crates/openhuman-core/src/skills/catalog/tools.rs@@ -15,7 +15,10 @@ use crate::tools::status::{NOT_FOUND_MARKER, UNSUPPORTED_MARKER};use tinytools::{PermissionLevel, Tool, ToolResult};use super::ops;-use super::types::{CatalogPage, CatalogQuery, RegistryErrorKind, MAX_PAGE_SIZE};+use {+ super::types::CatalogPage, super::types::CatalogQuery, super::types::MAX_PAGE_SIZE,+ tinyskills::RegistryErrorKind,+};/// Matches returned per browse/search call when the caller does not say:/// enough candidates to compare and pick from in one read. A broad query overdiff --git a/crates/openhuman-core/src/skills/catalog/types.rs b/crates/openhuman-core/src/skills/catalog/types.rsindex 6a1f41596c..276157960a 100644--- a/crates/openhuman-core/src/skills/catalog/types.rs+++ b/crates/openhuman-core/src/skills/catalog/types.rs@@ -3,7 +3,7 @@use serde::Serialize;-pub use tinyskills::{+use tinyskills::{CatalogEntry, Facet, Freshness, RegistryErrorKind, RegistryErrorSummary, RegistryFacets,};diff --git a/crates/openhuman-core/src/tools/impl/network/host.rs b/crates/openhuman-core/src/tools/impl/network/host.rsindex dc978ba534..6343a934a3 100644--- a/crates/openhuman-core/src/tools/impl/network/host.rs+++ b/crates/openhuman-core/src/tools/impl/network/host.rs@@ -33,7 +33,7 @@ impl AsyncHtmlExtractor for TinyJuiceHtml {async fn looks_like_html(&self, body: &str) -> anyhow::Result<bool> {let kind = crate::inference::tokenjuice::detect(body.to_string(),- crate::inference::tokenjuice::types::ContentHint::default(),+ tinyjuice_bus::types::ContentHint::default(),).await.map_err(anyhow::Error::msg)?;diff --git a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rsindex a860256ce3..c61ce20e92 100644--- a/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs+++ b/crates/openhuman-core/src/tools/orchestrator_tools_tests.rs@@ -27,7 +27,7 @@ fn def(id: &str, when_to_use: &str, delegate_name: Option<&str>) -> AgentDefinittimeout_secs: None,sandbox_mode: SandboxMode::None,background: false,- tokenjuice_compression: crate::inference::tokenjuice::AgentTokenjuiceCompression::Auto,+ tokenjuice_compression: tinyjuice_bus::types::AgentTokenjuiceCompression::Auto,subagents: vec![],delegate_name: delegate_name.map(String::from),agent_tier: crate::agent::harness::definition::AgentTier::Worker,