MarecGents/deepseek-harness-hub ↗★ 3

@marecgents/dsh-hub

DeepSeek Harness desktop hub — Tauri 2.x shell + dsh web plugin layer. This npm package ships the plugin half (client UI + HTTP routes + cordis.patch.yml); the desktop shell ships as the NSIS installer (see build/). 适合想要开箱即用桌面应用体验的用户,内置私有Node环境且无需系统预装。

Package
@marecgents/dsh-hub
Compatibility
Unverified
Harness peer range
^0.1.2-rc.1
Cordis peer range
^4.0.2
Version
0.1.6
License
MIT
Last updated
Sep 25, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MarecGents/deepseek-harness-hub

安装与使用

方式一:安装发布版(推荐,dev-v2 Tauri-only)

桌面壳为 Tauri 原生应用,安装 = 运行 NSIS 安装器(build//DeepSeek Harness Hub__x64-setup.exe,或按 BUILD.md 自编译):

  • 安装即用(M5 闭环):安装期自动联网下载私有 Node(多源测速选最快)并安装 @deepseek-ai/dsh + @marecgents/dsh-hub + pnpm 到 \dsh-hub-win\(私有环境,不污染系统)——无需系统预装 Node。进度见安装器详情页 + \dsh-hub-bootstrap.log。
  • 首启:窗口显示「启动中」占位页 → 后台启动私有 dsh web → READY 后自动导航进 dsh UI(不弹浏览器)。
  • 卸载清理(rc.9 第五次打包修复):卸载时 PREUNINSTALL 先执行随包安装的 _up_\scripts\uninstall-cleanup.ps1(此时安装目录尚在),从 $DSH_HOME/profiles/* 的 dsh.profile.bundles 过滤 dsh-hub 与 @dsh-external/* 插件、删除对应 junction(只删链接点不递归目标、悬空可删)并清除空 @dsh-external 目录,JSON 无 BOM 回写;旧安装(无此脚本)由 POSTUNINSTALL 单行兜底做等价清理。只清 dsh-hub 自有条目,.dsh 本体及用户数据绝不删——修复根因:dsh 对无法解析的 bundle 直接抛错,卸载残留(bundles@dsh-external + 指向已删安装目录的悬空 junction)会导致裸 dsh web 启动即崩、重装卡在「启动中」无法完成 Init。
  • 插件层 npm 包 @marecgents/dsh-hub 仍随 dsh 生态发布(见「发布」),postinstall 仅做 dsh / pnpm 依赖检查。
  • WebView2 时代已移除:npm i -g launcher 安装链路、koffi 原生依赖、postinstall 创建的桌面快捷方式与 dsh-hub 命令 shim。

方式二:手动 / 从源码安装

git clone https://github.com/MarecGents/deepseek-harness-hub.git
cd deepseek-harness-hub
npm install
npm run build
npm run build:client

开发模式启动(dev-v2 Tauri-only):

npm run tauri:dev          # = cargo tauri dev:Rust 壳 + dsh web sidecar 本地联动

测试用隔离 DSH_HOME(如 DSH_HOME=)验证,避免污染正式运行数据;dev 实例可与已运行的 3080 端口 dsh web 并存。 依赖 dsh 的 Web 端(dsh web)已可用。本项目作为 dsh 插件通过 cordis.patch.yml 挂载,不修改 dsh 源码。

方式三:构建本地安装器(自编译,等同发布安装)

从源码构建 NSIS 安装器——产物与发布安装器一致。推荐一键打包(自动检测工具链位置,位置无关,见 BUILD.md):

npm run build:installer    # 一键打包:检测 Node/npm/cargo/rustup → MSVC(vswhere→vcvars64.bat) 或 GNU(gcc) → 完整性预检(源/资源/资产/通配目录)→ build → build:client → host 依赖守卫 → lib 零漂移 → tauri:build → 复制到 build// + SHA256 校验
npm run tauri:build        # 仅打包(需 vcvars/MSVC 环境或 GNU 配置,见 BUILD.md)