onewilk/dsh-updater0

dsh-updater

DeepSeek Harness 更新检查插件:定时检查新版本,logo 右上角 NEW 角标提醒,并在设置中提供「关于」Tab(版本信息、手动检查、GitHub 加速开关、升级指引)。

包名
dsh-updater
版本
1.0.0
许可证
MIT
最近更新
2026年8月19日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:onewilk/dsh-updater

若使用 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-plugin topic,用于插件被发现 / 收录。

  • dsh.bundle.patch:host 半(lib/index.js,注册 /plugins/dsh-updater/* 路由)通过 cordis.patch.ymlinsert 自动加载,dsh plugin add 安装后自动加入 bundles 层。
  • dsh.client:client 半(lib/client.js,关于 Tab / NEW 角标 / toast)由 DSH 客户端模块系统按 platforminject 自动发现并注入。

目录结构

.
├── 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

MIT


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|config routes, runs the scheduled check (npm registry as the version source, ungh.cc mirror / gh-proxy as changelog fallbacks), and persists the acceleration toggle.
  • Client half (lib/client.js): the "About" settings tab, the fixed NEW logo 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,重启后保留。