deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness(DSH)官方更新插件:在设置 → DSH 更新页一键检查并更新官方 DSH。自动后台检查 + 导航红点提醒。
它看的是当前正在跑的那个 DSH 进程怎么安装的,而不是磁盘上碰巧有没有一份源码:
| 当前进程 | 检查 | 一键更新 |
|---|---|---|
npx @deepseek-ai/dsh web |
npm registry 上的 @deepseek-ai/dsh |
更新 npx 缓存里的官方包,然后重启 |
npm i -g @deepseek-ai/dsh / 全局 dsh web |
同上 | npm install -g @deepseek-ai/dsh@<官方版本>,然后重启 |
git clone 后 pnpm dsh web |
git fetch 对比官方远端 |
git pull --ff-only |
Mac / Windows 同一套逻辑。本机另有一份 ~/deepseek-harness 但进程其实是 npx/全局 npm 时,不会去 git pull 那份源码。
git fetch;npm 查询官方 registry(失败则试 npmmirror)package.json 版本号@deepseek-ai/dsh 和已校验的版本号前置:已安装 DSH(dsh web 或 npx @deepseek-ai/dsh web 可运行)。npm 通道需要能访问 npm registry;源码通道需要本机 git 和官方 clone。
# 从 GitHub 安装
dsh plugin --profile web add github:xingyingyuzhui/dsh-updater-ui
装完重启 DSH,然后打开 设置 → DSH 更新。
打开 设置 → DSH 更新:
npx 用户也可直接:
npx --yes @deepseek-ai/dsh@latest web
仅当当前进程来自官方源码 clone时才会用 git。查找顺序:
@deepseek-ai/dsh-root 目录repo / 环境变量 DSH_REPO~/deepseek-harness~/.dsh/deepseek-harness~/.dsh 是设置、插件和会话数据,不能 git pull 当官方源码。
插件会校验该目录:
origin 必须是 deepseek-ai/deepseek-harness校验不通过会拒绝操作,避免误 pull 到 /opt/homebrew 等无关仓库。
https://registry.npmjs.org/@deepseek-ai/dsh/latest,失败则试 https://registry.npmmirror.comDSH_NPM_REGISTRY 或 npm_config_registry 指定 registry--prefix(Homebrew node@24 的 Cellar 和 npm prefix -g 不是同一处)。装完会回读该路径的 package.json,版本没变则报失败,不假装成功node.exe 直接跑同目录的 node_modules/npm/bin/npm-cli.js,不 spawn npm.cmd。找不到 JS 入口时才退回 cmd.exe:整条命令外层再包一层引号,并用 windowsVerbatimArguments,避免 Node 把引号转成 \"~/.dsh 做 npm install,也不会安装官方包以外的任何名字X-DSH-Updater: 1(跨站表单/图片无法触发)Origin,只允许 http://127.0.0.1 / http://localhost--ff-only@deepseek-ai/dsh,版本号须匹配安全字符集dsh plugin --profile web remove dsh-updater-ui
pnpm install # 无依赖,仅占位
pnpm test # 基础契约测试
# 本地验证:dsh plugin --profile web add link:/path/to/dsh-updater-ui
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。