pantheon-opencode 1.0.0 → 1.0.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.
Files changed (72) hide show
  1. package/README.md +61 -109
  2. package/bin/pantheon-init.mjs +57 -136
  3. package/commands/pantheon-audit.md +1 -1
  4. package/commands/pantheon-deepwork.md +32 -81
  5. package/commands/pantheon-reflect.md +16 -0
  6. package/commands/pantheon-status.md +1 -1
  7. package/commands/pantheon-verify.md +17 -0
  8. package/opencode.json +25 -0
  9. package/package.json +24 -13
  10. package/scripts/ci-validate-yaml.py +19 -0
  11. package/scripts/doctor.mjs +10 -65
  12. package/scripts/install/opencode.mjs +69 -6
  13. package/scripts/install/shared.mjs +39 -13
  14. package/scripts/manifest.mjs +5 -30
  15. package/scripts/postinstall.mjs +47 -0
  16. package/scripts/release-bundle.mjs +2 -2
  17. package/scripts/uninstall.mjs +5 -5
  18. package/scripts/validate-routing.mjs +19 -16
  19. package/scripts/versioning.mjs +12 -1
  20. package/skills-lock.json +9 -2
  21. package/src/agents/aphrodite.md +15 -57
  22. package/src/agents/apollo.md +9 -48
  23. package/src/agents/athena.md +17 -54
  24. package/src/agents/demeter.md +10 -47
  25. package/src/agents/gaia.md +7 -40
  26. package/src/agents/hephaestus.md +9 -52
  27. package/src/agents/hermes.md +17 -52
  28. package/src/agents/iris.md +8 -45
  29. package/src/agents/mnemosyne.md +12 -47
  30. package/src/agents/nyx.md +8 -45
  31. package/src/agents/prometheus.md +11 -49
  32. package/src/agents/talos.md +6 -45
  33. package/src/agents/themis.md +10 -35
  34. package/src/agents/zeus.md +5 -7
  35. package/src/mcp/mcp_resources_server.py +2 -0
  36. package/src/plugins/tui/dist/tui.tsx +203 -93
  37. package/src/plugins/tui/src/index.tsx +203 -93
  38. package/src/routing.yml +33 -93
  39. package/src/skills/clonedeps/SKILL.md +45 -0
  40. package/src/skills/codemap/SKILL.md +47 -0
  41. package/src/skills/loop-engineering/SKILL.md +51 -0
  42. package/src/skills/reflect/SKILL.md +49 -0
  43. package/src/skills/simplify/SKILL.md +39 -0
  44. package/src/skills/verification-planning/SKILL.md +52 -0
  45. package/src/skills/worktrees/SKILL.md +43 -0
  46. package/commands/pantheon-bg.md +0 -10
  47. package/commands/pantheon-consolidate.md +0 -11
  48. package/commands/pantheon-doc.md +0 -10
  49. package/commands/pantheon-hash.md +0 -11
  50. package/commands/pantheon-todo.md +0 -11
  51. package/docs/AGENT-MCP.md +0 -194
  52. package/docs/ARCHITECTURE.md +0 -384
  53. package/docs/BRANCH-PROTECTION.md +0 -142
  54. package/docs/INDEX.md +0 -81
  55. package/docs/INSTALLATION.md +0 -217
  56. package/docs/MCP.md +0 -238
  57. package/docs/MEMORY.md +0 -471
  58. package/docs/MIGRATION-MEMORY-BANK.md +0 -139
  59. package/docs/PLATFORMS.md +0 -5
  60. package/docs/QUICKSTART.md +0 -49
  61. package/docs/README.md +0 -18
  62. package/docs/RELEASING.md +0 -256
  63. package/docs/SETUP.md +0 -5
  64. package/docs/UPGRADING.md +0 -41
  65. package/docs/mcp-recommendations.md +0 -439
  66. package/docs/mcp-tools.md +0 -156
  67. package/docs/mcp-user-guide.md +0 -204
  68. package/docs/persistence-mcp.md +0 -111
  69. package/scripts/init-pantheon-mcp.sh +0 -118
  70. package/scripts/install.mjs +0 -26
  71. package/src/instructions/documentation-standards.instructions.md +0 -53
  72. package/src/mcp/init-pantheon-mcp.sh +0 -118
