opencode-shell-safety 0.2.0 → 0.2.2

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 (2) hide show
  1. package/README.md +11 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,11 +4,11 @@ An OpenCode v2 plugin that uses [Jev](https://en.wikipedia.org/wiki/Jev_(AI_mode
4
4
  to classify shell permission requests against the active agent definition and
5
5
  its filesystem policy.
6
6
 
7
- ## Install with OpenCode Zen
7
+ ## Configuration
8
8
 
9
- Add the plugin to `~/.config/opencode/opencode.jsonc` to use it across projects.
10
- OpenCode installs configured package plugins; you do not need to install the
11
- package separately. For one project, use its `opencode.jsonc` instead.
9
+ ### With OpenCode Zen
10
+
11
+ [OpenCode Zen](https://opencode.ai/zen) provides access to Jev. Create an account, and an API token, then add the plugin to `~/.config/opencode/opencode.jsonc`:
12
12
 
13
13
  ```jsonc
14
14
  {
@@ -30,14 +30,15 @@ package separately. For one project, use its `opencode.jsonc` instead.
30
30
  }
31
31
  ```
32
32
 
33
- For a manual key instead, replace `integration` with
34
- `"apiKeyEnv": "OPENCODE_API_KEY"`.
33
+ The `"integration": "opencode"` assumes authentication via `opencode auth login`. As an alternative, replace `integration` with the name of the environment variable that stores the API token:
34
+
35
+ ```json
36
+ "apiKeyEnv": "OPENCODE_API_KEY"
37
+ ```
35
38
 
36
- ## Use TypeSafe AI
39
+ ### Via the TypeSafe AI
37
40
 
38
- Get an API key from [TypeSafe AI](https://docs.typesafe.ai/introduction/quickstart)
39
- and set `TYPESAFE_API_KEY` in the OpenCode server environment. Add this plugin
40
- configuration to `opencode.jsonc` instead of the OpenCode Zen example above:
41
+ Get an API key from [TypeSafe AI](https://docs.typesafe.ai/introduction/quickstart) and set `TYPESAFE_API_KEY` environment variable. Add this plugin configuration to `opencode.jsonc`:
41
42
 
42
43
  ```jsonc
43
44
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-shell-safety",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "OpenCode plugin that classifies shell permission requests against agent policy.",
5
5
  "type": "module",
6
6
  "exports": {