dsh-session-tg-notify 0.1.3 → 0.1.4

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/README.md CHANGED
@@ -86,7 +86,7 @@ dsh plugin --profile web add link:/绝对路径/dsh-session-tg-notify
86
86
 
87
87
  > 后台这一档为什么要求**锁屏**而不是「失焦」:切到别的应用、点一下浏览器外部都会让页面失焦,那时人还在电脑前,推手机是纯打扰。锁屏才是「人走了」的可靠信号。
88
88
 
89
- 权威定义写在 `test/truth-table.mjs`:它把「状态 × 订阅组合 × 锁屏开关 × 实际锁屏」的全矩阵用**真实投递**跑一遍并对照期望断言。改路由逻辑必须先让这张表继续成立。
89
+ 上面这张表就是权威定义:**状态 × 订阅组合 × 锁屏开关 × 实际锁屏**的全矩阵,任何一格的改动都要同步这里。改路由逻辑时必须保证这张表仍然成立。
90
90
 
91
91
  ### 锁屏检测怎么工作
92
92
 
@@ -163,13 +163,6 @@ Telegram 的 bot **不能主动给人发消息** —— 它只能回复一个已
163
163
  | `POST /session-notify/test` | 逐事件测试推送 `{ kind, channel, clientId }` |
164
164
  | `POST /session-notify/telegram-check` | 校验 Bot Token 并返回 bot 身份 |
165
165
 
166
- ## 测试
167
-
168
- ```sh
169
- node test/smoke.mjs
170
- ```
171
-
172
- 零依赖,用假 ctx 驱动插件,覆盖三态路由、子代理过滤、去重、事件级开关、HTTP API 等 30 项断言。
173
166
 
174
167
  ## 已知限制
175
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-tg-notify",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "DSH 会话通知插件:监控会话事件(完成 / 审批 / 提问 / 受阻 / 出错),按浏览器前后台与锁屏状态路由到页面内 toast、系统通知或 Telegram,点击通知直达对应会话。",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -34,7 +34,7 @@ import { readScreenLocked } from './screenlock.js';
34
34
  import { sendTelegram, getTelegramMe, getTelegramChats, getTelegramChat } from './telegram.js';
35
35
 
36
36
  export const name = 'session-notify';
37
- export const VERSION = '0.1.3';
37
+ export const VERSION = '0.1.4';
38
38
  /** 只消费事件与 webServer,不依赖其他服务。 */
39
39
  export const inject = [];
40
40