ralph_workflow/reducer/event/constructors.rs
1// NOTE: split from reducer/event.rs to keep the facade small.
2// Constructors are further split by event category to keep files under 500 lines.
3use super::*;
4
5// Include constructor implementations split by category
6include!("constructors_lifecycle.rs");
7include!("constructors_prompt_input.rs");
8include!("constructors_development.rs");
9include!("constructors_review.rs");
10include!("constructors_agent.rs");
11include!("constructors_commit.rs");
12
13// ============================================================================
14// Miscellaneous event constructors
15// ============================================================================
16
17impl PipelineEvent {
18 /// Construct a LoopRecoveryTriggered event.
19 pub fn loop_recovery_triggered(detected_loop: String, loop_count: u32) -> Self {
20 PipelineEvent::LoopRecoveryTriggered {
21 detected_loop,
22 loop_count,
23 }
24 }
25}