ralph_workflow/app/
context.rs

1//! Pipeline context types.
2//!
3//! This module defines the context structures used throughout the pipeline execution.
4
5use crate::agents::AgentRegistry;
6use crate::cli::Args;
7use crate::config::Config;
8use crate::logger::Colors;
9use crate::logger::Logger;
10use crate::prompts::template_context::TemplateContext;
11
12/// Context for running the pipeline.
13///
14/// Groups together the various parameters needed to run the development/review/commit
15/// pipeline, reducing function parameter count and improving maintainability.
16pub struct PipelineContext {
17    pub args: Args,
18    pub config: Config,
19    pub registry: AgentRegistry,
20    pub developer_agent: String,
21    pub reviewer_agent: String,
22    pub developer_display: String,
23    pub reviewer_display: String,
24    pub repo_root: std::path::PathBuf,
25    pub logger: Logger,
26    pub colors: Colors,
27    pub template_context: TemplateContext,
28}