pantheon-opencode 2.0.0 → 2.0.1
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 +47 -9
- package/README.md +13 -2
- package/README.pt-BR.md +13 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/src/agents/athena.md +14 -7
- package/src/instructions/zeus-council-synthesis.instructions.md +28 -9
- package/src/plugins/tui/dist/tui.js +124 -72
- 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 +51 -22
- package/src/plugins/tui/src/decision-router-state.ts +59 -24
- package/src/plugins/tui/src/j1-gate-status.ts +26 -9
- package/src/plugins/tui/src/pantheon-settings.tsx +24 -20
- package/src/plugins/tui/src/settings-i18n.ts +203 -0
- package/src/plugins/tui/src/tui-prefs.ts +25 -0
|
@@ -111,6 +111,21 @@ function formatSpent(cost) {
|
|
|
111
111
|
const MODEL_USAGE_VISIBLE_CEILING = 3;
|
|
112
112
|
const MODEL_USAGE_MESSAGE_LIMIT = 400;
|
|
113
113
|
const MODEL_USAGE_SESSION_LIMIT = 8;
|
|
114
|
+
Object.freeze([
|
|
115
|
+
"auto",
|
|
116
|
+
"pt-BR",
|
|
117
|
+
"en"
|
|
118
|
+
]);
|
|
119
|
+
/**
|
|
120
|
+
* Resolve effective language: 'pt-BR' or 'en'.
|
|
121
|
+
* Defaults to 'pt-BR' if system locale contains 'pt', otherwise 'en'.
|
|
122
|
+
*/
|
|
123
|
+
function resolveLanguage(preference = "auto", env = process.env) {
|
|
124
|
+
if (preference === "pt-BR") return "pt-BR";
|
|
125
|
+
if (preference === "en") return "en";
|
|
126
|
+
if ((env.LC_ALL ?? env.LC_MESSAGES ?? env.LANG ?? "").toLowerCase().startsWith("pt")) return "pt-BR";
|
|
127
|
+
return "en";
|
|
128
|
+
}
|
|
114
129
|
//#endregion
|
|
115
130
|
//#region src/autonomy-state.ts
|
|
116
131
|
const DEFAULT_GOAL_LOOP_PREFS = {
|
|
@@ -165,72 +180,73 @@ function parseUsd(cell) {
|
|
|
165
180
|
return Number.isFinite(value) && value > 0 ? value : null;
|
|
166
181
|
}
|
|
167
182
|
function buildAutonomyTab(input) {
|
|
183
|
+
const isPt = resolveLanguage(input.languagePref) === "pt-BR";
|
|
168
184
|
return {
|
|
169
185
|
id: "autonomy",
|
|
170
|
-
title: "Autonomy",
|
|
186
|
+
title: isPt ? "Autonomia" : "Autonomy",
|
|
171
187
|
groups: [
|
|
172
188
|
{
|
|
173
|
-
title: "Goal loop (multi-turn session auto-continuation)",
|
|
189
|
+
title: isPt ? "Goal loop (auto-continuação de sessões multi-turn)" : "Goal loop (multi-turn session auto-continuation)",
|
|
174
190
|
rows: [
|
|
175
191
|
{
|
|
176
192
|
id: "autonomy.goal_loop.enabled",
|
|
177
|
-
name: "Goal loop",
|
|
193
|
+
name: isPt ? "Goal loop" : "Goal loop",
|
|
178
194
|
value: input.goalLoop.enabled ? "enabled" : "disabled",
|
|
179
195
|
cycle: GOAL_LOOP_ENABLED_CYCLE,
|
|
180
|
-
note: "auto-continues multi-turn tasks when session goes idle" + (input.goalLoopRestartPending ? " · [!] restart required to apply" : " · applies after OpenCode restart")
|
|
196
|
+
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")
|
|
181
197
|
},
|
|
182
198
|
{
|
|
183
199
|
id: "autonomy.goal_loop.maxContinuations",
|
|
184
|
-
name: "Max continuations",
|
|
200
|
+
name: isPt ? "Limite continuações" : "Max continuations",
|
|
185
201
|
value: String(input.goalLoop.maxContinuations),
|
|
186
202
|
cycle: MAX_CONTINUATIONS_CYCLE,
|
|
187
|
-
note: "1..200 — safety ceiling to prevent runaway tasks"
|
|
203
|
+
note: isPt ? "1..200 — teto de segurança contra loops infinitos" : "1..200 — safety ceiling to prevent runaway tasks"
|
|
188
204
|
},
|
|
189
205
|
{
|
|
190
206
|
id: "autonomy.goal_loop.cooldownMs",
|
|
191
|
-
name: "Cooldown (ms)",
|
|
207
|
+
name: isPt ? "Pausa entre turnos (ms)" : "Cooldown (ms)",
|
|
192
208
|
value: String(input.goalLoop.cooldownMs),
|
|
193
209
|
cycle: COOLDOWN_MS_CYCLE,
|
|
194
|
-
note: "delay between autonomous turns (min 1000ms)"
|
|
210
|
+
note: isPt ? "intervalo entre turnos autônomos (mín 1000ms)" : "delay between autonomous turns (min 1000ms)"
|
|
195
211
|
}
|
|
196
212
|
]
|
|
197
213
|
},
|
|
198
214
|
{
|
|
199
|
-
title: "Decision budgets (applies live per gated call)",
|
|
215
|
+
title: isPt ? "Orçamento Jev (aplicado em tempo real por decisão)" : "Decision budgets (applies live per gated call)",
|
|
200
216
|
rows: [{
|
|
201
217
|
id: "autonomy.budget.monthly",
|
|
202
|
-
name: "Monthly cap",
|
|
218
|
+
name: isPt ? "Teto mensal" : "Monthly cap",
|
|
203
219
|
value: formatUsd(input.budgets.monthlyUsd),
|
|
204
220
|
cycle: MONTHLY_USD_CYCLE,
|
|
205
|
-
note: "monthly USD ceiling for gated arbitrator decisions"
|
|
221
|
+
note: isPt ? "teto mensal em USD para arbitragem do Jev" : "monthly USD ceiling for gated arbitrator decisions"
|
|
206
222
|
}, {
|
|
207
223
|
id: "autonomy.budget.perDecision",
|
|
208
|
-
name: "Per-decision cap",
|
|
224
|
+
name: isPt ? "Teto por decisão" : "Per-decision cap",
|
|
209
225
|
value: formatUsd(input.budgets.perDecisionUsd),
|
|
210
226
|
cycle: PER_DECISION_USD_CYCLE,
|
|
211
|
-
note: "price cap — gated decisions above this are refused"
|
|
227
|
+
note: isPt ? "teto de custo por decisão — acima disso é recusada" : "price cap — gated decisions above this are refused"
|
|
212
228
|
}]
|
|
213
229
|
},
|
|
214
230
|
{
|
|
215
|
-
title: "Decision gradient (reference policy · J1 owns the risk axis)",
|
|
231
|
+
title: isPt ? "Gradiente de decisão (política de referência · J1 governa o risco)" : "Decision gradient (reference policy · J1 owns the risk axis)",
|
|
216
232
|
rows: [
|
|
217
233
|
{
|
|
218
234
|
id: "autonomy.gradient.solo",
|
|
219
235
|
name: "Decide solo",
|
|
220
236
|
value: "autonomous",
|
|
221
|
-
note: "reversible & low-risk edits, routine fixes (no gate)"
|
|
237
|
+
note: isPt ? "edições reversíveis e rotineiras, sem travas (baixo risco)" : "reversible & low-risk edits, routine fixes (no gate)"
|
|
222
238
|
},
|
|
223
239
|
{
|
|
224
240
|
id: "autonomy.gradient.jev",
|
|
225
241
|
name: "Jev decides",
|
|
226
242
|
value: "arbitrated",
|
|
227
|
-
note: "typed ambiguity & candidate ranking (budget-capped)"
|
|
243
|
+
note: isPt ? "ambiguidade de tipos e ranqueamento de candidatos (com teto de custo)" : "typed ambiguity & candidate ranking (budget-capped)"
|
|
228
244
|
},
|
|
229
245
|
{
|
|
230
246
|
id: "autonomy.gradient.human",
|
|
231
247
|
name: "Human decides",
|
|
232
248
|
value: "human review",
|
|
233
|
-
note: "high-risk & destructive operations (J1 gate)"
|
|
249
|
+
note: isPt ? "operações de alto risco ou destrutivas (portão J1)" : "high-risk & destructive operations (J1 gate)"
|
|
234
250
|
}
|
|
235
251
|
]
|
|
236
252
|
}
|
|
@@ -505,49 +521,51 @@ function credentialStatus(provider, env, authProviders, configProviders) {
|
|
|
505
521
|
if (provider === "opencode-console-jev") return "auth store";
|
|
506
522
|
return "missing";
|
|
507
523
|
}
|
|
508
|
-
function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__ */ new Set(), configProviders = /* @__PURE__ */ new Set()) {
|
|
524
|
+
function buildDecisionTab(read, env = process.env, authProviders = /* @__PURE__ */ new Set(), configProviders = /* @__PURE__ */ new Set(), languagePref) {
|
|
525
|
+
const isPt = resolveLanguage(languagePref, env) === "pt-BR";
|
|
509
526
|
const { config, corrupt } = read;
|
|
510
527
|
const rows = [{
|
|
511
528
|
id: "decision.enabled",
|
|
512
|
-
name: "Router",
|
|
529
|
+
name: isPt ? "Assistente Jev" : "Router",
|
|
513
530
|
value: config.enabled ? "enabled" : "disabled",
|
|
514
531
|
...corrupt ? {} : { cycle: DECISION_ENABLED_CYCLE },
|
|
515
|
-
note: corrupt ? "config unreadable/invalid — runtime fail-closes; repair via `decision-router setup-model`" : "applies live — the runtime re-reads this on every gated call"
|
|
532
|
+
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"
|
|
516
533
|
}, {
|
|
517
534
|
id: "decision.selection.mode",
|
|
518
|
-
name: "Selection mode",
|
|
535
|
+
name: isPt ? "Modo de operação" : "Selection mode",
|
|
519
536
|
value: config.selection.mode,
|
|
520
537
|
...corrupt ? {} : { cycle: DECISION_SELECTION_CYCLE },
|
|
521
|
-
note: "local routes on-device; auto/explicit pick a remote decision model"
|
|
538
|
+
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"
|
|
522
539
|
}];
|
|
523
|
-
|
|
540
|
+
const explicitTarget = config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : DECISION_TARGET_CYCLE[0] ?? "openrouter-jev/typesafe/jev-1.13";
|
|
541
|
+
rows.push({
|
|
524
542
|
id: "decision.selection.target",
|
|
525
|
-
name: "Explicit target",
|
|
526
|
-
value: config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : "
|
|
527
|
-
...corrupt
|
|
528
|
-
note: "provider/model — sets the candidate list"
|
|
543
|
+
name: isPt ? "Modelo de decisão" : "Explicit target",
|
|
544
|
+
value: config.selection.mode === "local" ? config.selection.provider ? `${config.selection.provider}/${config.selection.model ?? ""}` : "local (on-device)" : explicitTarget,
|
|
545
|
+
...corrupt ? {} : { cycle: DECISION_TARGET_CYCLE },
|
|
546
|
+
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"
|
|
529
547
|
});
|
|
530
|
-
if (config.enabled_candidates
|
|
548
|
+
if ((config.enabled_candidates?.length ?? 0) > 0) rows.push({
|
|
531
549
|
id: "decision.candidates",
|
|
532
|
-
name: "Candidates",
|
|
550
|
+
name: isPt ? "Candidatos ativos" : "Candidates",
|
|
533
551
|
value: String(config.enabled_candidates.length),
|
|
534
|
-
note: config.egress_consent ? config.enabled_candidates.map((candidate) => `${candidate.provider}/${candidate.model}`).join(", ") : "egress consent NOT granted — remote routes fail closed"
|
|
552
|
+
note: config.egress_consent ? config.enabled_candidates.map((candidate) => `${candidate.provider}/${candidate.model}`).join(", ") : isPt ? "egress consent NÃO concedido — rotas remotas bloqueadas" : "egress consent NOT granted — remote routes fail closed"
|
|
535
553
|
});
|
|
536
554
|
rows.push({
|
|
537
555
|
id: "decision.consent",
|
|
538
|
-
name: "Egress consent",
|
|
556
|
+
name: isPt ? "Acesso à nuvem (Egress)" : "Egress consent",
|
|
539
557
|
value: config.egress_consent ? "granted" : "not granted",
|
|
540
558
|
...corrupt ? {} : { cycle: DECISION_CONSENT_CYCLE },
|
|
541
|
-
note: "granted = remote decision routes may call their gateway (budget-capped)"
|
|
559
|
+
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"
|
|
542
560
|
});
|
|
543
561
|
return {
|
|
544
562
|
id: "decision",
|
|
545
|
-
title: "Decision",
|
|
563
|
+
title: isPt ? "Decisão" : "Decision",
|
|
546
564
|
groups: [{
|
|
547
|
-
title: "Decision router",
|
|
565
|
+
title: isPt ? "Assistente de Decisão" : "Decision router",
|
|
548
566
|
rows
|
|
549
567
|
}, {
|
|
550
|
-
title: "Credentials (status only — values never enter the window)",
|
|
568
|
+
title: isPt ? "Credenciais (status apenas — valores nunca gravados na janela)" : "Credentials (status only — values never enter the window)",
|
|
551
569
|
rows: DECISION_KNOWN_PROVIDERS.map((provider) => {
|
|
552
570
|
const status = credentialStatus(provider, env, authProviders, configProviders);
|
|
553
571
|
const credential = DECISION_PROVIDER_CREDENTIALS[provider] ?? { note: "" };
|
|
@@ -1073,39 +1091,47 @@ function j1ThresholdFromEnv(env = process.env) {
|
|
|
1073
1091
|
if (!Number.isFinite(raw) || raw < 0 || raw > 1) return J1_THRESHOLD_DEFAULT;
|
|
1074
1092
|
return raw;
|
|
1075
1093
|
}
|
|
1076
|
-
const
|
|
1094
|
+
const MODE_DESCRIPTION_EN = {
|
|
1077
1095
|
off: "nothing fires (hard zero)",
|
|
1078
1096
|
shadow: "observe + record; invisible in the session",
|
|
1079
1097
|
warn: "RESERVED — behaves as shadow in this release",
|
|
1080
1098
|
enforce: "high-risk scores DENY the tool call (fail-open on gate unavailability)"
|
|
1081
1099
|
};
|
|
1082
|
-
|
|
1100
|
+
const MODE_DESCRIPTION_PT = {
|
|
1101
|
+
off: "desativado (hard zero)",
|
|
1102
|
+
shadow: "observa + registra telemetria (modo silencioso)",
|
|
1103
|
+
warn: "RESERVADO (RESERVED) — comporta-se como shadow nesta versão",
|
|
1104
|
+
enforce: "alto risco bloqueia a ferramenta (fail-open se indisponível)"
|
|
1105
|
+
};
|
|
1106
|
+
function buildJ1Tab(env, disabledByOverride, languagePref) {
|
|
1107
|
+
const isPt = resolveLanguage(languagePref) === "pt-BR";
|
|
1083
1108
|
const mode = j1ModeFromEnv(env);
|
|
1084
1109
|
const threshold = j1ThresholdFromEnv(env);
|
|
1085
1110
|
const gateState = disabledByOverride ? "disabled via overrides" : mode === "off" ? "off (env unset)" : "active";
|
|
1111
|
+
const desc = isPt ? MODE_DESCRIPTION_PT[mode] : MODE_DESCRIPTION_EN[mode];
|
|
1086
1112
|
return {
|
|
1087
1113
|
id: "j1",
|
|
1088
|
-
title: "J1",
|
|
1114
|
+
title: isPt ? "Segurança J1" : "J1",
|
|
1089
1115
|
groups: [{
|
|
1090
|
-
title: "
|
|
1116
|
+
title: isPt ? "Nível de Segurança e Portão de Risco J1 (env-only)" : "Safety Level & Risk Gate (J1) (env-only — never written here)",
|
|
1091
1117
|
rows: [
|
|
1092
1118
|
{
|
|
1093
1119
|
id: "j1.mode",
|
|
1094
|
-
name: "Mode",
|
|
1120
|
+
name: isPt ? "Modo de execução" : "Mode",
|
|
1095
1121
|
value: mode,
|
|
1096
|
-
note: `${
|
|
1122
|
+
note: `${desc} · ${isPt ? "reinício necessário (restart applies)" : "restart applies"}`
|
|
1097
1123
|
},
|
|
1098
1124
|
{
|
|
1099
1125
|
id: "j1.threshold",
|
|
1100
|
-
name: "Enforce threshold",
|
|
1126
|
+
name: isPt ? "Limiar de bloqueio" : "Enforce threshold",
|
|
1101
1127
|
value: String(threshold),
|
|
1102
|
-
note: "deny at or above · 0..1 · default 0.8"
|
|
1128
|
+
note: isPt ? "bloqueia em ou acima · 0..1 · padrão 0.8" : "deny at or above · 0..1 · default 0.8"
|
|
1103
1129
|
},
|
|
1104
1130
|
{
|
|
1105
1131
|
id: "j1.gate",
|
|
1106
|
-
name: "Gate",
|
|
1132
|
+
name: isPt ? "Estado do portão" : "Gate",
|
|
1107
1133
|
value: gateState,
|
|
1108
|
-
note: `${J1_FLAG_ENV} / ${J1_THRESHOLD_ENV} · read once at startup`
|
|
1134
|
+
note: `${J1_FLAG_ENV} / ${J1_THRESHOLD_ENV} · ${isPt ? "lido na inicialização" : "read once at startup"}`
|
|
1109
1135
|
}
|
|
1110
1136
|
]
|
|
1111
1137
|
}]
|
|
@@ -1333,12 +1359,18 @@ const SETTINGS_VIEW_MODES = Object.freeze([
|
|
|
1333
1359
|
"fullscreen",
|
|
1334
1360
|
"dialog"
|
|
1335
1361
|
]);
|
|
1362
|
+
const LANGUAGE_CYCLE = Object.freeze([
|
|
1363
|
+
"auto",
|
|
1364
|
+
"pt-BR",
|
|
1365
|
+
"en"
|
|
1366
|
+
]);
|
|
1336
1367
|
const DEFAULT_TUI_PREFS = {
|
|
1337
1368
|
version: 1,
|
|
1338
1369
|
layout: {
|
|
1339
1370
|
preset: "comfortable",
|
|
1340
1371
|
separator: "spaces",
|
|
1341
|
-
settingsView: "fullscreen"
|
|
1372
|
+
settingsView: "fullscreen",
|
|
1373
|
+
language: "auto"
|
|
1342
1374
|
},
|
|
1343
1375
|
sidebar: {
|
|
1344
1376
|
header: {
|
|
@@ -1384,6 +1416,7 @@ function normalizeTuiPrefs(raw) {
|
|
|
1384
1416
|
const preset = LAYOUT_PRESETS_CYCLE.includes(layout.preset) ? layout.preset : DEFAULT_TUI_PREFS.layout.preset;
|
|
1385
1417
|
const separator = SEPARATOR_STYLES_CYCLE.includes(layout.separator) ? layout.separator : DEFAULT_TUI_PREFS.layout.separator;
|
|
1386
1418
|
const settingsView = SETTINGS_VIEW_MODES.includes(layout.settingsView) ? layout.settingsView : DEFAULT_TUI_PREFS.layout.settingsView;
|
|
1419
|
+
const language = LANGUAGE_CYCLE.includes(layout.language) ? layout.language : DEFAULT_TUI_PREFS.layout.language;
|
|
1387
1420
|
const gauge = GAUGE_STYLES.includes(context.gauge) ? context.gauge : DEFAULT_TUI_PREFS.sidebar.context.gauge;
|
|
1388
1421
|
const barShape = BAR_SHAPES_CYCLE.includes(context.barShape) ? context.barShape : DEFAULT_TUI_PREFS.sidebar.context.barShape;
|
|
1389
1422
|
const barWidth = BAR_WIDTHS_CYCLE.includes(context.barWidth) ? context.barWidth : DEFAULT_TUI_PREFS.sidebar.context.barWidth;
|
|
@@ -1393,7 +1426,8 @@ function normalizeTuiPrefs(raw) {
|
|
|
1393
1426
|
layout: {
|
|
1394
1427
|
preset,
|
|
1395
1428
|
separator,
|
|
1396
|
-
settingsView
|
|
1429
|
+
settingsView,
|
|
1430
|
+
language
|
|
1397
1431
|
},
|
|
1398
1432
|
sidebar: {
|
|
1399
1433
|
header: {
|
|
@@ -1461,6 +1495,13 @@ function buildTuiTab(prefs) {
|
|
|
1461
1495
|
value: tuiRowValue(prefs, "tui.layout.settingsView") ?? "docked",
|
|
1462
1496
|
cycle: SETTINGS_VIEW_MODES,
|
|
1463
1497
|
note: "docked (above prompt) | fullscreen router page | dialog overlay"
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
id: "tui.layout.language",
|
|
1501
|
+
name: "Language / Idioma",
|
|
1502
|
+
value: tuiRowValue(prefs, "tui.layout.language") ?? "auto",
|
|
1503
|
+
cycle: LANGUAGE_CYCLE,
|
|
1504
|
+
note: "auto (LANG/LC_ALL) | pt-BR (Português) | en (English)"
|
|
1464
1505
|
}
|
|
1465
1506
|
]
|
|
1466
1507
|
},
|
|
@@ -1550,6 +1591,12 @@ function applyTuiRow(draft, id, value) {
|
|
|
1550
1591
|
draft.layout.settingsView = value;
|
|
1551
1592
|
}
|
|
1552
1593
|
return;
|
|
1594
|
+
case "tui.layout.language":
|
|
1595
|
+
if (LANGUAGE_CYCLE.includes(value)) {
|
|
1596
|
+
if (!draft.layout) draft.layout = { ...DEFAULT_TUI_PREFS.layout };
|
|
1597
|
+
draft.layout.language = value;
|
|
1598
|
+
}
|
|
1599
|
+
return;
|
|
1553
1600
|
case "tui.sidebar.context.barShape":
|
|
1554
1601
|
if (BAR_SHAPES_CYCLE.includes(value)) draft.sidebar.context.barShape = value;
|
|
1555
1602
|
return;
|
|
@@ -1612,6 +1659,7 @@ function tuiRowValue(prefs, id) {
|
|
|
1612
1659
|
if (id === "tui.layout.preset") return prefs.layout?.preset ?? DEFAULT_TUI_PREFS.layout.preset;
|
|
1613
1660
|
if (id === "tui.layout.separator") return prefs.layout?.separator ?? DEFAULT_TUI_PREFS.layout.separator;
|
|
1614
1661
|
if (id === "tui.layout.settingsView") return prefs.layout?.settingsView ?? DEFAULT_TUI_PREFS.layout.settingsView ?? "docked";
|
|
1662
|
+
if (id === "tui.layout.language") return prefs.layout?.language ?? "auto";
|
|
1615
1663
|
if (id === "tui.sidebar.context.barShape") return prefs.sidebar.context.barShape;
|
|
1616
1664
|
if (id === "tui.sidebar.context.barWidth") return prefs.sidebar.context.barWidth;
|
|
1617
1665
|
if (id === "tui.sidebar.context.gauge") return prefs.sidebar.context.gauge;
|
|
@@ -1893,7 +1941,7 @@ async function readChangelogForBundle(bundleUrl) {
|
|
|
1893
1941
|
}
|
|
1894
1942
|
/** The ambient build-time version, or null outside a tsdown build. */
|
|
1895
1943
|
function embeddedVersion() {
|
|
1896
|
-
return "2.0.
|
|
1944
|
+
return "2.0.1";
|
|
1897
1945
|
}
|
|
1898
1946
|
/**
|
|
1899
1947
|
* Resolve the running Pantheon version for the what's-new window: the plugin
|
|
@@ -2118,7 +2166,7 @@ function persistUpdateCheckState(previous, latest) {
|
|
|
2118
2166
|
} catch {}
|
|
2119
2167
|
}
|
|
2120
2168
|
function resolveRunningVersion() {
|
|
2121
|
-
return "2.0.
|
|
2169
|
+
return "2.0.1";
|
|
2122
2170
|
}
|
|
2123
2171
|
const VALUE_WIDTH = 24;
|
|
2124
2172
|
function SettingsWindow(props) {
|
|
@@ -2556,26 +2604,30 @@ function createWindowController(context, exit) {
|
|
|
2556
2604
|
if (seen !== void 0) input.lastCheckedVersion = seen;
|
|
2557
2605
|
return input;
|
|
2558
2606
|
};
|
|
2559
|
-
const tabs = () =>
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2607
|
+
const tabs = () => {
|
|
2608
|
+
const lang = savedTuiPrefs().layout?.language;
|
|
2609
|
+
return [
|
|
2610
|
+
buildGatesTab(load()),
|
|
2611
|
+
buildDecisionTab(decision(), process.env, readAuthProviders(), readConfigProviders(), lang),
|
|
2612
|
+
buildPresetTab(presetInput()),
|
|
2613
|
+
buildTuiTab(savedTuiPrefs()),
|
|
2614
|
+
buildAutonomyTab({
|
|
2615
|
+
goalLoop: goalLoop(),
|
|
2616
|
+
budgets: budgets(),
|
|
2617
|
+
goalLoopRestartPending: autonomyRestartPending(),
|
|
2618
|
+
languagePref: lang
|
|
2619
|
+
}),
|
|
2620
|
+
buildJ1Tab(process.env, false, lang),
|
|
2621
|
+
buildUpdatesTab(updatesInput()),
|
|
2622
|
+
buildChangelogTab(currentVersion, changelogItems()),
|
|
2623
|
+
buildDoctorTab({
|
|
2624
|
+
runningVersion: currentVersion,
|
|
2625
|
+
nodeVersion: process.versions.node,
|
|
2626
|
+
load: load()
|
|
2627
|
+
}),
|
|
2628
|
+
buildAboutTab(currentVersion)
|
|
2629
|
+
];
|
|
2630
|
+
};
|
|
2579
2631
|
const rows = () => tabRows(tabs()[page()] ?? tabs()[0] ?? EMPTY_TAB);
|
|
2580
2632
|
const move = (delta) => {
|
|
2581
2633
|
if (confirmExit()) setConfirmExit(false);
|
|
@@ -6280,7 +6332,7 @@ async function checkForPantheonUpdate(context) {
|
|
|
6280
6332
|
const latest = String((await response.json())?.version ?? "");
|
|
6281
6333
|
if (!latest) return;
|
|
6282
6334
|
const notice = pickUpdateNotice({
|
|
6283
|
-
currentVersion: "2.0.
|
|
6335
|
+
currentVersion: "2.0.1",
|
|
6284
6336
|
latestVersion: latest,
|
|
6285
6337
|
state: readState(),
|
|
6286
6338
|
nowMs: Date.now()
|
|
@@ -7092,7 +7144,7 @@ function Sidebar(props) {
|
|
|
7092
7144
|
get children() {
|
|
7093
7145
|
var _el$13 = createElement("text");
|
|
7094
7146
|
setProp(_el$13, "attributes", 1);
|
|
7095
|
-
insert(_el$13, `Pantheon v2.0.
|
|
7147
|
+
insert(_el$13, `Pantheon v2.0.1`);
|
|
7096
7148
|
effect((_$p) => setProp(_el$13, "fg", text(), _$p));
|
|
7097
7149
|
return _el$13;
|
|
7098
7150
|
}
|
|
@@ -7864,7 +7916,7 @@ function HomeStatus(props) {
|
|
|
7864
7916
|
},
|
|
7865
7917
|
get children() {
|
|
7866
7918
|
var _el$73 = createElement("text");
|
|
7867
|
-
insert(_el$73, () => `Pantheon v2.0.
|
|
7919
|
+
insert(_el$73, () => `Pantheon v2.0.1${preset().name ? ` ▸ ${preset().name}` : ""}`);
|
|
7868
7920
|
effect((_$p) => setProp(_el$73, "fg", muted(), _$p));
|
|
7869
7921
|
return _el$73;
|
|
7870
7922
|
}
|