Skip to content

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

refactor(channels): drop unused re-exports and reorder channel exports

Steven Enamakelff80aad6eb72
diff --git a/crates/openhuman-core/src/channels/controllers/mod.rs b/crates/openhuman-core/src/channels/controllers/mod.rs
index ae26899b10..1fa477cea3 100644
--- a/crates/openhuman-core/src/channels/controllers/mod.rs
+++ b/crates/openhuman-core/src/channels/controllers/mod.rs
@@ -6,11 +6,6 @@ mod schemas;
pub use backend::OpenHumanChannelBackend;
-pub use tinychannels_bus::controllers::{
- all_channel_definitions, find_channel_definition, AuthModeSpec, ChannelAuthMode,
- ChannelCapability, ChannelDefinition, FieldRequirement,
-};
-
pub use schemas::all_controller_schemas as all_channels_controller_schemas;
/// Every controller of the channels domain: the `channels.*` connection
diff --git a/crates/openhuman-core/src/channels/controllers/ops/mod.rs b/crates/openhuman-core/src/channels/controllers/ops/mod.rs
index 3d5b5e35b9..636d53e186 100644
--- a/crates/openhuman-core/src/channels/controllers/ops/mod.rs
+++ b/crates/openhuman-core/src/channels/controllers/ops/mod.rs
@@ -6,8 +6,6 @@ mod messaging;
// Re-export types needed by tests.
#[cfg(test)]
-pub(crate) use crate::channels::controllers::ChannelAuthMode;
-#[cfg(test)]
pub(crate) use crate::config::Config;
#[cfg(test)]
pub(crate) use connect::merge_listener_health;
diff --git a/crates/openhuman-core/src/channels/mod.rs b/crates/openhuman-core/src/channels/mod.rs
index 9d953949eb..99845bc60f 100644
--- a/crates/openhuman-core/src/channels/mod.rs
+++ b/crates/openhuman-core/src/channels/mod.rs
@@ -109,9 +109,6 @@ pub use yuanbao::YuanbaoChannel;
pub use runtime::test_support;
#[cfg(feature = "channels")]
-pub use commands::doctor_channels;
-#[cfg(feature = "channels")]
-pub use controllers::{ChannelAuthMode, ChannelDefinition};
// Channel system-prompt assembly lives in
// `crate::agent::context::channels_prompt` alongside the rest of
// the prompt-building code. Re-exported here for callers that used the
@@ -119,6 +116,8 @@ pub use controllers::{ChannelAuthMode, ChannelDefinition};
#[cfg(feature = "channels")]
pub use crate::agent::context::channels_prompt::build_system_prompt;
#[cfg(feature = "channels")]
+pub use commands::doctor_channels;
+#[cfg(feature = "channels")]
pub use runtime::start_channels;
#[cfg(feature = "channels")]
pub(crate) use runtime::{session, start_channels_with_session};