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

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,14 @@ 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.11] - 2026-11-03
14
+
15
+ ### Fixed
16
+
17
+ - **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.
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;
13
21
  ## [v1.6.2-beta.10] - 2026-11-03
14
22
 
15
23
  ### 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.11",
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.11",
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.11"
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,
@@ -132,11 +132,23 @@ async function readHostSkills(runtime: V2JevDecisionRuntime): Promise<JevHostSki
132
132
  return skills
133
133
  }
134
134
 
135
+ function asRecord(value: unknown): Record<string, unknown> | undefined {
136
+ return typeof value === 'object' && value !== null && !Array.isArray(value)
137
+ ? (value as Record<string, unknown>)
138
+ : undefined
139
+ }
140
+
135
141
  async function readCatalog(runtime: V2JevDecisionRuntime): Promise<JevDecisionCatalogEntry[]> {
142
+ // The 2.2.5 host wraps the catalog in a page object ({ data: [...] }); the
143
+ // vision surface already tolerates both shapes (modelList in v2-vision.ts).
144
+ // Requiring a bare array here turned every real session into
145
+ // CATALOG_UNAVAILABLE (field evidence: detail TypeError under beta.10 with
146
+ // the receiver binding already in place).
136
147
  const raw = await runtime.listModels()
137
- if (!Array.isArray(raw)) throw new TypeError('Model catalog is not a list')
148
+ const candidates = Array.isArray(raw) ? raw : (asRecord(raw)?.data ?? asRecord(raw)?.models)
149
+ if (!Array.isArray(candidates)) throw new TypeError('Model catalog is not a list')
138
150
  const entries: JevDecisionCatalogEntry[] = []
139
- for (const model of raw) {
151
+ for (const model of candidates) {
140
152
  if (model === null || typeof model !== 'object' || Array.isArray(model)) continue
141
153
  const record = model as Record<string, unknown>
142
154
  if (!isNonBlankString(record.providerID) || !isNonBlankString(record.id)) continue
@@ -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.11`);
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.11${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.11";
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.11",
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.11",
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.11",
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": {