dsh-purge 1.1.71-rc2.4 — DeepSeek Harness 0.2.2 适配分支
中文
dsh-purge 1.1.71 的一个小改分支,只做一件事:把补丁表对齐到 DeepSeek Harness 0.2.2 系列。
功能、配置项、展示分组、面板都与 1.1.71-rc2.1 一致,没有新增能力。
支持哪些宿主
| 宿主 | 推荐版本 |
|---|---|
| 0.2.2-rc.3 | 本版(rc2.4) |
| 0.2.2-rc.1 | rc2.4(向后兼容)或 rc2.3 |
| 0.2.1 系列 | 1.1.71-rc2.1 |
rc2.4 采用「只追加、不替换」的兼容层:新锚点追加到已有 replacements 末尾,老宿主先命中老锚点、新锚点静默跳过,所以同一份包在两个宿主上行为一致。
为什么需要它
宿主升到 0.2.2 后,上游做了大量改动:拆包、改缩进、抽函数、改句子、压缩前端 bundle。原版 1.1.71 的 82 条补丁里有 12 条锚点完全撞不上,静默 skipped;另有 14 条目标文件路径失效。打完之后面板是一片红,注入链路也是断的。
本版做了什么
| 类别 | 数量 | 说明 |
|---|---|---|
| 换锚点(0.2.2-rc.1) | 15 条 | #12 #14 #17 #40 #45 #47 #49 #54 #57 #60 #62 #67 #74 #82 #87,原文取自 1.3.9 |
| 重写锚点(0.2.2-rc.1) | 3 条 | #32 #53 #77 —— 1.3.9 放弃了,这里按 0.2.2 原文补上 |
| 追加锚点(0.2.2-rc.3) | 4 条 | #13 #18 #35 #62 —— rc.3 改了异常类型、删了分支、改用辅助函数 |
| 退役 | 3 条 | #80(minimal 预设自带完整工具行)、#56 #77(宿主已删除 rewind 功能) |
| 红队预设 | 删死行 | list-agents 子路径在 0.2.2 被删,留着会让整个预设 registered-broken |
补丁的 id、顺序、展示分组、cordis.patch.yml 配置项一个没动。
实测数据
在 app.asar 解包出来的宿主副本上跑真代码:
0.2.2-rc.3 0.2.2-rc.1(回归)
补丁总数 79 79
applyPatches applied 58 applied 58
already 9 already 9
missing_file 7 missing_file 7
na 5 na 5
patchStatus applied 67 applied 67
na 11 na 11
missing_file 1 missing_file 1
两个宿主结果完全一致,说明两代兼容层没有互相干扰。
质量闸:
宿主 1,267 个 JS 基线语法检查 0 失败
打补丁后的 34 个 JS 0 失败
包内 107 个文件全量 node --check 0 失败
tgz 回解包再跑 apply 结果一致,打包无丢失
真机(Windows 11 + DeepSeek Harness 0.2.2-rc.1 时期):宿主 36 个文件带 [dsh-purge] 标记,红队预设 {"ok": true, "phase": "registered", "plugins": 19, "broken": null},注入日志 injectBytes=20964 持续生效。
唯一剩下的 missing_file 是 #71 LIANGSHEN_IDENTITY_LINE —— 宿主上本来就没有 dsh-preset-liangshen 这个包,属正常。
安装
dsh plugin --profile desktop add --ignore-scripts \
https://github.com/devin667/dsh-purge-022/releases/download/v1.1.71-rc2.4/dsh-purge-1.1.71-rc2.4.tgz
或者手动:解包到 ~/.dsh/profiles/desktop/node_modules/dsh-purge,然后
node ~/.dsh/profiles/desktop/node_modules/dsh-purge/scripts/ensure-profile-bundle.mjs
装完重启宿主,在面板点「应用」。
已知限制
#56 #77在 0.2.2-rc.3 上不可用 —— rc.3 已删除 rewind 功能(src/client/locales.ts里回退/撤销/rewind一次都不出现),不是补丁的问题。在 rc.1 / rc.2 上仍然正常。#45 #46 #82 #83 #84要detectSurface()认真实桌面安装位;纯解包树里显示na,属预期。@deepseek-ai/dsh-workflow-worker-thread在 rc.3 上不存在,红队预设里那一行是disabled: true,不影响注册。- macOS 未实测。
界面预览
截图来自上游 1.1.31,面板布局与配置项在 rc2.4 保持不变;截图里的版本号不是本版。
| 面板 | 规则总览 |
|---|---|
![]() |
![]() |
| 设置 | 演练台 |
|---|---|
![]() |
![]() |
文档
- 适配说明 docs/COMPAT-0.2.2.md —— 19 条补丁的锚点前后对照、红队预设 broken 根因与修法
- 变更日志 docs/CHANGELOG.md —— rc2.2 → rc2.3 → rc2.4 的完整变更链
- 发行说明 RELEASE-NOTES-1.1.71-rc2.4.md —— release body 原文
English
A minimal fork of dsh-purge 1.1.71 that aligns the patch table with DeepSeek Harness 0.2.2.
No new capabilities: same patch ids, same order, same display groups, same config keys as 1.1.71-rc2.1.
Supported hosts
| Host | Use |
|---|---|
| 0.2.2-rc.3 | this release (rc2.4) |
| 0.2.2-rc.1 | rc2.4 (backward compatible) or rc2.3 |
| 0.2.1 series | 1.1.71-rc2.1 |
rc2.4 uses an append-only compat layer: new anchors are appended to the existing replacements array. On an older host the original anchor matches first and the new ones are skipped silently — so one package behaves identically on both hosts.
Why
Harness 0.2.2 split packages, changed indentation, extracted functions, reworded prompts, and minified front-end bundles. Against the original 1.1.71, 12 of 82 patches had dead anchors and silently reported skipped, plus 14 patches pointed at files that no longer exist.
What changed
| Kind | Count | Detail |
|---|---|---|
| Re-anchored (0.2.2-rc.1) | 15 | #12 #14 #17 #40 #45 #47 #49 #54 #57 #60 #62 #67 #74 #82 #87 (anchors taken from 1.3.9, MIT) |
| Rewritten (0.2.2-rc.1) | 3 | #32 #53 #77 — dropped by 1.3.9, re-anchored here |
| Appended (0.2.2-rc.3) | 4 | #13 #18 #35 #62 — rc.3 changed exception types, removed a branch, switched to a helper |
| Retired | 3 | #80 (minimal preset ships the full toolset), #56 #77 (rewind removed from the host) |
| Red-team preset | dead rows removed | the list-agents subpath was deleted in 0.2.2; keeping it made the whole preset registered-broken |
Verified
On unpacked 0.2.2-rc.3 and 0.2.2-rc.1 host trees:
patches 79
applyPatches applied 58 / already 9 / missing_file 7 / na 5
patchStatus applied 67 / na 11 / missing_file 1
Identical on both hosts.
1,267 host JS files, baseline syntax check 0 failures
34 patched JS files 0 failures
107 packaged files, full node --check 0 failures
tgz re-extracted and re-applied identical result
Install
dsh plugin --profile desktop add --ignore-scripts \
https://github.com/devin667/dsh-purge-022/releases/download/v1.1.71-rc2.4/dsh-purge-1.1.71-rc2.4.tgz
License
MIT. Upstream: 小杨 (original dsh-purge), 巴里啊啊 (0.2.1-rc.2 compat branch), 555bbbAAA (0.2.2 anchors).
Docs
- docs/COMPAT-0.2.2.md — before/after anchors for all 19 patches, plus the red-team preset
registered-brokenroot cause and fix - docs/CHANGELOG.md — full rc2.2 → rc2.3 → rc2.4 change chain




No comments yet. Be the first to write one.