pantheon-opencode 2.0.0-beta.1 → 2.0.0-beta.3

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
@@ -66,6 +66,39 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66
66
  <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
67
67
  move this section to a versioned entry and reset the template below. -->
68
68
 
69
+ ## [v2.0.0-beta.3] - 2026-11-09
70
+
71
+ ### Fixed
72
+
73
+ - **update** — the global-install guard refused npm's own symlinked bin layout: `prefix/bin/pantheon-opencode` is a symlink into the package, so `pantheon-opencode update` answered the checkout refusal on every symlink-creating install. The running side follows links now; `npm link` stays refused (the installed entry itself must be a regular directory).
74
+
75
+ &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
76
+ move this section to a versioned entry and reset the template below. --&gt;
77
+
78
+ Running `node scripts/versioning.mjs apply` will
79
+ move this section to a versioned entry and reset the template below. --&gt;
80
+ ## [v2.0.0-beta.2] - 2026-11-09
81
+
82
+ ### Added
83
+
84
+ - **tui** — the settings window becomes a sectioned window (`tab` cycles sections): Gates & Overrides, Decision Model, Model Preset, J1 Risk Gate, Updates, Doctor, About
85
+ - **tui** — Decision Model section: enable/disable the decision router live — the runtime re-reads the config on every gated call; egress consent stays CLI-owned and enabling remote candidates without it is refused
86
+ - **tui** — Model Preset section: activate any routing.yml preset globally (atomic write, `.bak` backup); `none` deletes the marker; a project marker wins every runtime candidate list and shows read-only
87
+ - **tui** — J1 Risk Gate status section: ladder mode, enforce threshold, effective gate state — the env-only config is displayed, never written (a file surface is a runtime-plugin change, deferred)
88
+ - **tui** — Updates section: channel classification (prerelease suffix → `beta`), last-check state, and a `Check now` action against the registry dist-tag matching the running channel; a stable install is never advertised a beta
89
+ - **tui** — Doctor section: install-version drift (H2), Node floor, overrides-file validation (K), decision-config health — file-derived checks only; process/network checks stay in `pantheon-opencode doctor`
90
+
91
+ ### Changed
92
+
93
+ - **tui** — the typecheck gate points at real files: the old includes referenced deleted V2 entries, so nothing had been type-checked since the rewrite; the settings modules typecheck under the repo's strict settings and update-notice's latent violations are fixed
94
+
95
+ ### Fixed
96
+
97
+ - **tui** — the settings window is closable again: `dialog.clear()` inside the host's dismissal path re-entered the dialog stack and left the window permanent (beta.1 field report)
98
+ - **tui** — overrides state guards: a corrupt global overrides file refuses writes instead of silently dropping the other entries on the next toggle; `replace` entries survive disable (content preserved) and restore on re-enable; project-file entries show a `(project)` marker and are not togglable from the window
99
+
100
+ &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
101
+ move this section to a versioned entry and reset the template below. --&gt;
69
102
  ## [v2.0.0-beta.1] - 2026-11-08
70
103
 
71
104
  ### Added
package/README.md CHANGED
@@ -158,13 +158,32 @@ see [Quick Start](docs/QUICKSTART.md).
158
158
  "What's new" dialog lists that version's highlights from the shipped
159
159
  changelog — once per version, `esc`/`q` dismisses; see
