mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:10:22 +08:00
fix: 发布 1.1.67,#85/#84 + 启动种子 + 85 项清单一次性修复
- #85 continue 续跑加 failStreak 阈值;refundContinue 不清 lastContinueSeq,连错 3 次放弃 - #84 region gate denialStream 单批 text-chunks 带 .length,不再卡宿主 UI - 启动即种子:$DSH_HOME/prompt-inject.md 为空/缺失自动写加密默认稿,用户改过的不动 - Windows 重启脚本:pid+random 命名 + 直接 wscript.exe //B,不再 /IM 杀全名 - 官方 CLI shim 原子写 + .dsh-purge.bak 可回退 - WScript clean 判定两 null 放行,首装不卡;探测缓存不缓存空结果 - scheduleAsarRenameWhenIdle 的 .rename-pending 锁时钟回拨/30min 失效自动清 - 三处 execFileSync 加 maxBuffer: 8MB,大结果不再 ENOBUFS 静默 - net-scope / identity / hooks-deny / extract-asar / client.js / core.js / update.js / skills.js / refusal-recover / rewind / rules / reapply 等共 85 项修复
This commit is contained in:
1 parent
3df4f489b1
commit
d26e69a4fa
18 files changed
+1153
-403
No files matched your search
+9
-4
@@ -279,8 +279,10 @@ export async function reapplyInstalled(options = {}) {
|
||||
const summary = core.summarizeApplyReport(multi.report);
|
||||
const clean =
|
||||
summary.failed.length === 0 &&
|
||||
flash.ok === true &&
|
||||
(core.allPatchHostsWritten(multi.hosts) || core.hostCleanMarkersPresent(aiBase));
|
||||
if (clean && flash.ok !== true) {
|
||||
console.warn("[dsh-purge] cmd flash patch did not apply cleanly; clean flow continues, UI shows cmdFlashOk=false");
|
||||
}
|
||||
if (!clean && freshExtract) {
|
||||
const restored = core.restoreSealedExtract(freshExtract.appDir, freshExtract.prev);
|
||||
return {
|
||||
@@ -300,9 +302,12 @@ export async function reapplyInstalled(options = {}) {
|
||||
markPatchesApplied(installedRev() || undefined);
|
||||
if (freshExtract?.archive) core.writeUnpackedAsarStamp(freshExtract.archive);
|
||||
try {
|
||||
await core.installOverride(core.findDshHome(), false);
|
||||
} catch {
|
||||
// 落下 prompt-inject.md 失败不撤销补丁结果
|
||||
const seed = core.seedPromptInjectAtBoot(core.findDshHome());
|
||||
if (seed && seed.action === "error") {
|
||||
console.warn("[dsh-purge] seed prompt-inject failed:", seed.reason);
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn("[dsh-purge] seed prompt-inject exception:", String(e && e.message ? e.message : e));
|
||||
}
|
||||
}
|
||||
let renamed = false;
|
||||
|
||||
Reference in new issue
Block a user