@weaveio/weave-adapter-opencode 0.0.0-preview-20260708134505 → 0.0.0-preview-20260710183641
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 +18 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,19 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
OpenCode adapter for Weave.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Add the adapter as a plugin in your `opencode.json` (or `opencode.jsonc`). Use the **full versioned package specifier**:
|
|
8
8
|
|
|
9
9
|
```json
|
|
10
10
|
{
|
|
11
11
|
"plugin": [
|
|
12
|
-
"@weaveio/weave-adapter-opencode
|
|
12
|
+
"@weaveio/weave-adapter-opencode@0.0.1"
|
|
13
13
|
]
|
|
14
14
|
}
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
For
|
|
17
|
+
For preview/snapshot versions:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"plugin": [
|
|
22
|
+
"@weaveio/weave-adapter-opencode@0.0.0-preview-20260708134505"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
OpenCode resolves the plugin from npm at startup, so the version must be pinned explicitly in the `plugin` array. There is no separate `npm install` step — OpenCode handles package fetching.
|
|
28
|
+
|
|
29
|
+
## Local development
|
|
30
|
+
|
|
31
|
+
For local development, point OpenCode at the built `dist/plugin.js` via a file URL:
|
|
18
32
|
|
|
19
33
|
```json
|
|
20
34
|
{
|
|
@@ -30,8 +44,6 @@ Rebuild the package before using a `dist/` file path so the plugin bundle matche
|
|
|
30
44
|
bun run --filter @weaveio/weave-adapter-opencode build
|
|
31
45
|
```
|
|
32
46
|
|
|
33
|
-
Do **not** use the bare package entry (`@weaveio/weave-adapter-opencode`) or `dist/index.js` as a plugin target. The bare entry is the programmatic barrel and exports non-plugin values in addition to the plugin function, which is incompatible with OpenCode's legacy plugin loader.
|
|
34
|
-
|
|
35
47
|
## Isolated OpenCode validation
|
|
36
48
|
|
|
37
49
|
OpenCode merges global config, project config, explicit config, and plugin directories. `OPENCODE_CONFIG` and `OPENCODE_CONFIG_CONTENT` add config; they do not replace every other source by themselves.
|