pantheon-opencode 1.6.0-beta.3 → 1.6.0-beta.5

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 (55) hide show
  1. package/AGENTS.md +24 -5
  2. package/CHANGELOG.md +49 -0
  3. package/README.md +51 -19
  4. package/README.pt-BR.md +32 -13
  5. package/bin/pantheon-init.mjs +26 -3
  6. package/package.json +12 -11
  7. package/plugin.json +1 -1
  8. package/pyproject.toml +6 -6
  9. package/scripts/{code_mode_server.py → code_mode.py} +3 -3
  10. package/scripts/cost.mjs +244 -41
  11. package/scripts/doctor.mjs +151 -1
  12. package/scripts/install/agents-md.mjs +2 -2
  13. package/scripts/install/config-migration.mjs +80 -2
  14. package/scripts/install/health-check.mjs +21 -19
  15. package/scripts/install/opencode-version.mjs +246 -4
  16. package/scripts/install/opencode.mjs +250 -119
  17. package/scripts/install/shared.mjs +5 -5
  18. package/scripts/install-mcp.mjs +28 -9
  19. package/scripts/{mcp_persistence_server.py → mcp_persistence.py} +2 -2
  20. package/{src/mcp/mcp_resources_server.py → scripts/mcp_resources.py} +2 -2
  21. package/scripts/{memory_mcp_server.py → memory_mcp.py} +2 -2
  22. package/scripts/probe-context-rehydrate.mjs +8 -2
  23. package/scripts/probe-pantheon-cost.mjs +71 -15
  24. package/scripts/sync-artifacts.mjs +5 -5
  25. package/scripts/test-opencode-v2-sandbox.sh +21 -21
  26. package/scripts/validate-routing.mjs +3 -3
  27. package/skills-lock.json +1 -1
  28. package/src/agents/apollo.md +7 -2
  29. package/src/agents/zeus.md +29 -1
  30. package/src/instructions/memory-protocol.instructions.md +15 -4
  31. package/src/instructions/zeus-anti-stall.instructions.md +9 -1
  32. package/src/mcp/{code_mode_server.py → code_mode.py} +3 -3
  33. package/src/mcp/eval_store.py +2 -2
  34. package/src/mcp/{mcp_persistence_server.py → mcp_persistence.py} +2 -2
  35. package/{scripts/mcp_resources_server.py → src/mcp/mcp_resources.py} +2 -2
  36. package/src/mcp/{memory_mcp_server.py → memory_mcp.py} +2 -2
  37. package/src/mcp/{pantheon_vision_server.py → pantheon_vision.py} +1 -1
  38. package/src/mcp/requirements-mcp.txt +6 -4
  39. package/src/mcp/requirements-vision.txt +2 -2
  40. package/src/pantheon/cost-command.ts +399 -101
  41. package/src/pantheon/presets.mjs +3 -3
  42. package/src/pantheon/v2-unsupported.d.mts +11 -0
  43. package/src/pantheon/v2-unsupported.mjs +113 -0
  44. package/src/plugin-v2.ts +269 -100
  45. package/src/plugins/tui/dist/server.d.ts +1 -2
  46. package/src/plugins/tui/dist/server.d.ts.map +1 -1
  47. package/src/plugins/tui/dist/tui.d.ts +74 -74
  48. package/src/plugins/tui/dist/tui.d.ts.map +1 -1
  49. package/src/plugins/tui/dist/tui.js +17 -20
  50. package/src/plugins/tui/package-lock.json +364 -317
  51. package/src/plugins/tui/package.json +8 -5
  52. package/src/plugins/tui/tsconfig.build.json +5 -0
  53. package/src/plugins/tui/tsdown.config.ts +3 -0
  54. package/src/skills/context-compression/SKILL.md +1 -1
  55. package/opencode.json +0 -58
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pantheon-tui",
3
3
  "type": "module",
4
- "version": "1.6.0-beta.3",
4
+ "version": "1.6.0-beta.5",
5
5
  "description": "Pantheon TUI plugin — sidebar (version, preset, sessions, real-time delegations) + AI subscription usage gauges incl. OpenCode Go/Zen dollar limits (vendored, MIT)",
6
6
  "license": "MIT",
