dsh-notify-say 0.4.67 → 0.4.69
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 +8 -0
- package/lib/index.js +2848 -2793
- package/package.json +1 -1
- package/test/error-notify-contract.test.mjs +32 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
> 本文件由 `tools/release-build.ps1` 从开发提交自动生成,**请勿手工编辑**。
|
|
4
4
|
> 只列面向使用者的变更(新增功能与修复),不含内部维护提交。
|
|
5
5
|
|
|
6
|
+
## v0.4.69 — 2026-10-19
|
|
7
|
+
|
|
8
|
+
- feat(notify): v0.4.69 —— 三级通知语义,max-tokens 不再静默
|
|
9
|
+
|
|
10
|
+
## v0.4.68 — 2026-10-19
|
|
11
|
+
|
|
12
|
+
- fix(notify): v0.4.68 —— error 在 turn/end 当场播报,不等 idle 边沿
|
|
13
|
+
|
|
6
14
|
## v0.4.67 — 2026-10-19
|
|
7
15
|
|
|
8
16
|
- fix(notify): v0.4.67 —— 错误不再被静默吞掉(第 2 批,含播放层反馈)
|
package/lib/config-schema.js
CHANGED
|
@@ -106,7 +106,11 @@ 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,
|
|
112
|
+
/** v0.4.68:回合因 token 上限中断是否提醒。默认**开** —— 任务没完成,用户需要知道。 */
|
|
113
|
+
notifyOnMaxTokens: true,
|
|
110
114
|
notifyOnAborted: false,
|
|
111
115
|
notifyOnApproval: true,
|
|
112
116
|
notifyOnQuestion: true,
|
|
@@ -196,8 +200,12 @@ export function buildConfig(z) {
|
|
|
196
200
|
.description('回合正常完成时提醒'),
|
|
197
201
|
notifyOnError: z.boolean().default(FIELD_DEFAULTS.notifyOnError)
|
|
198
202
|
.description('回合出错时提醒(播失败语音)'),
|
|
203
|
+
notifyOnSubagentError: z.boolean().default(FIELD_DEFAULTS.notifyOnSubagentError)
|
|
204
|
+
.description('子代理会话出错时也提醒(默认开:完成可以合并,错误不能静默)'),
|
|
199
205
|
notifyOnBlocked: z.boolean().default(FIELD_DEFAULTS.notifyOnBlocked)
|
|
200
206
|
.description('回合被拦截时提醒(蜂鸣,不播失败语音)'),
|
|
207
|
+
notifyOnMaxTokens: z.boolean().default(FIELD_DEFAULTS.notifyOnMaxTokens)
|
|
208
|
+
.description('回合因 token 上限中断时提醒(默认开:任务未完成)'),
|
|
201
209
|
notifyOnAborted: z.boolean().default(FIELD_DEFAULTS.notifyOnAborted)
|
|
202
210
|
.description('回合被中止/超长/中断时提醒(默认关闭)'),
|
|
203
211
|
notifyOnApproval: z.boolean().default(FIELD_DEFAULTS.notifyOnApproval)
|