ralph_workflow/reducer/event/
constructors.rs1use super::*;
4
5include!("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
13impl PipelineEvent {
18 pub fn loop_recovery_triggered(detected_loop: String, loop_count: u32) -> Self {
20 PipelineEvent::LoopRecoveryTriggered {
21 detected_loop,
22 loop_count,
23 }
24 }
25
26 pub fn gitignore_entries_ensured(
28 entries_added: Vec<String>,
29 already_present: Vec<String>,
30 file_created: bool,
31 ) -> Self {
32 Self::Lifecycle(LifecycleEvent::GitignoreEntriesEnsured {
33 added: entries_added,
34 existing: already_present,
35 created: file_created,
36 })
37 }
38}