7
7
  "engines": {
@@ -20,18 +20,21 @@
20
20
  "typecheck": "tsc --noEmit"
21
21
  },
22
22
  "peerDependencies": {
23
- "@opencode-ai/plugin": "1.18.30",
24
- "@opencode-ai/sdk": "1.18.30",
23
+ "@opencode-ai/plugin": "1.18.33",
24
+ "@opencode-ai/sdk": "1.18.33",
25
25
  "@opentui/core": "0.5.10",
26
26
  "@opentui/solid": "0.5.10",
27
27
  "solid-js": "1.9.12"
28
28
  },
29
29
  "devDependencies": {
30
30
  "rolldown-plugin-solid": "0.2.1",
31
- "tsdown": "0.22.14"
31
+ "tsdown": "0.23.0"
32
+ },
33
+ "overrides": {
34
+ "rolldown": "1.2.7"
32
35
  },
33
36
  "dependencies": {
34
- "@opencode-ai/plugin": "1.18.30",
37
+ "@opencode-ai/plugin": "1.18.33",
35
38
  "@opentui/core": "0.5.10",
36
39
  "@opentui/solid": "0.5.10",
37
40
  "solid-js": "1.9.12"
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"],
4
+ "exclude": ["node_modules", "dist"]
5
+ }
@@ -16,6 +16,9 @@ export default defineConfig({
16
16
  outDir: 'dist',
17
17
  clean: true,
18
18
  outExtensions: () => ({ js: '.js' }),
19
+ dts: {
20
+ tsconfig: join(__dirname, 'tsconfig.build.json'),
21
+ },
19
22
  define: {
20
23
  __PANTHEON_VERSION__: JSON.stringify(pkg.version),
21
24
  },
@@ -639,7 +639,7 @@ Allowed fields: file paths, status, pass/fail verdicts, phase names, agent names
639
639
 
640
640
  ### Layer 2 — Regex pattern scrub (automatic via MCP layer)
641
641
 
642
- **Source of truth:** `scripts/scrub-secrets.py` — the single canonical scrubber. Both `memory_mcp_server.py` and `compress-inline.py` load it via `importlib` (the filename has a hyphen and cannot be `import`ed normally). Do NOT maintain a separate inline pattern list.
642
+ **Source of truth:** `scripts/scrub-secrets.py` — the single canonical scrubber. Both `memory_mcp.py` and `compress-inline.py` load it via `importlib` (the filename has a hyphen and cannot be `import`ed normally). Do NOT maintain a separate inline pattern list.
643
643
 
644
644
  **Real signature:**
645
645
 
package/opencode.json DELETED
@@ -1,58 +0,0 @@
1
- {
2
- "$schema": "https://opencode.ai/config.json",
3
- "provider": {
4
- "opencode-go": {
5
- "models": {
6
- "mimo-v2.5": {
7
- "attachment": true,
8
- "modalities": { "input": ["text", "image"] }
9
- }
10
- }
11
- }
12
- },
13
- "default_agent": "zeus",
14
- "plugins": ["src/plugin-v2"],
15
- "experimental": {
16
- "subagent_depth": 2
17
- },
18
- "permission": {
19
- "skill": {
20
- "*": "allow"
21
- },
22
- "websearch": "deny",
23
- "bash": {
24
- "git *": "allow",
25
- "npm *": "allow",
26
- "npx *": "allow",
27
- "pytest *": "allow",
28
- "ruff *": "allow",
29
- "pip *": "allow",
30
- "python3 *": "allow"
31
- }
32
- },
33
- "mcp": {
34
- "bifrost": {
35
- "type": "remote",
36
- "url": "https://llm.ofertachina.cloud/mcp",
37
- "enabled": true
38
- }
39
- },
40
- "agent": {
41
- "talos": {
42
- "permission": {
43
- "edit": {
44
- "*": "allow",
45
- "**/migrations/**": "deny",
46
- "**/alembic/**": "deny",
47
- "**/models/**": "deny",
48
- "**/auth/**": "deny",
49
- "**/*.sql": "deny"
50
- },
51
- "bash": {
52
- "*": "allow",
53
- "alembic *": "deny"
54
- }
55
- }
56
- }
57
- }
58
- }