pantheon-opencode 2.0.0 โ†’ 2.0.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,45 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
7
 
8
+ ## [v2.0.2] - 2026-11-11
9
+
10
+ ### ๐Ÿ†• What's New
11
+
12
+ - **Timezone Locale Auto-Detection**: Auto-detects Portuguese in Brazil (America/Sao_Paulo) even when Linux LANG defaults to C.UTF-8.
13
+ - **Reactive Settings Live Preview**: Immediate real-time preview of language and layout changes across settings tabs before saving.
14
+ - **Bilingual TUI Tab**: Localized layout presets, separator glyphs, bar shapes, and status toggles for PT-BR and EN.
15
+
16
+ ### Fixed
17
+
18
+ - **tui** โ€” auto-detect pt-BR via Intl timezone (America/Sao_Paulo and Brazilian states) when LANG/LC_ALL is C.UTF-8.
19
+ - **tui** โ€” use reactive tuiPrefs signal in settings tabs to enable instant live preview of language switching.
20
+ - **tui** โ€” fully localize TUI tab row labels, groups, and explanatory notes in Portuguese.
21
+
22
+
23
+ ## [v2.0.1] - 2026-11-11
24
+
25
+ ### ๐Ÿ†• What's New
26
+
27
+ - **Bilingual TUI Settings**: Portuguese (pt-BR) and English (en) with system locale auto-detection and manual toggle in the TUI menu.
28
+ - **Decision Model Selector**: Interactive selector in TUI settings to cycle across all remote Jev models without manual JSON editing.
29
+ - **Modernized Council Synthesis**: Domain Authority table, Mermaid arbitration diagram, and immediate action checklist.
30
+ - **Modernized Strategic Planning**: Sub-10s test slicing, Mermaid workflow diagram, impact matrix, and rollback blueprint.
31
+ - **Demystified J1 Safety Ladder**: Plain-language descriptions for execution modes (shadow, enforce, off) and safety limits.
32
+
33
+ ### Added
34
+
35
+ - **tui** โ€” bilingual dictionary and locale resolution helper (PT-BR / EN) in settings-i18n.ts.
36
+ - **tui** โ€” language preference in TuiPrefs with cycling options (auto, pt-BR, en) and live preview.
37
+ - **tui** โ€” unit test suite in tests/tui-settings-i18n.test.mjs validating locale and tab rendering.
38
+ - **routing** โ€” permanent interactive target selector cycler row in the Decision tab across all modes.
39
+
40
+ ### Changed
41
+
42
+ - **council** โ€” modernized Zeus council synthesis with Domain Authority matrix and Mermaid graph.
43
+ - **planning** โ€” modernized Athena strategic planning template with sub-10s test slicing.
44
+ - **tui** โ€” humanized settings labels for Decision Router, Selection mode, Egress, and J1 Ladder.
45
+ - **tui** โ€” localized Autonomy tab notes for Goal Loop continuation, budgets, and risk gradient.
46
+
8
47
  ## [v1.7.0] - 2026-11-07
9
48
 
10
49
  ### ๐Ÿ†• What's New
@@ -77,28 +116,42 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
77
116
 
78
117
  - **OpenCode 2.x Architecture**: Official 2.0 release dedicated to OpenCode 2.x, removing legacy V1 shims for low latency.
79
118
  - **Fast-Path Direct Dispatch**: Zeus executes direct implementation requests in 1 turn without mandatory planning or approval cascades.
80
- - **Native Subagent Execution**: Parallel background subagents (`task(background: true)`) for non-blocking test and build workflows.
119
+ - **Native Subagent Execution**: Parallel background subagents (task(background: true)) for non-blocking test and build workflows.
81
120
  - **Implementer Tool Grants**: Added native glob, grep, and bash access across all implementers to eliminate discovery round-trips.
82
121
  - **Prompt Diet & English Unification**: Condensed agent prompts by up to 70% and standardized instructions across all agents to English.
