pantheon-opencode 1.6.3-beta.12 → 1.6.3-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.
- package/CHANGELOG.md +17 -0
- package/bin/pantheon-init.mjs +24 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/install/cli-ui.mjs +2 -1
- package/scripts/install/opencode.mjs +88 -31
- package/scripts/skill-search.mjs +35 -4
- package/src/pantheon/jev-decision-tool.ts +3 -2
- package/src/pantheon/jev-rank-verify.ts +30 -3
- package/src/pantheon/pantheon-decision-catalog.ts +4 -1
- package/src/plugins/tui/dist/server-v2.d.ts +14 -6
- package/src/plugins/tui/dist/server-v2.d.ts.map +1 -1
- package/src/plugins/tui/dist/server-v2.js +16 -9
- package/src/plugins/tui/dist/server-v2.js.map +1 -1
- package/src/plugins/tui/dist/tui-v2.js +3 -3
- package/src/plugins/tui/dist/tui.js +1 -1
- package/src/plugins/tui/package-lock.json +2 -2
- package/src/plugins/tui/package.json +1 -1
- package/src/plugins/tui/src/server-v2.ts +14 -7
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,23 @@ 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.3-beta.14] - 2026-11-05
|
|
14
|
+
|
|
15
|
+
## 🆕 What's New
|
|
16
|
+
- pantheon-tui loads on every boot again: the server stub now exports the definition object host 2.2.5 requires (was ~3 load failures per boot, forever).
|
|
17
|
+
- verify accepts optional `state` evidence and reports UNVERIFIABLE for the 0.35–0.65 band — false and "could not tell" are no longer the same verdict.
|
|
18
|
+
- The skills-search popularity parser reads K/M counts — the most popular results no longer vanish from the skills.sh tier.
|
|
19
|
+
- The installer never leaves the plugin registered into the volatile npx cache (the intermittent plugin-death root cause); the preflight also covers pure-V2 configs now.
|
|
20
|
+
- prometheus's description names observability/tracing — the reform's domain split is now visible to the router.
|
|
21
|
+
|
|
22
|
+
## [v1.6.3-beta.13] - 2026-11-05
|
|
23
|
+
|
|
24
|
+
## 🆕 What's New
|
|
25
|
+
- One coherent setup summary: a single closing block instead of two competing "Next steps" lists.
|
|
26
|
+
- Warnings restate their text inline — no more hunting for what scrolled past.
|
|
27
|
+
- The worktree guidance box is project-only (a global install from $HOME showed a nonsense path).
|
|
28
|
+
- The banner now prints the exact `source` line for the decision-layer flags file — the silent-off gap fixed.
|
|
29
|
+
|
|
13
30
|
## [v1.6.3-beta.12] - 2026-11-05
|
|
14
31
|
|
|
15
32
|
## 🆕 What's New
|
package/bin/pantheon-init.mjs
CHANGED
|
@@ -1064,10 +1064,33 @@ async function main() {
|
|
|
1064
1064
|
console.log(` ${S.nextVerify}`)
|
|
1065
1065
|
console.log(` ${S.nextLaunch}`)
|
|
1066
1066
|
console.log(` ${S.nextAgents}`)
|
|
1067
|
-
|
|
1067
|
+
if (!isProject) {
|
|
1068
|
+
// The project-local hint only matters when this install was not one.
|
|
1069
|
+
console.log(` ${S.nextProject}`)
|
|
1070
|
+
}
|
|
1068
1071
|
if (!decisionTarget) {
|
|
1069
1072
|
console.log(` ${S.nextJev}`)
|
|
1070
1073
|
}
|
|
1074
|
+
// The decision-layer extras (J1/J3/specialist callers) write an env file;
|
|
1075
|
+
// without sourcing it the gates stay off silently — the exact gap the
|
|
1076
|
+
// field hit on the beta.12 setup pass.
|
|
1077
|
+
try {
|
|
1078
|
+
const { existsSync } = await import('node:fs')
|
|
1079
|
+
const flagsPath = path.join(
|
|
1080
|
+
process.env.XDG_CONFIG_HOME ?? path.join(process.env.HOME ?? '', '.config'),
|
|
1081
|
+
'pantheon',
|
|
1082
|
+
'decision-flags.env',
|
|
1083
|
+
)
|
|
1084
|
+
if (existsSync(flagsPath)) {
|
|
1085
|
+
console.log('')
|
|
1086
|
+
console.log(' Decision-layer flags (J1/J3/specialist callers):')
|
|
1087
|
+
console.log(
|
|
1088
|
+
` source ${flagsPath} # add to your shell profile; applies to NEW opencode sessions`,
|
|
1089
|
+
)
|
|
1090
|
+
}
|
|
1091
|
+
} catch {
|
|
1092
|
+
// Hint is best-effort; never fail the install over it.
|
|
1093
|
+
}
|
|
1071
1094
|
console.log('')
|
|
1072
1095
|
|
|
1073
1096
|
return
|
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon",
|
|
3
3
|
"publisher": "ils15",
|
|
4
|
-
"version": "1.6.3-beta.
|
|
4
|
+
"version": "1.6.3-beta.14",
|
|
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.3-beta.
|
|
7
|
+
version = "1.6.3-beta.14"
|
|
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
|
|
@@ -386,8 +386,9 @@ export function printWorktreeGuidance({
|
|
|
386
386
|
projectRoot = process.cwd(),
|
|
387
387
|
interactive = false,
|
|
388
388
|
dryRun = false,
|
|
389
|
+
enabled = true,
|
|
389
390
|
} = {}) {
|
|
390
|
-
if (!interactive || dryRun || !tty()) return
|
|
391
|
+
if (!interactive || dryRun || !tty() || enabled === false) return
|
|
391
392
|
|
|
392
393
|
const recommendation = getWorktreeRecommendation(projectRoot)
|
|
393
394
|
const rows = [
|
|
@@ -624,13 +624,38 @@ function mergeMissing(target, source) {
|
|
|
624
624
|
* `src/plugin.ts` or `src/plugins/pantheon-hooks.ts` is not evidence that the
|
|
625
625
|
* plugin belongs to Pantheon and must be preserved verbatim.
|
|
626
626
|
*/
|
|
627
|
+
/**
|
|
628
|
+
* Field report (beta.13 §2): a plugin registration into the npx cache
|
|
629
|
+
* (`/_npx/<hash>/`) is VOLATILE — other npx-booted MCPs (playwright, rea)
|
|
630
|
+
* recycle that tree while the host is running, and the plugin dies
|
|
631
|
+
* intermittently with ENOENT. When THIS installer itself runs from the cache,
|
|
632
|
+
* the freshly registered path must be the stable global install instead when
|
|
633
|
+
* one exists; otherwise the registration stays volatile and says so.
|
|
634
|
+
*/
|
|
635
|
+
export function resolveStablePantheonRoot(root = ROOT) {
|
|
636
|
+
const normalized = root.replaceAll('\\', '/')
|
|
637
|
+
if (!normalized.includes('/_npx/')) return { root, volatile: false }
|
|
638
|
+
const globalCandidate = resolve(
|
|
639
|
+
dirname(process.execPath),
|
|
640
|
+
'..',
|
|
641
|
+
'lib',
|
|
642
|
+
'node_modules',
|
|
643
|
+
'pantheon-opencode',
|
|
644
|
+
)
|
|
645
|
+
if (existsSync(join(globalCandidate, 'src', 'plugin-v2', 'index.ts'))) {
|
|
646
|
+
return { root: globalCandidate, volatile: false }
|
|
647
|
+
}
|
|
648
|
+
return { root, volatile: true }
|
|
649
|
+
}
|
|
650
|
+
|
|
627
651
|
export function resolveInstalledPlugin(plugin) {
|
|
628
652
|
if (typeof plugin !== 'string') return plugin
|
|
629
653
|
const normalized = normalizePluginRef(plugin)
|
|
630
|
-
|
|
654
|
+
const stable = resolveStablePantheonRoot()
|
|
655
|
+
if (PANTHEON_PLUGIN_IDENTITIES.has(normalized)) return join(stable.root, normalized)
|
|
631
656
|
// Legacy V2 file ref (pre-directory-contract): migrate to the installed
|
|
632
657
|
// plugin directory so the beta loader accepts the entry.
|
|
633
|
-
if (normalized === PANTHEON_V2_LEGACY_FILE) return join(
|
|
658
|
+
if (normalized === PANTHEON_V2_LEGACY_FILE) return join(stable.root, PANTHEON_V2_PLUGIN)
|
|
634
659
|
const identity = managedPluginIdentity(plugin)
|
|
635
660
|
if (identity !== null && isAbsolute(normalized)) {
|
|
636
661
|
return INSTALLED_PANTHEON_PLUGIN_PATHS.get(identity) ?? plugin
|
|
@@ -1427,6 +1452,8 @@ export function setupRuntimePhase(
|
|
|
1427
1452
|
error(S.runtimeFailed(err.message))
|
|
1428
1453
|
warning(S.runtimeSkippedMcp)
|
|
1429
1454
|
stats.warnings += 1
|
|
1455
|
+
if (!Array.isArray(stats.warningMessages)) stats.warningMessages = []
|
|
1456
|
+
stats.warningMessages.push(S.runtimeSkippedMcp)
|
|
1430
1457
|
stats.errors += 1
|
|
1431
1458
|
return false
|
|
1432
1459
|
}
|
|
@@ -2406,6 +2433,10 @@ async function installPass(
|
|
|
2406
2433
|
// payload and the host config are already in place.
|
|
2407
2434
|
warning(`Could not disable the builtin Context sidebar block: ${cause.message}`)
|
|
2408
2435
|
stats.warnings++
|
|
2436
|
+
if (!Array.isArray(stats.warningMessages)) stats.warningMessages = []
|
|
2437
|
+
stats.warningMessages.push(
|
|
2438
|
+
`Could not disable the builtin Context sidebar block: ${cause.message}`,
|
|
2439
|
+
)
|
|
2409
2440
|
}
|
|
2410
2441
|
}
|
|
2411
2442
|
if (componentSet.has('plugins')) advancePhase()
|
|
@@ -2788,30 +2819,38 @@ async function installPass(
|
|
|
2788
2819
|
// `npm install`. Copying every entry across would turn "silently ignored"
|
|
2789
2820
|
// into "config fails to load", so only loadable entries move; the rest stay
|
|
2790
2821
|
// where they are and the warning names the exact failure mode.
|
|
2822
|
+
// Preflight (runs for pure-V2 configs too — a stale or volatile Pantheon
|
|
2823
|
+
// registration must be named even when the singular `plugin` key is long
|
|
2824
|
+
// gone). Field report beta.13 §2: an EXISTING `_npx` path is worse than a
|
|
2825
|
+
// missing one — it passes the existsSync check at install time and dies
|
|
2826
|
+
// intermittently later, so volatility is named and the re-registration
|
|
2827
|
+
// below repoints to the stable tree.
|
|
2828
|
+
if (Array.isArray(config.plugins)) {
|
|
2829
|
+
for (const ref of config.plugins) {
|
|
2830
|
+
const refPath = typeof ref === 'string' ? ref : ref?.package
|
|
2831
|
+
if (typeof refPath !== 'string' || managedPluginIdentity(refPath) === null) continue
|
|
2832
|
+
const absolute = isAbsolute(refPath) ? refPath : resolve(target, refPath)
|
|
2833
|
+
if (!existsSync(absolute)) {
|
|
2834
|
+
warning(
|
|
2835
|
+
`Existing Pantheon registration points to ${refPath}, which no longer exists` +
|
|
2836
|
+
(refPath.includes('_npx/')
|
|
2837
|
+
? ' (the npx cache recycled that copy) — re-registering to the freshly installed tree'
|
|
2838
|
+
: ' — re-registering to the freshly installed tree'),
|
|
2839
|
+
)
|
|
2840
|
+
} else if (refPath.replaceAll('\\', '/').includes('/_npx/')) {
|
|
2841
|
+
warning(
|
|
2842
|
+
`Existing Pantheon registration points into the volatile npx cache (${refPath}) — ` +
|
|
2843
|
+
'other npx-booted MCPs recycle that tree and kill the plugin mid-session; ' +
|
|
2844
|
+
're-registering to a stable tree',
|
|
2845
|
+
)
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2791
2849
|
if (Array.isArray(config.plugin)) {
|
|
2792
2850
|
// Strip Pantheon refs FIRST, exactly as the V1 branch does: a stale V1
|
|
2793
2851
|
// .ts path is not a registrable entry on this host and must not be moved.
|
|
2794
2852
|
config.plugin = removePantheonPluginReferences(config.plugin)
|
|
2795
2853
|
if (!Array.isArray(config.plugins)) config.plugins = []
|
|
2796
|
-
// Preflight: a Pantheon-owned registration whose target directory is
|
|
2797
|
-
// missing means the previous install was invalidated (the npx cache
|
|
2798
|
-
// recycles `_npx/<hash>` dirs — field evidence: a registered copy
|
|
2799
|
-
// vanished and the host silently dropped the plugin, so the whole tool
|
|
2800
|
-
// surface disappeared until the next init). Name the cause loudly
|
|
2801
|
-
// before the re-registration below fixes it.
|
|
2802
|
-
for (const ref of Array.isArray(config.plugins) ? config.plugins : []) {
|
|
2803
|
-
const refPath = typeof ref === 'string' ? ref : ref?.package
|
|
2804
|
-
if (typeof refPath !== 'string' || managedPluginIdentity(refPath) === null) continue
|
|
2805
|
-
const absolute = isAbsolute(refPath) ? refPath : resolve(target, refPath)
|
|
2806
|
-
if (existsSync(absolute)) continue
|
|
2807
|
-
const staleNpx = refPath.includes('_npx/')
|
|
2808
|
-
warning(
|
|
2809
|
-
`Existing Pantheon registration points to ${refPath}, which no longer exists` +
|
|
2810
|
-
(staleNpx
|
|
2811
|
-
? ' (the npx cache recycled that copy) — re-registering to the freshly installed tree'
|
|
2812
|
-
: ' — re-registering to the freshly installed tree'),
|
|
2813
|
-
)
|
|
2814
|
-
}
|
|
2815
2854
|
|
|
2816
2855
|
const migrated = []
|
|
2817
2856
|
const blocked = []
|
|
@@ -2884,6 +2923,14 @@ async function installPass(
|
|
|
2884
2923
|
// Legacy refs (npm shorthand, the old src/plugin-v2.ts file path) are
|
|
2885
2924
|
// recognized via managedPluginIdentity and already stripped above, so
|
|
2886
2925
|
// they migrate here.
|
|
2926
|
+
const stableRoot = resolveStablePantheonRoot()
|
|
2927
|
+
if (stableRoot.volatile) {
|
|
2928
|
+
warning(
|
|
2929
|
+
'This installer runs from the npx cache and no stable global install of ' +
|
|
2930
|
+
'pantheon-opencode was found; the plugin registration will point into the ' +
|
|
2931
|
+
'volatile cache and can break mid-session. Fix: npm install -g pantheon-opencode, then re-run init.',
|
|
2932
|
+
)
|
|
2933
|
+
}
|
|
2887
2934
|
const resolvedV2 = resolveInstalledPlugin(PANTHEON_V2_PLUGIN)
|
|
2888
2935
|
config.plugins = config.plugins.filter(
|
|
2889
2936
|
(plugin) => pluginReferenceIdentity(plugin) !== pluginReferenceIdentity(resolvedV2),
|
|
@@ -3091,6 +3138,8 @@ async function installPass(
|
|
|
3091
3138
|
for (const message of mcp.warnings ?? []) {
|
|
3092
3139
|
warning(message)
|
|
3093
3140
|
stats.warnings += 1
|
|
3141
|
+
if (!Array.isArray(stats.warningMessages)) stats.warningMessages = []
|
|
3142
|
+
stats.warningMessages.push(message)
|
|
3094
3143
|
}
|
|
3095
3144
|
}
|
|
3096
3145
|
|
|
@@ -3421,19 +3470,27 @@ async function installPass(
|
|
|
3421
3470
|
process.stdout.write(` [OK] ${created} component(s) installed\n`)
|
|
3422
3471
|
if (skipped > 0)
|
|
3423
3472
|
process.stdout.write(` ${colors.dim('\u2014')} ${skipped} already up-to-date\n`)
|
|
3424
|
-
|
|
3473
|
+
// The warning TEXT restates here — the count alone sent users to doctor to
|
|
3474
|
+
// learn what had already scrolled past.
|
|
3475
|
+
for (const message of stats.warningMessages ?? []) {
|
|
3476
|
+
process.stdout.write(` [WARN] ${message}\n`)
|
|
3477
|
+
}
|
|
3478
|
+
if (warnings > 0 && (stats.warningMessages ?? []).length === 0) {
|
|
3479
|
+
process.stdout.write(` [WARN] ${warnings} warning(s)\n`)
|
|
3480
|
+
}
|
|
3481
|
+
if (warnings > 0) {
|
|
3425
3482
|
process.stdout.write(
|
|
3426
|
-
`
|
|
3483
|
+
` ${colors.dim("Run 'pantheon-opencode doctor' for the full health check")}\n`,
|
|
3427
3484
|
)
|
|
3485
|
+
}
|
|
3428
3486
|
process.stdout.write('\n')
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
printWorktreeGuidance({ projectRoot: process.cwd(), interactive: true })
|
|
3487
|
+
// Worktree guidance is a project-install concept: a global install run
|
|
3488
|
+
// from $HOME derived a nonsense `<home>/.pantheon-worktrees/<user>` path.
|
|
3489
|
+
printWorktreeGuidance({
|
|
3490
|
+
projectRoot: process.cwd(),
|
|
3491
|
+
interactive: true,
|
|
3492
|
+
enabled: !(opts.global ?? isGlobalConfigDir(target)),
|
|
3493
|
+
})
|
|
3437
3494
|
}
|
|
3438
3495
|
|
|
3439
3496
|
// Beta 11 Setup phase 3: report whether this call APPLIED, so the caller can
|
package/scripts/skill-search.mjs
CHANGED
|
@@ -27,9 +27,19 @@ const FIND_TIMEOUT_MS = 60_000
|
|
|
27
27
|
const DEFAULT_LIMIT = 5
|
|
28
28
|
/** SGR escape sequences are matched via the ESC codepoint (lint-clean, same semantics). */
|
|
29
29
|
const ANSI_SGR = new RegExp(`${String.fromCharCode(27)}\\[[0-9;]*m`, 'g')
|
|
30
|
-
const SKILL_LINE =
|
|
30
|
+
const SKILL_LINE =
|
|
31
|
+
/^([A-Za-z0-9._-]+\/[A-Za-z0-9._-]+@[A-Za-z0-9._-]+)\s+([\d.,]+)\s*([KM]?)\s+installs$/
|
|
31
32
|
const URL_LINE = /^└?\s*(https:\/\/skills\.sh\/\S+)$/
|
|
32
33
|
|
|
34
|
+
/** '578.8K' / '1.2M' / '489' → absolute integer installs (K=1e3, M=1e6). */
|
|
35
|
+
export function parseInstallCount(digits, suffix) {
|
|
36
|
+
const base = Number(String(digits).replaceAll(',', ''))
|
|
37
|
+
if (!Number.isFinite(base)) return null
|
|
38
|
+
if (suffix === 'K') return Math.round(base * 1_000)
|
|
39
|
+
if (suffix === 'M') return Math.round(base * 1_000_000)
|
|
40
|
+
return Math.round(base)
|
|
41
|
+
}
|
|
42
|
+
|
|
33
43
|
/** Remove SGR escape sequences so the text lines become parseable. */
|
|
34
44
|
export function stripAnsi(text) {
|
|
35
45
|
return String(text).replace(ANSI_SGR, '')
|
|
@@ -50,7 +60,11 @@ export function parseSkillSearchOutput(raw, { limit = DEFAULT_LIMIT } = {}) {
|
|
|
50
60
|
const skillMatch = line.match(SKILL_LINE)
|
|
51
61
|
if (skillMatch !== null) {
|
|
52
62
|
if (found.length >= limit) continue
|
|
53
|
-
found.push({
|
|
63
|
+
found.push({
|
|
64
|
+
skill: skillMatch[1],
|
|
65
|
+
installs: parseInstallCount(skillMatch[2], skillMatch[3]),
|
|
66
|
+
url: undefined,
|
|
67
|
+
})
|
|
54
68
|
continue
|
|
55
69
|
}
|
|
56
70
|
const urlMatch = line.match(URL_LINE)
|
|
@@ -78,7 +92,24 @@ export function searchSkills(query, { limit = DEFAULT_LIMIT, owner, spawn = spaw
|
|
|
78
92
|
if (result.status !== 0 && raw.trim() === '') {
|
|
79
93
|
return { ok: false, error: `skills search exited ${result.status}` }
|
|
80
94
|
}
|
|
81
|
-
|
|
95
|
+
const entries = parseSkillSearchOutput(raw, { limit })
|
|
96
|
+
// Field finding (beta.13 §9): skills.sh intermittently answers "No skills
|
|
97
|
+
// found" (exit 0) for queries that succeed on retry — an empty result is
|
|
98
|
+
// AMBIGUOUS between "nothing exists" and "degraded". Retry once on empty;
|
|
99
|
+
// when still empty the callers treat it as not-found (the cascade moves on).
|
|
100
|
+
if (entries.length === 0) {
|
|
101
|
+
const retry = spawn('npx', args, {
|
|
102
|
+
encoding: 'utf8',
|
|
103
|
+
timeout: FIND_TIMEOUT_MS,
|
|
104
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
105
|
+
})
|
|
106
|
+
const retryRaw = `${retry.stdout ?? ''}`
|
|
107
|
+
const retried = parseSkillSearchOutput(retryRaw, { limit })
|
|
108
|
+
if (retried.length > 0)
|
|
109
|
+
return { ok: true, entries: retried, raw: retryRaw, emptyIsAmbiguous: false }
|
|
110
|
+
return { ok: true, entries: [], raw, emptyIsAmbiguous: true }
|
|
111
|
+
}
|
|
112
|
+
return { ok: true, entries, raw, emptyIsAmbiguous: false }
|
|
82
113
|
}
|
|
83
114
|
|
|
84
115
|
const GITHUB_TIMEOUT_MS = 30_000
|
|
@@ -204,7 +235,7 @@ function main(args = process.argv.slice(2)) {
|
|
|
204
235
|
const query = args.find((a) => !a.startsWith('--'))
|
|
205
236
|
if (query === undefined) {
|
|
206
237
|
console.error(
|
|
207
|
-
'usage: node scripts/skill-search.mjs "<query>" [--limit 5] [--sources anthropic,skills-sh,github] [--owner <owner>] [--raw]',
|
|
238
|
+
'usage: node scripts/skill-search.mjs "<query>" [--limit 5(total, merged across tiers)] [--sources anthropic,skills-sh,github] [--owner <owner>] [--raw]',
|
|
208
239
|
)
|
|
209
240
|
process.exit(1)
|
|
210
241
|
}
|
|
@@ -705,8 +705,9 @@ const TOOL_DESCRIPTION =
|
|
|
705
705
|
'(advisory quality score + needs-review flag; the result content itself is never sent — ' +
|
|
706
706
|
'shape metrics and criteria only), `mode: "rank"` to pick the best of 2-20 named candidates ' +
|
|
707
707
|
'(returns the winner and its fit score; no full ordering), `mode: "verify"` to check 1-4 ' +
|
|
708
|
-
'named claims
|
|
709
|
-
'
|
|
708
|
+
'named claims, with optional `state` evidence the claims are judged against ' +
|
|
709
|
+
'(verdicts PASS, FAIL, or UNVERIFIABLE for the 0.35-0.65 band; any refusal, timeout or ' +
|
|
710
|
+
'malformed answer is BLOCK, fail-closed), or pass explicit typed `questions` (choice, score, ' +
|
|
710
711
|
'predicate). Invalid-input refusals carry a `detail` token naming the exact cause. Returns ' +
|
|
711
712
|
'probabilistic answers with confidence. Requires decision-router egress ' +
|
|
712
713
|
'consent and budget caps; asks host permission first. It never dispatches agents, runs ' +
|
|
@@ -289,8 +289,16 @@ export const VERIFY_ENVELOPE_KEYS: ReadonlySet<string> = new Set([
|
|
|
289
289
|
'schemaVersion',
|
|
290
290
|
'mode',
|
|
291
291
|
'claims',
|
|
292
|
+
// Optional evidence: the environment/context the claims are judged against
|
|
293
|
+
// (field report beta.13 §6 — without it, environment-dependent claims are
|
|
294
|
+
// unanswerable and the honest verdict is UNVERIFIABLE, not FAIL).
|
|
295
|
+
'state',
|
|
292
296
|
])
|
|
293
297
|
|
|
298
|
+
/** The verdict band treated as "the model could not tell" (neither PASS nor FAIL). */
|
|
299
|
+
export const VERIFY_UNVERIFIABLE_LOW = 0.35
|
|
300
|
+
export const VERIFY_UNVERIFIABLE_HIGH = 0.65
|
|
301
|
+
|
|
294
302
|
export type JevVerifyBuildFailure = 'VERIFY_INPUT_INVALID' | 'CLAIM_INVALID'
|
|
295
303
|
|
|
296
304
|
export type JevVerifyBuild =
|
|
@@ -354,8 +362,21 @@ export function buildJevVerifyRequest(input: unknown): JevVerifyBuild {
|
|
|
354
362
|
seen.add(name)
|
|
355
363
|
questions.push({ type: 'predicate', name, instructions: verifyInstructions(claim) })
|
|
356
364
|
}
|
|
365
|
+
// Optional evidence: the caller's state rides as the input text the claims
|
|
366
|
+
// are judged against; without it the template keeps claims self-contained.
|
|
367
|
+
const rawState = (input as Record<string, unknown>).state
|
|
368
|
+
let evidence = VERIFY_STATE_TEMPLATE
|
|
369
|
+
if (rawState !== undefined) {
|
|
370
|
+
if (
|
|
371
|
+
!isBoundedNonBlankString(rawState, NATIVE_DECISION_MAX_PROMPT_LENGTH) ||
|
|
372
|
+
isHostileProse(rawState)
|
|
373
|
+
) {
|
|
374
|
+
return { ok: false, reasonCode: 'VERIFY_INPUT_INVALID' }
|
|
375
|
+
}
|
|
376
|
+
evidence = `${VERIFY_STATE_TEMPLATE} Evidence/context supplied by the caller, to be trusted as given: ${rawState}`
|
|
377
|
+
}
|
|
357
378
|
const request = {
|
|
358
|
-
input: Object.freeze([Object.freeze({ type: 'text' as const, text:
|
|
379
|
+
input: Object.freeze([Object.freeze({ type: 'text' as const, text: evidence })]),
|
|
359
380
|
questions: Object.freeze(questions.map((question) => Object.freeze(question))),
|
|
360
381
|
} satisfies Omit<NativeDecisionRequest, 'model'>
|
|
361
382
|
return { ok: true, request: Object.freeze(request) }
|
|
@@ -424,7 +445,7 @@ export function consumeJevRankResult(
|
|
|
424
445
|
* verified (or as refuted — an unverifiable claim is unverifiable, not
|
|
425
446
|
* false).
|
|
426
447
|
*/
|
|
427
|
-
export type VerifyClaimVerdict = 'PASS' | 'FAIL' | 'BLOCK'
|
|
448
|
+
export type VerifyClaimVerdict = 'PASS' | 'FAIL' | 'UNVERIFIABLE' | 'BLOCK'
|
|
428
449
|
|
|
429
450
|
/**
|
|
430
451
|
* Consume a host Decisions response against the prepared verify request:
|
|
@@ -441,7 +462,13 @@ export function consumeJevVerifyResult(
|
|
|
441
462
|
for (const question of request.questions) {
|
|
442
463
|
const answer = advice.answers.find((candidate) => candidate.name === question.name)
|
|
443
464
|
if (answer !== undefined && answer.type === 'predicate') {
|
|
444
|
-
|
|
465
|
+
const probability = answer.probability ?? 0
|
|
466
|
+
verdicts[question.name] =
|
|
467
|
+
probability >= VERIFY_PASS_THRESHOLD
|
|
468
|
+
? 'PASS'
|
|
469
|
+
: probability >= VERIFY_UNVERIFIABLE_LOW
|
|
470
|
+
? 'UNVERIFIABLE'
|
|
471
|
+
: 'FAIL'
|
|
445
472
|
} else {
|
|
446
473
|
verdicts[question.name] = 'BLOCK'
|
|
447
474
|
}
|
|
@@ -51,7 +51,10 @@ export const PANTHEON_AGENT_CATALOG: readonly DecisionCatalogEntry[] = Object.fr
|
|
|
51
51
|
{ id: 'aphrodite', description: 'Frontend specialist: React, TypeScript, WCAG.' },
|
|
52
52
|
{ id: 'demeter', description: 'Database specialist: SQLAlchemy, migrations, queries.' },
|
|
53
53
|
{ id: 'themis', description: 'Quality and security review gate.' },
|
|
54
|
-
{
|
|
54
|
+
{
|
|
55
|
+
id: 'prometheus',
|
|
56
|
+
description: 'Infrastructure, Docker, CI, observability and tracing, model providers.',
|
|
57
|
+
},
|
|
55
58
|
{ id: 'hephaestus', description: 'AI pipelines: LangChain, RAG, vector stores.' },
|
|
56
59
|
{ id: 'nyx', description: 'Chaos and adversarial testing: fuzzing, hostile inputs, boundaries.' },
|
|
57
60
|
{ id: 'gaia', description: 'Remote sensing and geospatial analysis.' },
|
|
@@ -11,12 +11,20 @@
|
|
|
11
11
|
* channel — the initial JSX mounts but effects/refresh/events stay dead (the
|
|
12
12
|
* "mudo panel" symptom; same contract as the V1 `server.ts` stub).
|
|
13
13
|
*
|
|
14
|
-
* This stub satisfies the loader contract.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* This stub satisfies the loader contract. Field report (beta.13): host 2.2.5
|
|
15
|
+
* validates the default export as a DEFINITION OBJECT — "Plugin must export a
|
|
16
|
+
* default definition with an id and an effect or setup function
|
|
17
|
+
* (SchemaError(Expected object at ["default"]))" — the bare `server()`
|
|
18
|
+
* function form failed that schema on every boot (~3.4k load failures in the
|
|
19
|
+
* host log). The native quota RPC that used to live here was removed in 1.6.2
|
|
20
|
+
* — provider quota/usage visibility is now the community plugin's job
|
|
21
|
+
* (`@slkiser/opencode-quota`, docs/tui-v2-quota-providers.md) — and
|
|
22
|
+
* pantheon-tui has no other background server work of its own.
|
|
19
23
|
*/
|
|
20
|
-
|
|
24
|
+
declare const _default: {
|
|
25
|
+
id: string;
|
|
26
|
+
setup(): {};
|
|
27
|
+
};
|
|
21
28
|
//#endregion
|
|
29
|
+
export { _default as default };
|
|
22
30
|
//# sourceMappingURL=server-v2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-v2.d.ts","names":[],"sources":["../src/server-v2.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"server-v2.d.ts","names":[],"sources":["../src/server-v2.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;cAAA;EAuBE;EACA"}
|
|
@@ -11,16 +11,23 @@
|
|
|
11
11
|
* channel — the initial JSX mounts but effects/refresh/events stay dead (the
|
|
12
12
|
* "mudo panel" symptom; same contract as the V1 `server.ts` stub).
|
|
13
13
|
*
|
|
14
|
-
* This stub satisfies the loader contract.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
14
|
+
* This stub satisfies the loader contract. Field report (beta.13): host 2.2.5
|
|
15
|
+
* validates the default export as a DEFINITION OBJECT — "Plugin must export a
|
|
16
|
+
* default definition with an id and an effect or setup function
|
|
17
|
+
* (SchemaError(Expected object at ["default"]))" — the bare `server()`
|
|
18
|
+
* function form failed that schema on every boot (~3.4k load failures in the
|
|
19
|
+
* host log). The native quota RPC that used to live here was removed in 1.6.2
|
|
20
|
+
* — provider quota/usage visibility is now the community plugin's job
|
|
21
|
+
* (`@slkiser/opencode-quota`, docs/tui-v2-quota-providers.md) — and
|
|
22
|
+
* pantheon-tui has no other background server work of its own.
|
|
19
23
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
var server_v2_default = {
|
|
25
|
+
id: "pantheon.tui.server",
|
|
26
|
+
setup() {
|
|
27
|
+
return {};
|
|
28
|
+
}
|
|
29
|
+
};
|
|
23
30
|
//#endregion
|
|
24
|
-
export {
|
|
31
|
+
export { server_v2_default as default };
|
|
25
32
|
|
|
26
33
|
//# sourceMappingURL=server-v2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-v2.js","names":[],"sources":["../src/server-v2.ts"],"sourcesContent":["/**\n * No-op server stub for the OpenCode V2 plugin loader.\n *\n * The OpenCode plugin host requires every plugin (TUI included) to expose a\n * `server()` entry via `exports[\"./server\"]` (or package.json `main`) — for the\n * V2 copy this root `index-v2.ts` re-export resolves to this compiled entry —\n * and it loads that server half only from a `config.plugins` entry (see\n * `scripts/install/opencode.mjs`). When the entry is missing the host fails to\n * attach the plugin's server half and the TUI runtime never wires the reactive\n * channel — the initial JSX mounts but effects/refresh/events stay dead (the\n * \"mudo panel\" symptom; same contract as the V1 `server.ts` stub).\n *\n * This stub satisfies the loader contract. The native quota RPC that used to
|
|
1
|
+
{"version":3,"file":"server-v2.js","names":[],"sources":["../src/server-v2.ts"],"sourcesContent":["/**\n * No-op server stub for the OpenCode V2 plugin loader.\n *\n * The OpenCode plugin host requires every plugin (TUI included) to expose a\n * `server()` entry via `exports[\"./server\"]` (or package.json `main`) — for the\n * V2 copy this root `index-v2.ts` re-export resolves to this compiled entry —\n * and it loads that server half only from a `config.plugins` entry (see\n * `scripts/install/opencode.mjs`). When the entry is missing the host fails to\n * attach the plugin's server half and the TUI runtime never wires the reactive\n * channel — the initial JSX mounts but effects/refresh/events stay dead (the\n * \"mudo panel\" symptom; same contract as the V1 `server.ts` stub).\n *\n * This stub satisfies the loader contract. Field report (beta.13): host 2.2.5\n * validates the default export as a DEFINITION OBJECT — \"Plugin must export a\n * default definition with an id and an effect or setup function\n * (SchemaError(Expected object at [\"default\"]))\" — the bare `server()`\n * function form failed that schema on every boot (~3.4k load failures in the\n * host log). The native quota RPC that used to live here was removed in 1.6.2\n * — provider quota/usage visibility is now the community plugin's job\n * (`@slkiser/opencode-quota`, docs/tui-v2-quota-providers.md) — and\n * pantheon-tui has no other background server work of its own.\n */\nexport default {\n id: 'pantheon.tui.server',\n setup() {\n return {}\n },\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAA,oBAAe;CACb,IAAI;CACJ,QAAQ;EACN,OAAO,CAAC;CACV;AACF"}
|
|
@@ -367,7 +367,7 @@ async function readChangelogForBundle(bundleUrl) {
|
|
|
367
367
|
}
|
|
368
368
|
/** The ambient build-time version, or null outside a tsdown build. */
|
|
369
369
|
function embeddedVersion() {
|
|
370
|
-
return "1.6.3-beta.
|
|
370
|
+
return "1.6.3-beta.13";
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
373
373
|
* Resolve the running Pantheon version for the what's-new window: the plugin
|
|
@@ -3752,7 +3752,7 @@ function Sidebar(props) {
|
|
|
3752
3752
|
setProp(_el$12, "width", "100%");
|
|
3753
3753
|
setProp(_el$12, "padding", 1);
|
|
3754
3754
|
setProp(_el$13, "attributes", 1);
|
|
3755
|
-
insert(_el$13, `Pantheon v1.6.3-beta.
|
|
3755
|
+
insert(_el$13, `Pantheon v1.6.3-beta.13`);
|
|
3756
3756
|
insert(_el$14, () => presetHeaderLine(model.preset().name ?? "", model.provider()));
|
|
3757
3757
|
insert(_el$12, createComponent(Show, {
|
|
3758
3758
|
get when() {
|
|
@@ -4473,7 +4473,7 @@ function HomeStatus(props) {
|
|
|
4473
4473
|
const muted = () => props.context.theme?.text?.muted ?? props.context.theme?.text?.base;
|
|
4474
4474
|
return (() => {
|
|
4475
4475
|
var _el$72 = createElement("text");
|
|
4476
|
-
insert(_el$72, () => `Pantheon v1.6.3-beta.
|
|
4476
|
+
insert(_el$72, () => `Pantheon v1.6.3-beta.13${preset().name ? ` ▸ ${preset().name}` : ""}`);
|
|
4477
4477
|
effect((_$p) => setProp(_el$72, "fg", muted(), _$p));
|
|
4478
4478
|
return _el$72;
|
|
4479
4479
|
})();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pantheon-tui",
|
|
3
|
-
"version": "1.6.3-beta.
|
|
3
|
+
"version": "1.6.3-beta.14",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pantheon-tui",
|
|
9
|
-
"version": "1.6.3-beta.
|
|
9
|
+
"version": "1.6.3-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.3-beta.
|
|
4
|
+
"version": "1.6.3-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": {
|
|
@@ -10,12 +10,19 @@
|
|
|
10
10
|
* channel — the initial JSX mounts but effects/refresh/events stay dead (the
|
|
11
11
|
* "mudo panel" symptom; same contract as the V1 `server.ts` stub).
|
|
12
12
|
*
|
|
13
|
-
* This stub satisfies the loader contract.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
13
|
+
* This stub satisfies the loader contract. Field report (beta.13): host 2.2.5
|
|
14
|
+
* validates the default export as a DEFINITION OBJECT — "Plugin must export a
|
|
15
|
+
* default definition with an id and an effect or setup function
|
|
16
|
+
* (SchemaError(Expected object at ["default"]))" — the bare `server()`
|
|
17
|
+
* function form failed that schema on every boot (~3.4k load failures in the
|
|
18
|
+
* host log). The native quota RPC that used to live here was removed in 1.6.2
|
|
19
|
+
* — provider quota/usage visibility is now the community plugin's job
|
|
20
|
+
* (`@slkiser/opencode-quota`, docs/tui-v2-quota-providers.md) — and
|
|
21
|
+
* pantheon-tui has no other background server work of its own.
|
|
18
22
|
*/
|
|
19
|
-
export default
|
|
20
|
-
|
|
23
|
+
export default {
|
|
24
|
+
id: 'pantheon.tui.server',
|
|
25
|
+
setup() {
|
|
26
|
+
return {}
|
|
27
|
+
},
|
|
21
28
|
}
|