DeepSeek Harness 插件

m1452700576/dsh-app-updater

Star 数 ★ 0 分类 工具与能力 收录于 2026-09-01

侧边栏按钮:启动时自动检查DSH更新并显示红点提示,支持忽略特定版本、预览更新日志,带实时下载进度、国内镜像加速和下载安全校验。

安装

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:m1452700576/dsh-app-updater

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

A DSH web plugin: a sidebar button (icon only) that checks whether DSH has a newer release and, when one exists, auto-downloads the installer and opens it - with a live progress bar and a minimizable panel.

Features

  • Sidebar icon-only button (tooltip "Check DSH update"), red dot when new version found.
  • Probes known desktop-packaging repos (or your own githubRepo) for a newer release that ships a macOS installer (.dmg/.pkg/.zip).
  • Auto-downloads the installer to ~/Downloads (or downloadsDir) and runs open.
  • Live download progress (streaming bytes + percent), indeterminate bar when unknown.
  • Panel can be minimized to a floating bubble while downloading.
  • Supports multiple update sources (GitHub, npm).
  • Security checks: confirm before download, private IP blocking, SHA-256 checksum.
  • GitHub mirror support for fast downloads in mainland China.

Installation

Method 1: Direct Install (Recommended)

dsh plugin --profile web add github:m1452700576/dsh-app-updater

Method 2: Local Development

# Clone the repository
git clone https://github.com/m1452700576/dsh-app-updater.git
cd dsh-app-updater

# Install in your DSH profile
dsh plugin --profile web add link:$PWD

Method 3: Manual Installation

  1. Clone or download this repository
  2. Copy the folder to your DSH profile:
    cp -r . ~/.dsh/profiles/web/node_modules/@local/dsh-app-updater
    
  3. Add to your profile's package.json:
    {
      "dependencies": {
        "@local/dsh-app-updater": "link:./dsh-app-updater"
      },
      "dsh": {
        "profile": {
          "bundles": ["@local/dsh-app-updater"]
        }
      }
    }
    
  4. Restart DSH completely

Configuration

Configure in cordis.patch.yml:

- insert:
    - id: dsh-app-updater
      name: '@local/dsh-app-updater'
      config:
        sourceType: github
        githubRepo: m1452700576/dsh-app-updater
        downloadsDir: ''

Configuration Options

Option Type Default Description
sourceType string github Update source type (github or npm)
githubRepo string steven-kid/deepseek-harness-desktop GitHub repository to check for updates
downloadsDir string ~/Downloads Directory to save downloaded installers
mirrors array [] GitHub mirror URLs for faster downloads in China

Usage

  1. After installation, look for the update icon in the DSH sidebar
  2. Click the icon to check for updates
  3. If an update is available, click "Download" to start the download
  4. The download progress will be shown in real-time
  5. Once downloaded, the installer will open automatically

API Routes (Loopback Only)

  • GET /api/dsh-update/status - Check current version and available updates
  • POST /api/dsh-update/download - Download the latest update
  • GET /api/dsh-update/progress - Get download progress

Troubleshooting

Plugin not appearing

  • Ensure DSH is completely restarted after installation
  • Check that the plugin is listed in your profile's package.json

Update check fails

  • Verify your internet connection
  • Check if the GitHub repository is accessible
  • Try using a mirror if you're in mainland China

Download fails

  • Ensure you have enough disk space
  • Check if the download directory is writable
  • Verify the installer URL is accessible

Development

# Clone the repository
git clone https://github.com/m1452700576/dsh-app-updater.git
cd dsh-app-updater

# Install dependencies (none currently)
npm install

# Test the plugin locally
dsh plugin --profile web add link:$PWD

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

Apache-2.0

Support

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。