pantheon-opencode 2.0.1 → 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,21 @@ 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
+
8
23
  ## [v2.0.1] - 2026-11-11
9
24
 
10
25
  ### 🆕 What's New
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "2.0.1",
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.1",
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.1"
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
@@ -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', otherwise 'en'.
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
@@ -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 (LANG/LC_ALL) | pt-BR (Português) | en (English)"
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 line", prefs.sidebar.context.performance, "cache % + tok/s"),
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.1";
1953
+ return "2.0.2";
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.1";
2178
+ return "2.0.2";
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 = savedTuiPrefs().layout?.language;
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(savedTuiPrefs()),
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.1",
6344
+ currentVersion: "2.0.2",
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.1`);
7156
+ insert(_el$13, `Pantheon v2.0.2`);
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.1${preset().name ? ` ▸ ${preset().name}` : ""}`);
7928
+ insert(_el$73, () => `Pantheon v2.0.2${preset().name ? ` ▸ ${preset().name}` : ""}`);
7920
7929
  effect((_$p) => setProp(_el$73, "fg", muted(), _$p));
7921
7930
  return _el$73;
7922
7931
  }