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 types and constants across multiple modules
Steven Enamakelfccede788c61
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rsindex d3f0216e42..d108ae51ec 100644--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/steering.rs@@ -112,25 +112,6 @@ impl SteeringDirective {}}-/// Why a crate-native steering directive could not be delivered.-#[derive(Debug, PartialEq, Eq)]-pub(crate) enum SteerDirectiveError {- /// No such sub-agent — never existed, or already finished and pruned.- Unknown,- /// The caller's `parent_session` does not own this sub-agent.- NotOwned,- /// The sub-agent already reached a terminal status.- AlreadyDone,- /// The sub-agent has no live crate-native `SteeringHandle` registered- /// (e.g. a legacy `RunQueue`-only run), so control-flow steering that has no- /// `RunQueue` lane cannot be delivered.- NoRegisteredHandle,- /// The run's `SteeringPolicy` does not permit this directive's command- /// kind. Enqueuing it anyway would abort the run with- /// `TinyAgentsError::Steering`, so we refuse up front.- PolicyRejected,-}-/// Inject a message into a running sub-agent. Prefer the crate-native/// TinyAgents steering registry when the child run has registered its live/// handle, and fall back to the OpenHuman `RunQueue` compatibility path.diff --git a/crates/openhuman-core/src/agent/session_host/turn/tools.rs b/crates/openhuman-core/src/agent/session_host/turn/tools.rsindex d62109c34b..6da782c425 100644--- a/crates/openhuman-core/src/agent/session_host/turn/tools.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/tools.rs@@ -171,47 +171,6 @@ impl OpenHumanSessionHost {}}- /// Drain pending [`crate::core::events::DomainEvent::WorkflowsChanged`]- /// events. Returns `true` when at least one was observed (or the listener- /// lagged) and the caller should re-scan the installed skill set via- /// [`Self::refresh_workflows`]. Mirror of- /// [`Self::drain_composio_integrations_changed_events`].- pub(in super::super) fn drain_skill_events(&mut self) -> bool {- self.ensure_skill_events_listener();- let Some(rx) = self.skill_events_rx.as_mut() else {- return false;- };- use tinybus::TryRecvError;-- let mut saw_signal = false;- let mut closed = false;- loop {- match rx.try_recv() {- Ok(crate::core::events::DomainEvent::WorkflowsChanged { reason }) => {- saw_signal = true;- log::info!("[agent_loop] received installed-skills changed event ({reason})");- }- Ok(_) => {}- Err(TryRecvError::Empty) => break,- Err(TryRecvError::Lagged(skipped)) => {- saw_signal = true;- log::warn!(- "[agent_loop] installed-skills listener lagged by {} event(s); forcing catalogue re-check",- skipped- );- }- Err(TryRecvError::Closed) => {- closed = true;- break;- }- }- }- if closed {- self.skill_events_rx = None;- }- saw_signal- }-/// Reconcile the session's delegation schema against the latest cached/// integrations snapshot. Returns `true` only when a refresh applied.pub(super) fn refresh_delegation_tools_from_cached_integrations(diff --git a/crates/openhuman-core/src/core/cli_capability.rs b/crates/openhuman-core/src/core/cli_capability.rsindex 36f201f012..d9dc668f6a 100644--- a/crates/openhuman-core/src/core/cli_capability.rs+++ b/crates/openhuman-core/src/core/cli_capability.rs@@ -46,10 +46,6 @@ use crate::core::subsystem::DriverClass;/// the emit site and the tests so the two cannot drift.pub const CAPABILITY_UNAVAILABLE_PREFIX: &str = "memory driver ";-/// Stable, grep-friendly opening of the legacy-client diagnostic. Shared the-/// same way as [`CAPABILITY_UNAVAILABLE_PREFIX`].-pub const LEGACY_CLIENT_UNAVAILABLE_PREFIX: &str = "memory driver ";-/// The operator-facing sentence.////// `invocation` is a CLI form built from static strings only (e.g.diff --git a/crates/openhuman-core/src/security/audit.rs b/crates/openhuman-core/src/security/audit.rsindex 5251e6479e..18777bf66a 100644--- a/crates/openhuman-core/src/security/audit.rs+++ b/crates/openhuman-core/src/security/audit.rs@@ -228,22 +228,6 @@ pub struct CommandExecutionLog<'a> {pub duration_ms: u64,}-/// Structured generated tool execution details for audit correlation.-#[derive(Debug, Clone)]-pub struct GeneratedToolExecutionLog<'a> {- pub channel: &'a str,- pub tool_name: &'a str,- pub provider_id: &'a str,- pub capability_id: &'a str,- pub risk_level: &'a str,- pub policy_decision: &'a str,- pub approval_id: Option<&'a str>,- pub approved: bool,- pub allowed: bool,- pub success: bool,- pub duration_ms: u64,-}-impl AuditLogger {/// Build a disabled `Arc<AuditLogger>` for tests and contexts that need a/// handle but should not write to disk. The `enabled = false` flag