opencode-reviewer 2.1.4 → 2.1.5
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/README.md +8 -18
- package/THIRD_PARTY_NOTICES.md +4 -2
- package/dist/tui.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,14 +26,15 @@ denying the command afterward cannot undo that disclosure. Use an endpoint you
|
|
|
26
26
|
trust, and a local reviewer or a sandbox without accessible secrets when working
|
|
27
27
|
with untrusted repositories.
|
|
28
28
|
|
|
29
|
-
Add this entry to the global `~/.config/opencode/
|
|
30
|
-
`$XDG_CONFIG_HOME/opencode/
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
Add this entry to the global `~/.config/opencode/opencode.json`, or
|
|
30
|
+
`$XDG_CONFIG_HOME/opencode/opencode.json` when `XDG_CONFIG_HOME` is set.
|
|
31
|
+
OpenCode loads the [npm package](https://www.npmjs.com/package/opencode-reviewer)
|
|
32
|
+
and its terminal component from this single entry. No reviewer entry is needed
|
|
33
|
+
in `cli.json`.
|
|
33
34
|
|
|
34
35
|
```json
|
|
35
36
|
{
|
|
36
|
-
"$schema": "https://opencode.ai/
|
|
37
|
+
"$schema": "https://opencode.ai/config.json",
|
|
37
38
|
"plugins": [
|
|
38
39
|
{
|
|
39
40
|
"package": "opencode-reviewer@latest",
|
|
@@ -85,25 +86,14 @@ launching OpenCode. The inline key takes precedence. Omit both for an unauthenti
|
|
|
85
86
|
endpoint. Remove `instructions` to use the built-in prompts and
|
|
86
87
|
`notificationSoundDirectory` to use the bundled sounds.
|
|
87
88
|
|
|
88
|
-
You also need to edit `opencode.json`, as the plugin needs to be informed of states
|
|
89
|
-
that are not exposed by TUI APIs:
|
|
90
|
-
|
|
91
|
-
```json
|
|
92
|
-
{
|
|
93
|
-
"$schema": "https://opencode.ai/config.json",
|
|
94
|
-
"plugins": ["opencode-reviewer@latest"]
|
|
95
|
-
}
|
|
96
|
-
```
|
|
97
|
-
|
|
98
89
|
### Opencode docs
|
|
99
90
|
|
|
100
|
-
[
|
|
101
|
-
[CLI config](https://opencode.ai/v2/docs/cli/config) and
|
|
91
|
+
[OpenCode config](https://opencode.ai/v2/docs/config) and
|
|
102
92
|
[CLI plugins](https://opencode.ai/v2/docs/build/plugins/cli) guides.
|
|
103
93
|
|
|
104
94
|
## Options reference
|
|
105
95
|
|
|
106
|
-
These are options inside the plugin's `options` object in global `
|
|
96
|
+
These are options inside the plugin's `options` object in global `opencode.json`.
|
|
107
97
|
Defaults apply only to omitted options. `null` is invalid. Boolean and integer
|
|
108
98
|
options require JSON booleans and numbers, not quoted strings. Integer ranges are
|
|
109
99
|
inclusive, fractions are invalid, and the maximum safe integer is
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -31,8 +31,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
31
31
|
|
|
32
32
|
https://github.com/anomalyco/opencode/tree/v2.0.29/packages/theme
|
|
33
33
|
|
|
34
|
-
The source-fingerprinted theme syntax helper is bundled
|
|
35
|
-
A build-time adapter replaces its public barrel with a syntax-only re-export
|
|
34
|
+
The source-fingerprinted theme syntax helper is bundled in the terminal payload.
|
|
35
|
+
A build-time adapter replaces its public barrel with a syntax-only re-export and
|
|
36
|
+
adapts `generateSyntax` to forward the renderer owner to `SyntaxStyle.fromTheme`
|
|
37
|
+
for OpenTUI 0.6 compatibility. The upstream syntax rules remain unchanged;
|
|
36
38
|
unused theme parsers, schemas and their Effect dependency are not bundled.
|
|
37
39
|
Solid and OpenTUI remain host-provided external dependencies.
|
|
38
40
|
|