@tavlo-dsh/dsh-plugin-hooks 0.0.0-stage → 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 Tavlo-dsh
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
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
1
+ # Tavlo Hook 与通知插件(`@tavlo-dsh/dsh-plugin-hooks`)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness(DSH)`0.2.2-rc.1` 插件:监听 DSH 审批、用户提问、回合生命周期、工具执行、子 Agent、后台任务、工作流、上下文压缩、目标与账号提醒等 **19 个原生 Hook 挂载点**,提供应用内弹窗、跨平台系统通知、Windows 任务栏闪烁、自定义 `.wav` 铃声、本地 Hook 脚本管理与 **11 种三方通知渠道**。
4
+
5
+ ## 安装与构建
6
+
7
+ 需要 Node.js >= 24、DSH `0.2.2-rc.1` 与 npm/pnpm。
8
+
9
+ ```bash
10
+ npm install
11
+ npm run build
12
+ npm test
13
+ ```
14
+
15
+ 本地打包与安装到当前 DSH profile:
16
+
17
+ ```bash
18
+ npm pack
19
+ dsh plugin --profile web add --prod ./tavlo-dsh-dsh-plugin-hooks-0.1.3.tgz
20
+ ```
21
+
22
+ ## 核心能力
23
+
24
+ - **DSH 设置页一级入口**:在「设置 → Hook」集中管理通知策略、自定义声音、三方通知目标与 19 个 Hook 挂载点。
25
+ - **四通道通知调度**:
26
+ 1. **DSH 应用内弹窗**:通过 SSE 实时推送,支持自动关闭时间配置与审批消散联动。
27
+ 2. **OS 原生系统通知**:Windows WinRT / WSL、macOS `osascript`、Linux `notify-send`,支持窗口聚焦抑制与每挂载点独立铃铛开关。
28
+ 3. **Windows 任务栏闪烁**:独立于系统通知开关,支持指定闪烁次数(1–20)或持续到窗口聚焦。
29
+ 4. **11 种三方异步通知渠道**:Bark、钉钉、飞书、Telegram、企业微信、PushPlus、WxPusher、Server 酱、ntfy、Gotify、自定义 HTTP,凭证存放在 DSH 本地凭证库(`~/.dsh/.credentials.yaml`),外发仅包含脱敏摘要与项目目录 basename。
30
+ - **跨平台 Hook 脚本**:预置 8 个默认 `.mjs` 脚本(含工具审计示例),支持上传 `.mjs`/`.js`/`.cjs`/`.ps1`/`.sh`/`.py`/`.cmd`/`.bat` 脚本、工具正则 matcher、超时限制、源码查看、单脚本测试运行与最近 50 条执行日志。
@@ -0,0 +1,4 @@
1
+ - insert:
2
+ - id: tavlo-hooks
3
+ name: '@tavlo-dsh/dsh-plugin-hooks'
4
+ config: {}
package/icon.svg ADDED
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
2
+ <path d="M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2" />
3
+ <path d="m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06" />
4
+ <path d="m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8" />
5
+ </svg>