pantheon-opencode 1.6.1 → 1.6.2-beta.2

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 (115) hide show
  1. package/AGENTS.global.md +11 -11
  2. package/AGENTS.md +2 -2
  3. package/CHANGELOG.md +29 -0
  4. package/README.md +100 -19
  5. package/README.pt-BR.md +27 -11
  6. package/bin/pantheon-init.mjs +106 -19
  7. package/package.json +3 -2
  8. package/plugin.json +1 -1
  9. package/pyproject.toml +1 -1
  10. package/scripts/build-agents-md.mjs +1 -1
  11. package/scripts/doctor.mjs +213 -45
  12. package/scripts/install/agents-md.mjs +2 -1
  13. package/scripts/install/config-migration.mjs +344 -393
  14. package/scripts/install/config-paths.mjs +15 -0
  15. package/scripts/install/mcp-permissions.mjs +164 -0
  16. package/scripts/install/opencode-version.mjs +31 -13
  17. package/scripts/install/opencode-wildcard.mjs +106 -0
  18. package/scripts/install/opencode.mjs +240 -69
  19. package/scripts/install/plan-artifact.mjs +12 -1
  20. package/scripts/install/plugin.mjs +17 -1
  21. package/scripts/install/v2-capabilities.mjs +5 -6
  22. package/scripts/package-evidence.mjs +1 -0
  23. package/scripts/sandbox-env.sh +174 -0
  24. package/scripts/setup-v2-config.mjs +1703 -0
  25. package/scripts/setup.mjs +415 -0
  26. package/scripts/sync-tui.mjs +9 -1
  27. package/scripts/test-opencode-v2-sandbox.sh +438 -151
  28. package/scripts/update-skills-lock.mjs +30 -0
  29. package/skills-lock.json +10 -10
  30. package/src/agents/aphrodite.md +5 -2
  31. package/src/agents/apollo.md +5 -0
  32. package/src/agents/athena.md +6 -1
  33. package/src/agents/demeter.md +5 -1
  34. package/src/agents/gaia.md +4 -0
  35. package/src/agents/hephaestus.md +6 -1
  36. package/src/agents/hermes.md +6 -3
  37. package/src/agents/iris.md +5 -1
  38. package/src/agents/mnemosyne.md +20 -50
  39. package/src/agents/nyx.md +5 -1
  40. package/src/agents/prometheus.md +4 -0
  41. package/src/agents/talos.md +4 -0
  42. package/src/agents/themis.md +4 -0
  43. package/src/agents/zeus.md +9 -3
  44. package/src/instructions/agent-return-format.instructions.md +1 -1
  45. package/src/instructions/memory-protocol.instructions.md +3 -3
  46. package/src/instructions/test-economy.instructions.md +6 -6
  47. package/src/mcp/pantheon_vision.py +37 -36
  48. package/src/pantheon/cost-command.ts +30 -133
  49. package/src/pantheon/model-pricing.ts +1 -536
  50. package/src/pantheon/v2-vision.ts +34 -29
  51. package/src/pantheon/vision.ts +43 -10
  52. package/src/plugin-v2.ts +30 -53
  53. package/src/plugins/tui/THIRD_PARTY_NOTICES.md +24 -0
  54. package/src/plugins/tui/dist/cost-data-CCZUs1aJ.js +749 -0
  55. package/src/plugins/tui/dist/cost-data-CCZUs1aJ.js.map +1 -0
  56. package/src/plugins/tui/dist/quota-adapters.d.ts +89 -0
  57. package/src/plugins/tui/dist/quota-adapters.d.ts.map +1 -0
  58. package/src/plugins/tui/dist/quota-adapters.js +1142 -0
  59. package/src/plugins/tui/dist/quota-adapters.js.map +1 -0
  60. package/src/plugins/tui/dist/quota-cli.d.ts +17 -0
  61. package/src/plugins/tui/dist/quota-cli.d.ts.map +1 -0
  62. package/src/plugins/tui/dist/quota-cli.js +184 -0
  63. package/src/plugins/tui/dist/quota-cli.js.map +1 -0
  64. package/src/plugins/tui/dist/quota-rpc-DMmXBhBe.js +684 -0
  65. package/src/plugins/tui/dist/quota-rpc-DMmXBhBe.js.map +1 -0
  66. package/src/plugins/tui/dist/server-v2.d.ts +14 -0
  67. package/src/plugins/tui/dist/server-v2.d.ts.map +1 -0
  68. package/src/plugins/tui/dist/server-v2.js +796 -0
  69. package/src/plugins/tui/dist/server-v2.js.map +1 -0
  70. package/src/plugins/tui/dist/tui-v2.d.ts +375 -53
  71. package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
  72. package/src/plugins/tui/dist/tui-v2.js +5876 -530
  73. package/src/plugins/tui/dist/tui-v2.js.map +1 -1
  74. package/src/plugins/tui/dist/tui.js +1 -1
  75. package/src/plugins/tui/dist/usage-history-contract-nt1rnBPE.js +118 -0
  76. package/src/plugins/tui/dist/usage-history-contract-nt1rnBPE.js.map +1 -0
  77. package/src/plugins/tui/dist/usage-history-worker.js +25 -0
  78. package/src/plugins/tui/dist/usage-history-worker.js.map +1 -0
  79. package/src/plugins/tui/index-v2.ts +3 -6
  80. package/src/plugins/tui/package-lock.json +17 -2
  81. package/src/plugins/tui/package.json +6 -3
  82. package/src/plugins/tui/src/context-gauge.ts +59 -0
  83. package/src/plugins/tui/src/cost-data.ts +607 -0
  84. package/src/plugins/tui/src/go-key-diagnostic-ui.ts +100 -0
  85. package/src/plugins/tui/src/go-key-diagnostic.ts +125 -0
  86. package/src/plugins/tui/src/index-v2.tsx +231 -240
  87. package/src/plugins/tui/src/model-pricing.ts +536 -0
  88. package/src/plugins/tui/src/model-usage-limits.ts +4 -0
  89. package/src/plugins/tui/src/quota-adapters.ts +1598 -0
  90. package/src/plugins/tui/src/quota-cli.ts +237 -0
  91. package/src/plugins/tui/src/quota-rpc.ts +373 -0
  92. package/src/plugins/tui/src/quota-v2-model.ts +1032 -0
  93. package/src/plugins/tui/src/quota-v2.tsx +1238 -0
  94. package/src/plugins/tui/src/server-v2.ts +985 -0
  95. package/src/plugins/tui/src/sidebar-width.ts +129 -0
  96. package/src/plugins/tui/src/usage-history-contract.ts +217 -0
  97. package/src/plugins/tui/src/usage-history-validation.ts +104 -0
  98. package/src/plugins/tui/src/usage-history-view.tsx +236 -0
  99. package/src/plugins/tui/src/usage-history-worker.ts +25 -0
  100. package/src/plugins/tui/src/usage-view-model.ts +272 -0
  101. package/src/plugins/tui/tsconfig.typecheck.json +6 -1
  102. package/src/plugins/tui/tsdown.config.ts +44 -5
  103. package/src/routing.yml +72 -13
  104. package/src/skills/README.md +4 -0
  105. package/src/skills/agent-coordination/SKILL.md +0 -3
  106. package/src/skills/artifact-management/SKILL.md +0 -3
  107. package/src/skills/auto-continue/SKILL.md +0 -3
  108. package/src/skills/code-review-checklist/SKILL.md +0 -3
  109. package/src/skills/context-compression/SKILL.md +0 -3
  110. package/src/skills/memory-bank/SKILL.md +6 -28
  111. package/src/skills/session-goal/SKILL.md +0 -3
  112. package/src/skills/simplify/SKILL.md +5 -4
  113. package/src/skills/tdd-with-agents/SKILL.md +0 -3
  114. package/src/skills/visual-review-pipeline/SKILL.md +0 -1
  115. package/src/pantheon/memory-context.ts +0 -1017
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: memory-bank
3
3
  description: "Memory bank rules, structure, and optimization — complete guide to Pantheon memory management."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Memory Bank
