opencode-reviewer 2.1.2 → 2.1.3

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 (3) hide show
  1. package/README.md +28 -15
  2. package/dist/tui.js +237 -119
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # OpenCode Reviewer
2
2
 
3
3
  Reviews pending permissions in the [OpenCode](https://github.com/anomalyco/opencode) sidebar using a separate LLM. Reviews
4
- native shell commands, file edits, and external-directory access. Skill, MCP and
5
- custom-tool requests currently remain manual.
4
+ native shell commands, file edits, skill loading, and external-directory access.
5
+ MCP and custom-tool requests currently remain manual.
6
6
  Supports streaming explanations, saved report history and stats, auto-approval, and Linux
7
7
  desktop notifications (Gnome) with distinct sounds.
8
8
 
@@ -113,7 +113,7 @@ inclusive, fractions are invalid, and the maximum safe integer is
113
113
  | `stream` | boolean | `false` | Request SSE and show provisional rating/text updates. Normal automatic approval waits for a completed, validated report; fast mode can approve on an early Safe rating. Approval rules are described below. |
114
114
  | `reviewBash` | boolean | `true` | Review native `shell` permissions. The option keeps its existing name. |
115
115
  | `reviewEdits` | boolean | `true` | Review native `edit`, `write` and `patch` tools, which use the `edit` permission action. |
116
- | `reviewSkills` | boolean | `true` | Skill-review category switch. Exact mandatory skill instructions are currently unavailable to the V2 collector, so these requests remain manual. |
116
+ | `reviewSkills` | boolean | `true` | Review native skill loading using the exact requested ID and full currently registered main instructions. Assumes the selected definition stays unchanged while permission is pending. Missing or ambiguous instructions remain manual. |
117
117
  | `reviewMcp` | boolean | `false` | MCP-review category switch. V2 MCP collection is currently unsupported; enabling this does not supply missing origin/catalog evidence or permit automatic approval. |
118
118
  | `reviewCustomTools` | boolean | `false` | Custom-tool review category switch. V2 custom-tool collection is currently unsupported; these requests remain manual. |
119
119
  | `reviewExternalDirectories` | boolean | `false` | Review directory access independently of operation-review switches. Directory approval can resume the operation without another prompt. |
@@ -161,10 +161,17 @@ The plugin doesn't enable mouse tracking or reveal a hidden sidebar unless you
161
161
  click an approval notification; it checks that the sidebar is absent from the main
162
162
  conversation before showing it. Hidden automatic reports are saved normally.
163
163
 
164
- The skill, MCP and custom-tool options are still present, but these reviews aren't
165
- supported in V2. The reviewer can't get the required skill instructions or verify
166
- the source and catalog information for MCP and custom tools. Those requests need
167
- manual approval; they aren't rated Safe.
164
+ Skill reviews use the full main instructions from the server's current registered
165
+ skill definition, not a fresh `SKILL.md` read or an invocation-time snapshot. This
166
+ assumes that the selected definition stays unchanged while its permission is pending.
167
+ The exact skill ID, native call and permission scope must match. Missing, ambiguous
168
+ or oversized main instructions remain manual. Supporting files and scripts are not
169
+ inspected; their omission alone does not prevent review. Allowing a skill loads its
170
+ instructions, not a blanket grant for later tool actions.
171
+
172
+ MCP and custom-tool reviews remain unsupported in V2 because required origin and
173
+ catalog evidence is unavailable. Their switches do not turn those requests into
174
+ Safe ratings or automatic approvals.
168
175
 
169
176
  Code Mode and its tool search stay enabled. Native tool calls can be reviewed when
170
177
  the reviewer can match them exactly to their permission requests. Nested calls
@@ -230,8 +237,9 @@ controls remain available. Already-approved fast-mode reports finish in the back
230
237
  The commands remain available when review configuration or the companion is unavailable;
231
238
  they save the preference without starting reviews.
232
239
 
233
- At startup, the reviewer retries timed-out or not-yet-available companion handshakes
234
- for up to 10 seconds. If it remains unavailable, history and notifications still work;
240
+ At startup, the reviewer waits for the connected server event stream before its first
241
+ companion handshake. Connection waiting and retries for timed-out or not-yet-available
242
+ handshakes share one 10-second budget. If it remains unavailable, history and notifications still work;
235
243
  reload the plugin to try again. Invalid handshake data is not retried.
236
244
 
237
245
  If the server reconnects or the companion is replaced, reviews and auto-approval
@@ -242,6 +250,8 @@ from the old connection separate from the new one.
242
250
 
243
251
  Use `/reviewer-history` or **Reviewer: Report history** in the command palette to
244
252
  open the newest saved report for the current conversation and its descendants.
253
+ **Alt+H** toggles report history from the main conversation. Its shortcut can be
254
+ remapped with `keybinds["reviewer.history.toggle"]` in global `cli.json`.
245
255
  Left/Right or the arrow buttons select older/newer entries; Up/Down and
246
256
  PageUp/PageDown scroll. Close or Escape closes history. Repeating the command
247
257
  returns to the newest report. History remains available with review disabled or
@@ -320,7 +330,7 @@ received usage from unsuccessful or interrupted reviews, which do not count as
320
330
  completed reviews. Averages include measured reviews only.
321
331
 
322
332
  Reviews send the pending request, latest user prompt, project context, and relevant
323
- file snapshots, diffs, or tool arguments to your endpoint before approval. Shell
333
+ file snapshots, diffs, registered skill instructions, or tool arguments to your endpoint before approval. Shell
324
334
  file snapshots can follow symlinks outside the project. Missing evidence is noted
325
335
  in the report; ratings are advice based on the supplied evidence.
326
336
  </details>
@@ -438,12 +448,15 @@ Disable overlapping notification plugins to avoid duplicate alerts.
438
448
  Use Node.js 24.15.0+ within 24.x, or 22.22.2+ within 22.x, and npm.
439
449
  Run `npm ci --ignore-scripts`, then `npm run check` for typechecking, source tests,
440
450
  pure-helper tests and the build. `npm run test:helpers` runs the helper checks
441
- without building or starting OpenCode. Pull-request CI checks both Node versions
442
- and runs a separate representative Linux fixture profile on stock OpenCode
443
- 2.0.26 and 2.0.27.
444
- After building, run `node scripts/test-runtime.mjs --profile ci` for that same
451
+ without building or starting OpenCode. Pushing a version tag runs verification
452
+ and publication in one workflow: source tests, helper tests, reproducible builds
453
+ and archive checks must pass before the exact verified archive is published.
454
+ The manual **Extended host checks** workflow tests Node 22/24 and the real Linux
455
+ TUI on the newest stable OpenCode V2. These timing-sensitive host fixtures are
456
+ not an automatic release prerequisite.
457
+ After building, run `node scripts/test-runtime.mjs --profile v2-acceptance` for that same
445
458
  profile. Use `node scripts/test-runtime.mjs --list` for the complete runtime
446
- inventory or `node scripts/test-runtime.mjs --plan --profile ci` for a
459
+ inventory or `node scripts/test-runtime.mjs --plan --profile v2-acceptance` for a
447
460
  host-independent plan. Profiles select documented scenario/flag combinations;
448
461
  interactive desktop checks have separate prerequisites.
449
462
  See [AGENTS.md](https://github.com/mightykatun/opencode-reviewer/blob/main/AGENTS.md)