@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
@@ -11,60 +11,402 @@ permissions:
11
11
  - action: read
12
12
  resource: '*'
13
13
  effect: allow
14
- - action: grep
14
+ - action: ycc_grep
15
15
  resource: '*'
16
16
  effect: allow
17
- - action: glob
17
+ - action: ycc_glob
18
18
  resource: '*'
19
19
  effect: allow
20
20
  - action: edit
21
21
  resource: '*'
22
22
  effect: allow
23
23
  - action: shell
24
- resource: npm *
24
+ resource: pnpm typecheck *
25
25
  effect: allow
26
26
  - action: shell
27
- resource: pnpm *
27
+ resource: pnpm tsc *
28
28
  effect: allow
29
29
  - action: shell
30
- resource: yarn *
30
+ resource: yarn typecheck *
31
31
  effect: allow
32
32
  - action: shell
33
- resource: bun *
33
+ resource: npx tsc --noEmit *
34
34
  effect: allow
35
35
  - action: shell
36
- resource: npx *
36
+ resource: bun test *
37
37
  effect: allow
38
38
  - action: shell
39
- resource: cargo *
39
+ resource: bun run typecheck *
40
40
  effect: allow
41
41
  - action: shell
42
- resource: go *
42
+ resource: cargo check *
43
43
  effect: allow
44
44
  - action: shell
45
- resource: pytest *
45
+ resource: go vet ./... *
46
46
  effect: allow
47
47
  - action: shell
48
- resource: python *
48
+ resource: pytest *
49
49
  effect: allow
50
50
  - action: shell
51
- resource: python3 *
51
+ resource: python -m mypy *
52
52
  effect: allow
53
53
  - action: shell
54
- resource: make *
54
+ resource: python3 -m mypy *
55
55
  effect: allow
56
56
  - action: external_directory
57
57
  resource: '*'
58
58
  effect: ask
59
+ - action: read
60
+ resource: .env
61
+ effect: deny
62
+ - action: read
63
+ resource: '*/.env'
64
+ effect: deny
65
+ - action: read
66
+ resource: .env.*
67
+ effect: deny
68
+ - action: read
69
+ resource: '*/.env.*'
70
+ effect: deny
71
+ - action: read
72
+ resource: .env-*
73
+ effect: deny
74
+ - action: read
75
+ resource: '*/.env-*'
76
+ effect: deny
77
+ - action: read
78
+ resource: .env_*
79
+ effect: deny
80
+ - action: read
81
+ resource: '*/.env_*'
82
+ effect: deny
83
+ - action: read
84
+ resource: .envrc
85
+ effect: deny
86
+ - action: read
87
+ resource: '*/.envrc'
88
+ effect: deny
59
89
  - action: read
60
90
  resource: '*.env'
61
- effect: ask
91
+ effect: deny
62
92
  - action: read
63
93
  resource: '*.env.*'
64
- effect: ask
94
+ effect: deny
95
+ - action: edit
96
+ resource: .env
97
+ effect: deny
98
+ - action: edit
99
+ resource: '*/.env'
100
+ effect: deny
101
+ - action: edit
102
+ resource: .env.*
103
+ effect: deny
104
+ - action: edit
105
+ resource: '*/.env.*'
106
+ effect: deny
107
+ - action: edit
108
+ resource: .env-*
109
+ effect: deny
110
+ - action: edit
111
+ resource: '*/.env-*'
112
+ effect: deny
113
+ - action: edit
114
+ resource: .env_*
115
+ effect: deny
116
+ - action: edit
117
+ resource: '*/.env_*'
118
+ effect: deny
119
+ - action: edit
120
+ resource: .envrc
121
+ effect: deny
122
+ - action: edit
123
+ resource: '*/.envrc'
124
+ effect: deny
125
+ - action: edit
126
+ resource: '*.env'
127
+ effect: deny
128
+ - action: edit
129
+ resource: '*.env.*'
130
+ effect: deny
65
131
  - action: read
66
132
  resource: '*.env.example'
67
133
  effect: allow
