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(modules): install storage host for loaded modules
Steven Enamakelb54cd08adf22
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.tomlindex 008cc3c9a7..5b72dabfd6 100644--- a/crates/openhuman-core/Cargo.toml+++ b/crates/openhuman-core/Cargo.toml@@ -151,6 +151,10 @@ tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session# The storage ports and the URL-to-backend facade (`storage` domain). No driver# by default: the `storage-*` features below add them.tinystoragedrivers = { path = "../../vendor/tinyagents/vendor/tinystoragedrivers/crates/tinystoragedrivers", default-features = false, features = ["blocking", "secrets", "file"] }+# The storage bus: the wire contract and the reference host server that the+# `modules::storage_host` interface answers loaded modules with. Modules only.+tinystoragedrivers-bus = { path = "../../vendor/tinyagents/vendor/tinystoragedrivers/crates/tinystoragedrivers-bus", optional = true }+tinystoragedrivers-client = { path = "../../vendor/tinyagents/vendor/tinystoragedrivers/crates/tinystoragedrivers-client", optional = true }tinyagents-runtime = { path = "../../vendor/tinyagents/crates/tinyagents-runtime" }tinyagents-orchestration = { path = "../../vendor/tinyagents/crates/tinyagents-orchestration" }tinyagents-tasks = { path = "../../vendor/tinyagents/crates/tinyagents-tasks" }@@ -658,7 +662,7 @@ tinymemes = ["dep:tinymemes"]# A loaded module is trusted in-process code with this process's privileges, and# tinybus never unloads one. See `crates/openhuman-core/src/modules/` before adding an entry# to the registry.-modules = ["tinybus/modules", "dep:tinybox-bus"]+modules = ["tinybus/modules", "dep:tinybox-bus", "dep:tinystoragedrivers-bus", "dep:tinystoragedrivers-client"]# Voice domain: STT/TTS providers, the standalone dictation# server, and always-on listening.# The desktop product enables voice explicitly; contributor defaults leave itdiff --git a/crates/openhuman-core/src/modules/host.rs b/crates/openhuman-core/src/modules/host.rsindex 96a5f99f40..c4c9ab414f 100644--- a/crates/openhuman-core/src/modules/host.rs+++ b/crates/openhuman-core/src/modules/host.rs@@ -186,6 +186,7 @@ async fn build_runtime() -> tinybus::Result<ModuleRuntime> {let connection = Connection::connect(transport.connect().await?).await?;super::tokenjuice_host::install(&connection).await?;+ super::storage_host::install(&connection).await?;#[cfg(feature = "web3")]super::wallet_host::install(&connection).await?;diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rsindex c54f21683d..bab8d3a77a 100644--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@ -81,6 +81,10 @@ pub mod schemas;#[cfg(feature = "modules")]pub mod search;#[cfg(feature = "modules")]+pub mod storage_grants;+#[cfg(feature = "modules")]+mod storage_host;+#[cfg(feature = "modules")]pub mod tinybox;#[cfg(feature = "modules")]mod tokenjuice_host;