pantheon-opencode 1.6.0-beta.12 → 1.6.0-beta.14

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.
@@ -63,6 +63,7 @@ import {
63
63
  } from './plan.mjs'
64
64
  import { findPlanDrift } from './plan-artifact.mjs'
65
65
  import { copyPluginFiles, installPlugin, registerPlugin, unregisterPlugin } from './plugin.mjs'
66
+ import { PROMPT_CANCELED } from './prompt-result.mjs'
66
67
  import {
67
68
  checkRuntimePrerequisites,
68
69
  collectSkillNames,
@@ -857,8 +858,9 @@ export function setupRuntimePhase(
857
858
  const S = strings()
858
859
  const setup = deps.setupVenv ?? setupVenv
859
860
  const check = deps.healthCheck ?? healthCheck
861
+ let stopProgress
860
862
  try {
861
- const venvSpinner = spinner(S.settingUpRuntime)
863
+ stopProgress = spinner(S.settingUpRuntime)
862
864
  setup(target, {
863
865
  dryRun,
864
866
  force: clean,
@@ -866,25 +868,29 @@ export function setupRuntimePhase(
866
868
  reviewedRemovals,
867
869
  reviewedSnapshots,
868
870
  })
869
- venvSpinner(true)
871
+ stopProgress(true)
872
+ stopProgress = null
870
873
  const runtimeTarget = isGlobal ? target : join(target, '.opencode')
871
874
  const health = check(runtimeTarget, { dryRun, pythonTarget: target })
872
875
 
873
- section(`\uD83D\uDD0D ${S.healthSection}`)
874
- const healthStep = step(S.runningHealthChecks)
876
+ section(S.healthSection)
877
+ stopProgress = step(S.runningHealthChecks)
875
878
  for (const p of health.passed) success(`${p.check}: ${p.detail}`)
876
879
  for (const w of health.warnings) warning(`${w.check}: ${w.detail}`)
877
880
  for (const f of health.failed) error(`${f.check}: ${f.detail}`)
878
881
 
879
882
  if (health.failed.length > 0) {
880
- healthStep(false)
883
+ stopProgress(false)
884
+ stopProgress = null
881
885
  warning(`${health.failed.length} check(s) failed — review above`)
882
886
  stats.warnings += health.failed.length
883
887
  return false
884
888
  }
885
- healthStep(true)
889
+ stopProgress(true)
890
+ stopProgress = null
886
891
  return true
887
892
  } catch (err) {
893
+ stopProgress?.(false)
888
894
  error(S.runtimeFailed(err.message))
889
895
  warning(S.runtimeSkippedMcp)
890
896
  stats.warnings += 1
@@ -1058,7 +1064,9 @@ async function installPass(
1058
1064
  target = join(homedir(), '.config', 'opencode')
1059
1065
  }
1060
1066
 
1061
- const componentSet = new Set(components)
1067
+ const componentSet = new Set(
1068
+ opts.noMcp ? components.filter((component) => component !== 'runtime') : components,
1069
+ )
1062
1070
  const stats = summary.opencode
1063
1071
  // Per-call baseline. `stats` is the module-level cumulative summary, so the
1064
1072
  // consistency guard must compare against THIS call's delta, not the total.
@@ -1113,6 +1121,12 @@ async function installPass(
1113
1121
  ...opts,
1114
1122
  skipProbe: dryRun,
1115
1123
  })
1124
+ if (version === 'v2' && opts.preset) {
1125
+ throw new Error(
1126
+ '--preset is not supported for OpenCode V2 because V2 ignores the legacy active-preset marker. ' +
1127
+ 'Configure models using V2-native OpenCode configuration instead.',
1128
+ )
1129
+ }
1116
1130
  const versionAssumed =
1117
1131
  dryRun &&
1118
1132
  (opts.version ?? 'auto') === 'auto' &&
@@ -1149,18 +1163,35 @@ async function installPass(
1149
1163
 
1150
1164
  if (interactive && !dryRun) {
1151
1165
  const { runInteractiveInstall } = await import('./interactive.mjs')
1166
+ const hasRequestedComponents = Array.isArray(opts.requestedComponents)
1167
+ const promptComponents = hasRequestedComponents ? opts.requestedComponents : components
1168
+ const promptDefaults = hasRequestedComponents
1169
+ ? []
1170
+ : opts.noMcp
1171
+ ? COMPONENT_NAMES.filter((component) => component !== 'runtime')
1172
+ : COMPONENT_NAMES
1152
1173
  const result = await runInteractiveInstall({
1153
- components,
1154
- defaultComponents: COMPONENT_NAMES,
1174
+ components: promptComponents,
1175
+ defaultComponents: promptDefaults,
1176
+ noMcp: opts.noMcp === true,
1177
+ prompts: opts.deps?.prompts,
1178
+ isTTY: opts.deps?.isTTY,
1155
1179
  })
1156
1180
 
1157
- if (!result.confirmed && !autoYes) {
1181
+ if (result.canceled) {
1182
+ info('Installation canceled.')
1183
+ return { ...stats, applied: false, reason: 'canceled' }
1184
+ }
1185
+
1186
+ if (!result.confirmed) {
1158
1187
  info('Installation canceled.')
1159
1188
  return { ...stats, applied: false, reason: 'canceled' }
1160
1189
  }
1161
1190
 
1162
1191
  // Map target selection to actual path
1163
- const newComponents = [...result.components]
1192
+ const newComponents = [...result.components].filter(
1193
+ (component) => !opts.noMcp || component !== 'runtime',
1194
+ )
1164
1195
  componentSet.clear()
1165
1196
  for (const c of newComponents) componentSet.add(c)
1166
1197
 
@@ -1266,7 +1297,13 @@ async function installPass(
1266
1297
  const ask = typeof injected === 'function' ? injected : promptReview
1267
1298
  const accepted = await ask(`Apply these ${planned?.planned ?? 0} changes?`, {
1268
1299
  default: false,
1300
+ prompts: opts.deps?.prompts,
1301
+ isTTY: opts.deps?.isTTY,
1269
1302
  })
1303
+ if (accepted === PROMPT_CANCELED) {
1304
+ info(S.nothingApplied)
1305
+ return { ...stats, applied: false, reason: 'canceled' }
1306
+ }
1270
1307
  if (!accepted) {
1271
1308
  info(S.nothingApplied)
1272
1309
  return { ...stats, applied: false, reason: 'declined' }
@@ -1371,7 +1408,7 @@ async function installPass(
1371
1408
  // 1. Install agents (--components agents)
1372
1409
  // -----------------------------------------------------------------------
1373
1410
  if (componentSet.has('agents')) {
1374
- section('\uD83D\uDCE6 Agents')
1411
+ section('Agents')
1375
1412
  const srcDir = join(ROOT, 'src', 'agents')
1376
1413
  if (!sourceDirValid(srcDir)) {
1377
1414
  warning(`Agent source directory not found: ${srcDir}`)
@@ -1424,7 +1461,7 @@ async function installPass(
1424
1461
  // 2. Install skills (--components skills)
1425
1462
  // -----------------------------------------------------------------------
1426
1463
  if (componentSet.has('skills')) {
1427
- section('\uD83D\uDCDA Skills')
1464
+ section('Skills')
1428
1465
  const skillNames = collectSkillNames()
1429
1466
  if (skillNames.length > 0) {
1430
1467
  const skillStep = step(`Installing ${skillNames.length} skills`)
@@ -1470,7 +1507,7 @@ async function installPass(
1470
1507
  // writeAgentsMdManaged is conservative: content outside the managed region
1471
1508
  // is never deleted, and a legacy fully-generated file upgrades in place.
1472
1509
  if (componentSet.has('instructions')) {
1473
- section('\uD83D\uDCCB Instructions')
1510
+ section('Instructions')
1474
1511
  const srcAgentsMd = isGlobal ? join(ROOT, 'AGENTS.global.md') : join(ROOT, 'AGENTS.md')
1475
1512
  const dstAgentsMd = join(target, 'AGENTS.md')
1476
1513
  if (existsSync(srcAgentsMd)) {
@@ -1508,7 +1545,7 @@ async function installPass(
1508
1545
  // 2.6 Install prompts (--components prompts)
1509
1546
  // -----------------------------------------------------------------------
1510
1547
  if (componentSet.has('prompts')) {
1511
- section('\uD83D\uDCAC Prompts')
1548
+ section('Prompts')
1512
1549
  const srcPrompts = join(ROOT, 'prompts')
1513
1550
  const dstPrompts = join(target, 'prompts')
1514
1551
  if (existsSync(srcPrompts)) {
@@ -1531,7 +1568,7 @@ async function installPass(
1531
1568
  // 2.7 Install commands (--components commands)
1532
1569
  // -----------------------------------------------------------------------
1533
1570
  if (componentSet.has('commands')) {
1534
- section('\u26A1 Commands')
1571
+ section('Commands')
1535
1572
  const srcCmds = join(ROOT, 'commands')
1536
1573
  // V2 project sandboxes use OPENCODE_CONFIG_DIR=<project root>, so OpenCode
1537
1574
  // discovers custom commands from <target>/commands. V1 project installs
@@ -1566,7 +1603,7 @@ async function installPass(
1566
1603
  // 2.8 Install TUI plugins (--components plugins)
1567
1604
  // -----------------------------------------------------------------------
1568
1605
  if (componentSet.has('plugins')) {
1569
- section('\uD83D\uDD0C Plugins')
1606
+ section('Plugins')
1570
1607
  const srcPluginDir = join(ROOT, 'src', 'plugins', 'tui')
1571
1608
  const dstPluginDir = isGlobal
1572
1609
  ? join(target, 'plugins', 'pantheon-tui')
@@ -1612,7 +1649,7 @@ async function installPass(
1612
1649
  // MCP server scripts, code-mode scripts, tiers.json
1613
1650
  // -----------------------------------------------------------------------
1614
1651
  if (componentSet.has('runtime')) {
1615
- section('\u2699\uFE0F Runtime')
1652
+ section('Runtime')
1616
1653
  const runtimeTarget = isGlobal ? target : join(target, '.opencode')
1617
1654
 
1618
1655
  // ── MCP server scripts ──
@@ -1736,6 +1773,7 @@ async function installPass(
1736
1773
  target,
1737
1774
  { dryRun, clean, isGlobal, recorder, reviewedRemovals, reviewedSnapshots },
1738
1775
  stats,
1776
+ opts.deps,
1739
1777
  )
1740
1778
  }
1741
1779
 
@@ -2337,14 +2375,13 @@ async function installPass(
2337
2375
  process.stdout.write(
2338
2376
  ` ${colors.dim('\u2500'.repeat(Math.min(process.stdout.columns || 60, 60)))}\n`,
2339
2377
  )
2340
- process.stdout.write(` ${colors.green('\u2713')} ${created} component(s) installed\n`)
2378
+ process.stdout.write(` [OK] ${created} component(s) installed\n`)
2341
2379
  if (skipped > 0)
2342
2380
  process.stdout.write(` ${colors.dim('\u2014')} ${skipped} already up-to-date\n`)
2343
- if (errors > 0)
2344
- process.stdout.write(` ${colors.yellow('\u26a0')} ${errors} error(s) encountered\n`)
2381
+ if (errors > 0) process.stdout.write(` [WARN] ${errors} error(s) encountered\n`)
2345
2382
  if (warnings > 0)
2346
2383
  process.stdout.write(
2347
- ` ${colors.yellow('\u26a0')} ${warnings} warning(s) — run 'pantheon-opencode doctor' for details\n`,
2384
+ ` [WARN] ${warnings} warning(s) — run 'pantheon-opencode doctor' for details\n`,
2348
2385
  )
2349
2386
  process.stdout.write('\n')
2350
2387
  process.stdout.write(` ${colors.bold('Next steps:')}\n`)
@@ -2360,14 +2397,15 @@ async function installPass(
2360
2397
  }
2361
2398
 
2362
2399
  // -----------------------------------------------------------------------
2363
- // 5. Model preset selection (--components agents). Interactive wizard runs
2364
- // unless autoYes (use defaults) or an explicit --preset was given.
2400
+ // 5. V1 model preset selection (--components agents). V2 ignores the legacy
2401
+ // active-preset marker, so it has no profile wizard or --preset support.
2402
+ // The V1 interactive wizard runs unless autoYes or an explicit preset was given.
2365
2403
  // Q1 default "herdar do chat" (inherit) writes no active-preset.json —
2366
2404
  // delegates inherit the parent chat model (native inheritance).
2367
2405
  // -----------------------------------------------------------------------
2368
- if (interactive && !dryRun && !autoYes && !opts.preset) {
2406
+ if (interactive && stdinTTY && version === 'v1' && !dryRun && !autoYes && !opts.preset) {
2369
2407
  const { runInitWizard } = await import('./model-picker.mjs')
2370
- await runInitWizard({ presetDir: target, logger: console })
2408
+ await runInitWizard({ presetDir: target, logger: console, prompts: opts.deps?.prompts })
2371
2409
  }
2372
2410
 
2373
2411
  if (opts.preset && !dryRun) {
@@ -2383,7 +2421,8 @@ async function installPass(
2383
2421
  // must never fail the install: vision stays optional.
2384
2422
  // -----------------------------------------------------------------------
2385
2423
  if (interactive && !dryRun && !autoYes) {
2386
- const { runVisionPrompt } = await import('./vision-prompt.mjs')
2424
+ const runVisionPrompt =
2425
+ opts.deps?.runVisionPrompt ?? (await import('./vision-prompt.mjs')).runVisionPrompt
2387
2426
  try {
2388
2427
  await runVisionPrompt({ logger: console })
2389
2428
  } catch (err) {
@@ -0,0 +1,2 @@
1
+ /** Sentinel returned when the user cancels an interactive authorization prompt. */
2
+ export const PROMPT_CANCELED = Symbol('pantheon-prompt-canceled')
@@ -19,12 +19,14 @@ import {
19
19
  } from 'node:fs'
20
20
  import { dirname, join } from 'node:path'
21
21
  import { fileURLToPath } from 'node:url'
22
- import { isSupportedNodeVersion, MIN_SUPPORTED_NODE_VERSION } from '../node-engine-policy.mjs'
22
+ import {
23
+ isSupportedNodeVersion,
24
+ MIN_SUPPORTED_NODE_VERSION,
25
+ unsupportedNodeVersionMessage,
26
+ } from '../node-engine-policy.mjs'
23
27
 
24
28
  if (!isSupportedNodeVersion(process.versions.node)) {
25
- console.error(
26
- `❌ Pantheon requires Node.js >= ${MIN_SUPPORTED_NODE_VERSION} (current: ${process.versions.node})`,
27
- )
29
+ console.error(unsupportedNodeVersionMessage(process.versions.node))
28
30
  process.exit(1)
29
31
  }
30
32
 
@@ -138,7 +140,7 @@ export function parseArgs(argv) {
138
140
  args.help = true
139
141
  break
140
142
  default:
141
- console.warn(`⚠️ Unknown option: ${argv[i]}`)
143
+ console.warn(`[WARN] Unknown option: ${argv[i]}`)
142
144
  break
143
145
  }
144
146
  }
@@ -163,12 +165,12 @@ export function resolveTarget(target) {
163
165
  export function detectAndReport(target) {
164
166
  const found = detectPlatforms(target).length > 0
165
167
 
166
- console.log(`\n 🔍 Pantheon Platform Detection`)
168
+ console.log(`\n Pantheon Platform Detection`)
167
169
  console.log(` Target: ${target}\n`)
168
170
 
169
171
  console.log(` ${'Platform'.padEnd(12)} ${'Detected?'.padEnd(12)} Config file`)
170
172
  console.log(` ${'─'.repeat(55)}`)
171
- const status = (found ? '✅ YES' : '❌ no').padEnd(12)
173
+ const status = (found ? '[OK] yes' : '[MISSING]').padEnd(12)
172
174
  console.log(` ${'OpenCode'.padEnd(12)} ${status} ${found ? 'opencode.json' : '(not found)'}`)
173
175
  console.log(`\n 📊 ${found ? 1 : 0} of 1 platforms detected.`)
174
176
  if (found) {
@@ -811,7 +813,7 @@ export function printSummary(target, platforms) {
811
813
  totalSkipped += stats.skipped
812
814
  totalErrors += stats.errors
813
815
 
814
- const status = stats.errors > 0 ? '⚠️' : '✅'
816
+ const status = stats.errors > 0 ? '[WARN]' : '[OK]'
815
817
  console.log(
816
818
  ` ${status} ${label}: ${stats.created} created, ${stats.skipped} skipped${stats.errors > 0 ? `, ${stats.errors} errors` : ''}`,
817
819
  )
@@ -823,7 +825,7 @@ export function printSummary(target, platforms) {
823
825
  )
824
826
 
825
827
  if (totalErrors > 0) {
826
- console.log(' ⚠️ Some platforms had errors — review warnings above.')
828
+ console.log(' [WARN] Some platforms had errors — review warnings above.')
827
829
  }
828
830
 
829
831
  console.log('')
@@ -16,13 +16,13 @@ const TABLE = {
16
16
  dryRun: 'DRY RUN',
17
17
  canceled: 'Installation canceled — nothing was broken; run init again anytime.',
18
18
  canceledShort: 'Installation canceled.',
19
- installFailed: (msg) => `❌ Installation failed: ${msg}`,
19
+ installFailed: (msg) => `Installation failed: ${msg}`,
20
20
  failHintNoMcp:
21
21
  ' Run with --no-mcp to skip Python dependencies:\n npx pantheon-opencode init --no-mcp',
22
22
  failHintForce:
23
23
  ' Or retry with --force to recreate the venv:\n npx pantheon-opencode init --force',
24
24
  runningHealthCheck: 'Running health check...',
25
- installedTitle: (v) => `✅ Pantheon OpenCode v${v} installed!`,
25
+ installedTitle: (v) => `Pantheon OpenCode v${v} installed.`,
26
26
  nextSteps: 'Next steps:',
27
27
  nextVerify: '1. Verify installation:\n npx pantheon-opencode doctor',
28
28
  nextLaunch: '2. Launch OpenCode',
@@ -51,7 +51,7 @@ const TABLE = {
51
51
  planOnlyNoYes: 'Plan only — re-run with --yes to apply.',
52
52
  driftHeader: 'State changed since preview — aborting before any write:',
53
53
  driftAbort: 'No files were written. Re-run to re-review.',
54
- applyFailed: (msg) => `❌ Apply failed: ${msg}`,
54
+ applyFailed: (msg) => `Apply failed: ${msg}`,
55
55
  alreadyApplied: 'Paths already applied — no automatic rollback:',
56
56
  restoreRecoveryHint: (dir) => `Recover with: pantheon-opencode restore (backup at ${dir})`,
57
57
  restoreNoBackup:
@@ -74,13 +74,13 @@ const TABLE = {
74
74
  dryRun: 'SIMULAÇÃO',
75
75
  canceled: 'Instalação cancelada — nada foi quebrado; rode init de novo quando quiser.',
76
76
  canceledShort: 'Instalação cancelada.',
77
- installFailed: (msg) => `❌ Instalação falhou: ${msg}`,
77
+ installFailed: (msg) => `Instalação falhou: ${msg}`,
78
78
  failHintNoMcp:
79
79
  ' Rode com --no-mcp para pular dependências Python:\n npx pantheon-opencode init --no-mcp',
80
80
  failHintForce:
81
81
  ' Ou tente de novo com --force para recriar a venv:\n npx pantheon-opencode init --force',
82
82
  runningHealthCheck: 'Rodando verificação de saúde...',
83
- installedTitle: (v) => `✅ Pantheon OpenCode v${v} instalado!`,
83
+ installedTitle: (v) => `Pantheon OpenCode v${v} instalado.`,
84
84
  nextSteps: 'Próximos passos:',
85
85
  nextVerify: '1. Verifique a instalação:\n npx pantheon-opencode doctor',
86
86
  nextLaunch: '2. Abra o OpenCode',
@@ -109,7 +109,7 @@ const TABLE = {
109
109
  planOnlyNoYes: 'Apenas o plano — rode de novo com --yes para aplicar.',
110
110
  driftHeader: 'O estado mudou desde o preview — abortando antes de qualquer escrita:',
111
111
  driftAbort: 'Nenhum arquivo foi escrito. Rode de novo para revisar.',
112
- applyFailed: (msg) => `❌ Falha ao aplicar: ${msg}`,
112
+ applyFailed: (msg) => `Falha ao aplicar: ${msg}`,
113
113
  alreadyApplied: 'Caminhos já aplicados — sem rollback automático:',
114
114
  restoreRecoveryHint: (dir) => `Recupere com: pantheon-opencode restore (backup em ${dir})`,
115
115
  restoreNoBackup:
@@ -67,7 +67,7 @@ export function setupVenv(
67
67
  console.log(' Removing existing .venv (--force)...')
68
68
  removeReviewedTree(venvPath, reviewedRemovals, reviewedSnapshots)
69
69
  }
70
- console.log(' ✅ .venv removed')
70
+ console.log(' [OK] .venv removed')
71
71
  }
72
72
 
73
73
  // Step 1b: Create venv if not exists
@@ -83,7 +83,7 @@ export function setupVenv(
83
83
  throw new Error('Failed to create virtual environment')
84
84
  }
85
85
  }
86
- console.log(' ✅ .venv created')
86
+ console.log(' [OK] .venv created')
87
87
  // A single synthetic entry for the venv directory — never enumerate its
88
88
  // thousands of files. Unscored: the install summary does not count it.
89
89
  recordChange({ path: venvPath, action: ACTIONS.CREATE, bytes: 0, scored: false }, recorder)
@@ -123,7 +123,7 @@ export function setupVenv(
123
123
 
124
124
  if (r.status !== 0) {
125
125
  // Attempt 2: --break-system-packages (PEP 668 / externally-managed)
126
- console.log(' ⚠️ First attempt failed, retrying with --break-system-packages...')
126
+ console.log(' [WARN] First attempt failed, retrying with --break-system-packages...')
127
127
  const r2 = spawnSync(pip, ['install', '-r', reqFile, '--break-system-packages'], {
128
128
  stdio: 'inherit',
129
129
  timeout: 120_000,
@@ -141,7 +141,7 @@ export function setupVenv(
141
141
  }
142
142
  }
143
143
  }
144
- console.log(' ✅ MCP dependencies installed')
144
+ console.log(' [OK] MCP dependencies installed')
145
145
  } else {
146
146
  console.log(' ⏭️ Dependency install skipped (--skip-install)')
147
147
  }
@@ -164,7 +164,7 @@ function main() {
164
164
  const result = setupVenv(target, { dryRun, skipInstall, force })
165
165
  console.log(` 📍 Python: ${result.python}`)
166
166
  } catch (err) {
167
- console.error(`\n ❌ ${err.message}`)
167
+ console.error(`\n [ERROR] ${err.message}`)
168
168
  process.exit(1)
169
169
  }
170
170
  }
@@ -4,6 +4,17 @@ import { join } from 'node:path'
4
4
  export const MIN_SUPPORTED_NODE_VERSION = '26.4.0'
5
5
  export const REQUIRED_NODE_ENGINE_RANGE = `>=${MIN_SUPPORTED_NODE_VERSION}`
6
6
 
7
+ /** Return actionable, user-managed upgrade guidance for an unsupported runtime. */
8
+ export function unsupportedNodeVersionMessage(version) {
9
+ return [
10
+ `❌ Pantheon requires Node.js >= ${MIN_SUPPORTED_NODE_VERSION} (current: ${version})`,
11
+ ' Install and switch with a user-managed Node version manager:',
12
+ ` nvm install ${MIN_SUPPORTED_NODE_VERSION} && nvm use ${MIN_SUPPORTED_NODE_VERSION}`,
13
+ ` fnm install ${MIN_SUPPORTED_NODE_VERSION} && fnm use ${MIN_SUPPORTED_NODE_VERSION}`,
14
+ ` volta install node@${MIN_SUPPORTED_NODE_VERSION}`,
15
+ ].join('\n')
16
+ }
17
+
7
18
  function parseNodeVersion(version) {
8
19
  const match = /^v?(\d+)\.(\d+)\.(\d+)(?:-([^+]+))?(?:\+([\w.-]+))?$/.exec(String(version))
9
20
  if (!match) return null
@@ -5,36 +5,37 @@
5
5
  * Runs after `npm install` completes. Validates environment and prints
6
6
  * setup instructions. Does NOT install Pantheon platform components.
7
7
  */
8
- import { isSupportedNodeVersion, MIN_SUPPORTED_NODE_VERSION } from './node-engine-policy.mjs'
8
+ import { isSupportedNodeVersion, unsupportedNodeVersionMessage } from './node-engine-policy.mjs'
9
9
 
10
10
  try {
11
- // Validate Node.js version
11
+ // npm may warn about `engines.node`, but must still finish installing so the
12
+ // bin can print the actionable hard-gate message. No Node-dependent setup is
13
+ // attempted from an incompatible lifecycle runtime.
12
14
  if (!isSupportedNodeVersion(process.versions.node)) {
13
- console.error(
14
- `❌ Pantheon requires Node.js >= ${MIN_SUPPORTED_NODE_VERSION} (current: ${process.versions.node})`,
15
+ console.warn(
16
+ `⚠️ Pantheon postinstall skipped because this runtime is unsupported.\n${unsupportedNodeVersionMessage(process.versions.node)}\n Switch to Node.js >= 26.4.0 before running Pantheon setup.`,
15
17
  )
16
- process.exit(1)
17
- }
18
+ } else {
19
+ // Validate js-yaml is available
20
+ try {
21
+ await import('js-yaml')
22
+ } catch {
23
+ console.warn('⚠️ js-yaml not found — run `npm install` to install dependencies')
24
+ }
18
25
 
19
- // Validate js-yaml is available
20
- try {
21
- await import('js-yaml')
22
- } catch {
23
- console.warn('⚠️ js-yaml not found — run `npm install` to install dependencies')
26
+ console.log('')
27
+ console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
28
+ console.log(' Pantheon OpenCode — npm dependencies installed ✅')
29
+ console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
30
+ console.log('')
31
+ console.log(' Next steps:')
32
+ console.log(' 1. Configure Pantheon:')
33
+ console.log(' npm run setup')
34
+ console.log(' # or: npx pantheon-opencode init')
35
+ console.log(' 2. Verify installation:')
36
+ console.log(' npm run doctor')
37
+ console.log('')
24
38
  }
25
-
26
- console.log('')
27
- console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
28
- console.log(' Pantheon OpenCode — npm dependencies installed ✅')
29
- console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━')
30
- console.log('')
31
- console.log(' Next steps:')
32
- console.log(' 1. Configure Pantheon:')
33
- console.log(' npm run setup')
34
- console.log(' # or: npx pantheon-opencode init')
35
- console.log(' 2. Verify installation:')
36
- console.log(' npm run doctor')
37
- console.log('')
38
39
  } catch (err) {
39
40
  console.error(`❌ Post-install check failed: ${err.message}`)
40
41
  process.exit(1)
@@ -15,6 +15,7 @@ import { homedir } from 'node:os'
15
15
  import { join } from 'node:path'
16
16
  import { fileURLToPath, pathToFileURL } from 'node:url'
17
17
  import { resolveOpenCodeVersion } from './install/opencode-version.mjs'
18
+ import { isSupportedNodeVersion } from './node-engine-policy.mjs'
18
19
 
19
20
  const __dirname = fileURLToPath(new URL('.', import.meta.url))
20
21
  const ROOT = join(__dirname, '..')
@@ -257,7 +258,10 @@ async function main() {
257
258
  const isDirectRun =
258
259
  Boolean(process.argv[1]) && pathToFileURL(process.argv[1]).href === import.meta.url
259
260
 
260
- if (isDirectRun) {
261
+ if (isDirectRun && !isSupportedNodeVersion(process.versions.node)) {
262
+ // postinstall.mjs already reports the engine mismatch. Do not call npm ci or
263
+ // touch the user's config with an incompatible lifecycle runtime.
264
+ } else if (isDirectRun) {
261
265
  main().catch((err) => {
262
266
  console.error(`❌ TUI sync failed: ${err.message}`)
263
267
  process.exitCode = 1
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: apollo
3
- description: "Read-only investigation scout — 3-10 parallel searches across codebase, external docs, and GitHub. Called by: athena, zeus, hermes, aphrodite, demeter. No edits, no commands."
3
+ description: "Read-only investigation scout — broad multi-query discovery when independent searches materially reduce uncertainty. Called by: athena, zeus, hermes, aphrodite, demeter. No edits, no commands."
4
4
  mode: subagent
5
5
  visible: false
6
6
  tools:
@@ -33,7 +33,7 @@ mcp_tools:
33
33
  ## Core Capabilities
34
34
 
35
35
  ### 1. Codebase Discovery
36
- - 3-10 parallel searches simultaneously using grep, glob, and read
36
+ - Use direct targeted searches for straightforward questions; batch independent searches only when the discovery scope benefits from it
37
37
  - Search for files, patterns, symbols, imports
38
38
  - Generate structured summaries (not raw dumps)
39
39
 
@@ -72,7 +72,7 @@ Return structured findings with:
72
72
 
73
73
  ## Auto-Continue (Embedded: Discovery)
74
74
 
75
- - Auto-continue through parallel search queries (3-10 simultaneous)
75
+ - Continue through independent discovery queries when more evidence is needed; use only the breadth justified by the request
76
76
  - Partial results OK on timeout — return whatever is found
77
77
  - No checkpoint needed (read-only, idempotent operations)
78
78
  - If timeout occurs, return partial findings with confidence score
@@ -477,7 +477,7 @@ function Sidebar(props) {
477
477
  setProp(_el$, "width", "100%");
478
478
  setProp(_el$, "padding", 1);
479
479
  setProp(_el$2, "attributes", 1);
480
- insert(_el$2, `Pantheon v1.6.0-beta.12`);
480
+ insert(_el$2, `Pantheon v1.6.0-beta.14`);
481
481
  insertNode(_el$3, createTextNode(`OpenCode V2 · plugin TUI ativo`));
482
482
  insert(_el$, createComponent(Show, {
483
483
  get when() {
@@ -623,7 +623,7 @@ function HomeStatus(props) {
623
623
  const muted = () => props.context.theme?.text?.muted ?? props.context.theme?.text?.base;
624
624
  return (() => {
625
625
  var _el$20 = createElement("text");
626
- insert(_el$20, () => `Pantheon v1.6.0-beta.12${preset().name ? ` ⚡ ${preset().name}` : ""}`);
626
+ insert(_el$20, () => `Pantheon v1.6.0-beta.14${preset().name ? ` ⚡ ${preset().name}` : ""}`);
627
627
  effect((_$p) => setProp(_el$20, "fg", muted(), _$p));
628
628
  return _el$20;
629
629
  })();
@@ -167,7 +167,7 @@ async function detectVersion(api) {
167
167
  if (ver) return ver;
168
168
  }
169
169
  } catch {}
170
- return "1.6.0-beta.12";
170
+ return "1.6.0-beta.14";
171
171
  }
172
172
  /**
173
173
  * usage-bar — AI subscription usage gauge for the opencode TUI.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pantheon-tui",
3
- "version": "1.6.0-beta.12",
3
+ "version": "1.6.0-beta.14",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pantheon-tui",
9
- "version": "1.6.0-beta.12",
9
+ "version": "1.6.0-beta.14",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@opencode-ai/plugin": "1.18.33",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon-tui",
3
3
  "type": "module",
4
- "version": "1.6.0-beta.12",
4
+ "version": "1.6.0-beta.14",
5
5
  "description": "Pantheon TUI plugin — V1 rich sidebar and usage gauges; native V2 status, session and delegation sidebar",
6
6
  "license": "MIT",
7
7
  "engines": {
package/src/routing.yml CHANGED
@@ -72,6 +72,51 @@ presets:
72
72
  iris: { model: opencode-go/gpt-5.6-luna, reasoning_effort: low }
73
73
  mnemosyne: { model: opencode-go/gpt-5.6-luna, reasoning_effort: low }
74
74
  talos: { model: opencode-go/gpt-5.6-luna, reasoning_effort: low }
75
+ go-hybrid:
76
+ description: "OpenCode Go hybrid lineup: premium models for Zeus, Athena, Themis, and Hephaestus; the existing low-latency Go lineup for every other agent."
77
+ vision:
78
+ model: opencode-go/gpt-5.6-sol
79
+ reasoning_effort: high
80
+ providers:
81
+ opencode-go:
82
+ baseURL: https://opencode.ai/zen/go/v1
83
+ apiKeyEnv: PANTHEON_OPENCODE_API_KEY
84
+ agents:
85
+ zeus: { model: opencode-go/gpt-5.6-sol, reasoning_effort: medium }
86
+ athena: { model: opencode-go/deepseek-v4-pro, reasoning_effort: high }
87
+ themis: { model: opencode-go/qwen3.8-max, reasoning_effort: high }
88
+ hermes: { model: opencode-go/deepseek-v4-flash, reasoning_effort: medium }
89
+ aphrodite: { model: opencode-go/mimo-v2.5, reasoning_effort: low }
90
+ demeter: { model: opencode-go/gpt-5.6-luna, reasoning_effort: low }
91
+ prometheus: { model: opencode-go/deepseek-v4-flash, reasoning_effort: medium }
92
+ hephaestus: { model: opencode-go/gpt-5.6-terra, reasoning_effort: medium }
93
+ apollo: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
94
+ nyx: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
95
+ gaia: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
96
+ iris: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
97
+ mnemosyne: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
98
+ talos: { model: opencode-go/gpt-5.6-luna-fast, reasoning_effort: low }
99
+ anthropic:
100
+ description: "Anthropic direct provider profile using claude-sonnet-5-5 for every agent. Configure ANTHROPIC_API_KEY in your environment."
101
+ providers:
102
+ anthropic:
103
+ baseURL: https://api.anthropic.com/v1
104
+ apiKeyEnv: ANTHROPIC_API_KEY
105
+ agents:
106
+ zeus: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
107
+ athena: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
108
+ themis: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
109
+ hermes: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
110
+ aphrodite: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
111
+ demeter: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
112
+ prometheus: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
113
+ hephaestus: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
114
+ apollo: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
115
+ nyx: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
116
+ gaia: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
117
+ iris: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
118
+ mnemosyne: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
119
+ talos: { model: anthropic/claude-sonnet-5-5, reasoning_effort: medium }
75
120
  openai:
76
121
  description: "Pure OpenAI provider 2026: gpt-5.6-sol planners high, gpt-5.6-luna implementers high, gpt-5.6-luna-fast scouts low (fallback to luna low). Provider openai https://api.openai.com/v1 OPENAI_API_KEY. Pricing 2026."
77
122
  vision: