Skip to content

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

feat(embed): add profiles feature gate for profile runtime

Steven Enamakel609fcf66fbd5
diff --git a/crates/openhuman-embed/Cargo.toml b/crates/openhuman-embed/Cargo.toml
index 8ad6adc11c..b52aacfd24 100644
--- a/crates/openhuman-embed/Cargo.toml
+++ b/crates/openhuman-embed/Cargo.toml
@@ -31,7 +31,11 @@ skills = ["openhuman-core/skills"]
mcp = ["openhuman-core/mcp"]
# Also carries `process::sentry`, the shared Sentry options + before_send chain.
crash-reporting = ["dep:sentry", "openhuman-core/crash-reporting"]
-channels = ["openhuman-core/channels"]
+# The in-process SaaS profile facade (`ProfileRuntime`). Headless: it does not
+# pull in tinychannels or axum. Relaying a platform message into a profile
+# (`ProfileHandle::relay_inbound`) is a channel transport and needs `channels`.
+profiles = []
+channels = ["profiles", "openhuman-core/channels"]
whatsapp-web = ["openhuman-core/whatsapp-web"]
file-logging = ["openhuman-core/file-logging"]
scheduler-gate = ["openhuman-core/scheduler-gate"]
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 441dd5b7df..a6202a7270 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -141,7 +141,7 @@ pub use permission::PermissionFuture;
pub mod observe;
pub mod process;
-#[cfg(feature = "channels")]
+#[cfg(feature = "profiles")]
pub mod profiles;
/// Explicit ordered fallback and truncation policies.
pub mod routing;
@@ -187,7 +187,7 @@ pub use harness::{
};
#[cfg(feature = "mcp")]
pub use harness::{HttpHeader, McpAuthConfig, McpServer};
-#[cfg(feature = "channels")]
+#[cfg(feature = "profiles")]
pub use profiles::{
ChatReply, CronDelivery, CronReply, CronSweepReport, DirectProfileProvider, JobOrigin,
OpenError, ProfileError, ProfileEvents, ProfileHandle, ProfileId, ProfileIdMode,