fix: 发布 1.1.57,应用后挂上提示词并让 Messages 使用当前系统提示

官方其余模式与标准一样清拦截。演练授权按本机目录保留,卸载成功后才清。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-04 13:06:19 +08:00
1 parent 54351cff82
commit 2c07aafead
12 files changed
+694 -271

No files matched your search

+18
View File
@@ -5,6 +5,7 @@ import * as core from "./core.js";
import * as hostctl from "./host.js";
import * as rules from "./rules.js";
import * as updater from "./update.js";
import { clearDrillGrant } from "./drill-grant.js";
export function wasApplied(state) {
if (!state) return false;
@@ -258,6 +259,23 @@ export async function uninstallPurge() {
const unreg = unregisterProfiles(profiles);
report.stripped = unreg.stripped;
report.errors.push(...unreg.errors.map((x) => `${x.profile}: ${x.error}`));
if (unreg.errors.length) {
report.ok = false;
report.needRestart = false;
report.cleanup = [];
report.drillGrantCleared = false;
return report;
}
try {
report.drillGrantCleared = clearDrillGrant(dshHome);
} catch (e) {
report.ok = false;
report.needRestart = false;
report.cleanup = [];
report.errors.push(`clear drill grant: ${e.message || e}`);
return report;
}
report.cleanup = collectCleanupDirs(profiles, dshHome);
return report;