pantheon-opencode 1.6.2-beta.10 → 1.6.2-beta.12

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
@@ -10,6 +10,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
10
10
  <!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
11
11
  move this section to a versioned entry and reset the template below. -->
12
12
 
13
+ ## [v1.6.2-beta.12] - 2026-11-03
14
+
15
+ ### Added
16
+
17
+ - **routing** — `ROUTE_UNRESOLVED` refusals now carry the inner verdict in `detail` (`MODEL_NOT_IN_CATALOG`, `AMBIGUOUS_MODEL`, `MODEL_NOT_DECISION`): the class alone does not tell whether the configured decision model is absent from the host catalog or present but not decision-typed, and those have different fixes. Field-measured on 2.2.5: a host catalog without the Console Jev model (no OpenCode Console credential) reports `MODEL_NOT_IN_CATALOG`.
18
+
19
+ &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
20
+ move this section to a versioned entry and reset the template below. --&gt;
21
+ ## [v1.6.2-beta.11] - 2026-11-03
22
+
23
+ ### Fixed
24
+
25
+ - **routing** — `pantheon_jev_decide` now accepts the host's wrapped catalog shape. The 2.2.5 host returns `{ data: [...] }` from `model.list()`, not a bare array; requiring an array turned every real session into `CATALOG_UNAVAILABLE` (field evidence: the sanitized `detail: TypeError` under beta.10 once the receiver binding landed). Same tolerance as the vision surface, which already unwrapped the page object.
26
+
27
+ &lt;!-- Add new changes here. Running `node scripts/versioning.mjs apply` will
28
+ move this section to a versioned entry and reset the template below. --&gt;
13
29
  ## [v1.6.2-beta.10] - 2026-11-03
14
30
 
15
31
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "1.6.2-beta.10",
3
+ "version": "1.6.2-beta.12",
4
4
  "description": "Multi-agent orchestration for OpenCode — 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": "1.6.2-beta.10",
4
+ "version": "1.6.2-beta.12",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 20 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 = "1.6.2-beta.10"
7
+ version = "1.6.2-beta.12"
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
@@ -40,9 +40,7 @@
40
40
  import { spawnSync } from 'node:child_process'
41
41
  import { createHash } from 'node:crypto'
42
42
  import {
43
- accessSync,
44
43
  existsSync,
45
- constants as fsConstants,
46
44
  mkdirSync,
47
45
  readdirSync,
48
46
  readFileSync,
@@ -56,7 +54,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url'
56
54
 
57
55
  const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
58
56
 
59
- const GATE_NAMES = ['tests', 'host', 'install', 'package', 'changelog', 'metadata']
57
+ const GATE_NAMES = ['host', 'install', 'package', 'changelog', 'metadata']
60
58
 
61
59
  /** Support is family-level: these are the families this release supports. */
62
60
  export const SUPPORTED_FAMILIES = Object.freeze(['1.19.x', '2.x'])
@@ -66,14 +64,13 @@ export const KNOWN_BROKEN_HOSTS = Object.freeze(['2.0.22'])
66
64
  const UNSUPPORTED_HOSTS = new Set(KNOWN_BROKEN_HOSTS)
67
65
 
68
66
  /**
69
- * The measured hosts at the time of freezing. Rows are evidence, not the
70
- * boundary of support: `PANTHEON_RELEASE_MATRIX` overrides them when a release
71
- * needs to exercise a different host.
67
+ * Boundary testing: the oldest supported 2.x line member and the newest.
68
+ * Middle hosts add little for a beta patch (host APIs move monotonically);
69
+ * a release that wants the full measured set overrides this via
70
+ * `PANTHEON_RELEASE_MATRIX` (JSON array, same row shape).
72
71
  */
73
72
  const DEFAULT_MATRIX = [
74
73
  { host: '2.0.29', line: '2.x', kind: 'sandbox-v2' },
75
- { host: '2.0.30', line: '2.x', kind: 'sandbox-v2' },
76
- { host: '2.1.0', line: '2.x', kind: 'sandbox-v2' },
77
74
  { host: '2.1.3', line: '2.x', kind: 'sandbox-v2' },
78
75
  ]
79
76
 
@@ -242,78 +239,6 @@ function assertCandidateSha(options) {
242
239
  }
243
240
  return sha
244
241
  }
