0neKbyte/dsh-approval-assistant_0neKbyte
deepseek 审批+问答+完成时添加提醒,可设置浏览器、系统通知、弹窗通知,可自拟音效
项目介绍Project Overview
审批助手是面向 DSH web profile 的插件,提供审批等待、审批结果、模型提问及工具任务完成提醒,并支持全部或按工具名关键词自动审批;提醒可分别用弹窗、系统通知、声音并自定义音频。适合需要及时处理审批或减少重复确认的网页使用场景。注意:依赖 webServer,headless 无 webServer 时不激活;系统通知需浏览器授权,声音可能受自动播放策略限制。
Approval Assistant is a DSH plugin for the web profile that notifies you about pending approvals, approval results, ask_user_question prompts, and completed approved-tool tasks. It can auto-approve every request or match tool-name keywords, with independent pop-up, system-notification, and sound channels, including custom audio. Use it when running DSH in the browser and you want approval or question alerts. It requires webServer; it stays inactive in headless setups without it, notifications need browser permission, and audio may be blocked by autoplay policies.
请帮我了解并安装插件:【dsh-approval-assistant_0neKbyte】【https://github.com/0neKbyte/dsh-approval-assistant_0neKbyte】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-approval-assistant-0nekbyte
把 0neKbyte/dsh-approval-assistant_0neKbyte 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
审批助手 Approval Assistant
DeepSeek Harness(dsh)插件:审批提醒 · 自动审批 · 完成提醒 · 提问提醒。
- 审批提醒:有请求等待审批时,按配置弹窗 / 系统通知 / 声音提示。
- 自动审批:全部自动通过,或按工具名关键词规则匹配通过(无需人工确认)。
- 完成提醒:审批结果出来时提醒(已批准 / 已拒绝 / 已取消)。
- 提问提醒:模型用
ask_user_question向你提问时弹窗提醒(直接显示问题内容)。 - 任务完成提醒(可选):已批准的工具执行完毕后提醒。
- 每个提醒组均可独立开关 弹窗 / 系统通知 / 声音,声音支持自定义(音频 URL 或
data:URI,留空用默认提示音)。
安装
dsh plugin --profile web add dsh-approval-assistant-0nekbyte
重启后打开 设置 → 审批助手 进行配置(含各通道的测试按钮与「请求通知权限」)。
系统通知依赖浏览器授权(设置页内一键请求);声音可能受浏览器自动播放策略限制,首次测试请先与页面交互。
本插件面向 web profile:宿主半部将
webServer声明为硬依赖(保证浏览器配置通道的路由注册),在无 webServer 的 headless 环境下会保持 waiting 状态、不激活。
配置
| 卡片 | 配置项 |
|---|---|
| 审批提醒 | 启用;弹窗 / 系统通知 / 声音 / 自定义声音 |
| 自动审批 | 启用;模式:全部自动通过 / 按规则匹配(工具名关键词,逗号分隔);自动通过后发送完成提醒 |
| 完成提醒 | 启用;弹窗 / 系统通知 / 声音 / 自定义声音 |
| 提问提醒 | 启用(模型提问时提醒,弹窗显示问题内容);弹窗 / 系统通知 / 声音 / 自定义声音 |
| 任务完成提醒 | 启用(已批准的工具执行完毕后提醒);弹窗 / 系统通知 / 声音 / 自定义声音 |
工作原理
- Host 半部(
index.js):以prepend监听approval/request瀑布(先于 Web 审批应答器执行),自动审批时直接返回'allowed-once'认领请求,否则包住用户决策并前后入队提醒;tools/result用callId关联已批准工具的执行完成;tools/pre-execute纯观察ask_user_question提问。配置与提醒队列经webServer同源 HTTP 路由(/dsh-approval-assistant/*)暴露给浏览器。 - Client 半部(
client.js):标准dsh.clientweb 模块,在shell.overlay渲染右上角弹窗、在settings.section提供设置页,轮询提醒队列并按配置触发弹窗 /Notification/ 声音(默认 Web Audio 合成提示音,自定义声音用new Audio(url))。
许可
MIT License。
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS