@yandy-r/ycc-opencode 6.0.0 → 6.1.0

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 (63) hide show
  1. package/AGENTS.md +3 -2
  2. package/README.md +10 -1
  3. package/agents/backport-conflict-resolver.md +346 -4
  4. package/agents/db-modifier.md +346 -4
  5. package/agents/git-cleanup.md +3 -2
  6. package/agents/pr-comment-fixer.md +365 -23
  7. package/agents/release-fix-applier.md +383 -19
  8. package/agents/review-fixer.md +371 -26
  9. package/index.js +268 -5
  10. package/package.json +3 -2
  11. package/registration.json +4113 -1238
  12. package/shared/references/ci-monitoring.md +11 -1
  13. package/shared/references/goal-pairing.md +4 -2
  14. package/shared/references/question-policy.md +99 -0
  15. package/shared/references/review-dispatch.md +4 -2
  16. package/shared/references/standalone-dispatch.md +4 -2
  17. package/shared/references/target-capability-matrix.md +227 -36
  18. package/shared/references/worktree-strategy.md +20 -4
  19. package/shared/scripts/worktree-paths.sh +7 -2
  20. package/skills/backport/SKILL.md +2 -0
  21. package/skills/blueprint/SKILL.md +2 -0
  22. package/skills/bundle-author/SKILL.md +2 -0
  23. package/skills/bundle-release/SKILL.md +11 -7
  24. package/skills/bundle-release/references/release-checklist.md +4 -4
  25. package/skills/bundle-release/references/version-policy.md +21 -15
  26. package/skills/bundle-release/scripts/bump-version.sh +5 -3
  27. package/skills/bundle-release/scripts/draft-notes.sh +1 -1
  28. package/skills/bundle-release/scripts/preflight.sh +2 -1
  29. package/skills/bundle-release/scripts/release_versions.py +21 -7
  30. package/skills/clean/SKILL.md +2 -0
  31. package/skills/code-report/SKILL.md +2 -0
  32. package/skills/code-review/SKILL.md +2 -0
  33. package/skills/compatibility-audit/SKILL.md +9 -6
  34. package/skills/compatibility-audit/references/reading-the-report.md +4 -1
  35. package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +71 -12
  36. package/skills/compatibility-audit/scripts/audit-target-features.sh +58 -20
  37. package/skills/feature-research/SKILL.md +2 -0
  38. package/skills/formatters/SKILL.md +2 -0
  39. package/skills/git-cleanup/SKILL.md +19 -5
  40. package/skills/git-cleanup/references/active-code-rules.md +8 -3
  41. package/skills/git-workflow/SKILL.md +2 -0
  42. package/skills/implement-plan/SKILL.md +2 -0
  43. package/skills/init/SKILL.md +2 -0
  44. package/skills/init/templates/git/gitignore.tmpl +1 -0
  45. package/skills/plan/SKILL.md +2 -0
  46. package/skills/plan-workflow/SKILL.md +4 -1
  47. package/skills/pr-autofix/SKILL.md +2 -0
  48. package/skills/prp-implement/SKILL.md +2 -0
  49. package/skills/prp-plan/SKILL.md +2 -2
  50. package/skills/prp-pr/SKILL.md +2 -0
  51. package/skills/prp-prd/SKILL.md +2 -0
  52. package/skills/prp-spec/SKILL.md +2 -0
  53. package/skills/quick-review/SKILL.md +5 -3
  54. package/skills/release-model/SKILL.md +2 -0
  55. package/skills/releaser/SKILL.md +2 -0
  56. package/skills/research-to-issues/SKILL.md +2 -0
  57. package/skills/resume-session/SKILL.md +2 -0
  58. package/skills/review-fix/SKILL.md +11 -9
  59. package/skills/save-session/SKILL.md +2 -0
  60. package/ycc-sensitive-guard/index.js +621 -0
  61. package/ycc-sensitive-guard/package.json +7 -0
  62. package/ycc-sensitive-guard/policy.json +40 -0
  63. package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +0 -111
@@ -12,10 +12,10 @@ permissions:
12
12
  - action: read
13
13
  resource: '*'
14
14
  effect: allow
15
- - action: grep
15
+ - action: ycc_grep
16
16
  resource: '*'
17
17
  effect: allow
18
- - action: glob
18
+ - action: ycc_glob
19
19
  resource: '*'
20
20
  effect: allow
21
21
  - action: edit
@@ -24,60 +24,414 @@ permissions:
24
24
  - action: shell
25
25
  resource: ls *
26
26
  effect: allow
27
- - action: shell
28
- resource: cat *
29
- effect: allow
30
27
  - action: shell
