Skip to content

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

style(composio): apply rustfmt formatting

Steven Enamakel9ce5d8ca8eb4
diff --git a/crates/openhuman-core/src/flows/ops/connections.rs b/crates/openhuman-core/src/flows/ops/connections.rs
index 875cfdd04f..bb435f684e 100644
--- a/crates/openhuman-core/src/flows/ops/connections.rs
+++ b/crates/openhuman-core/src/flows/ops/connections.rs
@@ -125,7 +125,9 @@ async fn normalize_keys(
match crate::integrations::composio::contract::normalize_connection_identifiers(config, &raw)
.await
{
- Ok(normalized) if normalized.len() == raw.len() => raw.into_iter().zip(normalized).collect(),
+ Ok(normalized) if normalized.len() == raw.len() => {
+ raw.into_iter().zip(normalized).collect()
+ }
other => {
tracing::debug!(
error = ?other.err(),
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
index b60c795f23..0ae3378a86 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops.rs
@@ -38,8 +38,7 @@ use crate::security::{GateDecision, POLICY_BLOCKED_MARKER};
#[cfg(test)]
pub(crate) use crate::integrations::composio::catalog::ProbedOutputSample;
pub(crate) use crate::integrations::composio::catalog::{
- composio_required_args, fetch_live_toolkit_catalog,
- probe_tool_output_sample, ToolContract,
+ composio_required_args, fetch_live_toolkit_catalog, probe_tool_output_sample, ToolContract,
};
#[cfg(test)]
pub(crate) use crate::integrations::composio::catalog::{
diff --git a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs b/crates/openhuman-core/src/integrations/composio/connected_integrations.rs
index 0681e1ec64..ccfe3efad7 100644
--- a/crates/openhuman-core/src/integrations/composio/connected_integrations.rs
+++ b/crates/openhuman-core/src/integrations/composio/connected_integrations.rs
@@ -20,4 +20,4 @@ pub use fetch::{
#[cfg(test)]
pub(crate) use cache::{
cache_key, read_cached_integrations_from, CachedIntegrations, INTEGRATIONS_CACHE,
-};
\ No newline at end of file
+};
diff --git a/crates/openhuman-core/src/integrations/composio/contract/identity_tests.rs b/crates/openhuman-core/src/integrations/composio/contract/identity_tests.rs
index aef333abbb..9f7e742917 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/identity_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/contract/identity_tests.rs
@@ -1,5 +1,7 @@
use super::*;
-use crate::integrations::composio::contract::{NormalizedTask, ProviderUserProfile, TaskFetchFilter};
+use crate::integrations::composio::contract::{
+ NormalizedTask, ProviderUserProfile, TaskFetchFilter,
+};
#[test]
fn profile_wire_shape_writes_every_field_as_null_when_unset() {
@@ -12,7 +14,11 @@ fn profile_wire_shape_writes_every_field_as_null_when_unset() {
#[test]
fn task_envelope_wire_shape_is_camel_case() {
let task = serde_json::to_value(NormalizedTask::default()).unwrap();
- assert!(task.as_object().unwrap().keys().any(|k| k.contains('I') || k == "title"));
+ assert!(task
+ .as_object()
+ .unwrap()
+ .keys()
+ .any(|k| k.contains('I') || k == "title"));
let filter = serde_json::to_value(TaskFetchFilter::default()).unwrap();
assert!(filter.is_object());
assert_eq!(TaskFetchFilter::default().effective_max(), 25);
@@ -22,6 +28,14 @@ fn task_envelope_wire_shape_is_camel_case() {
async fn empty_inputs_skip_the_module_call() {
let config = Config::default();
assert!(canonicalize_values(&config, &[]).await.unwrap().is_empty());
- assert!(normalize_connection_identifiers(&config, &[]).await.unwrap().is_empty());
- assert_eq!(render_connected_identities_section(&config, &[]).await.unwrap(), "");
+ assert!(normalize_connection_identifiers(&config, &[])
+ .await
+ .unwrap()
+ .is_empty());
+ assert_eq!(
+ render_connected_identities_section(&config, &[])
+ .await
+ .unwrap(),
+ ""
+ );
}
diff --git a/crates/openhuman-core/src/integrations/composio/contract/mod.rs b/crates/openhuman-core/src/integrations/composio/contract/mod.rs
index 84f298c3ff..7c7a90a39d 100644
--- a/crates/openhuman-core/src/integrations/composio/contract/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/contract/mod.rs
@@ -24,6 +24,6 @@ pub use tinyconnectors_bus::vocabulary::{
};
pub use curated::{
- agent_ready_toolkits, catalog_for_toolkit, curated_scope_for, curated_toolkits, has_native_provider,
- is_action_visible_with_pref, toolkit_description,
+ agent_ready_toolkits, catalog_for_toolkit, curated_scope_for, curated_toolkits,
+ has_native_provider, is_action_visible_with_pref, toolkit_description,
};
diff --git a/crates/openhuman-core/src/integrations/composio/identity_store.rs b/crates/openhuman-core/src/integrations/composio/identity_store.rs
index 859c34bdb8..7f5f7ebc96 100644
--- a/crates/openhuman-core/src/integrations/composio/identity_store.rs
+++ b/crates/openhuman-core/src/integrations/composio/identity_store.rs
@@ -31,7 +31,9 @@ pub async fn persist_provider_profile(
) -> Result<usize, String> {
let mut keys = vec![profile.toolkit.clone()];
keys.extend(profile.connection_id.clone());
- let mut keys = normalize_connection_identifiers(config, &keys).await?.into_iter();
+ let mut keys = normalize_connection_identifiers(config, &keys)
+ .await?
+ .into_iter();
let toolkit = keys.next().unwrap_or_default();
let identifier = keys
.next()
@@ -163,12 +165,10 @@ pub async fn delete_connected_identity_facets(
source: &str,
identifier: &str,
) -> Result<usize, String> {
- let mut keys = normalize_connection_identifiers(
- config,
- &[source.to_string(), identifier.to_string()],
- )
- .await?
- .into_iter();
+ let mut keys =
+ normalize_connection_identifiers(config, &[source.to_string(), identifier.to_string()])
+ .await?
+ .into_iter();
let source = keys.next().unwrap_or_default();
let identifier = keys.next().unwrap_or_default();
diff --git a/crates/openhuman-core/src/integrations/composio/ops/mod.rs b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
index 56f6e47dcd..9dbcf4668c 100644
--- a/crates/openhuman-core/src/integrations/composio/ops/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/ops/mod.rs
@@ -27,10 +27,10 @@ mod direct_mode;
mod error_utils;
mod execute;
mod providers_ops;
+mod scope_prefs;
mod toolkits;
mod tools_ops;
mod triggers;
-mod scope_prefs;
// ── Public re-exports (match original ops.rs public surface) ───────────────
diff --git a/crates/openhuman-core/src/integrations/composio/tools.rs b/crates/openhuman-core/src/integrations/composio/tools.rs
index 94451c511a..1fee416bd0 100644
--- a/crates/openhuman-core/src/integrations/composio/tools.rs
+++ b/crates/openhuman-core/src/integrations/composio/tools.rs
@@ -66,11 +66,11 @@ pub use list_connections::ComposioListConnectionsTool;
pub use list_toolkits::ComposioListToolkitsTool;
pub use list_tools::ComposioListToolsTool;
#[cfg(test)]
-use tinytools::Tool;
-#[cfg(test)]
-use tinytools::{PermissionLevel, ToolCategory};
-#[cfg(test)]
use render::{
empty_uncurated_toolkits_message, normalized_scope_toolkits, render_tools_markdown,
retain_connected_tools,
};
+#[cfg(test)]
+use tinytools::Tool;
+#[cfg(test)]
+use tinytools::{PermissionLevel, ToolCategory};