Skip to content

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

Merge pull request #7788 from senamakel/tinybus-align

Steven Enamakel72635a9f9d05
diff --cc Cargo.lock
index 4a0a22c70b,be24a68292..ecd118747d
--- a/Cargo.lock
+++ b/Cargo.lock
@@@ -7539,9 -8524,8 +8526,9 @@@ dependencies =
"serde_json",
"thiserror 2.0.20",
"tinyagents-harness",
+ "tinyagents-registry",
"tinyagents-session",
- "tinyinference-llm",
+ "tinyinference-llm 0.4.1",
"tinytools",
"tokio",
"tracing",
diff --cc crates/openhuman-core/src/modules/mod.rs
index 515aa3b6ea,7bdf990cfd..28dfba4e5c
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@@ -294,28 -315,28 +315,36 @@@ pub async fn import_legacy_tinybox(work
let _ = workspace_dir;
}
-/// Imports the legacy on-disk CCR tier under `root` into the tinyjuice
-/// module's blob storage, once per directory. `ttl` is the configured original
-/// lifetime. Never fails the caller: an error is logged and the import is
-/// retried at the next install.
/// 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.
+/// whose scope cannot be resolved here is skipped. Without the `modules`
+/// feature no module writes blobs, so there is nothing to sweep.
+#[cfg(feature = "modules")]
pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
- [storage_grant_tinyjuice::MODULE_ID]
- .into_iter()
- .filter_map(|id| storage_host::current_module_scope(id).ok())
- .collect()
+ #[cfg(feature = "modules")]
+ {
+ [storage_grant_tinyjuice::MODULE_ID]
+ .into_iter()
+ .filter_map(|id| storage_host::current_module_scope(id).ok())
+ .collect()
+ }
+ // Without the loader no module holds blobs.
+ #[cfg(not(feature = "modules"))]
+ {
+ Vec::new()
+ }
}
+/// See the `modules` build: with the feature off no module writes blobs.
+#[cfg(not(feature = "modules"))]
+pub(crate) fn expiring_blob_module_scopes() -> Vec<crate::storage::Scope> {
+ Vec::new()
+}
+
+/// Imports the legacy on-disk CCR tier under `root` into the tinyjuice
+/// module's blob storage, once per directory. `ttl` is the configured original
+/// lifetime. Never fails the caller: an error is logged and the import is
+/// retried at the next install.
pub async fn import_legacy_tinyjuice(root: &std::path::Path, ttl: Option<std::time::Duration>) {
#[cfg(feature = "modules")]
import_once(