pantheon-opencode 2.0.0-rc.1 → 2.0.0
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/AGENTS.global.md +2 -2
- package/AGENTS.md +8 -8
- package/CHANGELOG.md +54 -0
- package/README.md +2 -0
- package/README.pt-BR.md +2 -0
- package/bin/pantheon-init.mjs +13 -0
- package/commands/pantheon-audit.md +1 -1
- package/commands/pantheon-deepwork.md +1 -1
- package/commands/pantheon-optimize.md +41 -63
- package/package.json +4 -3
- package/plugin.json +1 -1
- package/prompts/optimize-database.prompt.md +5 -5
- package/prompts/plan-architecture.prompt.md +6 -6
- package/pyproject.toml +1 -1
- package/scripts/build-agents-md.mjs +10 -10
- package/scripts/build-plugin.mjs +26 -0
- package/scripts/install/opencode-version.mjs +17 -5
- package/scripts/install/opencode.mjs +8 -1
- package/scripts/optimize.mjs +322 -0
- package/scripts/prune.mjs +105 -14
- package/scripts/update.mjs +20 -15
- package/skills-lock.json +11 -11
- package/src/agents/aphrodite.md +15 -14
- package/src/agents/apollo.md +2 -1
- package/src/agents/athena.md +5 -5
- package/src/agents/demeter.md +2 -0
- package/src/agents/hephaestus.md +1 -0
- package/src/agents/hermes.md +19 -95
- package/src/agents/iris.md +3 -0
- package/src/agents/nyx.md +1 -0
- package/src/agents/prometheus.md +2 -0
- package/src/agents/talos.md +3 -0
- package/src/agents/themis.md +91 -87
- package/src/agents/zeus.md +41 -266
- package/src/instructions/agent-return-format.instructions.md +1 -1
- package/src/instructions/memory-protocol.instructions.md +1 -1
- package/src/instructions/zeus-anti-stall.instructions.md +3 -3
- package/src/instructions/zeus-communication-rules.instructions.md +1 -1
- package/src/instructions/zeus-council-synthesis.instructions.md +2 -2
- package/src/instructions/zeus-timeout-retry.instructions.md +10 -10
- package/src/pantheon/model-command.ts +12 -12
- package/src/pantheon/tools.ts +4 -0
- package/src/pantheon/tui-version-check.ts +1 -1
- package/src/pantheon/update-notifier.ts +13 -8
- package/src/pantheon/vision.ts +20 -20
- package/src/plugin/index.js +14594 -0
- package/src/plugins/tui/dist/tui.d.ts +3 -3
- package/src/plugins/tui/dist/tui.d.ts.map +1 -1
- package/src/plugins/tui/dist/tui.js +923 -340
- 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 +27 -15
- package/src/plugins/tui/src/index.tsx +44 -23
- package/src/plugins/tui/src/pantheon-settings.tsx +461 -105
- package/src/plugins/tui/src/tui-prefs.ts +106 -4
- package/src/plugins/tui/src/update-notice.ts +9 -6
- package/src/plugins/tui/src/whats-new-open.ts +4 -4
- package/src/plugins/tui/src/whats-new.tsx +119 -17
- package/src/skills/agent-coordination/SKILL.md +6 -6
- package/src/skills/artifact-management/SKILL.md +43 -39
- package/src/skills/artifact-management/references/artifact-templates.md +103 -48
- package/src/skills/auto-continue/references/auto-continue-details.md +13 -13
- package/src/skills/code-review-checklist/SKILL.md +6 -6
- package/src/skills/incremental-implementation/SKILL.md +13 -13
- package/src/skills/memory-bank/references/anti-patterns.md +3 -3
- package/src/skills/spec-driven-development/SKILL.md +12 -14
- package/src/skills/tdd-with-agents/SKILL.md +6 -5
- package/src/skills/visual-review-pipeline/SKILL.md +1 -1
- package/src/skills/visual-review-pipeline/references/workflow-steps.md +1 -1
package/src/pantheon/vision.ts
CHANGED
|
@@ -1762,18 +1762,18 @@ export function truncateUserText(
|
|
|
1762
1762
|
|
|
1763
1763
|
const INTENT_TASK_INSTRUCTIONS: Record<VisionIntent, string> = {
|
|
1764
1764
|
describe:
|
|
1765
|
-
'
|
|
1765
|
+
'Describe each image faithfully and in detail: visible text verbatim, colors, layout, and objects.',
|
|
1766
1766
|
compare:
|
|
1767
|
-
'
|
|
1768
|
-
ocr: '
|
|
1767
|
+
'Describe each image in its own <item> block; then provide a direct, exhaustive comparison in <context> (differences by region/element), concluding with a clear verdict.',
|
|
1768
|
+
ocr: 'Transcribe literally all visible text in each image, preserving order and structure. Place the transcription inside the corresponding image <description>.',
|
|
1769
1769
|
reconstruct:
|
|
1770
|
-
'
|
|
1771
|
-
bugs: '
|
|
1770
|
+
'Describe each image with reconstruction-level detail for reproduction in code: complete layout (regions, alignment, spacing), all visible text verbatim, exact color palette in hex, fonts/sizes/weights per element, component structure, and states.',
|
|
1771
|
+
bugs: 'Describe the visual bug or symptom observed in each image: what is wrong, where, expected vs actual, with precise region references and sufficient context to reproduce.',
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
1774
|
const INTENT_CONTEXT_INSTRUCTIONS: Record<VisionIntent, string> = {
|
|
1775
1775
|
compare:
|
|
1776
|
-
'
|
|
1776
|
+
'After the items, add ONE <context> block with cross-image analysis (comparison, verdict).',
|
|
1777
1777
|
describe: '',
|
|
1778
1778
|
ocr: '',
|
|
1779
1779
|
reconstruct: '',
|
|
@@ -1962,7 +1962,7 @@ export function buildNativeVisionPrompt(
|
|
|
1962
1962
|
const count = Math.max(1, imageCount)
|
|
1963
1963
|
const request =
|
|
1964
1964
|
escapeXml(truncateUserText(userText)) ||
|
|
1965
|
-
'(
|
|
1965
|
+
'(no explicit request — describe the images accurately)'
|
|
1966
1966
|
const contextInstruction = INTENT_CONTEXT_INSTRUCTIONS[intent]
|
|
1967
1967
|
const contextLine = contextInstruction ? ` ${contextInstruction}` : ''
|
|
1968
1968
|
return [
|
|
@@ -1976,26 +1976,26 @@ export function buildNativeVisionPrompt(
|
|
|
1976
1976
|
INTENT_TASK_INSTRUCTIONS[intent],
|
|
1977
1977
|
'',
|
|
1978
1978
|
'OUTPUT FORMAT — binding, no exceptions:',
|
|
1979
|
-
`
|
|
1980
|
-
`(N = 1..${count}),
|
|
1979
|
+
`Reply with ONE <item id="N"> block for each of the ${count} attached images`,
|
|
1980
|
+
`(N = 1..${count}), in order. Each block contains a <description>.${contextLine}`,
|
|
1981
1981
|
'',
|
|
1982
1982
|
'<item id="1">',
|
|
1983
|
-
'<description>...
|
|
1983
|
+
'<description>...facts only about image 1...</description>',
|
|
1984
1984
|
'</item>',
|
|
1985
1985
|
'<item id="2">',
|
|
1986
|
-
'<description>...
|
|
1986
|
+
'<description>...facts only about image 2...</description>',
|
|
1987
1987
|
'</item>',
|
|
1988
1988
|
'',
|
|
1989
1989
|
'RULES',
|
|
1990
|
-
'-
|
|
1991
|
-
'
|
|
1992
|
-
'- ESCAPING —
|
|
1993
|
-
' "&", "<"
|
|
1994
|
-
' tag-like
|
|
1995
|
-
'
|
|
1996
|
-
'-
|
|
1997
|
-
'
|
|
1998
|
-
'
|
|
1990
|
+
'- The first character of your response MUST be "<". No preamble, no "Here is",',
|
|
1991
|
+
' no closing remarks, no code fence wrapping.',
|
|
1992
|
+
'- ESCAPING — mandatory: inside the bodies of <description> and <context>, escape ALL',
|
|
1993
|
+
' literal "&", "<", and ">" as "&", "<", ">". This applies to any verbatim',
|
|
1994
|
+
' tag-like text (HTML, XML, bracketed errors). Do NOT escape',
|
|
1995
|
+
' the structural tags <item>, <description>, <context>.',
|
|
1996
|
+
'- Never hallucinate details you cannot perceive. If text is illegible,',
|
|
1997
|
+
' write "illegible". Place cross-image analysis (comparison, verdict) in <context>,',
|
|
1998
|
+
' never inside a <description>.',
|
|
1999
1999
|
...(orientationHint.trim()
|
|
2000
2000
|
? [
|
|
2001
2001
|
'',
|