Skip to content

Releases

v0.1.9 — DSH 0.1.5 兼容修复

Choose a tag to compare

@flashyiyi flashyiyi released this 08 Sep 23:51

DSH 0.1.5 兼容修复

DSH 0.1.5 的 @deepseek-ai/dsh-settings 移除了 installSettingsSection / settingsNamespace,插件 host 入口的 ESM 命名导入直接抛 SyntaxError → loader.create 失败 → 插件无法装配(在设置页里表现为消失/被禁用)。

  • host:改用 ctx.inject(['settings'], c => c.settings.register('voice-announcer', Schema, { base }));setSource / onChange 等价替换为注册后立即 scope.get() 同步 + scope.watch()
  • client:SettingsScope 改从 @deepseek-ai/dsh-client-ui-settings 导入(@deepseek-ai/dsh-client-runtime 在 0.1.5 已不存在)
  • package.json:dsh.client.inject 与 peerDependencies 移除 @deepseek-ai/dsh-client-runtime

0.1.8 及更早版本在 DSH 0.1.5 下无法加载,请升级到 0.1.9。