pantheon-opencode 1.6.0-beta.9 → 1.6.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 (140) hide show
  1. package/AGENTS.global.md +118 -0
  2. package/AGENTS.md +18 -168
  3. package/CHANGELOG.md +144 -365
  4. package/README.md +124 -607
  5. package/README.pt-BR.md +120 -345
  6. package/bin/pantheon-init.mjs +504 -141
  7. package/commands/pantheon-deepwork.md +14 -3
  8. package/commands/pantheon-vision.md +61 -12
  9. package/package.json +22 -13
  10. package/plugin.json +1 -1
  11. package/pyproject.toml +6 -2
  12. package/scripts/_pantheon_paths.py +24 -0
  13. package/scripts/build-agents-md.mjs +368 -69
  14. package/scripts/changelog-merge.mjs +161 -0
  15. package/scripts/check-plugin-v2-coverage.mjs +11 -8
  16. package/scripts/docs-check-changelog.mjs +204 -0
  17. package/scripts/docs-link-check.mjs +314 -0
  18. package/scripts/docs-media.mjs +157 -0
  19. package/scripts/doctor.mjs +850 -45
  20. package/scripts/install/agents-md.mjs +2 -2
  21. package/scripts/install/backup.mjs +648 -0
  22. package/scripts/install/cli-ui.mjs +303 -72
  23. package/scripts/install/component-selection.mjs +61 -0
  24. package/scripts/install/config-migration.mjs +583 -27
  25. package/scripts/install/exit-codes.mjs +26 -0
  26. package/scripts/install/file-inventory.mjs +555 -0
  27. package/scripts/install/health-check.mjs +31 -25
  28. package/scripts/install/interactive.mjs +99 -383
  29. package/scripts/install/interrupt.mjs +78 -0
  30. package/scripts/install/migrate.mjs +49 -25
  31. package/scripts/install/model-picker.mjs +218 -250
  32. package/scripts/install/opencode-state.mjs +91 -0
  33. package/scripts/install/opencode-version.mjs +83 -21
  34. package/scripts/install/opencode.mjs +1675 -187
  35. package/scripts/install/plan-artifact.mjs +517 -0
  36. package/scripts/install/plan.mjs +475 -0
  37. package/scripts/install/plugin.mjs +214 -27
  38. package/scripts/install/prompt-result.mjs +2 -0
  39. package/scripts/install/run-record.mjs +115 -0
  40. package/scripts/install/shared.mjs +256 -99
  41. package/scripts/install/state.mjs +63 -8
  42. package/scripts/install/strings.mjs +93 -8
  43. package/scripts/install/v2-capabilities.mjs +205 -0
  44. package/scripts/install/venv.mjs +90 -47
  45. package/scripts/install/verify.mjs +128 -0
  46. package/scripts/install/vision-prompt.mjs +173 -0
  47. package/scripts/install-mcp.mjs +2 -2
  48. package/scripts/manifest-inventory.mjs +49 -3
  49. package/scripts/mcp_persistence.py +1535 -1050
  50. package/scripts/memory_mcp.py +12 -843
  51. package/scripts/node-engine-policy.mjs +85 -0
  52. package/scripts/package-evidence.mjs +10 -2
  53. package/scripts/postinstall.mjs +26 -26
  54. package/scripts/probe-pantheon-cost.mjs +118 -19
  55. package/scripts/prune.mjs +9 -3
  56. package/scripts/reconcile.mjs +325 -0
  57. package/scripts/release-gates.mjs +687 -0
  58. package/scripts/restore.mjs +222 -0
  59. package/scripts/run-node-tests.mjs +24 -8
  60. package/scripts/sync-artifacts.mjs +19 -7
  61. package/scripts/sync-tui.mjs +5 -1
  62. package/scripts/test-opencode-v2-sandbox.sh +36 -123
  63. package/scripts/uninstall.mjs +369 -34
  64. package/scripts/update.mjs +164 -0
  65. package/scripts/validate-node-engine-policy.mjs +13 -0
  66. package/scripts/version-check.mjs +34 -1
  67. package/scripts/versioning.mjs +23 -3
  68. package/scripts/vision-status.mjs +682 -0
  69. package/skills-lock.json +8 -8
  70. package/src/agents/aphrodite.md +13 -10
  71. package/src/agents/apollo.md +4 -5
  72. package/src/agents/athena.md +74 -46
  73. package/src/agents/demeter.md +10 -7
  74. package/src/agents/gaia.md +0 -1
  75. package/src/agents/hephaestus.md +4 -3
  76. package/src/agents/hermes.md +10 -9
  77. package/src/agents/iris.md +6 -1
  78. package/src/agents/mnemosyne.md +10 -4
  79. package/src/agents/nyx.md +4 -4
  80. package/src/agents/prometheus.md +12 -11
  81. package/src/agents/talos.md +6 -0
  82. package/src/agents/zeus.md +84 -56
  83. package/src/instructions/agent-return-format.instructions.md +12 -41
  84. package/src/instructions/memory-protocol.instructions.md +5 -11
  85. package/src/instructions/test-economy.instructions.md +12 -0
  86. package/src/instructions/yagni.instructions.md +6 -15
  87. package/src/instructions/zeus-anti-stall.instructions.md +6 -6
  88. package/src/instructions/zeus-communication-rules.instructions.md +6 -6
  89. package/src/instructions/zeus-council-synthesis.instructions.md +11 -12
  90. package/src/instructions/zeus-memory-operations.instructions.md +13 -7
  91. package/src/instructions/zeus-timeout-retry.instructions.md +36 -10
  92. package/src/mcp/_pantheon_paths.py +24 -0
  93. package/src/mcp/mcp_codemap_module.py +86 -18
  94. package/src/mcp/mcp_persistence.py +1535 -1050
  95. package/src/mcp/memory_mcp.py +444 -94
  96. package/src/mcp/pantheon_vision.py +285 -41
  97. package/src/mcp/requirements-mcp.txt +6 -1
  98. package/src/mcp/requirements-vision.txt +1 -1
  99. package/src/pantheon/context-pruner.ts +541 -0
  100. package/src/pantheon/cost-command.ts +901 -60
  101. package/src/pantheon/delegation-enforce.ts +160 -23
  102. package/src/pantheon/goal-loop.ts +11 -8
  103. package/src/pantheon/guard-path.ts +162 -0
  104. package/src/pantheon/memory-context.ts +1017 -0
  105. package/src/pantheon/model-agents.ts +19 -0
  106. package/src/pantheon/model-command.ts +218 -56
  107. package/src/pantheon/model-pricing.ts +536 -0
  108. package/src/pantheon/presets.mjs +2 -0
  109. package/src/pantheon/task-result-guard.ts +50 -14
  110. package/src/pantheon/v2-bounded-read.ts +654 -0
  111. package/src/pantheon/v2-bridge.ts +27 -0
  112. package/src/pantheon/v2-delegation-enforce.ts +133 -6
  113. package/src/pantheon/v2-execute-after.ts +135 -24
  114. package/src/pantheon/v2-model-overrides.ts +275 -0
  115. package/src/pantheon/v2-shell-hooks.ts +260 -0
  116. package/src/pantheon/v2-tools.ts +89 -35
  117. package/src/pantheon/v2-unsupported.mjs +34 -7
  118. package/src/pantheon/v2-vision.ts +622 -0
  119. package/src/pantheon/vision-local.ts +531 -0
  120. package/src/pantheon/vision.ts +1166 -116
  121. package/src/plugin-v2.ts +1039 -171
  122. package/src/plugin.ts +37 -13
  123. package/src/plugins/tui/dist/tui-v2.d.ts +1029 -2
  124. package/src/plugins/tui/dist/tui-v2.d.ts.map +1 -1
  125. package/src/plugins/tui/dist/tui-v2.js +3742 -85
  126. package/src/plugins/tui/dist/tui.js +1 -1
  127. package/src/plugins/tui/package-lock.json +15 -15
  128. package/src/plugins/tui/package.json +7 -5
  129. package/src/plugins/tui/src/index-v2.tsx +4314 -50
  130. package/src/plugins/tui/tsconfig.typecheck.json +5 -0
  131. package/src/routing.yml +50 -5
  132. package/src/skills/agent-coordination/SKILL.md +7 -2
  133. package/src/skills/artifact-management/SKILL.md +5 -1
  134. package/src/skills/auto-continue/SKILL.md +14 -6
  135. package/src/skills/codemap/SKILL.md +1 -1
  136. package/src/skills/memory-bank/SKILL.md +21 -13
  137. package/src/skills/session-goal/SKILL.md +12 -22
  138. package/src/skills/spec-driven-development/SKILL.md +3 -1
  139. package/src/skills/worktrees/SKILL.md +30 -11
  140. package/scripts/probe-context-rehydrate.mjs +0 -263
