@weaveio/weave-adapter-opencode 0.0.0-preview-20260708084849 → 0.0.0-preview-20260708093512
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/dist/index.d.ts +5 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +5 -8
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -17,20 +17,18 @@
|
|
|
17
17
|
*
|
|
18
18
|
* ## Installation as an OpenCode plugin
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Add the package to the `plugin` array in `opencode.json`:
|
|
21
21
|
*
|
|
22
22
|
* ```jsonc
|
|
23
23
|
* // opencode.json
|
|
24
24
|
* {
|
|
25
|
-
* "plugin": ["@weaveio/weave-adapter-opencode
|
|
25
|
+
* "plugin": ["@weaveio/weave-adapter-opencode"]
|
|
26
26
|
* }
|
|
27
27
|
* ```
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* Use `@weaveio/weave-adapter-opencode/plugin` (`dist/plugin.js`) as the OpenCode plugin
|
|
33
|
-
* entry point. This barrel is for programmatic use only.
|
|
29
|
+
* OpenCode resolves the `./server` subpath export from `package.json`, which
|
|
30
|
+
* points to `dist/plugin.js`. This module exports only the plugin function,
|
|
31
|
+
* satisfying OpenCode's plugin loader requirements.
|
|
34
32
|
*
|
|
35
33
|
* Restart OpenCode after adding the plugin. The plugin entry point receives
|
|
36
34
|
* the runtime context, constructs an `OpenCodeAdapter` with the injected SDK
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;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BAAkB,EAClB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAM9B,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC7E,YAAY,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;;;GAKG;AACH,OAAO,EACL,iBAAiB,EACjB,MAAM,IAAI,iBAAiB,EAC3B,WAAW,EACX,WAAW,IAAI,OAAO,GACvB,MAAM,aAAa,CAAC"}
|
package/dist/plugin.d.ts
CHANGED
|
@@ -59,21 +59,18 @@
|
|
|
59
59
|
*
|
|
60
60
|
* ## Installation
|
|
61
61
|
*
|
|
62
|
-
* Add `@weaveio/weave-adapter-opencode
|
|
63
|
-
* Use the subpath export — **not** the bare package name:
|
|
62
|
+
* Add `@weaveio/weave-adapter-opencode` to the `plugin` array in `opencode.json`:
|
|
64
63
|
*
|
|
65
64
|
* ```jsonc
|
|
66
65
|
* // opencode.json
|
|
67
66
|
* {
|
|
68
|
-
* "plugin": ["@weaveio/weave-adapter-opencode
|
|
67
|
+
* "plugin": ["@weaveio/weave-adapter-opencode"]
|
|
69
68
|
* }
|
|
70
69
|
* ```
|
|
71
70
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* (`dist/plugin.js`) exports only the plugin function and is the correct entry
|
|
76
|
-
* point for OpenCode.
|
|
71
|
+
* OpenCode resolves the `./server` subpath export from `package.json`, which
|
|
72
|
+
* points to this module (`dist/plugin.js`). The bare package name works because
|
|
73
|
+
* the `./server` export is defined alongside the main entry point.
|
|
77
74
|
*
|
|
78
75
|
* Restart OpenCode after adding the plugin. The plugin entry point receives
|
|
79
76
|
* the runtime context, constructs an `OpenCodeAdapter` with the injected SDK
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AAGH,OAAO,KAAK,EAAS,MAAM,EAAe,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,UAAU,EAAc,MAAM,uBAAuB,CAAC;AAepE,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,sBAAsB,CAAC;AAuB9B;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IAEjC;;;;;;;;;;;;;;OAcG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,oBAAoB,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,GAAE,kBAAuB,GAAG,MAAM,CA6P1E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,EAAE,MAA4B,CAAC;AAEvD;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,QAAc,CAAC;AAElC,eAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weaveio/weave-adapter-opencode",
|
|
3
|
-
"version": "0.0.0-preview-
|
|
3
|
+
"version": "0.0.0-preview-20260708093512",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"./plugin": {
|
|
22
22
|
"types": "./dist/plugin.d.ts",
|
|
23
23
|
"import": "./dist/plugin.js"
|
|
24
|
+
},
|
|
25
|
+
"./server": {
|
|
26
|
+
"types": "./dist/plugin.d.ts",
|
|
27
|
+
"import": "./dist/plugin.js"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"scripts": {
|
|
@@ -31,9 +35,9 @@
|
|
|
31
35
|
"dependencies": {
|
|
32
36
|
"@opencode-ai/plugin": "~1.15.9",
|
|
33
37
|
"@opencode-ai/sdk": "~1.15.9",
|
|
34
|
-
"@weaveio/weave-config": "
|
|
35
|
-
"@weaveio/weave-core": "
|
|
36
|
-
"@weaveio/weave-engine": "
|
|
38
|
+
"@weaveio/weave-config": "0.0.1",
|
|
39
|
+
"@weaveio/weave-core": "0.0.1",
|
|
40
|
+
"@weaveio/weave-engine": "0.0.1",
|
|
37
41
|
"neverthrow": "^8.2.0"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|