feat(actions-fleet): install planner with unified diff preview#434
feat(actions-fleet): install planner with unified diff preview#434Copilot 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 |
vu1nz Security Review0 finding(s) in PR #434 No security issues found. Full AI AnalysisLooking at this pull request, I've conducted a thorough security review of the diff functionality being added. The code implements unified diff rendering and plan preview functionality for a file management system. Security AnalysisI examined the code for common security vulnerabilities including:
Key Security Observations
FindingsNO SECURITY ISSUES FOUND The code follows secure development practices:
This appears to be a well-implemented, security-conscious addition to the codebase. |
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.