Commit b2023fc
committed
feat: bridge Codex v0.5–v0.6 (.env hardening, trust/activation messaging)
Adopt the portable behavioral improvements from Codex-Game-Studios v0.5–v0.6 (upstream commit 259cff8) into the OpenCode-native port.
- opencode.json: add edit and glob *.env* denies (edit covers write/patch, closing a gap where agents could create/overwrite secrets via the write tool); consolidate read to a single *.env* catch-all so nested files and .envrc are covered. *.env.example stays allowed for non-secret templates.
- install.sh: banner now states installer success is static-only and a new opencode session is required before hooks/permissions/agents are active.
- audit.sh run_config: assert an edit *.env* deny exists (regression guard).
- README.md / UPGRADING.md: document the static-install-only caveat.
Verified: json.tool valid; audit.sh all 0 errors; runtime probes post-restart deny read/write on .env, sub/.env, .envrc and allow .env.example. Codex-only changes (MultiAgent-V2 role-activation proof, .codex installer internals, CCGS framework frontmatter, skill delegation dialect) intentionally not adopted — OpenCode Task/subagent model and .opencode structure make them inapplicable or already-equivalent.1 parent 1ce600c commit b2023fc
5 files changed
Lines changed: 37 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
503 | 507 | | |
504 | 508 | | |
505 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
376 | 379 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
42 | 51 | | |
43 | 52 | | |
44 | 53 | | |
| |||
0 commit comments