Skip to content

v0.2.5 — dsh peer 改为显式区间,内核 0.2.0-rc.1 下不再被跳过

Latest

Choose a tag to compare

@Max-Null Max-Null released this 28 Sep 22:32
· 2 commits to main since this release

本次发布覆盖 v0.2.2 之后的三个版本(0.2.3 / 0.2.4 / 0.2.5)——tag 此前落后于 npm 版本,一并在此补齐说明。

修复

  • 适配 DSH 0.2.0-rc.1:peer 上界放宽到 <0.3.0(0.2.5)
    @deepseek-ai/dsh-* 的 peer 范围由 ^0.1.7-rc.2 改为 >=0.1.7-rc.2 <0.3.0,共 6 个包、10 处(peerDependencies + devDependencies)。下限保持不变,现行 0.1.7-rc.2 仍满足。
    原因:caret 范围实际展开为 >=0.1.7-rc.2 <0.2.0-0,对 0.2.0-rc.1 判 false;而 DSH 的 plugin-compatibility.ts 只要判定某个 dsh peer 不满足,该插件就被静默跳过——不进 fiber graph,也不出现在「did not activate」列表里,排查时没有任何线索。
  • DSH STORE 修复单 #347(0.2.3):补 engines.node 与 dsh.compatibility 声明。

调整

  • 适配 DSH 0.1.7 契约(0.2.4)
    • 设置入口由 settings.plugin.item 迁至 plugins.bundle.config(key = 包名)。官方 ui-plugin-manager 的 slot 契约注明 plugins.item 已被官方设置页占用,bundle 自己的配置应走 plugins.bundle.config。新入口位置:插件 → @max-null/dsh-draft-polish → 配置卡片。
    • schema 库迁至 @deepseek-ai/schemastery,且每个可变字段标注 .volatile()(settings 对非 volatile 路径直接抛错)。
  • 构建配置修正:tsdown 的 noExternal 由 'schemastery' 改为 '@deepseek-ai/schemastery'。0.1.7 改名后旧写法已匹配不到任何模块,「运行时零外部 npm 依赖」此前只是靠 devDependencies 被默认打包侥幸成立。改后重跑构建,lib/index.js 与 lib/client.js 的哈希逐字节不变,即产物等价,仅把该承诺变成配置保障。
  • 文档:补齐 ## 截图 段与设置页截图、「权限与安全」披露段;家族清单同步到 19 项。

已知事项

  • docs/shots/polish-settings-1.png 摄于 0.2.3(当时入口在设置对话框左栏)。0.2.4 起入口已迁至插件详情页,面板字段与默认值未变,该截图待按新入口重截。
  • L1 门槛:pnpm typecheck / pnpm test(5 files / 65 tests)/ pnpm build 全绿。
  • npm 发布由维护者手动执行:cd dsh-draft-polish && npm publish。