83
- - **TUI Settings Stability**: Fullscreen settings overlay with flexWrap anti-squish layout and live preference preview.
122
+ - **Full TUI Settings Suite**: Fullscreen settings overlay (/pantheon-settings) with Autonomy, Decision, TUI, and Doctor tabs.
84
123
 
85
124
  ### Added
86
125
 
87
- - **agents** โ€” Fast-Path Direct Implementation in Zeus routing direct coding requests immediately to domain specialists.
88
- - **agents** โ€” Native glob and grep permissions granted to implementers (Talos, Prometheus, Demeter).
89
- - **agents** โ€” Parallel background execution guidance for tests and builds using `task(background: true)`.
126
+ - **agents** โ€” Fast-Path Direct Implementation in Zeus routing direct coding requests immediately to domain specialists in 1 turn.
127
+ - **agents** โ€” Native glob, grep, and bash permissions granted to implementers (Talos, Prometheus, Demeter, Hermes, Aphrodite).
128
+ - **agents** โ€” Parallel background execution guidance for tests and builds using task(background: true).
129
+ - **tui** โ€” Full-screen settings overlay (/pantheon-settings) with tabs for Autonomy, Decision, TUI Personalization, and Doctor.
130
+ - **tui** โ€” Autonomy tab managing persisted goal loops, cooldown periods, and continuation caps.
131
+ - **tui** โ€” Decision tab configuring Jev routing model, candidate selection mode, provider status, and egress consent.
132
+ - **skills** โ€” In-process pantheon_skill_search with 24h query cache and test-slicing skill for fast bounded runs under 100ms.
133
+ - **routing** โ€” Named-behavior overrides registered in routing.yml with pure loader and quarantine fallback.
90
134
 
91
135
  ### Changed
92
136
 
93
- - **agents** โ€” Condensed Hermes system prompt from 292 to 198 lines, eliminating tutorial boilerplate.
94
- - **agents** โ€” Cleaned double-spaced headings and emoji remnants across Aphrodite instructions.
137
+ - **agents** โ€” Condensed Hermes, Zeus, and Apollo prompts by up to 70%, eliminating tutorial boilerplate and saving >8,000 tokens per turn.
95
138
  - **instructions** โ€” Standardized all agent instructions and repository headers to English with zero-emoji enforcement.
139
+ - **install** โ€” Native opencode plugin add pantheon-opencode flow, lean init, and automated sibling opencode.jsonc sync.
140
+ - **skills** โ€” Progressive disclosure architecture separating core instructions (<120 lines) from references/.
141
+ - **council** โ€” Assertive synthesis protocol with Domain Authority precedence and JEV arbitration.
142
+
143
+ ### Removed
144
+
145
+ - ๐Ÿ’ฅ **host** โ€” Removed OpenCode V1 runtime contract, shims, and legacy bridge per ADR-0014.
146
+ - **install** โ€” Removed interactive init wizard in favor of one-shot preview and /pantheon-settings configuration.
96
147
 
97
148
  ### Fixed
98
149
 
99
- - **release** โ€” Corrected canonical changelog structure and bold scope formatting for Gate (e) compliance.
100
150
  - **tools** โ€” Replaced legacy shell permissions with native OpenCode V2 bash across all implementers.
101
- - **tui** โ€” Resolved tab squish and footer overlap on narrow viewports in settings window.
151
+ - **tui** โ€” Resolved tab squish and footer overlap on narrow viewports in settings window using flexWrap.
152
+ - **tui** โ€” Fixed settings navigation loss and cyclic route structure errors when closing dialogs.
153
+ - **install** โ€” Fixed missing pantheon tools caused by opencode.jsonc overriding opencode.json.
154
+ - **vision** โ€” Reconciled temp-dir restart orphans and crash strays with disk cap.
102
155
 
103
156
  ## [v2.0.0-rc.2] - 2026-11-11
104
157
 
package/README.md CHANGED
@@ -184,10 +184,11 @@ Run `/pantheon-settings` (or `Pantheon: Settings` in the command palette) to ope
184
184
 
