dsh-voice-mode 0.7.44 → 0.7.45
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 +9 -7
- package/README.md +9 -7
- package/SECURITY.md +1 -1
- package/THIRD_PARTY_NOTICES.md +31 -2
- package/lib/client.js +316 -191
- package/lib/index.js +1304 -609
- package/lib/tts-vits-worker.cjs +1 -1
- package/package.json +3 -2
- package/scripts/check-anchors.mjs +42 -3
package/README.en.md
CHANGED
|
@@ -31,7 +31,7 @@ Full-duplex voice conversation plugin for **DeepSeek Harness (DSH)** across Web
|
|
|
31
31
|
|
|
32
32
|
## Installation & Quick Start
|
|
33
33
|
|
|
34
|
-
**Requirements**: DeepSeek Harness `>=0.1.1-rc.2 <0.3.0-0` (verified across client injection anchors, dual host/client typechecks, and isolated runtime smoke tests from `0.1.1-rc.2` through `0.2.
|
|
34
|
+
**Requirements**: DeepSeek Harness `>=0.1.1-rc.2 <0.3.0-0` (verified across client injection anchors, dual host/client typechecks, and isolated runtime smoke tests from `0.1.1-rc.2` through `0.2.3-alpha.2`), Node.js `>=18.0.0`, and a modern browser supporting `getUserMedia` + Web Audio (Chrome / Edge / Firefox / Safari 16+) or the official DSH Desktop app.
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
# Option 1: Install from npm (recommended; replace "web" with your target profile if needed)
|
|
@@ -40,9 +40,11 @@ dsh plugin --profile web add dsh-voice-mode
|
|
|
40
40
|
# Equivalent via npx when the dsh CLI is not installed globally:
|
|
41
41
|
npx -y @deepseek-ai/dsh plugin --profile web add dsh-voice-mode
|
|
42
42
|
|
|
43
|
-
# Option 2: Build and install from source
|
|
43
|
+
# Option 2: Build and install from source (Node.js 22.18+ on the 22.x line and pnpm 11)
|
|
44
44
|
git clone https://github.com/qishuilalala/dsh-voice-mode.git
|
|
45
|
-
cd dsh-voice-mode/plugin/dsh-voice-mode
|
|
45
|
+
cd dsh-voice-mode/plugin/dsh-voice-mode
|
|
46
|
+
pnpm install --frozen-lockfile
|
|
47
|
+
pnpm run build
|
|
46
48
|
dsh plugin --profile web add .
|
|
47
49
|
```
|
|
48
50
|
|
|
@@ -239,7 +241,7 @@ Rules starting or ending with ASCII letters/digits match whole words only (`sina
|
|
|
239
241
|
| **shell (child process)** | Runs local TTS in a dedicated `child_process.fork` worker; under Electron desktop, probes system Node.js for Kokoro; **never interpolates shell strings or user input** | Local machine |
|
|
240
242
|
| **env** | Reads path/runtime environment variables (`DSH_HOME`, `LOCALAPPDATA`, `PATH`, optional `DSHVM_NODE`) | Local machine |
|
|
241
243
|
|
|
242
|
-
-
|
|
244
|
+
- In Voice Mode, select **Copy diagnostics** in the status bar above the chat input. To show the bar, use **Settings → Voice Mode → Display & interaction**. The snapshot includes a build hash, runtime state, selected settings, and any available stage timings. It contains no audio or transcript text. The plugin sends no telemetry.
|
|
243
245
|
- API keys are stored host-only (`0600`) and never returned to browsers; third-party notices for bundled code are listed in [THIRD_PARTY_NOTICES.md](https://github.com/qishuilalala/dsh-voice-mode/blob/main/plugin/dsh-voice-mode/THIRD_PARTY_NOTICES.md), and vulnerability reporting is documented in [SECURITY.md](https://github.com/qishuilalala/dsh-voice-mode/blob/main/SECURITY.md).
|
|
244
246
|
- Downloaded speech models from the [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) ecosystem remain under their upstream model licenses (not covered by this package's MIT license).
|
|
245
247
|
|
|
@@ -261,15 +263,15 @@ Rules starting or ending with ASCII letters/digits match whole words only (`sina
|
|
|
261
263
|
|
|
262
264
|
## Development & License
|
|
263
265
|
|
|
264
|
-
|
|
266
|
+
Use Node.js 22.18+ on the 22.x line and pnpm 11 for local development. See the [contribution guide](https://github.com/qishuilalala/dsh-voice-mode/blob/main/CONTRIBUTING.md#本地开发) for the full workflow.
|
|
265
267
|
|
|
266
268
|
```sh
|
|
267
269
|
cd plugin/dsh-voice-mode
|
|
268
|
-
pnpm install
|
|
270
|
+
pnpm install --frozen-lockfile
|
|
271
|
+
pnpm run check:lib-drift # check committed bundles before build overwrites lib
|
|
269
272
|
pnpm run build # builds lib/index.js, lib/index.d.ts, lib/client.js, and workers
|
|
270
273
|
pnpm run typecheck # dual host + browser TypeScript checks
|
|
271
274
|
pnpm test # unit tests, structure guards, and doc-consistency gates
|
|
272
|
-
bash scripts/verify-install.sh # fresh isolated pnpm + npm tarball installation check
|
|
273
275
|
```
|
|
274
276
|
|
|
275
277
|
Released under the [MIT License](https://github.com/qishuilalala/dsh-voice-mode/blob/main/plugin/dsh-voice-mode/LICENSE), with early foundations derived from [haoku123/dsh-voice](https://github.com/haoku123/dsh-voice) (MIT).
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
## 安装与快速开始
|
|
33
33
|
|
|
34
|
-
**环境要求**:DeepSeek Harness `>=0.1.1-rc.2 <0.3.0-0`(已实测覆盖 `0.1.1-rc.2` 至 `0.2.
|
|
34
|
+
**环境要求**:DeepSeek Harness `>=0.1.1-rc.2 <0.3.0-0`(已实测覆盖 `0.1.1-rc.2` 至 `0.2.3-alpha.2` 的客户端注入锚点、双端类型检查与隔离运行态冒烟),Node.js `>=18.0.0`,支持 `getUserMedia` 与 Web Audio 的现代浏览器(Chrome / Edge / Firefox / Safari 16+)或 DSH 官方桌面客户端。
|
|
35
35
|
|
|
36
36
|
```sh
|
|
37
37
|
# 方式一:从 npm 安装(推荐;按实际环境替换 web 等 profile 名称)
|
|
@@ -40,9 +40,11 @@ dsh plugin --profile web add dsh-voice-mode
|
|
|
40
40
|
# 未全局安装 dsh CLI 时等价写法:
|
|
41
41
|
npx -y @deepseek-ai/dsh plugin --profile web add dsh-voice-mode
|
|
42
42
|
|
|
43
|
-
#
|
|
43
|
+
# 方式二:源码构建安装(使用 Node.js 22.18+ 的 22.x 版本与 pnpm 11)
|
|
44
44
|
git clone https://github.com/qishuilalala/dsh-voice-mode.git
|
|
45
|
-
cd dsh-voice-mode/plugin/dsh-voice-mode
|
|
45
|
+
cd dsh-voice-mode/plugin/dsh-voice-mode
|
|
46
|
+
pnpm install --frozen-lockfile
|
|
47
|
+
pnpm run build
|
|
46
48
|
dsh plugin --profile web add .
|
|
47
49
|
```
|
|
48
50
|
|
|
@@ -240,7 +242,7 @@ dsh plugin --profile web add .
|
|
|
240
242
|
| **shell(子进程)** | 本地 TTS 经 `child_process.fork` 运行固定子进程脚本;桌面端 Electron 下为 Kokoro 探测本机 Node.js 可执行文件;**不拼接外部命令、不执行用户输入** | 本机 |
|
|
241
243
|
| **env** | 读取 `DSH_HOME`、`LOCALAPPDATA`、`PATH` 与可选 `DSHVM_NODE` 等目录定位环境变量 | 本机 |
|
|
242
244
|
|
|
243
|
-
-
|
|
245
|
+
- 进入语音模式后,输入框上方状态条的「复制诊断」会复制构建哈希、运行状态、部分设置与可用的阶段耗时。若状态条已隐藏,可在「设置 → 语音模式 → 显示与交互」打开。插件没有遥测上报,诊断快照不含音频或转写。
|
|
244
246
|
- 远程 TTS 密钥只存宿主侧,读取接口仅返回布尔状态;内联第三方依赖版本与许可证清单见 [THIRD_PARTY_NOTICES.md](https://github.com/qishuilalala/dsh-voice-mode/blob/main/plugin/dsh-voice-mode/THIRD_PARTY_NOTICES.md),安全披露政策见 [SECURITY.md](https://github.com/qishuilalala/dsh-voice-mode/blob/main/SECURITY.md)。
|
|
245
247
|
- 本地语音模型由各自上游作者授权(源自 [sherpa-onnx](https://github.com/k2-fsa/sherpa-onnx) 生态),本插件的 MIT 许可证不覆盖外部模型权重;商用前请核对所选模型的上游许可证。
|
|
246
248
|
|
|
@@ -262,15 +264,15 @@ dsh plugin --profile web add .
|
|
|
262
264
|
|
|
263
265
|
## 开发与许可证
|
|
264
266
|
|
|
265
|
-
|
|
267
|
+
本地开发使用 Node.js 22.18+ 的 22.x 版本和 pnpm 11,完整步骤见[贡献指南](https://github.com/qishuilalala/dsh-voice-mode/blob/main/CONTRIBUTING.md#本地开发)。
|
|
266
268
|
|
|
267
269
|
```sh
|
|
268
270
|
cd plugin/dsh-voice-mode
|
|
269
|
-
pnpm install
|
|
271
|
+
pnpm install --frozen-lockfile
|
|
272
|
+
pnpm run check:lib-drift # 在 build 覆盖 lib 前校验已提交的产物
|
|
270
273
|
pnpm run build # 生成 lib/index.js、lib/index.d.ts、lib/client.js 及 worker 产物
|
|
271
274
|
pnpm run typecheck # 宿主与客户端双端 TypeScript 类型检查
|
|
272
275
|
pnpm test # 运行全部单元测试、结构守卫与文档一致性门禁
|
|
273
|
-
bash scripts/verify-install.sh # 隔离目录验证打包产物的 pnpm / npm 全新安装
|
|
274
276
|
```
|
|
275
277
|
|
|
276
278
|
本项目基于 [MIT 许可证](https://github.com/qishuilalala/dsh-voice-mode/blob/main/plugin/dsh-voice-mode/LICENSE) 开源;早期基础实现部分派生自 [haoku123/dsh-voice](https://github.com/haoku123/dsh-voice)(MIT)。
|
package/SECURITY.md
CHANGED
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
# Third-party notices
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
The plugin bundles the vendored `@voice-mode/core` and the Edge TTS packages listed below.
|
|
4
|
+
Their licenses are reproduced here. Generated by `scripts/gen-third-party-notices.mjs`.
|
|
5
5
|
|
|
6
6
|
| Package | Version | License |
|
|
7
7
|
| --- | --- | --- |
|
|
8
|
+
| @voice-mode/core | 0.1.0 | MIT |
|
|
8
9
|
| agent-base | 6.0.0 | MIT |
|
|
9
10
|
| asynckit | 0.4.0 | MIT |
|
|
10
11
|
| axios | 1.20.0 | MIT |
|
|
@@ -38,6 +39,34 @@ comment in `build.mjs` for why). Their licenses are reproduced below. Generated
|
|
|
38
39
|
| msedge-tts | 2.1.1 | MIT |
|
|
39
40
|
| ws | 8.21.3 | MIT |
|
|
40
41
|
|
|
42
|
+
## @voice-mode/core 0.1.0
|
|
43
|
+
|
|
44
|
+
- License: MIT
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
MIT License
|
|
48
|
+
|
|
49
|
+
Copyright (c) 2026 qishuilalala
|
|
50
|
+
|
|
51
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
52
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
53
|
+
in the Software without restriction, including without limitation the rights
|
|
54
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
55
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
56
|
+
furnished to do so, subject to the following conditions:
|
|
57
|
+
|
|
58
|
+
The above copyright notice and this permission notice shall be included in all
|
|
59
|
+
copies or substantial portions of the Software.
|
|
60
|
+
|
|
61
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
62
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
63
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
64
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
65
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
66
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
67
|
+
SOFTWARE.
|
|
68
|
+
```
|
|
69
|
+
|
|
41
70
|
## agent-base 6.0.0
|
|
42
71
|
|
|
43
72
|
- License: MIT
|