mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 12:50:23 +08:00
新增 hide-console.js:强制 windowsHide,并钉进真正的 dsh/lib/bin.js
silenceCmdFlash():应用/启动/重启前统一收尾(hide + Doctor stub + mnemon) 应用完成条件:complete 必须含 CMD 无感成功 重启只走 node + bin.js,不走 dsh.cmd 发消息闪 CMD silenceMnemonGitFlash():把 mnemon 每轮 git branch 改成读 .git/HEAD(点应用会自动钉到现场 node_modules) 提示词注入 identity.js:把 prompt-inject.md 折进 deployment:persona,梁神 phase-1 也能吃到 梁神白名单保留 dsh-purge*(现场 patch + core #29) 空 prompt-inject 不再自动灌默认 RP;有内容才注入
This commit is contained in:
1 parent
326acb6d56
commit
8f1c71024e
11 files changed
+1085
-152
No files matched your search
@@ -75,7 +75,8 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"restarting": "重启中…",
|
||||
"restart.timeout": "超时,请刷新",
|
||||
"restart.fail": "失败: {error}",
|
||||
"restart.confirm": "需要重启后生效。",
|
||||
"restart.confirm": "清洗已完成,重启后生效。",
|
||||
"restart.incomplete": "清洗未完成(失败 {failed} 项或 CMD 无感未钉入),请先处理完再重启。",
|
||||
"restart.later": "以后",
|
||||
"group.prompt": "提示词",
|
||||
"group.code": "代码",
|
||||
@@ -163,7 +164,8 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"restarting": "Restarting…",
|
||||
"restart.timeout": "Timed out; refresh",
|
||||
"restart.fail": "Failed: {error}",
|
||||
"restart.confirm": "Restart to take effect.",
|
||||
"restart.confirm": "Apply finished (incl. silent CMD). Restart to take effect.",
|
||||
"restart.incomplete": "Apply incomplete ({failed} failed or CMD silence not pinned). Fix first, then restart.",
|
||||
"restart.later": "Later",
|
||||
"group.prompt": "Prompt",
|
||||
"group.code": "Code",
|
||||
@@ -409,8 +411,21 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
setOverride(d.override_content);
|
||||
setOverrideLoaded(true);
|
||||
}
|
||||
if (action === "apply" && d.complete === false) {
|
||||
const flashHint =
|
||||
d.cmd_flash && d.cmd_flash.ok === false
|
||||
? ` cmd-flash=${d.cmd_flash.entry || "fail"}`
|
||||
: "";
|
||||
setNotice({
|
||||
kind: "error",
|
||||
text: tr("restart.incomplete", { failed: String(d.failed || 0) }) + flashHint,
|
||||
});
|
||||
loadAll();
|
||||
return;
|
||||
}
|
||||
setNotice({ kind: "ok", text: tr("ok.done") });
|
||||
loadAll();
|
||||
// Only after apply finished successfully — never restart mid-apply.
|
||||
if (action === "apply") setAskRestart(true);
|
||||
} else {
|
||||
setNotice({ kind: "error", text: tr("err.action", { action: label, error: d.error || "" }) });
|
||||
|
||||
Reference in new issue
Block a user