pantheon-opencode 2.1.6 → 2.2.0-beta.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.
package/CHANGELOG.md CHANGED
@@ -13,6 +13,43 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
13
13
  `node scripts/versioning.mjs apply --notes` pre-fills the generated sections from conventional commits.
14
14
  Running apply will move this section to a versioned entry and reset the template below. -->
15
15
 
16
+ ## [v2.2.0-beta.1] - 2026-11-17
17
+
18
+ ### 🆕 What's New
19
+
20
+ - **Native Node.js MCP Server**: Migrated MCP servers from Python (`.venv`) to 100% native Node.js ESM (`src/mcp/pantheon-mcp-server.mjs`).
21
+ - **Quotas & Spend Tab**: Added dedicated "Cotas & Gastos" tab in Pantheon Settings inspired by `@slkiser/opencode-quota`.
22
+ - **Dynamic Auto-Provisioning**: Automated agent provisioning via `agent.transform` from canonical roster on `opencode update`.
23
+ - **Single-Command Plugin Installation**: Supported native single-command install via `opencode plugin add pantheon-opencode`.
24
+ - **Stabilized Sidebar TUI**: Interactive `[compact]` button, color tokens, no line wrapping, docked layout, theme & accent colors.
25
+
26
+ ### Added
27
+
28
+ - **mcp** — `src/mcp/pantheon-mcp-server.mjs`: zero-dependency native Node.js MCP server with `node:sqlite` memory, persistence, resources, and code-mode.
29
+ - **tui** — `src/plugins/tui/src/quota-state.ts`: Quota & spend tracking store with provider window limits, alerts, and cost projections.
30
+ - **tui** — `buildQuotaTab` in `src/plugins/tui/src/pantheon-settings.tsx`: settings tab displaying live API quotas, token limits, and spend.
31
+ - **plugin** — `src/plugin.ts`: automated `agent.transform` provisioning of Zeus, Athena, Hermes, Aphrodite, and specialists from canonical roster.
32
+ - **plugin** — package export `.` allowing native `opencode plugin add pantheon-opencode` without custom init scripts.
33
+
34
+ ## [v2.1.7] - 2026-11-16
35
+
36
+ ### 🆕 What's New
37
+
38
+ - **Native Plugin Entrypoint**: Added root exports (`"."`, `"./server"`, `"./tui"`), enabling `opencode plugin add pantheon-opencode` support.
39
+ - **Interactive Compaction**: Wired `[compact]` button with pointer events and toast feedback triggering native session compaction.
40
+ - **Semantic Theme Polish**: Vibrant colors for turn cost, cache hit, reasoning tokens, and block header icons.
41
+ - **Next-Gen TUI Layout**: Dense bilateral row layouts (`justifyContent="space-between"`) matching the Next-Gen proposal without line wrap.
42
+ - **Telemetry & Cache Speed**: Cache hit percentage paired with generation speed (`Speed: 72 t/s`) on unified rows.
43
+ - **Tools & Verification Gate**: Tool execution counter paired with active test/safety gate (`tools: 14 (0 err)` + `✓ Gate: tests pass`).
44
+
45
+ ### Added
46
+
47
+ - **plugin** — root `"."`, `"./server"`, and `"./tui"` package exports in `package.json` for unified OpenCode plugin loader support.
48
+ - **tui** — Next-Gen bilateral layouts for Context, Git status, and header metrics in `src/plugins/tui/src/index.tsx`.
49
+ - **tui** — `extractCompactionInfo`, `formatCompactionBadge`, `formatTokenAnatomySplit`, `resolveGateStatus`, and `isSessionPinned`.
50
+ - **tui** — `pinnedSessions` persistence and self-healing schema normalization in `src/plugins/tui/src/tui-prefs.ts`.
51
+ - **tests** — comprehensive unit and integration coverage in `tests/tui-sidebar.test.mjs` and `tests/tui-prefs.test.mjs`.
52
+
16
53
  ## [v2.1.6] - 2026-11-16
17
54
 
18
55
  ### 🆕 What's New
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "2.1.6",
3
+ "version": "2.2.0-beta.1",
4
4
  "description": "Multi-agent orchestration for OpenCode \u2014 14 specialized agents, TDD, Themis review gates.",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -10,7 +10,12 @@
10
10
  "access": "public",
11
11
  "registry": "https://registry.npmjs.org/"
12
12
  },
13
+ "main": "src/plugin/index.js",
13
14
  "exports": {
15
+ ".": "./src/plugin/index.js",
16
+ "./server": "./src/plugin/index.js",
17
+ "./tui": "./src/plugins/tui/dist/tui.js",
18
+ "./mcp": "./src/mcp/pantheon-mcp-server.mjs",
14
19
  "./local-decision-router": "./src/pantheon/local-decision-router.ts",
15
20
  "./plugin": "./src/plugin.ts"
16
21
  },
