@in-the-loop-labs/pair-review 5.1.1 → 5.2.1

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 (41) hide show
  1. package/README.md +12 -4
  2. package/package.json +3 -2
  3. package/plugin/.claude-plugin/plugin.json +1 -1
  4. package/plugin-code-critic/.claude-plugin/plugin.json +1 -1
  5. package/plugin-pair-loop/.claude-plugin/plugin.json +1 -1
  6. package/public/index.html +6 -2
  7. package/public/js/index.js +251 -73
  8. package/public/js/repo-links.js +60 -11
  9. package/src/ai/index.js +1 -0
  10. package/src/ai/omp/review-config.yml +13 -0
  11. package/src/ai/omp-provider.js +279 -0
  12. package/src/ai/pi-format.js +535 -0
  13. package/src/ai/pi-provider.js +38 -963
  14. package/src/ai/pi-style-provider.js +526 -0
  15. package/src/ai/provider.js +2 -0
  16. package/src/chat/chat-providers.js +34 -11
  17. package/src/chat/omp-bridge.js +111 -0
  18. package/src/chat/pi-bridge.js +42 -34
  19. package/src/chat/session-manager.js +30 -4
  20. package/src/config.js +32 -3
  21. package/src/database.js +24 -0
  22. package/src/external/github-adapter.js +8 -10
  23. package/src/links/host-names.js +200 -0
  24. package/src/local-review.js +7 -3
  25. package/src/main.js +72 -23
  26. package/src/review-config.js +81 -5
  27. package/src/routes/config.js +42 -12
  28. package/src/routes/external-comments.js +18 -6
  29. package/src/routes/github-collections.js +32 -5
  30. package/src/routes/local.js +1 -1
  31. package/src/routes/pr.js +47 -28
  32. package/src/routes/setup.js +15 -8
  33. package/src/routes/stack-analysis.js +22 -9
  34. package/src/routes/worktrees.js +36 -0
  35. package/src/server.js +8 -3
  36. package/src/settings/registry.js +1 -1
  37. package/src/setup/local-setup.js +5 -3
  38. package/src/setup/pr-setup.js +49 -26
  39. package/src/single-port.js +7 -7
  40. package/src/utils/host-resolution.js +177 -27
  41. package/src/utils/local-path-input.js +64 -8
