Skip to content

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

fix(security): gate host command classifier import behind test config

Steven Enamakele2768894b931
diff --git a/crates/openhuman-core/src/security/policy/command_checks.rs b/crates/openhuman-core/src/security/policy/command_checks.rs
index 47ae089a74..936cac43ce 100644
--- a/crates/openhuman-core/src/security/policy/command_checks.rs
+++ b/crates/openhuman-core/src/security/policy/command_checks.rs
@@ -5,6 +5,7 @@
use std::path::{Path, PathBuf};
use super::CommandAnalysis;
+#[cfg(test)]
use super::command_analysis::classify_host_command;
#[cfg(test)]
diff --git a/crates/openhuman-embed/src/modules.rs b/crates/openhuman-embed/src/modules.rs
index 6132f5ae28..4771c41cd6 100644
--- a/crates/openhuman-embed/src/modules.rs
+++ b/crates/openhuman-embed/src/modules.rs
@@ -42,7 +42,7 @@ pub mod tinybox {
pub use openhuman_core::modules::tinybox::contract;
pub use openhuman_core::modules::tinybox::{
- abort_file_write, analyze_command, analyze_shell, begin_file_read, begin_file_write,
+ abort_file_write, analyze_shell, begin_file_read, begin_file_write,
cancel, capabilities, close, close_forward, create, describe, exec, finish_file_read,
finish_file_write, forward, inspect, is_running, jail_status, read_file_chunk, read_output,
release_output, reserve, run_docker, shutdown, spawn, start_exec, start_jailed_exec,