pub enum CommitEvent {
Show 17 variants
GenerationStarted,
DiffPrepared {
empty: bool,
content_id_sha256: String,
},
DiffFailed {
error: String,
},
DiffInvalidated {
reason: String,
},
PromptPrepared {
attempt: u32,
},
AgentInvoked {
attempt: u32,
},
CommitXmlExtracted {
attempt: u32,
},
CommitXmlMissing {
attempt: u32,
},
CommitXmlValidated {
message: String,
attempt: u32,
},
CommitXmlValidationFailed {
reason: String,
attempt: u32,
},
CommitXmlArchived {
attempt: u32,
},
CommitXmlCleaned {
attempt: u32,
},
MessageGenerated {
message: String,
attempt: u32,
},
MessageValidationFailed {
reason: String,
attempt: u32,
},
Created {
hash: String,
message: String,
},
GenerationFailed {
reason: String,
},
Skipped {
reason: String,
},
}Expand description
Commit generation events.
Events related to commit message generation, validation, and creation. Commit generation occurs after development iterations and review fixes.
§State Machine
NotStarted -> Generating -> Generated -> Committed
| |
+--> (retry) --+
|
+--> SkippedVariants§
GenerationStarted
Commit message generation started.
DiffPrepared
Commit diff computed for commit generation.
Fields
DiffFailed
Commit diff computation failed.
DiffInvalidated
Commit diff is no longer available and must be recomputed.
This is used for recoverability when .agent/tmp artifacts are cleaned between
checkpoints or when required diff files go missing during resume.
PromptPrepared
Commit prompt prepared for a commit attempt.
AgentInvoked
Commit agent invoked for a commit attempt.
CommitXmlExtracted
Commit message XML extracted for a commit attempt.
CommitXmlMissing
Commit message XML missing for a commit attempt.
CommitXmlValidated
Commit message XML validated successfully.
CommitXmlValidationFailed
Commit message XML validation failed.
CommitXmlArchived
Commit message XML archived.
CommitXmlCleaned
Commit message XML cleaned before invoking the commit agent.
MessageGenerated
Commit message was generated.
MessageValidationFailed
Commit message validation failed.
Fields
Created
Commit was created successfully.
GenerationFailed
Commit generation failed completely.
Skipped
Commit was skipped (e.g., no changes to commit).
Trait Implementations§
Source§impl Clone for CommitEvent
impl Clone for CommitEvent
Source§fn clone(&self) -> CommitEvent
fn clone(&self) -> CommitEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommitEvent
impl Debug for CommitEvent
Source§impl<'de> Deserialize<'de> for CommitEvent
impl<'de> Deserialize<'de> for CommitEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CommitEvent
impl RefUnwindSafe for CommitEvent
impl Send for CommitEvent
impl Sync for CommitEvent
impl Unpin for CommitEvent
impl UnwindSafe for CommitEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more