From be6ea4bbdd89fd7856f8e9e5b4bb8417a13549b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AB=E6=88=91=E5=B0=8F=E6=9D=A8=E5=90=8C=E5=AD=A6?= <188421097+HunYiSage@users.noreply.github.com> Date: Sun, 27 Sep 2026 23:39:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E5=B8=83=201.1.23=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=8E=89=20#1/#2/#3=20=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E6=AF=8F=E6=AC=A1=20apply=20=E5=8F=A0=E5=8A=A0=EF=BC=88#38=20/?= =?UTF-8?q?=20#42=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为自匹配替换链补上 skipIfMarked,并加 idempotence 回归,避免 autoApplyOnStart 无上限膨胀 system prompt。 Co-authored-by: Cursor --- package.json | 2 +- release-notes.md | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 151396d..08755b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-purge", - "version": "1.1.22", + "version": "1.1.23", "description": "DeepSeek Harness 网络安全红队工具:本机官方 Harness 受控评测与清洗,不同模型可换不同提示词;默认提示词面向国模「小码酱」。求 Star ⭐", "type": "module", "main": "lib/index.js", diff --git a/release-notes.md b/release-notes.md index 6950d48..1de1eb6 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,3 +1,19 @@ +# 1.1.23 + +## 中文 + +- **修复 [#38](https://github.com/YuJunZhiXue/dsh-purge/issues/38)**:`#1`/`#2`/`#3` 提示词补丁每次 `apply` 叠加约 +841 字符、永不收敛。 +- **原因**:替换产物仍以前一版文本为前缀,且未设 `skipIfMarked`,`autoApplyOnStart` 每轮都会再写一层。 +- **修复**:为 `#1`/`#2`/`#3` 补 `skipIfMarked: true`([#42](https://github.com/YuJunZhiXue/dsh-purge/pull/42)),并加 `npm run test:idempotence` 回归。 +- 已膨胀的宿主文件不会自动缩回,需还原 `.dshpurge.bak` 或重装 dsh 后再 apply。 + +## English + +- **Fix [#38](https://github.com/YuJunZhiXue/dsh-purge/issues/38)**: prompt patches `#1`/`#2`/`#3` grew by ~+841 chars on every `apply` and never converged. +- **Cause**: replacement text still starts with the previous pattern, and `skipIfMarked` was missing, so `autoApplyOnStart` rewrote every boot. +- **Fix**: set `skipIfMarked: true` on `#1`/`#2`/`#3` ([#42](https://github.com/YuJunZhiXue/dsh-purge/pull/42)); add `npm run test:idempotence`. +- Already-bloated host files are not auto-shrunk — restore `.dshpurge.bak` or reinstall dsh, then apply again. + # 1.1.22 ## 中文