31
28
  resource: test *
32
29
  effect: allow
33
30
  - action: shell
34
- resource: git *
31
+ resource: pnpm typecheck *
35
32
  effect: allow
36
33
  - action: shell
37
- resource: npm *
34
+ resource: pnpm tsc *
38
35
  effect: allow
39
36
  - action: shell
40
- resource: pnpm *
37
+ resource: yarn typecheck *
41
38
  effect: allow
42
39
  - action: shell
43
- resource: yarn *
40
+ resource: npx tsc --noEmit *
44
41
  effect: allow
45
42
  - action: shell
46
- resource: bun *
43
+ resource: bun test *
47
44
  effect: allow
48
45
  - action: shell
49
- resource: npx *
46
+ resource: bun run typecheck *
50
47
  effect: allow
51
48
  - action: shell
52
- resource: cargo *
49
+ resource: cargo check *
53
50
  effect: allow
54
51
  - action: shell
55
- resource: go *
52
+ resource: go vet ./... *
56
53
  effect: allow
57
54
  - action: shell
58
55
  resource: pytest *
59
56
  effect: allow
60
57
  - action: shell
61
- resource: python *
58
+ resource: python -m mypy *
59
+ effect: allow
60
+ - action: shell
61
+ resource: python3 -m mypy *
62
+ effect: allow
63
+ - action: shell
64
+ resource: npm run build *
65
+ effect: allow
66
+ - action: shell
67
+ resource: pnpm build *
62
68
  effect: allow
63
69
  - action: shell
64
- resource: python3 *
70
+ resource: yarn build *
65
71
  effect: allow
66
72
  - action: shell
67
- resource: make *
73
+ resource: bun run build *
74
+ effect: allow
75
+ - action: shell
76
+ resource: cargo build *
77
+ effect: allow
78
+ - action: shell
79
+ resource: go build ./... *
68
80
  effect: allow
69
81
  - action: external_directory
70
82
  resource: '*'
71
83
  effect: ask
84
+ - action: read
85
+ resource: .env
86
+ effect: deny
87
+ - action: read
88
+ resource: '*/.env'
89
+ effect: deny
90
+ - action: read
91
+ resource: .env.*
92
+ effect: deny
93
+ - action: read
94
+ resource: '*/.env.*'
95
+ effect: deny
96
+ - action: read
97
+ resource: .env-*
98
+ effect: deny
99
+ - action: read
100
+ resource: '*/.env-*'
101
+ effect: deny
102
+ - action: read
103
+ resource: .env_*
104
+ effect: deny
105
+ - action: read
106
+ resource: '*/.env_*'
107
+ effect: deny
108
+ - action: read
109
+ resource: .envrc
110
+ effect: deny
111
+ - action: read
112
+ resource: '*/.envrc'
113
+ effect: deny
72
114
  - action: read
73
115
  resource: '*.env'
74
- effect: ask
116
+ effect: deny
75
117
  - action: read
76
118
  resource: '*.env.*'
77
- effect: ask
119
+ effect: deny
120
+ - action: edit
121
+ resource: .env
122
+ effect: deny
123
+ - action: edit
124
+ resource: '*/.env'
125
+ effect: deny
126
+ - action: edit
127
+ resource: .env.*
128
+ effect: deny
129
+ - action: edit
130
+ resource: '*/.env.*'
131
+ effect: deny
132
+ - action: edit
133
+ resource: .env-*
134
+ effect: deny
135
+ - action: edit
136
+ resource: '*/.env-*'
137
+ effect: deny
138
+ - action: edit
139
+ resource: .env_*
140
+ effect: deny
141
+ - action: edit
142
+ resource: '*/.env_*'
143
+ effect: deny
144
+ - action: edit
145
+ resource: .envrc
146
+ effect: deny
147
+ - action: edit
148
+ resource: '*/.envrc'
149
+ effect: deny
150
+ - action: edit
151
+ resource: '*.env'
152
+ effect: deny
153
+ - action: edit
154
+ resource: '*.env.*'
155
+ effect: deny
78
156
  - action: read
79
157
  resource: '*.env.example'
80
158
  effect: allow
