zjbc2000/attention-plugins ↗★ 0
attention-plugins
提供会话任务完成、失败的声音与浏览器通知 适合在后台运行长任务、需要即时交互提醒的DSH用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zjbc2000/attention-plugins说明文档
阅读完整 README ↗使用场景
场景 1:主线任务优先
启动 4 个任务:A(主线)、B、C、D
- A 完成 → 🔔 立即通知
- B、C、D 依次完成 → 静默
- 所有支线完成 → 🔔 "All side-line tasks completed"
场景 2:纯支线模式
启动 3 个任务:A、B、C(都不标记主线)
- A 完成 → 静默
- B 完成 → 静默
- C 完成 → 🔔 "All tasks completed"
场景 3:阻塞交互
会话运行中需要回答问题
→ 🔔 通知 + 🎵 Chime(question 事件)
→ 用户返回查看并回答
配置选项
设置面板(Settings → Attention):
| 配置项 | 说明 | 默认值 |
|---|---|---|
| 🔊 声音通知 | 总开关 | ✅ 开启 |
| 🎵 音效选择 | Chime / Success / Subtle | Chime |
| 🔉 音量 | 0-100% | 70% |
| 🔔 浏览器通知 | 系统通知 | ❌ 关闭 |
| 👁️ 为当前会话也通知 | 正在查看的会话也响 | ❌ 关闭 |
事件独立配置:
| 事件 | 默认音效 | 说明 |
|---|---|---|
| ✅ Completed | Chime | 任务成功完成 |
| ⚠️ Failed | Subtle | 任务执行失败 |
| ❓ Question | Success | 需要用户回答 |
| 🔒 Permission | Success | 需要用户授权 |
⭐ 主线标记:
- 位置:会话标题栏右侧
- 未标记:
☆ 设为主线(灰色) - 已标记:
⭐ 主线(橙色高亮)
Configuration
Settings Panel (Settings → Attention):
| Option | Description | Default |
|---|---|---|
| 🔊 Sound Notifications | Master switch | ✅ On |
| 🎵 Sound Effect | Chime / Success / Subtle | Chime |
| 🔉 Volume | 0-100% | 70% |
| 🔔 Browser Notifications | System notifications | ❌ Off |
| 👁️ Alert for Current Session | Also notify when viewing | ❌ Off |
Per-event Configuration:
| Event | Default Sound | Description |
|---|---|---|
| ✅ Completed | Chime | Task finished successfully |
| ⚠️ Failed | Subtle | Task execution failed |
| ❓ Question | Success | User answer required |
| 🔒 Permission | Success | User authorization needed |
⭐ Main-line Marker:
- Location: Conversation header right side
- Unmarked:
☆ Set as Main(gray) - Marked:
⭐ Main(orange highlight)