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(storage): scope tinyjuice grants to its own blob prefix
Steven Enamakel7c676501a4cf
diff --git a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rsindex 6c4d30cc6b..7a9b8ae2f5 100644--- a/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs+++ b/crates/openhuman-core/src/modules/storage_grant_schemas_tests.rs@@ -109,7 +109,7 @@ fn tinyjuice_reaches_only_its_blob_prefix() {&grant,Object::Blobs,"Get",- json!({"key": "juice/ccr/abc"})+ json!({"key": "tinyjuice_ccr/abc"})));assert!(!allowed(&grant,diff --git a/crates/openhuman-core/src/storage/schema.rs b/crates/openhuman-core/src/storage/schema.rsindex 50d4b0ea71..7d19424bf3 100644--- a/crates/openhuman-core/src/storage/schema.rs+++ b/crates/openhuman-core/src/storage/schema.rs@@ -49,7 +49,18 @@ pub fn owner_schemas() -> Vec<Schema> {schemas.push(tinychannels_bus::storage::storage_schema());schemas.push(tinyconnectors_bus::storage::storage_schema());schemas.push(tinybox_bus::storage::storage_schema());- schemas.push(tinyjuice_bus::storage::storage_schema());+ schemas.push(+ Schema::new(crate::storage::schema_support::owner("tinyjuice"))+ .collection_with(+ 1,+ tinyjuice_bus::storage::collections()+ .into_iter()+ .next()+ .expect("TinyJuice declares its savings collection"),+ ScopeClass::Module,+ )+ .blobs(tinyjuice_bus::storage::CCR_PREFIX, ScopeClass::Module),+ );}#[cfg(feature = "web3")]schemas.push(tinywallet_bus::storage::storage_schema());