159
+ - action: read
160
+ resource: '*.env.*.example'
161
+ effect: allow
162
+ - action: edit
163
+ resource: '*.env.example'
164
+ effect: allow
165
+ - action: edit
166
+ resource: '*.env.*.example'
167
+ effect: allow
168
+ - action: read
169
+ resource: '*.pem'
170
+ effect: deny
171
+ - action: read
172
+ resource: '*.key'
173
+ effect: deny
174
+ - action: read
175
+ resource: '*.p12'
176
+ effect: deny
177
+ - action: read
178
+ resource: '*.pfx'
179
+ effect: deny
180
+ - action: read
181
+ resource: id_rsa*
182
+ effect: deny
183
+ - action: read
184
+ resource: '*/id_rsa*'
185
+ effect: deny
186
+ - action: read
187
+ resource: id_dsa*
188
+ effect: deny
189
+ - action: read
190
+ resource: '*/id_dsa*'
191
+ effect: deny
192
+ - action: read
193
+ resource: id_ecdsa*
194
+ effect: deny
195
+ - action: read
196
+ resource: '*/id_ecdsa*'
197
+ effect: deny
198
+ - action: read
199
+ resource: id_ed25519*
200
+ effect: deny
201
+ - action: read
202
+ resource: '*/id_ed25519*'
203
+ effect: deny
204
+ - action: read
205
+ resource: credentials.json
206
+ effect: deny
207
+ - action: read
208
+ resource: '*/credentials.json'
209
+ effect: deny
210
+ - action: read
211
+ resource: secrets.json
212
+ effect: deny
213
+ - action: read
214
+ resource: '*/secrets.json'
215
+ effect: deny
216
+ - action: read
217
+ resource: service-account*.json
218
+ effect: deny
219
+ - action: read
220
+ resource: '*/service-account*.json'
221
+ effect: deny
222
+ - action: read
223
+ resource: .netrc
224
+ effect: deny
225
+ - action: read
226
+ resource: '*/.netrc'
227
+ effect: deny
228
+ - action: read
229
+ resource: .git-credentials
230
+ effect: deny
231
+ - action: read
232
+ resource: '*/.git-credentials'
233
+ effect: deny
234
+ - action: read
235
+ resource: .npmrc
236
+ effect: deny
237
+ - action: read
238
+ resource: '*/.npmrc'
239
+ effect: deny
240
+ - action: read
241
+ resource: .pypirc
242
+ effect: deny
243
+ - action: read
244
+ resource: '*/.pypirc'
245
+ effect: deny
246
+ - action: read
247
+ resource: .pgpass
248
+ effect: deny
249
+ - action: read
250
+ resource: '*/.pgpass'
251
+ effect: deny
252
+ - action: read
253
+ resource: .kube/config
254
+ effect: deny
255
+ - action: read
256
+ resource: '*/.kube/config'
257
+ effect: deny
258
+ - action: read
259
+ resource: .docker/config.json
260
+ effect: deny
261
+ - action: read
262
+ resource: '*/.docker/config.json'
263
+ effect: deny
264
+ - action: read
265
+ resource: .ssh
266
+ effect: deny
267
+ - action: read
268
+ resource: .ssh/*
269
+ effect: deny
270
+ - action: read
271
+ resource: '*/.ssh'
272
+ effect: deny
273
+ - action: read
274
+ resource: '*/.ssh/*'
275
+ effect: deny
276
+ - action: read
277
+ resource: .aws
278
+ effect: deny
279
+ - action: read
280
+ resource: .aws/*
281
+ effect: deny
282
+ - action: read
283
+ resource: '*/.aws'
284
+ effect: deny
285
+ - action: read
286
+ resource: '*/.aws/*'
287
+ effect: deny
288
+ - action: read
289
+ resource: .gnupg
290
+ effect: deny
291
+ - action: read
292
+ resource: .gnupg/*
293
+ effect: deny
294
+ - action: read
295
+ resource: '*/.gnupg'
296
+ effect: deny
297
+ - action: read
298
+ resource: '*/.gnupg/*'
299
+ effect: deny
300
+ - action: edit
301
+ resource: '*.pem'
302
+ effect: deny
303
+ - action: edit
304
+ resource: '*.key'
305
+ effect: deny
306
+ - action: edit
307
+ resource: '*.p12'
308
+ effect: deny
309
+ - action: edit
310
+ resource: '*.pfx'
311
+ effect: deny
312
+ - action: edit
313
+ resource: id_rsa*
314
+ effect: deny
315
+ - action: edit
316
+ resource: '*/id_rsa*'
317
+ effect: deny
318
+ - action: edit
319
+ resource: id_dsa*
320
+ effect: deny
321
+ - action: edit
322
+ resource: '*/id_dsa*'
323
+ effect: deny
324
+ - action: edit
325
+ resource: id_ecdsa*
326
+ effect: deny
327
+ - action: edit
328
+ resource: '*/id_ecdsa*'
329
+ effect: deny
330
+ - action: edit
331
+ resource: id_ed25519*
332
+ effect: deny
333
+ - action: edit
334
+ resource: '*/id_ed25519*'
335
+ effect: deny
336
+ - action: edit
337
+ resource: credentials.json
338
+ effect: deny
339
+ - action: edit
340
+ resource: '*/credentials.json'
341
+ effect: deny
342
+ - action: edit
343
+ resource: secrets.json
344
+ effect: deny
345
+ - action: edit
346
+ resource: '*/secrets.json'
347
+ effect: deny
348
+ - action: edit
349
+ resource: service-account*.json
350
+ effect: deny
351
+ - action: edit
352
+ resource: '*/service-account*.json'
353
+ effect: deny
354
+ - action: edit
355
+ resource: .netrc
356
+ effect: deny
357
+ - action: edit
358
+ resource: '*/.netrc'
359
+ effect: deny
360
+ - action: edit
361
+ resource: .git-credentials
362
+ effect: deny
363
+ - action: edit
364
+ resource: '*/.git-credentials'
365
+ effect: deny
366
+ - action: edit
367
+ resource: .npmrc
368
+ effect: deny
369
+ - action: edit
370
+ resource: '*/.npmrc'
371
+ effect: deny
372
+ - action: edit
373
+ resource: .pypirc
374
+ effect: deny
375
+ - action: edit
376
+ resource: '*/.pypirc'
377
+ effect: deny
378
+ - action: edit
379
+ resource: .pgpass
380
+ effect: deny
381
+ - action: edit
382
+ resource: '*/.pgpass'
383
+ effect: deny
384
+ - action: edit
385
+ resource: .kube/config
386
+ effect: deny
387
+ - action: edit
388
+ resource: '*/.kube/config'
389
+ effect: deny
390
+ - action: edit
391
+ resource: .docker/config.json
392
+ effect: deny
393
+ - action: edit
394
+ resource: '*/.docker/config.json'
395
+ effect: deny
396
+ - action: edit
397
+ resource: .ssh
398
+ effect: deny
399
+ - action: edit
400
+ resource: .ssh/*
401
+ effect: deny
402
+ - action: edit
403
+ resource: '*/.ssh'
404
+ effect: deny
405
+ - action: edit
406
+ resource: '*/.ssh/*'
407
+ effect: deny
408
+ - action: edit
409
+ resource: .aws
410
+ effect: deny
411
+ - action: edit
412
+ resource: .aws/*
413
+ effect: deny
414
+ - action: edit
415
+ resource: '*/.aws'
416
+ effect: deny
417
+ - action: edit
418
+ resource: '*/.aws/*'
419
+ effect: deny
420
+ - action: edit
421
+ resource: .gnupg
422
+ effect: deny
423
+ - action: edit
424
+ resource: .gnupg/*
425
+ effect: deny
426
+ - action: edit
427
+ resource: '*/.gnupg'
428
+ effect: deny
429
+ - action: edit
430
+ resource: '*/.gnupg/*'
431
+ effect: deny
432
+ - action: shell
433
+ resource: git diff *--no-index*
434
+ effect: deny
81
435
  color: '#EAB308'
