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
refactor(caps_host): clean up imports and structure
Steven Enamakel9ffa32f0f207
diff --git a/crates/openhuman-core/src/flows/caps_host/agent.rs b/crates/openhuman-core/src/flows/caps_host/agent.rsindex d081f067c9..cde57e373a 100644--- a/crates/openhuman-core/src/flows/caps_host/agent.rs+++ b/crates/openhuman-core/src/flows/caps_host/agent.rs@@ -12,12 +12,12 @@ use std::sync::Arc;use serde_json::{json, Value};+use super::prompt::build_completion_messages;use super::*;use crate::config::Config;use crate::flows::agent_route::{harness_model_default_override, route_custom_entry_lookup, route_for_agent_ref, AgentRoute,};-use super::prompt::build_completion_messages;use crate::modules::tinyflows as module;#[path = "agent_fallback.rs"]diff --git a/crates/openhuman-core/src/flows/caps_host/agent_harness.rs b/crates/openhuman-core/src/flows/caps_host/agent_harness.rsindex 3b19b3abef..999008de0e 100644--- a/crates/openhuman-core/src/flows/caps_host/agent_harness.rs+++ b/crates/openhuman-core/src/flows/caps_host/agent_harness.rs@@ -1,6 +1,6 @@+use super::tier::escalated_origin_for_nested_harness;use super::*;use std::borrow::Cow;-use super::tier::escalated_origin_for_nested_harness;impl OpenHumanAgentRunner {/// Full harness turn: build a real session agent for `agent_ref` and drivediff --git a/crates/openhuman-core/src/flows/caps_host/binding.rs b/crates/openhuman-core/src/flows/caps_host/binding.rsindex 89aafa9836..4eaeb41fdf 100644--- a/crates/openhuman-core/src/flows/caps_host/binding.rs+++ b/crates/openhuman-core/src/flows/caps_host/binding.rs@@ -177,7 +177,9 @@ pub(crate) async fn serve() -> Result<CapsHostRegistration, String> {let origin = crate::security::turn_origin::AgentTurnOrigin::TrustedAutomation {job_id: flow_id.clone(),- source: crate::security::turn_origin::TrustedAutomationSource::Workflow { require_approval },+ source: crate::security::turn_origin::TrustedAutomationSource::Workflow {+ require_approval,+ },};let ctx = ctx.with_turn_origin(origin);let security = Arc::new(crate::security::SecurityPolicy::from_config(diff --git a/crates/openhuman-core/src/flows/caps_host/tools/composio.rs b/crates/openhuman-core/src/flows/caps_host/tools/composio.rsindex 43a6d9bc2e..37adc4b99d 100644--- a/crates/openhuman-core/src/flows/caps_host/tools/composio.rs+++ b/crates/openhuman-core/src/flows/caps_host/tools/composio.rs@@ -24,13 +24,9 @@ impl FlowCallPolicy for FlowPolicy {security: &SecurityPolicy,class: tinybox_bus::CommandClass,) -> std::result::Result<GateDecision, String> {- let policy = super::super::tier::tier_policy_from_config(- dispatch,- captured,- Some(live),- security,- )- .map_err(capability_payload)?;+ let policy =+ super::super::tier::tier_policy_from_config(dispatch, captured, Some(live), security)+ .map_err(capability_payload)?;super::super::enforce_node_tier_gate(&policy, class, "tool_call").map_err(capability_payload)}diff --git a/crates/openhuman-core/src/skills/ops.rs b/crates/openhuman-core/src/skills/ops.rsindex 0c4f3966d4..527e449959 100644--- a/crates/openhuman-core/src/skills/ops.rs+++ b/crates/openhuman-core/src/skills/ops.rs@@ -32,9 +32,8 @@pub use super::bundled::install_bundled_skills;pub use super::ops_create::{create_workflow, CreateWorkflowParams, WorkflowCreateInputDef};pub use super::ops_discover::{- discover_automations, discover_workflows, is_workspace_trusted,- load_workflow_metadata, load_workflow_metadata_for, read_workflow_resource,- read_workflow_resource_for,+ discover_automations, discover_workflows, is_workspace_trusted, load_workflow_metadata,+ load_workflow_metadata_for, read_workflow_resource, read_workflow_resource_for,};pub use super::ops_install::{install_workflow_from_url, uninstall_workflow, validate_install_url, validate_resolved_host,