arvin-yd/dsh-update-notifier ↗★ 1
dsh-update-notifier
Red-dot update checker for DeepSeek Harness: warns in the sidebar footer when a newer @deepseek-ai/dsh release exists on npm.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:arvin-yd/dsh-update-notifier说明文档
阅读完整 README ↗dsh-update-notifier
DeepSeek Harness(dsh)的社区更新提醒插件。
当 npm 上 @deepseek-ai/dsh 的 latest
版本高于你的本地安装版本时,侧边栏左下角图标亮起红点。点击弹出面板:
当前版本 → 最新版本、上次检查时间,以及 [打开 npm 页面] [忽略此版本] [稍后再说] [立即检查]。
社区插件,非 DeepSeek 官方产品。
原理
- 服务端(
src/index.js):启动时解析本地 DSH 版本;默认启动 10 秒后首次检查 npm registry,之后每 6 小时一次;结果缓存在GET /dsh-update-check(可选webServer服务,headless 组合不受影响)。 - 浏览器端(
client/client.js):注册sidebar.footer.action插槽,每 5 分钟轮询一次 (切回标签页立即刷新)。"忽略此版本"存于localStorage,直到出现更高版本才再次提醒; "稍后再说"仅隐藏本次,下一次新检查结果出现时恢复。
安装
dsh plugin --profile web add dsh-update-notifier
配置
默认值在 cordis.patch.yml;覆盖写进 $DSH_HOME/profiles/web/cordis.patch.yml:
- id: dsh-update-notifier
config:
checkIntervalMs: 21600000 # 服务端复查间隔(默认 6 小时)
timeoutMs: 5000 # registry 请求超时(毫秒)
开发
pnpm install
pnpm test
许可证
MIT