fix: 发布 1.1.52,禁自动官方更新交接与插件自更新,密封态自愈,重封默认提示词

Co-authored-by: Cursor <cursoragent@cursor.com>

#57 应用/重启不再跑官方 installer;applied 戳在 sealed/丢根时触发 reapply;启动永不自动更新插件;默认提示词重新加密写入 asset-table。
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-03 01:15:37 +08:00
1 parent a18fefa2a9
commit 5ef028fc27
11 files changed
+308 -308

No files matched your search

+24 -1
View File
@@ -52,8 +52,31 @@ export function stampMatches(stamp, version, rev) {
return true;
}
/** stamp 对上了,但宿主被官方更新打回 sealed / 找不到插件根时仍算未对齐(#57)。 */
export function hostStillHasAppliedPatches() {
try {
if (core.desktopAsarStillSealed()) return false;
} catch {
/* 非桌面面 */
}
try {
if (!core.findAiBase()) return false;
} catch {
return false;
}
return true;
}
export function patchesMatchInstall() {
return stampMatches(readAppliedStamp(), pluginVersion(), installedRev());
if (!stampMatches(readAppliedStamp(), pluginVersion(), installedRev())) return false;
return hostStillHasAppliedPatches();
}
/** 有 applied 戳但宿主已密封/丢根:面板提示「补丁已丢失」。 */
export function patchesLostAfterHostReset() {
const stamp = readAppliedStamp();
if (!stamp?.version || !stamp?.sha) return false;
return !hostStillHasAppliedPatches();
}
function writeAppliedStamp(sha) {