Skip to main content

Crate ralph_workflow

Crate ralph_workflow 

Source
Expand description

Ralph workflow library for commit message parsing and validation.

This library exposes the core functionality used by the ralph binary, including commit message extraction from LLM output.

Re-exports§

pub use files::llm_output_extraction::extract_development_result_xml;
pub use files::llm_output_extraction::extract_fix_result_xml;
pub use files::llm_output_extraction::extract_issues_xml;
pub use files::llm_output_extraction::format_xml_for_display;
pub use files::llm_output_extraction::validate_development_result_xml;
pub use files::llm_output_extraction::validate_fix_result_xml;
pub use files::llm_output_extraction::validate_issues_xml;
pub use executor::AgentChild;
pub use executor::AgentChildHandle;
pub use executor::AgentCommandResult;
pub use executor::AgentSpawnConfig;
pub use executor::ProcessExecutor;
pub use executor::ProcessOutput;
pub use executor::RealAgentChild;
pub use executor::RealProcessExecutor;

Modules§

agents
Agent Abstraction Module
app
Application entrypoint and pipeline orchestration.
banner
Banner and UI output utilities.
checkpoint
Pipeline checkpoint system for resume functionality.
cli
CLI argument parsing and command-line interface definitions.
common
Common utility functions shared across the crate.
config
Configuration Module
diagnostics
System and agent diagnostics.
executor
Process execution abstraction for dependency injection.
files
File management utilities for Ralph’s agent files.
git_helpers
Git Helper Functions
guidelines
Language-Specific Review Guidelines Module
interrupt
Interrupt signal handling for graceful checkpoint save.
json_parser
JSON Stream Parsing Module
language_detector
Language and Stack Detection Module
logger
Logging and progress display utilities.
phases
Pipeline Phase Orchestration Module
pipeline
Pipeline Execution Module
platform
Platform detection and installation guidance
prompts
Prompt Templates Module
reducer
Reducer-based pipeline architecture.
review_metrics
Review Quality Metrics Module
templates
Prompt template management module.
workspace
Workspace filesystem abstraction for explicit path resolution.

Macros§

assert_template_exists
Macro to verify a template file exists and contains expected content.
assert_template_has_variable
include_template
Macro to verify that a string comes from a template file.