pantheon-opencode 2.0.1 → 2.0.3
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 +30 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/probe-pantheon-cost.mjs +4 -0
- package/scripts/test-opencode-sandbox.sh +7 -1
- package/skills-lock.json +1 -1
- package/src/agents/athena.md +31 -23
- package/src/agents/zeus.md +11 -6
- package/src/plugins/tui/dist/tui.js +65 -56
- package/src/plugins/tui/dist/tui.js.map +1 -1
- package/src/plugins/tui/package-lock.json +2 -2
- package/src/plugins/tui/package.json +1 -1
- package/src/plugins/tui/src/autonomy-state.ts +6 -8
- package/src/plugins/tui/src/decision-router-state.ts +5 -5
- package/src/plugins/tui/src/j1-gate-status.ts +4 -6
- package/src/plugins/tui/src/pantheon-settings.tsx +2 -3
- package/src/plugins/tui/src/settings-i18n.ts +38 -3
- package/src/plugins/tui/src/tui-prefs.ts +67 -49
- package/src/skills/prompt-refinery/SKILL.md +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,36 @@ 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.3] - 2026-11-11
|
|
9
|
+
|
|
10
|
+
### 🆕 What's New
|
|
11
|
+
|
|
12
|
+
- **Simplified TUI Architecture**: Plain-language labels for Jev Assistant, Operation Mode, Cloud API Access, and Safety Gate.
|
|
13
|
+
- **Two-Tier Architecture Planning**: Concise 1-page visual summary in chat with full technical blueprint saved to disk.
|
|
14
|
+
- **Interactive Question Prompts**: Native question tool integration for prompt refinery disambiguation and plan approval gates.
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- **tui** — align row labels and group titles across Decision, Autonomy, and J1 Safety in PT-BR and EN.
|
|
19
|
+
- **planning** — decouple Athena plan into chat-friendly Executive Decision Contract and disk-based deep technical blueprint.
|
|
20
|
+
- **agents** — grant native question tool to Zeus and Athena for interactive UI choices and confirmation dialogs.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [v2.0.2] - 2026-11-11
|
|
24
|
+
|
|
25
|
+
### 🆕 What's New
|
|
26
|
+
|
|
27
|
+
- **Timezone Locale Auto-Detection**: Auto-detects Portuguese in Brazil (America/Sao_Paulo) even when Linux LANG defaults to C.UTF-8.
|
|
28
|
+
- **Reactive Settings Live Preview**: Immediate real-time preview of language and layout changes across settings tabs before saving.
|
|
29
|
+
- **Bilingual TUI Tab**: Localized layout presets, separator glyphs, bar shapes, and status toggles for PT-BR and EN.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **tui** — auto-detect pt-BR via Intl timezone (America/Sao_Paulo and Brazilian states) when LANG/LC_ALL is C.UTF-8.
|
|
34
|
+
- **tui** — use reactive tuiPrefs signal in settings tabs to enable instant live preview of language switching.
|
|
35
|
+
- **tui** — fully localize TUI tab row labels, groups, and explanatory notes in Portuguese.
|
|
36
|
+
|
|
37
|
+
|
|
8
38
|
## [v2.0.1] - 2026-11-11
|
|
9
39
|
|
|
10
40
|
### 🆕 What's New
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon",
|
|
3
3
|
"publisher": "ils15",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
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.
|
|
7
|
+
version = "2.0.3"
|
|
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
|
-
|
|
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
|
package/skills-lock.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"src/skills/memory-bank/references/storage-model.md": "728a9e5f2055ce0f74c759405072a6fe57f65587bdb7b9e5e7fa90b60528b085",
|
|
24
24
|
"src/skills/memory-bank/references/structure-and-frequency.md": "09caedf905870c688401a2e58b2776a9c6187fe724c576019c58c3b80fe1b98f",
|
|
25
25
|
"src/skills/memory-bank/SKILL.md": "047b3049c27e908b1d79afb14f79336e32f775385ba23956771166d445944f2f",
|
|
26
|
-
"src/skills/prompt-refinery/SKILL.md": "
|
|
26
|
+
"src/skills/prompt-refinery/SKILL.md": "4ffbcddefb4f8937537358386f364ecca1303f928a1b07ff0bbd7e65d6fe7982",
|
|
27
27
|
"src/skills/reflect/SKILL.md": "297c374f1fbc8e15d3848f51e811e0614d4a008c7d0e1daf88bbb240d605b8a8",
|
|
28
28
|
"src/skills/security-hardening/SKILL.md": "6d637e122421f7bc3b751f04854ad343a5a5d35249458bc8939233138fd3f20d",
|
|
29
29
|
"src/skills/session-goal/references/goal-format.md": "071f6f8f12cfbc26d4703cd5f34f839f91e586a3b969bf5f81a74b961c254a83",
|
package/src/agents/athena.md
CHANGED
|
@@ -26,6 +26,7 @@ permission:
|
|
|
26
26
|
grep: allow
|
|
27
27
|
glob: allow
|
|
28
28
|
webfetch: allow
|
|
29
|
+
question: allow
|
|
29
30
|
task:
|
|
30
31
|
"*": deny
|
|
31
32
|
apollo: allow
|
|
@@ -110,17 +111,19 @@ Use `webfetch` to verify availability before proposing model updates to other ag
|
|
|
110
111
|
- Make multiple planning attempts
|
|
111
112
|
- Search or inspect `.pantheon/**`, `.pantheon/deepwork/**`, `.git/**` or `.pantheon-worktrees/**`
|
|
112
113
|
|
|
113
|
-
## Plan Structure (
|
|
114
|
+
## Plan Structure (Didactic Executive Summary + Disk Blueprint)
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
visual, actionable, and token-efficient — modeled after Claude Code and ChatGPT Agent plan modes:
|
|
116
|
+
Whenever creating a plan, format your output in two clear, modular sections:
|
|
117
117
|
|
|
118
118
|
```markdown
|
|
119
119
|
# 📐 Architecture Plan: [Feature Name]
|
|
120
120
|
|
|
121
121
|
> **Architect:** @athena · **Review Gate:** @themis · **Execution Mode:** Strict TDD with Sub-10s Test Slicing
|
|
122
122
|
|
|
123
|
-
###
|
|
123
|
+
### 📋 Executive Summary (Chat Contract)
|
|
124
|
+
- **Goal:** One crisp sentence describing the concrete outcome.
|
|
125
|
+
- **Estimated Effort:** [X minutes / low or medium risk]
|
|
126
|
+
|
|
124
127
|
```mermaid
|
|
125
128
|
flowchart LR
|
|
126
129
|
P1["Phase 1: Model / Schema (@demeter)"] --> P2["Phase 2: Core Logic (@hermes)"]
|
|
@@ -128,36 +131,41 @@ flowchart LR
|
|
|
128
131
|
P3 --> P4["Phase 4: Verification (@themis)"]
|
|
129
132
|
```
|
|
130
133
|
|
|
131
|
-
|
|
134
|
+
| Phase | Specialist | Key Deliverable | Test Slice |
|
|
135
|
+
|---|---|---|---|
|
|
136
|
+
| **1. Data / Contract** | @demeter | Schemas, models & migrations | `npm test tests/models/...` |
|
|
137
|
+
| **2. Core Logic** | @hermes | Service implementation & business rules | `npm test tests/services/...` |
|
|
138
|
+
| **3. Interface / UI** | @aphrodite | Components, styling & accessibility | `npm test tests/ui/...` |
|
|
139
|
+
| **4. Verification** | @themis | Security review & full integration gate | `npm run test:e2e` |
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
### 🛠️ Technical Implementation Blueprint (Saved to Disk)
|
|
144
|
+
|
|
145
|
+
#### Goal, Scope & Context
|
|
132
146
|
- **Goal:** One sentence describing what this plan achieves.
|
|
133
|
-
- **In scope:**
|
|
134
|
-
- **
|
|
135
|
-
- **Assumptions:** [Key assumptions; unverified facts]
|
|
136
|
-
- **Open Questions:** [Critical decisions the user must make, with recommended defaults]
|
|
147
|
+
- **In scope / Out of scope:** Concrete outcomes and exclusions.
|
|
148
|
+
- **Assumptions & Open Questions:** Key assumptions; critical decisions with recommended defaults.
|
|
137
149
|
|
|
138
|
-
|
|
150
|
+
#### Phases & Quality Gates (3-5 max)
|
|
139
151
|
1. **[Phase Name] → @agent**
|
|
140
152
|
- **Goal & Actions:** Outcome and concrete steps (TDD: RED → GREEN → REFACTOR)
|
|
141
153
|
- **Affected files or areas:** Known paths or explicitly mark unknown paths instead of guessing
|
|
142
154
|
- **Dependencies:** Earlier phases or external systems
|
|
143
|
-
- **Tests & Test Slicing:** Exact targeted slice (
|
|
144
|
-
- **Risks & Mitigation:** Specific risk → concrete
|
|
145
|
-
|
|
146
|
-
2. **[Phase Name] → @agent**
|
|
147
|
-
...
|
|
155
|
+
- **Tests & Test Slicing:** Exact targeted slice (< 10s), focused checks, lint-first gate
|
|
156
|
+
- **Risks & Mitigation:** Specific risk → concrete prevention
|
|
148
157
|
|
|
149
|
-
|
|
158
|
+
#### Acceptance Criteria & Verification
|
|
150
159
|
- [ ] Observable completion criterion
|
|
151
|
-
- [ ] Verification criterion (
|
|
160
|
+
- [ ] Verification criterion (targeted tests green, 0 lint warnings)
|
|
152
161
|
|
|
153
|
-
|
|
154
|
-
- **Failure Trigger:** Conditions under which execution aborts
|
|
155
|
-
- **Rollback Steps:** Revert commit / feature flag toggle / database rollback migration
|
|
162
|
+
#### Rollback & Contingency Plan
|
|
163
|
+
- **Failure Trigger:** Conditions under which execution aborts
|
|
164
|
+
- **Rollback Steps:** Revert commit / feature flag toggle / database rollback migration
|
|
156
165
|
```
|
|
157
166
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"approval requested", or content available only in your child-session transcript.
|
|
167
|
+
### Interactive Question Gate
|
|
168
|
+
When directly invoked by the user, if you need trade-off confirmation or final approval, always call the native `question` tool with structured choices (e.g., `["Aprovar e executar", "Ajustar plano"]`), rather than relying solely on unstructured chat text.
|
|
161
169
|
Keep unknown paths and unverified assumptions explicit rather than fabricating
|
|
162
170
|
detail.
|
|
163
171
|
|
package/src/agents/zeus.md
CHANGED
|
@@ -11,6 +11,7 @@ permission:
|
|
|
11
11
|
vision_describe: allow
|
|
12
12
|
pantheon_jev_decide: allow
|
|
13
13
|
pantheon_skill_search: allow
|
|
14
|
+
question: allow
|
|
14
15
|
task:
|
|
15
16
|
"*": allow
|
|
16
17
|
temperature: 0.2
|
|
@@ -97,9 +98,13 @@ Before every dispatch, send the target a concise brief with the objective/result
|
|
|
97
98
|
## Plan Handoff and Approval
|
|
98
99
|
|
|
99
100
|
Whenever the user explicitly asks for a plan, or starts `/pantheon-deepwork`:
|
|
100
|
-
1. Delegate planning to @athena synchronously via `subagent`. Tell Athena to return the
|
|
101
|
-
2. Check that the returned subagent result contains
|
|
102
|
-
3.
|
|
103
|
-
4.
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
1. Delegate planning to @athena synchronously via `subagent`. Tell Athena to return both the Executive Summary and the full technical plan in the subagent result; Zeus owns the user-facing approval gate.
|
|
102
|
+
2. Check that the returned subagent result contains a valid plan with goal, scope, actionable phases, affected files, verification, risks, and acceptance criteria.
|
|
103
|
+
3. Write the full technical blueprint to `.pantheon/deepwork/<slug>/PLAN.md` immediately so the complete specification is permanently available on disk for implementation specialists.
|
|
104
|
+
4. Present a **didactic, visual Executive Decision Summary in chat (1 screen max, ~15-20 lines)**:
|
|
105
|
+
- **Goal & Target:** 1 crisp sentence.
|
|
106
|
+
- **Execution Flow:** Mermaid diagram (3-4 nodes).
|
|
107
|
+
- **Slice Table:** Compact table (`Phase | Specialist | Key Deliverable | Verification Slice`).
|
|
108
|
+
- **Disk Blueprint:** Clear reference that the exhaustive technical spec is preserved in `.pantheon/deepwork/<slug>/PLAN.md`.
|
|
109
|
+
5. **Interactive Question Gate:** Always invoke the native `question` tool to request user approval with explicit options (e.g., `["Aprovar e iniciar execução", "Ajustar plano"]` / `["Approve and begin execution", "Adjust plan"]`), falling back to plain text only if the tool is not exposed.
|
|
110
|
+
6. If the user requests changes, send feedback to Athena, update `.pantheon/deepwork/<slug>/PLAN.md`, and repeat the interactive gate.
|
|
@@ -118,12 +118,20 @@ Object.freeze([
|
|
|
118
118
|
]);
|
|
119
119
|
/**
|
|
120
120
|
* Resolve effective language: 'pt-BR' or 'en'.
|
|
121
|
-
* Defaults to 'pt-BR' if system locale contains 'pt',
|
|
121
|
+
* Defaults to 'pt-BR' if system locale contains 'pt', if Intl locale is pt,
|
|
122
|
+
* or if system timezone is Brazilian/Portuguese; otherwise 'en'.
|
|
122
123
|
*/
|
|
123
124
|
function resolveLanguage(preference = "auto", env = process.env) {
|
|
124
125
|
if (preference === "pt-BR") return "pt-BR";
|
|
125
126
|
if (preference === "en") return "en";
|
|
126
|
-
if ((env.LC_ALL ?? env.LC_MESSAGES ?? env.LANG ?? "").toLowerCase().startsWith("pt")) return "pt-BR";
|
|
127
|
+
if ((env.LC_ALL ?? env.LC_MESSAGES ?? env.LANG ?? env.LANGUAGE ?? "").toLowerCase().startsWith("pt")) return "pt-BR";
|
|
128
|
+
try {
|
|
129
|
+
if (Intl.DateTimeFormat().resolvedOptions().locale.toLowerCase().startsWith("pt")) return "pt-BR";
|
|
130
|
+
} catch {}
|
|
131
|
+
try {
|
|
132
|
+
const tz = (env.TZ ?? Intl.DateTimeFormat().resolvedOptions().timeZone ?? "").toLowerCase();
|
|
133
|
+
if (tz.includes("sao_paulo") || tz.includes("brazil") || tz.includes("fortaleza") || tz.includes("recife") || tz.includes("manaus") || tz.includes("belem") || tz.includes("cuiaba") || tz.includes("campo_grande") || tz.includes("porto_velho") || tz.includes("rio_branco") || tz.includes("boa_vista") || tz.includes("maceio") || tz.includes("bahia") || tz.includes("noronha") || tz.includes("araguaina") || tz.includes("santarem") || tz.includes("lisbon") || tz.includes("madeira") || tz.includes("azores")) return "pt-BR";
|
|
134
|
+
} catch {}
|
|
127
135
|
return "en";
|
|
128
136
|
}
|
|
129
137
|
//#endregion
|
|
@@ -186,11 +194,11 @@ function buildAutonomyTab(input) {
|
|
|
186
194
|
title: isPt ? "Autonomia" : "Autonomy",
|
|
187
195
|
groups: [
|
|
188
196
|
{
|
|
189
|
-
title: isPt ? "
|
|
197
|
+
title: isPt ? "Loop Contínuo (auto-continuação de sessões multi-turn)" : "Auto-Continue Loop (multi-turn session auto-continuation)",
|
|
190
198
|
rows: [
|
|
191
199
|
{
|
|
192
200
|
id: "autonomy.goal_loop.enabled",
|
|
193
|
-
name: isPt ? "
|
|
201
|
+
name: isPt ? "Loop Contínuo" : "Auto-Continue Loop",
|
|
194
202
|
value: input.goalLoop.enabled ? "enabled" : "disabled",
|
|
195
203
|
cycle: GOAL_LOOP_ENABLED_CYCLE,
|
|
196
204
|
note: isPt ? "continua tarefas multi-turn quando a sessão fica ociosa" + (input.goalLoopRestartPending ? " · [!] reinício necessário para aplicar (restart)" : " · aplicado após reiniciar o OpenCode") : "auto-continues multi-turn tasks when session goes idle" + (input.goalLoopRestartPending ? " · [!] restart required to apply" : " · applies after OpenCode restart")
|
|
@@ -212,16 +220,16 @@ function buildAutonomyTab(input) {
|
|
|
212
220
|
]
|
|
213
221
|
},
|
|
214
222
|
{
|
|
215
|
-
title: isPt ? "
|
|
223
|
+
title: isPt ? "Orçamentos de Decisão (Jev)" : "Decision Budgets (Jev)",
|
|
216
224
|
rows: [{
|
|
217
225
|
id: "autonomy.budget.monthly",
|
|
218
|
-
name: isPt ? "Teto
|
|
226
|
+
name: isPt ? "Teto Mensal (USD)" : "Monthly Budget Cap",
|
|
219
227
|
value: formatUsd(input.budgets.monthlyUsd),
|
|
220
228
|
cycle: MONTHLY_USD_CYCLE,
|
|
221
229
|
note: isPt ? "teto mensal em USD para arbitragem do Jev" : "monthly USD ceiling for gated arbitrator decisions"
|
|
222
230
|
}, {
|
|
223
231
|
id: "autonomy.budget.perDecision",
|
|
224
|
-
name: isPt ? "Teto por
|
|
232
|
+
name: isPt ? "Teto por Consulta" : "Per-Decision Cap",
|
|
225
233
|
value: formatUsd(input.budgets.perDecisionUsd),
|
|
226
234
|
cycle: PER_DECISION_USD_CYCLE,
|
|
227
235
|
note: isPt ? "teto de custo por decisão — acima disso é recusada" : "price cap — gated decisions above this are refused"
|
|
@@ -526,13 +534,13 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
|
|
|
526
534
|
const { config, corrupt } = read;
|
|
527
535
|
const rows = [{
|
|
528
536
|
id: "decision.enabled",
|
|
529
|
-
name: isPt ? "Assistente Jev" : "
|
|
537
|
+
name: isPt ? "Assistente Jev" : "Jev Assistant",
|
|
530
538
|
value: config.enabled ? "enabled" : "disabled",
|
|
531
539
|
...corrupt ? {} : { cycle: DECISION_ENABLED_CYCLE },
|
|
532
540
|
note: corrupt ? isPt ? "config inválida — runtime fail-closes; repair via `decision-router setup-model`" : "config unreadable/invalid — runtime fail-closes; repair via `decision-router setup-model`" : isPt ? "applies live — arbitragem de decisões relida em tempo real a cada chamada" : "applies live — the runtime re-reads this on every gated call"
|
|
533
541
|
}, {
|
|
534
542
|
id: "decision.selection.mode",
|
|
535
|
-
name: isPt ? "Modo de
|
|
543
|
+
name: isPt ? "Modo de Operação" : "Operation Mode",
|
|
536
544
|
value: config.selection.mode,
|
|
537
545
|
...corrupt ? {} : { cycle: DECISION_SELECTION_CYCLE },
|
|
538
546
|
note: isPt ? "local = no seu PC (grátis); auto/explícito = modelo nuvem (OpenRouter)" : "local routes on-device; auto/explicit pick a remote decision model"
|
|
@@ -540,7 +548,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
|
|
|
540
548
|
const explicitTarget = config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : DECISION_TARGET_CYCLE[0] ?? "openrouter-jev/typesafe/jev-1.13";
|
|
541
549
|
rows.push({
|
|
542
550
|
id: "decision.selection.target",
|
|
543
|
-
name: isPt ? "Modelo de
|
|
551
|
+
name: isPt ? "Modelo de Decisão" : "Decision Model",
|
|
544
552
|
value: config.selection.mode === "local" ? config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : "local (on-device)" : explicitTarget,
|
|
545
553
|
...corrupt ? {} : { cycle: DECISION_TARGET_CYCLE },
|
|
546
554
|
note: isPt ? config.selection.mode === "local" ? "ciclar seleciona modelo remoto e ativa modo explícito" : "provedor/modelo ativo — define candidato para arbitragem" : config.selection.mode === "local" ? "cycle to select a remote model and activate explicit mode" : "provider/model — sets the candidate list"
|
|
@@ -553,7 +561,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
|
|
|
553
561
|
});
|
|
554
562
|
rows.push({
|
|
555
563
|
id: "decision.consent",
|
|
556
|
-
name: isPt ? "Acesso à
|
|
564
|
+
name: isPt ? "Acesso à Nuvem" : "Cloud API Access",
|
|
557
565
|
value: config.egress_consent ? "granted" : "not granted",
|
|
558
566
|
...corrupt ? {} : { cycle: DECISION_CONSENT_CYCLE },
|
|
559
567
|
note: isPt ? config.egress_consent ? "granted = rotas remotas podem consultar gateway de API (com teto de custo)" : "not granted = chamadas remotas bloqueadas; requer granted para nuvem" : config.egress_consent ? "granted = remote decision routes may call their gateway (budget-capped)" : "not granted = remote routes fail closed; grant to allow cloud calls"
|
|
@@ -562,7 +570,7 @@ function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__
|
|
|
562
570
|
id: "decision",
|
|
563
571
|
title: isPt ? "Decisão" : "Decision",
|
|
564
572
|
groups: [{
|
|
565
|
-
title: isPt ? "Assistente de Decisão" : "Decision
|
|
573
|
+
title: isPt ? "Assistente de Decisão (Jev)" : "Decision Assistant (Jev)",
|
|
566
574
|
rows
|
|
567
575
|
}, {
|
|
568
576
|
title: isPt ? "Credenciais (status apenas — valores nunca gravados na janela)" : "Credentials (status only — values never enter the window)",
|
|
@@ -1111,13 +1119,13 @@ function buildJ1Tab(env, disabledByOverride, languagePref) {
|
|
|
1111
1119
|
const desc = isPt ? MODE_DESCRIPTION_PT[mode] : MODE_DESCRIPTION_EN[mode];
|
|
1112
1120
|
return {
|
|
1113
1121
|
id: "j1",
|
|
1114
|
-
title: isPt ? "Segurança J1" : "J1",
|
|
1122
|
+
title: isPt ? "Segurança J1" : "J1 Safety",
|
|
1115
1123
|
groups: [{
|
|
1116
|
-
title: isPt ? "
|
|
1124
|
+
title: isPt ? "Portão de Segurança (J1)" : "Safety Risk Gate (J1)",
|
|
1117
1125
|
rows: [
|
|
1118
1126
|
{
|
|
1119
1127
|
id: "j1.mode",
|
|
1120
|
-
name: isPt ? "Modo de
|
|
1128
|
+
name: isPt ? "Modo de Operação" : "Operation Mode",
|
|
1121
1129
|
value: mode,
|
|
1122
1130
|
note: `${desc} · ${isPt ? "reinício necessário (restart applies)" : "restart applies"}`
|
|
1123
1131
|
},
|
|
@@ -1129,7 +1137,7 @@ function buildJ1Tab(env, disabledByOverride, languagePref) {
|
|
|
1129
1137
|
},
|
|
1130
1138
|
{
|
|
1131
1139
|
id: "j1.gate",
|
|
1132
|
-
name: isPt ? "
|
|
1140
|
+
name: isPt ? "Portão de Segurança" : "Safety Risk Gate",
|
|
1133
1141
|
value: gateState,
|
|
1134
1142
|
note: `${J1_FLAG_ENV} / ${J1_THRESHOLD_ENV} · ${isPt ? "lido na inicialização" : "read once at startup"}`
|
|
1135
1143
|
}
|
|
@@ -1467,65 +1475,66 @@ const row = (id, name, value, note) => ({
|
|
|
1467
1475
|
cycle: onOff,
|
|
1468
1476
|
note
|
|
1469
1477
|
});
|
|
1470
|
-
function buildTuiTab(prefs) {
|
|
1478
|
+
function buildTuiTab(prefs, languagePref) {
|
|
1479
|
+
const isPt = resolveLanguage(languagePref ?? prefs.layout?.language) === "pt-BR";
|
|
1471
1480
|
return {
|
|
1472
1481
|
id: "tui",
|
|
1473
1482
|
title: "TUI",
|
|
1474
1483
|
groups: [
|
|
1475
1484
|
{
|
|
1476
|
-
title: "Preset & Layout",
|
|
1485
|
+
title: isPt ? "Predefinição & Layout" : "Preset & Layout",
|
|
1477
1486
|
rows: [
|
|
1478
1487
|
{
|
|
1479
1488
|
id: "tui.layout.preset",
|
|
1480
|
-
name: "Layout preset",
|
|
1489
|
+
name: isPt ? "Predefinição de layout" : "Layout preset",
|
|
1481
1490
|
value: prefs.layout?.preset ?? DEFAULT_TUI_PREFS.layout.preset,
|
|
1482
1491
|
cycle: LAYOUT_PRESETS_CYCLE,
|
|
1483
|
-
note: "comfortable | compact — sets spacing & borders"
|
|
1492
|
+
note: isPt ? "comfortable | compact — define espaçamento e bordas" : "comfortable | compact — sets spacing & borders"
|
|
1484
1493
|
},
|
|
1485
1494
|
{
|
|
1486
1495
|
id: "tui.layout.separator",
|
|
1487
|
-
name: "Separator",
|
|
1496
|
+
name: isPt ? "Separador" : "Separator",
|
|
1488
1497
|
value: prefs.layout?.separator ?? DEFAULT_TUI_PREFS.layout.separator,
|
|
1489
1498
|
cycle: SEPARATOR_STYLES_CYCLE,
|
|
1490
|
-
note: "spaces | pipes | dots | slashes — status line glyphs"
|
|
1499
|
+
note: isPt ? "spaces | pipes | dots | slashes — glifos na linha de status" : "spaces | pipes | dots | slashes — status line glyphs"
|
|
1491
1500
|
},
|
|
1492
1501
|
{
|
|
1493
1502
|
id: "tui.layout.settingsView",
|
|
1494
|
-
name: "Settings surface",
|
|
1503
|
+
name: isPt ? "Superfície de configurações" : "Settings surface",
|
|
1495
1504
|
value: tuiRowValue(prefs, "tui.layout.settingsView") ?? "docked",
|
|
1496
1505
|
cycle: SETTINGS_VIEW_MODES,
|
|
1497
|
-
note: "docked (above prompt) | fullscreen router page | dialog overlay"
|
|
1506
|
+
note: isPt ? "docked (acima do prompt) | fullscreen | dialog" : "docked (above prompt) | fullscreen router page | dialog overlay"
|
|
1498
1507
|
},
|
|
1499
1508
|
{
|
|
1500
1509
|
id: "tui.layout.language",
|
|
1501
|
-
name: "Language / Idioma",
|
|
1510
|
+
name: isPt ? "Idioma / Language" : "Language / Idioma",
|
|
1502
1511
|
value: tuiRowValue(prefs, "tui.layout.language") ?? "auto",
|
|
1503
1512
|
cycle: LANGUAGE_CYCLE,
|
|
1504
|
-
note: "auto (
|
|
1513
|
+
note: isPt ? "auto (detecta via fuso/locale) | pt-BR (Português) | en (English)" : "auto (detect via timezone/locale) | pt-BR (Português) | en (English)"
|
|
1505
1514
|
}
|
|
1506
1515
|
]
|
|
1507
1516
|
},
|
|
1508
1517
|
{
|
|
1509
|
-
title: "Bars & Gauges",
|
|
1518
|
+
title: isPt ? "Barras & Medidores" : "Bars & Gauges",
|
|
1510
1519
|
rows: [
|
|
1511
1520
|
{
|
|
1512
1521
|
id: "tui.sidebar.context.barShape",
|
|
1513
|
-
name: "Bar shape",
|
|
1522
|
+
name: isPt ? "Formato da barra" : "Bar shape",
|
|
1514
1523
|
value: prefs.sidebar.context.barShape,
|
|
1515
1524
|
cycle: BAR_SHAPES_CYCLE,
|
|
1516
1525
|
note: "line (━─) | block (▰▱) | smooth (█░) | ascii (=) | dots (●○) | braille"
|
|
1517
1526
|
},
|
|
1518
1527
|
{
|
|
1519
1528
|
id: "tui.sidebar.context.barWidth",
|
|
1520
|
-
name: "Bar width",
|
|
1529
|
+
name: isPt ? "Largura da barra" : "Bar width",
|
|
1521
1530
|
value: prefs.sidebar.context.barWidth,
|
|
1522
1531
|
cycle: BAR_WIDTHS_CYCLE,
|
|
1523
|
-
note: "standard (12) | compact (8) | wide (16) | full (20 cells)"
|
|
1532
|
+
note: isPt ? "standard (12) | compact (8) | wide (16) | full (20 células)" : "standard (12) | compact (8) | wide (16) | full (20 cells)"
|
|
1524
1533
|
},
|
|
1525
|
-
row("tui.sidebar.context.evenMark", "Even-use mark", prefs.sidebar.context.evenMark, "| indicator at 50% midpoint in gauge bars"),
|
|
1534
|
+
row("tui.sidebar.context.evenMark", isPt ? "Marca central (50%)" : "Even-use mark", prefs.sidebar.context.evenMark, isPt ? "| indicador aos 50% nas barras de medição" : "| indicator at 50% midpoint in gauge bars"),
|
|
1526
1535
|
{
|
|
1527
1536
|
id: "tui.sidebar.context.gauge",
|
|
1528
|
-
name: "Gauge style",
|
|
1537
|
+
name: isPt ? "Estilo do medidor" : "Gauge style",
|
|
1529
1538
|
value: prefs.sidebar.context.gauge,
|
|
1530
1539
|
cycle: GAUGE_STYLES,
|
|
1531
1540
|
note: "both | bar | percent | off — `▰▱ 42% of 200k`"
|
|
@@ -1533,35 +1542,35 @@ function buildTuiTab(prefs) {
|
|
|
1533
1542
|
]
|
|
1534
1543
|
},
|
|
1535
1544
|
{
|
|
1536
|
-
title: "Sidebar header",
|
|
1545
|
+
title: isPt ? "Cabeçalho da barra lateral" : "Sidebar header",
|
|
1537
1546
|
rows: [
|
|
1538
|
-
row("tui.sidebar.header.version", "Version line", prefs.sidebar.header.version, "the `Pantheon v…` line"),
|
|
1539
|
-
row("tui.sidebar.header.preset", "Preset line", prefs.sidebar.header.preset, "the `▸ preset · provider` line"),
|
|
1540
|
-
row("tui.sidebar.header.session", "Session line", prefs.sidebar.header.session, "the active session title")
|
|
1547
|
+
row("tui.sidebar.header.version", isPt ? "Linha de versão" : "Version line", prefs.sidebar.header.version, isPt ? "linha `Pantheon v…`" : "the `Pantheon v…` line"),
|
|
1548
|
+
row("tui.sidebar.header.preset", isPt ? "Linha de preset" : "Preset line", prefs.sidebar.header.preset, isPt ? "linha `▸ preset · provider`" : "the `▸ preset · provider` line"),
|
|
1549
|
+
row("tui.sidebar.header.session", isPt ? "Linha de sessão" : "Session line", prefs.sidebar.header.session, isPt ? "título da sessão ativa" : "the active session title")
|
|
1541
1550
|
]
|
|
1542
1551
|
},
|
|
1543
1552
|
{
|
|
1544
|
-
title: "Sidebar blocks",
|
|
1553
|
+
title: isPt ? "Blocos da barra lateral" : "Sidebar blocks",
|
|
1545
1554
|
rows: [
|
|
1546
|
-
row("tui.sidebar.block.context", "Context block", prefs.sidebar.blocks.context, "tokens, gauge, spend, model usage"),
|
|
1547
|
-
row("tui.sidebar.block.git", "Git block", prefs.sidebar.blocks.git, "branch + working-tree counts"),
|
|
1548
|
-
row("tui.sidebar.block.todo", "Todo block", prefs.sidebar.blocks.todo, "the newest todowrite"),
|
|
1549
|
-
row("tui.sidebar.block.dispatch", "Dispatch block", prefs.sidebar.blocks.dispatch, "live delegations + rollup")
|
|
1555
|
+
row("tui.sidebar.block.context", isPt ? "Bloco de contexto" : "Context block", prefs.sidebar.blocks.context, isPt ? "tokens, medidor, custo, uso de modelos" : "tokens, gauge, spend, model usage"),
|
|
1556
|
+
row("tui.sidebar.block.git", isPt ? "Bloco do Git" : "Git block", prefs.sidebar.blocks.git, isPt ? "branch + contagem de alterações" : "branch + working-tree counts"),
|
|
1557
|
+
row("tui.sidebar.block.todo", isPt ? "Bloco Todo" : "Todo block", prefs.sidebar.blocks.todo, isPt ? "tarefas pendentes mais recentes" : "the newest todowrite"),
|
|
1558
|
+
row("tui.sidebar.block.dispatch", isPt ? "Bloco Dispatch" : "Dispatch block", prefs.sidebar.blocks.dispatch, isPt ? "delegações em tempo real" : "live delegations + rollup")
|
|
1550
1559
|
]
|
|
1551
1560
|
},
|
|
1552
1561
|
{
|
|
1553
|
-
title: "Context block detail",
|
|
1562
|
+
title: isPt ? "Detalhe do bloco de contexto" : "Context block detail",
|
|
1554
1563
|
rows: [
|
|
1555
|
-
row("tui.sidebar.context.tokens", "Tokens row", prefs.sidebar.context.tokens, "the raw token count line"),
|
|
1556
|
-
row("tui.sidebar.context.spent", "Spent row", prefs.sidebar.context.spent, "the `$… spent in session` line"),
|
|
1557
|
-
row("tui.sidebar.context.modelUsage", "Model usage table", prefs.sidebar.context.modelUsage, "per-model tokens/USD"),
|
|
1558
|
-
row("tui.sidebar.context.performance", "Performance
|
|
1559
|
-
row("tui.sidebar.context.localSpend", "Local spend", prefs.sidebar.context.localSpend, "hoje / 30d totals")
|
|
1564
|
+
row("tui.sidebar.context.tokens", isPt ? "Linha de tokens" : "Tokens row", prefs.sidebar.context.tokens, isPt ? "contagem bruta de tokens" : "the raw token count line"),
|
|
1565
|
+
row("tui.sidebar.context.spent", isPt ? "Linha de custo" : "Spent row", prefs.sidebar.context.spent, isPt ? "linha `$… gastos na sessão`" : "the `$… spent in session` line"),
|
|
1566
|
+
row("tui.sidebar.context.modelUsage", isPt ? "Tabela de uso de modelos" : "Model usage table", prefs.sidebar.context.modelUsage, isPt ? "resumo de chamadas por modelo" : "per-model tokens/USD"),
|
|
1567
|
+
row("tui.sidebar.context.performance", isPt ? "Linha de desempenho" : "Performance row", prefs.sidebar.context.performance, isPt ? "tokens/segundo e latência" : "cache % + tok/s"),
|
|
1568
|
+
row("tui.sidebar.context.localSpend", isPt ? "Linha de custo local" : "Local spend row", prefs.sidebar.context.localSpend, isPt ? "totais de hoje / 30 dias" : "hoje / 30d totals")
|
|
1560
1569
|
]
|
|
1561
1570
|
},
|
|
1562
1571
|
{
|
|
1563
|
-
title: "Footers",
|
|
1564
|
-
rows: [row("tui.footer.prompt", "Prompt footer", prefs.footer.prompt, "the `▸preset · ✦n ativos` line while delegations run"), row("tui.footer.home", "Home status", prefs.footer.home, "the `Pantheon v…` line under the home prompt")]
|
|
1572
|
+
title: isPt ? "Rodapés" : "Footers",
|
|
1573
|
+
rows: [row("tui.footer.prompt", isPt ? "Prompt inferior" : "Prompt footer", prefs.footer.prompt, isPt ? "linha `▸preset · ✦n ativos` durante delegações" : "the `▸preset · ✦n ativos` line while delegations run"), row("tui.footer.home", isPt ? "Status inicial" : "Home status", prefs.footer.home, isPt ? "linha `Pantheon v…` sob o prompt inicial" : "the `Pantheon v…` line under the home prompt")]
|
|
1565
1574
|
}
|
|
1566
1575
|
]
|
|
1567
1576
|
};
|
|
@@ -1941,7 +1950,7 @@ async function readChangelogForBundle(bundleUrl) {
|
|
|
1941
1950
|
}
|
|
1942
1951
|
/** The ambient build-time version, or null outside a tsdown build. */
|
|
1943
1952
|
function embeddedVersion() {
|
|
1944
|
-
return "2.0.
|
|
1953
|
+
return "2.0.3";
|
|
1945
1954
|
}
|
|
1946
1955
|
/**
|
|
1947
1956
|
* Resolve the running Pantheon version for the what's-new window: the plugin
|
|
@@ -2166,7 +2175,7 @@ function persistUpdateCheckState(previous, latest) {
|
|
|
2166
2175
|
} catch {}
|
|
2167
2176
|
}
|
|
2168
2177
|
function resolveRunningVersion() {
|
|
2169
|
-
return "2.0.
|
|
2178
|
+
return "2.0.3";
|
|
2170
2179
|
}
|
|
2171
2180
|
const VALUE_WIDTH = 24;
|
|
2172
2181
|
function SettingsWindow(props) {
|
|
@@ -2605,12 +2614,12 @@ function createWindowController(context, exit) {
|
|
|
2605
2614
|
return input;
|
|
2606
2615
|
};
|
|
2607
2616
|
const tabs = () => {
|
|
2608
|
-
const lang =
|
|
2617
|
+
const lang = tuiPrefs().layout?.language;
|
|
2609
2618
|
return [
|
|
2610
2619
|
buildGatesTab(load()),
|
|
2611
2620
|
buildDecisionTab(decision(), process.env, readAuthProviders(), readConfigProviders(), lang),
|
|
2612
2621
|
buildPresetTab(presetInput()),
|
|
2613
|
-
buildTuiTab(
|
|
2622
|
+
buildTuiTab(tuiPrefs(), lang),
|
|
2614
2623
|
buildAutonomyTab({
|
|
2615
2624
|
goalLoop: goalLoop(),
|
|
2616
2625
|
budgets: budgets(),
|
|
@@ -6332,7 +6341,7 @@ async function checkForPantheonUpdate(context) {
|
|
|
6332
6341
|
const latest = String((await response.json())?.version ?? "");
|
|
6333
6342
|
if (!latest) return;
|
|
6334
6343
|
const notice = pickUpdateNotice({
|
|
6335
|
-
currentVersion: "2.0.
|
|
6344
|
+
currentVersion: "2.0.3",
|
|
6336
6345
|
latestVersion: latest,
|
|
6337
6346
|
state: readState(),
|
|
6338
6347
|
nowMs: Date.now()
|
|
@@ -7144,7 +7153,7 @@ function Sidebar(props) {
|
|
|
7144
7153
|
get children() {
|
|
7145
7154
|
var _el$13 = createElement("text");
|
|
7146
7155
|
setProp(_el$13, "attributes", 1);
|
|
7147
|
-
insert(_el$13, `Pantheon v2.0.
|
|
7156
|
+
insert(_el$13, `Pantheon v2.0.3`);
|
|
7148
7157
|
effect((_$p) => setProp(_el$13, "fg", text(), _$p));
|
|
7149
7158
|
return _el$13;
|
|
7150
7159
|
}
|
|
@@ -7916,7 +7925,7 @@ function HomeStatus(props) {
|
|
|
7916
7925
|
},
|
|
7917
7926
|
get children() {
|
|
7918
7927
|
var _el$73 = createElement("text");
|
|
7919
|
-
insert(_el$73, () => `Pantheon v2.0.
|
|
7928
|
+
insert(_el$73, () => `Pantheon v2.0.3${preset().name ? ` ▸ ${preset().name}` : ""}`);
|
|
7920
7929
|
effect((_$p) => setProp(_el$73, "fg", muted(), _$p));
|
|
7921
7930
|
return _el$73;
|
|
7922
7931
|
}
|