Commit Graph
111 Commits
Author SHA1 Message Date
叫我小杨同学andCursor 5ef028fc27 fix: 发布 1.1.52,禁自动官方更新交接与插件自更新,密封态自愈,重封默认提示词
Co-authored-by: Cursor <cursoragent@cursor.com>

#57 应用/重启不再跑官方 installer;applied 戳在 sealed/丢根时触发 reapply;启动永不自动更新插件;默认提示词重新加密写入 asset-table。
2026-10-03 01:15:37 +08:00
叫我小杨同学andCursor a18fefa2a9 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。
2026-10-03 01:01:31 +08:00
叫我小杨同学andCursor 8f01cd8444 fix: 发布 1.1.50,修 macOS 桌面重启/CLI(#53)与应用后默认提示词注入。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 22:29:28 +08:00
叫我小杨同学andCursor 0674ca2003 fix: 发布 1.1.49-beta.1,修 macOS 官方桌面重启假失败与解包后 CLI 失效(#53)。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 19:20:16 +08:00
叫我小杨同学andCursor e643f9a9a9 fix: 1.1.48 剔除桌面改读 profiles/web 的本机逻辑。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 17:31:49 +08:00
叫我小杨同学andCursor 7a8ba73cd5 fix: 发布 1.1.48,桌面跟 Web 配置、红队派活与 skill/MCP 按任务选用。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 17:25:49 +08:00
叫我小杨同学andCursor b7c14005c3 fix: 发布 1.1.47,演练台环境适配与首次用户须知。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 13:55:13 +08:00
叫我小杨同学andCursor 81c48bf465 fix: 发布 1.1.46,略过有问题的 1.1.45。
工作区说明改回不能压过 system,地区闸门只认大陆、香港、澳门域名,并重新加密默认提示词。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 03:28:46 +08:00
叫我小杨同学andCursor 96c54b8431 fix: 1.1.45 地区闸门不再因单个 CDN 噪声 IP 误拦第二轮。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 02:35:24 +08:00
叫我小杨同学andCursor 7d470fe870 fix: 1.1.45 第二轮发送不再因 undefined.length 直接死掉。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 02:21:39 +08:00
叫我小杨同学andCursor 1283c64cc9 fix: 1.1.45 回退时 snapshotEvents 为空不再炸掉。
会话事件列表为空或未就绪时按空数组处理,避免 gateway/internal 读 length 报错导致回退无效。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 02:12:47 +08:00
叫我小杨同学andCursor 6e40734807 fix: 发布 1.1.45,稳住默认注入并修正清洗进度显示。
点应用即写入默认提示词,不必先保存。剥掉外层 project_instructions 壳并钉死会话系统提示,避免第二轮注入失效。未定位宿主不再显示 0/63,本机不需要的项计入已就绪。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-02 02:09:44 +08:00
叫我小杨同学andCursor b8a5171d78 fix: 发布 1.1.44,回退后下一句按新消息发,启动就注入默认提示词。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 20:36:12 +08:00
叫我小杨同学andCursor 3c7c234b34 fix: 发布 1.1.44,提示词按模式注入并让子代理吃到同一份。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 19:18:54 +08:00
叫我小杨同学andCursor 2ecce304db fix: 发布 1.1.44,提示词按模式注入并让子代理吃到同一份。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 19:18:15 +08:00
Cracer 7977b38176 fix: permissionPresetsOf 未 inject 时不再抛错。(#52)
直访和 ctx.get 都放进 try。
2026-10-01 16:25:07 +08:00
叫我小杨同学andCursor b47ebfb976 fix: 解包失败时放回升级前的目录。
升级脚本先挪走旧目录后,解开中途失败会把那一份放回去。补丁没写完不清除升级标记,下次启动再试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 13:30:45 +08:00
叫我小杨同学andCursor 3ca5b1ec63 fix: 回退只撤最后一轮,提示词只保留一份。
解包改到旁边的目录,失败时放回上一份。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 13:10:15 +08:00
叫我小杨同学andCursor 2929bb783b fix: 发布 1.1.43,没定位到宿主时不再把补丁全部显示成跳过。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 12:20:44 +08:00
叫我小杨同学andCursor 5bcaa3c427 fix: 发布 1.1.42,写明自己的服务器怎么登记。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 02:00:05 +08:00
叫我小杨同学andCursor faf7e10405 fix: 已登记的 IP 或主机名不再被地区拦截。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 22:26:54 +08:00
叫我小杨同学 271839b418 merge: 合入 #51,保留 0.2.0 旧锚点并补上 0.1.x 入口。 2026-09-30 22:12:03 +08:00
叫我小杨同学andCursor 29268373a6 fix: 新对话把提示词放到系统提示最前,面板改为白墨玻璃。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 21:45:44 +08:00
叫我小杨同学andCursor eed95f79cb fix: 发布 1.1.41,官方模式与红队分开注入,回退留在当前会话。
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 20:00:23 +08:00
qianxuno 4a6e15eba5 fix: 修正 escalation 目标解析、desktop-shell 入口探测,并重新对齐 0.1.x 锚点
1) targetFiles 的 "escalation" 用 firstExisting,只认 lib/types/escalation.js(编译残留),
   而运行时加载的是包入口 lib/index.js —— escalation 实现被 bundle 内联进了它。
   结果 #13/#14/#34/#35 的替换全部落在不被执行的文件上:设置页显示「已应用」,
   运行行为零变化(可对照 lib/index.js 里仍留着原版
   `[sandbox: escalation available ...]` 与 `[sandbox: file access denied ...]`)。
   改为 allExisting 并让 lib/index.js 排前,两个文件都覆盖。

2) officialShellMain() 只找 <app>/lib/main.js;官方桌面壳 0.1.3 起入口直接在
   <app>/main.js,于是 desktop-shell 永远未定位、#45/#46 被误报成「文件缺失」。
   两种布局都探测。

3) #15 补 dsh-sandbox-local 新版 confine(argv, policy) 锚点(去掉 async/signal 与
   policy 规范化),旧签名保留。