package/README.md CHANGED
@@ -516,7 +516,7 @@ For advanced configuration with custom providers and models, see [AI Provider Co
516
516
  |-----|---------|-------------|
517
517
  | `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. |
518
518
  | `enable_chat` | `true` | Enables the chat panel feature (uses `chat_provider`). |
519
- | `enable_graphite` | `false` | Show Graphite links alongside GitHub links. |
519
+ | `enable_graphite` | `false` | Show Graphite links alongside GitHub links, and name Graphite in the PR URL prompts and errors. Graphite PR URLs are accepted either way. |
520
520
  | `skip_update_notifier` | `false` | Suppress the "update available" notification on exit. |
521
521
 
522
522
  ### Configuration Files
@@ -578,6 +578,7 @@ pair-review supports several environment variables for customizing behavior:
578
578
  | `PAIR_REVIEW_OPENCODE_CMD` | Custom command to invoke OpenCode CLI | `opencode` |
579
579
  | `PAIR_REVIEW_CURSOR_AGENT_CMD` | Custom command to invoke Cursor Agent CLI | `agent` |
580
580
  | `PAIR_REVIEW_PI_CMD` | Custom command to invoke Pi CLI | `pi` |
581
+ | `PAIR_REVIEW_OMP_CMD` | Custom command to invoke OMP (Oh My Pi) CLI | `omp` |
581
582
  | `PAIR_REVIEW_MUSE_CMD` | Custom command to invoke Muse Code CLI | `muse` |
582
583
 
583
584
  **Note:** `GITHUB_TOKEN` is the standard environment variable used by many GitHub tools (gh CLI, GitHub Actions, etc.). When set, it takes precedence over the `github_token` field in the config file.
@@ -636,13 +637,14 @@ pair-review integrates with AI providers via their CLI tools:
636
637
  - **OpenCode**: Uses OpenCode CLI (requires model configuration)
637
638
  - **Cursor**: Uses Cursor Agent CLI (streaming output with sandbox mode)
638
639
  - **Pi**: Uses Pi coding agent CLI (requires model configuration)
640
+ - **OMP**: Uses the [Oh My Pi](https://github.com/can1357/oh-my-pi) CLI (`omp`), a fork of the Pi coding agent. Install it with `npm install -g @oh-my-pi/pi-coding-agent`. Works out of the box: the built-in `default` mode uses whatever model your OMP configuration selects, and you can add specific models via `providers.omp.models` (run `omp models` to list the catalog). OMP's advisor runtime — which passively reviews each turn and injects notes — is disabled during reviews by default for deterministic, lower-cost analysis; set `"advisor": true` in `providers.omp` to opt back in.
639
641
  - **Muse**: Uses Meta's Muse Code CLI (`muse`), a terminal coding agent released in beta in August 2026 and powered by the Muse Spark 1.2 model. Install it with the single shell command from Meta's Muse Code install instructions (macOS/Linux), then authenticate once with `muse login` (credentials are stored in `~/.config/muse/auth.json`). pair-review drives it headlessly via `muse exec --json`. Within pair-review, Muse is analysis-only: the CLI exposes no ACP server mode, so there is no Muse chat provider.
640
642
 
641
643
  You can select your preferred provider and model in the repository settings UI.
642
644
 
643
645
  #### Built-in vs. Configurable Providers
644
646
 
645
- Most providers (Claude, Antigravity, Codex, Copilot, Muse) come with built-in model definitions. **OpenCode and Pi are different** - they have no built-in models and require you to configure which models to use.
647
+ Most providers (Claude, Antigravity, Codex, Copilot, Muse) come with built-in model definitions. **OpenCode and Pi are different** - they have no built-in models and require you to configure which models to use. **OMP** sits in between: it ships a single `default` mode that delegates to your OMP configuration (`~/.omp/agent/config.yml`), so it works without any pair-review model configuration, and you can add specific models via `providers.omp.models`. OMP model `id`s are passed to `omp --model` verbatim, which fuzzy-matches (`"opus"`, `"gpt-5.2"`) and accepts full `provider/model` strings (`"anthropic/claude-opus-5"`).
646
648
 
647
649
  ##### Muse models and the contributor tradeoff
648
650
 
@@ -718,7 +720,8 @@ You can override provider settings and define custom models in your config file.
718
720
  | `env` | Environment variables to set when running the CLI |
719
721
  | `installInstructions` | Custom installation instructions shown in UI |
720
722
  | `availability_timeout_seconds` | Seconds to allow for the startup availability probe before the provider is reported unavailable (default `10`). Raise it for providers whose check runs a slow build/compile step. Also supported per chat provider under `chat_providers.<id>`. |
721
- | `availability_command` | Command run to decide availability. Executable providers default to always-available when omitted; chat providers fall back to `<command> --version` (or, for the built-in Pi, the cached AI-provider status). Pair with `availability_timeout_seconds` when the probe runs a slow build. |
723
+ | `availability_command` | Command run to decide availability. Executable providers default to always-available when omitted; chat providers fall back to `<command> --version` (or, for the built-in Pi and OMP, the cached AI-provider status). Pair with `availability_timeout_seconds` when the probe runs a slow build. |
724
+ | `advisor` | OMP only. Set to `true` to enable OMP's advisor runtime during analysis (`--advisor`). Defaults to `false`: pair-review disables the advisor via a bundled config overlay, even when it is enabled in your global OMP configuration. |
722
725
  | `models` | Array of model definitions (see below) |
723
726
  | `default_model` | Model `id` to use as the provider's default (in the picker and when no model is specified). Preferred over the per-model `default: true` flag. If it names an unknown or disabled model, the provider falls back to automatic selection. |
724
727
  | `disabled_models` | Array of model selectors to hide, matched by model `id` or alias. Disabled models disappear from the model picker for that provider. Works on built-in models too, so you can remove a built-in option without redefining the rest. A list that would hide *every* model is ignored. |
@@ -831,6 +834,8 @@ npm install -g @mariozechner/pi-coding-agent
831
834
 
832
835
  Configure your preferred models in `providers.pi.models` — see [AI Provider Configuration](#ai-provider-configuration) for details. Everything else in pair-review works without Pi installed.
833
836
 
837
+ [OMP (Oh My Pi)](https://github.com/can1357/oh-my-pi), a fork of Pi, is also available as a chat provider (`omp`) — it speaks the same RPC protocol through the `omp` CLI (`npm install -g @oh-my-pi/pi-coding-agent`) and uses whatever model your OMP configuration selects (set a chat model via `chat_providers.omp.model`; values are passed to `omp --model`, which fuzzy-matches). Unlike Pi chat, OMP chat does not load pair-review's task extension for subagent delegation.
838
+
834
839
  **Chat provider command overrides:** To customize CLI commands for chat providers (e.g., to use a wrapper script), use the `chat_providers` config key:
835
840
 
836
841
  ```json
@@ -843,7 +848,7 @@ Configure your preferred models in `providers.pi.models` — see [AI Provider Co
843
848
  }
844
849
  ```
845
850
 
846
- Available chat provider IDs: `pi`, `claude`, `codex`, `copilot-acp`, `opencode-acp`, `cursor-acp`. Each supports `command`, `args` (replaces defaults), `extra_args` (appends), and `env` overrides. Codex chat also supports `sandbox`: use `workspace-write` by default, or `read-only` for discussion-only sessions. (Antigravity and Muse are analysis-only providers — neither CLI has an ACP mode, so there are no Antigravity or Muse chat providers.)
851
+ Available chat provider IDs: `pi`, `omp`, `claude`, `codex`, `copilot-acp`, `opencode-acp`, `cursor-acp`. Each supports `command`, `args` (replaces defaults; for `pi` and `omp` there are no default args — supplied args are appended after the generated RPC flags, so use a multi-word `command` like `"devx omp"` for wrappers rather than `args`), `extra_args` (appends), and `env` overrides. Codex chat also supports `sandbox`: use `workspace-write` by default, or `read-only` for discussion-only sessions. (Antigravity and Muse are analysis-only providers — neither CLI has an ACP mode, so there are no Antigravity or Muse chat providers.)
847
852
 
848
853
  **Keyboard shortcut:** Press `p` then `c` to toggle the chat panel.
849
854
 
@@ -1205,6 +1210,9 @@ A: OpenCode has no built-in models, so you must configure them in your `~/.pair-
1205
1210
  **Q: How do I use Pi as my AI provider?**
1206
1211
  A: Like OpenCode, Pi has no built-in models. Configure them in your `~/.pair-review/config.json` by adding a `providers.pi.models` array with at least one model definition. Pi supports many providers (Google, Anthropic, OpenAI, etc.) via its `--provider` and `--model` flags. See the [AI Provider Configuration](#ai-provider-configuration) section and `config.example.json` for examples.
1207
1212
 
1213
+ **Q: How do I use OMP (Oh My Pi) as my AI provider?**
1214
+ A: OMP works out of the box: the built-in `default` mode uses whatever model your OMP configuration (`~/.omp/agent/config.yml`) selects. To pin specific models, add a `providers.omp.models` array — each model's `cli_model` is passed to `omp --model` verbatim, which fuzzy-matches and accepts `provider/model` strings (run `omp models` to list the catalog). During reviews pair-review disables OMP's advisor runtime by default (it injects notes into each turn, adding cost and nondeterminism); set `"advisor": true` under `providers.omp` to enable it.
1215
+
1208
1216
  **Q: Why does chat use Pi instead of Claude or other providers?**
1209
1217
  A: Pi provides persistent interactive sessions with a full agent — it can read files and run commands in the context of the codebase. Pi is model-agnostic and uses your existing provider subscriptions — no separate API keys needed.
1210
1218
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in-the-loop-labs/pair-review",
3
- "version": "5.1.1",
3
+ "version": "5.2.1",
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": {
@@ -52,7 +52,8 @@
52
52
  "copilot",
53
53
  "codex",
54
54
  "antigravity",
55
- "muse"
55
+ "muse",
56
+ "oh-my-pi"
56
57
  ],
57
58
  "author": "Tim Perkins",
58
59
  "license": "Apache-2.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-review",
3
- "version": "5.1.1",
3
+ "version": "5.2.1",
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": "5.1.1",
3
+ "version": "5.2.1",
4
4
  "description": "AI-powered code review analysis — Run three-level AI analysis directly in your coding agent. Works standalone, no server required.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-loop",
3
- "version": "5.1.1",
3
+ "version": "5.2.1",
4
4
  "description": "Agent-orchestrated review loop — implement, review with pair-review multi-model councils via the headless CLI, triage, fix, and repeat until a final review returns no blockers. MCP-independent.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
package/public/index.html CHANGED
@@ -1394,11 +1394,14 @@
1394
1394
  <div class="tab-pane active" id="pr-tab">
1395
1395
  <div class="start-review-section">
1396
1396
  <form class="start-review-form" id="start-review-form">
1397
+ <!-- The placeholder is host-neutral until /api/config
1398
+ resolves; index.js rewrites it to name the configured
1399
+ hosts (GitHub, Graphite when enabled, any alt hosts). -->
1397
1400
  <input
1398
1401
  type="text"
1399
1402
  class="start-review-input"
1400
1403
  id="pr-url-input"
1401
- placeholder="Enter GitHub or Graphite PR URL"
1404
+ placeholder="Enter PR URL"
1402
1405
  autocomplete="off"
1403
1406
  spellcheck="false"
1404
1407
  >
@@ -1532,7 +1535,7 @@
1532
1535
  <pre><code class="cmd-example" data-args="123"></code></pre>
1533
1536
 
1534
1537
  <h3>Review a PR by URL</h3>
1535
- <p>From anywhere, using a full GitHub or Graphite URL:</p>
1538
+ <p>From anywhere, using a full <span data-pr-host-list>GitHub</span> URL:</p>
1536
1539
  <pre><code class="cmd-example" data-args="https://github.com/owner/repo/pull/123"></code></pre>
1537
1540
 
1538
1541
  <h3>Review Local Changes</h3>
@@ -1571,6 +1574,7 @@
1571
1574
  <script src="/js/components/VoiceCentricConfigTab.js"></script>
1572
1575
  <script src="/js/components/AdvancedConfigTab.js"></script>
1573
1576
  <script src="/js/theme.js"></script>
1577
+ <script src="/js/repo-links.js"></script>
1574
1578
  <script src="/js/index.js"></script>
1575
1579
  </body>
1576
1580
  </html>