Skip to content

v0.10.2 — bundle patch 保持纯 insert;市场开关开/关不再需要重启

Latest

Choose a tag to compare

@hawk2048 hawk2048 released this 08 Oct 06:33

修复

插件市场的开关每次都被打回“重启后生效”。 市场的热挂载只接受纯 id/name
的 insert 行
;cordis.patch.yml 里那段 config: 块加一行 inject: 会让整份补丁被
判为“含配置行/表达式”,于是:

  • 开启 → 无法热挂载 → 回退到“重启后生效”;
  • 按市场的 #575 规则,热挂载失败的 enable 不会被持久化 → 关一次之后再开,会一直卡在
    关闭状态,只能靠手改补丁层或重启到恰到好处才能恢复。

现在 bundle patch 只剩:

- insert:
    - id: openwolf
      name: dsh-openwolf

没有任何行为变化:被删掉的每个选项本来就等于 src/index.ts 里的 schema 默认值
(maxMapBytes / maxFiles / ignore / brainEnabled / interceptReads …),
inject: [tools] 也由模块自身 export const inject = ['tools'] 声明。要覆盖选项,写在
自己 profile 的 cordis.patch.yml(行 id openwolf)——用户层配置不影响热挂载路径。

效果:市场里对 dsh-openwolf 的开 / 关都不再需要重启,关掉之后也能正常开回来。

依赖(沿用 0.10.1 的显式声明)

位置 声明
engines.dsh >=0.1.0-rc.6 <0.3.0
engines.node >=20.19.0
@deepseek-ai/dsh-tools / dsh-skill / dsh-llm / dsh-session (peer) >=0.1.0-rc.6
@deepseek-ai/cordis (peer) ^4.0.1

已验证环境:DSH 0.2.0-rc.2(dsh-desktop 0.11.0)+ cordis 4.0.4。

安装

npm i dsh-openwolf@0.10.2

已在 DSH 插件市场安装过的话,更新到 0.10.2 即可获得正常的开/关行为。

校验

本 Release 附件与 npm 分发产物逐字节相同:

sha1   9f1585d922cb9160efdd6cdccf950a8f97d05086  dsh-openwolf-0.10.2.tgz
sha512 F/ADA6WJ2LK6KiUcTMu8dSwvpy0gWd5j6IAP4PmD4E3Y/4wl6gZW2xHIs/f46V8K+HdliDBIOujbzXGOuhZs/w==

37 个文件 / 106,185 字节。