@@ -15,8 +15,15 @@ Structured, checkpointed workflow for complex multi-step tasks spanning multiple
15
15
  ## Workflow
16
16
 
17
17
  ```
18
- Phase 0: SCOPING
19
- └─ Zeus + Athena define scope, phases, acceptance criteria → PLAN.md
18
+ Phase 0: PLAN AND APPROVAL
19
+ └─ @athena returns the complete, detailed Markdown plan to Zeus
20
+ └─ Zeus publishes the full plan as a normal message in the main conversation (not only in the child-agent transcript)
21
+ └─ GATE 1: open the approval UI only after that plan message is visible; never bundle or reverse the two
22
+ └─ If the runtime cannot guarantee that order, ask for approval in plain text after the plan and wait
23
+ └─ Wait for explicit approval or requested changes
24
+ └─ For requested changes, redisplay the entire revised plan and repeat Gate 1
25
+ └─ Do not start discovery or implementation before approval
26
+ └─ After approval, persist the approved plan as PLAN.md through the artifact workflow
20
27
 
21
28
  Phase 1: DISCOVERY
22
29
  └─ @apollo maps relevant codebase areas → DISCOVERY.md
@@ -44,7 +51,11 @@ Usage: --resume <slug> | --status <slug> | --list
44
51
 
45
52
  ## Full-Auto Mode (`--full-auto`)
46
53
 
47
- > ⚠️ Bypasses human review gates. Tier 1 gates (plan, commit, deploy) still require approval.
54
+ > ⚠️ Automates only eligible review gates. Gate 1 and commit/deploy gates still require approval.
55
+
56
+ `--full-auto` does not hide the plan or skip Gate 1: Zeus still displays the
57
+ complete plan in the main conversation and waits for explicit approval before
58
+ discovery or implementation. It only affects the later gates described below.
48
59
 
49
60
  **Themis auto-approves non-blocking reviews** — only stops on **BLOCKING** verdict. No waiting between phases. Checkpoints saved at every boundary.
50
61
 
@@ -14,33 +14,80 @@ not being described, switching between native and tool mode.
14
14
 
15
15
  1. **Check connectivity & key source**
16
16
  - Read the opencode auth store: `<data dir>/auth.json`
17
- (default `~/.local/share/opencode/auth.json`, provider entries
18
- `opencode-go` then `opencode`) via `readOpencodeAuthToken`.
17
+ (default `~/.local/share/opencode/auth.json`) via `readOpencodeAuthToken`.
18
+ - Credentials follow the endpoint (never cross providers):
19
+ - **Zen endpoints** (`opencode`, `opencode-go*`): the env keys
20
+ `PANTHEON_OPENCODE_API_KEY` / `OPENCODE_API_KEY` first, then the auth
21
+ store — the resolved provider entry first, then the legacy Zen entries
22
+ `opencode-go` then `opencode`.
23
+ - **Non-Zen endpoints** (e.g. discovered OpenAI-compatible providers):
24
+ ONLY that provider's own auth-store entry. The shared Zen env keys and
25
+ the legacy `opencode-go` / `opencode` entries are never attached to a
26
+ non-Zen base URL; absent an own credential the image falls through to
27
+ the tool→local chain.
19
28
  - Report whether the user is connected (`opencode auth login`) or has an
20
- env key (`PANTHEON_OPENCODE_API_KEY` / `OPENCODE_API_KEY`).
29
+ env key — for a non-Zen target, report the target provider's own entry.
21
30
  - **Never log or echo the token itself** — only connected/not connected.
22
31
 
23
- 2. **Show current status**
32
+ 2. **Show current status (mode + resolved target + origin)**
24
33
  - Effective mode precedence: env `PANTHEON_VISION_MODE` > config file
25
34
  `mode` > default `auto`.
26
- - Read the current config file if present (project `.opencode/opencode-vision.json`
27
- then user `~/.config/opencode/opencode-vision.json`).
35
+ - Resolved target + origin, in precedence order:
36
+ env `PANTHEON_VISION_MODEL` → config `visionModel` (project
37
+ `.opencode/opencode-vision.json`, then user
38
+ `~/.config/opencode/opencode-vision.json`) → active preset `vision.model`
39
+ → **automatic discovery** in the host catalog (`GET /config/providers`)
40
+ → built-in default.
41
+ - Resolve the installed helper first (do not assume the current project
42
+ contains Pantheon source). Check, in order:
43
+ `$OPENCODE_CONFIG_DIR/.opencode/scripts/`,
44
+ `$OPENCODE_CONFIG_DIR/scripts/`,
45
+ `${XDG_CONFIG_HOME:-$HOME/.config}/opencode/scripts/`,
46
+ `$HOME/.opencode/scripts/`, `.opencode/scripts/`, then
47
+ `$(npm root -g)/pantheon-opencode/scripts/`. Run the first existing
48
+ `vision-status.mjs` as `node "$helper" --dir="$PWD"` and show its output
49
+ (mode + target + origin). The same helper drives the picker with
50
+ `--list` (enumerate candidates) and `--set <provider/model>` (pin one).
51
+ - If the helper is missing, resolve inline with the same precedence and be
52
+ honest: discovery needs the live host catalog, so when no explicit model
53
+ is configured report `auto (resolved at session start)` and name the
54
+ fallback default — never invent a value.
28
55
 
29
56
  3. **Ask what to set (interactive)**
30
57
  - **Mode:** `native` | `tool` | `auto`
31
- - `native` — describe images via the multimodal model directly (needs key)
58
+ - `native` — describe images via the multimodal model directly (needs a
59
+ usable credential for the resolved endpoint)
32
60
  - `tool` — always use the MCP tool fallback (`imageAnalysisTool`)
33
61
  - `auto` — try native first, fall back to the tool (default)
34
- - **Vision model:** e.g. `opencode-go/mimo-v2.5`, `opencode-go/minimax-m3`,
35
- or an explicit override (precedence: env `PANTHEON_VISION_MODEL` > config
36
- `visionModel` > active preset `vision.model` > default `opencode-go/mimo-v2.5`).
62
+ - **Vision model — show the picker, do NOT make the user type blind.**
63
+ Run `node "$helper" --list --dir="$PWD"` and present its numbered list.
64
+ - **Read the `Source:` line out loud.** It is `host catalog`
65
+ (`capabilities.input.image`) when the live catalog is available, or
66
+ `heuristic` (`opencode models` + known vision families) otherwise — the
67
+ heuristic is a *guess*, so say so; never present it as certain.
68
+ - Each row shows `Access` (free/paid when the catalog reports cost) and
69
+ `Credential`. **`Credential: no` means the native path has no key for
70
+ that provider, so images degrade to the MCP tool fallback (which then
71
+ falls back to local metadata like EXIF/size) — that is expected, not an
72
+ error.** `yes (env|store)` means a key is present (never echo it).
73
+ - Let the user choose by **number** or type a `provider/model`. Then apply
74
+ it with `node "$helper" --set <provider/model> --dir="$PWD"` (add
75
+ `--global` to pin in the user config; default is the project config).
76
+ - If the list is empty, report the helper's `Source: none` reason (e.g.
77
+ `opencode models` unavailable) and let the user type the model manually.
78
+ - Precedence for the effective model is unchanged: env
79
+ `PANTHEON_VISION_MODEL` > config `visionModel` > active preset
80
+ `vision.model` > automatic discovery > default `opencode-go/mimo-v2.5`.
37
81
  - **Tool fallback:** `imageAnalysisTool` (default
38
82
  `pantheon_vision_vision_describe`). Bifrost is opt-in only when
39
83
  explicitly selected here or through `PANTHEON_VISION_TOOL`.
40
84
 
41
85
  4. **Save the config**
42
- - Default: project config `.opencode/opencode-vision.json`
43
- (merged with the user config `~/.config/opencode/opencode-vision.json`;
86
+ - The `--set` in step 3 already merged `visionModel` atomically
87
+ (`.bak` backup, existing keys preserved, corrupted JSON left untouched).
88
+ If the user typed a model instead of using `--set`, apply it the same way.
89
+ - Default target: project config `.opencode/opencode-vision.json`
90
+ (resolved alongside the user config `~/.config/opencode/opencode-vision.json`;
44
91
  project wins on conflicts).
45
92
  - `--global` → write to `~/.config/opencode/opencode-vision.json`.
46
93
  - Shape:
@@ -65,3 +112,5 @@ not being described, switching between native and tool mode.
65
112
  - Do NOT print tokens or auth.json contents.
66
113
  - Do NOT overwrite existing config keys not being changed — merge.
67
114
  - If the config file is corrupted JSON, warn and ask before overwriting.
115
+ - State the picker's `Source:` (catalog vs heuristic) honestly — a heuristic
116
+ list is a guess; never imply certainty about image capability.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pantheon-opencode",
3
- "version": "1.6.0-beta.9",
3
+ "version": "1.6.1",
4
4
  "description": "Multi-agent orchestration for OpenCode — 14 specialized agents, TDD, Themis review gates.",
5
5
  "type": "module",
6
6
  "workspaces": [
@@ -18,12 +18,12 @@
18
18
  "scripts": {
19
19
  "postinstall": "node scripts/postinstall.mjs && node scripts/sync-tui.mjs",
20
20
  "prepare": "husky",
21
- "setup": "node bin/pantheon-init.mjs init",
21
+ "setup": "node bin/pantheon-init.mjs init --yes",
22
22
  "build:agents-md": "node scripts/build-agents-md.mjs",
23
- "setup:lite": "node bin/pantheon-init.mjs init --clean --components agents,skills,instructions",
23
+ "setup:lite": "node bin/pantheon-init.mjs init --yes --clean --components agents,skills,instructions",
24
24
  "doctor": "node scripts/doctor.mjs",
25
25
  "prune": "node scripts/prune.mjs",
26
- "init": "node bin/pantheon-init.mjs init",
26
+ "init": "node bin/pantheon-init.mjs init --yes",
27
27
  "opencode": "OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true opencode",
28
28
  "start": "OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true opencode",
29
29
  "prepublishOnly": "node scripts/validate-routing.mjs",
@@ -33,20 +33,25 @@
33
33
  "version:check": "node scripts/version-check.mjs",
34
34
  "release:dry-run": "node scripts/versioning.mjs status && node scripts/release-notes.mjs && node scripts/package-evidence.mjs",
35
35
  "package:evidence": "node scripts/package-evidence.mjs",
36
- "package:validate": "node scripts/validate-package.mjs",
36
+ "engine:check": "node scripts/validate-node-engine-policy.mjs",
37
+ "package:validate": "node scripts/validate-package.mjs && npm run engine:check",
37
38
  "lint": "biome ci .",
39
+ "docs:lint": "node scripts/docs-link-check.mjs",
40
+ "docs:media": "node scripts/docs-media.mjs",
41
+ "docs:check-changelog": "node scripts/docs-check-changelog.mjs",
38
42
  "typecheck": "tsc --noEmit",
39
43
  "audit": "npm audit --audit-level=high",
40
44
  "secret-scan": "node scripts/secret-scan.mjs",
41
45
  "hooks:install": "pre-commit install",
42
46
  "hooks:update": "pre-commit autoupdate",
43
47
  "test:security": "npm run secret-scan",
44
- "test:node": "node scripts/run-node-tests.mjs --label 'test:node' 'tests/*.mjs' 'tests/pantheon/*.mjs'",
45
- "coverage": "echo 'Node coverage (report-only, NO threshold is enforced).' && echo 'Covers: the .mjs/.js modules under scripts/, src/ and bin/ that test:node exercises.' && echo 'Does NOT cover: test:ts (hand-rolled tsx loop, no node --test runner) and test:ci (pytest).' && echo ' TypeScript under src/ (41 files) is therefore entirely unmeasured here.' && echo '' && node scripts/run-node-tests.mjs --label 'coverage' -- --experimental-test-coverage --test-coverage-include='scripts/**/*.mjs' --test-coverage-include='src/**/*.mjs' --test-coverage-include='src/**/*.js' --test-coverage-include='bin/**/*.mjs' 'tests/*.mjs' 'tests/pantheon/*.mjs'",
48
+ "test:node": "node scripts/run-node-tests.mjs --label 'test:node' --exclude 'tests/install-opencode.test.mjs' --exclude 'tests/install-e2e.test.mjs' 'tests/*.mjs' 'tests/pantheon/*.mjs'",
49
+ "test:install": "PANTHEON_RUN_INSTALL_TESTS=1 node scripts/run-node-tests.mjs --label 'test:install' 'tests/install-opencode.test.mjs' 'tests/install-e2e.test.mjs'",
50
+ "coverage": "echo 'Node coverage (report-only, NO threshold is enforced).' && echo 'Covers: the .mjs/.js modules under scripts/, src/ and bin/ that test:node exercises.' && echo 'Does NOT cover: test:ts (hand-rolled tsx loop, no node --test runner) and test:ci (pytest).' && echo ' TypeScript under src/ (41 files) is therefore entirely unmeasured here.' && echo '' && node scripts/run-node-tests.mjs --label 'coverage' --exclude 'tests/install-opencode.test.mjs' --exclude 'tests/install-e2e.test.mjs' -- --experimental-test-coverage --test-coverage-include='scripts/**/*.mjs' --test-coverage-include='src/**/*.mjs' --test-coverage-include='src/**/*.js' --test-coverage-include='bin/**/*.mjs' 'tests/*.mjs' 'tests/pantheon/*.mjs'",
46
51
  "coverage:plugin-v2": "node scripts/check-plugin-v2-coverage.mjs",
47
52
  "test:ts": "for f in tests/pantheon/*.test.ts; do if [ \"$f\" = tests/pantheon/plugin-v2-contract.test.ts ]; then NODE_OPTIONS=--conditions=import tsx \"$f\"; else tsx \"$f\"; fi || exit 1; done",
48
53
  "test:hooks": "node scripts/run-node-tests.mjs --label 'test:hooks' 'tests/pantheon/plugin-v2-hook-canary.test.mjs'",
49
- "test:tool-canary": "node scripts/run-node-tests.mjs --label 'test:tool-canary' 'tests/canary/plugin-v2-tool-canary.test.mjs'",
54
+ "test:tool-canary": "node scripts/run-node-tests.mjs --label 'test:tool-canary' 'tests/canary/tool-canary-support.test.mjs' 'tests/canary/plugin-v2-tool-canary.test.mjs'",
50
55
  "test:all": "npm run test:ci && npm run test:node && npm run test:ts",
51
56
  "test": "npm run test:all",
52
57
  "test:ci": "python3 -m pytest -q --tb=short 2>&1"
@@ -75,6 +80,7 @@
75
80
  "!src/agents/README.md",
76
81
  "bin/*.mjs",
77
82
  "AGENTS.md",
83
+ "AGENTS.global.md",
78
84
  "CHANGELOG.md",
79
85
  "src/mcp/*.py",
80
86
  "src/instructions/*.instructions.md",
@@ -97,10 +103,11 @@
97
103
  "!**/*.pyc"
98
104
  ],
99
105
  "dependencies": {
106
+ "@clack/prompts": "1.8.1",
100
107
  "@opencode-ai/plugin": "1.18.33",
108
+ "@opencode-ai/sdk": "1.18.33",
101
109
  "js-yaml": "^5.4.2",
102
- "zod": "4.1.8",
103
- "@opencode-ai/sdk": "1.18.33"
110
+ "zod": "4.6.6"
104
111
  },
105
112
  "devDependencies": {
106
113
  "@biomejs/biome": "2.5.14",
@@ -115,9 +122,11 @@
115
122
  "@babel/core": "7.29.7",
116
123
  "seroval": "1.6.8",
117
124
  "solid-js": "1.9.12",
118
- "rolldown": "1.2.7"
125
+ "rolldown": "1.2.7",
126
+ "toml": "5.0.1",
127
+ "zod": "4.6.6"
119
128
  },
120
- "//overrides": "TUI production advisory fixes: Babel >=7.29.6 and Seroval >=1.6.3; Solid stays at 1.9.12 to satisfy OpenTUI's exact peer. Remove only after upstream ranges include fixed versions; Seroval compatibility is covered by the Solid serializer regression test.",
129
+ "//overrides": "TUI production advisory fixes: Babel >=7.29.6 and Seroval >=1.6.3; zod >=4.6.6 for GHSA-mrhx-c7xc-m3w5 (@opencode-ai/plugin pins zod 4.1.8 exactly, so the override is the only way to move it, and the same entry is mirrored in src/plugins/tui/package.json for the shipped TUI lock); Solid stays at 1.9.12 to satisfy OpenTUI's exact peer. Remove only after upstream ranges include fixed versions; Seroval compatibility is covered by the Solid serializer regression test.",
121
130
  "repository": {
122
131
  "type": "git",
123
132
  "url": "https://github.com/ils15/pantheon-opencode.git"
@@ -137,7 +146,7 @@
137
146
  "author": "ils15",
138
147
  "license": "MIT",
139
148
  "engines": {
140
- "node": "^22.22.2 || ^24.15.0 || >=26.0.0"
149
+ "node": ">=26.4.0"
141
150
  },
142
151
  "preferGlobal": true
143
152
  }
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon",
3
3
  "publisher": "ils15",
4
- "version": "1.6.0-beta.9",
4
+ "version": "1.6.1",
5
5
  "displayName": "Pantheon",
6
6
  "description": "Conductor-Delegate orchestration platform with 14 specialized agents, 20 skills, and OpenCode support.",
7
7
  "agents": "./src/agents",
package/pyproject.toml CHANGED
@@ -4,10 +4,14 @@ build-backend = "setuptools.backends._legacy:_Backend"
4
4
 
5
5
  [project]
6
6
  name = "pantheon"
7
- version = "1.6.0-beta.9"
7
+ version = "1.6.1"
8
8
  description = "Multi-agent orchestration framework"
9
9
  requires-python = ">=3.11"
10
- dependencies = []
10
+ # Python sources under src/mcp/ import fastmcp/pydantic at runtime, but those
11
+ # are installed from src/mcp/requirements-*.txt by the installer, not from this
12
+ # metadata. typing_extensions is declared here because src/mcp/memory_mcp.py
13
+ # imports it directly (TypedDict must come from typing_extensions on 3.11).
14
+ dependencies = ["typing_extensions>=4.14.1"]
11
15
 
12
16
  [tool.pytest.ini_options]
13
17
  # `tests/` holds the main suite; the entry below is an orphaned test module
@@ -72,6 +72,30 @@ def pantheon_project() -> Path | None:
72
72
  return None
73
73
 
74
74
 
75
+ def trusted_project_root() -> Path | None:
76
+ """Return an explicitly host-bound project root, or ``None``.
77
+
78
+ The globally launched Memory MCP commonly runs with its working directory
79
+ set to the installed runtime, not the active project. Therefore this
80
+ security-sensitive lookup deliberately accepts only an absolute
81
+ ``PANTHEON_PROJECT`` binding and never falls back to ``PWD`` or cwd.
82
+ """
83
+ configured_root = os.environ.get("PANTHEON_PROJECT")
84
+ if not configured_root:
85
+ return None
86
+
87
+ candidate = Path(configured_root)
88
+ if not candidate.is_absolute():
89
+ return None
90
+ try:
91
+ root = candidate.resolve(strict=True)
92
+ except (OSError, RuntimeError):
93
+ return None
94
+ if not root.is_dir() or root == Path(root.anchor):
95
+ return None
96
+ return root
97
+
98
+
75
99
  def _is_valid_logical_cwd(logical_cwd: str, physical_cwd: str) -> bool:
76
100
  """Validate a launcher-provided logical cwd without resolving its result.
77
101