dsh-update-notifier
其他 活跃维护

dsh-update-notifier

xia-sc/dsh-update-notifier

启动时自动比对@deepseek-ai/dsh的npm包版本与GitHub发行标签,交叉验证后可更新版本提示,无冗余依赖,轻量接入使用流程。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
18 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xia-sc/dsh-update-notifier
git clone https://github.com/xia-sc/dsh-update-notifier.git
git clone git@github.com:xia-sc/dsh-update-notifier.git
README.md main

dsh-update-notifier

dsh web 启动时自动检测 @deepseek-ai/dsh 是否有可更新版本。

功能

  • 启动后 5 秒首检 + 每 6 小时轮询 + 手动“立即检查”
  • 对比本地 package.json#version 与 registry.npmmirror.com(回落 registry.npmjs.org)的 dist-tags.latest / next,semver 兼容 x.y.z-rc.n
  • 有更新时:
    • shell.overlay 右上角横幅(可关闭,localStorage 按版本记忆 dismiss,下次新版本自动复现)
    • 横幅关闭后,conversation.input.dock 输入框上方显示轻量胶囊,点击可重新展开
    • 横幅内提供 npm i -g @deepseek-ai/dsh@{latest|next} 一键复制 + Release notes 链接

结构

dsh-update-notifier/
├── package.json
├── cordis.patch.yml
└── lib/
    ├── index.js   # host: /dsh-update-rpc getStatus/checkNow
    └── client.js  # client: overlay banner + dock pill

安装

dsh plugin --profile web add https://github.com/xia-sc/dsh-update-notifier
# 重启 dsh web 生效

验证:

dsh --profile web --dump-config  # 应含 update-notifier
# 浏览器 GET http://127.0.0.1:3080/plugins/dsh-update-notifier/client.js 200
# RPC: POST /dsh-update-rpc/getStatus  {"type":"client-request","rpcId":"1","method":"getStatus","payload":{"args":{}}}