Skip to content

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

fix(build): gate composio and channel items behind feature flags

Steven Enamakelc649cd215590
diff --git a/crates/openhuman-core/src/integrations/composio/mod.rs b/crates/openhuman-core/src/integrations/composio/mod.rs
index 93f3fe8c42..af4a073fa8 100644
--- a/crates/openhuman-core/src/integrations/composio/mod.rs
+++ b/crates/openhuman-core/src/integrations/composio/mod.rs
@@ -56,7 +56,7 @@ pub mod module_client;
pub mod ops;
pub(crate) mod processing;
pub mod schemas;
-#[cfg(test)]
+#[cfg(all(test, feature = "modules"))]
pub(crate) mod test_backend_route;
pub mod tools;
pub(crate) mod trigger_history;
diff --git a/crates/openhuman-core/src/modules/storage_import_tinywallet.rs b/crates/openhuman-core/src/modules/storage_import_tinywallet.rs
index 70d88947d5..63832e4c39 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinywallet.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinywallet.rs
@@ -23,7 +23,6 @@
use std::path::Path;
use anyhow::{anyhow, Context, Result};
-use serde_json::json;
use tinystoragedrivers::ScopedStorage;
use super::storage_grant_schemas::tinywallet::{MODULE_ID, PAYMENTS_STREAM};
@@ -62,7 +61,6 @@ async fn import_into(
scoped: &ScopedStorage,
workspace_dir: &Path,
) -> Result<Outcome> {
- let docs = scoped.documents();
let marker = support::marker_id("x402", workspace_dir);
if support::already_imported(scoped, MARKER_COLLECTION, &marker).await? {
return Ok(Outcome::AlreadyDone);
diff --git a/crates/openhuman-tinyhumans/src/channels/mod.rs b/crates/openhuman-tinyhumans/src/channels/mod.rs
index ae3808f572..f8e2c9d26a 100644
--- a/crates/openhuman-tinyhumans/src/channels/mod.rs
+++ b/crates/openhuman-tinyhumans/src/channels/mod.rs
@@ -27,6 +27,7 @@ use tinychannels_bus::{ChannelBackendRequest, ChannelBackendResult};
use crate::install::InstallOptions;
/// The id the callback registers under.
+#[cfg(feature = "channels")]
pub const CALLBACK_ID: &str = "tinyhumans";
/// Serves one callback request.
diff --git a/crates/openhuman-tinyhumans/src/integrations/composio.rs b/crates/openhuman-tinyhumans/src/integrations/composio.rs
index c1b0ececf9..eb459a7888 100644
--- a/crates/openhuman-tinyhumans/src/integrations/composio.rs
+++ b/crates/openhuman-tinyhumans/src/integrations/composio.rs
@@ -10,6 +10,7 @@ use openhuman_embed::__host::composio::{register_composio_route_builder, Composi
#[cfg(feature = "modules")]
use openhuman_embed::__host::composio::{register_proxy_target, ProxyTarget};
use openhuman_embed::__host::config::schema::COMPOSIO_MODE_BACKEND;
+#[cfg(feature = "modules")]
use openhuman_embed::__host::config::Config;
use super::build_client;