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
feat(inbound): expose storage callback in module config
Steven Enamakel35066f51b3d6
diff --git a/crates/openhuman-core/src/inbound/settings.rs b/crates/openhuman-core/src/inbound/settings.rsindex e6261b5017..00d15569f5 100644--- a/crates/openhuman-core/src/inbound/settings.rs+++ b/crates/openhuman-core/src/inbound/settings.rs@@ -1,11 +1,12 @@//! What `[inbound]` resolves to: the queue manifest and pipeline configuration//! the module runs, where its queues live, and whether routing is on.//!-//! The host hands the module its configuration (`queues`, `pipeline`) in the-//! module's private blob when it loads it ([`module_config`]), and declares-//! the same manifest on the module's storage scope when the storage host-//! binds it ([`queue_grant`]). Both read the last resolution, so the queues-//! the module asks for are exactly the queues the host serves.+//! The host hands the module its configuration (`queues`, `pipeline`, and the+//! storage callback) in the module's private blob when it loads it+//! ([`module_config`]), and declares the same manifest on the module's storage+//! scope when the storage host binds it ([`queue_grant`]). Both read the last+//! resolution, so the queues the module asks for are exactly the queues the+//! host serves.use std::path::Path;use std::sync::{Arc, RwLock};@@ -220,6 +221,7 @@ pub fn module_config(config: &Config) -> Value {json!({"queues": resolved.queues_json,"pipeline": resolved.pipeline_json,+ "storage_callback": tinystoragedrivers_bus::STORAGE_INTERFACE,})}diff --git a/crates/openhuman-core/src/inbound/settings_tests.rs b/crates/openhuman-core/src/inbound/settings_tests.rsindex a9f07b31dc..705bb27af4 100644--- a/crates/openhuman-core/src/inbound/settings_tests.rs+++ b/crates/openhuman-core/src/inbound/settings_tests.rs@@ -112,6 +112,10 @@ async fn the_module_config_is_what_the_storage_grant_declares() {let blob = module_config(&config);assert_eq!(blob["queues"]["queues"][0]["max_attempts"], 4);assert_eq!(blob["pipeline"]["version"], 1);+ assert_eq!(+ blob["storage_callback"],+ tinystoragedrivers_bus::STORAGE_INTERFACE+ );let grant = queue_grant().unwrap();assert_eq!(grant