opencodekit 0.21.8 → 0.21.10

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 (34) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/.template-manifest.json +0 -3
  3. package/dist/template/.opencode/AGENTS.md +1 -13
  4. package/dist/template/.opencode/agent/build.md +1 -1
  5. package/dist/template/.opencode/agent/explore.md +15 -15
  6. package/dist/template/.opencode/agent/general.md +2 -2
  7. package/dist/template/.opencode/agent/plan.md +3 -3
  8. package/dist/template/.opencode/agent/review.md +2 -2
  9. package/dist/template/.opencode/agent/scout.md +34 -15
  10. package/dist/template/.opencode/command/design.md +4 -4
  11. package/dist/template/.opencode/command/init-context.md +7 -7
  12. package/dist/template/.opencode/command/review-codebase.md +1 -1
  13. package/dist/template/.opencode/command/ship.md +1 -1
  14. package/dist/template/.opencode/dcp.jsonc +18 -46
  15. package/dist/template/.opencode/memory/project/user.md +1 -2
  16. package/dist/template/.opencode/opencode.json +10 -332
  17. package/dist/template/.opencode/plugin/lib/capture.ts +1 -1
  18. package/dist/template/.opencode/plugin/lib/db/schema.ts +102 -9
  19. package/dist/template/.opencode/plugin/lib/memory-db.ts +41 -17
  20. package/dist/template/.opencode/plugin/lib/operation-log.ts +1 -0
  21. package/dist/template/.opencode/plugin/sessions.ts +37 -8
  22. package/dist/template/.opencode/skill/agent-evals/SKILL.md +1 -1
  23. package/dist/template/.opencode/skill/code-search-patterns/SKILL.md +49 -78
  24. package/dist/template/.opencode/skill/context-initialization/SKILL.md +5 -5
  25. package/dist/template/.opencode/skill/rtk-command-compression/SKILL.md +1 -1
  26. package/dist/template/.opencode/tool/context7.ts +1 -1
  27. package/dist/template/.opencode/tool/grepsearch.ts +1 -1
  28. package/package.json +2 -2
  29. package/dist/template/.opencode/memory.db +0 -0
  30. package/dist/template/.opencode/memory.db-shm +0 -0
  31. package/dist/template/.opencode/memory.db-wal +0 -0
  32. package/dist/template/.opencode/opencode.json.tui-migration.bak +0 -1380
  33. package/dist/template/.opencode/plugin/notification.ts.bak +0 -64
  34. package/dist/template/.opencode/pnpm-lock.yaml +0 -287
