Skip to content

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

fix(source): use module_artifact_in for staged artifact lookup

Steven Enamakelaae9a2148b00
diff --git a/crates/openhuman-core/src/modules/source.rs b/crates/openhuman-core/src/modules/source.rs
index e2e4938a8e..f099788927 100644
--- a/crates/openhuman-core/src/modules/source.rs
+++ b/crates/openhuman-core/src/modules/source.rs
@@ -94,7 +94,7 @@ pub fn local_artifact(id: &str) -> Option<PathBuf> {
pub fn staged_artifact(id: &str) -> Option<PathBuf> {
super::registry::find(id)?;
let dirs = std::env::var_os("OPENHUMAN_MODULE_PATH")?;
- std::env::split_paths(&dirs).find_map(|dir| released_artifact_in(&dir, id))
+ std::env::split_paths(&dirs).find_map(|dir| module_artifact_in(&dir, id))
}
/// Find either a locally built library or a released TinyBus module in one