@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.
- package/AGENTS.md +3 -2
- package/README.md +10 -1
- package/agents/backport-conflict-resolver.md +346 -4
- package/agents/db-modifier.md +346 -4
- package/agents/git-cleanup.md +3 -2
- package/agents/pr-comment-fixer.md +365 -23
- package/agents/release-fix-applier.md +383 -19
- package/agents/review-fixer.md +371 -26
- package/index.js +268 -5
- package/package.json +3 -2
- package/registration.json +4113 -1238
- package/shared/references/ci-monitoring.md +11 -1
- package/shared/references/goal-pairing.md +4 -2
- package/shared/references/question-policy.md +99 -0
- package/shared/references/review-dispatch.md +4 -2
- package/shared/references/standalone-dispatch.md +4 -2
- package/shared/references/target-capability-matrix.md +227 -36
- package/shared/references/worktree-strategy.md +20 -4
- package/shared/scripts/worktree-paths.sh +7 -2
- package/skills/backport/SKILL.md +2 -0
- package/skills/blueprint/SKILL.md +2 -0
- package/skills/bundle-author/SKILL.md +2 -0
- package/skills/bundle-release/SKILL.md +11 -7
- package/skills/bundle-release/references/release-checklist.md +4 -4
- package/skills/bundle-release/references/version-policy.md +21 -15
- package/skills/bundle-release/scripts/bump-version.sh +5 -3
- package/skills/bundle-release/scripts/draft-notes.sh +1 -1
- package/skills/bundle-release/scripts/preflight.sh +2 -1
- package/skills/bundle-release/scripts/release_versions.py +21 -7
- package/skills/clean/SKILL.md +2 -0
- package/skills/code-report/SKILL.md +2 -0
- package/skills/code-review/SKILL.md +2 -0
- package/skills/compatibility-audit/SKILL.md +9 -6
- package/skills/compatibility-audit/references/reading-the-report.md +4 -1
- package/skills/compatibility-audit/scripts/audit-install-assumptions.sh +71 -12
- package/skills/compatibility-audit/scripts/audit-target-features.sh +58 -20
- package/skills/feature-research/SKILL.md +2 -0
- package/skills/formatters/SKILL.md +2 -0
- package/skills/git-cleanup/SKILL.md +19 -5
- package/skills/git-cleanup/references/active-code-rules.md +8 -3
- package/skills/git-workflow/SKILL.md +2 -0
- package/skills/implement-plan/SKILL.md +2 -0
- package/skills/init/SKILL.md +2 -0
- package/skills/init/templates/git/gitignore.tmpl +1 -0
- package/skills/plan/SKILL.md +2 -0
- package/skills/plan-workflow/SKILL.md +4 -1
- package/skills/pr-autofix/SKILL.md +2 -0
- package/skills/prp-implement/SKILL.md +2 -0
- package/skills/prp-plan/SKILL.md +2 -2
- package/skills/prp-pr/SKILL.md +2 -0
- package/skills/prp-prd/SKILL.md +2 -0
- package/skills/prp-spec/SKILL.md +2 -0
- package/skills/quick-review/SKILL.md +5 -3
- package/skills/release-model/SKILL.md +2 -0
- package/skills/releaser/SKILL.md +2 -0
- package/skills/research-to-issues/SKILL.md +2 -0
- package/skills/resume-session/SKILL.md +2 -0
- package/skills/review-fix/SKILL.md +11 -9
- package/skills/save-session/SKILL.md +2 -0
- package/ycc-sensitive-guard/index.js +621 -0
- package/ycc-sensitive-guard/package.json +7 -0
- package/ycc-sensitive-guard/policy.json +40 -0
- package/skills/prp-plan/scripts/preflight-enhanced-agents.sh +0 -111
package/AGENTS.md
CHANGED
|
@@ -31,8 +31,9 @@ come first; the current project's rules override these defaults.
|
|
|
31
31
|
one-line change, when the task needs its current state, or when creation is blocked.
|
|
32
32
|
- Create skill-managed worktrees inside the repository: Claude uses
|
|
33
33
|
`.claude/worktrees/`, opencode `.opencode/worktrees/`, Codex `.codex/worktrees/`,
|
|
34
|
-
|
|
35
|
-
conservatively and fall back to `.agents/worktrees/`. Name each
|
|
34
|
+
Cursor `.cursor/worktrees/`, and OMP `.omp/worktrees/`. Portable cross-agent installs
|
|
35
|
+
detect the runtime conservatively and fall back to `.agents/worktrees/`. Name each
|
|
36
|
+
`<repo>-<branch>/`.
|
|
36
37
|
`YCC_WORKTREE_ROOT` is the explicit override. Native harness features may use
|
|
37
38
|
different roots; do not redirect them to a path the harness cannot enter.
|
|
38
39
|
- Add every runtime worktree root to `.gitignore` before committing.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @yandy-r/ycc-opencode
|
|
2
2
|
|
|
3
3
|
Experimental, opt-in [OpenCode](https://opencode.ai) V2 plugin carrying the ycc bundle
|
|
4
|
-
(version 6.
|
|
4
|
+
(version 6.1.0). It is unlisted and never the default install: the
|
|
5
5
|
`install.sh --target opencode` file copy remains the primary path.
|
|
6
6
|
|
|
7
7
|
Requires OpenCode `>=2.0.30` (V2 plugin API; V1 hook plugins are not supported).
|
|
@@ -30,6 +30,15 @@ not the `index.js` file.
|
|
|
30
30
|
- **MCP servers**: plain data from `mcp-configs/mcp.json`; `{env:VAR}` placeholders resolve from the
|
|
31
31
|
environment at setup time.
|
|
32
32
|
- **Instructions**: `AGENTS.md` pushed through the session `context` hook.
|
|
33
|
+
- **Sensitive-file guard** (`ycc-sensitive-guard/`, the same plugin the file-copy install loads): for the
|
|
34
|
+
restricted specialists in its `policy.json` it checks tool calls against the sensitive-file policy,
|
|
35
|
+
filters search results, and provides their only search tools (`ycc_grep`/`ycc_glob`, shown to them as
|
|
36
|
+
`grep`/`glob`) after checking the caller's own permissions.
|
|
37
|
+
- **Restricted-agent floor**: OpenCode appends your own top-level `permissions` after a package agent's
|
|
38
|
+
rules, so for the restricted specialists the package re-applies their packaged rules: a permission request
|
|
39
|
+
those rules deny is denied, and a tool whose permission they deny outright is neither offered nor run. It
|
|
40
|
+
never loosens or re-prompts a decision. Shell interpreters and build tools in their allowlists still run
|
|
41
|
+
project code, which the guard does not bound.
|
|
33
42
|
|
|
34
43
|
## Coexistence with the file-copy install
|
|
35
44
|
|
|
@@ -11,10 +11,10 @@ permissions:
|
|
|
11
11
|
- action: read
|
|
12
12
|
resource: '*'
|
|
13
13
|
effect: allow
|
|
14
|
-
- action:
|
|
14
|
+
- action: ycc_grep
|
|
15
15
|
resource: '*'
|
|
16
16
|
effect: allow
|
|
17
|
-
- action:
|
|
17
|
+
- action: ycc_glob
|
|
18
18
|
resource: '*'
|
|
19
19
|
effect: allow
|
|
20
20
|
- action: edit
|
|
@@ -47,15 +47,357 @@ permissions:
|
|
|
47
47
|
- action: external_directory
|
|
48
48
|
resource: '*'
|
|
49
49
|
effect: ask
|
|
50
|
+
- action: read
|
|
51
|
+
resource: .env
|
|
52
|
+
effect: deny
|
|
53
|
+
- action: read
|
|
54
|
+
resource: '*/.env'
|
|
55
|
+
effect: deny
|
|
56
|
+
- action: read
|
|
57
|
+
resource: .env.*
|
|
58
|
+
effect: deny
|
|
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: .envrc
|
|
76
|
+
effect: deny
|
|
77
|
+
- action: read
|
|
78
|
+
resource: '*/.envrc'
|
|
79
|
+
effect: deny
|
|
50
80
|
- action: read
|
|
51
81
|
resource: '*.env'
|
|
52
|
-
effect:
|
|
82
|
+
effect: deny
|
|
53
83
|
- action: read
|
|
54
84
|
resource: '*.env.*'
|
|
55
|
-
effect:
|
|
85
|
+
effect: deny
|
|
86
|
+
- action: edit
|
|
87
|
+
resource: .env
|
|
88
|
+
effect: deny
|
|
89
|
+
- action: edit
|
|
90
|
+
resource: '*/.env'
|
|
91
|
+
effect: deny
|
|
92
|
+
- action: edit
|
|
93
|
+
resource: .env.*
|
|
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: .envrc
|
|
112
|
+
effect: deny
|
|
113
|
+
- action: edit
|
|
114
|
+
resource: '*/.envrc'
|
|
115
|
+
effect: deny
|
|
116
|
+
- action: edit
|
|
117
|
+
resource: '*.env'
|
|
118
|
+
effect: deny
|
|
119
|
+
- action: edit
|
|
120
|
+
resource: '*.env.*'
|
|
121
|
+
effect: deny
|
|
122
|
+
- action: read
|
|
123
|
+
resource: '*.env.example'
|
|
124
|
+
effect: allow
|
|
56
125
|
- action: read
|
|
126
|
+
resource: '*.env.*.example'
|
|
127
|
+
effect: allow
|
|
128
|
+
- action: edit
|
|
57
129
|
resource: '*.env.example'
|
|
58
130
|
effect: allow
|
|
131
|
+
- action: edit
|
|
132
|
+
resource: '*.env.*.example'
|
|
133
|
+
effect: allow
|
|
134
|
+
- action: read
|
|
135
|
+
resource: '*.pem'
|
|
136
|
+
effect: deny
|
|
137
|
+
- action: read
|
|
138
|
+
resource: '*.key'
|
|
139
|
+
effect: deny
|
|
140
|
+
- action: read
|
|
141
|
+
resource: '*.p12'
|
|
142
|
+
effect: deny
|
|
143
|
+
- action: read
|
|
144
|
+
resource: '*.pfx'
|
|
145
|
+
effect: deny
|
|
146
|
+
- action: read
|
|
147
|
+
resource: id_rsa*
|
|
148
|
+
effect: deny
|
|
149
|
+
- action: read
|
|
150
|
+
resource: '*/id_rsa*'
|
|
151
|
+
effect: deny
|
|
152
|
+
- action: read
|
|
153
|
+
resource: id_dsa*
|
|
154
|
+
effect: deny
|
|
155
|
+
- action: read
|
|
156
|
+
resource: '*/id_dsa*'
|
|
157
|
+
effect: deny
|
|
158
|
+
- action: read
|
|
159
|
+
resource: id_ecdsa*
|
|
160
|
+
effect: deny
|
|
161
|
+
- action: read
|
|
162
|
+
resource: '*/id_ecdsa*'
|
|
163
|
+
effect: deny
|
|
164
|
+
- action: read
|
|
165
|
+
resource: id_ed25519*
|
|
166
|
+
effect: deny
|
|
167
|
+
- action: read
|
|
168
|
+
resource: '*/id_ed25519*'
|
|
169
|
+
effect: deny
|
|
170
|
+
- action: read
|
|
171
|
+
resource: credentials.json
|
|
172
|
+
effect: deny
|
|
173
|
+
- action: read
|
|
174
|
+
resource: '*/credentials.json'
|
|
175
|
+
effect: deny
|
|
176
|
+
- action: read
|
|
177
|
+
resource: secrets.json
|
|
178
|
+
effect: deny
|
|
179
|
+
- action: read
|
|
180
|
+
resource: '*/secrets.json'
|
|
181
|
+
effect: deny
|
|
182
|
+
- action: read
|
|
183
|
+
resource: service-account*.json
|
|
184
|
+
effect: deny
|
|
185
|
+
- action: read
|
|
186
|
+
resource: '*/service-account*.json'
|
|
187
|
+
effect: deny
|
|
188
|
+
- action: read
|
|
189
|
+
resource: .netrc
|
|
190
|
+
effect: deny
|
|
191
|
+
- action: read
|
|
192
|
+
resource: '*/.netrc'
|
|
193
|
+
effect: deny
|
|
194
|
+
- action: read
|
|
195
|
+
resource: .git-credentials
|
|
196
|
+
effect: deny
|
|
197
|
+
- action: read
|
|
198
|
+
resource: '*/.git-credentials'
|
|
199
|
+
effect: deny
|
|
200
|
+
- action: read
|
|
201
|
+
resource: .npmrc
|
|
202
|
+
effect: deny
|
|
203
|
+
- action: read
|
|
204
|
+
resource: '*/.npmrc'
|
|
205
|
+
effect: deny
|
|
206
|
+
- action: read
|
|
207
|
+
resource: .pypirc
|
|
208
|
+
effect: deny
|
|
209
|
+
- action: read
|
|
210
|
+
resource: '*/.pypirc'
|
|
211
|
+
effect: deny
|
|
212
|
+
- action: read
|
|
213
|
+
resource: .pgpass
|
|
214
|
+
effect: deny
|
|
215
|
+
- action: read
|
|
216
|
+
resource: '*/.pgpass'
|
|
217
|
+
effect: deny
|
|
218
|
+
- action: read
|
|
219
|
+
resource: .kube/config
|
|
220
|
+
effect: deny
|
|
221
|
+
- action: read
|
|
222
|
+
resource: '*/.kube/config'
|
|
223
|
+
effect: deny
|
|
224
|
+
- action: read
|
|
225
|
+
resource: .docker/config.json
|
|
226
|
+
effect: deny
|
|
227
|
+
- action: read
|
|
228
|
+
resource: '*/.docker/config.json'
|
|
229
|
+
effect: deny
|
|
230
|
+
- action: read
|
|
231
|
+
resource: .ssh
|
|
232
|
+
effect: deny
|
|
233
|
+
- action: read
|
|
234
|
+
resource: .ssh/*
|
|
235
|
+
effect: deny
|
|
236
|
+
- action: read
|
|
237
|
+
resource: '*/.ssh'
|
|
238
|
+
effect: deny
|
|
239
|
+
- action: read
|
|
240
|
+
resource: '*/.ssh/*'
|
|
241
|
+
effect: deny
|
|
242
|
+
- action: read
|
|
243
|
+
resource: .aws
|
|
244
|
+
effect: deny
|
|
245
|
+
- action: read
|
|
246
|
+
resource: .aws/*
|
|
247
|
+
effect: deny
|
|
248
|
+
- action: read
|
|
249
|
+
resource: '*/.aws'
|
|
250
|
+
effect: deny
|
|
251
|
+
- action: read
|
|
252
|
+
resource: '*/.aws/*'
|
|
253
|
+
effect: deny
|
|
254
|
+
- action: read
|
|
255
|
+
resource: .gnupg
|
|
256
|
+
effect: deny
|
|
257
|
+
- action: read
|
|
258
|
+
resource: .gnupg/*
|
|
259
|
+
effect: deny
|
|
260
|
+
- action: read
|
|
261
|
+
resource: '*/.gnupg'
|
|
262
|
+
effect: deny
|
|
263
|
+
- action: read
|
|
264
|
+
resource: '*/.gnupg/*'
|
|
265
|
+
effect: deny
|
|
266
|
+
- action: edit
|
|
267
|
+
resource: '*.pem'
|
|
268
|
+
effect: deny
|
|
269
|
+
- action: edit
|
|
270
|
+
resource: '*.key'
|
|
271
|
+
effect: deny
|
|
272
|
+
- action: edit
|
|
273
|
+
resource: '*.p12'
|
|
274
|
+
effect: deny
|
|
275
|
+
- action: edit
|
|
276
|
+
resource: '*.pfx'
|
|
277
|
+
effect: deny
|
|
278
|
+
- action: edit
|
|
279
|
+
resource: id_rsa*
|
|
280
|
+
effect: deny
|
|
281
|
+
- action: edit
|
|
282
|
+
resource: '*/id_rsa*'
|
|
283
|
+
effect: deny
|
|
284
|
+
- action: edit
|
|
285
|
+
resource: id_dsa*
|
|
286
|
+
effect: deny
|
|
287
|
+
- action: edit
|
|
288
|
+
resource: '*/id_dsa*'
|
|
289
|
+
effect: deny
|
|
290
|
+
- action: edit
|
|
291
|
+
resource: id_ecdsa*
|
|
292
|
+
effect: deny
|
|
293
|
+
- action: edit
|
|
294
|
+
resource: '*/id_ecdsa*'
|
|
295
|
+
effect: deny
|
|
296
|
+
- action: edit
|
|
297
|
+
resource: id_ed25519*
|
|
298
|
+
effect: deny
|
|
299
|
+
- action: edit
|
|
300
|
+
resource: '*/id_ed25519*'
|
|
301
|
+
effect: deny
|
|
302
|
+
- action: edit
|
|
303
|
+
resource: credentials.json
|
|
304
|
+
effect: deny
|
|
305
|
+
- action: edit
|
|
306
|
+
resource: '*/credentials.json'
|
|
307
|
+
effect: deny
|
|
308
|
+
- action: edit
|
|
309
|
+
resource: secrets.json
|
|
310
|
+
effect: deny
|
|
311
|
+
- action: edit
|
|
312
|
+
resource: '*/secrets.json'
|
|
313
|
+
effect: deny
|
|
314
|
+
- action: edit
|
|
315
|
+
resource: service-account*.json
|
|
316
|
+
effect: deny
|
|
317
|
+
- action: edit
|
|
318
|
+
resource: '*/service-account*.json'
|
|
319
|
+
effect: deny
|
|
320
|
+
- action: edit
|
|
321
|
+
resource: .netrc
|
|
322
|
+
effect: deny
|
|
323
|
+
- action: edit
|
|
324
|
+
resource: '*/.netrc'
|
|
325
|
+
effect: deny
|
|
326
|
+
- action: edit
|
|
327
|
+
resource: .git-credentials
|
|
328
|
+
effect: deny
|
|
329
|
+
- action: edit
|
|
330
|
+
resource: '*/.git-credentials'
|
|
331
|
+
effect: deny
|
|
332
|
+
- action: edit
|
|
333
|
+
resource: .npmrc
|
|
334
|
+
effect: deny
|
|
335
|
+
- action: edit
|
|
336
|
+
resource: '*/.npmrc'
|
|
337
|
+
effect: deny
|
|
338
|
+
- action: edit
|
|
339
|
+
resource: .pypirc
|
|
340
|
+
effect: deny
|
|
341
|
+
- action: edit
|
|
342
|
+
resource: '*/.pypirc'
|
|
343
|
+
effect: deny
|
|
344
|
+
- action: edit
|
|
345
|
+
resource: .pgpass
|
|
346
|
+
effect: deny
|
|
347
|
+
- action: edit
|
|
348
|
+
resource: '*/.pgpass'
|
|
349
|
+
effect: deny
|
|
350
|
+
- action: edit
|
|
351
|
+
resource: .kube/config
|
|
352
|
+
effect: deny
|
|
353
|
+
- action: edit
|
|
354
|
+
resource: '*/.kube/config'
|
|
355
|
+
effect: deny
|
|
356
|
+
- action: edit
|
|
357
|
+
resource: .docker/config.json
|
|
358
|
+
effect: deny
|
|
359
|
+
- action: edit
|
|
360
|
+
resource: '*/.docker/config.json'
|
|
361
|
+
effect: deny
|
|
362
|
+
- action: edit
|
|
363
|
+
resource: .ssh
|
|
364
|
+
effect: deny
|
|
365
|
+
- action: edit
|
|
366
|
+
resource: .ssh/*
|
|
367
|
+
effect: deny
|
|
368
|
+
- action: edit
|
|
369
|
+
resource: '*/.ssh'
|
|
370
|
+
effect: deny
|
|
371
|
+
- action: edit
|
|
372
|
+
resource: '*/.ssh/*'
|
|
373
|
+
effect: deny
|
|
374
|
+
- action: edit
|
|
375
|
+
resource: .aws
|
|
376
|
+
effect: deny
|
|
377
|
+
- action: edit
|
|
378
|
+
resource: .aws/*
|
|
379
|
+
effect: deny
|
|
380
|
+
- action: edit
|
|
381
|
+
resource: '*/.aws'
|
|
382
|
+
effect: deny
|
|
383
|
+
- action: edit
|
|
384
|
+
resource: '*/.aws/*'
|
|
385
|
+
effect: deny
|
|
386
|
+
- action: edit
|
|
387
|
+
resource: .gnupg
|
|
388
|
+
effect: deny
|
|
389
|
+
- action: edit
|
|
390
|
+
resource: .gnupg/*
|
|
391
|
+
effect: deny
|
|
392
|
+
- action: edit
|
|
393
|
+
resource: '*/.gnupg'
|
|
394
|
+
effect: deny
|
|
395
|
+
- action: edit
|
|
396
|
+
resource: '*/.gnupg/*'
|
|
397
|
+
effect: deny
|
|
398
|
+
- action: shell
|
|
399
|
+
resource: git diff *--no-index*
|
|
400
|
+
effect: deny
|
|
59
401
|
color: '#F97316'
|
|
60
402
|
---
|
|
61
403
|
|