185
185
  - **Gates & Overrides:** Toggle named behaviors live; persists to `pantheon-overrides.json`.
186
186
  - **Model Presets:** Switch active model tier globally or per project.
187
- - **Decision Model:** Configure local and remote JEV decision routing.
187
+ - **Decision Model Selector:** Interactive selector to cycle across all remote decision models (`openrouter-jev`, `typesafe-jev`, `openai-decisions`, `vercel-gateway-jev`, etc.) directly from the UI.
188
+ - **Bilingual Settings (PT-BR / EN):** Full visual localization for Decision, Autonomy, and Safety tabs, auto-detecting environment locale with manual toggle in the TUI tab.
188
189
  - **Updates:** Check registry channel (`beta` / `stable`) and trigger upgrades.
189
190
  - **Doctor:** Run inline system health diagnostics.
190
- - **TUI Personalization:** Adjust spacing (`comfortable` vs `compact`), separators, gauge bar styles, and context display rows.
191
+ - **TUI Personalization:** Adjust spacing (`comfortable` vs `compact`), separators, gauge bar styles, context display rows, and language.
191
192
  - **Non-Destructive Overlay & Mouse Navigation:** Opens as a floating dialog overlay over the active session without blanking the workspace (configurable via `dialog` vs `fullscreen`), with full mouse click support for tabs, sidebar, rows, value cyclers, and actions.
192
193
  - **Modernized What's New Window:** Card layout with rounded border, pagination buttons, and a dedicated `[OK, Entendido]` button with keyboard (`Enter`/`Esc`/`Q`) and mouse click support.
193
194
 
@@ -204,6 +205,16 @@ Run `/pantheon-settings` (or `Pantheon: Settings` in the command palette) to ope
204
205
 
205
206
  ---
206
207
 
208
+ ## What's New in v2.0.1
209
+
210
+ - **Bilingual TUI Settings (PT-BR / EN):** Visual localization for Decision Router, Autonomy & Budgets, and J1 Safety Gate tabs, with intelligent system locale auto-detection (`LANG` / `LC_ALL`) and manual preference cycling (`auto`, `pt-BR`, `en`).
211
+ - **Interactive Decision Model Selector:** Permanently accessible selector row in `/pantheon-settings` to cycle across all 6 remote decision models without manual JSON configuration.
212
+ - **Modernized Council Synthesis (`/pantheon`):** Rich synthesis artifacts featuring Domain Authority breakdown, Mermaid arbitration diagrams, and immediate action checklists.
213
+ - **Modernized Strategic Planning (`/pantheon-deepwork`):** Athena plans now enforce mandatory sub-10s test slicing, execution dependency diagrams, blast radius impact matrix, and rollback blueprints.
214
+ - **Demystified J1 Safety Ladder:** Plain-language descriptions for J1 execution modes (`shadow`, `enforce`, `off`), making telemetry and protection gates clear.
215
+
216
+ ---
217
+
207
218
  ## What's New in v2.0.0-rc.1
208
219
 
209
220
  - **Release Candidate Series Inauguration:** Production-ready multi-agent orchestration for OpenCode 2.x.
package/README.pt-BR.md CHANGED
@@ -180,10 +180,11 @@ Execute `/pantheon-settings` (ou `Pantheon: Settings` na paleta de comandos) par
180
180
 
181
181
  - **Gates & Overrides:** Habilite ou desabilite comportamentos nomeados em tempo real (salvo em `pantheon-overrides.json`).
182
182
  - **Presets de Modelos:** Alterne o tier de modelos ativo globalmente ou no projeto.
183
- - **Modelo de Decisรฃo:** Configure o roteamento local e remoto das decisรตes JEV.
183
+ - **Seletor de Modelo de Decisรฃo:** Alterne interativamente entre os modelos remotos de decisรฃo (`openrouter-jev`, `typesafe-jev`, `openai-decisions`, etc.) diretamente na interface.
184
+ - **Suporte Multilรญngue (PT-BR / EN):** Traduรงรฃo visual completa das abas Decisรตes, Autonomia e Seguranรงa, com detecรงรฃo automรกtica da linguagem do sistema e troca manual na aba TUI.
184
185
  - **Atualizaรงรตes:** Verifique o canal do registro (`beta` / `stable`) e dispare upgrades.
