dsh-notify-say 0.4.65 → 0.4.68
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 +8 -0
- package/lib/config-schema.js +4 -0
- package/lib/index.js +2838 -2578
- package/package.json +1 -1
- package/test/error-notify-contract.test.mjs +186 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
> 本文件由 `tools/release-build.ps1` 从开发提交自动生成,**请勿手工编辑**。
|
|
4
4
|
> 只列面向使用者的变更(新增功能与修复),不含内部维护提交。
|
|
5
5
|
|
|
6
|
+
## v0.4.68 — 2026-10-19
|
|
7
|
+
|
|
8
|
+
- fix(notify): v0.4.68 —— error 在 turn/end 当场播报,不等 idle 边沿
|
|
9
|
+
|
|
10
|
+
## v0.4.67 — 2026-10-19
|
|
11
|
+
|
|
12
|
+
- fix(notify): v0.4.67 —— 错误不再被静默吞掉(第 2 批,含播放层反馈)
|
|
13
|
+
|
|
6
14
|
## v0.4.65 — 2026-10-19
|
|
7
15
|
|
|
8
16
|
- fix(idle-gate): v0.4.65 —— 空闲门改成可靠状态机,真机验证通过
|
package/lib/config-schema.js
CHANGED
|
@@ -106,6 +106,8 @@ export const FIELD_DEFAULTS = Object.freeze({
|
|
|
106
106
|
volume: 80,
|
|
107
107
|
notifyOnComplete: true,
|
|
108
108
|
notifyOnError: true,
|
|
109
|
+
/** v0.4.68:子代理会话出错是否提醒。默认开 —— 完成可以合并,错误不能合并掉。 */
|
|
110
|
+
notifyOnSubagentError: true,
|
|
109
111
|
notifyOnBlocked: true,
|
|
110
112
|
notifyOnAborted: false,
|
|
111
113
|
notifyOnApproval: true,
|
|
@@ -196,6 +198,8 @@ export function buildConfig(z) {
|
|
|
196
198
|
.description('回合正常完成时提醒'),
|
|
197
199
|
notifyOnError: z.boolean().default(FIELD_DEFAULTS.notifyOnError)
|
|
198
200
|
.description('回合出错时提醒(播失败语音)'),
|
|
201
|
+
notifyOnSubagentError: z.boolean().default(FIELD_DEFAULTS.notifyOnSubagentError)
|
|
202
|
+
.description('子代理会话出错时也提醒(默认开:完成可以合并,错误不能静默)'),
|
|
199
203
|
notifyOnBlocked: z.boolean().default(FIELD_DEFAULTS.notifyOnBlocked)
|
|
200
204
|
.description('回合被拦截时提醒(蜂鸣,不播失败语音)'),
|
|
201
205
|
notifyOnAborted: z.boolean().default(FIELD_DEFAULTS.notifyOnAborted)
|