dsh-notify-say 0.4.74 → 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/dsh-notify.ps1 CHANGED
@@ -61,12 +61,18 @@ param(
61
61
  # 为什么需要:日志会写进 %TEMP%,用户提 Issue 时经常直接上传。
62
62
  # 标题与正文可能含项目名、人名,对诊断「为什么不响」却没帮助。
63
63
  [ValidateSet('info', 'debug')]
64
- # v0.4.70:会话 id。传了它且插件已完成协议注册时,Toast 的 launch 会写成
65
- # dshnotify://jump?session=<id>
66
- # 这样点 Toast 能**精确**跳到对应会话(多会话时不会跳错)。
67
- # 不传(或插件协议没注册成功)时仍用 dsh://open,行为与以前一致。
68
- [string]$SessionId = '',
69
64
  [string]$LogLevel = 'info',
65
+ # v0.4.70:会话 id。传了它且插件已完成协议注册时,Toast 的 launch 会写成
66
+ # dshnotify://jump?session=<id>
67
+ # 这样点 Toast 能**精确**跳到对应会话(多会话时不会跳错)。
68
+ # 不传(或插件协议没注册成功)时仍用 dsh://open,行为与以前一致。
69
+ #
70
+ # ⚠️ 2026-10-20 踩坑:这个参数曾被插到 `[ValidateSet('info','debug')]` 与
71
+ # `[string]$LogLevel` 之间,于是 ValidateSet 套在了 SessionId 上 ——
72
+ # 任何带 -SessionId 的调用都报「xxx 不属于 ValidateSet 集合 info,debug」,
73
+ # exit=1、播报彻底失败(只听到 fallback 的蜂鸣)。
74
+ # **新参数一律加在 param 块最末尾,不要插在两个相关参数中间。**
75
+ [string]$SessionId = '',
70
76
  # v0.4.16:数字增益倍数(1.0 = 原样;2.0 = 放大一倍)。
71
77
  #
72
78
  # 为什么需要:实测本包 247 个语音包峰值中位仅 **40.4%**