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.
Files changed (70) hide show
  1. package/AGENTS.global.md +2 -2
  2. package/AGENTS.md +8 -8
  3. package/CHANGELOG.md +54 -0
  4. package/README.md +2 -0
  5. package/README.pt-BR.md +2 -0
  6. package/bin/pantheon-init.mjs +13 -0
  7. package/commands/pantheon-audit.md +1 -1
  8. package/commands/pantheon-deepwork.md +1 -1
  9. package/commands/pantheon-optimize.md +41 -63
  10. package/package.json +4 -3
  11. package/plugin.json +1 -1
  12. package/prompts/optimize-database.prompt.md +5 -5
  13. package/prompts/plan-architecture.prompt.md +6 -6
  14. package/pyproject.toml +1 -1
  15. package/scripts/build-agents-md.mjs +10 -10
  16. package/scripts/build-plugin.mjs +26 -0
  17. package/scripts/install/opencode-version.mjs +17 -5
  18. package/scripts/install/opencode.mjs +8 -1
  19. package/scripts/optimize.mjs +322 -0
  20. package/scripts/prune.mjs +105 -14
  21. package/scripts/update.mjs +20 -15
  22. package/skills-lock.json +11 -11
  23. package/src/agents/aphrodite.md +15 -14
  24. package/src/agents/apollo.md +2 -1
  25. package/src/agents/athena.md +5 -5
  26. package/src/agents/demeter.md +2 -0
  27. package/src/agents/hephaestus.md +1 -0
  28. package/src/agents/hermes.md +19 -95
  29. package/src/agents/iris.md +3 -0
  30. package/src/agents/nyx.md +1 -0
  31. package/src/agents/prometheus.md +2 -0
  32. package/src/agents/talos.md +3 -0
  33. package/src/agents/themis.md +91 -87
  34. package/src/agents/zeus.md +41 -266
  35. package/src/instructions/agent-return-format.instructions.md +1 -1
  36. package/src/instructions/memory-protocol.instructions.md +1 -1
  37. package/src/instructions/zeus-anti-stall.instructions.md +3 -3
  38. package/src/instructions/zeus-communication-rules.instructions.md +1 -1
  39. package/src/instructions/zeus-council-synthesis.instructions.md +2 -2
  40. package/src/instructions/zeus-timeout-retry.instructions.md +10 -10
  41. package/src/pantheon/model-command.ts +12 -12
  42. package/src/pantheon/tools.ts +4 -0
  43. package/src/pantheon/tui-version-check.ts +1 -1
  44. package/src/pantheon/update-notifier.ts +13 -8
  45. package/src/pantheon/vision.ts +20 -20
  46. package/src/plugin/index.js +14594 -0
  47. package/src/plugins/tui/dist/tui.d.ts +3 -3
  48. package/src/plugins/tui/dist/tui.d.ts.map +1 -1
  49. package/src/plugins/tui/dist/tui.js +923 -340
  50. package/src/plugins/tui/dist/tui.js.map +1 -1
  51. package/src/plugins/tui/package-lock.json +2 -2
  52. package/src/plugins/tui/package.json +1 -1
  53. package/src/plugins/tui/src/autonomy-state.ts +27 -15
  54. package/src/plugins/tui/src/index.tsx +44 -23
  55. package/src/plugins/tui/src/pantheon-settings.tsx +461 -105
  56. package/src/plugins/tui/src/tui-prefs.ts +106 -4
  57. package/src/plugins/tui/src/update-notice.ts +9 -6
  58. package/src/plugins/tui/src/whats-new-open.ts +4 -4
  59. package/src/plugins/tui/src/whats-new.tsx +119 -17
  60. package/src/skills/agent-coordination/SKILL.md +6 -6
  61. package/src/skills/artifact-management/SKILL.md +43 -39
  62. package/src/skills/artifact-management/references/artifact-templates.md +103 -48
  63. package/src/skills/auto-continue/references/auto-continue-details.md +13 -13
  64. package/src/skills/code-review-checklist/SKILL.md +6 -6
  65. package/src/skills/incremental-implementation/SKILL.md +13 -13
  66. package/src/skills/memory-bank/references/anti-patterns.md +3 -3
  67. package/src/skills/spec-driven-development/SKILL.md +12 -14
  68. package/src/skills/tdd-with-agents/SKILL.md +6 -5
  69. package/src/skills/visual-review-pipeline/SKILL.md +1 -1
  70. package/src/skills/visual-review-pipeline/references/workflow-steps.md +1 -1
@@ -1762,18 +1762,18 @@ export function truncateUserText(
1762
1762
 
1763
1763
  const INTENT_TASK_INSTRUCTIONS: Record<VisionIntent, string> = {
1764
1764
  describe:
1765
- 'Descreva cada imagem fielmente e em detalhes: texto visível verbatim, cores, layout, objetos.',
1765
+ 'Describe each image faithfully and in detail: visible text verbatim, colors, layout, and objects.',
1766
1766
  compare:
1767
- 'Descreva cada imagem no seu próprio bloco <item>; depois coloque uma comparação direta e exaustiva no <context> (diferenças por região/elemento), terminando com um veredito claro.',
1768
- ocr: 'Transcreva literalmente todo o texto visível em cada imagem, preservando ordem e estrutura. A transcrição vai dentro do <description> da imagem correspondente.',
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
- 'Descreva cada imagem com detalhe de reconstrução para reprodução em código: layout completo (regiões, alinhamento, espaçamento), todo texto visível verbatim, paleta de cores exata em hex, fontes/tamanhos/pesos por elemento, estrutura de componentes e estados.',
1771
- bugs: 'Descreva o sintoma visual observado em cada imagem: o que está errado, onde, esperado vs real, com referências de região precisas e contexto suficiente para localizar e reproduzir.',
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
- 'Depois dos itens, adicione UM bloco <context> com a análise cruzada das imagens (comparação, veredito).',
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
- '(sem pedido explícito — descreva as imagens com precisão)'
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
- `Responda com UM bloco <item id="N"> para cada uma das ${count} imagens anexadas`,
1980
- `(N = 1..${count}), em ordem. Cada bloco contém um <description>.${contextLine}`,
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>...apenas fatos sobre a imagem 1...</description>',
1983
+ '<description>...facts only about image 1...</description>',
1984
1984
  '</item>',
1985
1985
  '<item id="2">',
1986
- '<description>...apenas fatos sobre a imagem 2...</description>',
1986
+ '<description>...facts only about image 2...</description>',
1987
1987
  '</item>',
1988
1988
  '',
1989
1989
  'RULES',
1990
- '- O primeiro caractere da sua resposta deve ser "<". Sem preâmbulo, sem "Aqui está",',
1991
- ' sem observações finais, sem wrap em blocos de código.',
1992
- '- ESCAPING — obrigatório: dentro dos corpos de <description> e <context>, escape TODO',
1993
- ' "&", "<" e ">" literais como "&amp;", "&lt;", "&gt;". Isso vale para qualquer texto',
1994
- ' tag-like reproduzido verbatim (HTML, XML, erros com colchetes angulares). NÃO escape',
1995
- ' as tags estruturais <item>, <description>, <context>.',
1996
- '- Nunca invente detalhes que não consegue perceber. Se um texto estiver ilegível,',
1997
- ' escreva "ilegível". Coloque análises cruzadas (comparação, veredito) no <context>,',
1998
- ' nunca dentro de um <description>.',
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 "&amp;", "&lt;", "&gt;". 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
  '',