pantheon-opencode 1.6.0-beta.6 → 1.6.0-beta.8

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 (54) hide show
  1. package/AGENTS.md +19 -769
  2. package/CHANGELOG.md +53 -0
  3. package/README.md +78 -9
  4. package/README.pt-BR.md +10 -4
  5. package/package.json +5 -1
  6. package/plugin.json +2 -2
  7. package/pyproject.toml +3 -1
  8. package/scripts/build-agents-md.mjs +159 -26
  9. package/scripts/install/agents-md.mjs +2 -2
  10. package/scripts/install/config-migration.mjs +115 -1
  11. package/scripts/install/interactive.mjs +1 -1
  12. package/scripts/install/opencode.mjs +245 -12
  13. package/scripts/install/shared.mjs +115 -7
  14. package/scripts/sync-artifacts.mjs +2 -2
  15. package/scripts/test-opencode-v2-sandbox.sh +155 -4
  16. package/scripts/validate-sandbox-install.mjs +138 -0
  17. package/skills-lock.json +5 -5
  18. package/src/agents/aphrodite.md +18 -36
  19. package/src/agents/demeter.md +8 -27
  20. package/src/agents/gaia.md +1 -0
  21. package/src/agents/hephaestus.md +10 -20
  22. package/src/agents/hermes.md +15 -37
  23. package/src/agents/mnemosyne.md +14 -42
  24. package/src/agents/prometheus.md +16 -19
  25. package/src/agents/talos.md +4 -1
  26. package/src/agents/themis.md +4 -4
  27. package/src/agents/zeus.md +24 -127
  28. package/src/instructions/agent-return-format.instructions.md +2 -3
  29. package/src/instructions/backend-standards.instructions.md +2 -0
  30. package/src/instructions/frontend-standards.instructions.md +3 -1
  31. package/src/instructions/memory-protocol.instructions.md +11 -121
  32. package/src/instructions/zeus-anti-stall.instructions.md +14 -69
  33. package/src/instructions/zeus-communication-rules.instructions.md +0 -1
  34. package/src/instructions/zeus-council-synthesis.instructions.md +32 -260
  35. package/src/instructions/zeus-memory-operations.instructions.md +26 -0
  36. package/src/instructions/zeus-timeout-retry.instructions.md +40 -87
  37. package/src/pantheon/v2-delegation-enforce.ts +87 -0
  38. package/src/pantheon/v2-execute-after.ts +186 -0
  39. package/src/pantheon/v2-unsupported.mjs +0 -23
  40. package/src/plugin-v2.ts +271 -36
  41. package/src/plugins/tui/dist/tui.d.ts +11 -8
  42. package/src/plugins/tui/dist/tui.d.ts.map +1 -1
  43. package/src/plugins/tui/dist/tui.js +53 -37
  44. package/src/plugins/tui/package-lock.json +30 -33
  45. package/src/plugins/tui/package.json +5 -1
  46. package/src/plugins/tui/src/index.tsx +103 -82
  47. package/src/plugins/tui/tsdown.config.ts +17 -0
  48. package/src/routing.yml +10 -5
  49. package/src/skills/README.md +3 -3
  50. package/src/skills/artifact-management/SKILL.md +12 -5
  51. package/src/skills/auto-continue/SKILL.md +37 -28
  52. package/src/skills/code-review-checklist/SKILL.md +5 -5
  53. package/src/skills/context-compression/SKILL.md +26 -879
  54. package/src/skills/tdd-with-agents/SKILL.md +18 -10
@@ -8,13 +8,21 @@ alwaysApply: false
8
8
 
9
9
  # TDD with Agents
10
10
 
11
- Enforce RED → GREEN → REFACTOR cycle across all implementation agents. Includes advanced testing patterns for E2E, load, mutation, and contract testing.
11
+ Use RED → GREEN → REFACTOR for behavior-changing implementation where a meaningful test can express the change. Keep verification proportional to the changed surface and risk; advanced testing patterns are reserved for changes that warrant them.
12
12
 
13
13
  ---
