@noppu-labs/opencode-permission-reviewer 3.2.3 → 3.3.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/CHANGELOG.md +51 -1
- package/README.md +28 -16
- package/dist/explain.d.ts +1 -3
- package/dist/explain.js +305 -314
- package/dist/index.d.ts +0 -90
- package/dist/index.js +543 -687
- package/dist/rpc.d.ts +1 -3
- package/dist/rpc.js +1 -2
- package/dist/tui/modules/config/models/openrouter-decision-models.ts +44 -0
- package/dist/tui/modules/config/models/system-one-providers.ts +154 -0
- package/dist/tui/modules/config/services/reviewer-model.ts +24 -14
- package/dist/tui/modules/config/services/system-one-routing.ts +16 -5
- package/dist/tui/ui/attribution.ts +15 -15
- package/dist/tui/ui/config-notices.ts +23 -7
- package/dist/tui/ui/manual-toast.ts +4 -4
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [3.3.0] - 2026-10-28
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Liquid AI (`liquid-ai/d1`, `liquid-ai/d1-ultra`) and Baseten
|
|
15
|
+
(`baseten/decision-models/baseten-mammoth-27b-latest`,
|
|
16
|
+
`baseten/decision-models/baseten-elephant-9b-latest`) System One reviewers, selected from one
|
|
17
|
+
provider table. Keys come from `LIQUID_API_KEY` and `BASETEN_API_KEY`. A key that is not shaped
|
|
18
|
+
like a Liquid AI key is never sent, and Liquid keys are redacted from reviewer evidence
|
|
19
|
+
([Reviewer models](docs/REVIEWER-MODELS.md#system-one-reviewers); ported from upstream 2.5.0).
|
|
20
|
+
- OpenRouter System One reviewers (`openrouter/<model>`, for example `openrouter/typesafe/jev-1.14`),
|
|
21
|
+
keyed by `OPENROUTER_API_KEY`. Listed models, routing suffixes such as `:free` and `:nitro`, and
|
|
22
|
+
new `typesafe/jev-<n>` and `liquid/d1…` releases are accepted. Unbenchmarked models raise a
|
|
23
|
+
config notice, and known-incompatible ones say every review will fail
|
|
24
|
+
([Reviewer models](docs/REVIEWER-MODELS.md#openrouter)).
|
|
25
|
+
- A weekly `openrouter-models` workflow that refreshes the list of OpenRouter decision models and
|
|
26
|
+
opens a pull request against `develop`.
|
|
27
|
+
- Redaction of OpenRouter keys (`sk-or-v1-…`) in reviewer evidence.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- User-facing text says "System One" instead of "Jev" when it describes the mechanism: attribution
|
|
32
|
+
lines, toasts, config warnings and the docs. "Jev" now names only the Jev model itself.
|
|
33
|
+
- The minimum Bun is now 1.3.14 (was 1.3.0), the floor `@opentui/core` 0.7 declares. The TUI
|
|
34
|
+
dependencies move from `@opentui/core` and `@opentui/solid` 0.5.11 to 0.7.0, which
|
|
35
|
+
`@opencode/plugin` 2.2.0 pins exactly.
|
|
36
|
+
- Update the `@opencode/client` dependency to 2.2.0, from upstream. OpenCode 2.2.0 joins the
|
|
37
|
+
real-host matrix as a verified V2 host.
|
|
38
|
+
- Development tooling updates (Biome 2.6, knip, tsdown, `@types/bun`) with no behaviour change.
|
|
39
|
+
The development tree also clears new `zod` and `undici` advisories.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- On OpenCode V2, a reviewer model that lacks the default `medium` variant now runs with its own
|
|
44
|
+
default variant instead of escalating every request, including when `medium` is set explicitly.
|
|
45
|
+
Any other variant the model lacks still fails closed, and the error lists the variants the model
|
|
46
|
+
offers (ported from upstream 2.5.0).
|
|
47
|
+
- OpenCode session IDs (`ses_…`) under a session key are kept in reviewer evidence instead of being
|
|
48
|
+
redacted as credentials. Lookalike values, and session IDs under other keys, are still redacted
|
|
49
|
+
(ported from upstream 2.5.0).
|
|
50
|
+
- Package-script evidence now starts from the shell tool's `workdir`, so `bun run x` in a
|
|
51
|
+
workspace package reports that package's script, not the root one. A workdir that is invalid or
|
|
52
|
+
does not exist is reported as unresolved, and the read roots do not widen (ported from upstream
|
|
53
|
+
2.5.0).
|
|
54
|
+
|
|
55
|
+
### Security
|
|
56
|
+
|
|
57
|
+
- `@opentui/solid` 0.7.0 pins `@babel/core` 7.29.7, so consumer installs no longer carry
|
|
58
|
+
GHSA-4x5r-pxfx-6jf8 (`@babel/core <= 7.29.0`).
|
|
59
|
+
|
|
10
60
|
## [3.2.3] - 2026-10-24
|
|
11
61
|
|
|
12
62
|
### Changed
|
|
@@ -380,7 +430,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
380
430
|
- Add Jev as a reviewer model choice through OpenCode Zen, TypeSafe AI, or the
|
|
381
431
|
Command Code Provider API. Use Jev alone, or configure a second LLM such as
|
|
382
432
|
Luna for difficult decisions. See the [Jev setup
|
|
383
|
-
guide](./docs/REVIEWER-MODELS.md#
|
|
433
|
+
guide](./docs/REVIEWER-MODELS.md#system-one-reviewers).
|
|
384
434
|
|
|
385
435
|
### Changed
|
|
386
436
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/@noppu-labs/opencode-permission-reviewer)
|
|
5
5
|
[](https://www.npmjs.com/package/@noppu-labs/opencode-permission-reviewer)
|
|
6
6
|
[](https://opencode.ai)
|
|
7
|
-
[](https://bun.sh)
|
|
8
8
|
[](docs/NOTICE)
|
|
9
9
|
|
|
10
10
|

|
|
@@ -15,12 +15,16 @@ control. It then allows the action, denies it with a reason the agent can act on
|
|
|
15
15
|
it to you. Routine actions stop waiting for a keystroke, and risky ones are still blocked or
|
|
16
16
|
brought to you.
|
|
17
17
|
|
|
18
|
+
You can use any LLM or [System One model](docs/REVIEWER-MODELS.md#system-one-reviewers) as the
|
|
19
|
+
reviewer, or even a combination of both, with System One handing its hard calls to an LLM
|
|
20
|
+
([Reviewer models](docs/REVIEWER-MODELS.md#system-one-with-selective-reasoning-escalation)).
|
|
21
|
+
|
|
18
22
|
## What it does
|
|
19
23
|
|
|
20
24
|
- Leaves your existing policy alone: `allow` rules continue and `deny` rules stay blocked
|
|
21
25
|
without reaching the reviewer.
|
|
22
26
|
- Reviews in isolation. Normal models run in a scratch session with every operational tool
|
|
23
|
-
denied.
|
|
27
|
+
denied. System One models use their typed System One API, which exposes no tools or project runtime.
|
|
24
28
|
- Gives the reviewer bounded, sanitized, read-only evidence about SSH commands, local scripts,
|
|
25
29
|
and Git state.
|
|
26
30
|
- Never auto-approves an action the reviewer classifies as critical. Reviewer failures lead to
|
|
@@ -35,13 +39,14 @@ brought to you.
|
|
|
35
39
|
|
|
36
40
|
## Requirements
|
|
37
41
|
|
|
38
|
-
- [Bun](https://bun.sh) >= 1.3.
|
|
42
|
+
- [Bun](https://bun.sh) >= 1.3.14
|
|
39
43
|
- [OpenCode](https://opencode.ai) V1 `>=1.18.29 <2` (tested with 1.18.35) or V2 `>=2.0.22 <3`
|
|
40
44
|
(tested with 2.0.26)
|
|
41
45
|
- `git` on `PATH`, used only for read-only Git enrichment. Without it, the reviewer gets no Git
|
|
42
46
|
snapshot.
|
|
43
47
|
- A reviewer model: either a model configured in OpenCode that follows JSON schemas reliably, or
|
|
44
|
-
a
|
|
48
|
+
a System One API key in the OpenCode server's environment (including an OpenRouter key for the
|
|
49
|
+
decision models it serves). See
|
|
45
50
|
[Reviewer models](docs/REVIEWER-MODELS.md).
|
|
46
51
|
- At least one action in your OpenCode permission policy that resolves to `ask`. On V2, an action
|
|
47
52
|
that matches no rule is `ask` by default. If everything is already `allow` or `deny`, the plugin
|
|
@@ -51,23 +56,30 @@ brought to you.
|
|
|
51
56
|
|
|
52
57
|
## Install
|
|
53
58
|
|
|
54
|
-
OpenCode V2
|
|
59
|
+
### OpenCode V2
|
|
55
60
|
|
|
56
61
|
```bash
|
|
57
62
|
opencode plugin add @noppu-labs/opencode-permission-reviewer
|
|
58
63
|
```
|
|
59
64
|
|
|
60
|
-
|
|
61
|
-
the package's own CLI instead. `--host auto` detects V1 or V2, `--tui` also registers the
|
|
62
|
-
overlay (V1 `tui.json` or V2 global `cli.json`), and `--npm` writes the package name instead of
|
|
63
|
-
a path. It never overwrites an existing entry.
|
|
65
|
+
### OpenCode V1
|
|
64
66
|
|
|
65
67
|
```bash
|
|
66
68
|
bunx @noppu-labs/opencode-permission-reviewer init --host auto --npm --tui --yes
|
|
67
69
|
```
|
|
68
70
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
+
> On OpenCode V1, `opencode plugin` registers the server plugin but not the TUI overlay, so use
|
|
72
|
+
> the package's own CLI instead. `--host auto` detects V1 or V2, `--tui` also registers the
|
|
73
|
+
> overlay, and `--npm` writes the package name instead of a path. It never overwrites an
|
|
74
|
+
> existing entry.
|
|
75
|
+
|
|
76
|
+
### From a fork or local clone
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
bun install && bun run build
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Then register the checkout's absolute path.
|
|
71
83
|
|
|
72
84
|
## Configure
|
|
73
85
|
|
|
@@ -125,15 +137,15 @@ authorization level, rationale, and confidence. Invariants in code then decide w
|
|
|
125
137
|
decision can stand: invalid output, low confidence, and risky actions without matching
|
|
126
138
|
authorization escalate instead of being approved.
|
|
127
139
|
|
|
128
|
-
With
|
|
129
|
-
([Reviewer models](docs/REVIEWER-MODELS.md)),
|
|
140
|
+
With System One as the reviewer and an `escalationReviewer` configured
|
|
141
|
+
([Reviewer models](docs/REVIEWER-MODELS.md)), System One can hand a request to that reasoning reviewer,
|
|
130
142
|
and the progress strip says so; the elapsed time keeps counting from the start of the review.
|
|
131
143
|
|
|
132
|
-

|
|
133
145
|
|
|
134
146
|
Each result says who decided, ahead of the reason.
|
|
135
147
|
|
|
136
|
-

|
|
137
149
|
|
|
138
150
|
The [TUI guide](docs/TUI.md) covers every screen, including manual-review toasts, config warnings
|
|
139
151
|
and long commands.
|
|
@@ -143,7 +155,7 @@ and long commands.
|
|
|
143
155
|
| Page | Contents |
|
|
144
156
|
| ------------------------------------------ | ------------------------------------------------------------------------ |
|
|
145
157
|
| [Configuration](docs/CONFIGURATION.md) | Setup details, all options, config trust layers, headless use, audit log |
|
|
146
|
-
| [Reviewer models](docs/REVIEWER-MODELS.md) | Picking a model,
|
|
158
|
+
| [Reviewer models](docs/REVIEWER-MODELS.md) | Picking a model, System One reviewers, models without structured output |
|
|
147
159
|
| [How it works](docs/HOW-IT-WORKS.md) | The review pipeline, a TUI overview, evidence enrichment |
|
|
148
160
|
| [TUI guide](docs/TUI.md) | Every TUI screen: progress, hand-offs, results, toasts, config warnings |
|
|
149
161
|
| [Safety](docs/SAFETY.md) | Safety properties and threat model |
|
package/dist/explain.d.ts
CHANGED