@in-the-loop-labs/pair-review 1.4.3 → 1.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.
Files changed (48) hide show
  1. package/package.json +1 -1
  2. package/plugin/.claude-plugin/plugin.json +1 -1
  3. package/plugin/skills/review-requests/SKILL.md +54 -0
  4. package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
  5. package/public/css/pr.css +1081 -54
  6. package/public/css/repo-settings.css +452 -140
  7. package/public/js/components/AdvancedConfigTab.js +1364 -0
  8. package/public/js/components/AnalysisConfigModal.js +488 -112
  9. package/public/js/components/CouncilProgressModal.js +1416 -0
  10. package/public/js/components/TextInputDialog.js +231 -0
  11. package/public/js/components/TimeoutSelect.js +367 -0
  12. package/public/js/components/VoiceCentricConfigTab.js +1334 -0
  13. package/public/js/local.js +162 -83
  14. package/public/js/modules/analysis-history.js +185 -11
  15. package/public/js/modules/comment-manager.js +13 -0
  16. package/public/js/modules/file-comment-manager.js +28 -0
  17. package/public/js/pr.js +233 -115
  18. package/public/js/repo-settings.js +575 -106
  19. package/public/local.html +11 -1
  20. package/public/pr.html +6 -1
  21. package/public/repo-settings.html +28 -21
  22. package/public/setup.html +8 -2
  23. package/src/ai/analyzer.js +1262 -111
  24. package/src/ai/claude-cli.js +2 -2
  25. package/src/ai/claude-provider.js +6 -6
  26. package/src/ai/codex-provider.js +6 -6
  27. package/src/ai/copilot-provider.js +3 -3
  28. package/src/ai/cursor-agent-provider.js +6 -6
  29. package/src/ai/gemini-provider.js +6 -6
  30. package/src/ai/opencode-provider.js +6 -6
  31. package/src/ai/pi-provider.js +6 -6
  32. package/src/ai/prompts/baseline/consolidation/balanced.js +208 -0
  33. package/src/ai/prompts/baseline/consolidation/fast.js +175 -0
  34. package/src/ai/prompts/baseline/consolidation/thorough.js +283 -0
  35. package/src/ai/prompts/config.js +1 -1
  36. package/src/ai/prompts/index.js +26 -2
  37. package/src/ai/provider.js +4 -2
  38. package/src/database.js +417 -14
  39. package/src/main.js +1 -1
  40. package/src/routes/analysis.js +495 -10
  41. package/src/routes/config.js +36 -15
  42. package/src/routes/councils.js +351 -0
  43. package/src/routes/local.js +33 -11
  44. package/src/routes/mcp.js +9 -2
  45. package/src/routes/setup.js +12 -2
  46. package/src/routes/shared.js +126 -13
  47. package/src/server.js +34 -4
  48. package/src/utils/stats-calculator.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in-the-loop-labs/pair-review",
3
- "version": "1.4.3",
3
+ "version": "1.5.0",
4
4
  "description": "Your AI-powered code review partner - Close the feedback loop with AI coding agents",
5
5
  "main": "src/server.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-review",
3
- "version": "1.4.3",
3
+ "version": "1.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",
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: review-requests
3
+ description: >
4
+ Open outstanding GitHub review requests in pair-review for AI-powered code review.
5
+ Finds open PRs where my review is pending from the past week and starts pair-review
6
+ analysis for each. Use when the user says "review requests", "review my PRs",
7
+ "check review requests", "open review requests", "pair-review my requests",
8
+ or wants to batch-review their outstanding GitHub review requests.
9
+ ---
10
+
11
+ # Review Requests
12
+
13
+ Batch-open outstanding GitHub review requests in pair-review with AI analysis.
14
+
15
+ ## Workflow
16
+
17
+ ### Phase 1: Discover pair-review server
18
+
19
+ Call `mcp__pair-review__get_server_info` to get the pair-review web UI URL. If the server
20
+ is not running, inform the user and stop.
21
+
22
+ ### Phase 2: Find pending review requests
23
+
24
+ Use `user-review-requested:@me` (not `review-requested`) to find only PRs where the user
25
+ was *directly* requested as a reviewer, excluding team-based review requests. The `gh search prs`
26
+ CLI does not support this qualifier, so use the search API directly:
27
+
28
+ ```bash
29
+ SINCE=$(date -v-7d +%Y-%m-%d 2>/dev/null || date -d '7 days ago' +%Y-%m-%d)
30
+ gh api "search/issues?q=is:pr+is:open+user-review-requested:@me+updated:>=${SINCE}&per_page=30" \
31
+ --jq '.items[] | {number, title, html_url, repo: (.repository_url | split("/")[-2:] | join("/"))}'
32
+ ```
33
+
34
+ Each result provides `number`, `title`, `html_url`, and `repo` (as `owner/repo`).
35
+
36
+ ### Phase 3: Open each PR in pair-review with auto-analysis
37
+
38
+ For each PR found, open it in the browser with the `?analyze=true` query parameter, which
39
+ automatically starts AI analysis when the page loads:
40
+
41
+ ```
42
+ open "{server_url}/pr/{owner}/{repo}/{number}?analyze=true"
43
+ ```
44
+
45
+ where `{owner}/{repo}` comes from the `repo` field split on `/`.
46
+
47
+ No MCP calls per PR are needed — the `?analyze=true` parameter handles triggering analysis.
48
+
49
+ ### Phase 4: Report
50
+
51
+ Summarize what was done:
52
+ - How many PRs were found with pending review
53
+ - List each PR opened in pair-review with title and URL
54
+ - If no pending review requests exist, say so
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-critic",
3
- "version": "1.4.3",
3
+ "version": "1.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",