pub enum CacheLookup {
ExactHit(CommitPlan),
PatchHit {
plan: CommitPlan,
dirty_commits: Vec<usize>,
changed_files: Vec<String>,
unplaced_files: Vec<String>,
delta_summary: String,
},
Miss,
}Expand description
Result of a cache lookup.
Variants§
ExactHit(CommitPlan)
Exact fingerprint match — use cached plan directly.
PatchHit
Some files changed — patched plan with affected commits marked.
When unplaced_files is empty, the plan can be executed directly
(no AI call needed). When non-empty, AI is called with a targeted
prompt to place only the new files.
Fields
§
plan: CommitPlanMiss
Too much changed or no cache — full AI run.
Auto Trait Implementations§
impl Freeze for CacheLookup
impl RefUnwindSafe for CacheLookup
impl Send for CacheLookup
impl Sync for CacheLookup
impl Unpin for CacheLookup
impl UnsafeUnpin for CacheLookup
impl UnwindSafe for CacheLookup
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