dsh-notify-say 0.5.1 → 0.5.2

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/.gitattributes ADDED
@@ -0,0 +1,39 @@
1
+ # 行尾与二进制约定(随发布包分发)
2
+ #
3
+ # ## 为什么这个文件必须进发布包
4
+ #
5
+ # 2026-10-18 实测:CI 跑在 windows-latest,而公开仓库当时**没有** .gitattributes,
6
+ # 于是 `actions/checkout` 按 Windows 默认 `core.autocrlf=true` 把 .ps1 转成了 CRLF ——
7
+ # 而开发机上是 LF(工作区根 .gitattributes 管着)→ D16 测试在 CI 全红。
8
+ #
9
+ # 也就是说:**同样的提交,Windows 上 clone 到的和开发机上的字节不同。**
10
+ # 这个文件把约定随包带走,任何人 clone 都得到一致的字节。
11
+ #
12
+ # ## 为什么 .ps1 用 LF
13
+ #
14
+ # PowerShell 5.1 与 7 都能正确执行 LF 脚本(已实测:
15
+ # 把 dsh-notify.ps1 转成 LF 后跑 `-Kind done -Preview`,正常选中并播放了音色)。
16
+ # 统一 LF 的好处是"发布包 == GitHub 版本 == npm 版本"字节一致,
17
+ # 任何按字节/哈希校验的地方都不会莫名其妙对不上。
18
+ #
19
+ # (注意:`.cmd` / `.bat` 必须 CRLF —— 但本包不含这类文件。
20
+ # 若将来加入,务必在下面补 `*.cmd text eol=crlf`。)
21
+
22
+ # 文本:统一 LF
23
+ *.ps1 text eol=lf
24
+ *.js text eol=lf
25
+ *.mjs text eol=lf
26
+ *.md text eol=lf
27
+ *.json text eol=lf
28
+ *.yml text eol=lf
29
+ *.yaml text eol=lf
30
+ *.txt text eol=lf
31
+ .gitattributes text eol=lf
32
+ .gitignore text eol=lf
33
+
34
+ # 二进制:禁止任何转换(否则音频损坏、哈希对不上)
35
+ *.wav binary
36
+ *.mp3 binary
37
+ *.zip binary
38
+ *.png binary
39
+ *.ico binary
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  > 本文件由 `tools/release-build.ps1` 从开发提交自动生成,**请勿手工编辑**。
4
4
  > 只列面向使用者的变更(新增功能与修复),不含内部维护提交。
5
5
 
6
+ ## v0.5.2 — 2026-10-23
7
+
8
+ - feat(voice): 新增 4 个中文音色(EmotiVoice 生成),自带「温柔女声」
9
+ - fix(voice): 修正音色数量与引擎措辞(自查发现,避免中文音色被冒称为 VOICEVOX)
10
+ - fix(voice): 语音包区「核心包只带 1 个音色」改为 2 个
11
+ - fix(test): 中文音色「整组缺席」曾静默通过 + 修 CHANGELOG 在 git 根布局下失效
12
+ - fix(package): .gitattributes 不进 npm 包,且 D19 判据自身有两个方向都不对
13
+
6
14
  ## v0.5.0 — 2026-10-22
7
15
 
8
16
  - fix(protocol): 协议改名 dshnotify-say + 归属判据改用身份标记(v0.5.0)
@@ -310,8 +318,6 @@
310
318
 
311
319
  ## 未发布
312
320
 
313
- - feat(voice): 新增 4 个中文音色(EmotiVoice 生成),自带「温柔女声」
314
- - fix(voice): 修正音色数量与引擎措辞(自查发现,避免中文音色被冒称为 VOICEVOX)
315
- - fix(voice): 语音包区「核心包只带 1 个音色」改为 2 个
316
- - fix(test): 中文音色「整组缺席」曾静默通过 + 修 CHANGELOG 在 git 根布局下失效
321
+ - fix(test): D19j 补上三处「判据被兜底顶替」的盲区,并修掉一条理由说反的规则
322
+ - fix(test): 白名单项数收敛成单一事实源,修掉 D19b/D19f 口径分叉
317
323
 
package/README.md CHANGED
@@ -553,7 +553,7 @@ npm run test:route # 需要 --import loader 的接线测试
553
553
  npm run test:audio-wire
