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(modules): remove unused ops module and its tests
Steven Enamakel2338d90eec44
diff --git a/crates/openhuman-core/src/modules/desktop.rs b/crates/openhuman-core/src/modules/desktop.rsindex b51c541975..b0b4330d86 100644--- a/crates/openhuman-core/src/modules/desktop.rs+++ b/crates/openhuman-core/src/modules/desktop.rs@@ -64,7 +64,7 @@ pub(crate) async fn proxy(config: &Config) -> Result<Proxy, String> {// The module refused its configuration and faulted; it// stays unusable in this process, so report it that way.tracing::warn!(%message, "[computer] module faulted on reinitialization");- super::resolution::table().mark_faulted(MODULE_ID, message.clone());+ tinybus::module::resolution::global().mark_faulted(MODULE_ID, message.clone());}message})?;diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rsindex f536237979..3e1699c02f 100644--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@ -55,7 +55,6 @@ mod memory_host;pub mod ops;pub mod platform;pub mod registry;-mod resolution;pub mod runtime;pub mod schemas;pub mod search;diff --git a/crates/openhuman-core/src/modules/ops.rs b/crates/openhuman-core/src/modules/ops.rsindex a29174b9e6..2e37f3ae14 100644--- a/crates/openhuman-core/src/modules/ops.rs+++ b/crates/openhuman-core/src/modules/ops.rs@@ -251,7 +251,7 @@ async fn resolve(config: &Config, record: &'static ModuleRecord) -> Result<(), S.await;match outcome {Ok(()) => {- prune_stale_versions(&root, record);+ prune_stale_versions(&root, record.id, record.version);Ok(())}Err(reason) => Err(reason),@@ -310,7 +310,7 @@ fn load_cached(let mut found_bundled = false;if let Some(bundled_root) = bundled_root {for asset in &assets {- let Some(cache_dir) = artifact_dir(bundled_root, record, asset.host_key) else {+ let Some(cache_dir) = artifact_dir(bundled_root, record.id, record.version, asset.host_key) else {continue;};if !cache_dir.join(asset.archive).is_file() {@@ -351,7 +351,7 @@ fn load_cached());}for asset in assets {- let Some(cache_dir) = artifact_dir(install_root, record, asset.host_key) else {+ let Some(cache_dir) = artifact_dir(install_root, record.id, record.version, asset.host_key) else {last_error ="the module's cache path could not be built from its registry entry".to_string();continue;diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rsindex 5670bea174..5abfe7f9d7 100644--- a/crates/openhuman-core/src/modules/ops_tests.rs+++ b/crates/openhuman-core/src/modules/ops_tests.rs@@ -263,8 +263,8 @@ async fn a_bounded_wait_with_nothing_cached_and_downloads_off_fails_rather_than_// left behind by one of those would be answered from cache before this// config is ever consulted, so clear it first and again at the end rather// than depending on which tests ran before this one.- let table = crate::modules::resolution::table();- table.reset_for_test("tinydocs");+ let table = tinybus::module::resolution::global();+ table.forget("tinydocs");// Nothing to download from, nothing cached: the resolution settles at once,// so a bounded caller gets the terminal reason, never `StillLoading`.@@ -283,7 +283,7 @@ async fn a_bounded_wait_with_nothing_cached_and_downloads_off_fails_rather_than_.into_iter().find(|status| status.id == "tinydocs").expect("tinydocs is a registry entry");- table.reset_for_test("tinydocs");+ table.forget("tinydocs");match &outcome {Ok(()) => {