Skip to content

v0.18.0-alpha.0 — alpha 通道:适配 DSH 0.1.2-alpha.2(仅支持 0.1.2-alpha.x)/ alpha track: targets DSH 0.1.2-alpha.2 only

Pre-release
Pre-release

Choose a tag to compare

@Menghuan1918 Menghuan1918 released this 30 Aug 15:46
· 1326 commits to main since this release
9494774

⚠️ alpha 通道 / Alpha track

本版本仅支持 DSH 0.1.2-alpha.2(peer 下限 ^0.1.2-alpha.2),以 npm alpha dist-tag 发布——DSH 自身仍在 0.1.2-alpha 线上,插件轨道与之对齐。不再支持 0.1.0-rc.8 ~ 0.1.1-rc.2:stable DSH 用户请继续使用 v0.17.1(npm latest,双版本兼容版)。

This release targets DSH 0.1.2-alpha.2 only (peer floor ^0.1.2-alpha.2) and is published under the npm alpha dist-tag, mirroring DSH's own alpha line. 0.1.0-rc.8 ~ 0.1.1-rc.2 are no longer supported — stable-DSH users should stay on v0.17.1 (npm latest).

# DSH 0.1.2-alpha.2 用户 / DSH 0.1.2-alpha.2 users
dsh plugin --profile web add dsh-better-sidebar@alpha

Summary / 摘要

适配 npm 已发布的 DSH 0.1.2-alpha.2(Remote gateway、一次性 token 浏览器鉴权、MarkdownText labels 契约均与 alpha.1 一致),并借此机会删除了全部对 0.1.1-rc.x 及更早的兼容层,同时修复侧边对话在 0.1.2-alpha.1+ 宿主上转录空白的问题。

Full adaptation to the npm-published DSH 0.1.2-alpha.2, dropping the entire pre-alpha (0.1.1-rc.x and older) compatibility layer, plus the fix for blank Side Chat transcripts on 0.1.2-alpha.1+ hosts.

修复 / Fixes

  • 🔁 侧边对话转录空白(0.1.2-alpha.1+ 宿主):转录轮询此前仍走 alpha.1 已移除的 ctx.connection.api(错误被静默吞掉,tab 永远渲染空转录)。现改由插件自有 sidechat.events 路由供给:活线程读内存事件日志、冷线程读会话持久化,服务端种子切割 + afterSeq 增量拉取。
  • 🔣 dsh-settings 运行时导出 settingsNamespace 已删:命名空间合法性改为编译期模板字面量校验,'dsh-better-sidebar' 字面量直接过,宿主侧直接传常量。
  • 🏷 dsh-subagent 描述符版本 2 → 3:由宿主包的 snapshotSubagentDescriptor 盖章,测试断言跟随 SUBAGENT_DESCRIPTOR_VERSION 常量。
  • ✅ SessionEvent.ignorable 恢复、Remote 网关统一 RemoteError 封装:经核实对本插件无影响。

删除的旧兼容层 / Removed compat layer

  • e2e 宿主 RPC:点分/斜杠双方言收敛为斜杠单方言(token URL 必选,裸 origin 直接报错)。
  • MarkdownText labels:双形状 + 双 prop 名收敛为嵌套单形状。
  • 已消亡的 @deepseek-ai/dsh-client-runtime:peerDependencies / devDependencies / dsh.client.inject / chunk externals 白名单(四处同步)全部清除。
  • 发版机制:release workflow 按版本号自动选 npm dist-tag(prerelease → alpha),alpha 版永不抢占 latest。

验证 / Verification

DSH 版本 mount 冒烟(真机)
0.1.2-alpha.2(npm,CI 钉版) 14/14 ✅(两次:v0.17.2 状态与最终 v0.18.0-alpha.0 产物;prerelease 版本号经 dsh plugin add file: 实证可装)

单测 1103 passed · typecheck · consumer-types · --frozen-lockfile 全绿。

安装 / Install

dsh plugin --profile web add dsh-better-sidebar@alpha
# 首次因 pnpm 11 拦截 node-pty 构建脚本失败属正常:
cd ~/.dsh/profiles/web && pnpm approve-builds --all
dsh plugin --profile web add dsh-better-sidebar@alpha   # 重跑即成功

装完硬刷新浏览器(Cmd/Ctrl+Shift+R)。