4) #23 file 补 tool-subagent(0.1.7 起深度默认在工具参数上),新增
   z.union([...z.const("provider-managed")]).default(3) 锚点,旧锚点保留。
5) #47 补 pi-ai 新版 context.systemPrompt 锚点,旧 initialSystemText 锚点保留。

所有旧锚点全部保留,向后兼容 0.1.5 / 0.1.6 / 0.1.7 / 0.2.0 环境。

实测环境:DSH Desktop 0.1.3.0 + harness 包 0.1.2-rc.1(安装形态
resources/app.asar.unpacked/dsh/node_modules/@deepseek-ai,与 resources/runtime
是 junction 同一份文件)。
修复前 30/45 已清洗、9 条 skipped/missing;修复后 36/45、0 待清洗,
涉及改写的文件全部 node --check 通过。
2026-09-30 11:07:28 +08:00
叫我小杨同学 3bc63beca4 fix: 发布 1.1.40,适配 DSH 0.2.0 并应用后自动重启
Anthropic OAuth 去掉 Claude Code 首段;移除 0.2 无效的 patch 41;应用成功后自动重启宿主。
2026-09-30 01:07:24 +08:00
叫我小杨同学andCursor be2189d290 fix: 发布 1.1.39,中文 Windows 官方桌面更新不再卡在准备重启
Fixes #47

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 20:10:51 +08:00
叫我小杨同学andCursor 53d472f3c7 fix: 发布 1.1.38,红队守住目标并修好模式不显示
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 18:15:28 +08:00
叫我小杨同学andCursor 4a51f9841c fix: 红队引导不再替用户下载工具,缺 setup.sh 时改走环境适配
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 14:48:35 +08:00
叫我小杨同学andCursor 9be495de2c fix: 发布 1.1.37,修改演示台环境配置滚动问题
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 00:24:53 +08:00
叫我小杨同学andCursor 776812569a fix: 发布 1.1.36,解决红队模式拒绝问题
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 00:13:29 +08:00
叫我小杨同学andCursor 065d00633b fix: 发布 1.1.35,技能路径跟随安装目录
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 21:45:47 +08:00
叫我小杨同学andCursor 7fc64e4b45 fix: 发布 1.1.34,知识库列出本机模板,更新包在三端都能解压
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 18:28:55 +08:00
叫我小杨同学andCursor 56007e9ec0 fix: 去掉测试版通道,版本号保持 1.1.33
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 18:16:40 +08:00
叫我小杨同学andCursor e41a692572 fix: 发布 1.1.33,已重启后打开面板不再重复要求重启
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 18:09:19 +08:00
叫我小杨同学andCursor f988474f2f fix: 发布 1.1.31,演练台进入正式版,回退不再在侧边栏堆分支
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 17:35:43 +08:00
叫我小杨同学andCursor 181fe141e3 fix: 发布 1.1.30,切换版本改为自行下载,并去掉提示词死循环
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 16:31:56 +08:00
叫我小杨同学 df25a90b0d Revert "fix: 发布 1.1.29,更新下载不再把 GitHub 302 当成失败"
This reverts commit 9504b8ab1a.
2026-09-28 15:46:02 +08:00
叫我小杨同学andCursor 9504b8ab1a fix: 发布 1.1.29,更新下载不再把 GitHub 302 当成失败
- 安装包里的 1.1.26 仍用 fetch 拉 github.com/archive,宿主不跟随 302 就报 http 302,切换失败所以版本一直停在旧的
- 下载改走 Node https,302 读 Location;没有 Location 时把 archive 地址改写成 codeload
- 自动更新只跟版本号,并在安装前写 stamp,避免 add --force 重启后再次更新
- 钉住的标签只标一条为当前

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 15:39:34 +08:00
叫我小杨同学andCursor 00b4c6f93d fix: 发布 1.1.28,修更新 http 302 与测试版列表被正式号藏空
- 归档下载改直连 codeload,并手动跟随 301/302,避免 Electron 下 github.com/archive 报 http 302
- 前端 keepListedVersion 与后端一致:beta tip / beta 分支始终可见;tip SHA 失败时 raw/jsDelivr 回退

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 15:21:11 +08:00
叫我小杨同学andCursor 1f5c2ff6e2 fix: 发布 1.1.27,修应用重启后进规则设定仍弹「需要重启」
- 手动应用成功后写入 applied 戳,避免重启 settle 误判未对齐再要求重启
- 点重启时清掉 boot_full_quit 粘性标记;status 按布尔值同步弹窗
- web waitForRestart 必须先看到旧进程掉线再判定成功,避免同进程误刷新又弹窗

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 10:36:00 +08:00
叫我小杨同学andCursor b6324250bd fix: 发布 1.1.26,正式版同号不再藏掉测试通道 tip
beta 分支头始终可见,避免 1.1.25 正式把并行测试版(含红队)整通道过滤掉。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 09:56:51 +08:00
叫我小杨同学andCursor 7aab036818 fix: 1.1.25 注释里 profiles/*/ 提前结束块注释导致 SyntaxError
块注释不能写 */,改为 profiles/<name>/。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 00:47:23 +08:00
叫我小杨同学andCursor fc9215379f fix: 发布 1.1.25,保护用户 profile cordis.patch.yml 不被 bak 回滚(#43)
从 targetFiles/backup/revert 移除用户 patch 层,并清理历史误建 bak,避免升级自愈覆盖用户 insert。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 00:46:54 +08:00
叫我小杨同学andCursor 05b64bf82f fix: 发布 1.1.24,修源码版桌面误判与 apps/cli 误写(#40 / #41)
pathLooksDesktop 需安装形态才判桌面;源码 apps/cli 跳过 hide-console;revertAll 无 bak 只跳过不删。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-27 23:45:32 +08:00
Musan 82a3cf0f90 fix: #1/#2/#3 补 skipIfMarked,修掉提示词每次 apply 叠加 +841 字符的回归
(本提交基于 v1.1.22 / 58c950a;此前的 8c3fdc9 基于 1.1.23-beta.1,
  因上游把 beta 移出 master,故在 1.1.22 上重建)

现象
  #1 / #2 / #3 的替换链里,新版文本以旧版文本为**前缀**:

    const STRONG_SCOPE    = STRONG_SCOPE_BODY + 授权尾 + 反拒绝尾     // 最新
    const STRONG_SCOPE_V1 = STRONG_SCOPE_BODY                         // 旧
    const STRONG_SCOPE_V2 = STRONG_SCOPE_BODY + 授权尾                 // 中间版
    // #3 的替换 ③: STRONG_SCOPE_V2 → STRONG_SCOPE   ← 产物仍以 V2 开头,永远命中

  于是每次 apply 都在同一处再叠一层。用插件自己的 applyReplacementsToText 连跑 5 次:

    run1..run5: changed=true  Δlen=+841 each   标记出现=2,4,6,8,10

  #1 / #2 结构相同(STRONG_INTRO / _V1 / _V2)。宿主
  dsh-agent-instructions/lib/index.js 已实测被叠到 57556 字符(原 53262,多 5 层)。

根因
  markers 默认只参与"报状态",不参与"防重复应用":

    if (patch.skipIfMarked && patchApplied(source, patch)) { … 跳过 … }

  全 44 项里只有 #41 / #42 / #45 设了 skipIfMarked,而 #1 / #2 / #3 的 markers
  (["ACTIVE and MANDATORY for the stated scope", "Do not soft-refuse or hard-refuse"])
  在文件中明明都命中,却因为 skipIfMarked 为假而完全不生效。

  两者相加 = 每个 autoApplyOnStart 周期给 system prompt 多叠 841×2~3 字符,
  每次重启继续累加(不崩溃,但提示词线性膨胀、指令重复)。

修复
  与 #41/#42/#45 一致,给 #1 / #2 / #3 补 `skipIfMarked: true`。
  新增 scripts/test-patch-idempotence.mjs(npm run test:idempotence):
  静态断言三者都带该字段,并对 #3 重复应用 5 轮断言逐字节不变;
  同时摘掉 skipIfMarked 复现叠加,确保测试真的覆盖到这个回归。

验证
  修复前:连跑 5 次 → 每次 +841 字符,永不收敛
  修复后:第 1 次 apply 落地,再连跑多次 applied=0 且逐字节不变
  测试:npm run test:idempotence → ok(#3 收敛长度=1957,无守卫时 3 轮累计增长=2523)

兼容性
  纯增量:只加一个布尔字段 + 一个测试脚本,不改变任何 pattern / replace / markers。
2026-09-27 23:38:33 +08:00
叫我小杨同学andCursor 58c950ae65 fix: 发布 1.1.22,官方桌面 app.asar 还在时应用不再 ENOENT
归档还在时改写真实 resources/app;没有归档时仍用 node:fs。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-27 14:57:48 +08:00
叫我小杨同学andCursor 4538da436d fix: 发布 1.1.21,修复 #43、#9、#15、#23、#42 报必需补丁失败
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 21:32:19 +08:00
叫我小杨同学andCursor 978538f0ae feat: 发布 1.1.20,官方桌面升级安装已下载的新版本
对准 dsh 0.1.7-rc.2,并保留 0.1.7-rc.1 的旧锚点。安装目录不写死盘符。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 14:38:21 +08:00
叫我小杨同学andCursor fd8d47c00f feat: 发布 1.1.19,支持官方桌面 EXE
官方客户端可以应用并自己重启;修掉重启弹窗、残留 PowerShell,以及更新时要手动还原再应用的问题。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-25 02:47:29 +08:00