@@ -100,32 +97,13 @@ At sprint close:
100
97
 
101
98
  ---
102
99
 
103
- ## Optimization: Compression Rules
100
+ ## Memory Bank maintenance
104
101
 
105
- ### Problem: Memory bank files grow too large, wasting tokens on every load.
106
-
107
- ### Strategy: Lazy-load only what's needed
108
-
109
- | Rule | Before | After |
110
- |------|--------|-------|
111
- | **Active context** | 500+ lines of history | 50 lines: current sprint only |
112
- | **Progress log** | Everything since day 1 | Link to archived logs; keep last 50 lines |
113
- | **Task records** | All tasks in one file | One file per task; archive completed |
114
- | **Notes** | Long narrative | Bullet points with links to source |
115
-
116
- ### Compression Targets
117
-
118
- - `01-active-context.md`: Keep under 100 lines. Archive old sprints to `_notes/`.
119
- - `02-progress-log.md`: Keep last 20 entries. Archive older to `_notes/archive/`.
120
- - `_tasks/`: Mark completed tasks `[x]`, move to `_tasks/archive/`.
121
-
122
- ### Commands
123
-
124
- ```
125
- @mnemosyne Compress memory bank # Audit and compress all files
126
- @mnemosyne Archive completed tasks # Move done tasks to archive
127
- @mnemosyne Trim active context # Keep only current sprint
128
- ```
102
+ Memory Bank cleanup is a manual file-maintenance task, separate from native
103
+ conversation compaction. Do it only when requested. Keep active-context files
104
+ focused on current decisions and blockers; move old material only when its
105
+ destination and retention are clear. Do not enforce line-count or entry-count
106
+ targets, rewrite the archive automatically, or create one artifact per phase.
129
107
 
