opencode-effect-enforcer 0.2.2 → 0.2.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.
- package/README.md +27 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ That is the complete installation. OpenCode resolves published package entries
|
|
|
21
21
|
for you; there is no separate `npm install` step. Use the global config at
|
|
22
22
|
`~/.config/opencode/opencode.jsonc` to enable it everywhere, or a project config
|
|
23
23
|
to enable it only for that project. You can also pin a release, for example
|
|
24
|
-
`"opencode-effect-enforcer@0.2.
|
|
24
|
+
`"opencode-effect-enforcer@0.2.3"`.
|
|
25
25
|
|
|
26
26
|
Start a new OpenCode session, then verify the plugin if needed:
|
|
27
27
|
|
|
@@ -29,6 +29,32 @@ Start a new OpenCode session, then verify the plugin if needed:
|
|
|
29
29
|
opencode2 api get /api/plugin
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
### Local Checkout
|
|
33
|
+
|
|
34
|
+
When loading this repository directly, configure its `src` directory:
|
|
35
|
+
|
|
36
|
+
```jsonc
|
|
37
|
+
{
|
|
38
|
+
"$schema": "https://opencode.ai/config.json",
|
|
39
|
+
"plugins": ["/absolute/path/opencode-effect-enforcer/src"],
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
OpenCode `v0.0.0-beta-19157` resolves local directories by looking for `server`
|
|
44
|
+
or `index` directly inside them, rather than using `package.json` exports.
|
|
45
|
+
Pointing at the repository root silently skips the plugin; pointing at the
|
|
46
|
+
`src/index.ts` file is rejected because configured local paths must be directories.
|
|
47
|
+
|
|
48
|
+
Verify activation for the session's actual working directory, replacing the
|
|
49
|
+
example path below:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
opencode2 api post '/api/plugin/await-activation?location[directory]=/path/to/project'
|
|
53
|
+
opencode2 api get '/api/plugin?location[directory]=/path/to/project'
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Look for `opencode.effect-enforcer` with `state.status` set to `active`.
|
|
57
|
+
|
|
32
58
|
## What You Get
|
|
33
59
|
|
|
34
60
|
- **54 focused skills** registered in OpenCode's native skill catalog, covering
|
package/package.json
CHANGED