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
style: apply rustfmt import ordering and formatting
Steven Enamakel8be6a67ecc82
diff --git a/crates/openhuman-core/src/inference/host_runtime/mod.rs b/crates/openhuman-core/src/inference/host_runtime/mod.rsindex 82dbab4aa0..c79182ca00 100644--- a/crates/openhuman-core/src/inference/host_runtime/mod.rs+++ b/crates/openhuman-core/src/inference/host_runtime/mod.rs@@ -36,4 +36,4 @@ pub use schemas::{all_controller_schemas as all_local_inference_controller_schemas,all_registered_controllers as all_local_inference_registered_controllers,};-use {tinyinference_local::service::LocalAiService};+use tinyinference_local::service::LocalAiService;diff --git a/crates/openhuman-core/src/security/mod.rs b/crates/openhuman-core/src/security/mod.rsindex 1eb259a9f5..4d59445b71 100644--- a/crates/openhuman-core/src/security/mod.rs+++ b/crates/openhuman-core/src/security/mod.rs@@ -49,9 +49,12 @@ pub use policy::{CommandClass, GateDecision};#[allow(unused_imports)]pub use policy::{TrustedAccess, TrustedRoot};pub use policy::{POLICY_BLOCKED_MARKER, POLICY_DENIED_MARKER};+use tinychannels_runtime::security::PairingGuard;#[allow(unused_imports)]-pub use {pairing::ensure_core_rpc_token_for_bind, pairing::is_public_bind, pairing::CoreBindTokenError, pairing::CORE_TOKEN_ENV_VAR};-use {tinychannels_runtime::security::PairingGuard};+pub use {+ pairing::ensure_core_rpc_token_for_bind, pairing::is_public_bind, pairing::CoreBindTokenError,+ pairing::CORE_TOKEN_ENV_VAR,+};pub use schemas::{all_controller_schemas as all_security_controller_schemas,diff --git a/crates/openhuman-core/src/web3/wallet/endpoints.rs b/crates/openhuman-core/src/web3/wallet/endpoints.rsindex 45f3dfd6a5..134bd4c6e4 100644--- a/crates/openhuman-core/src/web3/wallet/endpoints.rs+++ b/crates/openhuman-core/src/web3/wallet/endpoints.rs@@ -15,7 +15,7 @@ use tinywallet_web3::crypto::seams::RpcEndpoints;#[cfg(test)]use tinywallet_web3::crypto::defaults::SolanaClusterReferenceData;-use {tinywallet_web3::crypto::wallet::WalletChain};+use tinywallet_web3::crypto::wallet::WalletChain;/// The `OPENHUMAN_WALLET_RPC_<NAME>` variable that overrides `network`.pub(crate) fn evm_rpc_env_var(network: EvmNetwork) -> &'static str {diff --git a/crates/openhuman-core/src/web3/wallet/execution.rs b/crates/openhuman-core/src/web3/wallet/execution.rsindex f05a5e292c..86aae58b2a 100644--- a/crates/openhuman-core/src/web3/wallet/execution.rs+++ b/crates/openhuman-core/src/web3/wallet/execution.rs@@ -20,7 +20,7 @@ pub use tinywallet_bus::wire::{use tinywallet_bus::wire::{EvmNetwork, WalletNetworkDefaults};-use {tinywallet_web3::crypto::wallet::WalletChain};+use tinywallet_web3::crypto::wallet::WalletChain;/// Default row for every supported network, with the host's endpoints.pub async fn network_defaults() -> Result<Outcome<Vec<WalletNetworkDefaults>>, String> {diff --git a/crates/openhuman-core/src/web3/wallet/mod.rs b/crates/openhuman-core/src/web3/wallet/mod.rsindex b1a21f6859..e6f36bb6d1 100644--- a/crates/openhuman-core/src/web3/wallet/mod.rs+++ b/crates/openhuman-core/src/web3/wallet/mod.rs@@ -70,9 +70,6 @@ pub use execution::{#[cfg(feature = "web3")]pub(crate) use ops::secret_material;#[cfg(feature = "web3")]-pub use {ops::reveal_recovery_phrase, ops::setup, ops::status, ops::RevealRecoveryPhraseResult, ops::WalletSetupParams};-use {tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, tinywallet_web3::crypto::wallet::WalletSetupSource, tinywallet_web3::crypto::wallet::WalletStatus, tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE};-#[cfg(feature = "web3")]pub use schemas::{all_controller_schemas, all_registered_controllers, all_wallet_controller_schemas,all_wallet_registered_controllers, schemas, wallet_schemas,@@ -84,6 +81,17 @@ pub use tinywallet_web3::crypto::defaults::{evm_asset_catalog, explorer_tx_url, EvmNetwork, RpcSource, SolanaCluster,WalletAssetDefinition, WalletNetworkDefaults,};+#[cfg(feature = "web3")]+pub use {+ ops::reveal_recovery_phrase, ops::setup, ops::status, ops::RevealRecoveryPhraseResult,+ ops::WalletSetupParams,+};+use {+ tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain,+ tinywallet_web3::crypto::wallet::WalletSetupSource,+ tinywallet_web3::crypto::wallet::WalletStatus,+ tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE,+};// ---------------------------------------------------------------------------// Disabled facade — compiled only when the `web3` feature is OFF.diff --git a/crates/openhuman-core/src/web3/wallet/ops.rs b/crates/openhuman-core/src/web3/wallet/ops.rsindex a78b1fb946..e4bdf105aa 100644--- a/crates/openhuman-core/src/web3/wallet/ops.rs+++ b/crates/openhuman-core/src/web3/wallet/ops.rs@@ -9,8 +9,13 @@ mod types;use types::StoredWalletState;pub(crate) use types::WalletSecretMaterial;+use {+ tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain,+ tinywallet_web3::crypto::wallet::WalletSetupSource,+ tinywallet_web3::crypto::wallet::WalletStatus,+ tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE,+};pub use {types::RevealRecoveryPhraseResult, types::WalletSetupParams};-use {tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, tinywallet_web3::crypto::wallet::WalletSetupSource, tinywallet_web3::crypto::wallet::WalletStatus, tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE};use log::debug;diff --git a/crates/openhuman-core/src/web3/wallet/ops/state.rs b/crates/openhuman-core/src/web3/wallet/ops/state.rsindex d7c9b0d796..0c17e472a4 100644--- a/crates/openhuman-core/src/web3/wallet/ops/state.rs+++ b/crates/openhuman-core/src/web3/wallet/ops/state.rs@@ -385,7 +385,10 @@ pub(super) fn current_time_ms() -> u64 {.unwrap_or(0)}-pub(super) fn to_status(config: &Config, state: Option<StoredWalletState>) -> tinywallet_web3::crypto::wallet::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)diff --git a/crates/openhuman-core/src/web3/wallet/ops/types.rs b/crates/openhuman-core/src/web3/wallet/ops/types.rsindex b503585cc7..b09dea6ef9 100644--- a/crates/openhuman-core/src/web3/wallet/ops/types.rs+++ b/crates/openhuman-core/src/web3/wallet/ops/types.rs@@ -4,9 +4,7 @@ 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, WalletSetupSource,-};+use tinywallet_web3::crypto::wallet::{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`diff --git a/crates/openhuman-core/src/web3/wallet/schemas.rs b/crates/openhuman-core/src/web3/wallet/schemas.rsindex 8f55ab6e78..8b87da257a 100644--- a/crates/openhuman-core/src/web3/wallet/schemas.rs+++ b/crates/openhuman-core/src/web3/wallet/schemas.rs@@ -8,8 +8,11 @@ use super::execution::{balances, chain_status, execute_prepared, lookup_tx, network_defaults, prepare_transfer,supported_assets, tx_receipt, tx_status, ExecutePreparedParams, PrepareTransferParams,};-use {tinywallet_web3::crypto::wallet::WalletAccount, super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletSetupSource};use super::{encode_erc20_transfer, EvmNetwork, WalletChain};+use {+ super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletAccount,+ tinywallet_web3::crypto::wallet::WalletSetupSource,+};#[derive(Debug, Deserialize)]#[serde(rename_all = "camelCase")]diff --git a/crates/openhuman-core/src/web3/wallet/test_support.rs b/crates/openhuman-core/src/web3/wallet/test_support.rsindex 949748ddab..8c5ab9d5f7 100644--- a/crates/openhuman-core/src/web3/wallet/test_support.rs+++ b/crates/openhuman-core/src/web3/wallet/test_support.rs@@ -11,9 +11,13 @@use tempfile::TempDir;-use {super::ops::setup, tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletSetupSource};use crate::config::rpc as config_rpc;use crate::config::test_env::EnvVarGuard;+use {+ super::ops::setup, super::ops::WalletSetupParams,+ tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain,+ tinywallet_web3::crypto::wallet::WalletSetupSource,+};pub(crate) static TEST_LOCK: tokio::sync::Mutex<()> = tokio::sync::Mutex::const_new(());diff --git a/crates/openhuman-core/src/web3/wallet/transport.rs b/crates/openhuman-core/src/web3/wallet/transport.rsindex afc73e16af..c5043de885 100644--- a/crates/openhuman-core/src/web3/wallet/transport.rs+++ b/crates/openhuman-core/src/web3/wallet/transport.rs@@ -36,8 +36,8 @@ use tinywallet_crypto::rpc::{NetworkId, Transport, TransportError, TransportResuuse tinywallet_web3::crypto::defaults::EvmNetwork;use super::endpoints::{rpc_url_for_chain, rpc_url_for_evm_network};-use {tinywallet_web3::crypto::wallet::WalletChain};use super::rpc::{redact_rpc_url, rest_get_text, rest_post_text, rpc_call_to};+use tinywallet_web3::crypto::wallet::WalletChain;/// Adapter over OpenHuman's wallet RPC layer.///