v0.3.0 — Interactive Git Review for Pi TUI
·
18 commits
to main
since this release
v0.3.0 — Interactive Git Review for Pi TUI
This release upgrades pi-diff from a diff renderer into a Warp-style local Git review workflow for Pi.
Highlights
- Added
/review-diff, a full-width centered Pi TUI command for interactive local Git review. - Added Git-aware review support for working-tree changes, untracked files, and
base...HEADbranch comparisons. - Added keyboard navigation across files, hunks, focused hunk diff preview, and drafted comments.
- Added line-anchored draft/edit/delete comments with approve/dismiss states and batch submit back to Pi.
- Added live auto-refresh while the review overlay is open.
- Added
oopen-location workflow andycopy-location workflow for selected review lines. - Added
review_git_diff,review_git_comment, andreview_git_commentsread-only tool workflows for agent context. - Added
pi-diff-reviewCLI for markdown review context export outside Pi TUI. - Added
/review-diff-agentprompt template companion for blunt agent-driven local diff review. - Added Shiki-backed focused hunk preview with safer width handling and binary-file placeholders.
- Added README screenshot at
media/review-diff.png.
Fixes and polish
- Fixed invalid base refs so
/review-diff typo-branchreports a clean error instead of crashing. - Fixed headless/non-UI invocation handling.
- Fixed off-screen navigation in large file/hunk/comment lists.
- Fixed terminal width overflow crashes from tabs, ANSI parsing, and binary file diff previews.
- Fixed preview cursor behavior so the
▶marker tracks up/down navigation. - Fixed unreadable dark text in review overlay secondary text and diff backgrounds.
- Fixed blank File diff viewport caused by treating Pi
theme.bg()as a raw ANSI provider. - Packaged only runtime files and ensured
dist/cli.jsis executable.
Verification
npm run typecheckpassednpm run lintpassednpm testpassed: 40/40npm run buildpassednpm pack --dry-run --jsonconfirmed runtime package contents and executable CLI