Skip to content

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

fix(tools): remove unused import and add missing test helpers

Steven Enamakel6092158e1b5c
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context.rs
index 19d27e614d..ccc98152c2 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context.rs
@@ -28,6 +28,4 @@ pub use scout_run::{run_context_scout, run_context_scout_with_catalog};
pub use tool::AgentPrepareContextTool;
#[cfg(test)]
-use scout_run::{
- extract_context_bundle, is_expected_billing_failure, log_scout_failure, scout_failure_signal,
-};
+use scout_run::{extract_context_bundle, is_expected_billing_failure, scout_failure_signal};
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
index 7138cf07f1..bb6f689225 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/agent_prepare_context_tests.rs
@@ -1,3 +1,4 @@
+use super::scout_run::log_scout_failure;
use super::*;
use crate::agent::harness::AgentContextPreparedSource;
diff --git a/crates/openhuman-core/src/skills/bundled/mod_tests.rs b/crates/openhuman-core/src/skills/bundled/mod_tests.rs
index 19f0a8f5d9..b38d055269 100644
--- a/crates/openhuman-core/src/skills/bundled/mod_tests.rs
+++ b/crates/openhuman-core/src/skills/bundled/mod_tests.rs
@@ -16,6 +16,35 @@ const SAMPLE: BundledSkill = BundledSkill {
files: &[A, B],
};
+fn validate_relative_path(dir_name: &str, path: &str) -> Result<(), String> {
+ let path: &'static str = Box::leak(path.to_owned().into_boxed_str());
+ let skill = BundledSkill {
+ dir_name: Box::leak(dir_name.to_owned().into_boxed_str()),
+ files: Box::leak(
+ vec![
+ BundledFile {
+ path: "WORKFLOW.md",
+ contents: "---\nname: test\ndescription: test\n---\n",
+ },
+ BundledFile {
+ path,
+ contents: "body",
+ },
+ ]
+ .into_boxed_slice(),
+ ),
+ };
+ skill.validate()
+}
+
+fn install_one(root: &std::path::Path, skill: &BundledSkill) -> Result<bool, String> {
+ let report = tinyskills::bundle::install(root, &[*skill]);
+ if let Some((_, error)) = report.failed.into_iter().next() {
+ return Err(error);
+ }
+ Ok(!report.written.is_empty())
+}
+
#[test]
fn every_shipped_bundle_is_valid() {
// The one assertion that covers the real table. `validate` exists because