Improve plan review UX with enriched rows, TUI filters, and execute gate.

Make review-plan easier to act on: Chinese risk labels, relative paths,
verdict/next-step footer, optional identity/analysis enrichment, grouping,
spot-check sampling, and structure preview. Extend the TUI with filters,
duplicate-group reject, and quality context. Persist review_context on
plan operations and add --require-review for confirmed execute.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
windyboy
2026-05-21 09:27:12 +08:00
co-authored by Cursor
parent c9d22d5136
commit 5f0b531269
13 changed files with 1050 additions and 61 deletions
+7 -7
View File
@@ -240,14 +240,14 @@ vlm analyze
vlm plan --analysis artifacts/analysis.json
# Output: artifacts/plan.json with operations, human summary, and duplicate quarantine decisions
# 7. Review the plan in terminal (summary + high-risk preview)
# 7. Review the plan in terminal (summary + high-risk preview + verdict)
vlm review-plan
# Optional: interactive full-screen review (install `.[tui]` first)
vlm review-plan --tui
# Optional: control preview size
vlm review-plan --preview-limit 20
# Optional: show every high-risk operation in terminal
vlm review-plan --show-all
# Enriched CSV (title, relative paths, quality) + duplicate grouping
vlm review-plan --identities artifacts/identities.json --analysis artifacts/analysis.json --group-by duplicate
# Spot-check random safe moves; write target tree preview
vlm review-plan --sample-safe 5 --structure-preview artifacts/plan_structure.txt
# Edit artifacts/plan_manual_review.csv in Excel/Numbers
# Sync your manual decisions back to artifacts/plan.json
vlm apply-review
@@ -257,8 +257,8 @@ vlm apply-review
vlm execute
# Shows what would happen without making changes (respecting your manual edits)
# 9. Execute with confirmation
vlm execute --confirm
# 9. Execute with confirmation (optional review gate)
vlm execute --confirm --require-review
# Actually performs the file operations
# 10. If needed, rollback