← 返回列表
D

dsh-client-fix

v1.5.0 · 2 天前发布

客户端修复插件:fs.watch无延迟自动同步web(市场更新即同步) + 预加豁免 + 修复shim

deepseekharnessdshdsh-pluginfixsync

README

dsh-client-fix

作用:DSH Desktop 客户端一键修复插件——自动修复 pnpm shim 中文路径乱码("系统找不到指定的路径")、

让 web profile 无延迟自动跟随 desktop 的插件变化(向 desktop 对齐)、安装前自动预加

minimumReleaseAgeExclude 豁免,市场更新即同步,无需手动干预。

>
使用 DeepSeek-V4-Flash 制作 🤖

DSH Desktop 客户端修复插件(client-side fix plugin)。

功能

1. 修复 pnpm shim 编码 bug
DSH Desktop 启动时生成的 runtime-commands/bin/pnpm.cmd 以 UTF-8 写入,但 cmd.exe 按 GBK(936) 读取,
导致含中文的路径(如 D:\软件\...)解析乱码,报"系统找不到指定的路径"。
插件启动 3 秒后自动给 shim 第二行补 chcp 65001 >nul(无 BOM),跨代码页通用。
桌面应用重启重新生成坏 shim 后,插件会自动再次修复。

2. fs.watch 无延迟自动同步 web(向 desktop 对齐)
监听 desktop profile 的 package.jsonpnpm-lock.yaml,变化后(防抖 800ms)自动把 web profile
同步成与 desktop 一致:
- desktop 有、web 无 → 补装
- desktop 无、web 有 → 移除(尊重手动卸载)
- 版本不同 → 对齐 desktop 版本
市场(dshmarket)更新只操作 deskt

版本兼容矩阵

DSH 版本状态说明
dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
dsh@0.1.0 ✅ 兼容 标准 patch ✅
dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
dsh@0.3.0+ ❓ 未知 尚未发布

💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

元数据

License
MIT
npm
dsh-client-fix
Repo
Engines
{}
Weekly DL
0
Monthly DL
0
dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}