pantheon-opencode 2.0.2 → 2.0.4
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/AGENTS.global.md +1 -1
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +50 -0
- package/README.md +5 -1
- package/README.pt-BR.md +4 -0
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/decision-router-budget.mjs +27 -6
- package/scripts/decision-router.mjs +76 -34
- package/scripts/doctor.mjs +74 -0
- package/scripts/install/decision-router-config.mjs +32 -7
- package/skills-lock.json +1 -1
- package/src/agents/apollo.md +6 -53
- package/src/agents/athena.md +31 -23
- package/src/agents/talos.md +10 -40
- package/src/agents/themis.md +8 -0
- package/src/agents/zeus.md +11 -6
- package/src/pantheon/background-job-board.ts +33 -0
- package/src/pantheon/bus.ts +190 -0
- package/src/pantheon/execution-receipt.ts +113 -0
- package/src/pantheon/jev-decision-tool.ts +8 -2
- package/src/pantheon/local-decision-budget.ts +36 -6
- package/src/pantheon/model-command.ts +2 -4
- package/src/pantheon/prompt-cache-order.ts +89 -0
- package/src/pantheon/themis-reflex.ts +164 -0
- package/src/plugin/index.js +60 -21
- package/src/plugins/tui/dist/tui.js +19 -19
- 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/skills/prompt-refinery/SKILL.md +4 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-tui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pantheon-tui",
|
|
9
|
-
"version": "2.0.
|
|
9
|
+
"version": "2.0.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@opencode/plugin": "2.0.26",
|
|
@@ -91,12 +91,12 @@ export function buildAutonomyTab(input: {
|
|
|
91
91
|
groups: [
|
|
92
92
|
{
|
|
93
93
|
title: isPt
|
|
94
|
-
? '
|
|
95
|
-
: '
|
|
94
|
+
? 'Loop Contínuo (auto-continuação de sessões multi-turn)'
|
|
95
|
+
: 'Auto-Continue Loop (multi-turn session auto-continuation)',
|
|
96
96
|
rows: [
|
|
97
97
|
{
|
|
98
98
|
id: 'autonomy.goal_loop.enabled',
|
|
99
|
-
name: isPt ? '
|
|
99
|
+
name: isPt ? 'Loop Contínuo' : 'Auto-Continue Loop',
|
|
100
100
|
value: input.goalLoop.enabled ? 'enabled' : 'disabled',
|
|
101
101
|
cycle: GOAL_LOOP_ENABLED_CYCLE,
|
|
102
102
|
note: isPt
|
|
@@ -130,13 +130,11 @@ export function buildAutonomyTab(input: {
|
|
|
130
130
|
],
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
title: isPt
|
|
134
|
-
? 'Orçamento Jev (aplicado em tempo real por decisão)'
|
|
135
|
-
: 'Decision budgets (applies live per gated call)',
|
|
133
|
+
title: isPt ? 'Orçamentos de Decisão (Jev)' : 'Decision Budgets (Jev)',
|
|
136
134
|
rows: [
|
|
137
135
|
{
|
|
138
136
|
id: 'autonomy.budget.monthly',
|
|
139
|
-
name: isPt ? 'Teto
|
|
137
|
+
name: isPt ? 'Teto Mensal (USD)' : 'Monthly Budget Cap',
|
|
140
138
|
value: formatUsd(input.budgets.monthlyUsd),
|
|
141
139
|
cycle: MONTHLY_USD_CYCLE,
|
|
142
140
|
note: isPt
|
|
@@ -145,7 +143,7 @@ export function buildAutonomyTab(input: {
|
|
|
145
143
|
},
|
|
146
144
|
{
|
|
147
145
|
id: 'autonomy.budget.perDecision',
|
|
148
|
-
name: isPt ? 'Teto por
|
|
146
|
+
name: isPt ? 'Teto por Consulta' : 'Per-Decision Cap',
|
|
149
147
|
value: formatUsd(input.budgets.perDecisionUsd),
|
|
150
148
|
cycle: PER_DECISION_USD_CYCLE,
|
|
151
149
|
note: isPt
|
|
@@ -349,7 +349,7 @@ export function buildDecisionTab(
|
|
|
349
349
|
const rows: SettingsRow[] = [
|
|
350
350
|
{
|
|
351
351
|
id: 'decision.enabled',
|
|
352
|
-
name: isPt ? 'Assistente Jev' : '
|
|
352
|
+
name: isPt ? 'Assistente Jev' : 'Jev Assistant',
|
|
353
353
|
value: config.enabled ? 'enabled' : 'disabled',
|
|
354
354
|
// Corrupt config → read-only; the notice (glue) carries the remedy.
|
|
355
355
|
...(corrupt ? {} : { cycle: DECISION_ENABLED_CYCLE }),
|
|
@@ -363,7 +363,7 @@ export function buildDecisionTab(
|
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
id: 'decision.selection.mode',
|
|
366
|
-
name: isPt ? 'Modo de
|
|
366
|
+
name: isPt ? 'Modo de Operação' : 'Operation Mode',
|
|
367
367
|
value: config.selection.mode,
|
|
368
368
|
...(corrupt ? {} : { cycle: DECISION_SELECTION_CYCLE }),
|
|
369
369
|
note: isPt
|
|
@@ -378,7 +378,7 @@ export function buildDecisionTab(
|
|
|
378
378
|
: (DECISION_TARGET_CYCLE[0] ?? 'openrouter-jev/typesafe/jev-1.13')
|
|
379
379
|
rows.push({
|
|
380
380
|
id: 'decision.selection.target',
|
|
381
|
-
name: isPt ? 'Modelo de
|
|
381
|
+
name: isPt ? 'Modelo de Decisão' : 'Decision Model',
|
|
382
382
|
value:
|
|
383
383
|
config.selection.mode === 'local'
|
|
384
384
|
? config.selection.provider
|
|
@@ -412,7 +412,7 @@ export function buildDecisionTab(
|
|
|
412
412
|
|
|
413
413
|
rows.push({
|
|
414
414
|
id: 'decision.consent',
|
|
415
|
-
name: isPt ? 'Acesso à
|
|
415
|
+
name: isPt ? 'Acesso à Nuvem' : 'Cloud API Access',
|
|
416
416
|
value: config.egress_consent ? 'granted' : 'not granted',
|
|
417
417
|
...(corrupt ? {} : { cycle: DECISION_CONSENT_CYCLE }),
|
|
418
418
|
note: isPt
|
|
@@ -428,7 +428,7 @@ export function buildDecisionTab(
|
|
|
428
428
|
id: 'decision',
|
|
429
429
|
title: isPt ? 'Decisão' : 'Decision',
|
|
430
430
|
groups: [
|
|
431
|
-
{ title: isPt ? 'Assistente de Decisão' : 'Decision
|
|
431
|
+
{ title: isPt ? 'Assistente de Decisão (Jev)' : 'Decision Assistant (Jev)', rows },
|
|
432
432
|
{
|
|
433
433
|
title: isPt
|
|
434
434
|
? 'Credenciais (status apenas — valores nunca gravados na janela)'
|
|
@@ -70,16 +70,14 @@ export function buildJ1Tab(
|
|
|
70
70
|
|
|
71
71
|
return {
|
|
72
72
|
id: 'j1',
|
|
73
|
-
title: isPt ? 'Segurança J1' : 'J1',
|
|
73
|
+
title: isPt ? 'Segurança J1' : 'J1 Safety',
|
|
74
74
|
groups: [
|
|
75
75
|
{
|
|
76
|
-
title: isPt
|
|
77
|
-
? 'Nível de Segurança e Portão de Risco J1 (env-only)'
|
|
78
|
-
: 'Safety Level & Risk Gate (J1) (env-only — never written here)',
|
|
76
|
+
title: isPt ? 'Portão de Segurança (J1)' : 'Safety Risk Gate (J1)',
|
|
79
77
|
rows: [
|
|
80
78
|
{
|
|
81
79
|
id: 'j1.mode',
|
|
82
|
-
name: isPt ? 'Modo de
|
|
80
|
+
name: isPt ? 'Modo de Operação' : 'Operation Mode',
|
|
83
81
|
value: mode,
|
|
84
82
|
note: `${desc} · ${isPt ? 'reinício necessário (restart applies)' : 'restart applies'}`,
|
|
85
83
|
},
|
|
@@ -93,7 +91,7 @@ export function buildJ1Tab(
|
|
|
93
91
|
},
|
|
94
92
|
{
|
|
95
93
|
id: 'j1.gate',
|
|
96
|
-
name: isPt ? '
|
|
94
|
+
name: isPt ? 'Portão de Segurança' : 'Safety Risk Gate',
|
|
97
95
|
value: gateState,
|
|
98
96
|
note: `${J1_FLAG_ENV} / ${J1_THRESHOLD_ENV} · ${isPt ? 'lido na inicialização' : 'read once at startup'}`,
|
|
99
97
|
},
|
|
@@ -70,7 +70,7 @@ Presented to user for confirmation before starting:
|
|
|
70
70
|
2. **Tier 2 Requires `>>`:** Only explicit `>>` prefix requests trigger user-visible contract confirmation.
|
|
71
71
|
3. **Language Consistency:** Always preserve the user's language (PT-BR requests produce PT-BR briefs).
|
|
72
72
|
4. **Fail-Open:** Any error during refinement falls back to the original prompt without blocking.
|
|
73
|
-
5. **Ambiguity Resolution:**
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
- Non-blocking gaps use sensible declared defaults.
|
|
73
|
+
5. **Interactive Questioning & Ambiguity Resolution:**
|
|
74
|
+
- Whenever prompt refinement requires user disambiguation or confirmation of critical trade-offs, **always invoke the native `question` tool** with structured choices and marked defaults.
|
|
75
|
+
- With decision router active, use `pantheon_jev_decide` (mode: `choice`) for internal candidate scoring.
|
|
76
|
+
- Non-blocking minor gaps use sensible declared defaults without stalling the flow.
|