pantheon-opencode 1.3.3 → 1.3.5-beta.52.c75b04d

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 (52) hide show
  1. package/AGENTS.md +919 -0
  2. package/README.md +157 -15
  3. package/bin/pantheon-init.mjs +177 -120
  4. package/opencode.json +3 -6
  5. package/package.json +8 -4
  6. package/scripts/build-agents-md.mjs +195 -0
  7. package/scripts/cost.mjs +17 -0
  8. package/scripts/doctor.mjs +56 -22
  9. package/scripts/hooks/on-subagent-delegation-stop.sh +22 -5
  10. package/scripts/install/opencode.mjs +189 -38
  11. package/scripts/install/plugin.mjs +112 -28
  12. package/scripts/install-mcp.mjs +1 -1
  13. package/scripts/redaction-gate.mjs +69 -0
  14. package/scripts/release-beta-version.mjs +80 -0
  15. package/scripts/release-notes.mjs +317 -0
  16. package/scripts/test-context-compression.sh +5 -2
  17. package/scripts/validate-package.mjs +56 -0
  18. package/scripts/versioning.mjs +117 -18
  19. package/src/agents/zeus.md +6 -2
  20. package/src/pantheon/background-job-board.ts +24 -38
  21. package/src/pantheon/chat-reminders.ts +79 -0
  22. package/src/pantheon/compaction-assert.ts +160 -0
  23. package/src/pantheon/cost-command.ts +57 -18
  24. package/src/pantheon/delegation-compaction.ts +143 -16
  25. package/src/pantheon/delegation-finalize.ts +8 -1
  26. package/src/pantheon/delegation-notify.ts +19 -157
  27. package/src/pantheon/delegation.ts +330 -28
  28. package/src/pantheon/dispatch-guard.ts +9 -4
  29. package/src/pantheon/goal-loop.ts +7 -4
  30. package/src/pantheon/hashline/tool.ts +2 -1
  31. package/src/pantheon/logger.ts +117 -0
  32. package/src/pantheon/plugin-once.ts +76 -0
  33. package/src/pantheon/preemptive-compact.ts +76 -0
  34. package/src/pantheon/presets.d.mts +31 -0
  35. package/src/pantheon/presets.mjs +105 -3
  36. package/src/pantheon/todo-enforcer.ts +79 -27
  37. package/src/pantheon/todo-preserve.ts +295 -0
  38. package/src/plugin.ts +177 -50
  39. package/src/plugins/pantheon-hooks.ts +35 -22
  40. package/src/plugins/tui/dist/server.d.ts +17 -0
  41. package/src/plugins/tui/dist/server.d.ts.map +1 -0
  42. package/src/plugins/tui/dist/server.js +20 -0
  43. package/src/plugins/tui/dist/server.js.map +1 -0
  44. package/src/plugins/tui/dist/tui.d.ts +303 -1
  45. package/src/plugins/tui/dist/tui.d.ts.map +1 -1
  46. package/src/plugins/tui/dist/tui.js +977 -350
  47. package/src/plugins/tui/dist/tui.tsx +1427 -150
  48. package/src/plugins/tui/package.json +4 -3
  49. package/src/plugins/tui/src/index.tsx +1427 -150
  50. package/src/plugins/tui/src/server.ts +15 -0
  51. package/src/plugins/tui/tsdown.config.ts +1 -1
  52. package/src/routing.yml +3 -1
@@ -0,0 +1,15 @@
1
+ /**
2
+ * No-op server stub for the opencode plugin loader.
3
+ *
4
+ * The opencode plugin host requires every plugin (TUI included) to expose a
5
+ * `server()` entry via `exports["./server"]` (or package.json `main`). When
6
+ * that entry is missing the host fails to attach the plugin's server half and
7
+ * the TUI runtime never wires the reactive channel — the initial JSX mounts
8
+ * but effects/refresh/events stay dead (the "mudo panel" symptom).
9
+ *
10
+ * This stub satisfies the loader contract; pantheon-tui is TUI-only and has
11
+ * no background server work of its own.
12
+ */
13
+ export default function server() {
14
+ return {}
15
+ }
@@ -2,7 +2,7 @@ import { defineConfig } from 'tsdown'
2
2
  import solid from 'rolldown-plugin-solid'
3
3
 
4
4
  export default defineConfig({
5
- entry: { tui: 'src/index.tsx' },
5
+ entry: { tui: 'src/index.tsx', server: 'src/server.ts' },
6
6
  format: ['esm'],
7
7
  platform: 'node',
8
8
  outDir: 'dist',
package/src/routing.yml CHANGED
@@ -571,7 +571,9 @@ todo_enforcer:
571
571
  max_consecutive_failures: 5 # stop injecting after this many failures
572
572
  failure_reset_ms: 300000 # quiet period before the counter resets (5 min)
573
573
  user_activity_quiet_ms: 30000 # skip injection this long after a user message (30s)
574
- child_active_ms: 120000 # native background child newer than this = still running → skip (2 min)
574
+ child_active_ms: 120000 # native (non-board) background child newer than this = still running → skip (2 min).
575
+ # Board children (delegations) are resolved by taskID instead: running → skip;
576
+ # terminal jobs (completed/error/cancelled/reconciled) NEVER suppress (T6 fix).
575
577
  # Runtime kill-switch: PANTHEON_TODO_ENFORCER=off (doc mirror only — the
576
578
  # env var is the real switch, read at plugin construction).
577
579
  hashline: