feat(actions-fleet): install planner with unified diff preview#434
Draft
Copilot wants to merge 2 commits into
Draft
feat(actions-fleet): install planner with unified diff preview#434Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
|
Meticulous was unable to execute a test run for this PR because the most recent commit is associated with multiple PRs. To execute a test run, please try pushing up a new commit that is only associated with this PR. Last updated for commit |
Copilot
AI
changed the title
[WIP] Implement install planner and diff preview for sh1pt CLI
feat(actions-fleet): install planner with unified diff preview
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a readable diff preview to the install planner so reviewers can inspect exact file additions, modifications, and conflicts before any writes occur.
Core library (
actions-fleet-core)PlannedFileDiff— addsexistingContent: string | nullfield; the on-disk content is now captured duringplanDiffand carried through for diffingrender-diff.ts(new) — zero-dependency LCS-based diff engine:renderUnifiedDiff(old, new, filename, context?)— produces standarddiff -uoutput;nullold content renders as all-additions (new file)renderPlanPreview(plan, context?)— full plan preview: additions forcreate, unified diff forupdate-managed,# CONFLICTwarning headers with proposed content forconflict-unmanaged/conflict-other-pack,unchangedfiles omittedCLI (
sh1pt actions plan)New
--diffflag prints a colorized unified diff after the file status table:---/+++headers bold ·-lines red ·+lines green ·@@hunks cyan ·# CONFLICTwarnings yellow.