dsh-voice-mode 0.7.24 → 0.7.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -16,7 +16,7 @@ interrupts playback and the running turn. No API key.
16
16
 
17
17
  ![Real recording: streaming transcription → auto-send → sentence-by-sentence read-aloud with live captions](https://raw.githubusercontent.com/qishuilalala/dsh-voice-mode/HEAD/plugin/dsh-voice-mode/assets/demo-voice-flow.gif)
18
18
 
19
- > **Runtime changes (latest: v0.7.18 – v0.7.24)**: (1) **Settings work on every dsh version** — fixed the settings page and persistence on dsh 0.1.7+ (Settings → Voice Mode page, writes survive restarts); (2) **i18n rebuilt** — the UI follows dsh's official language setting, zh/en fully consistent, switching needs no refresh; (3) **fixed fresh npm/pnpm installs and the dsh ≥0.1.7 installed-form "failed to import"** (0.7.17 and earlier are affected — upgrade to ≥0.7.18); (4) **local Kokoro fixed under the official desktop (Electron) app** — needs Node.js ≥18 on PATH (or set `DSHVM_NODE`); (5) **v0.7.24: Edge cloud read-aloud restored** — since 2026-10-15 Microsoft's service rejects the old handshake (v0.7.23 and earlier are silent on the default Edge engine; local VITS / Kokoro are unaffected), so the inlined msedge-tts is bumped to 2.1.0; when read-aloud **fails several sentences in a row** the plugin now suggests switching to a local engine; plus host hardening (`/models/retry` is same-origin POST only, model-tree path checks, raw error strings no longer sent downstream). Compatible with dsh up to 0.2.1-alpha.3 (its Settings entry moved into the sidebar "More" menu; both of this plugin's entry points still work).
19
+ > **Runtime changes (latest: v0.7.18 – v0.7.24)**: (1) **Settings work on every dsh version** — fixed the settings page and persistence on dsh 0.1.7+ (Settings → Voice Mode page, writes survive restarts); (2) **i18n rebuilt** — the UI follows dsh's official language setting, zh/en fully consistent, switching needs no refresh; (3) **fixed fresh npm/pnpm installs and the dsh ≥0.1.7 installed-form "failed to import"** (0.7.17 and earlier are affected — upgrade to ≥0.7.18); (4) **local Kokoro fixed under the official desktop (Electron) app** — needs Node.js ≥18 on PATH (or set `DSHVM_NODE`); (5) **v0.7.24: Edge cloud read-aloud restored** — since 2026-10-15 Microsoft's service rejects the old handshake (v0.7.23 and earlier are silent on the default Edge engine; local VITS / Kokoro are unaffected), so the inlined msedge-tts is bumped to 2.1.0; when read-aloud **fails several sentences in a row** the plugin now suggests switching to a local engine; plus host hardening (`/models/retry` is same-origin POST only, model-tree path checks, raw error strings no longer sent downstream). Compatible with dsh up to 0.2.1-rc.2 (from 0.2.1-alpha.4/5 the Settings entry moved into the "Account menu" popover at the bottom of the sidebar; both of this plugin's entry points still work).
20
20
 
21
21
  ---
22
22
 
@@ -279,7 +279,7 @@ flowchart LR
279
279
  | Barge-in detection | Basic VAD | **3 sensitivity levels + echo gate + yield semantics** |
280
280
  | Caption a11y | None | **4 font tiers + 3 width tiers + theme-following** |
281
281
  | Wake word | None | **Lightweight streaming match + prefix filler whitelist** |
282
- | dsh compatibility | — | **full range since 0.1.1-rc.2 (incl. 0.2.1-alpha.3)** |
282
+ | dsh compatibility | — | **full range since 0.1.1-rc.2 (incl. 0.2.1-rc.2)** |
283
283
 
284
284
  ---
285
285
 
@@ -304,7 +304,7 @@ Also: the on-device recording fixture used for debugging is **off by default**;
304
304
 
305
305
  ### Compatibility declaration (what the plugin market's version filter reads)
306
306
 
307
- `package.json` declares `engines.dsh = ">=0.1.1-rc.2"` (the market uses it for "filter by host version"). Verified range: **0.1.1-rc.2 → 0.2.1-alpha.3** (including an Electron host equivalent to the official desktop app). The upper bound is open; a weekly CI check watches upstream releases and opens an issue for any uncovered version. `peerDependencies` only lists `@deepseek-ai/cordis` and `react` (provided by the host).
307
+ `package.json` declares `engines.dsh = ">=0.1.1-rc.2 <0.3.0"` (the market uses it for "filter by host version"; from dsh 0.2.1-alpha.4 the next/alpha channels enforce `engines.dsh` alone as a hard check and refuse to load a plugin outside the range, so the upper bound is capped at 0.3.0 — an unverified new major is cleanly refused instead of silently broken). Verified range: **0.1.1-rc.2 → 0.2.1-rc.2** (including an Electron host equivalent to the official desktop app). A weekly CI check watches upstream releases and opens an issue for any uncovered version. `peerDependencies` only lists `@deepseek-ai/cordis` and `react` (provided by the host).
308
308
 
309
309
  ## 🚧 Known limitations
310
310
 
package/README.md CHANGED
@@ -15,7 +15,7 @@ DeepSeek Harness 语音双工对话模式:会话内一键进入 → 边说边
15
15
 
16
16
  ![语音模式真实录制:流式转写 → 自动发送 → 按句朗读 + 实时字幕](https://raw.githubusercontent.com/qishuilalala/dsh-voice-mode/HEAD/plugin/dsh-voice-mode/assets/demo-voice-flow.gif)
17
17
 
18
- > **运行时变更(最近:v0.7.18 ~ v0.7.24)**:① **设置面全版本打通**——dsh 0.1.7+ 上设置页与持久化修复(Settings → 语音模式 专属页、写入与重启保留);② **国际化重做**——界面语言跟随 dsh 官方语言设置,中/英文完整一致、切换无需刷新;③ **修复 npm/pnpm 全新安装失败与 dsh ≥0.1.7 已安装形态「failed to import」**(0.7.17 及更早版本受影响,请升级到 ≥0.7.18);④ **官方桌面端(Electron)下本地 Kokoro 修复**——需系统 PATH 上有 Node.js ≥18(或设 `DSHVM_NODE`);⑤ **v0.7.24:恢复 Edge 云端朗读**——微软服务端自 2026-10-15 起拒绝旧版握手(v0.7.23 及更早的默认 Edge 朗读无声,本地 VITS / Kokoro 不受影响),内联的 msedge-tts 升到 2.1.0;朗读**连续失败时**会提示切换本地引擎;另有 host 加固(`/models/retry` 仅同源 POST、模型树路径校验、错误原文不下行)。兼容 dsh 至 0.2.1-alpha.3(其设置入口移入侧栏「More」菜单,本插件两处入口仍有效)。
18
+ > **运行时变更(最近:v0.7.18 ~ v0.7.24)**:① **设置面全版本打通**——dsh 0.1.7+ 上设置页与持久化修复(Settings → 语音模式 专属页、写入与重启保留);② **国际化重做**——界面语言跟随 dsh 官方语言设置,中/英文完整一致、切换无需刷新;③ **修复 npm/pnpm 全新安装失败与 dsh ≥0.1.7 已安装形态「failed to import」**(0.7.17 及更早版本受影响,请升级到 ≥0.7.18);④ **官方桌面端(Electron)下本地 Kokoro 修复**——需系统 PATH 上有 Node.js ≥18(或设 `DSHVM_NODE`);⑤ **v0.7.24:恢复 Edge 云端朗读**——微软服务端自 2026-10-15 起拒绝旧版握手(v0.7.23 及更早的默认 Edge 朗读无声,本地 VITS / Kokoro 不受影响),内联的 msedge-tts 升到 2.1.0;朗读**连续失败时**会提示切换本地引擎;另有 host 加固(`/models/retry` 仅同源 POST、模型树路径校验、错误原文不下行)。兼容 dsh 至 0.2.1-rc.2(0.2.1-alpha.4/5 起设置入口移入侧栏底部「Account menu」弹出层,本插件两处入口仍有效)。
19
19
 
20
20
  ---
21
21
 
@@ -255,7 +255,7 @@ flowchart LR
255
255
  | 打断检测 | 基础 VAD | **三档灵敏度 + 回声门控 + 让位语义** |
256
256
  | 字幕 a11y | 无 | **4 档字号 + 3 档宽度 + 主题跟随** |
257
257
  | 唤醒词 | 无 | **轻量流式匹配 + 前缀语气词白名单** |
258
- | 兼容 dsh | — | **0.1.1-rc.2 起全版本(含 0.2.1-alpha.3)** |
258
+ | 兼容 dsh | — | **0.1.1-rc.2 起全版本(含 0.2.1-rc.2)** |
259
259
 
260
260
  ---
261
261
 
@@ -280,7 +280,7 @@ flowchart LR
280
280
 
281
281
  ### 兼容声明(插件市场的版本筛选依据)
282
282
 
283
- `package.json` 声明 `engines.dsh = ">=0.1.1-rc.2"`(插件市场据此在「按宿主版本筛选」时判定兼容)。已实测范围 **0.1.1-rc.2 → 0.2.1-alpha.3**(含官方桌面端等价的 Electron 宿主);上限开放,由每周 CI 巡检上游新版本并复验,出现未覆盖版本会自动开 issue。`peerDependencies` 仅声明 `@deepseek-ai/cordis` 与 `react`(宿主提供)。
283
+ `package.json` 声明 `engines.dsh = ">=0.1.1-rc.2 <0.3.0"`(插件市场据此在「按宿主版本筛选」时判定兼容;dsh 0.2.1-alpha.4 起 next/alpha 通道由 `engines.dsh` 单独硬校验,不满足即拒绝加载,故上界封在 0.3.0——未验证的新大版本会被干净拒绝而非静默破损)。已实测范围 **0.1.1-rc.2 → 0.2.1-rc.2**(含官方桌面端等价的 Electron 宿主);由每周 CI 巡检上游新版本并复验,出现未覆盖版本会自动开 issue。`peerDependencies` 仅声明 `@deepseek-ai/cordis` 与 `react`(宿主提供)。
284
284
 
285
285
  ## 🚧 已知限制
286
286
 
package/lib/client.js CHANGED
@@ -3103,7 +3103,7 @@ var TELEMETRY_VIEW = [
3103
3103
  { stage: "first-tts-chunk", key: "telFirstChunk" },
3104
3104
  { stage: "first-audio-played", key: "telFirstPlayed" }
3105
3105
  ];
3106
- var BUILD_TAG = "66b3fc0";
3106
+ var BUILD_TAG = "c0970c5";
3107
3107
  var TELEMETRY_FLAG = "dsh-voice-mode.telemetry";
3108
3108
  var telemetryEnabled = typeof localStorage !== "undefined" && localStorage.getItem(TELEMETRY_FLAG) === "1";
3109
3109
  console.log("[dsh-voice] build=" + BUILD_TAG);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-voice-mode",
3
- "description": "Full-duplex voice plugin for DeepSeek Harness: local zipformer2 streaming ASR (no API key) → editable draft; Edge TTS or local VITS / Kokoro read-aloud with live captions; true barge-in; hardened HTTP surface + model SHA256 pinning; compatible with all dsh releases since 0.1.1-rc.2 (verified 0.1.1-rc.2 → 0.2.1-alpha.3).",
3
+ "description": "Full-duplex voice plugin for DeepSeek Harness: local zipformer2 streaming ASR (no API key) → editable draft; Edge TTS or local VITS / Kokoro read-aloud with live captions; true barge-in; hardened HTTP surface + model SHA256 pinning; compatible with all dsh releases since 0.1.1-rc.2 (verified 0.1.1-rc.2 → 0.2.1-rc.2).",
4
4
  "icon": "./icon.svg",
5
- "version": "0.7.24",
5
+ "version": "0.7.25",
6
6
  "type": "module",
7
7
  "main": "lib/index.js",
8
8
  "repository": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "engines": {
17
17
  "node": ">=18.0.0",
18
- "dsh": ">=0.1.1-rc.2"
18
+ "dsh": ">=0.1.1-rc.2 <0.3.0"
19
19
  },
20
20
  "exports": {
21
21
  ".": "./lib/index.js",