pantheon-opencode 2.0.4 → 2.1.1

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 (39) hide show
  1. package/AGENTS.global.md +2 -2
  2. package/AGENTS.md +1 -1
  3. package/CHANGELOG.md +53 -0
  4. package/README.md +27 -11
  5. package/README.pt-BR.md +27 -11
  6. package/commands/pantheon-deepwork.md +11 -2
  7. package/package.json +2 -1
  8. package/plugin.json +1 -1
  9. package/prompts/orchestrate-with-zeus.prompt.md +2 -0
  10. package/pyproject.toml +1 -1
  11. package/scripts/cost.mjs +4 -5
  12. package/scripts/docs-media.mjs +1 -1
  13. package/skills-lock.json +1 -1
  14. package/src/agents/athena.md +10 -8
  15. package/src/agents/themis.md +1 -0
  16. package/src/agents/zeus.md +32 -3
  17. package/src/instructions/agent-return-format.instructions.md +1 -1
  18. package/src/mcp/pantheon_vision.py +33 -2
  19. package/src/pantheon/cost-command.ts +4 -1
  20. package/src/pantheon/deepwork/deepwork-tool.ts +370 -0
  21. package/src/pantheon/deepwork/plan-projection.ts +274 -0
  22. package/src/pantheon/deepwork/plan-schema.ts +93 -0
  23. package/src/pantheon/deepwork/plan-tracker.ts +336 -0
  24. package/src/pantheon/native-vision.ts +4 -2
  25. package/src/pantheon/skill-search-tool.ts +2 -2
  26. package/src/pantheon/tools.ts +2 -0
  27. package/src/plugin/index.js +922 -42
  28. package/src/plugin.ts +2 -2
  29. package/src/plugins/tui/dist/tui.js +461 -289
  30. package/src/plugins/tui/dist/tui.js.map +1 -1
  31. package/src/plugins/tui/package-lock.json +2 -2
  32. package/src/plugins/tui/package.json +1 -1
  33. package/src/plugins/tui/src/autonomy-state.ts +14 -16
  34. package/src/plugins/tui/src/decision-router-state.ts +22 -10
  35. package/src/plugins/tui/src/pantheon-settings-state.ts +119 -35
  36. package/src/plugins/tui/src/pantheon-settings.tsx +142 -48
  37. package/src/plugins/tui/src/preset-state.ts +96 -6
  38. package/src/plugins/tui/src/update-status.ts +62 -22
  39. package/src/skills/prompt-refinery/SKILL.md +6 -4
package/src/plugin.ts CHANGED
@@ -211,7 +211,7 @@ export const V2_UNSUPPORTED_FEATURES: string[] = [...UNSUPPORTED_FEATURE_SEED]
211
211
 
212
212
  // ─── Constants ───────────────────────────────────────────────────────────
213
213
 
214
- const POLICY_MARKER = '<!-- pantheon-v2-policy -->'
214
+ const POLICY_MARKER = '<!-- pantheon-policy -->'
215
215
  const POLICY = `${POLICY_MARKER}\nFollow Pantheon routing policy: delegate implementation work to the named specialist and do not claim work was performed without verification.`
216
216
 
217
217
  /** 2.0.16 `system` on a session hook payload is `Array<SystemPart>`. */
@@ -1460,7 +1460,7 @@ async function registerV2SessionHooks(context: PluginContext): Promise<boolean>
1460
1460
  const prompt = admission?.prompt
1461
1461
  if (!prompt || typeof prompt.text !== 'string') return
1462
1462
  const userRequest = prompt.text
1463
- if (!prompt.text.includes('<!-- pantheon-v2-visual-context -->')) {
1463
+ if (!prompt.text.includes('<!-- pantheon-visual-context -->')) {
1464
1464
  const sessionID =
1465
1465
  typeof admission?.sessionID === 'string' && admission.sessionID.trim() !== ''
1466
1466
  ? admission.sessionID