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 +33 -0
- package/README.md +26 -7
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/update.mjs +10 -5
- package/src/plugin.ts +2 -7
- package/src/plugins/tui/dist/tui.js +941 -190
- 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/decision-router-state.ts +242 -0
- package/src/plugins/tui/src/doctor-state.ts +198 -0
- package/src/plugins/tui/src/index.tsx +1 -1
- package/src/plugins/tui/src/j1-gate-status.ts +85 -0
- package/src/plugins/tui/src/pantheon-settings-state.ts +151 -17
- package/src/plugins/tui/src/pantheon-settings.tsx +298 -92
- package/src/plugins/tui/src/preset-state.ts +143 -0
- package/src/plugins/tui/src/update-notice.ts +10 -6
- package/src/plugins/tui/src/update-status.ts +98 -0
- package/src/plugins/tui/tsconfig.typecheck.json +9 -2
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
|
+
<!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
|
|
76
|
+
move this section to a versioned entry and reset the template below. -->
|
|
77
|
+
|
|
78
|
+
Running `node scripts/versioning.mjs apply` will
|
|
79
|
+
move this section to a versioned entry and reset the template below. -->
|
|
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
|
+
<!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
|
|
101
|
+
move this section to a versioned entry and reset the template below. -->
|
|
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
|
|
162
|
-
window
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon",
|
|
3
3
|
"publisher": "ils15",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
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.
|
|
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
|
package/scripts/update.mjs
CHANGED
|
@@ -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
|
-
|
|
58
|
-
|
|
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
|
|
454
|
+
const base = env?.startsWith('/') ? env : path.join(process.env.HOME ?? '', '.config')
|
|
460
455
|
return path.join(base, 'opencode')
|
|
461
456
|
}
|
|
462
457
|
|