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: reformat hook statics and gate test import
Steven Enamakel066a565c9660
diff --git a/crates/openhuman-core/src/agent/hooks.rs b/crates/openhuman-core/src/agent/hooks.rsindex f47aa3a596..66216f8a1d 100644--- a/crates/openhuman-core/src/agent/hooks.rs+++ b/crates/openhuman-core/src/agent/hooks.rs@@ -13,12 +13,10 @@ use crate::agent::tinyagents::host::OpenHumanRunContext;type NamedLearningSink = (Option<String>, Arc<dyn LearningSink>);type NamedToolHook = (Option<String>, Arc<dyn ToolHook<OpenHumanRunContext>>);-static EMBEDDER_POST_TURN_HOOKS: std::sync::LazyLock<- std::sync::Mutex<Vec<NamedLearningSink>>,-> = std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));-static EMBEDDER_TOOL_HOOKS: std::sync::LazyLock<- std::sync::Mutex<Vec<NamedToolHook>>,-> = std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));+static EMBEDDER_POST_TURN_HOOKS: std::sync::LazyLock<std::sync::Mutex<Vec<NamedLearningSink>>> =+ std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));+static EMBEDDER_TOOL_HOOKS: std::sync::LazyLock<std::sync::Mutex<Vec<NamedToolHook>>> =+ std::sync::LazyLock::new(|| std::sync::Mutex::new(Vec::new()));impl HookIdentity for OpenHumanRunContext {fn session_id(&self) -> Option<String> {diff --git a/crates/openhuman-core/src/attachments/provider_injected_tests.rs b/crates/openhuman-core/src/attachments/provider_injected_tests.rsindex dc0b1e0a48..0004d014b2 100644--- a/crates/openhuman-core/src/attachments/provider_injected_tests.rs+++ b/crates/openhuman-core/src/attachments/provider_injected_tests.rs@@ -1,5 +1,6 @@use super::tests::Probe;use super::*;+#[cfg(feature = "documents")]use std::sync::Mutex;#[tokio::test]