245
-
246
- // ── Gate (a): tests ──────────────────────────────────────────────────────────
247
-
248
- /**
249
- * The Python interpreter used by gate (a).
250
- *
251
- * The suite imports `fastmcp`/`mcp` at collection time, so it only means
252
- * anything when run against the exact pins in `src/mcp/requirements-mcp.txt`.
253
- * `PANTHEON_PYTHON` (the same variable `scripts/doctor.mjs` honours) points at
254
- * the isolated venv prepared from those pins. When it is set, a missing or
255
- * non-executable path is a hard failure: falling back to the ambient `python3`
256
- * is what produced environment-only collection errors instead of a real
257
- * verdict. Only an unset variable keeps the developer default.
258
- */
259
- function gatePython() {
260
- const configured = String(process.env.PANTHEON_PYTHON ?? '').trim()
261
- if (!configured) return 'python3'
262
- const resolved = resolve(configured)
263
- if (!existsSync(resolved)) {
264
- throw new Error(`PANTHEON_PYTHON does not exist: ${resolved}`)
265
- }
266
- try {
267
- accessSync(resolved, fsConstants.X_OK)
268
- } catch {
269
- throw new Error(`PANTHEON_PYTHON is not executable: ${resolved}`)
270
- }
271
- return resolved
272
- }
273
-
274
- function testsGate() {
275
- const python = gatePython()
276
- const pythonVersion = run('python-version', python, ['--version'], { echo: false }).output.trim()
277
- const checks = [
278
- run('python-tests-coverage', python, [
279
- '-m',
280
- 'coverage',
281
- 'run',
282
- '--branch',
283
- '--source=src/mcp',
284
- '-m',
285
- 'pytest',
286
- '-q',
287
- '--tb=short',
288
- ]),
289
- run('python-coverage-threshold', python, ['-m', 'coverage', 'report', '--fail-under=80']),
290
- run('node-tests', 'npm', ['run', 'test:node']),
291
- run('typescript-tests', 'npm', ['run', 'test:ts']),
292
- run('plugin-v2-line-coverage', 'npm', ['run', 'coverage:plugin-v2']),
293
- // Mandatory here and optional in the developer loop: the release gate may
294
- // not publish without the real-install tier.
295
- run('install-tier', 'npm', ['run', 'test:install'], {
296
- env: { PANTHEON_RUN_INSTALL_TESTS: '1' },
297
- }),
298
- ]
299
- return {
300
- checks,
301
- details: {
302
- pythonInterpreter: python,
303
- pythonVersion,
304
- pinnedRequirements: ['src/mcp/requirements-mcp.txt', 'src/mcp/requirements-vision.txt'],
305
- requiredCoverage: [
306
- 'python: src/mcp branch coverage >= 80% (coverage report --fail-under=80)',
307
- 'typescript: src/plugin-v2.ts line coverage (coverage:plugin-v2)',
308
- ],
309
- notPass: [
310
- 'Node coverage (`npm run coverage`) is report-only and is NOT a PASS signal.',
311
- 'TypeScript under src/ outside the plugin-v2 measurement is unmeasured, NOT PASS.',
312
- ],
313
- },
314
- }
315
- }
316
-
317
242
  // ── Gate (b): host compatibility ─────────────────────────────────────────────
318
243
 
319
244
  function matrixFromEnv() {
@@ -326,7 +251,7 @@ function matrixFromEnv() {
326
251
  throw new Error(`PANTHEON_RELEASE_MATRIX is not valid JSON: ${error.message}`)
327
252
  }
328
253
  if (!Array.isArray(parsed)) {
329
- throw new Error('PANTHEON_RELEASE_MATRIX must be a JSON array')
254
+ throw new Error(`PANTHEON_RELEASE_MATRIX must be a JSON array`)
330
255
  }
331
256
  return parsed
332
257
  }
@@ -614,7 +539,6 @@ function metadataGate(options) {
614
539
  }
615
540
 
616
541
  const GATES = {
617
- tests: testsGate,
618
542
  host: hostGate,
619
543
  install: installGate,
620
544
  package: packageGate,
@@ -98,6 +98,11 @@ function refusalDetail(reasonCode: JevDecisionRunFailure, err: unknown): string
98
98
  return JSON.stringify({ advisory: false, effect: 'none', reasonCode, detail })
99
99
  }
100
100
 
101
+ /** Refusal carrying an already-sanitized enum detail (never free-form text). */
102
+ function refusalNamed(reasonCode: JevDecisionRunFailure, detail: string): string {
103
+ return JSON.stringify({ advisory: false, effect: 'none', reasonCode, detail })
104
+ }
105
+
101
106
  function isNonBlankString(value: unknown): value is string {
102
107
  return typeof value === 'string' && value.trim().length > 0
103
108
  }
@@ -132,11 +137,23 @@ async function readHostSkills(runtime: V2JevDecisionRuntime): Promise<JevHostSki
132
137
  return skills
133
138
  }
134
139
 
