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
fix: widen visibility of several internal helpers to `pub(crate)`
Steven Enamakelc3deea842bba
diff --git a/crates/openhuman-core/src/memory/guard/families/types.rs b/crates/openhuman-core/src/memory/guard/families/types.rsindex 3a0963b25e..4786ddbdf3 100644--- a/crates/openhuman-core/src/memory/guard/families/types.rs+++ b/crates/openhuman-core/src/memory/guard/families/types.rs@@ -40,7 +40,7 @@ macro_rules! decorator {}impl $name {- pub(super) fn new(inner: Arc<dyn MemoryProvider>, policy: Arc<GuardPolicy>) -> Self {+ pub(crate) fn new(inner: Arc<dyn MemoryProvider>, policy: Arc<GuardPolicy>) -> Self {Self { inner, policy }}diff --git a/crates/openhuman-core/src/memory/guard/test_support/fixtures.rs b/crates/openhuman-core/src/memory/guard/test_support/fixtures.rsindex ff683b1140..da8c45f44d 100644--- a/crates/openhuman-core/src/memory/guard/test_support/fixtures.rs+++ b/crates/openhuman-core/src/memory/guard/test_support/fixtures.rs@@ -42,7 +42,7 @@ pub(super) fn rendered_scope(scope: Option<&SourceScope>) -> Option<String> {}impl Call {- fn plain(method: &str) -> Self {+ pub(crate) fn plain(method: &str) -> Self {Self {method: method.into(),content: None,diff --git a/crates/openhuman-core/src/modules/memory/provider.rs b/crates/openhuman-core/src/modules/memory/provider.rsindex 346b26a6fc..ceb8b12c67 100644--- a/crates/openhuman-core/src/modules/memory/provider.rs+++ b/crates/openhuman-core/src/modules/memory/provider.rs@@ -282,7 +282,7 @@ impl ModuleMemoryProvider {/// How long `operation` may wait for the module: `None` waits it out.////// Unrecognised operations wait — see [`BOUNDED_READ_OPERATIONS`].- fn loading_grace(&self, operation: &str) -> Option<Duration> {+ pub(crate) fn loading_grace(&self, operation: &str) -> Option<Duration> {if BOUNDED_READ_OPERATIONS.contains(&operation) {Some(self.loading_grace)} else {diff --git a/crates/openhuman-core/src/search/tools/tavily/extract_tool.rs b/crates/openhuman-core/src/search/tools/tavily/extract_tool.rsindex 6ac9856719..8d7ec0d068 100644--- a/crates/openhuman-core/src/search/tools/tavily/extract_tool.rs+++ b/crates/openhuman-core/src/search/tools/tavily/extract_tool.rs@@ -32,7 +32,7 @@ impl TavilyExtractTool {/// Accept either a `urls` array or a single `url` string, so the agent can/// call this the obvious way for the one-document case.- fn collect_urls(args: &Value) -> anyhow::Result<Vec<String>> {+ pub(crate) fn collect_urls(args: &Value) -> anyhow::Result<Vec<String>> {let urls: Vec<String> = match args.get("urls") {Some(Value::Array(items)) => items.iter()diff --git a/crates/openhuman-core/src/search/tools/tavily/search_tool.rs b/crates/openhuman-core/src/search/tools/tavily/search_tool.rsindex 5f9722bb35..2760cae028 100644--- a/crates/openhuman-core/src/search/tools/tavily/search_tool.rs+++ b/crates/openhuman-core/src/search/tools/tavily/search_tool.rs@@ -39,7 +39,7 @@ impl TavilySearchTool {}}- fn build_body(&self, args: &Value, query: &str) -> Value {+ pub(crate) fn build_body(&self, args: &Value, query: &str) -> Value {let mut body = json!({"query": query,"max_results": self.client.requested_results(args),diff --git a/crates/openhuman-core/src/security/credentials/profiles/lock.rs b/crates/openhuman-core/src/security/credentials/profiles/lock.rsindex 012367c230..fabb3d613f 100644--- a/crates/openhuman-core/src/security/credentials/profiles/lock.rs+++ b/crates/openhuman-core/src/security/credentials/profiles/lock.rs@@ -313,7 +313,7 @@ impl AuthProfilesStore {/// [`STALE_LOCK_AGE_MS`] floor (30s) is far longer than the ~10s RPC/// timeout, so every `app_state_snapshot` timed out and retry-stormed for/// the whole 30s window before age-reclaim kicked in.- fn reclaim_self_owned_lock(&self) -> bool {+ pub(crate) fn reclaim_self_owned_lock(&self) -> bool {let me = std::process::id();tracing::trace!(target: "auth-profiles",diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_backend_resolution.rs b/crates/openhuman-core/src/tools/impl/browser/browser_backend_resolution.rsindex b48556e890..11bd8bc10a 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_backend_resolution.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_backend_resolution.rs@@ -50,7 +50,7 @@ impl BrowserTool {Ok(endpoint_reachable(&endpoint, Duration::from_millis(500)))}- async fn resolve_backend(&self) -> anyhow::Result<ResolvedBackend> {+ pub(crate) async fn resolve_backend(&self) -> anyhow::Result<ResolvedBackend> {let configured = self.configured_backend()?;match configured {diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_construction.rs b/crates/openhuman-core/src/tools/impl/browser/browser_construction.rsindex 6d5e93d01b..6034649eaf 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_construction.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_construction.rs@@ -74,11 +74,11 @@ impl BrowserTool {BrowserBackendKind::parse(&self.backend)}- fn rust_native_compiled() -> bool {+ pub(crate) fn rust_native_compiled() -> bool {cfg!(feature = "browser-native")}- fn rust_native_available(&self) -> bool {+ pub(crate) fn rust_native_available(&self) -> bool {#[cfg(feature = "browser-native")]{native_backend::NativeBrowserState::is_available(