134
+ - action: read
135
+ resource: '*.env.*.example'
136
+ effect: allow
137
+ - action: edit
138
+ resource: '*.env.example'
139
+ effect: allow
140
+ - action: edit
141
+ resource: '*.env.*.example'
142
+ effect: allow
143
+ - action: read
144
+ resource: '*.pem'
145
+ effect: deny
146
+ - action: read
147
+ resource: '*.key'
148
+ effect: deny
149
+ - action: read
150
+ resource: '*.p12'
151
+ effect: deny
152
+ - action: read
153
+ resource: '*.pfx'
154
+ effect: deny
155
+ - action: read
156
+ resource: id_rsa*
157
+ effect: deny
158
+ - action: read
159
+ resource: '*/id_rsa*'
160
+ effect: deny
161
+ - action: read
162
+ resource: id_dsa*
163
+ effect: deny
164
+ - action: read
165
+ resource: '*/id_dsa*'
166
+ effect: deny
167
+ - action: read
168
+ resource: id_ecdsa*
169
+ effect: deny
170
+ - action: read
171
+ resource: '*/id_ecdsa*'
172
+ effect: deny
173
+ - action: read
174
+ resource: id_ed25519*
175
+ effect: deny
176
+ - action: read
177
+ resource: '*/id_ed25519*'
178
+ effect: deny
179
+ - action: read
180
+ resource: credentials.json
181
+ effect: deny
182
+ - action: read
183
+ resource: '*/credentials.json'
184
+ effect: deny
185
+ - action: read
186
+ resource: secrets.json
187
+ effect: deny
188
+ - action: read
189
+ resource: '*/secrets.json'
190
+ effect: deny
191
+ - action: read
192
+ resource: service-account*.json
193
+ effect: deny
194
+ - action: read
195
+ resource: '*/service-account*.json'
196
+ effect: deny
197
+ - action: read
198
+ resource: .netrc
199
+ effect: deny
200
+ - action: read
201
+ resource: '*/.netrc'
202
+ effect: deny
203
+ - action: read
204
+ resource: .git-credentials
205
+ effect: deny
206
+ - action: read
207
+ resource: '*/.git-credentials'
208
+ effect: deny
209
+ - action: read
210
+ resource: .npmrc
211
+ effect: deny
212
+ - action: read
213
+ resource: '*/.npmrc'
214
+ effect: deny
215
+ - action: read
216
+ resource: .pypirc
217
+ effect: deny
218
+ - action: read
219
+ resource: '*/.pypirc'
220
+ effect: deny
221
+ - action: read
222
+ resource: .pgpass
223
+ effect: deny
224
+ - action: read
225
+ resource: '*/.pgpass'
226
+ effect: deny
227
+ - action: read
228
+ resource: .kube/config
229
+ effect: deny
230
+ - action: read
231
+ resource: '*/.kube/config'
232
+ effect: deny
233
+ - action: read
234
+ resource: .docker/config.json
235
+ effect: deny
236
+ - action: read
237
+ resource: '*/.docker/config.json'
238
+ effect: deny
239
+ - action: read
240
+ resource: .ssh
241
+ effect: deny
242
+ - action: read
243
+ resource: .ssh/*
244
+ effect: deny
245
+ - action: read
246
+ resource: '*/.ssh'
247
+ effect: deny
248
+ - action: read
249
+ resource: '*/.ssh/*'
250
+ effect: deny
251
+ - action: read
252
+ resource: .aws
253
+ effect: deny
254
+ - action: read
255
+ resource: .aws/*
256
+ effect: deny
257
+ - action: read
258
+ resource: '*/.aws'
259
+ effect: deny
260
+ - action: read
261
+ resource: '*/.aws/*'
262
+ effect: deny
263
+ - action: read
264
+ resource: .gnupg
265
+ effect: deny
266
+ - action: read
267
+ resource: .gnupg/*
268
+ effect: deny
269
+ - action: read
270
+ resource: '*/.gnupg'
271
+ effect: deny
272
+ - action: read
273
+ resource: '*/.gnupg/*'
274
+ effect: deny
275
+ - action: edit
276
+ resource: '*.pem'
277
+ effect: deny
278
+ - action: edit
279
+ resource: '*.key'
280
+ effect: deny
281
+ - action: edit
282
+ resource: '*.p12'
283
+ effect: deny
284
+ - action: edit
285
+ resource: '*.pfx'
286
+ effect: deny
287
+ - action: edit
288
+ resource: id_rsa*
289
+ effect: deny
290
+ - action: edit
291
+ resource: '*/id_rsa*'
292
+ effect: deny
293
+ - action: edit
294
+ resource: id_dsa*
295
+ effect: deny
296
+ - action: edit
297
+ resource: '*/id_dsa*'
298
+ effect: deny
299
+ - action: edit
300
+ resource: id_ecdsa*
301
+ effect: deny
302
+ - action: edit
303
+ resource: '*/id_ecdsa*'
304
+ effect: deny
305
+ - action: edit
306
+ resource: id_ed25519*
307
+ effect: deny
308
+ - action: edit
309
+ resource: '*/id_ed25519*'
310
+ effect: deny
311
+ - action: edit
312
+ resource: credentials.json
313
+ effect: deny
314
+ - action: edit
315
+ resource: '*/credentials.json'
316
+ effect: deny
317
+ - action: edit
318
+ resource: secrets.json
319
+ effect: deny
320
+ - action: edit
321
+ resource: '*/secrets.json'
322
+ effect: deny
323
+ - action: edit
324
+ resource: service-account*.json
325
+ effect: deny
326
+ - action: edit
327
+ resource: '*/service-account*.json'
328
+ effect: deny
329
+ - action: edit
330
+ resource: .netrc
331
+ effect: deny
332
+ - action: edit
333
+ resource: '*/.netrc'
334
+ effect: deny
335
+ - action: edit
336
+ resource: .git-credentials
337
+ effect: deny
338
+ - action: edit
339
+ resource: '*/.git-credentials'
340
+ effect: deny
341
+ - action: edit
342
+ resource: .npmrc
343
+ effect: deny
344
+ - action: edit
345
+ resource: '*/.npmrc'
346
+ effect: deny
347
+ - action: edit
348
+ resource: .pypirc
349
+ effect: deny
350
+ - action: edit
351
+ resource: '*/.pypirc'
352
+ effect: deny
353
+ - action: edit
354
+ resource: .pgpass
355
+ effect: deny
356
+ - action: edit
357
+ resource: '*/.pgpass'
358
+ effect: deny
359
+ - action: edit
360
+ resource: .kube/config
361
+ effect: deny
362
+ - action: edit
363
+ resource: '*/.kube/config'
364
+ effect: deny
365
+ - action: edit
366
+ resource: .docker/config.json
367
+ effect: deny
368
+ - action: edit
369
+ resource: '*/.docker/config.json'
370
+ effect: deny
371
+ - action: edit
372
+ resource: .ssh
373
+ effect: deny
374
+ - action: edit
375
+ resource: .ssh/*
376
+ effect: deny
377
+ - action: edit
378
+ resource: '*/.ssh'
379
+ effect: deny
380
+ - action: edit
381
+ resource: '*/.ssh/*'
382
+ effect: deny
383
+ - action: edit
384
+ resource: .aws
385
+ effect: deny
386
+ - action: edit
387
+ resource: .aws/*
388
+ effect: deny
389
+ - action: edit
390
+ resource: '*/.aws'
391
+ effect: deny
392
+ - action: edit
393
+ resource: '*/.aws/*'
394
+ effect: deny
395
+ - action: edit
396
+ resource: .gnupg
397
+ effect: deny
398
+ - action: edit
399
+ resource: .gnupg/*
400
+ effect: deny
401
+ - action: edit
402
+ resource: '*/.gnupg'
403
+ effect: deny
404
+ - action: edit
405
+ resource: '*/.gnupg/*'
406
+ effect: deny
407
+ - action: shell
408
+ resource: git diff *--no-index*
409
+ effect: deny
68
410
  color: '#EAB308'
