Skip to content

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

refactor(tinyflows): drop unused composio re-exports and test helpers

Steven Enamakelef0473baf5d5
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
index 1bdc3ccb03..b0ecd66e00 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
@@ -51,9 +51,7 @@ pub(crate) fn http_cred_name(conn: &str) -> Option<&str> {
(!name.is_empty()).then_some(name)
}
-pub(crate) use crate::integrations::composio::flow_gate::{
- flow_tool_allowed, resolve_account, resolve_composio_account,
-};
+pub(crate) use crate::integrations::composio::flow_gate::resolve_composio_account;
pub(crate) async fn classify_composio_action_for_tier(slug: &str) -> CommandClass {
crate::integrations::composio::flow_gate::classify_composio_action_for_tier(slug)
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs
index 90e861f9a7..6148f8cafc 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tests.rs
@@ -1,32 +1,6 @@
use super::*;
-use crate::agent::prompts::types::IntegrationConnection;
-use crate::integrations::composio::{ComposioExecuteResponse, ConnectedIntegration};
use tinytools::{ToolContent, ToolResult};
-fn integration(
- toolkit: &str,
- connected: bool,
- connections: Vec<IntegrationConnection>,
-) -> ConnectedIntegration {
- ConnectedIntegration {
- toolkit: toolkit.to_string(),
- description: String::new(),
- tools: Vec::new(),
- gated_tools: Vec::new(),
- connected,
- connections,
- non_active_status: None,
- }
-}
-
-fn connection(id: &str, label: Option<&str>, is_default: bool) -> IntegrationConnection {
- IntegrationConnection {
- connection_id: id.to_string(),
- label: label.map(str::to_string),
- is_default,
- }
-}
-
fn http_cred_store() -> (tempfile::TempDir, HttpCredentialsStore) {
let dir = tempfile::tempdir().expect("tempdir");
// encrypt=true exercises the ChaCha20-Poly1305 at-rest path.