pub struct PlanBuilder { /* private fields */ }Expand description
Builder for creating execution plans from generation results
Converts generation results (file changes, commands) into structured execution plans with step ordering, dependency resolution, and risk scoring.
Implementations§
Source§impl PlanBuilder
impl PlanBuilder
Sourcepub fn add_create_file_step(
self,
path: String,
content: String,
) -> ExecutionResult<Self>
pub fn add_create_file_step( self, path: String, content: String, ) -> ExecutionResult<Self>
Sourcepub fn add_modify_file_step(
self,
path: String,
diff: String,
) -> ExecutionResult<Self>
pub fn add_modify_file_step( self, path: String, diff: String, ) -> ExecutionResult<Self>
Sourcepub fn add_delete_file_step(self, path: String) -> ExecutionResult<Self>
pub fn add_delete_file_step(self, path: String) -> ExecutionResult<Self>
Sourcepub fn add_command_step(self, command: String, args: Vec<String>) -> Self
pub fn add_command_step(self, command: String, args: Vec<String>) -> Self
Sourcepub fn add_test_step(self, pattern: Option<String>) -> Self
pub fn add_test_step(self, pattern: Option<String>) -> Self
Sourcepub fn add_dependency(self, step_id: String, dependency_id: String) -> Self
pub fn add_dependency(self, step_id: String, dependency_id: String) -> Self
Add a dependency between steps
§Arguments
step_id- ID of the step that depends on othersdependency_id- ID of the step that must complete first
Sourcepub fn with_critical_files(self, files: Vec<String>) -> Self
pub fn with_critical_files(self, files: Vec<String>) -> Self
Set custom critical files
These files are weighted higher in risk scoring.
Sourcepub fn build(self) -> ExecutionResult<ExecutionPlan>
pub fn build(self) -> ExecutionResult<ExecutionPlan>
Build the execution plan
Performs final validation, calculates risk scores, and returns the plan.
Auto Trait Implementations§
impl Freeze for PlanBuilder
impl RefUnwindSafe for PlanBuilder
impl Send for PlanBuilder
impl Sync for PlanBuilder
impl Unpin for PlanBuilder
impl UnwindSafe for PlanBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more