Supercode Updater
OpenCode V2 TUI plugin: check and update server plugins and TUI packages, with update info for managed tools
0
425
近 7 天 21
36.1
生态多维模型
4 天前
2026-10-01
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@glaicer/supercode-plugin-updater@1.0.6"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@glaicer/supercode-plugin-updater@1.0.6"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @glaicer/supercode-plugin-updaterOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode installs plugins and built-in tools (prettier, biome, …) into its cache and never updates them. This plugin fixes that: it checks npm for newer versions and lets you update them from one screen.
Run /plugin-updates, pick what you want with Space / A, then:
U— update the selected pluginsX— reinstall the selected managed tools (this restarts the server)R— re-check right now
That's it. A few things worth knowing:
- Server-side plugin updates apply live; TUI plugin updates take effect after you restart the TUI. The screen tells you which is which.
- Managed tools get reinstalled by OpenCode itself on next use, so
Xrestarts the server — the confirmation warns you about that. - Rows that can't be updated (pinned versions, local paths) are shown but not selectable.
- The plugin never deletes anything except the cache of tools you explicitly reinstalled.
If updates are found, you'll also get a toast once a day — no more than that.
Install
OpenCode v2 (current release, 1.0.6):
opencode plugin add @glaicer/supercode-plugin-updater
OpenCode v1 (use the 0.3.0 release — it's a different API):
opencode plugin @glaicer/supercode-plugin-updater@0.3.0
Restart OpenCode after installing. The first start may be slow — that's OpenCode downloading the package into its cache, it happens once.
Development
npm run build # precompile the Solid TUI entrypoint into dist/
npm run typecheck # tsc --noEmit
npm test # node --test, network-free
License
MIT
同类生态推荐
Supercode Turn Timer
@glaicer/supercode-turn-timer
OpenCode TUI plugin: elapsed-time timer for the current turn, inline in the prompt footer.
Message Copy
opencode-message-copy
Fuzzy-search, preview, and copy any user or assistant message from the OpenCode TUI.
Requesty
@christiangalsterer/opencode-requesty-plugin
opencode TUI plugin: shows Requesty.ai monthly budget, current spend, and per-model cost distribution in the session sidebar, in the session prompt and with a detail dialog via the /requesty command