fix: Desktop 密封 host-commands/bin 只清理不注入,杜绝 dsh.cmd.dshpurge.bak 触发恢复模式

anywhere-labs/dsh-desktop 在插件加载前校验 host-commands/<profile>/bin,禁止 sibling 额外文件。现跳过密封目录的 shim 注入/bak 写入,启动与应用时强制外置或删除残留 *.dshpurge.bak,并在 README 写明恢复步骤(issue #9)。
This commit is contained in:
yang committed 2026-09-03 20:56:22 +08:00
1 parent ddf2b7ca0f
commit a91647c459
4 files changed
+78 -34

No files matched your search

+1 -1
View File
@@ -247,7 +247,7 @@ async function handlePurgeCommand(rawInput, config) {
for (const row of scrubbed) lines.push(` ✓ ${row.dir} → ${row.cleaned.join(", ")}`);
}
lines.push("", "全部完成 / All done。重启 dsh 生效 / Restart dsh to take effect.");
lines.push("Desktop: 仍写入 host-commands 启动器;备份改放到 $DSH_HOME/dsh-purge/shim-backups。");
lines.push("Desktop: host-commands 密封目录只清理不注入;bak 禁止写进 bin(issue #9)。");
return { kind: "success", text: lines.join("\n") };
}
case "revert":