@@ -83,6 +88,7 @@
83
88
  "skills-lock.json",
84
89
  "scripts/*.sh",
85
90
  "src/agents/*.md",
91
+ "src/agents/roster.json",
86
92
  "!src/agents/README.md",
87
93
  "bin/*.mjs",
88
94
  "AGENTS.md",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon",
3
3
  "publisher": "ils15",
4
- "version": "2.1.6",
4
+ "version": "2.2.0-beta.1",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 25 skills, and OpenCode support.",
7
7
  "agents": "./src/agents",
package/pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.backends._legacy:_Backend"
4
4
 
5
5
  [project]
6
6
  name = "pantheon"
7
- version = "2.1.6"
7
+ version = "2.2.0-beta.1"
8
8
  description = "Multi-agent orchestration framework"
9
9
  requires-python = ">=3.11"
10
10
  # Python sources under src/mcp/ import fastmcp/pydantic at runtime, but those
@@ -14,7 +14,7 @@ import { fileURLToPath } from 'node:url'
14
14
 
15
15
  const __dirname = dirname(fileURLToPath(import.meta.url))
16
16
  const root = join(__dirname, '..')
17
- const entry = join(root, 'src', 'plugin.ts')
17
+ const entry = join(root, 'src', 'plugin', 'index.ts')
18
18
  const outfile = join(root, 'src', 'plugin', 'index.js')
19
19
 
20
20
  let built = false
@@ -71,6 +71,10 @@ function resolveServerScript(relPath) {
71
71
  }
72
72
 
73
73
  const VENV_PYTHON = resolveVenvPython()
74
+ const NODE_BIN = 'node'
75
+ const PANTHEON_MCP_NODE_SERVER = resolveServerScript('src/mcp/pantheon-mcp-server.mjs')
76
+ const USE_PYTHON_MCP = process.env.PANTHEON_USE_PYTHON_MCP === '1'
77
+
74
78
  const MCP_RESOURCES_SERVER = resolveServerScript('scripts/mcp_resources.py')
75
79
  const CODE_MODE_SERVER = resolveServerScript('scripts/code_mode.py')
76
80
  const MEMORY_MCP_SERVER = resolveServerScript('scripts/memory_mcp.py')
@@ -201,16 +205,21 @@ export const MCPS = {
201
205
  platforms: {
202
206
  opencode: {
203
207
  type: 'local',
204
- command: VENV_PYTHON,
205
- args: [MCP_RESOURCES_SERVER],
208
+ command: USE_PYTHON_MCP ? VENV_PYTHON : NODE_BIN,
209
+ args: USE_PYTHON_MCP
210
+ ? [MCP_RESOURCES_SERVER]
211
+ : [PANTHEON_MCP_NODE_SERVER, '--server', 'pantheon-resources'],
206
212
  },
207
213
  },
208
214
  validate: async () => {
209
- const scriptPath = MCP_RESOURCES_SERVER
215
+ const scriptPath = USE_PYTHON_MCP ? MCP_RESOURCES_SERVER : PANTHEON_MCP_NODE_SERVER
210
216
  if (existsSync(scriptPath)) {
211
- return { ok: true, message: 'server script present' }
217
+ return {
218
+ ok: true,
219
+ message: USE_PYTHON_MCP ? 'server script present' : 'Node native MCP server present',
220
+ }
212
221
  }
213
- return { ok: false, message: 'mcp_resources.py not found at resolved path' }
222
+ return { ok: false, message: `${scriptPath} not found at resolved path` }
214
223
  },
215
224
  },
