Skip to content

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

fix: gate blob sweep on module support

Steven Enamakel1e46b8081670
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rs
index aadbf49dff..5ddf0ffb6c 100644
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@ -301,6 +301,7 @@ pub async fn import_legacy_tinybox(workspace_dir: &std::path::Path) {
/// Scopes, under the current tenant, that hold expiring blobs written by
/// modules (today TinyJuice's CCR originals), for the blob sweeper. A module
/// whose scope cannot be resolved here is skipped.
+#[cfg(feature = "modules")]
pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
[storage_grant_tinyjuice::MODULE_ID]
.into_iter()
@@ -308,6 +309,11 @@ pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
.collect()
}
+#[cfg(not(feature = "modules"))]
+pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
+ Vec::new()
+}
+
pub async fn import_legacy_tinyjuice(root: &std::path::Path, ttl: Option<std::time::Duration>) {
#[cfg(feature = "modules")]
import_once(