ralph_workflow/phases/
commit.rs1use super::commit_logging::{AttemptOutcome, CommitLogSession, ExtractionAttempt};
9use super::context::PhaseContext;
10use crate::agents::AgentRegistry;
11use crate::files::llm_output_extraction::{
12 archive_xml_file_with_workspace, has_valid_xml_output,
13 try_extract_xml_commit_document_with_trace, xml_paths, CommitExtractionResult,
14};
15use crate::pipeline::{run_with_prompt, PipelineRuntime, PromptCommand};
16use crate::prompts::TemplateContext;
17use crate::workspace::Workspace;
18use anyhow::Context as _;
19use std::path::Path;
20
21pub mod diff_truncation;
22
23pub use diff_truncation::{
24 effective_model_budget_bytes, model_budget_bytes_for_agent_name, truncate_diff_to_model_budget,
25};
26
27include!("commit/prompt.rs");
28include!("commit/extraction.rs");
29include!("commit/runner.rs");
30
31#[cfg(test)]
32include!("commit/tests.rs");