Skip to content

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

refactor(caps_host): rework http adapter imports

Steven Enamakel74f7eb9a45fd
diff --git a/crates/openhuman-core/src/flows/caps_host/http.rs b/crates/openhuman-core/src/flows/caps_host/http.rs
index 8087cc9a1a..52284874b2 100644
--- a/crates/openhuman-core/src/flows/caps_host/http.rs
+++ b/crates/openhuman-core/src/flows/caps_host/http.rs
@@ -11,19 +11,20 @@
use std::sync::Arc;
-use async_trait::async_trait;
use serde_json::{json, Value};
-use tinyflows::caps::*;
-use tinyflows::error::{EngineError, Result};
use super::*;
use crate::config::{Config, HttpRequestConfig};
use crate::security::credentials::{HttpCredential, HttpCredentialsStore};
use crate::security::SecurityPolicy;
use crate::tools::http_request_tool;
+use crate::modules::tinyflows as module;
use tinybox_bus::CommandClass;
use tinytools::Tool as _;
+use super::{close_audit, enforce_current_node_tier_gate, enforce_node_tier_gate, gate_call_for_tier};
+use super::{EngineError, Result};
+
/// [`HttpClient`] adapter over `HttpRequestTool`
/// (`tinytools_std::network::HttpRequestTool`, built by `tools/impl/network/host.rs`). Allowlist + DNS-rebind
/// guard live inside `execute`, so this adapter gets them for free.