130
108
  ---
131
109
 
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: session-goal
3
3
  description: "Pin session objectives to prevent scope creep. Use for alignment across long multi-agent sessions."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # Session Goal — Alignment Anchor
@@ -27,10 +27,11 @@ Simplify code while preserving its exact behavior. Focus on reducing complexity
27
27
 
28
28
  ## Verification
29
29
 
30
- After each simplification:
31
- 1. Run tests (`pytest`, `npm test`)
32
- 2. Verify no behavior change
33
- 3. If no tests exist: add minimal characterization tests first
30
+ For each simplification:
31
+ 1. Choose the smallest existing test or static check that covers the changed behavior.
32
+ 2. For a behavior change, add one focused regression test when the existing suite does not cover it; run that test and verify the behavior.
33
+ 3. Run a broader suite only when the change crosses layers, touches a strong safety gate, affects required coverage, or a CI/release gate calls for it. `npm test` is the full repository suite, not the default after every simplification.
34
+ 4. For documentation-only or formatting-only changes, inspect the diff and run the narrowest relevant check instead of inventing a test.
34
35
 
35
36
  ## Rules
36
37
  - Never change public API signatures without explicit approval
@@ -1,9 +1,6 @@
1
1
  ---
2
2
  name: tdd-with-agents
3
3
  description: "TDD enforcement with RED→GREEN→REFACTOR cycle and advanced testing patterns. Use for test-driven development across all layers."
4
- context: fork
5
- globs: []
6
- alwaysApply: false
7
4
  ---
8
5
 
9
6
  # TDD with Agents
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  name: visual-review-pipeline
3
3
  description: "Automated visual review pipeline — Playwright screenshots, self-analysis, fix loop, escalation. Used by Aphrodite for UI verification."
4
- applyTo: "agents/{aphrodite,zeus}.agent.md"
5
4
  ---
6
5
 
7
6
  # Visual Review Pipeline