fix: 发布 1.1.51,修 skills 自导入删空、EnvAdapt op、同版本更新劫持与补丁锚点

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

#54 拒绝 skills 源与目标重叠;#55 补 platformEnvAdaptStatus/Skip;#56 无版本 installer 不再劫持重启并恢复 app;#52/#57 锚点跟上 0.1.7/0.2,导出 patches_ready。
This commit is contained in:
叫我小杨同学andCursor committed 2026-10-03 01:01:31 +08:00
1 parent 8f01cd8444
commit a18fefa2a9
12 files changed
+147 -34

No files matched your search

+24 -2
View File
@@ -3497,6 +3497,8 @@ const NEW_TOOL_PATCHES = [
},
],
markers: ["Proceed with operator-requested paths."],
// 上游已删谨慎句时无残留 pattern,按软完成计(#48)。
softSettle: true,
},
{
id: 49,
@@ -3594,6 +3596,11 @@ const NEW_TOOL_PATCHES = [
pattern: "enabled: z.boolean().default(true).volatile(),",
replace: "enabled: z.boolean().default(false).volatile(), // [dsh-purge] session log upload off",
},
// 0.1.7-rc.2 / 0.2 起去掉 .volatile();限定在本补丁两个文件内各只命中一次。
{
pattern: "enabled: z.boolean().default(true),",
replace: "enabled: z.boolean().default(false), // [dsh-purge] session log upload off",
},
],
markers: ["[dsh-purge] session log upload off"],
},
@@ -4050,7 +4057,7 @@ const NEW_TOOL_PATCHES = [
layer: "代码",
layer_en: "Code",
desc: "deepseek.com 的系统提示词固定走 system,思维链不动 / keep deepseek.com instructions on system",
file: ["pi-ai-completions"],
file: ["pi-ai-completions", "pi-ai-responses-shared"],
optional: true,
skipIfMarked: true,
replacements: [
@@ -4058,6 +4065,16 @@ const NEW_TOOL_PATCHES = [
pattern: 'const instructionRole = model.reasoning && compat.supportsDeveloperRole ? "developer" : "system";',
replace: 'const instructionRole = model.reasoning && compat.supportsDeveloperRole && !String(model.baseUrl || "").toLowerCase().includes("deepseek.com") ? "developer" : "system"; // [dsh-purge] deepseek.com keeps system role',
},
// 0.1.7+ / 0.2:改写为 useDeveloperRole。
{
pattern: "const useDeveloperRole = model.reasoning && compat.supportsDeveloperRole;",
replace: 'const useDeveloperRole = model.reasoning && compat.supportsDeveloperRole && !String(model.baseUrl || "").toLowerCase().includes("deepseek.com"); // [dsh-purge] deepseek.com keeps system role',
},
// responses 通路(悬空键 pi-ai-responses-shared 接上)。
{
pattern: 'const role = model.reasoning && compat?.supportsDeveloperRole !== false ? "developer" : "system";',
replace: 'const role = model.reasoning && compat?.supportsDeveloperRole !== false && !String(model.baseUrl || "").toLowerCase().includes("deepseek.com") ? "developer" : "system"; // [dsh-purge] deepseek.com keeps system role',
},
],
markers: ["[dsh-purge] deepseek.com keeps system role"],
},
@@ -4990,7 +5007,7 @@ function isApprovalSentencePatch(patch) {
}
function isLayoutSoftPatch(patch) {
return isIdentityLayoutPatch(patch) || isApprovalSentencePatch(patch);
return isIdentityLayoutPatch(patch) || isApprovalSentencePatch(patch) || Boolean(patch?.softSettle);
}
function filePatchSettled(text, patch, fp = "") {
@@ -5938,6 +5955,11 @@ export async function gatherState() {
shim_cmd = shimFileStatus(path.join(shimDir, "dsh.cmd"));
shim_ps1 = shimFileStatus(path.join(shimDir, "dsh.ps1"));
shim_bin = shimFileStatus(path.join(shimDir, "dsh"));
} else if (adapterFor(detectSurface()) === "desktop") {
// 桌面宿主不 patch CLI shim;缺目录不是失败。
shim_cmd = "n/a";
shim_ps1 = "n/a";
shim_bin = "n/a";
}
return {
surface: detectSurface(),