pantheon-opencode 2.0.0-beta.4 → 2.0.0-beta.6
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 +39 -68
- package/README.md +18 -5
- package/bin/pantheon-init.mjs +1 -2
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/changelog-format.mjs +345 -0
- package/scripts/changelog-merge.mjs +5 -10
- package/scripts/docs-check-changelog.mjs +36 -137
- package/scripts/install/interactive.mjs +5 -254
- package/scripts/install/opencode.mjs +19 -76
- package/scripts/release-gates.mjs +33 -13
- package/scripts/release-notes.mjs +51 -36
- package/scripts/release-retrofit.mjs +158 -0
- package/scripts/skill-search.mjs +39 -4
- package/scripts/versioning.mjs +1 -1
- package/skills-lock.json +1 -1
- package/src/pantheon/goal-loop-config.ts +55 -0
- package/src/pantheon/native-vision.ts +9 -5
- package/src/pantheon/vision.ts +14 -1
- package/src/plugin.ts +39 -7
- package/src/plugins/tui/dist/tui.d.ts +3 -2
- package/src/plugins/tui/dist/tui.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui.js +961 -312
- 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/autonomy-state.ts +149 -0
- package/src/plugins/tui/src/decision-router-state.ts +128 -6
- package/src/plugins/tui/src/index.tsx +86 -29
- package/src/plugins/tui/src/pantheon-settings.tsx +296 -24
- package/src/plugins/tui/src/tui-prefs.ts +378 -0
- package/src/skills/prompt-refinery/SKILL.md +34 -4
|
@@ -5,26 +5,34 @@
|
|
|
5
5
|
* Bridges the conventional-commit pipeline (commitlint: 12 types / 40 scopes)
|
|
6
6
|
* to the CHANGELOG / release-body content. Reads `git log <lastTag>..HEAD`
|
|
7
7
|
* (subject + body per commit), groups commits by type, and prints markdown
|
|
8
|
-
* ready to paste into
|
|
8
|
+
* in the canonical CHANGELOG format (docs/RELEASING.md), ready to paste into
|
|
9
|
+
* the [Unreleased] CHANGELOG section.
|
|
9
10
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* ✅ Closed Issues
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
11
|
+
* Sections (Keep a Changelog, canonical order — empty ones omitted):
|
|
12
|
+
* ### Added feat
|
|
13
|
+
* ### Changed perf | docs
|
|
14
|
+
* ### Fixed fix
|
|
15
|
+
* ### Security security
|
|
16
|
+
* ### ⚠️ Known Issues manual — CLI flag `--known-issues "text"`
|
|
17
|
+
* (repeatable); omitted when the flag is absent
|
|
18
|
+
* ### ✅ Closed Issues issue refs parsed from commit BODIES (%b):
|
|
19
|
+
* `Closes #N` / `Fixes #N` / `Resolves #N` — one
|
|
20
|
+
* bullet `- #N - <subject>` per referenced issue
|
|
21
|
+
* (deduped); omitted when no refs exist
|
|
22
|
+
*
|
|
23
|
+
* The curated `### 🆕 What's New` highlights block is NOT generated: it is
|
|
24
|
+
* authored by hand on top of the generated sections in the bump PR (≤6
|
|
25
|
+
* bullets, ≤140 chars — the TUI window contract).
|
|
26
|
+
*
|
|
27
|
+
* Deprecated / Removed have no commit type; their sections are authored by
|
|
28
|
+
* hand when the release needs them.
|
|
21
29
|
*
|
|
22
30
|
* Omitted (internal, never user-facing): release scope and chore | refactor |
|
|
23
31
|
* test | ci | build | style | revert (unknown conventional types too).
|
|
24
32
|
*
|
|
25
33
|
* Breaking: `BREAKING CHANGE` footer or `type!:` / `type(scope)!:` — the
|
|
26
|
-
* commit keeps its
|
|
27
|
-
* (e.g. `- 💥 **scope** — subject`). No dedicated Breaking
|
|
34
|
+
* commit keeps its section and the bullet is prefixed with 💥
|
|
35
|
+
* (e.g. `- 💥 **scope** — subject`). No dedicated Breaking section.
|
|
28
36
|
*
|
|
29
37
|
* Skipped: merge commits ("Merge ..."), empty-subject commits (trivial
|
|
30
38
|
* chores), and non-conventional subjects (grandfathered history only).
|
|
@@ -178,45 +186,48 @@ export function parseCommitLine(line) {
|
|
|
178
186
|
}
|
|
179
187
|
|
|
180
188
|
/**
|
|
181
|
-
* Conventional type →
|
|
182
|
-
* (chore, refactor, test, ci, build, style, revert, unknown) are internal
|
|
189
|
+
* Conventional type → canonical CHANGELOG section. Types missing from this
|
|
190
|
+
* map (chore, refactor, test, ci, build, style, revert, unknown) are internal
|
|
183
191
|
* and omitted from the notes. The maintainer-only `release` scope is also
|
|
184
192
|
* omitted, including its issue references.
|
|
185
193
|
*/
|
|
186
|
-
const
|
|
187
|
-
feat: '
|
|
188
|
-
perf: '
|
|
189
|
-
docs: '
|
|
194
|
+
const TYPE_SECTIONS = {
|
|
195
|
+
feat: 'added',
|
|
196
|
+
perf: 'changed',
|
|
197
|
+
docs: 'changed',
|
|
190
198
|
fix: 'fixed',
|
|
191
|
-
security: '
|
|
199
|
+
security: 'security',
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
/**
|
|
195
|
-
* Group parsed commits into the
|
|
196
|
-
* commits keep their
|
|
197
|
-
* internal types and the `release` scope are dropped; issue refs from
|
|
198
|
-
* commit bodies feed closedIssues (deduped, first occurrence wins).
|
|
199
|
-
* keep git log order.
|
|
203
|
+
* Group parsed commits into the canonical release-note sections. Breaking
|
|
204
|
+
* commits keep their section (the 💥 marker is applied at render time);
|
|
205
|
+
* internal types and the `release` scope are dropped; issue refs from
|
|
206
|
+
* remaining commit bodies feed closedIssues (deduped, first occurrence wins).
|
|
207
|
+
* Entries keep git log order.
|
|
200
208
|
*
|
|
201
209
|
* @param {Array<ReturnType<typeof parseCommitLine>>} entries
|
|
202
210
|
* @param {{knownIssues?: string[]|string|null}} [options]
|
|
203
211
|
* knownIssues — manual Known Issues entries (CLI --known-issues). Omitted
|
|
204
212
|
* (empty array) when not provided.
|
|
205
|
-
* @returns {{
|
|
213
|
+
* @returns {{added: Array, changed: Array, fixed: Array, security: Array,
|
|
214
|
+
* knownIssues: string[],
|
|
206
215
|
* closedIssues: Array<{ref: number, subject: string}>}}
|
|
207
216
|
*/
|
|
208
217
|
export function groupCommits(entries, options = {}) {
|
|
209
218
|
const { knownIssues = [] } = options
|
|
210
219
|
const groups = {
|
|
211
|
-
|
|
220
|
+
added: [],
|
|
221
|
+
changed: [],
|
|
212
222
|
fixed: [],
|
|
223
|
+
security: [],
|
|
213
224
|
knownIssues: Array.isArray(knownIssues) ? [...knownIssues] : knownIssues ? [knownIssues] : [],
|
|
214
225
|
closedIssues: [],
|
|
215
226
|
}
|
|
216
227
|
const seenRefs = new Set()
|
|
217
228
|
for (const entry of entries) {
|
|
218
229
|
if (!entry || entry.scope === 'release') continue
|
|
219
|
-
const bucket =
|
|
230
|
+
const bucket = TYPE_SECTIONS[entry.type]
|
|
220
231
|
if (bucket) groups[bucket].push(entry)
|
|
221
232
|
for (const ref of entry.refs) {
|
|
222
233
|
if (seenRefs.has(ref)) continue
|
|
@@ -245,10 +256,14 @@ function closedIssueBullet({ ref, subject }) {
|
|
|
245
256
|
return subject ? `- #${ref} - ${subject}` : `- #${ref}`
|
|
246
257
|
}
|
|
247
258
|
|
|
248
|
-
/** Section order —
|
|
259
|
+
/** Section order — canonical (docs/RELEASING.md): KaC first, Known/Closed
|
|
260
|
+
* Issues last. Rendered as `### ` so the section stays inside the
|
|
261
|
+
* changelog-extract boundaries. */
|
|
249
262
|
const MARKDOWN_SECTIONS = [
|
|
250
|
-
['
|
|
251
|
-
['
|
|
263
|
+
['added', 'Added'],
|
|
264
|
+
['changed', 'Changed'],
|
|
265
|
+
['fixed', 'Fixed'],
|
|
266
|
+
['security', 'Security'],
|
|
252
267
|
['knownIssues', '⚠️ Known Issues'],
|
|
253
268
|
['closedIssues', '✅ Closed Issues'],
|
|
254
269
|
]
|
|
@@ -261,7 +276,7 @@ function renderEntry(key, entry) {
|
|
|
261
276
|
}
|
|
262
277
|
|
|
263
278
|
/**
|
|
264
|
-
* Render grouped commits as
|
|
279
|
+
* Render grouped commits as canonical markdown (the CLI stdout and the
|
|
265
280
|
* CHANGELOG body). Returns '' when there is nothing to report.
|
|
266
281
|
*
|
|
267
282
|
* @param {ReturnType<typeof groupCommits>} groups
|
|
@@ -271,7 +286,7 @@ export function renderMarkdown(groups) {
|
|
|
271
286
|
const blocks = []
|
|
272
287
|
for (const [key, heading] of MARKDOWN_SECTIONS) {
|
|
273
288
|
if (!groups[key]?.length) continue
|
|
274
|
-
blocks.push(
|
|
289
|
+
blocks.push(`### ${heading}\n${groups[key].map((entry) => renderEntry(key, entry)).join('\n')}`)
|
|
275
290
|
}
|
|
276
291
|
return blocks.join('\n\n')
|
|
277
292
|
}
|
|
@@ -279,8 +294,8 @@ export function renderMarkdown(groups) {
|
|
|
279
294
|
/**
|
|
280
295
|
* Render grouped commits for a CHANGELOG version entry. Used by
|
|
281
296
|
* `versioning.mjs apply --notes` to pre-fill the promoted [Unreleased] entry.
|
|
282
|
-
* Emits the SAME
|
|
283
|
-
*
|
|
297
|
+
* Emits the SAME canonical sections as renderMarkdown — the curated
|
|
298
|
+
* `### 🆕 What's New` highlights block is authored by hand on top.
|
|
284
299
|
*
|
|
285
300
|
* @param {ReturnType<typeof groupCommits>} groups
|
|
286
301
|
* @returns {string}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* release-retrofit.mjs — one-off standardization of the existing GitHub
|
|
4
|
+
* releases onto the canonical format (docs/RELEASING.md).
|
|
5
|
+
*
|
|
6
|
+
* Two actions per release:
|
|
7
|
+
* 1. Title → always `Pantheon <tag>` (the workflow-set format). Applies to
|
|
8
|
+
* EVERY release, pre-releases included.
|
|
9
|
+
* 2. Body → stable releases whose tag carries a `## [<version>]` section
|
|
10
|
+
* in that tag's CHANGELOG.md get the section republished verbatim —
|
|
11
|
+
* restoring the invariant "release body == CHANGELOG section at the tag"
|
|
12
|
+
* that the release workflow now enforces on every re-run. Pre-releases
|
|
13
|
+
* and tags without a section are left untouched (archived records).
|
|
14
|
+
*
|
|
15
|
+
* Dry-run by default: prints the planned actions and exits. `--apply` backs
|
|
16
|
+
* every current release (title + body) up to release-retrofit-backup.json in
|
|
17
|
+
* the repo root, then edits. The backup is the undo path — delete it only
|
|
18
|
+
* after reviewing the results, and never commit it.
|
|
19
|
+
*
|
|
20
|
+
* Usage:
|
|
21
|
+
* node scripts/release-retrofit.mjs # dry-run
|
|
22
|
+
* node scripts/release-retrofit.mjs --apply # backup + edit via gh
|
|
23
|
+
*
|
|
24
|
+
* Requires: gh authenticated for the repo, tags fetched
|
|
25
|
+
* (`git fetch --tags` if a tag is missing locally).
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
import { execSync } from 'node:child_process'
|
|
29
|
+
import { writeFileSync } from 'node:fs'
|
|
30
|
+
import { tmpdir } from 'node:os'
|
|
31
|
+
import { dirname, join } from 'node:path'
|
|
32
|
+
import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
33
|
+
|
|
34
|
+
import { extractSection } from './changelog-extract.mjs'
|
|
35
|
+
|
|
36
|
+
const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
37
|
+
const BACKUP_PATH = join(ROOT, 'release-retrofit-backup.json')
|
|
38
|
+
const STABLE_TAG = /^v\d+\.\d+\.\d+$/
|
|
39
|
+
|
|
40
|
+
function git(args, { quiet = false } = {}) {
|
|
41
|
+
try {
|
|
42
|
+
return execSync(`git ${args}`, { cwd: ROOT, encoding: 'utf-8' }).trim()
|
|
43
|
+
} catch (error) {
|
|
44
|
+
if (quiet) return ''
|
|
45
|
+
throw new Error(`git ${args} failed: ${error.message}`)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function gh(args) {
|
|
50
|
+
return execSync(`gh ${args}`, { cwd: ROOT, encoding: 'utf-8', maxBuffer: 64 * 1024 * 1024 })
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** Every release: one JSON line per item ({tag, name, body, prerelease}). */
|
|
54
|
+
function fetchReleases() {
|
|
55
|
+
const repo = git('remote get-url origin')
|
|
56
|
+
.replace(/^git@github\.com:/, '')
|
|
57
|
+
.replace(/\.git$/, '')
|
|
58
|
+
const out = gh(
|
|
59
|
+
`api "repos/${repo}/releases?per_page=100" --paginate -q '.[] | {tag: .tag_name, name, body: (.body // ""), prerelease}'`,
|
|
60
|
+
)
|
|
61
|
+
return out
|
|
62
|
+
.split('\n')
|
|
63
|
+
.filter(Boolean)
|
|
64
|
+
.map((line) => JSON.parse(line))
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function sectionAtTag(tag) {
|
|
68
|
+
if (git(`rev-parse --verify --quiet ${tag}^{commit}`, { quiet: true }) === '') {
|
|
69
|
+
return { found: false, reason: 'tag not fetched locally (git fetch --tags)' }
|
|
70
|
+
}
|
|
71
|
+
let changelog
|
|
72
|
+
try {
|
|
73
|
+
changelog = git(`show ${tag}:CHANGELOG.md`)
|
|
74
|
+
} catch {
|
|
75
|
+
return { found: false, reason: 'no CHANGELOG.md at tag' }
|
|
76
|
+
}
|
|
77
|
+
const { found, body } = extractSection(changelog, tag)
|
|
78
|
+
if (!found || !body) return { found: false, reason: 'no section in the tag CHANGELOG' }
|
|
79
|
+
return { found: true, body }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function main() {
|
|
83
|
+
const apply = process.argv.includes('--apply')
|
|
84
|
+
const releases = fetchReleases()
|
|
85
|
+
const planned = []
|
|
86
|
+
let titles = 0
|
|
87
|
+
let bodies = 0
|
|
88
|
+
|
|
89
|
+
for (const release of releases) {
|
|
90
|
+
const expectedTitle = `Pantheon ${release.tag}`
|
|
91
|
+
const titleAction = release.name === expectedTitle ? null : `${release.name} → ${expectedTitle}`
|
|
92
|
+
let bodyAction = 'keep'
|
|
93
|
+
let bodySource = ''
|
|
94
|
+
|
|
95
|
+
if (STABLE_TAG.test(release.tag)) {
|
|
96
|
+
const section = sectionAtTag(release.tag)
|
|
97
|
+
if (section.found) {
|
|
98
|
+
bodySource = `CHANGELOG @ ${release.tag} (${section.body.length} bytes)`
|
|
99
|
+
if (release.body.replace(/\s+$/, '') !== section.body.replace(/\s+$/, '')) {
|
|
100
|
+
bodyAction = 'REWRITE'
|
|
101
|
+
}
|
|
102
|
+
} else {
|
|
103
|
+
bodySource = section.reason
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
bodySource = 'pre-release: title only'
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (titleAction) titles += 1
|
|
110
|
+
if (bodyAction === 'REWRITE') bodies += 1
|
|
111
|
+
planned.push({ ...release, expectedTitle, titleAction, bodyAction, bodySource })
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
for (const action of planned) {
|
|
115
|
+
const title = action.titleAction ?? 'ok'
|
|
116
|
+
console.log(
|
|
117
|
+
`${action.tag.padEnd(20)} title: ${title.padEnd(46)} body: ${action.bodyAction.padEnd(7)} ${action.bodySource}`,
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
console.log(`\n${planned.length} release(s): ${titles} title edit(s), ${bodies} body rewrite(s).`)
|
|
121
|
+
|
|
122
|
+
if (!apply) {
|
|
123
|
+
console.log('dry-run — re-run with --apply to execute (a backup is written first).')
|
|
124
|
+
return
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (titles + bodies === 0) {
|
|
128
|
+
console.log('nothing to do.')
|
|
129
|
+
return
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
writeFileSync(BACKUP_PATH, `${JSON.stringify(planned, null, 2)}\n`)
|
|
133
|
+
console.log(`backup written: ${BACKUP_PATH}`)
|
|
134
|
+
|
|
135
|
+
for (const action of planned) {
|
|
136
|
+
if (!action.titleAction && action.bodyAction !== 'REWRITE') continue
|
|
137
|
+
const flags = []
|
|
138
|
+
if (action.titleAction) flags.push(`--title "${action.expectedTitle}"`)
|
|
139
|
+
if (action.bodyAction === 'REWRITE') {
|
|
140
|
+
const notesPath = join(tmpdir(), `release-retrofit-${action.tag}.md`)
|
|
141
|
+
writeFileSync(notesPath, `${sectionBody(action)}\n`)
|
|
142
|
+
flags.push(`--notes-file "${notesPath}"`)
|
|
143
|
+
}
|
|
144
|
+
gh(`release edit ${action.tag} ${flags.join(' ')}`)
|
|
145
|
+
console.log(`edited ${action.tag}`)
|
|
146
|
+
}
|
|
147
|
+
console.log('done — verify with `gh release list` and `gh release view <tag>`.')
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** Resolve the section body for an action at apply time (single lookup). */
|
|
151
|
+
function sectionBody(action) {
|
|
152
|
+
const section = sectionAtTag(action.tag)
|
|
153
|
+
if (!section.found) throw new Error(`${action.tag}: section vanished between dry-run and apply`)
|
|
154
|
+
return section.body
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const isDirectRun = process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href
|
|
158
|
+
if (isDirectRun) main()
|
package/scripts/skill-search.mjs
CHANGED
|
@@ -31,6 +31,13 @@ const SKILL_LINE =
|
|
|
31
31
|
/^([A-Za-z0-9._-]+\/[A-Za-z0-9._-]+@[A-Za-z0-9._-]+)\s+([\d.,]+)\s*([KM]?)\s+installs$/
|
|
32
32
|
const URL_LINE = /^└?\s*(https:\/\/skills\.sh\/\S+)$/
|
|
33
33
|
|
|
34
|
+
/** Distinct query tokens the name actually matches (0 = no lexical tie). */
|
|
35
|
+
export function nameMatchScore(name, tokens) {
|
|
36
|
+
const lower = String(name).toLowerCase()
|
|
37
|
+
const unique = [...new Set(tokens)]
|
|
38
|
+
return unique.reduce((score, token) => score + (lower.includes(token) ? 1 : 0), 0)
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
/** '578.8K' / '1.2M' / '489' → absolute integer installs (K=1e3, M=1e6). */
|
|
35
42
|
export function parseInstallCount(digits, suffix) {
|
|
36
43
|
const base = Number(String(digits).replaceAll(',', ''))
|
|
@@ -139,10 +146,18 @@ export function searchAnthropicCatalog(query, { limit = DEFAULT_LIMIT, spawn = s
|
|
|
139
146
|
.split('\n')
|
|
140
147
|
.map((name) => name.trim())
|
|
141
148
|
.filter((name) => name.length > 0)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
149
|
+
// Field finding (beta.5 battery): the canonical boost must not bury the
|
|
150
|
+
// literal match — a single weak token hit ('webapp-testing' for a
|
|
151
|
+
// 'contract testing' query) ranked above a two-token third-party match.
|
|
152
|
+
// Within the tier, order by match quality; the merge sorts cross-tier.
|
|
153
|
+
const scored = names.map((name) => ({
|
|
154
|
+
name,
|
|
155
|
+
score: nameMatchScore(name, tokens),
|
|
156
|
+
}))
|
|
157
|
+
const matched = scored
|
|
158
|
+
.filter((entry) => entry.score > 0)
|
|
159
|
+
.sort((left, right) => right.score - left.score)
|
|
160
|
+
.map((entry) => entry.name)
|
|
146
161
|
return {
|
|
147
162
|
ok: true,
|
|
148
163
|
entries: matched.slice(0, limit).map((name) => ({
|
|
@@ -224,6 +239,26 @@ export function searchSkillSources(
|
|
|
224
239
|
if (result.ok) out.push(...result.entries.map((entry) => ({ ...entry, source })))
|
|
225
240
|
else failures.push(`${source}: ${result.error}`)
|
|
226
241
|
}
|
|
242
|
+
// Cross-tier order: lexical relevance first (the canonical boost must not
|
|
243
|
+
// bury the literal match — field finding, beta.5 battery: 'webapp-testing'
|
|
244
|
+
// outranked 'contract-testing' for a 'contract testing' query), then the
|
|
245
|
+
// trust cascade, then install count.
|
|
246
|
+
const tokens = String(query)
|
|
247
|
+
.toLowerCase()
|
|
248
|
+
.split(/[^a-z0-9]+/)
|
|
249
|
+
.filter((token) => token.length > 2)
|
|
250
|
+
const tierWeight = (source) => SKILL_SEARCH_SOURCES.indexOf(source)
|
|
251
|
+
const installsWeight = (entry) =>
|
|
252
|
+
typeof entry.installs === 'number' ? -entry.installs : Number.MAX_SAFE_INTEGER
|
|
253
|
+
const skillName = (entry) => String(entry.skill).split('@').at(-1) ?? ''
|
|
254
|
+
out.sort((left, right) => {
|
|
255
|
+
const lScore = nameMatchScore(skillName(left), tokens)
|
|
256
|
+
const rScore = nameMatchScore(skillName(right), tokens)
|
|
257
|
+
if (lScore !== rScore) return rScore - lScore
|
|
258
|
+
const tier = tierWeight(left.source) - tierWeight(right.source)
|
|
259
|
+
if (tier !== 0) return tier
|
|
260
|
+
return installsWeight(left) - installsWeight(right)
|
|
261
|
+
})
|
|
227
262
|
return { ok: failures.length < sources.length, entries: out.slice(0, limit), failures }
|
|
228
263
|
}
|
|
229
264
|
|
package/scripts/versioning.mjs
CHANGED
|
@@ -343,7 +343,7 @@ function prepareUnreleased(newVersion, dateStr, notesBody = null) {
|
|
|
343
343
|
// injection when interpolated next to the template's HTML comment.
|
|
344
344
|
const writtenBody = sanitizeCommentDelimiters(cleanedBody)
|
|
345
345
|
|
|
346
|
-
const newTemplate = `\n\n<!-- Add new changes here.
|
|
346
|
+
const newTemplate = `\n\n<!-- Add new changes here.\n Canonical sections (docs/RELEASING.md): ### 🆕 What's New (curated highlights, ≤6 bullets ≤140 chars) →\n ### Added / Changed / Deprecated / Removed / Fixed / Security → ### ⚠️ Known Issues / ### ✅ Closed Issues.\n \`node scripts/versioning.mjs apply --notes\` pre-fills the generated sections from conventional commits.\n Running apply will move this section to a versioned entry and reset the template below. -->`
|
|
347
347
|
const newVersionHeader = `## [v${newVersion}] - ${dateStr}`
|
|
348
348
|
|
|
349
349
|
const before = content.slice(0, idx)
|
package/skills-lock.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"src/skills/memory-bank/references/storage-model.md": "728a9e5f2055ce0f74c759405072a6fe57f65587bdb7b9e5e7fa90b60528b085",
|
|
23
23
|
"src/skills/memory-bank/references/structure-and-frequency.md": "09caedf905870c688401a2e58b2776a9c6187fe724c576019c58c3b80fe1b98f",
|
|
24
24
|
"src/skills/memory-bank/SKILL.md": "047b3049c27e908b1d79afb14f79336e32f775385ba23956771166d445944f2f",
|
|
25
|
-
"src/skills/prompt-refinery/SKILL.md": "
|
|
25
|
+
"src/skills/prompt-refinery/SKILL.md": "b8c5860cd70308144bd7e6bf65e4ddb47c7f29818316fe3ddc6f3886644a7b0a",
|
|
26
26
|
"src/skills/reflect/SKILL.md": "297c374f1fbc8e15d3848f51e811e0614d4a008c7d0e1daf88bbb240d605b8a8",
|
|
27
27
|
"src/skills/security-hardening/SKILL.md": "6d637e122421f7bc3b751f04854ad343a5a5d35249458bc8939233138fd3f20d",
|
|
28
28
|
"src/skills/session-goal/references/goal-format.md": "071f6f8f12cfbc26d4703cd5f34f839f91e586a3b969bf5f81a74b961c254a83",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* goal-loop-config.ts — runtime configuration for the full-auto Goal Loop.
|
|
3
|
+
*
|
|
4
|
+
* The loop's mechanics were shipped in Wave 3 (goal-store, continuation
|
|
5
|
+
* ladder) but hard-disabled by a constant — no user could ever reach them.
|
|
6
|
+
* This module makes it CONFIGURABLE the same way `context_pruner` is: read
|
|
7
|
+
* `options.goal_loop` from the V2 config copy; malformed input yields the
|
|
8
|
+
* defaults (config parsing must never take the hook down).
|
|
9
|
+
*
|
|
10
|
+
* Defaults stay fail-safe: the loop is OFF unless explicitly enabled, and
|
|
11
|
+
* the continuation cap stays bounded (an unbounded auto-continue on a wrong
|
|
12
|
+
* mission would burn budget forever).
|
|
13
|
+
*/
|
|
14
|
+
export interface GoalLoopConfig {
|
|
15
|
+
enabled: boolean
|
|
16
|
+
cooldownMs: number
|
|
17
|
+
maxContinuations: number
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const DEFAULT_GOAL_LOOP_CONFIG: GoalLoopConfig = {
|
|
21
|
+
enabled: false,
|
|
22
|
+
cooldownMs: 5000,
|
|
23
|
+
maxContinuations: 25,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const MIN_COOLDOWN_MS = 1000
|
|
27
|
+
const MIN_CONTINUATIONS = 1
|
|
28
|
+
const MAX_CONTINUATIONS = 200
|
|
29
|
+
|
|
30
|
+
export function resolveGoalLoopConfig(options: unknown): GoalLoopConfig {
|
|
31
|
+
try {
|
|
32
|
+
const raw = (options as { goal_loop?: unknown } | null | undefined)?.goal_loop
|
|
33
|
+
if (raw === null || raw === undefined || typeof raw !== 'object' || Array.isArray(raw)) {
|
|
34
|
+
return { ...DEFAULT_GOAL_LOOP_CONFIG }
|
|
35
|
+
}
|
|
36
|
+
const obj = raw as Record<string, unknown>
|
|
37
|
+
const num = (value: unknown, fallback: number, min: number, max?: number): number => {
|
|
38
|
+
if (typeof value !== 'number' || !Number.isFinite(value)) return fallback
|
|
39
|
+
const floored = Math.max(min, Math.floor(value))
|
|
40
|
+
return max !== undefined ? Math.min(max, floored) : floored
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
enabled: typeof obj.enabled === 'boolean' ? obj.enabled : false,
|
|
44
|
+
cooldownMs: num(obj.cooldownMs, DEFAULT_GOAL_LOOP_CONFIG.cooldownMs, MIN_COOLDOWN_MS),
|
|
45
|
+
maxContinuations: num(
|
|
46
|
+
obj.maxContinuations,
|
|
47
|
+
DEFAULT_GOAL_LOOP_CONFIG.maxContinuations,
|
|
48
|
+
MIN_CONTINUATIONS,
|
|
49
|
+
MAX_CONTINUATIONS,
|
|
50
|
+
),
|
|
51
|
+
}
|
|
52
|
+
} catch {
|
|
53
|
+
return { ...DEFAULT_GOAL_LOOP_CONFIG }
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -133,21 +133,25 @@ export function buildV2VisionPromptContext(
|
|
|
133
133
|
// Under-the-hood contract (user feedback, 2.0 cycle): the block is a
|
|
134
134
|
// minimal relay, not an essay — inspect silently, route UI work to
|
|
135
135
|
// @aphrodite, never revert based on an image.
|
|
136
|
-
|
|
136
|
+
// Field feedback (beta.5): the relay block sat above the user's own text
|
|
137
|
+
// on EVERY image paste — four lines of instructions the model does not
|
|
138
|
+
// need spelled out. Now ONE marker line + ONE compact payload line
|
|
139
|
+
// (refs · question · session relay · no-revert rule), nothing else.
|
|
140
|
+
const payload = [`[Visual] ${images.join(' | ')}`]
|
|
137
141
|
const question = truncateUserText(userText ?? '')
|
|
138
142
|
if (question) {
|
|
139
143
|
// JSON.stringify quotes/escapes the question so it cannot spoof the
|
|
140
144
|
// surrounding instruction layout; the value is never re-expanded and
|
|
141
145
|
// never logged.
|
|
142
|
-
|
|
146
|
+
payload.push(`Q: ${JSON.stringify(question)}`)
|
|
143
147
|
}
|
|
144
148
|
// MCP session relay (see the doc comment above): JSON.stringify quotes the
|
|
145
149
|
// id so it cannot spoof the surrounding instruction layout; never logged.
|
|
146
150
|
if (isValidSessionId(sessionID)) {
|
|
147
|
-
|
|
151
|
+
payload.push(`relay session_id=${JSON.stringify(sessionID)}`)
|
|
148
152
|
}
|
|
149
|
-
|
|
150
|
-
return
|
|
153
|
+
payload.push('inspect silently -> handoff @aphrodite; an image never authorizes a revert')
|
|
154
|
+
return ['<!-- pantheon-v2-visual-context -->', payload.join(' · ')].join('\n')
|
|
151
155
|
}
|
|
152
156
|
|
|
153
157
|
export interface V2VisionModel {
|
package/src/pantheon/vision.ts
CHANGED
|
@@ -383,6 +383,20 @@ export function providerIsTextOnly(providerID: string): boolean {
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
/** Return whether OpenCode's current model is known to accept image input. */
|
|
386
|
+
/**
|
|
387
|
+
* Sessions whose ACTIVE model accepts images natively (classified per user
|
|
388
|
+
* message by the chat.message hook). The prompt hook consults this to inject
|
|
389
|
+
* NOTHING for native sessions — the image flows to the model directly and
|
|
390
|
+
* the relay block was pure noise above the user's own words (field feedback
|
|
391
|
+
* beta.5: "zero coisas"). Intercepted (non-native) sessions keep the relay:
|
|
392
|
+
* there it is the model's only bridge to the materialized file.
|
|
393
|
+
*/
|
|
394
|
+
const nativeVisionSessions = new Set<string>()
|
|
395
|
+
|
|
396
|
+
export function isNativeVisionSession(sessionID: string): boolean {
|
|
397
|
+
return nativeVisionSessions.has(sessionID)
|
|
398
|
+
}
|
|
399
|
+
|
|
386
400
|
export function modelAcceptsImages(model: ModelInfo | undefined, providerID?: string): boolean {
|
|
387
401
|
if (!model) {
|
|
388
402
|
// Fail-closed for known text-only providers
|
|
@@ -2342,7 +2356,6 @@ export function createVisionHandler(input: PluginInput) {
|
|
|
2342
2356
|
// file is only unlinked when the LAST session releases it (P2-4).
|
|
2343
2357
|
const tempFileRefs = new Map<string, Set<string>>()
|
|
2344
2358
|
const sessionVisionText = new Map<string, Map<string, string>>()
|
|
2345
|
-
const nativeVisionSessions = new Set<string>()
|
|
2346
2359
|
const sessionDescriptionCache = new Map<string, Map<string, DescriptionCacheEntry>>()
|
|
2347
2360
|
let configPromise: Promise<VisionConfig> | null = null
|
|
2348
2361
|
let toolNamePromise: Promise<string | null> | null = null
|
package/src/plugin.ts
CHANGED
|
@@ -138,7 +138,8 @@ import {
|
|
|
138
138
|
v2ResourceTarget,
|
|
139
139
|
} from './pantheon/delegation-policy.ts'
|
|
140
140
|
import { createV2ExecuteAfter, resolveV2SandboxConfig } from './pantheon/execute-after.ts'
|
|
141
|
-
import {
|
|
141
|
+
import { resolveGoalLoopConfig } from './pantheon/goal-loop-config.ts'
|
|
142
|
+
import { GoalStore } from './pantheon/goal-store.ts'
|
|
142
143
|
import { createGuardPathResolver } from './pantheon/guard-path.ts'
|
|
143
144
|
import { runSecretScanInProcess } from './pantheon/hook-engine.ts'
|
|
144
145
|
import { createJTelemetryMirror } from './pantheon/j-telemetry-file.ts'
|
|
@@ -181,7 +182,11 @@ import {
|
|
|
181
182
|
} from './pantheon/todo-enforcer.ts'
|
|
182
183
|
import { createV2ToolDefinitions, type V2ToolResult } from './pantheon/tools.ts'
|
|
183
184
|
import { UNSUPPORTED_FEATURE_SEED } from './pantheon/unsupported.mjs'
|
|
184
|
-
import {
|
|
185
|
+
import {
|
|
186
|
+
isNativeVisionSession,
|
|
187
|
+
modelAcceptsImages,
|
|
188
|
+
sanitizeVisionHistory,
|
|
189
|
+
} from './pantheon/vision.ts'
|
|
185
190
|
import type { HookPayload, HookResult } from './plugins/hook-runner.ts'
|
|
186
191
|
|
|
187
192
|
// ─── Unsupported Features Registry ───────────────────────────────────────
|
|
@@ -1460,8 +1465,31 @@ async function registerV2SessionHooks(context: PluginContext): Promise<boolean>
|
|
|
1460
1465
|
typeof admission?.sessionID === 'string' && admission.sessionID.trim() !== ''
|
|
1461
1466
|
? admission.sessionID
|
|
1462
1467
|
: undefined
|
|
1463
|
-
|
|
1464
|
-
|
|
1468
|
+
// Native-vision sessions get ZERO injected text (field feedback
|
|
1469
|
+
// beta.5: "zero coisas" — the image flows to the model directly and
|
|
1470
|
+
// the relay block sat above the user's own words). The relay stays
|
|
1471
|
+
// ONLY for intercepted (non-native) sessions, where it is the
|
|
1472
|
+
// model's only bridge to the materialized file. Classification:
|
|
1473
|
+
// the chat.message hook's per-session set, plus a direct session
|
|
1474
|
+
// lookup when the host exposes one (first prompt of a session).
|
|
1475
|
+
const nativeByLookup = await (async () => {
|
|
1476
|
+
if (sessionID === undefined) return false
|
|
1477
|
+
try {
|
|
1478
|
+
const lookup = sessionCtx.get?.call(sessionCtx, { sessionID })
|
|
1479
|
+
const session = lookup instanceof Promise ? await lookup : (lookup as unknown)
|
|
1480
|
+
const model = (session as { model?: unknown } | undefined)?.model as
|
|
1481
|
+
| { providerID?: string; modelID?: string }
|
|
1482
|
+
| undefined
|
|
1483
|
+
if (!model || typeof model.modelID !== 'string') return false
|
|
1484
|
+
return modelAcceptsImages(model as never, model.providerID)
|
|
1485
|
+
} catch {
|
|
1486
|
+
return false
|
|
1487
|
+
}
|
|
1488
|
+
})()
|
|
1489
|
+
if (sessionID !== undefined && !isNativeVisionSession(sessionID) && !nativeByLookup) {
|
|
1490
|
+
const visualContext = buildV2VisionPromptContext(prompt.files, prompt.text, sessionID)
|
|
1491
|
+
if (visualContext) prompt.text = `${prompt.text}\n\n${visualContext}`
|
|
1492
|
+
}
|
|
1465
1493
|
}
|
|
1466
1494
|
|
|
1467
1495
|
// Local deterministic recommendations are advisory only. This path
|
|
@@ -2822,6 +2850,9 @@ export const plugin = define({
|
|
|
2822
2850
|
// Observation must never reach the compaction request.
|
|
2823
2851
|
}
|
|
2824
2852
|
const prunerConfig = resolveContextPrunerConfig(context.options)
|
|
2853
|
+
// The Goal Loop caps ride the same read: cooldown/continuations
|
|
2854
|
+
// are enforced by the loop mechanics when enabled (goal-store).
|
|
2855
|
+
const goalLoopConfig = resolveGoalLoopConfig(context.options)
|
|
2825
2856
|
loadRuntimeOverrides()
|
|
2826
2857
|
if (gateDisabled('gate-context-pruner')) {
|
|
2827
2858
|
logPruneFailureOnce(
|
|
@@ -2848,9 +2879,10 @@ export const plugin = define({
|
|
|
2848
2879
|
const blocks = await buildCompactionContext({
|
|
2849
2880
|
...(sessionID === undefined ? {} : { sessionID }),
|
|
2850
2881
|
goals: {
|
|
2851
|
-
//
|
|
2852
|
-
//
|
|
2853
|
-
|
|
2882
|
+
// Enabled via `options.goal_loop.enabled` (beta.6): the Wave 3
|
|
2883
|
+
// mechanics were hard-disabled by a constant since shipping;
|
|
2884
|
+
// the settings window's Autonomy tab now writes this option.
|
|
2885
|
+
enabled: goalLoopConfig.enabled,
|
|
2854
2886
|
list: (id: string) => goalStore.list(id),
|
|
2855
2887
|
},
|
|
2856
2888
|
...(idleEnforcer === undefined
|
|
@@ -190,8 +190,9 @@ export type ContextBlockRows = {
|
|
|
190
190
|
* `$<spent> spent`. The percentage row carries the only semantic tone, the
|
|
191
191
|
* gauge bar (12 cells) and is omitted entirely when the percentage is
|
|
192
192
|
* unavailable (never `undefined%`). A block with neither tokens nor cost
|
|
193
|
-
* yields null.
|
|
194
|
-
|
|
193
|
+
* yields null. `gaugeStyle` (the TUI tab's pref) picks the percent-row
|
|
194
|
+
* shape: `both` (default), `bar`, `percent`, or `off` (row omitted). Pure. */
|
|
195
|
+
export declare function contextBlockRows(usage: ContextUsage | null, cost: number | null | undefined, gaugeStyle?: 'both' | 'bar' | 'percent' | 'off'): ContextBlockRows | null;
|
|
195
196
|
/** Column widths for one model row (labels are muted, numbers right-aligned). */
|
|
196
197
|
export declare const MODEL_USAGE_MODEL_WIDTH = 12;
|
|
197
198
|
export declare const MODEL_USAGE_TOKEN_WIDTH = 6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/context-gauge.ts","../src/model-usage-limits.ts","../src/sidebar-width.ts","../src/index.tsx"],"mappings":";;;;KAEY;qBAEC;qBACA;qBACA;wBAMG,iBAAiB,kBAAkB;wBAOnC,iBAAiB;wBAMjB,oBAAoB;wBAQpB,iBAAiB,iBAAiB;wBAOlC,WACd,oCACA;EACG;EAAgB;;wBAWL,YAAY;;;;qBCrDf;qBACA;qBACA;;;;;;;;wBCyHG,UAAU;;;;
|
|
1
|
+
{"version":3,"file":"tui.d.ts","names":[],"sources":["../src/context-gauge.ts","../src/model-usage-limits.ts","../src/sidebar-width.ts","../src/index.tsx"],"mappings":";;;;KAEY;qBAEC;qBACA;qBACA;wBAMG,iBAAiB,kBAAkB;wBAOnC,iBAAiB;wBAMjB,oBAAoB;wBAQpB,iBAAiB,iBAAiB;wBAOlC,WACd,oCACA;EACG;EAAgB;;wBAWL,YAAY;;;;qBCrDf;qBACA;qBACA;;;;;;;;wBCyHG,UAAU;;;;qBCzDb;;;;qBAMA;;;qBAGA;qBACA;;YAED,mBAAmB,WAAW;;;;;;;;;;qBAU7B;YAmBD;EAAe;EAAqB;;;YAGpC;EAAuB;EAAgB;;;YAEvC;EAAoB,QAAQ,eAAe;;;YAE3C;EAAuB,MAAM;EAAY,WAAW;;;;wBAQhD,qBAAqB,iBAAiB;;wBAqDtC,cAAc,KAAK,qCAAqC;;;wBAUlD,0BACpB,KAAK,oCACL,cACC,QAAQ;;;wBAeK,iBAAiB,cAAc;;;wBAgB/B,WAAW;;;wBAWX,aAAa,cAAc;;;wBAU3B,kBAAkB;;;wBAQlB,qBAAqB,iBAAiB;;;;w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