
arvin-yd/dsh-update-notifier
30最近提交 2026年8月15日
dsh-update-notifier DSH 插件
该插件静默监控 npm 上 @deepseek-ai/dsh 的最新版本。当本地版本落后时,侧边栏底部出现红点徽章;点击打开模态框,显示版本对比、复制更新命令、忽略或稍后提醒。
如何安装 dsh-update-notifier DSH 插件
dsh plugin --profile web add dsh-update-notifier复制不会执行命令。安装 dsh-update-notifier DSH 插件前请核对仓库和版本。
dsh-update-notifier DSH 插件数据来源
dsh-update-notifier DSH 插件快照日期:2026年8月16日
discovered
dsh-update-notifier DSH 插件能做什么
- 检查 npm registry 上 @deepseek-ai/dsh 的最新稳定版
- 有更新时在侧边栏底部显示红色 StateDot 徽章
- 点击弹出模态框,显示当前版本与最新版本、上次检查时间、复制更新命令、忽略和稍后提醒
- 将忽略的版本号存入 localStorage,直到新版本出现才重新提示
- 可配置检查间隔(默认 6 小时)和 fetch 超时(5 秒)
dsh-update-notifier DSH 插件适合哪些场景
- 无需手动检查 npm,自动获知 DSH 更新
- 快速复制适合你安装模式的更新命令(npx 或全局)
- 暂时忽略某个版本,但仍会在后续版本出现时通知
- 稍后提醒,直到下一次检查结果刷新
- 通过 /dsh-update-check 端点验证当前版本是否为最新
dsh-update-notifier DSH 插件适合谁
- 使用 web profile 并希望自动接收更新通知的 DSH 用户
- 管理多个 DSH 实例、需要追踪版本一致性的开发者
dsh-update-notifier DSH 插件的限制
- 仅适用于 web profile,安装命令需指定 --profile web
- 需要网络访问 registry.npmjs.org;离线或受限网络会显示错误状态
- 首次检查在启动后 10 秒执行,因此通知有短暂延迟
- 社区插件,非 DeepSeek 官方产品
dsh-update-notifier DSH 插件的仓库 README 摘录
以下文字摘自 dsh-update-notifier DSH 插件的上游仓库 arvin-yd/dsh-update-notifier 的 README,版权归原作者,仅作引用。
Red-dot update checker for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`). Shows **nothing at all** while your install is current. When the published [`@deepseek-ai/dsh`](https://www.npmjs.com/package/@deepseek-ai/dsh) `latest` version on npm is newer than your installed one, a DSH-native badge (red `StateDot` + version label) appears in the sidebar footer. Clicking it opens a modal with current → latest, last-checked time, and: copy the update command for your install mode, ignore this version, or snooze. **This is a community plugin, not an official DeepSeek product.** ## How it works - **Host half** (`src/index.js`): resolves your installed DSH version once at startup, polls the npm registry (default: first check 10s after startup, then every 6h), and serves the cached decision on `GET /dsh-update-check` (with an `updateHint` that matches your install mode: `npm exec @deepseek-ai/dsh@latest web` for npx-cache installs, `npm install -g @deepseek-ai/dsh@latest` otherwise) via the optional `webServer` service. Headless compositions are unaffected. - **Browser half** (`client/client.js`): registers a `sidebar.footer.action` slot entry ren
阅读完整 README仓库许可: MIT
dsh-update-notifier DSH 插件常见问题
为什么我看不到任何徽章?
如果你已经是最新版本,插件不会显示任何东西。你可以通过调用 `http://127.0.0.1:<端口>/dsh-update-check` 来验证,如果 `state` 为 `up-to-date`,则不会出现徽章。另外请确保已将插件安装到 `web` profile 并重启了 `dsh web`。
如何使用这个插件更新 DSH?
当出现徽章时,点击它打开模态框。模态框中会显示一个按钮,用于复制适合你安装模式的更新命令(例如 npx 用户使用 `npm exec @deepseek-ai/dsh@latest web`,全局安装用户使用 `npm install -g @deepseek-ai/dsh@latest`)。在终端中运行该命令即可更新。
这个插件会向服务器发送数据吗?
没有遥测或分析。唯一的外部请求是向 npm 公共 registry (`registry.npmjs.org`) 获取最新版本元数据。不会发送任何凭据。浏览器端仅在 `localStorage` 中存储被忽略的版本字符串。
可以在没有 web profile 的情况下使用这个插件吗?
不可以。该插件专为 web profile 设计。安装命令需要 `--profile web`,且 UI 组件(侧边栏底部)仅存在于 web 界面中。无头组合不受影响,但不会显示任何 UI。
如果 npm registry 无法访问怎么办?
插件会显示错误状态。你可以在主机日志中查看 `[dsh-update-notifier] check failed:...`。它会每隔 `checkIntervalMs`(默认 6 小时)自动重试。如果网络较慢,你还可以在配置中增加 `timeoutMs` 的值。