dsh-session-tg-notify 0.1.2 → 0.1.3

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kriskwok
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -10,11 +10,19 @@ DSH 会话通知插件:监控会话事件,按**浏览器前后台状态**自
10
10
 
11
11
  ## 安装
12
12
 
13
+ 从 npm 安装(推荐):
14
+
13
15
  ```sh
14
- dsh plugin --profile web add link:/绝对路径/dsh-session-tg-notify
16
+ dsh plugin --profile web add dsh-session-tg-notify
15
17
  ```
16
18
 
17
- `link:` 安装会建立软链接,改完源码重启 DSH 即生效,不需要重新安装。
19
+ 装完需要重启 DSH 进程才会加载插件。
20
+
21
+ 开发时用 `link:` 安装本仓库,改完源码只需重启,不必重新安装:
22
+
23
+ ```sh
24
+ dsh plugin --profile web add link:/绝对路径/dsh-session-tg-notify
25
+ ```
18
26
 
19
27
  ## 使用
20
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-tg-notify",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "DSH 会话通知插件:监控会话事件(完成 / 审批 / 提问 / 受阻 / 出错),按浏览器前后台与锁屏状态路由到页面内 toast、系统通知或 Telegram,点击通知直达对应会话。",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -17,7 +17,8 @@
17
17
  "files": [
18
18
  "src",
19
19
  "cordis.patch.yml",
20
- "README.md"
20
+ "README.md",
21
+ "LICENSE"
21
22
  ],
22
23
  "dependencies": {},
23
24
  "engines": {
@@ -33,8 +34,7 @@
33
34
  ],
34
35
  "repository": {
35
36
  "type": "git",
36
- "url": "git+https://github.com/kriskwok/dsh-ios-app.git",
37
- "directory": "dsh-session-notify"
37
+ "url": "git+https://github.com/kriskwok/dsh-session-tg-notify.git"
38
38
  },
39
39
  "dsh": {
40
40
  "bundle": {
@@ -48,5 +48,9 @@
48
48
  "@deepseek-ai/dsh-client-ui-workspace"
49
49
  ]
50
50
  }
51
+ },
52
+ "homepage": "https://github.com/kriskwok/dsh-session-tg-notify#readme",
53
+ "bugs": {
54
+ "url": "https://github.com/kriskwok/dsh-session-tg-notify/issues"
51
55
  }
52
56
  }
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.2';
37
+ export const VERSION = '0.1.3';
38
38
  /** 只消费事件与 webServer,不依赖其他服务。 */
39
39
  export const inject = [];
40
40