554
554
  ```
555
555
 
556
- **564 条测试通过**(`test:all`:主套件 538 + route 注入 26,另有 26 条需真实 DSH 宿主、无宿主时自动 skip)。
556
+ **575 条测试通过**(`test:all`:主套件 549 + route 注入 26,另有 26 条需真实 DSH 宿主、无宿主时自动 skip)。
557
557
  绝大多数是纯逻辑测试,克隆仓库后 `npm test` 即可跑。
558
558
 
559
559
  少数用例需要真实的 DSH 宿主(用于验证 Cordis 上下文行为)。
package/package.json CHANGED
@@ -1,79 +1,78 @@
1
1
  {
2
- "name": "dsh-notify-say",
3
- "version": "0.5.1",
4
- "description": "Desktop notifications for DSH Desktop that actually speak: Windows TTS out of the box (zero download), VOICEVOX voice packs optional, a selectable system-sound fallback, and an idle gate that waits for running subagents before saying the turn is done. Includes a settings-page GUI (sound source, per-event overrides, jump-back-to-session, cooldowns) and a self hot-reload for development.",
5
- "license": "MIT",
6
- "type": "module",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/unifilitence/dsh-notify-say.git"
10
- },
11
- "homepage": "https://github.com/unifilitence/dsh-notify-say#readme",
12
- "bugs": {
13
- "url": "https://github.com/unifilitence/dsh-notify-say/issues"
14
- },
15
- "author": "unifilitence",
16
- "exports": {
17
- ".": "./lib/index.js",
18
- "./client": "./lib/client.js",
19
- "./package.json": "./package.json",
20
- "./locale/*.json": "./locale/*.json"
21
- },
22
- "files": [
23
- "lib",
24
- "locale",
25
- "sounds",
26
- "dsh-notify.ps1",
27
- "tts-speak.ps1",
28
- "jump-handler.vbs",
29
- "jump-handler.ps1",
30
- "cordis.patch.yml",
31
- "tools",
32
- "README.md",
33
- "LICENSE",
34
- "THIRD-PARTY-NOTICES.md",
35
- "CHANGELOG.md",
36
- "test"
37
- ],
38
- "keywords": [
39
- "dsh",
40
- "dsh-plugin",
41
- "deepseek",
42
- "deepseek-harness",
43
- "plugin",
44
- "notification",
45
- "notify",
46
- "toast",
47
- "speech",
48
- "voice",
49
- "tts",
50
- "voicevox",
51
- "desktop",
52
- "windows",
53
- "zh"
54
- ],
55
- "engines": {
56
- "node": "\u003e=20",
57
- "dsh": "\u003e=0.2.1-rc.2 \u003c0.3.0"
58
- },
59
- "scripts": {
60
- "test": "node --test",
61
- "test:all": "node --test \u0026\u0026 node --import ./test/route-loader-register.mjs --test test/fail-route.test.mjs test/audio-wiring.test.mjs",
62
- "test:route": "node --import ./test/route-loader-register.mjs --test test/fail-route.test.mjs",
63
- "test:audio-wire": "node --import ./test/route-loader-register.mjs --test test/audio-wiring.test.mjs",
64
- "check:client": "node ./test/client-bundle.test.mjs"
65
- },
66
- "dsh": {
67
- "manifestVersion": 1,
68
- "bundle": {
69
- "patch": "./cordis.patch.yml"
70
- },
71
- "client": {
72
- "platform": "web",
73
- "immediately": true,
74
- "inject": [
75
-
76
- ]
77
- }
78
- }
2
+ "name": "dsh-notify-say",
3
+ "version": "0.5.2",
4
+ "description": "Desktop notifications for DSH Desktop that actually speak: Windows TTS out of the box (zero download), VOICEVOX voice packs optional, a selectable system-sound fallback, and an idle gate that waits for running subagents before saying the turn is done. Includes a settings-page GUI (sound source, per-event overrides, jump-back-to-session, cooldowns) and a self hot-reload for development.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/unifilitence/dsh-notify-say.git"
10
+ },
11
+ "homepage": "https://github.com/unifilitence/dsh-notify-say#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/unifilitence/dsh-notify-say/issues"
14
+ },
15
+ "author": "unifilitence",
16
+ "exports": {
17
+ ".": "./lib/index.js",
18
+ "./client": "./lib/client.js",
19
+ "./package.json": "./package.json",
20
+ "./locale/*.json": "./locale/*.json"
21
+ },
22
+ "files": [
23
+ "lib",
24
+ "locale",
25
+ "sounds",
26
+ "dsh-notify.ps1",
27
+ "tts-speak.ps1",
28
+ "jump-handler.vbs",
29
+ "jump-handler.ps1",
30
+ "cordis.patch.yml",
31
+ "tools",
32
+ "README.md",
33
+ "LICENSE",
34
+ "THIRD-PARTY-NOTICES.md",
35
+ ".gitattributes",
36
+ "CHANGELOG.md",
37
+ "test"
38
+ ],
39
+ "keywords": [
40
+ "dsh",
41
+ "dsh-plugin",
42
+ "deepseek",
43
+ "deepseek-harness",
44
+ "plugin",
45
+ "notification",
46
+ "notify",
47
+ "toast",
48
+ "speech",
49
+ "voice",
50
+ "tts",
51
+ "voicevox",
52
+ "desktop",
53
+ "windows",
54
+ "zh"
55
+ ],
56
+ "engines": {
57
+ "node": ">=20",
58
+ "dsh": ">=0.2.1-rc.2 <0.3.0"
59
+ },
60
+ "scripts": {
61
+ "test": "node --test",
62
+ "test:all": "node --test && node --import ./test/route-loader-register.mjs --test test/fail-route.test.mjs test/audio-wiring.test.mjs",
63
+ "test:route": "node --import ./test/route-loader-register.mjs --test test/fail-route.test.mjs",
64
+ "test:audio-wire": "node --import ./test/route-loader-register.mjs --test test/audio-wiring.test.mjs",
65
+ "check:client": "node ./test/client-bundle.test.mjs"
66
+ },
67
+ "dsh": {
68
+ "manifestVersion": 1,
69
+ "bundle": {
70
+ "patch": "./cordis.patch.yml"
71
+ },
72
+ "client": {
73
+ "platform": "web",
74
+ "immediately": true,
75
+ "inject": []
76
+ }
77
+ }
79
78
  }