dsh-notify-say 0.4.72 → 0.4.78
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/CHANGELOG.md +4 -0
- package/dsh-notify.ps1 +11 -5
- package/lib/client.js +3041 -2967
- package/lib/index.js +3253 -3039
- package/package.json +1 -1
- package/test/foreground-longpoll.test.mjs +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-notify-say",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.78",
|
|
4
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
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -85,7 +85,11 @@ test('W8: 轮询不每轮打 /config(用缓存)', () => {
|
|
|
85
85
|
|
|
86
86
|
test('W9: 开关关着时定时探活,打开后无需刷新页面', () => {
|
|
87
87
|
assert.match(CLIENT, /IDLE_RECHECK_MS/, '要有探活间隔');
|
|
88
|
-
|
|
88
|
+
// v0.4.75:条件里多了一个 `en.toastJumpSession`(精准跳转开启时不挂自动跳连接),
|
|
89
|
+
// 所以定位用的字符串要跟着改 —— 但断言的语义不变:
|
|
90
|
+
// 「不该挂连接」的情况下必须定时回来复查,不能直接 return。
|
|
91
|
+
const anchor = 'en.toastJumpSession) {';
|
|
92
|
+
const seg = CLIENT.slice(CLIENT.indexOf(anchor), CLIENT.indexOf('var hidden =', CLIENT.indexOf(anchor)));
|
|
89
93
|
assert.match(seg, /setTimeout/, '关着时必须定时回来看,不能直接 return 掉');
|
|
90
94
|
assert.match(CLIENT, /dsh-notify-say:config-changed/,
|
|
91
95
|
'GUI 保存后要广播事件作废缓存,否则改了开关要刷新页面才生效');
|