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): clean up core module exports and tests
Steven Enamakelcfa5bf55ba99
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rsindex 890b57fca1..7572969adc 100644--- a/crates/openhuman-core/src/core/all.rs+++ b/crates/openhuman-core/src/core/all.rs@@ -12,8 +12,8 @@ use std::{use serde_json::{Map, Value};-use crate::core::runtime::DispatchCtx;use crate::core::ControllerSchema;+use crate::core::runtime::DispatchCtx;/// A pinned, boxed future returned by a controller handler.pub type ControllerFuture = Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'static>>;@@ -1087,10 +1087,8 @@ pub fn all_http_method_schemas() -> Vec<HttpMethodSchemaDefinition> {/// Shared test helper: assert a domain's controller-schema list and/// registered-controller list stay in lockstep, and that a known function is-/// present. Replaces the brittle `assert_eq!(schemas().len(), N)` magic-number-/// pattern repeated across ~15 domains (plan.md §3/§6) — a legitimate new-/// controller no longer breaks the count, but a schema/handler desync or a-/// dropped op still fails.+/// present. Replaces the brittle magic-number count pattern repeated across+/// domains: new controllers do not break it, but schema/handler drift still fails.#[cfg(test)]pub(crate) fn assert_schema_controller_parity(schemas: &[ControllerSchema],@@ -1107,11 +1105,9 @@ pub(crate) fn assert_schema_controller_parity("expected a `{known_function}` controller schema to be registered",);}-#[path = "all_invoke.rs"]mod invoke_registered;pub use invoke_registered::try_invoke_registered_rpc;-#[cfg(test)]#[path = "all_tests.rs"]mod tests;diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rsindex b42eb894f0..600590e244 100644--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs@@ -739,7 +739,6 @@ pub(crate) fn saas_outcome_with(ctx, tool_name,)))}-/// Maps a SaaS gate verdict to a [`GateOutcome`].pub(crate) fn saas_outcome(verdict: Result<(), String>) -> GateOutcome {match verdict {