185
186
  - **Doctor:** Execute o diagnรณstico de saรบde do sistema diretamente na interface.
186
- - **Personalizaรงรฃo da TUI:** Ajuste espaรงamento (`comfortable` vs `compact`), separadores, estilo das barras de progresso e linhas de contexto.
187
+ - **Personalizaรงรฃo da TUI:** Ajuste espaรงamento (`comfortable` vs `compact`), separadores, estilo das barras de progresso, linhas de contexto e idioma.
187
188
  - **Overlay Nรฃo-Destrutivo e Navegaรงรฃo por Clique:** Abre como diรกlogo flutuante sobre a sessรฃo ativa mantendo a TUI visรญvel (configurรกvel entre `dialog` e `fullscreen`), com suporte completo a cliques de mouse em abas, menu lateral, linhas, seletores e botรตes de aรงรฃo.
188
189
  - **Janela de Novidades Modernizada:** Layout em card com bordas arredondadas, paginaรงรฃo visual e botรฃo dedicado `[OK, Entendido]` com confirmaรงรฃo via mouse ou teclado (`Enter`/`Esc`/`Q`).
189
190
 
@@ -200,6 +201,16 @@ Execute `/pantheon-settings` (ou `Pantheon: Settings` na paleta de comandos) par
200
201
 
201
202
  ---
202
203
 
204
+ ## O Que Hรก de Novo na v2.0.1
205
+
206
+ - **Configuraรงรตes TUI Bilรญngues (PT-BR / EN):** Localizaรงรฃo visual para o Assistente de Decisรฃo Jev, Autonomia & Orรงamentos e Portรฃo de Seguranรงa J1, com detecรงรฃo inteligente da linguagem do ambiente (`LANG` / `LC_ALL`) e seleรงรฃo manual (`auto`, `pt-BR`, `en`).
207
+ - **Seletor Interativo de Modelos Jev:** Linha de seleรงรฃo sempre visรญvel em `/pantheon-settings` para alternar entre os 6 modelos remotos suportados sem editar arquivos JSON manualmente.
208
+ - **Sรญntese do Conselho Modernizada (`/pantheon`):** Artefatos com Autoridade por Domรญnio, diagrama visual de arbitragem em Mermaid e checklist de aรงรตes imediatas.
209
+ - **Planejamento Estratรฉgico Modernizado (`/pantheon-deepwork`):** Planos da Athena com fluxo visual em Mermaid, fatiamento rigoroso de testes (< 10s), anรกlise de raio de impacto e plano de rollback.
210
+ - **Desmistificaรงรฃo da Escala de Seguranรงa J1:** Descriรงรตes claras dos modos de execuรงรฃo (`shadow`, `enforce`, `off`), eliminando ambiguidades sobre bloqueio e telemetria.
211
+
212
+ ---
213
+
203
214
  ## O Que Hรก de Novo na v2.0.0-rc.1
204
215
 
205
216
  - **Inauguraรงรฃo da Sรฉrie Release Candidate:** Orquestraรงรฃo multi-agente pronta para produรงรฃo no OpenCode 2.x.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Multi-agent orchestration for OpenCode \u2014 14 specialized agents, TDD, Themis review gates.",
5
5
  "type": "module",
6
6
  "workspaces": [
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon",
3
3
  "publisher": "ils15",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 25 skills, and OpenCode support.",
7
7
  "agents": "./src/agents",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend"
4
4
 
5
5
  [project]
6
6
  name = "pantheon"
7
- version = "2.0.0"
7
+ version = "2.0.2"
8
8
  description = "Multi-agent orchestration framework"
9
9
  requires-python = ">=3.11"
10
10
  # Python sources under src/mcp/ import fastmcp/pydantic at runtime, but those
@@ -341,6 +341,7 @@ async function main() {
341
341
  XDG_DATA_HOME: dataHome,
342
342
  PANTHEON_OPENCODE_VERSION: requestedVersion,
343
343
  PANTHEON_COST_DB: undefined,
344
+ OPENCODE_DB: undefined,
344
345
  })
