@weaveio/weave-adapter-opencode 0.0.0-preview-20260708134505 → 0.0.0-preview-20260710143728

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 +18 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,19 +2,33 @@
2
2
 
3
3
  OpenCode adapter for Weave.
4
4
 
5
- ## Plugin entrypoint
5
+ ## Installation
6
6
 
7
- When loading this adapter as an OpenCode plugin, use the plugin bundle entrypoint:
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/plugin"
12
+ "@weaveio/weave-adapter-opencode@0.0.1"
13
13
  ]
14
14
  }
15
15
  ```
16
16
 
17
- For a direct file URL during local development, point OpenCode at `dist/plugin.js`, not `dist/index.js`:
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weaveio/weave-adapter-opencode",
3
- "version": "0.0.0-preview-20260708134505",
3
+ "version": "0.0.0-preview-20260710143728",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"