package/docs/RELEASING.md DELETED
@@ -1,256 +0,0 @@
1
- # Pantheon Release Process
2
-
3
- > How versioning, releases, and packaging work.
4
-
5
- ---
6
-
7
- ## Versioning Policy
8
-
9
- Pantheon follows **Semantic Versioning** based on [Conventional Commits](https://www.conventionalcommits.org/):
10
-
11
- | Commit pattern | Version bump |
12
- |---|---|
13
- | `BREAKING CHANGE` or `type!:` in scope | **MAJOR** (x.0.0) |
14
- | `feat:` | **MINOR** (x.y.0) |
15
- | `fix:`, `chore:`, `docs:`, `refactor:`, etc. | **PATCH** (x.y.z) |
16
-
17
- Current version: **v1.0.0**
18
-
19
- ---
20
-
21
- ## Version Commands
22
-
23
- ```bash
24
- # See recommended bump based on commits since last tag
25
- npm run version:recommend
26
-
27
- # Auto-apply recommended bump
28
- npm run version:auto
29
-
30
- # Manual override
31
- npm run version:patch # 2.9.0 → 2.9.1
32
- npm run version:minor # 2.9.0 → 2.10.0
33
- npm run version:major # 2.9.0 → 3.0.0
34
- ```
35
-
36
- These update all 3 manifest files: `package.json`, `plugin.json`, `.github/plugin/plugin.json`.
37
-
38
- ---
39
-
40
- ## Changelogen
41
-
42
- Pantheon uses [changelogen](https://github.com/unjs/changelogen) for automatic changelog generation and version bumping.
43
-
44
- ### First Time Setup
45
-
46
- If this is the first time using changelogen:
47
-
48
- ```bash
49
- npx changelogen --init
50
- ```
51
-
52
- ### Usage
53
-
54
- ```bash
55
- # Generate changelog and bump version automatically
56
- npm run changelog
57
-
58
- # Create release with changelog + commit + tag
59
- npm run release
60
-
61
- # Create GitHub Release (manual trigger)
62
- npx changelogen gh release
63
- ```
64
-
65
- ### How It Works
66
-
67
- 1. **Analyzes commits** — Uses Conventional Commits format (feat:, fix:, docs:)
68
- 2. **Determines bump** — BREAKING→MAJOR, feat→MINOR, fix→PATCH
69
- 3. **Generates CHANGELOG.md** — Structured release notes
70
- 4. **Creates git tag** — Tags the release for GitHub
71
-
72
- ### Prerequisites
73
-
74
- - Project must use Conventional Commits (commitlint + husky already configured)
75
- - First tag: Creates baseline for future changelogs
76
- - After first tag: Only generates changelog from last tag (faster, cleaner)
77
-
78
- ---
79
-
80
- ## Git-Cliff
81
-
82
- Pantheon uses [git-cliff](https://git-cliff.org/) for generating professional changelogs with rich formatting.
83
-
84
- ### Installation
85
-
86
- ```bash
87
- # Via cargo (Rust)
88
- cargo install git-cliff
89
-
90
- # Via npm (via changelogen integration)
91
- npm run changelog:gitcliff
92
- ```
93
-
94
- ### Usage
95
-
96
- ```bash
97
- # Generate full changelog
98
- npm run changelog:gitcliff
99
-
100
- # Preview without writing (dry-run)
101
- npm run release:preview
102
-
103
- # Generate release notes for specific version
104
- npm run release:notes v3.8.5
105
- ```
106
-
107
- ### Configuration
108
-
109
- The configuration is in `cliff.toml` at the project root. Key features:
110
-
111
- - **Conventional Commits** — Parses feat:/fix:/BREAKING automatically
112
- - **Grouped sections** — Features, Bug Fixes, Documentation, etc.
113
- - **Emoji indicators** — Visual categorization (✨ 🐛 📚 ⚡ 🔧 🎨 🧪)
114
- - **GitHub links** — Auto-links issues and commit hashes
115
- - **Breaking change markers** — Clear [BREAKING] tags
116
-
117
- ### Template Customization
118
-
119
- Edit `cliff.toml` to customize:
120
-
121
- ```toml
122
- [changelog]
123
- body = """
124
- {% for group, commits in commits | group_by(attribute="group") %}
125
- ### {{ group | upper_first }}
126
- {% for commit in commits %}
127
- - {{ commit.message | upper_first }}
128
- {% endfor %}
129
- {% endfor %}
130
- """
131
- ```
132
-
133
- ### Release Workflow
134
-
135
- ```bash
136
- # 1. Generate changelog
137
- npm run changelog:gitcliff
138
-
139
- # 2. Review changes
140
- git diff CHANGELOG.md
141
-
142
- # 3. Generate release notes
143
- npm run release:notes v3.8.5
144
-
145
- # 4. Create GitHub Release
146
- gh release create v3.8.5 --notes-file release_notes.md
147
- ```
148
-
149
- ### Comparison: Changelogen vs Git-Cliff
150
-
151
- | Feature | Changelogen | Git-Cliff |
152
- |---------|-------------|-----------|
153
- | Auto version bump | ✅ | ❌ (manual) |
154
- | Rich formatting | Basic | Advanced (emoji, links) |
155
- | Template engine | Simple | Tera (Jinja-like) |
156
- | GitHub integration | Limited | Full (PRs, issues) |
157
- | Breaking changes | ✅ | ✅ (with markers) |
158
- | Speed | Fast | Fast |
159
-
160
- **Recommendation:** Use `changelogen` for version bumping and `git-cliff` for changelog generation.
161
-
162
- ---
163
-
164
- ## Release Workflow
165
-
166
- ### 🚀 Automatic (recommended)
167
-
168
- **No manual steps needed.** Just merge your PR to `main`:
169
-
170
- 1. [auto-release.yml](../.github/workflows/auto-release.yml) detects the merge
171
- 2. Analyzes conventional commits since the last tag → determines bump (`major`/`minor`/`patch`)
172
- 3. Updates version in `package.json`, `plugin.json`, `.github/plugin/plugin.json`
173
- 4. Regenerates all platform configs (`npm run sync`)
174
- 5. Commits the bump with `[skip ci]` and creates a git tag `vX.Y.Z`
175
- 6. Tag push triggers [release.yml](../.github/workflows/release.yml) which creates the **GitHub Release**
176
-
177
- ### 🖐️ Manual (if needed)
178
-
179
- ```bash
180
- # 1. Ensure platforms are in sync
181
- npm run sync && npm run sync:check
182
-
183
- # 2. Check recommended version
184
- npm run version:recommend
185
-
186
- # 3. Apply version bump
187
- npm run version:auto
188
-
189
- # 4. Update CHANGELOG.md with release notes
190
-
191
- # 5. Commit and tag
192
- git add -A
193
- git commit -m "chore(release): v$(node -p "require('./package.json').version")"
194
- git tag v$(node -p "require('./package.json').version")
195
-
196
- # 6. Push — CI creates the release automatically
197
- git push && git push --tags
198
- ```
199
-
200
- ### What CI does
201
-
202
- | Workflow | Trigger | Action |
203
- |---|---|---|
204
- | [auto-release.yml](../.github/workflows/auto-release.yml) | CI success on `main` | Bumps version, regenerates platforms, creates tag + GitHub Release |
205
- | [release-gate.yml](../.github/workflows/release-gate.yml) | PR to `main` | Validates version consistency and CHANGELOG entry |
206
- | [release-drafter.yml](../.github/workflows/release-drafter.yml) | Push to `main` | Drafts release notes from PR labels |
207
-
208
- ---
209
-
210
- ## Consumption Options
211
-
212
- Users can consume Pantheon in several ways:
213
-
214
- | Method | Best for | How |
215
- |---|---|---|
216
- | **GitHub Template** | New projects | Click "Use this template" on GitHub — creates a fresh repo with full Pantheon copy |
217
- | **GitHub Release** | Downloads/CI | Download `Source code (tar.gz)` from [Releases page](https://github.com/ils15/pantheon/releases) |
218
- | **VS Code Plugin** | Existing projects | Add `ils15/pantheon` to `chat.plugins.marketplaces` |
219
- | **Git clone + copy** | Selective setup | `git clone` and copy only what you need |
220
- | **npm package** (future) | Dev workflow | `npm install @ils15/pantheon` |
221
-
222
- ---
223
-
224
- ## Release Assets
225
-
226
- Each release includes:
227
-
228
- | Asset | Description |
229
- |---|---|
230
- | `Source code (zip)` | GitHub auto-generated |
231
- | `Source code (tar.gz)` | GitHub auto-generated |
232
- | `pantheon-vX.Y.Z.tar.gz` (planned) | Bundled release: agents + platforms + scripts + docs |
233
-
234
- ---
235
-
236
- ## Release Drafter
237
-
238
- Pantheon uses [Release Drafter](https://github.com/release-drafter/release-drafter) to auto-collect PRs:
239
-
240
- - Configured in [`.github/release-drafter.yml`](../.github/release-drafter.yml)
241
- - PR labels (`feature`, `fix`, `chore`, `docs`) determine categories
242
- - Runs on every push to `main`
243
-
244
- ---
245
-
246
- ## Pre-Release Checklist
247
-
248
- Before cutting a release, verify:
249
-
250
- - [ ] `npm run sync:check` passes (platforms in sync)
251
- - [ ] `npm run plugin:validate` passes
252
- - [ ] All workflows green on latest `main`
253
- - [ ] `CHANGELOG.md` has entry for the new version
254
- - [ ] Version manifests match: `package.json` == `plugin.json` == `.github/plugin/plugin.json`
255
- - [ ] `npm run version:recommend` shows expected bump
256
- - [ ] Platform READMEs are up to date
package/docs/SETUP.md DELETED
@@ -1,5 +0,0 @@
1
- # Pantheon Setup Guide
2
-
3
- > **This guide has moved.** See [INSTALLATION.md](INSTALLATION.md) for the latest setup instructions.
4
-
5
- All platform-specific guides are available in the [platforms/](platforms/) directory.
package/docs/UPGRADING.md DELETED
@@ -1,41 +0,0 @@
1
- # Upgrading Pantheon
2
-
3
-
4
- ## Upgrading to v1.0 (OpenCode-only)
5
-
6
- v1.0 removes all multi-platform support. Pantheon now runs exclusively on OpenCode.
7
-
8
- ### Breaking Changes
9
- 1. **No longer supports**: Claude Code, Cursor, Windsurf, Cline, Continue.dev, VS Code Copilot
10
- 2. **Installation changed**: Use `npx pantheon init` instead of per-platform scripts
11
- 3. **Background delegation**: Requires `OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true`
12
- 4. **Commands reduced**: 14 → 11 (install, update, cancel, sketch, consolidate removed)
13
-
14
- ### Migration Steps
15
- 1. Uninstall old platform-specific configs
16
- 2. Run `npx pantheon init` to install agents globally
17
- 3. Run `npm run install` for MCP servers + skills + TUI
18
- 4. Add `export OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true` to your shell profile
19
-
20
- ### Rollback
21
- Pantheon v4.x remains available on the v4.x branch if you need multi-platform support.
22
-
23
-
24
- ## Upgrading to v3.19.0
25
-
26
- ### Memory Persistence Protocol
27
- Pantheon v3.19.0 introduces the Memory Persistence Protocol — a standardized system for how agents persist and recall memory.
28
-
29
- Key changes:
30
- - All 14 agent files now have a `## 🧠 Memory Protocol` section with mandatory rules
31
- - Agents must call `memory_recall()` before work (top_k=3, skip if score <0.3)
32
- - Agents must call `memory_store()` after work (2 lines max, importance 0.4-0.9)
33
- - Zeus auto-stores on agent return — no extra work needed
34
- - Session-end auto-save runs at session close
35
- - Memory Bank is updated only at sprint close (importance ≥ 0.6 graduates)
36
-
37
- **No manual migration needed.** The protocol is enforced at the agent instruction level.
38
-
39
- ### Previous Upgrades
40
-
41
- For upgrading from versions before v3.19.0, see the CHANGELOG for version-specific changes.