Skip to content

Commit 1e7ca7e

Browse files
committed
tui: stop shipping OpenTUI and solid-js as runtime dependencies
OpenCode's TUI loader remaps solid-js, solid-js/store, @opentui/solid, and the JSX runtime specifiers to the host's embedded instances for raw TSX plugin source (opentui runtime-plugin onResolve handlers plus the babel module-resolver in the solid transform), so a local copy is inert at best and a second-runtime hazard at worst. Whenever OpenCode bumps or reverts its embedded OpenTUI, a pinned local copy also breaks the version handshake. Keep exact dev deps for typecheck and the import smoke test, and declare wide optional peers for metadata.
1 parent 4de9b2e commit 1e7ca7e

2 files changed

Lines changed: 43 additions & 21 deletions

File tree

bun.lock

Lines changed: 25 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/plugin/package.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@
4444
"@jitl/quickjs-singlefile-cjs-release-asyncify": "0.32.0",
4545
"@opencode-ai/plugin": "^1.17.11",
4646
"@opencode-ai/sdk": "^1.17.11",
47-
"@opentui/core": "^0.4.2",
48-
"@opentui/solid": "^0.4.2",
4947
"ai-tokenizer": "^1.0.6",
5048
"comment-json": "^5.0.0",
5149
"quickjs-emscripten": "^0.32.0",
52-
"solid-js": "1.9.12",
5350
"zod": "^4.1.8"
5451
},
5552
"devDependencies": {
5653
"@biomejs/biome": "^2.5.1",
54+
"@opentui/core": "0.4.3",
55+
"@opentui/solid": "0.4.3",
5756
"@types/better-sqlite3": "^7.6.13",
5857
"@types/bun": "^1.3.10",
5958
"@types/node": "^22.20.0",
6059
"bun-types": "^1.3.10",
60+
"solid-js": "1.9.12",
6161
"typescript": "^5.8.0"
6262
},
6363
"exports": {
@@ -75,6 +75,20 @@
7575
"tui"
7676
],
7777
"peerDependencies": {
78-
"@opencode-ai/plugin": ">=1.15.0"
78+
"@opencode-ai/plugin": ">=1.15.0",
79+
"@opentui/core": ">=0.3.4 <0.5",
80+
"@opentui/solid": ">=0.3.4 <0.5",
81+
"solid-js": ">=1.9.0 <2"
82+
},
83+
"peerDependenciesMeta": {
84+
"@opentui/core": {
85+
"optional": true
86+
},
87+
"@opentui/solid": {
88+
"optional": true
89+
},
90+
"solid-js": {
91+
"optional": true
92+
}
7993
}
8094
}

0 commit comments

Comments
 (0)