69
411
  ---
70
412
 
@@ -171,17 +513,17 @@ Shape C has no comment anchor; treat `SCOPE` as the target file (verified by the
171
513
 
172
514
  Validate `PROJECT TYPE-CHECK COMMAND` against this allowlist before execution:
173
515
 
174
- | Stack | Allowed |
175
- | ---------- | -------------------------------------------------------- |
176
- | TypeScript | `pnpm typecheck` / `yarn typecheck` / `npx tsc --noEmit` |
177
- | Bun | `bun test` / `bun run typecheck` |
178
- | Rust | `cargo check` |
179
- | Go | `go vet ./...` |
180
- | Python | `pytest` / `python -m mypy <file>` (project-specific) |
516
+ | Stack | Allowed |
517
+ | ---------- | --------------------------------------------------------------------- |
518
+ | TypeScript | `pnpm typecheck` / `pnpm tsc` / `yarn typecheck` / `npx tsc --noEmit` |
519
+ | Bun | `bun test` / `bun run typecheck` |
520
+ | Rust | `cargo check` |
521
+ | Go | `go vet ./...` |
522
+ | Python | `pytest` / `python -m mypy <file>` / `python3 -m mypy <file>` |
181
523
 
182
524
  If the value starts with `SKIP (` and ends with `)`, skip validation and report `TYPE-CHECK: Skipped (<reason>)`.
183
525
 
184
- If the value is not allowlisted and is not a `SKIP (...)` token, do NOT run it. Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
526
+ If the value is not allowlisted and is not a `SKIP (...)` token, do NOT run it (on OpenCode, native rules deny any other shell command). Report `STATUS: Failed` with `BLOCKER: type-check command not allowlisted — <value>`.
185
527
 
186
528
  Execute the allowlisted command via Bash. If type-check passes for your modified file: report success.
187
529