dsh-updater
DeepSeek Harness 更新检查插件:定时检查新版本,logo 右上角 NEW 角标提醒,并在设置中提供「关于」Tab(版本信息、手动检查、GitHub 加速开关、升级指引)。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:onewilk/dsh-updater说明文档
阅读完整 README ↗若使用 bundle 方式(dsh plugin add)则此步可省略
- insert:
- id: dsh-updater name: 'dsh-updater'
安装或改动后需重启 harness(重新运行 `npx @deepseek-ai/dsh@latest web`)生效。
## 配置
「关于」Tab 内提供 **「GitHub 加速」开关**:
- 开启(默认):GitHub changelog 走 `ungh.cc 镜像 → gh-proxy 拼接 → 直连` 顺序兜底;
- 关闭:仅直连 `api.github.com`。
开关持久化到 `$DSH_HOME/profiles/web/dsh-updater.json`(`{ "proxy": true|false }`),客户端同步到 localStorage,重启后保留。
## 插件标识(便于 DSH 收录)
`package.json` 通过 `dsh` 字段声明自身为 DSH 插件:
```json
"dsh": {
"bundle": { "patch": "./cordis.patch.yml" },
"client": {
"inject": ["@deepseek-ai/dsh-client-runtime"],
"platform": "web"
}
}
本仓库已在 GitHub 添加官方推荐的
dsh-plugintopic,用于插件被发现 / 收录。
dsh.bundle.patch:host 半(lib/index.js,注册/plugins/dsh-updater/*路由)通过cordis.patch.yml的insert自动加载,dsh plugin add安装后自动加入 bundles 层。dsh.client:client 半(lib/client.js,关于 Tab / NEW 角标 / toast)由 DSH 客户端模块系统按platform与inject自动发现并注入。
目录结构
.
├── lib/
│ ├── index.js # host 半:路由、定时检查、版本对比、多源兜底
│ └── client.js # client 半:关于 Tab、NEW 角标、toast、加速开关
├── cordis.patch.yml # bundle patch:加载 host 插件
└── package.json # dsh.bundle + dsh.client 插件标识
开发
node --check lib/index.js # 语法检查 host 半
node --check lib/client.js # 语法检查 client 半
License
English
A DeepSeek Harness plugin that periodically checks for new releases, shows a red NEW badge on the top-left logo, and adds an "About" tab in Settings with version info, manual check, a GitHub acceleration toggle, and upgrade instructions.
- Host half (
lib/index.js): registers/plugins/dsh-updater/status|check|configroutes, runs the scheduled check (npm registry as the version source,ungh.ccmirror /gh-proxyas changelog fallbacks), and persists the acceleration toggle. - Client half (
lib/client.js): the "About" settings tab, the fixedNEWlogo badge (click → open Settings → About), and the one-shot toast.
Install:
dsh plugin --profile web add dsh-updater
## 配置
「关于」Tab 内提供 **「GitHub 加速」开关**:
- 开启(默认):GitHub changelog 走 `ungh.cc 镜像 → gh-proxy 拼接 → 直连` 顺序兜底;
- 关闭:仅直连 `api.github.com`。
开关持久化到 `$DSH_HOME/profiles/web/dsh-updater.json`(`{ "proxy": true|false }`),客户端同步到 localStorage,重启后保留。