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 imports across core crates
Steven Enamakeld2f4031ed326
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rsindex c33357fc94..0948d1279c 100644--- a/crates/openhuman-core/src/core/bus.rs+++ b/crates/openhuman-core/src/core/bus.rs@@ -39,7 +39,6 @@ use tinybus::events::EventBusConfig;// Consumers import the shared event contracts from TinyBus directly.use tinybus::global::OnceBus;use tinybus::version::{InterfaceVersion, PeerManifest, Version};-use tinybus::{EventHandler, SubscriptionHandle};use crate::core::events::DomainEvent;diff --git a/crates/openhuman-core/src/flows/node_contracts.rs b/crates/openhuman-core/src/flows/node_contracts.rsindex b2176acbdc..997e0eb4e8 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`].-use tinyflows::catalog::{NodeKindContract, NODE_KINDS};+use tinyflows::catalog::NodeKindContract;/// Appends this host's vendor-specific caveats to a portable tinyflows/// contract. One arm per kind that has host-owned facts; the rest pass through@@ -154,7 +154,7 @@ fn apply_host_overlay(contract: NodeKindContract) -> NodeKindContract {}/// Every node-kind contract with this host's overlay applied, in-/// [`NODE_KINDS`] order.+/// [`tinyflows::catalog::NODE_KINDS`] order.pub fn all_node_kind_contracts() -> Vec<NodeKindContract> {tinyflows::catalog::all_contracts().into_iter()@@ -163,7 +163,7 @@ pub fn all_node_kind_contracts() -> Vec<NodeKindContract> {}/// The overlaid contract for one node kind, or `None` when `kind` is not one-/// of [`NODE_KINDS`].+/// of [`tinyflows::catalog::NODE_KINDS`].pub fn node_kind_contract(kind: &str) -> Option<NodeKindContract> {tinyflows::catalog::contract_for(kind).map(apply_host_overlay)}diff --git a/crates/openhuman-core/src/flows/node_contracts_tests.rs b/crates/openhuman-core/src/flows/node_contracts_tests.rsindex 7ccd58bff0..24e4175f1b 100644--- a/crates/openhuman-core/src/flows/node_contracts_tests.rs+++ b/crates/openhuman-core/src/flows/node_contracts_tests.rs@@ -1,4 +1,5 @@use super::*;+use tinyflows::catalog::NODE_KINDS;#[test]fn overlay_preserves_every_kind() {diff --git a/crates/openhuman-core/src/flows/store.rs b/crates/openhuman-core/src/flows/store.rsindex d1570ed231..4ff67b2614 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;-use tinyflows_sqlite::flows::{FlowUpdateError, MAX_FLOW_RUNS_PER_FLOW};+use tinyflows_sqlite::flows::FlowUpdateError;/// 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/host_runtime/service/mod.rs b/crates/openhuman-core/src/inference/host_runtime/service/mod.rsindex b2a74bd45c..571b0027b7 100644--- a/crates/openhuman-core/src/inference/host_runtime/service/mod.rs+++ b/crates/openhuman-core/src/inference/host_runtime/service/mod.rs@@ -3,4 +3,3 @@mod speech;pub use speech::{transcribe, transcribe_with_prompt, tts};-use tinyinference_local::service::LocalAiService;diff --git a/crates/openhuman-core/src/inference/mod.rs b/crates/openhuman-core/src/inference/mod.rsindex bd51f4715b..0962d353f6 100644--- a/crates/openhuman-core/src/inference/mod.rs+++ b/crates/openhuman-core/src/inference/mod.rs@@ -45,9 +45,7 @@ pub use schemas::{pub use host_runtime::all_local_inference_controller_schemas;pub use host_runtime::all_local_inference_registered_controllers;pub use model_context::context_window_for_model;-use tinyinference_local::status::{- LocalAiEmbeddingResult, LocalAiSpeechResult, LocalAiStatus, LocalAiTtsResult,-};+use tinyinference_local::status::LocalAiStatus;/// Wire label for the local vision mode: `"ondemand"` when a vision model is/// configured, `"disabled"` otherwise. Mirrors TinyInference's own label: thediff --git a/crates/openhuman-core/src/security/pairing.rs b/crates/openhuman-core/src/security/pairing.rsindex efda1d1c2e..cd2ffb43cb 100644--- a/crates/openhuman-core/src/security/pairing.rs+++ b/crates/openhuman-core/src/security/pairing.rs@@ -11,13 +11,6 @@ use std::io::Write as _;#[cfg(unix)]use std::os::unix::fs::OpenOptionsExt as _;-/// `PairingGuard`, `constant_time_eq`, and the pairing lockout constants now-/// live in tinychannels; consumers import their owning crate directly.-use tinychannels_runtime::security::{- constant_time_eq, generate_code, generate_token, hash_token, is_token_hash, PairingGuard,- MAX_PAIR_ATTEMPTS, PAIR_LOCKOUT_SECS,-};-/// Environment variable for the core JSON-RPC bearer token (see `crate::core::auth`).pub const CORE_TOKEN_ENV_VAR: &str = "OPENHUMAN_CORE_TOKEN";diff --git a/crates/openhuman-core/src/web3/wallet/ops/state.rs b/crates/openhuman-core/src/web3/wallet/ops/state.rsindex aa402e7e20..d7c9b0d796 100644--- a/crates/openhuman-core/src/web3/wallet/ops/state.rs+++ b/crates/openhuman-core/src/web3/wallet/ops/state.rs@@ -385,7 +385,7 @@ pub(super) fn current_time_ms() -> u64 {.unwrap_or(0)}-pub(super) fn to_status(config: &Config, state: Option<StoredWalletState>) -> super::WalletStatus {+pub(super) fn to_status(config: &Config, state: Option<StoredWalletState>) -> tinywallet_web3::crypto::wallet::WalletStatus {match state {Some(state) => {// A mnemonic is "stored" if it's either in the JSON field (headless path)@@ -396,7 +396,7 @@ pub(super) fn to_status(config: &Config, state: Option<StoredWalletState>) -> su.map(|v| !v.trim().is_empty()).unwrap_or(false);let secret_stored = secret_in_json || keychain_has_mnemonic(config);- super::WalletStatus {+ tinywallet_web3::crypto::wallet::WalletStatus {configured: true,onboarding_completed: state.consent_granted && !state.accounts.is_empty(),consent_granted: state.consent_granted,@@ -407,7 +407,7 @@ pub(super) fn to_status(config: &Config, state: Option<StoredWalletState>) -> suupdated_at_ms: Some(state.updated_at_ms),}}- None => super::WalletStatus {+ None => tinywallet_web3::crypto::wallet::WalletStatus {configured: false,onboarding_completed: false,consent_granted: false,diff --git a/crates/openhuman-core/src/web3/wallet/ops/types.rs b/crates/openhuman-core/src/web3/wallet/ops/types.rsindex 15fe462504..b503585cc7 100644--- a/crates/openhuman-core/src/web3/wallet/ops/types.rs+++ b/crates/openhuman-core/src/web3/wallet/ops/types.rs@@ -5,13 +5,12 @@ use serde::{Deserialize, Serialize};// The wallet's vocabulary lives in `tinywallet-web3`, which the engine and the// tools share; the host keeps only the persisted shape and the setup params.use tinywallet_web3::crypto::wallet::{- WalletAccount, WalletChain, WalletSetupSource, WalletStatus,+ WalletAccount, WalletSetupSource,};/// Error message returned when the wallet has not been set up yet. Downstream/// boundaries match against it to classify the condition as an expected user/// state, so it stays out of Sentry; it is defined once in `tinywallet-web3`/// so the producer and any classifier cannot drift apart.-use tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE;#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]#[serde(rename_all = "camelCase")]