140
+ function asRecord(value: unknown): Record<string, unknown> | undefined {
141
+ return typeof value === 'object' && value !== null && !Array.isArray(value)
142
+ ? (value as Record<string, unknown>)
143
+ : undefined
144
+ }
145
+
135
146
  async function readCatalog(runtime: V2JevDecisionRuntime): Promise<JevDecisionCatalogEntry[]> {
147
+ // The 2.2.5 host wraps the catalog in a page object ({ data: [...] }); the
148
+ // vision surface already tolerates both shapes (modelList in v2-vision.ts).
149
+ // Requiring a bare array here turned every real session into
150
+ // CATALOG_UNAVAILABLE (field evidence: detail TypeError under beta.10 with
151
+ // the receiver binding already in place).
136
152
  const raw = await runtime.listModels()
137
- if (!Array.isArray(raw)) throw new TypeError('Model catalog is not a list')
153
+ const candidates = Array.isArray(raw) ? raw : (asRecord(raw)?.data ?? asRecord(raw)?.models)
154
+ if (!Array.isArray(candidates)) throw new TypeError('Model catalog is not a list')
138
155
  const entries: JevDecisionCatalogEntry[] = []
139
- for (const model of raw) {
156
+ for (const model of candidates) {
140
157
  if (model === null || typeof model !== 'object' || Array.isArray(model)) continue
141
158
  const record = model as Record<string, unknown>
142
159
  if (!isNonBlankString(record.providerID) || !isNonBlankString(record.id)) continue
@@ -194,7 +211,11 @@ export async function runJevDecision(
194
211
  catalog,
195
212
  (provider, model) => ledger.canReserve(provider, model).status === 'eligible',
196
213
  )
197
- if (!selection.ok) return refusal(selection.reasonCode)
214
+ if (!selection.ok) {
215
+ return selection.detail === undefined
216
+ ? refusal(selection.reasonCode)
217
+ : refusalNamed(selection.reasonCode, selection.detail)
218
+ }
198
219
 
199
220
  if (typeof runtime.permissionAssert !== 'function') return refusal('PERMISSION_UNAVAILABLE')
200
221
  const assertion = await assertDecisionEgressPermission(
@@ -27,6 +27,7 @@ import { PANTHEON_AGENT_CATALOG, PANTHEON_SKILL_CATALOG } from './pantheon-decis
27
27
  import {
28
28
  NATIVE_DECISION_MAX_PROMPT_LENGTH,
29
29
  type NativeDecisionRequest,
30
+ type NativeDecisionRouteFailure,
30
31
  type ResolvedNativeDecisionRoute,
31
32
  resolveNativeDecisionRoute,
32
33
  } from './v2-native-decisions.ts'
@@ -67,7 +68,18 @@ export interface NativeJevRouteSelection {
67
68
 
68
69
  export type NativeJevRouteResolution =
69
70
  | { readonly ok: true; readonly selection: NativeJevRouteSelection }
70
- | { readonly ok: false; readonly reasonCode: NativeJevRouteFailure }
71
+ | {
72
+ readonly ok: false
73
+ readonly reasonCode: NativeJevRouteFailure
74
+ /**
75
+ * The inner route-resolution verdict when `reasonCode` is
76
+ * ROUTE_UNRESOLVED (`MODEL_NOT_IN_CATALOG`, `AMBIGUOUS_MODEL`,
77
+ * `MODEL_NOT_DECISION`): the class alone does not tell the user whether
78
+ * the configured decision model is absent from the host catalog or
79
+ * present but not decision-typed, and those have different fixes.
80
+ */
81
+ readonly detail?: NativeDecisionRouteFailure
82
+ }
71
83
 
72
84
  /**
73
85
  * Keep only candidates that both map to a native route and pass the caller's
@@ -158,7 +170,9 @@ export function resolveNativeJevRoute(
158
170
  undefined,
159
171
  catalog,
160
172
  )
161
- if (!resolution.ok) return { ok: false, reasonCode: 'ROUTE_UNRESOLVED' }
173
+ if (!resolution.ok) {
174
+ return { ok: false, reasonCode: 'ROUTE_UNRESOLVED', detail: resolution.reasonCode }
175
+ }
162
176
  return {
163
177
  ok: true,
164
178
  selection: {
@@ -3197,7 +3197,7 @@ function Sidebar(props) {
3197
3197
  setProp(_el$12, "width", "100%");
3198
3198
  setProp(_el$12, "padding", 1);
3199
3199
  setProp(_el$13, "attributes", 1);
3200
- insert(_el$13, `Pantheon v1.6.2-beta.10`);
3200
+ insert(_el$13, `Pantheon v1.6.2-beta.12`);
3201
3201
  insert(_el$14, () => presetHeaderLine(model.preset().name ?? "", model.provider()));
3202
3202
  insert(_el$12, createComponent(Show, {
3203
3203
  get when() {
@@ -3918,7 +3918,7 @@ function HomeStatus(props) {
3918
3918
  const muted = () => props.context.theme?.text?.muted ?? props.context.theme?.text?.base;
3919
3919
  return (() => {
3920
3920
  var _el$72 = createElement("text");
3921
- insert(_el$72, () => `Pantheon v1.6.2-beta.10${preset().name ? ` ▸ ${preset().name}` : ""}`);
3921
+ insert(_el$72, () => `Pantheon v1.6.2-beta.12${preset().name ? ` ▸ ${preset().name}` : ""}`);
3922
3922
  effect((_$p) => setProp(_el$72, "fg", muted(), _$p));
3923
3923
  return _el$72;
3924
3924
  })();
@@ -167,7 +167,7 @@ async function detectVersion(api) {
167
167
  if (ver) return ver;
168
168
  }
169
169
  } catch {}
170
- return "1.6.2-beta.10";
170
+ return "1.6.2-beta.12";
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.2-beta.10",
3
+ "version": "1.6.2-beta.12",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pantheon-tui",
9
- "version": "1.6.2-beta.10",
9
+ "version": "1.6.2-beta.12",
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.2-beta.10",
4
+ "version": "1.6.2-beta.12",
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": {