opencode-goal-plugin 0.6.0 → 0.6.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/CHANGELOG.md +34 -15
- package/CONTRIBUTING.md +10 -13
- package/README.md +30 -19
- package/SECURITY.md +7 -9
- package/docs/compatibility.md +41 -0
- package/docs/providers.md +22 -3
- package/docs/releasing.md +41 -0
- package/index.d.ts +58 -6
- package/package.json +24 -6
- package/scripts/verify.mjs +1 -0
- package/src/goal-plugin.js +660 -229
- package/src/native-agent-config.js +5 -1
- package/src/opencode-session-api.js +11 -1
- package/src/persistence-lease.js +14 -2
- package/scripts/behavior-benchmark.mjs +0 -272
- package/scripts/packed-host-contract.mjs +0 -160
- package/scripts/smoke-command-hook.mjs +0 -51
package/package.json
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-goal-plugin",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"description": "Durable, guarded goal workflows for OpenCode.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/goal-plugin.js",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./index.d.ts",
|
|
11
|
+
"import": "./src/goal-plugin.js",
|
|
12
|
+
"default": "./src/goal-plugin.js"
|
|
13
|
+
},
|
|
14
|
+
"./server": {
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"import": "./src/goal-plugin.js",
|
|
17
|
+
"default": "./src/goal-plugin.js"
|
|
18
|
+
}
|
|
11
19
|
},
|
|
12
20
|
"bin": {
|
|
13
21
|
"opencode-goal-plugin": "./scripts/verify.mjs"
|
|
14
22
|
},
|
|
15
23
|
"files": [
|
|
16
24
|
"src",
|
|
17
|
-
"scripts",
|
|
25
|
+
"scripts/verify.mjs",
|
|
18
26
|
"examples",
|
|
19
27
|
"demo",
|
|
20
28
|
"docs",
|
|
@@ -28,13 +36,18 @@
|
|
|
28
36
|
],
|
|
29
37
|
"scripts": {
|
|
30
38
|
"test": "node --test test/*.test.js",
|
|
39
|
+
"test:model": "node --test test/lifecycle-model.test.js",
|
|
40
|
+
"test:mutation": "node scripts/mutation-contract.mjs",
|
|
31
41
|
"test:coverage": "node --test --experimental-test-coverage test/*.test.js",
|
|
42
|
+
"type:check": "node scripts/type-contract.mjs",
|
|
32
43
|
"smoke": "node scripts/smoke-command-hook.mjs",
|
|
33
44
|
"smoke:packed-host": "node scripts/packed-host-contract.mjs",
|
|
45
|
+
"smoke:packed-tools": "node scripts/packed-tool-contract.mjs",
|
|
34
46
|
"benchmark:behavior": "node scripts/behavior-benchmark.mjs",
|
|
35
47
|
"verify": "node scripts/verify.mjs",
|
|
36
48
|
"check": "node -c src/goal-plugin.js && npm test",
|
|
37
|
-
"pack:check": "npm pack --dry-run"
|
|
49
|
+
"pack:check": "npm pack --dry-run",
|
|
50
|
+
"release:check": "npm run check && npm run test:coverage && npm run type:check && npm run test:mutation && npm run benchmark:behavior && npm run smoke && npm run smoke:packed-host && npm run smoke:packed-tools && npm run verify && npm audit --omit=dev --audit-level=high && npm run pack:check"
|
|
38
51
|
},
|
|
39
52
|
"keywords": [
|
|
40
53
|
"opencode",
|
|
@@ -52,7 +65,8 @@
|
|
|
52
65
|
},
|
|
53
66
|
"license": "MIT",
|
|
54
67
|
"engines": {
|
|
55
|
-
"node": ">=18"
|
|
68
|
+
"node": ">=18",
|
|
69
|
+
"opencode": ">=1.17.15 <2"
|
|
56
70
|
},
|
|
57
71
|
"repository": {
|
|
58
72
|
"type": "git",
|
|
@@ -64,5 +78,9 @@
|
|
|
64
78
|
"homepage": "https://github.com/willytop8/OpenCode-goal-plugin#readme",
|
|
65
79
|
"author": {
|
|
66
80
|
"name": "willytop8"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@opencode-ai/plugin": "1.17.18",
|
|
84
|
+
"typescript": "5.9.3"
|
|
67
85
|
}
|
|
68
86
|
}
|
package/scripts/verify.mjs
CHANGED