345
346
  try {
346
347
  const selectedOutput = await createCostCommand().pantheon_cost.execute(
@@ -381,6 +382,7 @@ async function main() {
381
382
  XDG_DATA_HOME: dataHome,
382
383
  PANTHEON_OPENCODE_VERSION: requestedVersion,
383
384
  PANTHEON_COST_DB: envDb,
385
+ OPENCODE_DB: undefined,
384
386
  })
385
387
  try {
386
388
  const output = await createCostCommand().pantheon_cost.execute(
@@ -405,6 +407,7 @@ async function main() {
405
407
  XDG_DATA_HOME: dataHome,
406
408
  PANTHEON_OPENCODE_VERSION: requestedVersion,
407
409
  PANTHEON_COST_DB: envDb,
410
+ OPENCODE_DB: undefined,
408
411
  })
409
412
  try {
410
413
  const output = await createCostCommand({ dbPath: explicitDb }).pantheon_cost.execute(
@@ -426,6 +429,7 @@ async function main() {
426
429
  XDG_DATA_HOME: join(root, 'missing-data'),
427
430
  PANTHEON_OPENCODE_VERSION: requestedVersion,
428
431
  PANTHEON_COST_DB: undefined,
432
+ OPENCODE_DB: undefined,
429
433
  })
430
434
  try {
431
435
  const output = await createCostCommand().pantheon_cost.execute(
@@ -1859,7 +1859,13 @@ run_cost_probe() { # v
1859
1859
  return 0
1860
1860
  fi
1861
1861
  set +e
1862
- raw="$(node "$probe" --version "$v" --fixture --json 2>&1)"
1862
+ if command -v tsx >/dev/null 2>&1; then
1863
+ raw="$(tsx "$probe" --version "$v" --fixture --json 2>&1)"
1864
+ elif npx --no-install tsx --version >/dev/null 2>&1; then
1865
+ raw="$(npx --no-install tsx "$probe" --version "$v" --fixture --json 2>&1)"
1866
+ else
1867
+ raw="$(node "$probe" --version "$v" --fixture --json 2>&1)"
1868
+ fi
1863
1869
  local rc=$?
1864
1870
  set -e
1865
1871
  case "$raw" in
@@ -116,13 +116,16 @@ Use this template whenever the user asks for a plan or Zeus requests one. Keep i
116
116
  visual, actionable, and token-efficient โ€” modeled after Claude Code and ChatGPT Agent plan modes:
117
117
 
118
118
  ```markdown
119
- ## Plan: [Feature Name]
119
+ # ๐Ÿ“ Architecture Plan: [Feature Name]
120
+
121
+ > **Architect:** @athena ยท **Review Gate:** @themis ยท **Execution Mode:** Strict TDD with Sub-10s Test Slicing
120
122
 
121
123
  ### Architecture & Execution Flow
122
124
  ```mermaid
123
- flowchart TD
124
- P1["Phase 1: [Name] (@agent)"] --> P2["Phase 2: [Name] (@agent)"]
125
- P2 --> P3["Phase 3: Verification (@themis)"]
125
+ flowchart LR
126
+ P1["Phase 1: Model / Schema (@demeter)"] --> P2["Phase 2: Core Logic (@hermes)"]
127
+ P2 --> P3["Phase 3: UI / Interface (@aphrodite)"]
128
+ P3 --> P4["Phase 4: Verification (@themis)"]
126
129
  ```
127
130
 
128
131
  ### Goal & Scope
@@ -137,15 +140,19 @@ flowchart TD
137
140
  - **Goal & Actions:** Outcome and concrete steps (TDD: RED โ†’ GREEN โ†’ REFACTOR)
138
141
  - **Affected files or areas:** Known paths or explicitly mark unknown paths instead of guessing
139
142
  - **Dependencies:** Earlier phases or external systems
140
- - **Tests:** Focused checks, lint-first gate, and applicable quality gates
143
+ - **Tests & Test Slicing:** Exact targeted slice (e.g. `node --test tests/foo.test.mjs`), focused checks, lint-first gate, and applicable quality gates
141
144
  - **Risks & Mitigation:** Specific risk โ†’ concrete mitigation
142
145
 
143
146
  2. **[Phase Name] โ†’ @agent**
144
147
  ...
145
148
 
146
- ### Acceptance Criteria
149
+ ### Acceptance Criteria & Verification
147
150
  - [ ] Observable completion criterion
148
- - [ ] Verification criterion (all tests green, 0 lint warnings)
151
+ - [ ] Verification criterion (all targeted tests green, 0 lint warnings)
152
+
153
+ ### Rollback & Contingency Plan
154
+ - **Failure Trigger:** Conditions under which execution aborts (e.g. test slice failure, unexpected schema corruption).
155
+ - **Rollback Steps:** Revert commit / feature flag toggle / database rollback migration.
149
156
  ```
150
157
 
151
158
  The complete plan is the deliverable. Include it in your final response to the
@@ -53,24 +53,43 @@ Require `## specialist_response` from `## Agent Return Format`. The first round
53
53
 
54
54
  ## User-Facing Synthesis
55
55
 
56
- ```text
57
- ## Council Synthesis
58
- Question / date / response rate / timed-out agents / precedent / research context
56
+ ```markdown
57
+ # ๐Ÿ›๏ธ Council Synthesis
58
+
59
+ > **Question:** [Original Question]
60
+ > **Date:** [ISO Timestamp] ยท **Response Rate:** [X/Y specialists] ยท **Precedent / Research:** [Context or None]
59
61
 
60
62
  ### Specialist Perspectives
61
- | Agent | Position | Trade-offs | Confidence |
63
+ | Specialist | Domain Authority | Substantive Position | Trade-offs | Confidence |
64
+ | :--- | :--- | :--- | :--- | :---: |
65
+ | **@[agent]** | [Domain, e.g. Security / Auth] | [Core recommendation] | [Pros & Cons] | **[High / Med / Low]** |
62
66
 
63
67
  ### Agreements
64
- - Points shared by multiple specialists
65
-
66
- ### Divergences
67
- | Issue | Specialist positions (attribute each side to its agent) | Resolution |
68
+ - [Key consensus point shared across specialists]
69
+
70
+ ### Divergences & Arbitration
71
+ | Issue | Specialist positions (attribute each side to its agent) | Arbitration Resolution |
72
+ | :--- | :--- | :--- |
73
+ | [Contested point] | **@[agentA]**: [Position A]<br/>**@[agentB]**: [Position B] | **Resolved via [Domain Authority / Jev Decision]**: [Outcome] |
74
+
75
+ ```mermaid
76
+ flowchart TD
77
+ Q["Contested Issue"] --> A["@[agentA]: Position A"]
78
+ Q --> B["@[agentB]: Position B"]
79
+ A & B --> Arb{"Domain Authority & Jev Score"}
80
+ Arb --> Dec["Arbitrated Decision: [Outcome]"]
81
+ ```
68
82
 
69
83
  ### Evidence & Moderation (when used)
70
84
  Research points, evidence, moderator verdict, cited sources, unresolved issues
71
85
 
72
86
  ### Recommendation
73
- Decisive conclusion
87
+ Decisive conclusion and immediate actionable next steps
88
+
89
+ ### Immediate Action Checklist
90
+ - [ ] **@[specialistA]**: [Concrete implementation task]
91
+ - [ ] **@[specialistB]**: [Verification or interface task]
92
+ - [ ] **@themis**: [Audit gate verification]
74
93
 
75
94
  ### Audit Gate
76
95
  Themis approved, or issues corrected