@in-the-loop-labs/pair-review 2.6.3 → 2.7.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 (43) hide show
  1. package/package.json +1 -1
  2. package/plugin/.claude-plugin/plugin.json +1 -1
  3. package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
  4. package/public/css/pr.css +194 -0
  5. package/public/index.html +168 -3
  6. package/public/js/components/AIPanel.js +16 -2
  7. package/public/js/components/ChatPanel.js +41 -6
  8. package/public/js/components/ConfirmDialog.js +21 -2
  9. package/public/js/components/CouncilProgressModal.js +13 -0
  10. package/public/js/components/DiffOptionsDropdown.js +410 -23
  11. package/public/js/components/SuggestionNavigator.js +12 -5
  12. package/public/js/components/TabTitle.js +96 -0
  13. package/public/js/components/Toast.js +6 -0
  14. package/public/js/index.js +648 -43
  15. package/public/js/local.js +569 -76
  16. package/public/js/modules/analysis-history.js +3 -2
  17. package/public/js/modules/comment-manager.js +5 -0
  18. package/public/js/modules/comment-minimizer.js +304 -0
  19. package/public/js/pr.js +82 -6
  20. package/public/local.html +14 -0
  21. package/public/pr.html +3 -0
  22. package/src/ai/analyzer.js +17 -11
  23. package/src/config.js +2 -0
  24. package/src/database.js +590 -39
  25. package/src/git/base-branch.js +173 -0
  26. package/src/git/sha-abbrev.js +35 -0
  27. package/src/github/client.js +32 -1
  28. package/src/hooks/hook-runner.js +100 -0
  29. package/src/hooks/payloads.js +212 -0
  30. package/src/local-review.js +468 -129
  31. package/src/local-scope.js +58 -0
  32. package/src/main.js +55 -4
  33. package/src/routes/analyses.js +73 -10
  34. package/src/routes/chat.js +33 -0
  35. package/src/routes/config.js +1 -0
  36. package/src/routes/local.js +734 -68
  37. package/src/routes/mcp.js +20 -10
  38. package/src/routes/pr.js +90 -12
  39. package/src/routes/setup.js +1 -0
  40. package/src/routes/worktrees.js +212 -148
  41. package/src/server.js +30 -0
  42. package/src/setup/local-setup.js +46 -5
  43. package/src/setup/pr-setup.js +28 -5
package/src/config.js CHANGED
@@ -23,6 +23,7 @@ const DEFAULT_CONFIG = {
23
23
  default_provider: "claude", // AI provider: 'claude', 'gemini', 'codex', 'copilot', 'opencode', 'cursor-agent', 'pi'
24
24
  default_model: "opus", // Model within the provider (e.g., 'opus' for Claude, 'gemini-2.5-pro' for Gemini)
25
25
  worktree_retention_days: 7,
26
+ review_retention_days: 21,
26
27
  dev_mode: false, // When true, disables static file caching for development
27
28
  debug_stream: false, // When true, logs AI provider streaming events (equivalent to --debug-stream CLI flag)
28
29
  db_name: "", // Custom database filename (default: database.db). Useful for per-worktree isolation.
@@ -35,6 +36,7 @@ const DEFAULT_CONFIG = {
35
36
  chat_providers: {}, // Custom chat provider configurations (overrides built-in defaults)
36
37
  monorepos: {}, // Monorepo configurations: { "owner/repo": { path: "~/path/to/clone" } }
37
38
  assisted_by_url: "https://github.com/in-the-loop-labs/pair-review", // URL for "Review assisted by" footer link
39
+ hooks: {}, // Hook commands per event: { "review.started": { "my_hook": { "command": "..." } } }
38
40
  enable_graphite: false // When true, shows Graphite links alongside GitHub links
39
41
  };
40
42