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(core): drop redundant error conversions and unused test re-exports
Steven Enamakel87e52804c6c9
diff --git a/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs b/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rsindex 4506acb63c..4ea6e6d175 100644--- a/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs+++ b/crates/openhuman-core/src/inference/provider/factory/subprocess_providers.rs@@ -165,7 +165,7 @@ pub(super) fn try_create_claude_code_chat_model_from_string(egress,);let documents = match crate::storage::local::open("claude_code::provider", &workspace)- .and_then(|opened| opened.scoped().map_err(anyhow::Error::from))+ .and_then(|opened| opened.scoped()){Ok(scoped) => Arc::clone(scoped.documents()),Err(error) => return Some(Err(error)),diff --git a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs b/crates/openhuman-core/src/integrations/composio/file_store_documents.rsindex 54bc34c774..b61d630298 100644--- a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs+++ b/crates/openhuman-core/src/integrations/composio/file_store_documents.rs@@ -102,7 +102,7 @@ impl Docs {T: DeserializeOwned + Serialize + Default + Send + 'static,R: Send + 'static,{- self.state.update(name, change).map_err(Into::into)+ self.state.update(name, change)}/// Whether the one-time import of the legacy `integrations/<name>` file@@ -134,7 +134,7 @@ impl Docs {#[cfg(test)]pub(super) fn save<T: Serialize>(&self, name: &str, value: &T) -> Result<()> {log::debug!("[composio:store] document save id={name}");- self.state.put(name, value).map_err(Into::into)+ self.state.put(name, value)}}diff --git a/crates/openhuman-core/src/storage/rebind_tests.rs b/crates/openhuman-core/src/storage/rebind_tests.rsindex a86d7978e5..67959c5d74 100644--- a/crates/openhuman-core/src/storage/rebind_tests.rs+++ b/crates/openhuman-core/src/storage/rebind_tests.rs@@ -1,5 +1,5 @@use super::*;-#[cfg(feature = "legacy-import")]+#[cfg(all(feature = "legacy-import", feature = "storage-sqlite"))]use crate::storage::import::Outcome;#[cfg(feature = "storage-sqlite")]use crate::storage::{CollectionSpec, Precondition, Scope};diff --git a/crates/openhuman-core/src/web_chat/mod.rs b/crates/openhuman-core/src/web_chat/mod.rsindex 4033266282..d1e440eabe 100644--- a/crates/openhuman-core/src/web_chat/mod.rs+++ b/crates/openhuman-core/src/web_chat/mod.rs@@ -85,8 +85,6 @@ pub(crate) use ops::invalidate_thread_sessions_for_tenant;pub(crate) use ops::lock_thread_sessions_for_test;#[cfg(any(test, debug_assertions))]pub use ops::parallel_in_flight_entries_for_test;-#[cfg(test)]-pub(crate) use ops::track_parallel_turn_for_test;pub use ops::{cancel_all_turns, cancel_chat_scoped, cancel_should_target, channel_web_cancel,channel_web_chat, channel_web_queue_clear, channel_web_queue_remove, channel_web_queue_status,diff --git a/crates/openhuman-core/src/web_chat/ops.rs b/crates/openhuman-core/src/web_chat/ops.rsindex 0ef8f58026..1c1557ed0b 100644--- a/crates/openhuman-core/src/web_chat/ops.rs+++ b/crates/openhuman-core/src/web_chat/ops.rs@@ -39,8 +39,6 @@ pub use state::parallel_in_flight_entries_for_test;#[cfg(test)]pub(crate) use state::scoped_key;pub(super) use state::thread_sessions;-#[cfg(test)]-pub(crate) use state::track_parallel_turn_for_test;pub use state::{cancel_should_target, in_flight_entries_for_test, invalidate_thread_sessions};pub(crate) use state::{event_session_id_for, key_for};#[cfg(test)]