Skip to content

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

fix(channels): resolve declaration handlers through bus contract

Steven Enamakel3da5862955c5
diff --git a/crates/openhuman-core/src/channels/controllers/schemas.rs b/crates/openhuman-core/src/channels/controllers/schemas.rs
index 876de1b5b3..9a55c8bb10 100644
--- a/crates/openhuman-core/src/channels/controllers/schemas.rs
+++ b/crates/openhuman-core/src/channels/controllers/schemas.rs
@@ -222,7 +222,7 @@ pub fn schemas(function: &str) -> ControllerSchema {
fn handle_list(_params: Map<String, Value>) -> ControllerFuture {
Box::pin(async move {
to_json(Outcome::new(
- super::definitions::all_channel_definitions(),
+ tinychannels_bus::controllers::all_channel_definitions(),
vec![],
))
})
@@ -232,7 +232,7 @@ fn handle_describe(params: Map<String, Value>) -> ControllerFuture {
Box::pin(async move {
let p = deserialize_params::<DescribeParams>(params)?;
let channel = p.channel.trim();
- let definition = super::definitions::find_channel_definition(channel)
+ let definition = tinychannels_bus::controllers::find_channel_definition(channel)
.ok_or_else(|| format!("unknown channel: {channel}"))?;
to_json(Outcome::new(definition, vec![]))
})