Skip to content

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

feat(core): gate module blob scopes behind modules feature

Steven Enamakel8de3e39fbef6
diff --git a/Cargo.lock b/Cargo.lock
index a882a0cb4c..4a0a22c70b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7539,6 +7539,7 @@ dependencies = [
"serde_json",
"thiserror 2.0.20",
"tinyagents-harness",
+ "tinyagents-registry",
"tinyagents-session",
"tinyinference-llm",
"tinytools",
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rs
index aadbf49dff..4711752d4f 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,12 @@ pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
.collect()
}
+/// Without the `modules` feature no module holds blobs.
+#[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(