跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    Glaicer

    Supercode Updater

    @glaicer/supercode-plugin-updater·v1.0.6·界面与主题

    OpenCode V2 TUI plugin: check and update server plugins and TUI packages, with update info for managed tools

    GitHub 星标

    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"]
    }

    OpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    plugin-updater demo

    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 plugins
    • X — 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 X restarts 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

    同类生态推荐