dsh-upgrader
DSH 插件管理升级版:直连 pnpm 升级插件,绕过 dsh plugin add 的升级拦截(与 agent 手动升级同一路径),带插件列表 + 一键升级的设置卡片。
为什么
dshmarket 的升级会 spawn dsh plugin add(dsh CLI),在部分环境被 dsh 拦截;本插件像 agent 手动升级一样,直接在宿主进程用 node:child_process 调 pnpm,并自动处理:
- minimumReleaseAgeExclude:把新版本写进 profile
pnpm-workspace.yaml(否则 pnpm 拦截新发布) pnpm add -w <pkg>@<exact>:更新package.json+ node_modules- bundles 条目:新插件自动追加到
dsh.profile.bundles - 重启提示:升级完成后重启 GUI 生效
安装
# profile 目录
pnpm add -w dsh-upgrader
# 或从 GitHub
pnpm add -w dsh-upgrader@github:lileikeji/dsh-upgrader把 dsh-upgrader 加进 profile package.json 的 dsh.profile.bundles,重启 dsh。
使用
设置 → 插件 → 插件升级(upgrader):
- 列出已安装插件 + 当前版本 + npm 最新版本
- 有更新的插件显示 升级 按钮,一键直连 pnpm 升级
- 升级成功提示重启 GUI
HTTP API
GET /dsh-upgrader/status→{ profile, installed, updates, bundles }POST /dsh-upgrader/upgradebody{ name }→ 升级并返回{ ok, name, from, to, restart }
License
MIT