pub struct SummaryWriter { /* private fields */ }Expand description
Writes the loop summary file on termination.
Per spec section “Exit Summary”:
# Loop Summary
**Status:** Completed successfully
**Iterations:** 12
**Duration:** 23m 45s
## Tasks
- [x] Add refresh token support
- [x] Update login endpoint
- [~] Add rate limiting (cancelled: out of scope)
## Events
- 12 total events
- 6 build.task
- 5 build.done
- 1 build.blocked
## Final Commit
abc1234: feat(auth): complete auth overhaulImplementations§
Source§impl SummaryWriter
impl SummaryWriter
Sourcepub fn from_context(context: &LoopContext) -> Self
pub fn from_context(context: &LoopContext) -> Self
Creates a summary writer using paths from a LoopContext.
This ensures the writer outputs to the correct location and reads events from the correct events file when running in a worktree or other isolated workspace.
Sourcepub fn write(
&self,
reason: &TerminationReason,
state: &LoopState,
scratchpad_path: Option<&Path>,
final_commit: Option<&str>,
) -> Result<()>
pub fn write( &self, reason: &TerminationReason, state: &LoopState, scratchpad_path: Option<&Path>, final_commit: Option<&str>, ) -> Result<()>
Writes the summary file based on loop state and termination reason.
This is called by the orchestrator when the loop terminates.
Sourcepub fn write_with_landing(
&self,
reason: &TerminationReason,
state: &LoopState,
scratchpad_path: Option<&Path>,
final_commit: Option<&str>,
landing: Option<&LandingResult>,
) -> Result<()>
pub fn write_with_landing( &self, reason: &TerminationReason, state: &LoopState, scratchpad_path: Option<&Path>, final_commit: Option<&str>, landing: Option<&LandingResult>, ) -> Result<()>
Writes the summary file with optional landing information.
This is called by the orchestrator when the loop terminates with landing.
Trait Implementations§
Source§impl Debug for SummaryWriter
impl Debug for SummaryWriter
Auto Trait Implementations§
impl Freeze for SummaryWriter
impl RefUnwindSafe for SummaryWriter
impl Send for SummaryWriter
impl Sync for SummaryWriter
impl Unpin for SummaryWriter
impl UnsafeUnpin for SummaryWriter
impl UnwindSafe for SummaryWriter
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