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
Merge upstream/main into fu-7801f-15
Steven Enamakela16f65529caf
diff --cc crates/openhuman-core/src/modules/mod.rsindex bbac80e115,3f57a27456..88dc3ebe00--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@@ -170,12 -170,9 +170,9 @@@ pub use types::{LoadPolicy, ModuleRecor/// Imports tinymcp's legacy SQLite files under `data_dir` into the module's/// storage, once per directory. Never fails the caller: an error is logged and/// the import is retried at the next open.- pub async fn import_legacy_mcp(- ctx: &crate::core::runtime::DispatchCtx,- data_dir: &std::path::Path,- ) {-pub async fn import_legacy_mcp(data_dir: &std::path::Path) {++pub async fn import_legacy_mcp(ctx: &crate::core::runtime::DispatchCtx, data_dir: &std::path::Path) {#[cfg(feature = "modules")]- match storage_import_tinymcp::import_legacy(data_dir).await {+ match storage_import_tinymcp::import_legacy(ctx, data_dir).await {Ok(outcome) => log::debug!("[mcp] legacy storage import: {outcome:?}"),Err(error) => log::warn!("[mcp] legacy storage import failed, will retry: {error:#}"),}diff --cc crates/openhuman-core/src/modules/storage_import_support.rsindex 5475864755,be5631cde0..9053384430--- a/crates/openhuman-core/src/modules/storage_import_support.rs+++ b/crates/openhuman-core/src/modules/storage_import_support.rs@@@ -23,8 -20,11 +23,8 @@@ pub(super) fn module_scopelet Some(backend) = crate::storage::installed() else {return Ok(None);};- let scope = super::storage_host::current_module_scope(- &crate::core::runtime::DispatchCtx::ambient(),- module_id,- )+ let scope = super::storage_host::current_module_scope(ctx, module_id)- .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;+ .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;let scoped = backend.for_scope(&scope).map_err(|error| anyhow!("open the module scope: {:?}", error.kind()))?;diff --cc crates/openhuman-core/src/modules/storage_import_tinyconnectors.rsindex f2238fd863,a5e65e4ba9..5dd8de4a9b--- a/crates/openhuman-core/src/modules/storage_import_tinyconnectors.rs+++ b/crates/openhuman-core/src/modules/storage_import_tinyconnectors.rs@@@ -27,8 -27,7 +27,8 @@@ use serde_json::{json, Value}use tinystoragedrivers::{CollectionSpec, ScopedStorage};use super::storage_grant_tinyconnectors::{MODULE_ID, PREFS_COLLECTION, TRIGGER_STREAM_PREFIX};- use super::storage_import_support as support;+use crate::core::runtime::DispatchCtx;+ use super::storage_import_support as support;const LOG_PREFIX: &str = "[connectors-import]";const PREFS_DIR: &str = "composio-user-scopes";diff --cc crates/openhuman-core/src/modules/storage_import_tinyjuice.rsindex 75edd9c104,1275f17baf..4a4781e56a--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs@@@ -28,8 -28,7 +28,8 @@@ use serde_json::jsonuse tinystoragedrivers::{Capability, ScopedStorage};use super::storage_grant_tinyjuice::{CCR_BLOB_PREFIX, MODULE_ID};- use super::storage_import_support as support;+use crate::core::runtime::DispatchCtx;+ use super::storage_import_support as support;const LOG_PREFIX: &str = "[tinyjuice-import]";/// `tinyjuice::cache::store::short_hash`: 16 bytes, hex encoded.diff --cc crates/openhuman-core/src/modules/storage_import_tinymcp.rsindex 6bda90c9c6,4b8f362c52..b67597bd7a--- a/crates/openhuman-core/src/modules/storage_import_tinymcp.rs+++ b/crates/openhuman-core/src/modules/storage_import_tinymcp.rs@@@ -74,8 -73,11 +74,8 @@@ pub(crate) async fn import_legacy(ctx:let Some(backend) = crate::storage::installed() else {return Ok(Outcome::NoBackend);};- let scope = super::storage_host::current_module_scope(- &crate::core::runtime::DispatchCtx::ambient(),- MODULE_ID,- )+ let scope = super::storage_host::current_module_scope(ctx, MODULE_ID)- .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;+ .map_err(|error| anyhow!("resolve the module scope: {:?}", error.kind()))?;let scoped = backend.for_scope(&scope).map_err(|error| anyhow!("open the module scope: {:?}", error.kind()))?;diff --cc crates/openhuman-core/src/modules/storage_import_tinywallet.rsindex faf4e585d4,eacae41293..3f877957ae--- a/crates/openhuman-core/src/modules/storage_import_tinywallet.rs+++ b/crates/openhuman-core/src/modules/storage_import_tinywallet.rs@@@ -27,8 -27,7 +27,8 @@@ use serde_json::jsonuse tinystoragedrivers::ScopedStorage;use super::storage_grant_tinywallet::{MODULE_ID, PAYMENTS_STREAM};- use super::storage_import_support as support;+use crate::core::runtime::DispatchCtx;+ use super::storage_import_support as support;const LOG_PREFIX: &str = "[x402-import]";const LEDGER_FILE: &str = "x402/payments.jsonl";