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.
- package/README.md +11 -10
- 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
|
-
##
|
|
7
|
+
## Configuration
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
34
|
-
|
|
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
|
-
|
|
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
|
{
|