mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 05:20:22 +08:00
为自匹配替换链补上 skipIfMarked,并加 idempotence 回归,避免 autoApplyOnStart 无上限膨胀 system prompt。 Co-authored-by: Cursor <cursoragent@cursor.com>
14 KiB
14 KiB
1.1.23
中文
- 修复 #38:
#1/#2/#3提示词补丁每次apply叠加约 +841 字符、永不收敛。 - 原因:替换产物仍以前一版文本为前缀,且未设
skipIfMarked,autoApplyOnStart每轮都会再写一层。 - 修复:为
#1/#2/#3补skipIfMarked: true(#42),并加npm run test:idempotence回归。 - 已膨胀的宿主文件不会自动缩回,需还原
.dshpurge.bak或重装 dsh 后再 apply。
English
- Fix #38: prompt patches
#1/#2/#3grew by ~+841 chars on everyapplyand never converged. - Cause: replacement text still starts with the previous pattern, and
skipIfMarkedwas missing, soautoApplyOnStartrewrote every boot. - Fix: set
skipIfMarked: trueon#1/#2/#3(#42); addnpm run test:idempotence. - Already-bloated host files are not auto-shrunk — restore
.dshpurge.bakor reinstall dsh, then apply again.
1.1.22
中文
- 修复官方桌面点「应用」报 ENOENT。
app.asar还在时,新建dsh-purge-child-process-hide.mjs会失败,路径被写成resources\app.asar\...\dsh-purge-child-process-hide.mjs,补丁停在待应用。 - 原因:官方客户端还带着
app.asar时,Electron 会把resources\app映射进这个归档。归档里没有的新文件,用普通文件接口去创建就会 ENOENT。 - 两种写法都保留。归档还在时,改写真实磁盘上的
resources\app。没有app.asar时仍用原来的node:fs,包括 Web、社区桌面,以及官方包已经解开并把归档挪成app.asar.bak的情况。 - 安装目录不写死盘符。Web 和社区桌面的应用、重启保持原样。宿主仍对准 dsh 0.1.7-rc.2。
English
- Fixes ENOENT when Apply runs on the official desktop. While
app.asaris still present, creatingdsh-purge-child-process-hide.mjsfailed. The path was rewritten toresources\app.asar\...\dsh-purge-child-process-hide.mjs, and patches stayed pending. - Cause: with the archive still in place, Electron maps
resources\appintoapp.asar. Creating a file that is not already in the archive through the normal file API throws ENOENT. - Both write paths stay. If the archive is still there, files are written on the real
resources\appdirectory. If there is noapp.asar, the previousnode:fspath is unchanged. That covers Web, community desktop, and an official install that has already been unpacked and had the archive moved toapp.asar.bak. - Install paths are not pinned to a drive letter. Web and community desktop keep their existing Apply and restart. The host target remains dsh 0.1.7-rc.2.
1.1.21
中文
- 修复必需补丁失败 #43、#9、#15、#23、#42。点「应用」不再因为这 5 条报「清洗未完成」。提示词本来就会写入;这 5 条没写上时,界面却把整次应用判失败,看起来像插件失效。
- 原因:上级文件夹名叫 DeepSeek Harness 时,整棵目录被当成官方桌面。Web 的 npm 包因此被排除,这 5 条对得上的原文也没写进去。安装路径不写死盘符。现在只有旁边真有桌面程序,或路径在该安装的
resources/app里,才算桌面安装。Web、社区桌面、官方桌面各自打自己的包。 - #43:去掉 Web 四个内置预设(standard、ptc、cordis、minimal)里的身份句。没写上时,预设里的原身份句会留在注入旁边。
- #9:审批请求自动放行。
- #15:沙箱
confine不再包一层,命令按原样执行。 - #23:子代理默认深度从 1 提到 10。
- #42:给设置服务补回旧的
register/get,还在调旧接口的插件才能加载。 - 文件在、但这份原文不在当前版本里时,显示跳过,不再把整次应用判失败。原文还在时仍会写上。
English
- Fixes required-patch failures #43, #9, #15, #23, and #42. Apply no longer reports the cleanse as incomplete because of these five. The prompt was already written; the failure made the plugin look dead.
- Cause: a parent folder named DeepSeek Harness was treated as the official desktop install, so the Web npm packages were excluded and these five were never written. Install paths are not pinned to a drive letter. A tree counts as the desktop install only when the desktop executable is beside it, or the path is under that install's
resources/app. Web, community desktop, and official desktop each patch their own packages. - #43: strips the identity sentence from the four built-in Web presets (standard, ptc, cordis, minimal). Left in place, that sentence stays next to the inject.
- #9: approval requests are auto-granted.
- #15: sandbox
confineno longer wraps the command. - #23: subagent default depth moves from 1 to 10.
- #42: the settings service gets the old
register/getmethods back, so plugins that still call them can load. - When the file exists but this version does not contain that original text, the row shows skipped and Apply still completes. Text that is present is still written.
1.1.20
中文
- 宿主版本:当前对准 dsh 0.1.7-rc.2。上一档 0.1.7-rc.1(含
0.1.7-rc.1.20260924.1)的旧锚点仍可用。 - 官方桌面升级:已经下载的新版本会在重启,或在应用里点安装并重启时真正安装,然后解开新版本并重新打补丁。没有新版本时,重启仍是关掉再打开当前客户端。安装目录不写死盘符。
- 补丁:#14、#35 跟上 rc.2 的升级写法,不再报必需补丁失败。#29、#33、#36 的新提示句也会打上。
- Web 和社区版 DSH Desktop 的应用、重启保持原样。
English
- Host version: current target is dsh 0.1.7-rc.2. Anchors for the previous target, 0.1.7-rc.1 (including
0.1.7-rc.1.20260924.1), still match. - Official desktop upgrade: a downloaded update installs on Restart, or on the in-app install-and-restart action, then the new build is unpacked and patched. With no pending update, Restart still closes and reopens the current client. Install paths are not pinned to a drive letter.
- Patches: #14 and #35 match the rc.2 escalation text, so Apply no longer fails those required patches. #29, #33, and #36 follow the new prompt wording.
- Web and community DSH Desktop keep their existing Apply and restart.
1.1.19
中文
- 官方桌面 EXE:支持官方 DeepSeek Harness。点「应用」解开
app.asar并补上原生模块,再点「重启」,客户端自己关掉并重新打开。Web 和社区版 DSH Desktop 的应用、重启保持原样。 - 重启:官方客户端退出不再被外壳当成崩溃,也不会留下后台 PowerShell。重启脚本不再调用 Windows 脚本宿主没有的
toISOString,避免弹出运行时错误。新进程不再继承ELECTRON_RUN_AS_NODE,否则会刚打开就退出。 - 更新:换版本或回退时,按落地的那一版自动还原再应用,不必每次手动先还原再应用再重启。
- 补丁列表:宿主已经自带
dsh-web-fetch-http时,不再显示一条永远跳过的 #20。安装目录不再写死盘符。
English
- Official desktop EXE: Apply on official DeepSeek Harness unpacks
app.asar, restores native modules, then Restart closes the client and opens it again. Web and community DSH Desktop keep their existing Apply and restart. - Restart: exiting the official host is no longer treated as a crash, and no PowerShell process is left behind. The helper no longer calls
toISOString, which made Windows Script Host pop a runtime error. The new process does not inheritELECTRON_RUN_AS_NODE, which made it exit immediately. - Updates: switching or rolling back a version restores and reapplies that version's patches without a manual revert first.
- Patch list: hosts that already depend on
dsh-web-fetch-httpno longer show a permanently skipped #20. Install paths are not pinned to a drive letter.
1.1.18
中文
- 重启:点「重启」后旧页面的 token 会失效,只刷新等于打不开。现在会等端口释放(必要时结束旧进程),并按新进程打印的地址打开浏览器。请用新打开的页面,再新开一轮对话。
- 设置:1.1.17 之前若已把
legacyApplyPath叠进dsh-settings,点「应用」会收成一份,提供商目录才能起来。收好之后再重启一次。
English
- Restart: the old page token dies with the process, so a refresh looks like restart did nothing. Restart now frees the port and opens the browser at the new
dsh web:URL. Use that page and start a new chat. - Settings: Apply collapses duplicate
legacyApplyPathleft by earlier 1.1.17 patches sodsh-settingscan load. Restart once after that apply.
1.1.17
中文
- 稳定性:修复设置补丁 #42 在 dsh 0.1.7 上重复插入
legacyApplyPath的问题。此前会导致@deepseek-ai/dsh-settings无法加载、提供商目录报错、mnemon 等插件连锁 pending。现改为skipIfMarked,且不再与官方已自带的legacyApplyPath叠写。 - 工作区强指令:#1/#2 同时识别
WORKSPACE_*与AGENT_*常量名,避免「全局/替换式免责」在旧宿主上显示跳过、应用无效。 - 拒答与软拒:官方
agent-instructions强指令补充本机授权评测与反软拒话术;插件增加固定dsh-purge:rules段(与执行规则一致)。新开会话并重启 dsh 后生效。
English
- Stability: patch #42 no longer stacks duplicate
legacyApplyPathon dsh 0.1.7, which broke@deepseek-ai/dsh-settings, provider catalog loading, and downstream plugins. UsesskipIfMarkedand does not re-insert the helper the official package already ships. - Workspace intros: patches #1/#2 match both
WORKSPACE_*andAGENT_*constant names so rows no longer show Skipped on older installs. - Refusal / soft refusal: stronger official workspace intros plus a fixed
dsh-purge:rulessection. Restart dsh and start a new chat for prompt changes.
1.1.16
中文
- 对准 dsh 0.1.7-rc.1。工作区说明常量改名为
AGENT_INSTRUCTIONS_INTRO,句子没变,补丁跟着改。 - 沙箱
confine()已是async confine(argv, policy, signal),补丁按新函数写。直通行为与上一版相同。 - 子代理深度改到
dsh-subagent,默认从 1 提到 10。深度检查还在。 - 设置服务补回旧的
register/get。dsh-mnemon、dsh-better-reasoning-effort这类还在调旧接口的插件可以继续用。官方describe/update不动。补丁只打一次,不会在启动时重复插入。 - 删掉 0.1.7 里已经对不上的旧条文,包括单独给
dsh-base补dsh-web-fetch-http依赖的那条。官方包已经自带。 - Web 四个内置预设(standard、ptc、cordis、minimal)只清空身份句。工作目录、工具列表、
ptc模式,以及 minimal 的complete: true和includeRuntimeContext: false不动。 complete: true时,prompt-inject.md仍接在这段前面。换宿主版本或旧钩子删段之后,注入不会丢。点「应用」之后仍要再点「重启」,新开一轮对话才进当前会话。dsh-compaction-instant网页端从已删除的settingsScope改到configForms,页面不再停在 Failed to load plugins。- 回退在 0.1.7 上会建出新会话,但界面仍停在旧对话,看起来像没反应。0.1.7 已没有
sessions.open。现在改用uiWorkspace.openSession切到新会话,并把上一句填回输入框。失败原因显示在按钮上。 - README 的赞赏区换成非盈利声明:严禁商业售卖、付费倒卖或黑灰产牟利,仅供技术参考。
English
- Aligned with dsh 0.1.7-rc.1. The workspace-instruction constant is now
AGENT_INSTRUCTIONS_INTRO. The sentence is unchanged, and the patch follows it. - Sandbox
confine()is nowasync confine(argv, policy, signal), and the patch matches that function. Passthrough behavior is the same as the previous release. - Subagent depth lives on
dsh-subagent. The default moves from 1 to 10. The depth check remains. - The settings service again exposes the old
register/getmethods, so plugins such asdsh-mnemonanddsh-better-reasoning-effortkeep working. Officialdescribe/updatestay. The patch applies once and does not insert itself again on startup. - Patch text that no longer exists in 0.1.7 is removed, including the extra
dsh-web-fetch-httpdependency ondsh-base. The official package already depends on it. - The four built-in Web presets (standard, ptc, cordis, minimal) lose only the identity sentence. The working-directory suffix, tool lists,
ptcmode, and minimal'scomplete: trueplusincludeRuntimeContext: falsestay. - When
complete: true,prompt-inject.mdis still prepended to that section. A host upgrade or an older hook that drops the section does not drop the inject. After Apply you still click Restart and start a new chat before it enters the session. - The
dsh-compaction-instantweb client usesconfigFormsinstead of the removedsettingsScope, so the page no longer stops on Failed to load plugins. - Rewind on 0.1.7 created the new session and left the UI on the old chat, so the click looked dead. 0.1.7 has no
sessions.open. The button now opens the new session withuiWorkspace.openSessionand puts the previous user line back in the composer. A failure shows on the button. - The README sponsor block is now a non-profit notice: no commercial resale and no gray-market profit; technical reference only.