82
436
  ---
83
437
 
@@ -149,7 +503,17 @@ Use `Edit`. Do not use `Write` (whole-file overwrites are too aggressive).
149
503
 
150
504
  ### 4. Validate locally if a command was provided
151
505
 
152
- If `PROJECT TYPE-CHECK COMMAND` or `PROJECT BUILD COMMAND` is included and applies to the category, run it once and confirm the failure is resolved before returning.
506
+ If `PROJECT TYPE-CHECK COMMAND` or `PROJECT BUILD COMMAND` is included and applies to the category, validate it against this allowlist, then run it once and confirm the failure is resolved before returning.
507
+
508
+ | Stack | Type-check | Build |
509
+ | ---------- | --------------------------------------------------------------------- | --------------------------------------------- |
510
+ | TypeScript | `pnpm typecheck` / `pnpm tsc` / `yarn typecheck` / `npx tsc --noEmit` | `npm run build` / `pnpm build` / `yarn build` |
511
+ | Bun | `bun test` / `bun run typecheck` | `bun run build` |
512
+ | Rust | `cargo check` | `cargo build` |
513
+ | Go | `go vet ./...` | `go build ./...` |
514
+ | Python | `pytest` / `python -m mypy <file>` / `python3 -m mypy <file>` | — |
515
+
516
+ Do not run a provided command outside this table (on OpenCode, native rules deny any other shell command). Return `RESULT: cannot-fix` with `REASON: command not allowlisted — <value>`.
153
517
 
154
518
  ### 5. Return one of two response shapes
155
519