Skip to content

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

fix(composio): reorganize integration tests into separate files

Steven Enamakela2980c0298a6
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
index 5774d005a5..bd36c90a62 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
@@ -3,13 +3,19 @@
//! Contains:
//! * [`channel_has_approval_surface`] — gate controlling per-channel approval
//! context scoping.
-//! * [`try_route_approval_reply`] — intercepts yes/no approval replies before
-//! dispatching a fresh agent turn.
+//! * [`try_route_approval_reply`] (in [`approval`]) — intercepts yes/no
+//! approval replies before dispatching a fresh agent turn.
//! * [`process_channel_message`] — full per-message pipeline: typing, ACK
//! reaction, history, agent turn, draft updates, reply.
//! * [`run_message_dispatch_loop`] — bounded-concurrency worker loop that feeds
//! messages into [`process_channel_message`].
-include!("processor_part_01.rs");
-include!("processor_part_02.rs");
-include!("processor_part_03.rs");
+mod approval;
+mod dispatch_loop;
+mod message;
+mod turn;
+
+pub(crate) use approval::channel_has_approval_surface;
+pub(crate) use dispatch_loop::run_message_dispatch_loop;
+pub(crate) use message::RuntimeChannelMessage;
+pub(crate) use turn::{process_channel_message, process_channel_runtime_message};
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests_part_01_tests.rs b/crates/openhuman-core/src/integrations/composio/client_authorize_and_execute_tests.rs
similarity index 100%
rename from crates/openhuman-core/src/integrations/composio/client_tests_part_01_tests.rs
rename to crates/openhuman-core/src/integrations/composio/client_authorize_and_execute_tests.rs
diff --git a/crates/openhuman-core/src/integrations/composio/client_tests_part_02_tests.rs b/crates/openhuman-core/src/integrations/composio/client_triggers_and_factory_tests.rs
similarity index 100%
rename from crates/openhuman-core/src/integrations/composio/client_tests_part_02_tests.rs
rename to crates/openhuman-core/src/integrations/composio/client_triggers_and_factory_tests.rs