Skip to content

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

fix(ops): correct domain family test for HTTP flow caps

Steven Enamakel968224f6d649
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/http.rs b/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
index 6d45b39e1b..a693665963 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/http.rs
@@ -20,7 +20,7 @@ use super::*;
use crate::config::{Config, HttpRequestConfig};
use crate::security::credentials::{HttpCredential, HttpCredentialsStore};
use crate::security::{CommandClass, SecurityPolicy};
-use crate::tools::HttpRequestTool;
+use crate::tools::http_request_tool;
use tinytools::Tool as _;
/// [`HttpClient`] adapter over `HttpRequestTool`
@@ -192,7 +192,7 @@ impl HttpClient for OpenHumanHttp {
inject_http_credential(&mut request, &cred)?;
}
- let tool = HttpRequestTool::new(
+ let tool = http_request_tool(
self.security.clone(),
self.http_config.allowed_domains.clone(),
self.http_config.max_response_size,
diff --git a/crates/openhuman-core/src/tools/ops.rs b/crates/openhuman-core/src/tools/ops.rs
index ea42190ee3..d173964cbf 100644
--- a/crates/openhuman-core/src/tools/ops.rs
+++ b/crates/openhuman-core/src/tools/ops.rs
@@ -14,10 +14,9 @@ use tinytools::{ToolResult, ToolSpec};
use tinytools_std::detect_tools::DetectToolsTool;
use tinytools_std::filesystem::{
ApplyPatchTool, CsvExportTool, EditFileTool, FileReadTool, FileWriteTool, GitOperationsTool,
- GlobTool, GrepTool, ListFilesTool, ReadDiffTool, RunLinterTool, RunTestsTool,
- UpdateMemoryMdTool,
+ GlobTool, GrepTool, ImageInfoTool, ListFilesTool, ReadDiffTool, RunLinterTool, RunTestsTool,
+ UpdateMemoryMdTool, WorkspaceStateTool,
};
-use tinytools_std::filesystem::{ImageInfoTool, WorkspaceStateTool};
use tinytools_std::network::{CurlTool, PushoverTool};
pub(crate) use super::capability::tool_capability;
diff --git a/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs b/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs
index d720406ff9..4f58688021 100644
--- a/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests_domain_family_tests.rs
@@ -127,7 +127,7 @@ async fn readonly_acting_tools_carry_policy_blocked_marker() {
serde_json::json!({ "url": "https://example.com" }),
),
(
- Box::new(HttpRequestTool::new(sec.clone(), vec![], 0, 0)),
+ Box::new(http_request_tool(sec.clone(), vec![], 0, 0)),
serde_json::json!({ "url": "https://example.com" }),
),
];