1717//! - Inner conductor operates in proxy mode, forwarding to eliza
1818//! - Outer conductor receives the ">>" prefixed response
1919
20- use sacp:: { BoxFuture , Channels , Component } ;
20+ use sacp:: Component ;
2121use sacp_conductor:: conductor:: Conductor ;
2222use sacp_test:: arrow_proxy:: run_arrow_proxy;
2323use sacp_test:: test_client:: yolo_prompt;
@@ -31,8 +31,8 @@ use tokio_util::compat::{TokioAsyncReadCompatExt, TokioAsyncWriteCompatExt};
3131struct MockArrowProxy ;
3232
3333impl Component for MockArrowProxy {
34- async fn serve ( self , channels : Channels ) -> Result < ( ) , sacp:: Error > {
35- run_arrow_proxy ( channels ) . await
34+ async fn serve ( self , client : impl Component ) -> Result < ( ) , sacp:: Error > {
35+ run_arrow_proxy ( client ) . await
3636 }
3737}
3838
@@ -41,8 +41,8 @@ impl Component for MockArrowProxy {
4141struct MockEliza ;
4242
4343impl Component for MockEliza {
44- async fn serve ( self , channels : Channels ) -> Result < ( ) , sacp:: Error > {
45- elizacp:: run_elizacp ( channels ) . await
44+ async fn serve ( self , client : impl Component ) -> Result < ( ) , sacp:: Error > {
45+ elizacp:: run_elizacp ( client ) . await
4646 }
4747}
4848
@@ -59,7 +59,7 @@ impl MockInnerConductor {
5959}
6060
6161impl Component for MockInnerConductor {
62- async fn serve ( self , channels : Channels ) -> Result < ( ) , sacp:: Error > {
62+ async fn serve ( self , client : impl Component ) -> Result < ( ) , sacp:: Error > {
6363 // Create mock arrow proxy components for the inner conductor
6464 // This conductor is ONLY proxies - no actual agent
6565 let mut components: Vec < sacp:: DynComponent > = Vec :: new ( ) ;
@@ -68,7 +68,7 @@ impl Component for MockInnerConductor {
6868 }
6969
7070 Conductor :: new ( "inner-conductor" . to_string ( ) , components, None )
71- . run ( channels )
71+ . run ( client )
7272 . await
7373 }
7474}
0 commit comments