pantheon-opencode 1.6.3-beta.22 → 1.6.3-beta.24

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,18 @@ 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.24] - 2026-11-06
14
+
15
+ ## 🆕 What's New
16
+ - Refinement is now DETERMINISTIC: the local router computes `refineRecommended` from pure text rules (multi-concern, no acceptance criteria — PT+EN; one-liners never refine; explicit criteria suppress). No Jev, no model judgment, zero cost — badly structured prompts get the refine signal before they can degrade processing, and zeus treats the signal as obligatory.
17
+
18
+ ## [v1.6.3-beta.23] - 2026-11-06
19
+
20
+ ## 🆕 What's New
21
+ - Doctor recognizes the installer's own V2 shape again (`{ package, options }` was never probed — a healthy config read as "no V2 generation registered").
22
+ - TUI version embed rebuilt (the footer no longer says beta.15).
23
+ - The prompt-refinery contract is bound to the FIRST turn: no reads, no dispatches before it (field evidence: discovery-first burned a delegation and still ended in the same questions).
24
+
13
25
  ## [v1.6.3-beta.22] - 2026-11-06
14
26
 
15
27
  ## 🆕 What's New
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "1.6.3-beta.22",
3
+ "version": "1.6.3-beta.24",
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": "1.6.3-beta.22",
4
+ "version": "1.6.3-beta.24",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 22 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.22"
7
+ version = "1.6.3-beta.24"
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
@@ -1750,11 +1750,14 @@ export function checkPluginVersionDrift(args) {
1750
1750
  * @returns {boolean}
1751
1751
  */
1752
1752
  function isV2PluginRef(ref) {
1753
+ // QA beta.20: the installer's V2 writer emits `{ package, options }` —
1754
+ // `package` must be probed FIRST or a perfectly healthy config reads as
1755
+ // "no V2 generation registered" (a false negative the field hit).
1753
1756
  const candidate =
1754
1757
  typeof ref === 'string'
1755
1758
  ? ref
1756
1759
  : ref && typeof ref === 'object'
1757
- ? (ref.path ?? ref.source ?? ref.id ?? ref.name)
1760
+ ? (ref.package ?? ref.path ?? ref.source ?? ref.id ?? ref.name)
1758
1761
  : undefined
1759
1762
  return typeof candidate === 'string' && candidate.includes('plugin-v2')
1760
1763
  }
@@ -106,14 +106,20 @@ the field refusal (beta.16) was the frontmatter working as designed.
106
106
  ## Vague multi-part request? Refine into a contract first
107
107
 
108
108
  When the user's request spans multiple concerns without explicit acceptance
109
- criteria (refactor + fix + redesign in one paragraph), refine it into a
110
- structured contract BEFORE executing: objective, numbered scope slices,
111
- acceptance criteria per slice, deliverables, and open questions with your
112
- recommended defaults. Load `skill: prompt-refinery` for the shape and rules.
113
- Show the contract once for confirm-or-adjust — silence proceeds with the
114
- stated defaults — then route the confirmed slices through the normal ladder.
115
- One refinement turn on the session model; never a dialogue, never a Jev call
116
- (decision models answer scalars, they do not write prose).
109
+ criteria (refactor + fix + redesign in one paragraph), the FIRST turn is the
110
+ refinement itself: NO reads, NO glob/grep, NO dispatches — load
111
+ `skill: prompt-refinery` and produce the structured contract from the request
112
+ text alone (objective, numbered scope slices, acceptance criteria per slice,
113
+ deliverables, and open questions with your recommended defaults). The local
114
+ layer computes this trigger deterministically (`refineRecommended` — no model
115
+ judgment, no Jev): when the turn carries the refine signal, refinement is
116
+ OBLIGATORY, not an opinion. Field
117
+ evidence (beta.22): discovering first burned a delegation and still ended in
118
+ the same questions — the contract does not need file access, the CONFIRMED
119
+ slices do. Show the contract once for confirm-or-adjust — silence proceeds
120
+ with the stated defaults — then route the confirmed slices through the normal
121
+ ladder. One refinement turn on the session model; never a dialogue, never a
122
+ Jev call (decision models answer scalars, they do not write prose).
117
123
 
118
124
  ## Missing capability? Find a skill before inventing one
119
125
 
@@ -30,6 +30,8 @@ export type PromptApplicationReason =
30
30
  | 'skills.synthetic.narrowed'
31
31
 
32
32
  export interface PromptApplicationResult {
33
+ /** Deterministic: this turn's request looks vague/multi-concern — refine first. */
34
+ refineRecommended?: boolean
33
35
  /** Always false since beta.10: the visible marker is suppressed. */
34
36
  markerApplied: boolean
35
37
  skillsFiltered: boolean
@@ -26,6 +26,9 @@ export interface TurnDecision {
26
26
  skillIds: string[]
27
27
  agent: string | null
28
28
  reasonCode: string
29
+ /** Deterministic refinement flag (no model judgment): the request looks
30
+ * multi-concern and without acceptance criteria — refine BEFORE executing. */
31
+ refineRecommended: boolean
29
32
  }
30
33
 
31
34
  export interface TurnDecisionInput {
@@ -44,6 +47,7 @@ function inactive(reasonCode: string): TurnDecision {
44
47
  skillIds: [],
45
48
  agent: null,
46
49
  reasonCode,
50
+ refineRecommended: false,
47
51
  }
48
52
  }
49
53
 
@@ -106,9 +110,77 @@ export function localDecisionForTest(
106
110
  skillIds,
107
111
  agent,
108
112
  reasonCode,
113
+ refineRecommended: shouldRefine(request),
109
114
  }
110
115
  }
111
116
 
117
+ /**
118
+ * DETERMINISTIC refinement trigger (field beta.22→23: the owner wants
119
+ * accessibility — badly structured prompts must not degrade processing, and
120
+ * deciding "should I refine?" via Jev is negative economics). Pure text
121
+ * signals, no model: (a) 2+ distinct action concerns, (b) long multi-clause
122
+ * text, AND (c) no acceptance-criteria markers. One positive concern OR the
123
+ * long-multi-clause shape plus absent criteria fires it.
124
+ */
125
+ const CONCERN_MARKERS: readonly string[] = [
126
+ // EN + PT: fix / improve / redesign / create / refactor / add
127
+ 'corrigir',
128
+ 'corrija',
129
+ 'arrumar',
130
+ 'consertar',
131
+ 'melhorar',
132
+ 'melhora',
133
+ 'refatorar',
134
+ 'refatora',
135
+ 'redesign',
136
+ 'redesenhar',
137
+ 'criar',
138
+ 'crie',
139
+ 'adicionar',
140
+ 'adicione',
141
+ 'implementar',
142
+ 'trocar',
143
+ 'fix',
144
+ 'improve',
145
+ 'refactor',
146
+ 'redesign',
147
+ 'create',
148
+ 'add',
149
+ 'rewrite',
150
+ 'restructure',
151
+ ]
152
+
153
+ const CRITERIA_MARKERS: readonly string[] = [
154
+ 'critério',
155
+ 'criterio',
156
+ 'critérios',
157
+ 'acceptance',
158
+ 'aceite',
159
+ 'testes de aceitação',
160
+ 'acceptance criteria',
161
+ 'done when',
162
+ 'pronto quando',
163
+ 'definition of done',
164
+ ]
165
+
166
+ export function shouldRefine(request: string): boolean {
167
+ if (typeof request !== 'string') return false
168
+ const text = request.trim()
169
+ if (text.length < 24) return false // a one-liner fix never refines
170
+ const lowered = text.toLowerCase()
171
+ if (CRITERIA_MARKERS.some((marker) => lowered.includes(marker))) return false
172
+ const concerns = CONCERN_MARKERS.filter((marker) =>
173
+ new RegExp(`(^|\\s|[^a-zà-ú])${marker}`, 'i').test(lowered),
174
+ ).length
175
+ if (concerns >= 2) return true
176
+ // Long multi-clause text with a single concern also refines (the shape of a
177
+ // vague brief): 3+ clauses via separators.
178
+ const clauses = text
179
+ .split(/[,;.]|(?:\s[eE]\s)|(?:\sy\s)/)
180
+ .filter((part) => part.trim().length > 8)
181
+ return concerns >= 1 && clauses.length >= 3
182
+ }
183
+
112
184
  /**
113
185
  * Produce the deterministic local recommendation without entering the
114
186
  * provider, consent, credential, permission, or transport path. The legacy
@@ -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.15";
370
+ return "1.6.3-beta.22";
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.15`);
3755
+ insert(_el$13, `Pantheon v1.6.3-beta.22`);
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.15${preset().name ? ` ▸ ${preset().name}` : ""}`);
4476
+ insert(_el$72, () => `Pantheon v1.6.3-beta.22${preset().name ? ` ▸ ${preset().name}` : ""}`);
4477
4477
  effect((_$p) => setProp(_el$72, "fg", muted(), _$p));
4478
4478
  return _el$72;
4479
4479
  })();
@@ -167,7 +167,7 @@ async function detectVersion(api) {
167
167
  if (ver) return ver;
168
168
  }
169
169
  } catch {}
170
- return "1.6.3-beta.15";
170
+ return "1.6.3-beta.22";
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.3-beta.22",
3
+ "version": "1.6.3-beta.24",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pantheon-tui",
9
- "version": "1.6.3-beta.22",
9
+ "version": "1.6.3-beta.24",
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.22",
4
+ "version": "1.6.3-beta.24",
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": {