@@ -1,64 +0,0 @@
1
- /**
2
- * OpenCode Notification Plugin
3
- * Sends native notifications when sessions complete
4
- */
5
-
6
- import type { Plugin } from "@opencode-ai/plugin";
7
- import { notify } from "./lib/notify.js";
8
-
9
- export const NotificationPlugin: Plugin = async ({ client, $ }) => {
10
- const notifiedSessions = new Set<string>();
11
-
12
- return {
13
- event: async ({ event }) => {
14
- if (event.type === "session.idle") {
15
- const props = event.properties as Record<string, unknown>;
16
- const sessionId = props?.sessionID as string | undefined;
17
-
18
- if (!sessionId || notifiedSessions.has(sessionId)) return;
19
- notifiedSessions.add(sessionId);
20
-
21
- setTimeout(async () => {
22
- try {
23
- let summary = "Session completed";
24
-
25
- const messagesResponse = await client.session.messages({
26
- path: { id: sessionId },
27
- });
28
-
29
- if (messagesResponse.data && Array.isArray(messagesResponse.data)) {
30
- const lastUserMessage = messagesResponse.data
31
- .filter((m) => m.info.role === "user")
32
- .pop();
33
-
34
- const messageSummary = lastUserMessage?.info?.summary;
35
- if (
36
- messageSummary &&
37
- typeof messageSummary === "object" &&
38
- messageSummary !== null
39
- ) {
40
- if ("body" in messageSummary && messageSummary.body) {
41
- summary = String(messageSummary.body).trim().slice(0, 100);
42
- } else if ("title" in messageSummary && messageSummary.title) {
43
- summary = String(messageSummary.title).trim();
44
- }
45
- }
46
- }
47
-
48
- await notify($, "OpenCode", summary);
49
- } catch (error) {
50
- client.app
51
- .log({
52
- body: {
53
- service: "notification",
54
- level: "warn",
55
- message: `Notification failed: ${(error as Error).message}`,
56
- },
57
- })
58
- .catch(() => {});
59
- }
60
- }, 2000);
61
- }
62
- },
63
- };
64
- };
@@ -1,287 +0,0 @@
1
- lockfileVersion: '9.0'
2
-
3
- settings:
4
- autoInstallPeers: true
5
- excludeLinksFromLockfile: false
6
-
7
- importers:
8
-
9
- .:
10
- dependencies:
11
- '@opencode-ai/plugin':
12
- specifier: 1.4.9
13
- version: 1.4.9
14
- devDependencies:
15
- '@types/node':
16
- specifier: ^25.3.0
17
- version: 25.3.5
18
- bun-types:
19
- specifier: ^1.3.9
20
- version: 1.3.10
21
- typescript:
22
- specifier: ^5.9.3
23
- version: 5.9.3
24
-
25
- packages:
26
-
27
- '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3':
28
- resolution: {integrity: sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==}
29
- cpu: [arm64]
30
- os: [darwin]
31
-
32
- '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3':
33
- resolution: {integrity: sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==}
34
- cpu: [x64]
35
- os: [darwin]
36
-
37
- '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3':
38
- resolution: {integrity: sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==}
39
- cpu: [arm64]
40
- os: [linux]
41
-
42
- '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3':
43
- resolution: {integrity: sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==}
44
- cpu: [arm]
45
- os: [linux]
46
-
47
- '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3':
48
- resolution: {integrity: sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==}
49
- cpu: [x64]
50
- os: [linux]
51
-
52
- '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.3':
53
- resolution: {integrity: sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==}
54
- cpu: [x64]
55
- os: [win32]
56
-
57
- '@opencode-ai/plugin@1.4.9':
58
- resolution: {integrity: sha512-tUtPbPs5xP9wonwuz5d/2y8QTrqFR8HOtAVTXvZ6iG26NJfW0dnnw9oTusVOayEIemd5abytCESm7X9ZZOMftQ==}
59
- peerDependencies:
60
- '@opentui/core': '>=0.1.100'
61
- '@opentui/solid': '>=0.1.100'
62
- peerDependenciesMeta:
63
- '@opentui/core':
64
- optional: true
65
- '@opentui/solid':
66
- optional: true
67
-
68
- '@opencode-ai/sdk@1.4.9':
69
- resolution: {integrity: sha512-S8WQLuBFu2WwvSc1wupsV4qskniBA+JN1VaZZs52BPWwiN2zQFTD5/6dMh6oiYOMDtPjKsTFZ6qLFxDvVPNggQ==}
70
-
71
- '@standard-schema/spec@1.1.0':
72
- resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
73
-
74
- '@types/node@25.3.5':
75
- resolution: {integrity: sha512-oX8xrhvpiyRCQkG1MFchB09f+cXftgIXb3a7UUa4Y3wpmZPw5tyZGTLWhlESOLq1Rq6oDlc8npVU2/9xiCuXMA==}
76
-
77
- bun-types@1.3.10:
78
- resolution: {integrity: sha512-tcpfCCl6XWo6nCVnpcVrxQ+9AYN1iqMIzgrSKYMB/fjLtV2eyAVEg7AxQJuCq/26R6HpKWykQXuSOq/21RYcbg==}
79
-
80
- cross-spawn@7.0.6:
81
- resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
82
- engines: {node: '>= 8'}
83
-
84
- detect-libc@2.1.2:
85
- resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
86
- engines: {node: '>=8'}
87
-
88
- effect@4.0.0-beta.48:
89
- resolution: {integrity: sha512-MMAM/ZabuNdNmgXiin+BAanQXK7qM8mlt7nfXDoJ/Gn9V8i89JlCq+2N0AiWmqFLXjGLA0u3FjiOjSOYQk5uMw==}
90
-
91
- fast-check@4.7.0:
92
- resolution: {integrity: sha512-NsZRtqvSSoCP0HbNjUD+r1JH8zqZalyp6gLY9e7OYs7NK9b6AHOs2baBFeBG7bVNsuoukh89x2Yg3rPsul8ziQ==}
93
- engines: {node: '>=12.17.0'}
94
-
95
- find-my-way-ts@0.1.6:
96
- resolution: {integrity: sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==}
97
-
98
- ini@6.0.0:
99
- resolution: {integrity: sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==}
100
- engines: {node: ^20.17.0 || >=22.9.0}
101
-
102
- isexe@2.0.0:
103
- resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
104
-
105
- kubernetes-types@1.30.0:
106
- resolution: {integrity: sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q==}
107
-
108
- msgpackr-extract@3.0.3:
109
- resolution: {integrity: sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==}
110
- hasBin: true
111
-
112
- msgpackr@1.11.10:
113
- resolution: {integrity: sha512-iCZNq+HszvF+fC3anCm4nBmWEnbeIAfpDs6IStAEKhQ2YSgkjzVG2FF9XJqwwQh5bH3N9OUTUt4QwVN6MLMLtA==}
114
-
115
- multipasta@0.2.7:
116
- resolution: {integrity: sha512-KPA58d68KgGil15oDqXjkUBEBYc00XvbPj5/X+dyzeo/lWm9Nc25pQRlf1D+gv4OpK7NM0J1odrbu9JNNGvynA==}
117
-
118
- node-gyp-build-optional-packages@5.2.2:
119
- resolution: {integrity: sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==}
120
- hasBin: true
121
-
122
- path-key@3.1.1:
123
- resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
124
- engines: {node: '>=8'}
125
-
126
- pure-rand@8.4.0:
127
- resolution: {integrity: sha512-IoM8YF/jY0hiugFo/wOWqfmarlE6J0wc6fDK1PhftMk7MGhVZl88sZimmqBBFomLOCSmcCCpsfj7wXASCpvK9A==}
128
-
129
- shebang-command@2.0.0:
130
- resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
131
- engines: {node: '>=8'}
132
-
133
- shebang-regex@3.0.0:
134
- resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
135
- engines: {node: '>=8'}
136
-
137
- toml@4.1.1:
138
- resolution: {integrity: sha512-EBJnVBr3dTXdA89WVFoAIPUqkBjxPMwRqsfuo1r240tKFHXv3zgca4+NJib/h6TyvGF7vOawz0jGuryJCdNHrw==}
139
- engines: {node: '>=20'}
140
-
141
- typescript@5.9.3:
142
- resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
143
- engines: {node: '>=14.17'}
144
- hasBin: true
145
-
146
- undici-types@7.18.2:
147
- resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==}
148
-
149
- uuid@13.0.0:
150
- resolution: {integrity: sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==}
151
- hasBin: true
152
-
153
- which@2.0.2:
154
- resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
155
- engines: {node: '>= 8'}
156
- hasBin: true
157
-
158
- yaml@2.8.3:
159
- resolution: {integrity: sha512-AvbaCLOO2Otw/lW5bmh9d/WEdcDFdQp2Z2ZUH3pX9U2ihyUY0nvLv7J6TrWowklRGPYbB/IuIMfYgxaCPg5Bpg==}
160
- engines: {node: '>= 14.6'}
161
- hasBin: true
162
-
163
- zod@4.1.8:
164
- resolution: {integrity: sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==}
165
-
166
- snapshots:
167
-
168
- '@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3':
169
- optional: true
170
-
171
- '@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3':
172
- optional: true
173
-
174
- '@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3':
175
- optional: true
176
-
177
- '@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3':
178
- optional: true
179
-
180
- '@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3':
181
- optional: true
182
-
183
- '@msgpackr-extract/msgpackr-extract-win32-x64@3.0.3':
184
- optional: true
185
-
186
- '@opencode-ai/plugin@1.4.9':
187
- dependencies:
188
- '@opencode-ai/sdk': 1.4.9
189
- effect: 4.0.0-beta.48
190
- zod: 4.1.8
191
-
192
- '@opencode-ai/sdk@1.4.9':
193
- dependencies:
194
- cross-spawn: 7.0.6
195
-
196
- '@standard-schema/spec@1.1.0': {}
197
-
198
- '@types/node@25.3.5':
199
- dependencies:
200
- undici-types: 7.18.2
201
-
202
- bun-types@1.3.10:
203
- dependencies:
204
- '@types/node': 25.3.5
205
-
206
- cross-spawn@7.0.6:
207
- dependencies:
208
- path-key: 3.1.1
209
- shebang-command: 2.0.0
210
- which: 2.0.2
211
-
212
- detect-libc@2.1.2:
213
- optional: true
214
-
215
- effect@4.0.0-beta.48:
216
- dependencies:
217
- '@standard-schema/spec': 1.1.0
218
- fast-check: 4.7.0
219
- find-my-way-ts: 0.1.6
220
- ini: 6.0.0
221
- kubernetes-types: 1.30.0
222
- msgpackr: 1.11.10
223
- multipasta: 0.2.7
224
- toml: 4.1.1
225
- uuid: 13.0.0
226
- yaml: 2.8.3
227
-
228
- fast-check@4.7.0:
229
- dependencies:
230
- pure-rand: 8.4.0
231
-
232
- find-my-way-ts@0.1.6: {}
233
-
234
- ini@6.0.0: {}
235
-
236
- isexe@2.0.0: {}
237
-
238
- kubernetes-types@1.30.0: {}
239
-
240
- msgpackr-extract@3.0.3:
241
- dependencies:
242
- node-gyp-build-optional-packages: 5.2.2
243
- optionalDependencies:
244
- '@msgpackr-extract/msgpackr-extract-darwin-arm64': 3.0.3
245
- '@msgpackr-extract/msgpackr-extract-darwin-x64': 3.0.3
246
- '@msgpackr-extract/msgpackr-extract-linux-arm': 3.0.3
247
- '@msgpackr-extract/msgpackr-extract-linux-arm64': 3.0.3
248
- '@msgpackr-extract/msgpackr-extract-linux-x64': 3.0.3
249
- '@msgpackr-extract/msgpackr-extract-win32-x64': 3.0.3
250
- optional: true
251
-
252
- msgpackr@1.11.10:
253
- optionalDependencies:
254
- msgpackr-extract: 3.0.3
255
-
256
- multipasta@0.2.7: {}
257
-
258
- node-gyp-build-optional-packages@5.2.2:
259
- dependencies:
260
- detect-libc: 2.1.2
261
- optional: true
262
-
263
- path-key@3.1.1: {}
264
-
265
- pure-rand@8.4.0: {}
266
-
267
- shebang-command@2.0.0:
268
- dependencies:
269
- shebang-regex: 3.0.0
270
-
271
- shebang-regex@3.0.0: {}
272
-
273
- toml@4.1.1: {}
274
-
275
- typescript@5.9.3: {}
276
-
277
- undici-types@7.18.2: {}
278
-
279
- uuid@13.0.0: {}
280
-
281
- which@2.0.2:
282
- dependencies:
283
- isexe: 2.0.0
284
-
285
- yaml@2.8.3: {}
286
-
287
- zod@4.1.8: {}