mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:00:22 +08:00
fix: 发布 1.1.44,提示词按模式注入并让子代理吃到同一份。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
0f91546cc0
commit
c29d78b291
10 files changed
+816
-221
No files matched your search
+8
-4
@@ -84,9 +84,10 @@ export async function reapplyInstalled(options = {}) {
|
||||
} catch (e) {
|
||||
return { ok: false, error: String(e && e.message ? e.message : e) };
|
||||
}
|
||||
if (!aiBase || options.forceExtract === true) {
|
||||
const sealed = core.sealedAsarHandoff();
|
||||
if (!aiBase || sealed) {
|
||||
try {
|
||||
const opened = await core.openSealedDesktopHost({ forceExtract: options.forceExtract === true });
|
||||
const opened = await core.openSealedDesktopHost({ upgrade: options.upgrade === true });
|
||||
if (opened.aiBase) aiBase = opened.aiBase;
|
||||
if (opened.swapAsar) handoff = opened;
|
||||
if (opened.extracted) freshExtract = opened;
|
||||
@@ -94,7 +95,7 @@ export async function reapplyInstalled(options = {}) {
|
||||
return { ok: false, error: String(e && e.message ? e.message : e) };
|
||||
}
|
||||
} else {
|
||||
handoff = core.sealedAsarHandoff();
|
||||
core.rememberUnpackedArchive();
|
||||
}
|
||||
if (!aiBase) return { ok: false, error: core.missingAiBaseMessage() };
|
||||
// 刚解开的是官方原件。已经在用的目录仍先还原再按这一版重打。
|
||||
@@ -121,7 +122,10 @@ export async function reapplyInstalled(options = {}) {
|
||||
cmdFlashOk: flash.ok === true,
|
||||
};
|
||||
}
|
||||
if (clean) writeAppliedStamp(installedRev());
|
||||
if (clean) {
|
||||
writeAppliedStamp(installedRev());
|
||||
if (freshExtract?.archive) core.writeUnpackedAsarStamp(freshExtract.archive);
|
||||
}
|
||||
let renamed = false;
|
||||
if (clean && handoff?.asar && options.scheduleSwap !== false) {
|
||||
const swapped = core.scheduleSealedDesktopRestart(handoff);
|
||||
|
||||
Reference in new issue
Block a user