dsh-plugin-upgrader

在「插件」页新增「版本」标签:一键升级,能就地替换时就地替换(不卸载、启用状态保留;拿不到 profile 写入锁时退回卸载再装,并在日志写明走了哪条路),实时显示 pnpm 输出、每步耗时并可取消,列出全部已发布版本并一键回滚,每个版本先与当前运行的 DSH 核对,装不了的标出并禁用按钮,回滚时装回却无法激活的情况与包丢失分开说明,profile manifest 读写走 harness 自己的写入锁,升级失败后按包各留一条可恢复的 journal 记录,标出镜像落后上游的缺口,安装源可选并写进 profile。

插件介绍

在「插件」页新增「版本」标签:一键升级,能就地替换时就地替换(不卸载、启用状态保留;拿不到 profile 写入锁时退回卸载再装,并在日志写明走了哪条路),实时显示 pnpm 输出、每步耗时并可取消,列出全部已发布版本并一键回滚,每个版本先与当前运行的 DSH 核对,装不了的标出并禁用按钮,回滚时装回却无法激活的情况与包丢失分开说明,profile manifest 读写走 harness 自己的写入锁,升级失败后按包各留一条可恢复的 journal 记录,标出镜像落后上游的缺口,安装源可选并写进 profile。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-plugin-upgrader

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:zuwenyin/dsh-plugin-upgrader

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令