@in-the-loop-labs/pair-review 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/package.json +1 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
- package/public/css/pr.css +762 -6
- package/public/js/components/AIPanel.js +486 -42
- package/public/js/components/ChatPanel.js +2002 -528
- package/public/js/index.js +43 -0
- package/public/js/modules/comment-minimizer.js +66 -20
- package/public/js/modules/external-comment-manager.js +870 -0
- package/public/js/pr.js +297 -20
- package/public/local.html +21 -5
- package/public/pr.html +31 -5
- package/src/chat/chat-providers.js +64 -12
- package/src/config.js +21 -17
- package/src/database.js +580 -2
- package/src/external/github-adapter.js +152 -0
- package/src/external/index.js +37 -0
- package/src/git/fetch-helpers.js +29 -0
- package/src/git/worktree-pool-lifecycle.js +16 -5
- package/src/git/worktree.js +9 -8
- package/src/github/client.js +77 -1
- package/src/local-review.js +3 -0
- package/src/main.js +6 -3
- package/src/routes/config.js +27 -0
- package/src/routes/external-comments.js +394 -0
- package/src/routes/local.js +7 -0
- package/src/routes/setup.js +7 -0
- package/src/routes/stack-analysis.js +1 -1
- package/src/server.js +9 -0
- package/src/setup/local-setup.js +5 -1
- package/src/setup/pr-setup.js +7 -4
- package/src/single-port.js +2 -0
- package/src/utils/local-path-input.js +44 -0
package/README.md
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
- [Customization](#customization)
|
|
32
32
|
- [Review Feedback Export](#review-feedback-export)
|
|
33
33
|
- [Inline Comments](#inline-comments)
|
|
34
|
+
- [GitHub Review Comments](#github-review-comments)
|
|
34
35
|
- [Comment Format](#comment-format)
|
|
35
36
|
- [Local Mode](#local-mode)
|
|
36
37
|
- [Claude Code Plugins](#claude-code-plugins)
|
|
@@ -236,6 +237,15 @@ On first run, pair-review creates `~/.pair-review/config.example.json` with comp
|
|
|
236
237
|
|
|
237
238
|
For advanced configuration with custom providers and models, see [AI Provider Configuration](#ai-provider-configuration) below.
|
|
238
239
|
|
|
240
|
+
#### Feature toggles
|
|
241
|
+
|
|
242
|
+
| Key | Default | Description |
|
|
243
|
+
|-----|---------|-------------|
|
|
244
|
+
| `external_comments` | `false` | Opt-in: set to `true` to fetch and display GitHub PR review comments inline. Enables the **External** segment, the refresh button, and `/api/reviews/*/external-comments*` routes. |
|
|
245
|
+
| `enable_chat` | `true` | Enables the chat panel feature (uses `chat_provider`). |
|
|
246
|
+
| `enable_graphite` | `false` | Show Graphite links alongside GitHub links. |
|
|
247
|
+
| `skip_update_notifier` | `false` | Suppress the "update available" notification on exit. |
|
|
248
|
+
|
|
239
249
|
### Configuration Files
|
|
240
250
|
|
|
241
251
|
pair-review loads configuration from multiple files, merged in order of increasing precedence:
|
|
@@ -515,6 +525,20 @@ The markdown includes file paths, line numbers, and your comments - everything t
|
|
|
515
525
|
- Edit or discard AI suggestions before finalizing
|
|
516
526
|
- Comments include file and line number for precision
|
|
517
527
|
|
|
528
|
+
### GitHub Review Comments
|
|
529
|
+
|
|
530
|
+
When reviewing a PR, pair-review fetches existing inline review comments from GitHub and shows them in the diff alongside AI suggestions (orange) and your own draft comments (purple). External comments render as read-only blue-themed bubbles, with threads preserved (root plus replies). Each comment and each thread has a "Chat about this" button that opens the AI chat panel with the comment as context, so you can quickly ask the agent to investigate, explain, or draft a response.
|
|
531
|
+
|
|
532
|
+
Sync runs automatically when the PR page loads (non-blocking) and on demand via a refresh button — there's no need to reload the page to pick up new comments.
|
|
533
|
+
|
|
534
|
+
**Current scope:**
|
|
535
|
+
|
|
536
|
+
- **Read-only.** No reply, resolve, or adopt actions in this iteration — pair-review surfaces the conversation but doesn't write back to GitHub from these bubbles. Use your usual GitHub workflow to reply or resolve.
|
|
537
|
+
- **Inline (line-anchored) comments only.** The PR conversation tab (general issue comments) is not included.
|
|
538
|
+
- **Outdated comments are kept.** If later commits removed the anchor line, the comment renders at its original location with an "outdated" badge so historical context isn't lost.
|
|
539
|
+
- **No dedup of your own comments yet.** If you submitted a review from pair-review and later replied via the GitHub web UI, those replies may appear in the list under your GitHub username. Deduplication of pair-review-originated comments is on the roadmap.
|
|
540
|
+
- **GitHub only, PR mode only.** The fetcher is built on an adapter pattern in `src/external/` so additional sources (GitLab, Linear, etc.) can be added later, but GitHub is the only supported source today. Local mode reviews don't fetch external comments.
|
|
541
|
+
|
|
518
542
|
### Comment Format
|
|
519
543
|
|
|
520
544
|
When AI suggestions are adopted as review comments, pair-review formats them with an emoji and category prefix by default. You can customize this format via the `comment_format` setting in `~/.pair-review/config.json`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-review",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "pair-review app integration — Open PRs and local changes in the pair-review web UI, run server-side AI analysis, and address review feedback. Requires the pair-review MCP server.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "code-critic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "AI-powered code review analysis — Run three-level AI analysis and implement-review-fix loops directly in your coding agent. Works standalone, no server required.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "in-the-loop-labs",
|