@yandy-r/ycc-opencode 6.0.0 → 6.1.1

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