160
160
  [What's new window](docs/reference/whats-new.md). `/pantheon-settings`
161
- (also `Pantheon: Settings` in the command palette) opens the settings
162
- window: `up`/`down` selects a Pantheon runtime gate, `enter` toggles it —
163
- writing the global `pantheon-overrides.json` the installer and doctor
164
- consume — `tab` flips to the About page, `esc`/`q` closes. The installer
165
- selects the `plugins` component by default; in interactive setup you can
166
- change the component selection. A component-scoped install includes the TUI
167
- only when `plugins` is selected. The TUI ships no quota panel: for provider
161
+ (also `Pantheon: Settings` in the command palette) opens the sectioned
162
+ settings window — `tab` cycles sections, `up`/`down` selects,
163
+ `enter` applies, `esc`/`q` closes:
164
+
165
+ - **Gates & Overrides** — toggle the named behaviors, writing the global
166
+ `pantheon-overrides.json` the installer and doctor consume. A corrupt
167
+ overrides file refuses writes (repair with `doctor --fix`); entries in the
168
+ project `.pantheon/overrides.json` win at runtime and are shown read-only.
169
+ - **Decision Model** — enable/disable the advisory decision router live
170
+ (the runtime re-reads the config per call). Egress consent stays
171
+ CLI-owned (`decision-router setup-model`).
172
+ - **Model Preset** — activate any routing.yml preset globally (atomic
173
+ write with a `.bak` backup); `none` clears the marker. A project
174
+ `.pantheon/active-preset.json` wins and shows read-only.
175
+ - **J1 Risk Gate** — ladder mode/threshold status; env-only config
176
+ (`PANTHEON_J1_*`), read at startup, never written here.
177
+ - **Updates** — channel and a `Check now` registry probe for the running
178
+ channel; adopt with `pantheon-opencode update`.
179
+ - **Doctor** — file-derived health: install-version drift, Node floor,
180
+ overrides and decision-config validation. The full check (MCP smoke,
181
+ venv pins, git) remains `pantheon-opencode doctor`.
182
+
183
+ The installer selects the `plugins` component by default; in interactive
184
+ setup you can change the component selection. A component-scoped install
185
+ includes the TUI only when `plugins` is selected. The TUI ships no quota
186
+ panel: for provider
168
187
  quota and usage inside OpenCode, install the recommended community plugin
169
188
  [`@slkiser/opencode-quota`](https://github.com/slkiser/opencode-quota) — see
170
189
  [Quota & usage](docs/tui-v2-quota-providers.md). `pantheon_cost` and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
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.0-beta.1",
4
+ "version": "2.0.0-beta.3",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 23 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.0-beta.1"
7
+ version = "2.0.0-beta.3"
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
@@ -54,16 +54,21 @@ export function runUpdate(
54
54
  const actualGlobalRoot = fs.realpathSync(npmGlobalRoot)
55
55
  const installedEntry = path.join(actualGlobalRoot, 'pantheon-opencode')
56
56
  const installedEntryStat = fs.lstatSync(installedEntry)
57
- const runningRootStat = fs.lstatSync(path.resolve(root))
58
- const runningScriptStat = fs.lstatSync(path.resolve(runningScript))
57
+ // The RUNNING side is statSync (follows links) on purpose: npm's POSIX
58
+ // bin layout symlinks prefix/bin/<name> into the package, so argv[1] is
59
+ // a link and node does not rewrite it (field report beta.2: the
60
+ // maintainer's own nvm install was refused). Identity is still enforced
61
+ // by the realpath equality comparisons below.
62
+ const runningRootStat = fs.statSync(path.resolve(root))
63
+ const runningScriptStat = fs.statSync(path.resolve(runningScript))
59
64
  // A global npm link into a checkout resolves to the same realpath as the
60
- // running source. Do not treat that provenance as a global installation.
65
+ // running source. Do not treat that provenance as a global installation:
66
+ // the INSTALLED ENTRY itself must be a regular directory (npm link makes
67
+ // it a symlink), and that lstat check is what keeps the link refused.
61
68
  if (
62
69
  installedEntryStat.isSymbolicLink() ||
63
70
  !installedEntryStat.isDirectory() ||
64
- runningRootStat.isSymbolicLink() ||
65
71
  !runningRootStat.isDirectory() ||
66
- runningScriptStat.isSymbolicLink() ||
67
72
  !runningScriptStat.isFile()
68
73
  ) {
69
74
  throw new Error('Global package identity is not a regular installed package')
package/src/plugin.ts CHANGED
@@ -95,12 +95,7 @@ import type {
95
95
  ReferenceDraft,
96
96
  } from '@opencode-ai/plugin/v2/promise'
97
97
  import { define } from '@opencode-ai/plugin/v2/promise'
98
- import {
99
- type EffectiveOverrides,
100
- installDecision,
101
- isRuntimeDisabled,
102
- mergeOverrides,
103
- } from './pantheon/behavior-overrides.ts'
98
+ import { type EffectiveOverrides, mergeOverrides } from './pantheon/behavior-overrides.ts'
104
99
  import {
105
100
  BOUNDED_READ_TOOL,
106
101
  createV2BoundedReadTool,
@@ -456,7 +451,7 @@ function loadRuntimeOverrides(): void {
456
451
 
457
452
  function resolveGlobalOverrideDir(): string {
458
453
  const env = process.env.XDG_CONFIG_HOME
459
- const base = env && env.startsWith('/') ? env : path.join(process.env.HOME ?? '', '.config')
454
+ const base = env?.startsWith('/') ? env : path.join(process.env.HOME ?? '', '.config')
460
455
  return path.join(base, 'opencode')
461
456
  }
462
457