Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(deps): unify tinybus dependency resolution

Steven Enamakel6861526c75a2
diff --git a/Cargo.toml b/Cargo.toml
index d4155534aa..197474a35e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -64,6 +64,14 @@ tinybus = { path = "vendor/tinybus/crates/tinybus" }
tinybus-macros = { path = "vendor/tinybus/crates/tinybus-macros" }
tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" }
+[patch."https://github.com/senamakel/tinybus"]
+# The v2 storage and TinyBox modules depend on the migration fork URL. Patch
+# that source identity to the same checkout as the canonical dependency above
+# so all bus interfaces share one Rust type identity.
+tinybus = { path = "vendor/tinybus/crates/tinybus" }
+tinybus-macros = { path = "vendor/tinybus/crates/tinybus-macros" }
+tinybus-module = { path = "vendor/tinybus/crates/tinybus-module" }
+
[patch."https://github.com/tinyhumansai/tinystoragedrivers"]
# One editable checkout every module resolves onto. The v2 repository splits
# the public facade, API, types and primitive implementations into separate
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index bb605e092e..b44c2b54f6 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -318,6 +318,13 @@ tinybus = { path = "../../vendor/tinybus/crates/tinybus" }
tinybus-macros = { path = "../../vendor/tinybus/crates/tinybus-macros" }
tinybus-module = { path = "../../vendor/tinybus/crates/tinybus-module" }
+[patch."https://github.com/senamakel/tinybus"]
+# The fork-pinned storage packages use this source identity; keep their bus
+# types unified with the host's vendored checkout.
+tinybus = { path = "../../vendor/tinybus/crates/tinybus" }
+tinybus-macros = { path = "../../vendor/tinybus/crates/tinybus-macros" }
+tinybus-module = { path = "../../vendor/tinybus/crates/tinybus-module" }
+
[patch."https://github.com/tinyhumansai/tinystoragedrivers"]
# One editable checkout every module resolves onto: each vendor/tiny* manifest
# names tinystoragedrivers by git tag, and this redirects them all to
diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas.rs b/crates/openhuman-core/src/modules/storage_grant_schemas.rs
index 49d088dc09..f66b26b7d5 100644
--- a/crates/openhuman-core/src/modules/storage_grant_schemas.rs
+++ b/crates/openhuman-core/src/modules/storage_grant_schemas.rs
@@ -22,7 +22,7 @@ use std::sync::Arc;
use super::storage_grants::StorageGrant;
use super::storage_queue_manifest::QueueManifest;
-use crate::storage::schema::module_items;
+use crate::storage::schema::module_collections;
/// One module's row: its registry id, the schema owner that declares its
/// storage, secret prefixes the schema cannot name, and the queue manifest the
@@ -130,7 +130,7 @@ pub(super) async fn migrate_imported(ctx: &crate::core::runtime::DispatchCtx, mo
pub(super) fn grant_for(module_id: &str) -> Option<StorageGrant> {
let row = ROWS.iter().find(|row| row.module == module_id)?;
let queues = row.queues.and_then(|source| source());
- let items = module_items(row.owner);
+ let items = module_collections(row.owner);
let mut secret_prefixes: Vec<String> = row.secrets.iter().map(|s| (*s).to_owned()).collect();
secret_prefixes.extend(items.secrets);
Some(StorageGrant {