216
225
  'pantheon-code-mode': {
@@ -220,18 +229,23 @@ export const MCPS = {
220
229
  platforms: {
221
230
  opencode: {
222
231
  type: 'local',
223
- command: VENV_PYTHON,
224
- args: [CODE_MODE_SERVER],
232
+ command: USE_PYTHON_MCP ? VENV_PYTHON : NODE_BIN,
233
+ args: USE_PYTHON_MCP
234
+ ? [CODE_MODE_SERVER]
235
+ : [PANTHEON_MCP_NODE_SERVER, '--server', 'pantheon-code-mode'],
225
236
  cwd: '.',
226
237
  },
227
238
  },
228
239
  env: [],
229
240
  validate: async () => {
230
- const scriptPath = CODE_MODE_SERVER
241
+ const scriptPath = USE_PYTHON_MCP ? CODE_MODE_SERVER : PANTHEON_MCP_NODE_SERVER
231
242
  if (existsSync(scriptPath)) {
232
- return { ok: true, message: 'server script present' }
243
+ return {
244
+ ok: true,
245
+ message: USE_PYTHON_MCP ? 'server script present' : 'Node native MCP server present',
246
+ }
233
247
  }
234
- return { ok: false, message: 'code_mode.py not found at resolved path' }
248
+ return { ok: false, message: `${scriptPath} not found at resolved path` }
235
249
  },
236
250
  },
237
251
  'pantheon-memory': {
@@ -242,17 +256,22 @@ export const MCPS = {
242
256
  platforms: {
243
257
  opencode: {
244
258
  type: 'local',
245
- command: VENV_PYTHON,
246
- args: [MEMORY_MCP_SERVER],
259
+ command: USE_PYTHON_MCP ? VENV_PYTHON : NODE_BIN,
260
+ args: USE_PYTHON_MCP
261
+ ? [MEMORY_MCP_SERVER]
262
+ : [PANTHEON_MCP_NODE_SERVER, '--server', 'pantheon-memory'],
247
263
  },
248
264
  },
249
265
  env: [],
250
266
  validate: async () => {
251
- const scriptPath = MEMORY_MCP_SERVER
267
+ const scriptPath = USE_PYTHON_MCP ? MEMORY_MCP_SERVER : PANTHEON_MCP_NODE_SERVER
252
268
  if (existsSync(scriptPath)) {
253
- return { ok: true, message: 'server script present' }
269
+ return {
270
+ ok: true,
271
+ message: USE_PYTHON_MCP ? 'server script present' : 'Node native MCP server present',
272
+ }
254
273
  }
255
- return { ok: false, message: 'memory_mcp.py not found at resolved path' }
274
+ return { ok: false, message: `${scriptPath} not found at resolved path` }
256
275
  },
257
276
  },
258
277
  'pantheon-persistence': {
@@ -264,16 +283,21 @@ export const MCPS = {
264
283
  platforms: {
265
284
  opencode: {
266
285
  type: 'local',
267
- command: VENV_PYTHON,
268
- args: [MCP_PERSISTENCE_SERVER],
286
+ command: USE_PYTHON_MCP ? VENV_PYTHON : NODE_BIN,
287
+ args: USE_PYTHON_MCP
288
+ ? [MCP_PERSISTENCE_SERVER]
289
+ : [PANTHEON_MCP_NODE_SERVER, '--server', 'pantheon-persistence'],
269
290
  },
270
291
  },
271
292
  validate: async () => {
272
- const scriptPath = MCP_PERSISTENCE_SERVER
293
+ const scriptPath = USE_PYTHON_MCP ? MCP_PERSISTENCE_SERVER : PANTHEON_MCP_NODE_SERVER
273
294
  if (existsSync(scriptPath)) {
274
- return { ok: true, message: 'server script present' }
295
+ return {
296
+ ok: true,
297
+ message: USE_PYTHON_MCP ? 'server script present' : 'Node native MCP server present',
298
+ }
275
299
  }
276
- return { ok: false, message: 'mcp_persistence.py not found at resolved path' }
300
+ return { ok: false, message: `${scriptPath} not found at resolved path` }
277
301
  },
278
302
  },
279
303
  'pantheon-vision': {
@@ -285,18 +309,22 @@ export const MCPS = {
285
309
  platforms: {
286
310
  opencode: {
287
311
  type: 'local',
288
- command: VENV_PYTHON,
289
- args: [PANTHEON_VISION_SERVER],
312
+ command: USE_PYTHON_MCP ? VENV_PYTHON : NODE_BIN,
313
+ args: USE_PYTHON_MCP
314
+ ? [PANTHEON_VISION_SERVER]
315
+ : [PANTHEON_MCP_NODE_SERVER, '--server', 'pantheon-vision'],
290
316
  },
291
317
  },
292
318
  env: [],
293
319
  validate: async () => {
294
- const sourcePath = PANTHEON_VISION_SERVER
295
- const requirementsPath = join(ROOT, 'src', 'mcp', 'requirements-vision.txt')
296
- if (existsSync(sourcePath) && existsSync(requirementsPath)) {
297
- return { ok: true, message: 'canonical server source and isolated requirements present' }
320
+ const sourcePath = USE_PYTHON_MCP ? PANTHEON_VISION_SERVER : PANTHEON_MCP_NODE_SERVER
321
+ if (existsSync(sourcePath)) {
322
+ return {
323
+ ok: true,
324
+ message: USE_PYTHON_MCP ? 'server script present' : 'Node native MCP server present',
325
+ }
298
326
  }
299
- return { ok: false, message: 'canonical vision source or requirements not found' }
327
+ return { ok: false, message: `${sourcePath} not found` }
300
328
  },
301
329
  },
302
330
  docker: {