Skip to content

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

refactor(tests): update agent registry imports in tests

Steven Enamakelffcd20659356
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
index 75bf3feb70..4d7a264e25 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
@@ -3,7 +3,7 @@ use super::*;
#[cfg(feature = "flows")]
#[tokio::test]
async fn cold_flow_prompt_uses_the_module_and_warm_resume_does_not_refetch() {
- crate::agent::harness::host_definition::AgentDefinitionRegistry::init_global_builtins()
+ crate::agent_registry::host_definition::AgentDefinitionRegistry::init_global_builtins()
.expect("builtin definitions");
let temp = tempfile::tempdir().expect("workspace");
let config = crate::config::Config {
@@ -67,7 +67,7 @@ async fn explicit_flow_session_prompt_override_does_not_require_tinyflows_or_con
..Default::default()
};
let mut definition =
- crate::agent::harness::host_definition::AgentDefinitionRegistry::builtins_only()
+ crate::agent_registry::host_definition::AgentDefinitionRegistry::builtins_only()
.get("workflow_builder")
.expect("workflow_builder builtin")
.clone();
diff --git a/crates/openhuman-core/src/cron/tools/collapsed_tests.rs b/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
index 8d3d20e7cd..58ccb9f2f5 100644
--- a/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/collapsed_tests.rs
@@ -1,6 +1,6 @@
use super::*;
use crate::agent::tinyagents::host::OpenHumanRunContext;
-use crate::agent::turn_origin::AgentTurnOrigin;
+use crate::security::turn_origin::AgentTurnOrigin;
use crate::core::runtime::{ComponentSet, CoreContext, DomainSet};
use tinyagents_harness::{context::RunConfig, ids::CallId, tool::ToolExecutionContext};
diff --git a/crates/openhuman-core/src/cron/tools/update_tests.rs b/crates/openhuman-core/src/cron/tools/update_tests.rs
index 521cfa8af5..7a09f23a0e 100644
--- a/crates/openhuman-core/src/cron/tools/update_tests.rs
+++ b/crates/openhuman-core/src/cron/tools/update_tests.rs
@@ -1,6 +1,6 @@
use super::*;
use crate::agent::tinyagents::host::OpenHumanRunContext;
-use crate::agent::turn_origin::AgentTurnOrigin;
+use crate::security::turn_origin::AgentTurnOrigin;
use crate::config::Config;
use tempfile::TempDir;
use tinyagents_harness::{context::RunConfig, ids::CallId, tool::ToolExecutionContext};