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
|
@@ -180,6 +180,9 @@ export type BarWidthPref = 'standard' | 'compact' | 'wide' | 'full'
|
|
|
180
180
|
export type LayoutPresetPref = 'comfortable' | 'compact'
|
|
181
181
|
export type SeparatorStylePref = 'spaces' | 'pipes' | 'dots' | 'slashes'
|
|
182
182
|
export type SettingsViewModePref = 'docked' | 'fullscreen' | 'dialog'
|
|
183
|
+
export type LanguagePref = 'auto' | 'pt-BR' | 'en'
|
|
184
|
+
|
|
185
|
+
export const LANGUAGE_CYCLE: readonly string[] = Object.freeze(['auto', 'pt-BR', 'en'])
|
|
183
186
|
|
|
184
187
|
export interface TuiPrefs {
|
|
185
188
|
version: 1
|
|
@@ -187,6 +190,7 @@ export interface TuiPrefs {
|
|
|
187
190
|
preset: LayoutPresetPref
|
|
188
191
|
separator: SeparatorStylePref
|
|
189
192
|
settingsView?: SettingsViewModePref
|
|
193
|
+
language?: LanguagePref
|
|
190
194
|
}
|
|
191
195
|
sidebar: {
|
|
192
196
|
header: { version: boolean; preset: boolean; session: boolean }
|
|
@@ -212,6 +216,7 @@ export const DEFAULT_TUI_PREFS: TuiPrefs = {
|
|
|
212
216
|
preset: 'comfortable',
|
|
213
217
|
separator: 'spaces',
|
|
214
218
|
settingsView: 'fullscreen',
|
|
219
|
+
language: 'auto',
|
|
215
220
|
},
|
|
216
221
|
sidebar: {
|
|
217
222
|
header: { version: true, preset: true, session: true },
|
|
@@ -267,6 +272,11 @@ export function normalizeTuiPrefs(raw: unknown): TuiPrefs {
|
|
|
267
272
|
? layout.settingsView
|
|
268
273
|
: DEFAULT_TUI_PREFS.layout.settingsView
|
|
269
274
|
) as SettingsViewModePref
|
|
275
|
+
const language = (
|
|
276
|
+
LANGUAGE_CYCLE.includes(layout.language as string)
|
|
277
|
+
? layout.language
|
|
278
|
+
: DEFAULT_TUI_PREFS.layout.language
|
|
279
|
+
) as LanguagePref
|
|
270
280
|
const gauge = GAUGE_STYLES.includes(context.gauge as string)
|
|
271
281
|
? (context.gauge as GaugeStyle)
|
|
272
282
|
: DEFAULT_TUI_PREFS.sidebar.context.gauge
|
|
@@ -284,6 +294,7 @@ export function normalizeTuiPrefs(raw: unknown): TuiPrefs {
|
|
|
284
294
|
preset,
|
|
285
295
|
separator,
|
|
286
296
|
settingsView,
|
|
297
|
+
language,
|
|
287
298
|
},
|
|
288
299
|
sidebar: {
|
|
289
300
|
header: {
|
|
@@ -356,6 +367,13 @@ export function buildTuiTab(prefs: TuiPrefs): SettingsTab {
|
|
|
356
367
|
cycle: SETTINGS_VIEW_MODES,
|
|
357
368
|
note: 'docked (above prompt) | fullscreen router page | dialog overlay',
|
|
358
369
|
},
|
|
370
|
+
{
|
|
371
|
+
id: 'tui.layout.language',
|
|
372
|
+
name: 'Language / Idioma',
|
|
373
|
+
value: tuiRowValue(prefs, 'tui.layout.language') ?? 'auto',
|
|
374
|
+
cycle: LANGUAGE_CYCLE,
|
|
375
|
+
note: 'auto (LANG/LC_ALL) | pt-BR (Português) | en (English)',
|
|
376
|
+
},
|
|
359
377
|
],
|
|
360
378
|
},
|
|
361
379
|
{
|
|
@@ -523,6 +541,12 @@ export function applyTuiRow(draft: TuiPrefs, id: string, value: string): void {
|
|
|
523
541
|
draft.layout.settingsView = value as SettingsViewModePref
|
|
524
542
|
}
|
|
525
543
|
return
|
|
544
|
+
case 'tui.layout.language':
|
|
545
|
+
if (LANGUAGE_CYCLE.includes(value)) {
|
|
546
|
+
if (!draft.layout) draft.layout = { ...DEFAULT_TUI_PREFS.layout }
|
|
547
|
+
draft.layout.language = value as LanguagePref
|
|
548
|
+
}
|
|
549
|
+
return
|
|
526
550
|
case 'tui.sidebar.context.barShape':
|
|
527
551
|
if (BAR_SHAPES_CYCLE.includes(value)) draft.sidebar.context.barShape = value as BarShapePref
|
|
528
552
|
return
|
|
@@ -589,6 +613,7 @@ export function tuiRowValue(prefs: TuiPrefs, id: string): string | undefined {
|
|
|
589
613
|
return prefs.layout?.separator ?? DEFAULT_TUI_PREFS.layout.separator
|
|
590
614
|
if (id === 'tui.layout.settingsView')
|
|
591
615
|
return prefs.layout?.settingsView ?? DEFAULT_TUI_PREFS.layout.settingsView ?? 'docked'
|
|
616
|
+
if (id === 'tui.layout.language') return prefs.layout?.language ?? 'auto'
|
|
592
617
|
if (id === 'tui.sidebar.context.barShape') return prefs.sidebar.context.barShape
|
|
593
618
|
if (id === 'tui.sidebar.context.barWidth') return prefs.sidebar.context.barWidth
|
|
594
619
|
if (id === 'tui.sidebar.context.gauge') return prefs.sidebar.context.gauge
|