14
14
 
15
15
  ## Core Principle
16
16
 
17
- > **Write the test FIRST. Watch it fail. Write minimal code to pass. Refactor with confidence.**
17
+ > **For testable behavior changes, write the focused test first, observe RED, implement minimally, then refactor.**
18
+
19
+ ## Proportional TDD
20
+
21
+ - Use the complete RED → GREEN → REFACTOR cycle for new or changed behavior when a focused test is practical. Include a focused regression check for bug fixes.
22
+ - For typo, formatting, documentation-only, or otherwise non-behavioral edits, do not invent a test; inspect the diff and run the narrowest relevant validation.
23
+ - Run targeted tests for a small change. Run broader suites when the changed surface, integration boundaries, or risk make them useful; do not run the whole suite solely because one line changed.
24
+ - If a relevant existing test already captures the behavior, use it instead of adding a duplicate. If no automated check can express the change, report the manual or static verification performed.
25
+ - Auth, security, payment, data-integrity, and schema/migration changes retain focused RED/GREEN tests, required regression coverage, and Themis review. Do not weaken a project-specific required safety gate.
18
26
 
19
27
  ---
20
28
 
@@ -112,12 +120,12 @@ def test_provider_satisfies_consumer_contract():
112
120
  pass
113
121
  ```
114
122
 
115
- ### Mutation Testing
123
+ ### Mutation Testing (high-risk/critical logic only)
116
124
  - Mutate source code (change `>` to `<`, remove conditions)
117
125
  - Run tests → should fail (mutation killed)
118
126
  - If tests pass → test is weak; improve it
119
127
 
120
- ### Visual Regression
128
+ ### Visual Regression (visual behavior only)
121
129
  ```typescript
122
130
  test('homepage looks the same', async ({ page }) => {
123
131
  await page.goto('/')
@@ -129,8 +137,8 @@ test('homepage looks the same', async ({ page }) => {
129
137
 
130
138
  ## Coverage Rules
131
139
 
132
- - **Minimum: 80%** for all code
133
- - **Critical paths: 100%** (auth, payments, data integrity)
140
+ - Follow a repository's explicit coverage threshold when the changed code is in its measurement scope; do not manufacture a coverage target for docs, formatting, or a tiny isolated edit.
141
+ - **Critical paths:** preserve project-required coverage and tests for auth, payments, and data integrity.
134
142
  - **No snapshot testing** — test behavior, not output shape
135
143
  - **Test edge cases**: empty input, null, boundary values, errors
136
144
 
@@ -143,20 +151,20 @@ test('homepage looks the same', async ({ page }) => {
143
151
  | **Hermes** | Unit + integration for FastAPI endpoints, services, middleware |
144
152
  | **Aphrodite** | Component behavior tests with React Testing Library |
145
153
  | **Demeter** | Migration upgrade/downgrade, query correctness |
146
- | **Themis** | Verifies coverage ≥80%, edge cases tested, error conditions |
154
+ | **Themis** | Reviews the changed surface, relevant edge/error cases, and applicable repository coverage requirements; always review sensitive/material changes |
147
155
 
148
156
  ---
149
157
 
150
158
  ## Workflow
151
159
 
152
160
  ```
153
- 1. Zeus/Athena defines feature with testable acceptance criteria
161
+ 1. Use a plan/spec only when scope, risk, or ambiguity warrants it; a bounded fix may proceed directly
154
162
  2. Hermes writes failing test (RED)
155
163
  3. Hermes implements minimal code (GREEN)
156
164
  4. Hermes refactors (REFACTOR)
157
165
  5. Aphrodite writes frontend tests in parallel
158
- 6. Themis reviews: coverage, edge cases, correctness
159
- 7. If coverage <80% → NEEDS_REVISION
166
+ 6. Themis reviews sensitive or material changes, checking changed behavior and applicable quality gates
167
+ 7. Escalate unmet repository or safety-critical test requirements; do not fail a micro-edit against an unrelated global coverage figure
160
168
  ```
161
169
 
162
170
  ---