Skip to content

v0.2.1 — DSH 0.1.5-rc.2 兼容性验证 + 日志轮转修复

Choose a tag to compare

@Nothree-code Nothree-code released this 12 Sep 11:34
· 1 commit to main since this release

适配

验证 DSH 0.1.5-rc.2 兼容性,结论是无需改动代码即可工作。

依赖面 0.1.5-rc.2 现状
dsh.client 清单(platform: "web" + exports["./client"]) 未变
客户端 bundle 入口 window.__ModuleLoader__.load({ id, factory }) 未变
插槽 conversation.input.right / conversation.input.dock 仍存在
插槽 props(InputZone + InputState.draft + inputActions.setDraft) 未变
Host 路由 webServer.register({ kind: 'exact' }) 未变

运行时实证:/dsh-voco-token 与 /dsh-voco-baseline 在当前实例上均返回 HTTP 200。

修复

  • VocoType 重启或日志轮转后语音不再插入:日志条目数回退会让客户端持有的 after 游标越过文件末尾,
    /dsh-voco-poll 会持续返回「无新内容」,表现为「点了麦克风、说了话,却再也没有文字插入」,
    必须重新点一次麦克风才能恢复。现在 host 端比较相邻两次读取的条目数,检测到回退时返回 rotated: true
    并清空增量,客户端收到后把游标重设到当前末尾。(lib/index.js、lib/client.js)

文档

  • README 新增「DSH 兼容性」章节:契约核对表 + 已知行为边界
    (输入框引用 chip 会被降级为纯文本;语音插入依赖 VocoType 日志格式)。
  • 新增 CHANGELOG.md。

安装 / 升级

dsh plugin --profile web add github:Nothree-code/voco-input-sh

升级后需完全重启 dsh web 生效。

校验

  • node --check 通过(host 与 client 两半)
  • 源码与运行副本(node_modules/voco-input-sh)字节一致
  • package.json 无 BOM

Full Changelog: 8ffb189...fa3f2df