fomaper
|
c9aabc8d95
|
perf(desktop): 桌面宿主启动不再全盘扫描 $HOME,asar 判定加缓存
启动路径上 restoreMissingOriginalsAllHosts() -> enumeratePatchAiBases()
-> findAiBaseWeb() 的最后一段兜底递归会遍历整个 $HOME:所有确定性探测
(DSH_BASE / 运行中进程 / DSH_HOME / npm prefix / shim)在桌面端都会被
isInsideDesktopInstall() 排除,于是必然落到这段递归,而实测结果恒为 null。
同时 hostFs 的每次调用都要过 asarShadowsPath(),后者向上探最多 12 层、
每层 1~2 次 original-fs 调用,单次 fs 调用被放大成约 25 次系统调用。
三处改动:
- findAiBaseWeb: desktop surface 跳过递归兜底(DSH_PURGE_DEEP_AIBASE_SCAN=1 可强制开启)
- findAiBaseRecursive: Windows 上只在 reparse point 上做跨设备 dev 判定
- asarShadowsPath: 加两级缓存(持久 TTL 5s + 作用域强缓存),写操作与
renameAsarAside 均显式失效
效果:enumeratePatchAiBases() 96,959 ms -> 279 ms;插件 boot 阶段约 90 s -> 0.78 s。
回归:DSH_PURGE_DEEP_AIBASE_SCAN=1 强制开启时返回的宿主列表与关闭时一致。
|
2026-10-11 07:59:26 +08:00 |
|
叫我小杨同学
|
599c818c34
|
fix(extract-asar): hostFs.promises 补上 rename
atomicWriteFile/atomicCopyFile 需要 fsp.rename,hostFs.promises 原先漏了。
启动种子调 atomicWriteFile 第二步 rename 直接抛 TypeError: fsp.rename
is not a function,导致 /dsh-purge/apply 整条链路倒下。
跟 copyFile 一样走 fsForPair 路由,保证 src/dest 跨 asar/disk 边界时
用的是同一侧 fs。
|
2026-10-09 12:28:07 +08:00 |
|
叫我小杨同学
|
1726711f52
|
fix: 发布 1.1.67,#85/#84 + 启动种子 + 85 项清单一次性修复
- #85 continue 续跑加 failStreak 阈值;refundContinue 不清 lastContinueSeq,连错 3 次放弃
- #84 region gate denialStream 单批 text-chunks 带 .length,不再卡宿主 UI
- 启动即种子:$DSH_HOME/prompt-inject.md 为空/缺失自动写加密默认稿,用户改过的不动
- Windows 重启脚本:pid+random 命名 + 直接 wscript.exe //B,不再 /IM 杀全名
- 官方 CLI shim 原子写 + .dsh-purge.bak 可回退
- WScript clean 判定两 null 放行,首装不卡;探测缓存不缓存空结果
- scheduleAsarRenameWhenIdle 的 .rename-pending 锁时钟回拨/30min 失效自动清
- 三处 execFileSync 加 maxBuffer: 8MB,大结果不再 ENOBUFS 静默
- net-scope / identity / hooks-deny / extract-asar / client.js / core.js / update.js / skills.js / refusal-recover / rewind / rules / reapply 等共 85 项修复
|
2026-10-09 11:52:39 +08:00 |
|
 叫我小杨同学andCursor
|
ed676bcb11
|
fix: 发布 1.1.64,红队流程八项修复
新建靶标才换角色稿;计分、预检和并发名额按现行规则走。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-10-08 11:04:18 +08:00 |
|
 叫我小杨同学andCursor
|
c29d78b291
|
fix: 发布 1.1.44,提示词按模式注入并让子代理吃到同一份。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-10-01 19:18:15 +08:00 |
|
 叫我小杨同学andCursor
|
10a597d6ff
|
fix: 回退只撤最后一轮,提示词只保留一份。
解包改到旁边的目录,失败时放回上一份。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-10-01 13:10:15 +08:00 |
|
 叫我小杨同学andCursor
|
75e7a2d849
|
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
|
232c9e2461
|
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
|
214fd47a8e
|
feat: 发布 1.1.19,支持官方桌面 EXE
官方客户端可以应用并自己重启;修掉重启弹窗、残留 PowerShell,以及更新时要手动还原再应用的问题。
Co-authored-by: Cursor <cursoragent@cursor.com>
|
2026-09-25 02:47:29 +08:00 |
|