Skip to content

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

chore: files changed crates/openhuman-core/src/integrations/client.rs,crates/openhuman-core/src/inte

Steven Enamakel3834fed07a91
diff --git a/crates/openhuman-core/src/integrations/client.rs b/crates/openhuman-core/src/integrations/client.rs
index 530f343987..1e0550a796 100644
--- a/crates/openhuman-core/src/integrations/client.rs
+++ b/crates/openhuman-core/src/integrations/client.rs
@@ -10,6 +10,7 @@ mod requests;
pub use construct::IntegrationClient;
pub use pricing::{build_client, pricing_for_config};
+#[cfg(test)]
pub(crate) use errors::{extract_error_detail, MAX_ERROR_BODY_LEN};
// Brought into scope here (rather than only inside each submodule) purely so
diff --git a/crates/openhuman-core/src/integrations/composio/ops/direct_mode.rs b/crates/openhuman-core/src/integrations/composio/ops/direct_mode.rs
index 29331ddaca..d2473aef64 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/direct_mode.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/direct_mode.rs
@@ -9,7 +9,7 @@ use super::super::{
};
use super::error_utils::OpResult;
-async fn validate_direct_api_key_before_store(config: &Config, api_key: &str) -> OpResult<()> {
+async fn validate_direct_api_key_before_store(api_key: &str) -> OpResult<()> {
let key_id = direct_auth::fingerprint_api_key(api_key);
direct_auth::reset_direct_auth_failure(key_id);
@@ -85,7 +85,7 @@ pub async fn composio_set_api_key(
activate_direct,
"[composio-direct] set_api_key (redacted)"
);
- validate_direct_api_key_before_store(config, trimmed).await?;
+ validate_direct_api_key_before_store(trimmed).await?;
crate::security::credentials::store_composio_api_key(config, trimmed)
.await