dsh-plugin-permission-notify

DSH PLUGIN通知与集成

仓库 W-aPoint/dsh-plugin-permission-notify

通知与集成 L4 · 沙盒安装通过 安全审查:低风险 可信度:银 可安装插件
安装这个插件

dsh-plugin-permission-notify 是 W-aPoint 维护的 通知与集成 类 DSH 可安装插件, 仓库为 W-aPoint/dsh-plugin-permission-notify,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-plugin-permission-notify 是通知与集成类的 DSH 可安装插件,验证等级 L4 · 沙盒安装通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类通知与集成 收录类型可安装插件 验证等级L4 · 沙盒安装通过 安全审查低风险
验证等级 L4 L4 · 沙盒安装通过
GitHub 星标 0 复刻 未标注 · 未关闭 issue 未标注
最近更新 2026-10-28 创建于 未标注
README 6.6 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:W-aPoint/dsh-plugin-permission-notify#v0.2.0
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注

适用场景

代码评审通知

验证等级与安全审查

L4 · 沙盒安装通过
自动化流程结论,不是人工审核
验证等级L4 · 沙盒安装通过安装命令在隔离沙盒内真实执行成功,无依赖错误
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度银综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L4:在沙盒里真实装过,依赖能装上,不是纸面声明。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在通知与集成场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-plugin-permission-notify当前 L4 · 沙盒安装通过 低风险 0 未标注 有
treg L3 · 安装规范通过 低风险 4,976 未标注 无
dsh-purge 未做沙盒验证 未标注 3,412 未标注 有
dsh-im L5 · 运行验证通过 低风险 1,837 0.1.7-rc.2 等 10 个 有
dsh-dafeiyu L5 · 运行验证通过 低风险 425 0.1.7-rc.2 等 10 个 有
dsh-trading L3 · 安装规范通过 低风险 235 未标注 无

仓库档案

通知与集成
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方W-aPoint仓库 dsh-plugin-permission-notify · 默认分支 未标注
分类通知与集成notify
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 未标注 / 未标注收录时的数值,非实时
创建 / 更新未标注 · 2026-10-28最后推送 未标注
本站收录2026-10-30首次进入本站目录的时间

README 全文

6.6 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-plugin-permission-notify

A DeepSeek Harness (dsh) plugin that does two things:

  1. Makes “Auto review” the default permission preset. dsh deliberately keeps the experimental
    auto preset out of the “future sessions” default; this plugin re-applies it to every root
    session (on creation and on mount).
  2. Raises native Windows notifications — a real Windows toast (with the system sound) whenever a
    turn finishes or the agent is blocked on a decision. The toast quotes the tail of the latest
    assistant answer
    , and clicking it brings the DSH window back to the foreground.

Plain ESM, no build step, no npm dependencies (it only uses @deepseek-ai/schemastery, which ships
with dsh).

回答完成 · data_base
「…可以确定了——总盘子已经定型,后面只是把几十到几百人挪一下…」      ← real snippet, not a template
点击通知 → DSH 窗口回到前台

Install (Windows)

git clone https://github.com/W-aPoint/dsh-plugin-permission-notify.git
cd dsh-plugin-permission-notify
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1

The installer is idempotent and does three things:

  1. copies package/ to %USERPROFILE%\.dsh\plugins\dsh-plugin-permission-notify;
  2. junctions it into ~/.dsh/profiles/desktop/node_modules;
  3. appends a marked - insert: block to the profile's cordis.patch.yml
    (backup written next to it), and registers the dshnotify: protocol used by toast clicks.

Restart DeepSeek Harness (or wait for the desktop HMR to pick the patch up). Check
~/.dsh/logs/permission-notify.log to confirm mounted:.

Configuration

Edit the managed block in ~/.dsh/profiles/desktop/cordis.patch.yml, or re-run install.ps1
with flags (-DefaultPreset off, -SkipExistingSessions, -NoSound, -Uninstall).

key default meaning
defaultPreset auto preset applied to root sessions: auto, workspace-write, danger-full-access, any configured preset name, or off
applyToExistingSessions true also switch sessions that already exist when the plugin mounts
notifyTurnEnd true notify when a turn finishes (turn/end with completed/max-tokens)
notifyApproval true notify on approval/asked (includes calls denied by Auto review)
notifyQuestion true notify on ask_user_question
sound true play the system notification sound
includeSnippet true quote the tail of the latest assistant answer in the toast
snippetChars 120 snippet length budget
clickToFocus true clicking the toast focuses the DSH window
appId com.deepseek.dsh Windows AppUserModelID used for the toast
minIntervalMs 1200 de-duplication window per notification kind
logFile ~/.dsh/logs/permission-notify.log delivery log

How it works (short version)

  • Permission half — on session/created (and on mount) the plugin calls
    ctx.permissionPresets.set(session, 'auto') for root sessions only. Sub-agent sessions are left
    alone. If the @deepseek-ai/dsh-experimental-auto-review bundle is not installed, auto is not an
    available preset and the plugin logs a warning instead of failing.
  • Notification half — listens to session/event for turn/end, approval/asked and
    tool/call(ask_user_question), keeps the newest assistant/message text per session as the
    snippet, then spawns assets/notify.ps1 which raises a Windows toast.
  • Click half — the toast uses protocol activation (dshnotify:activate). The protocol is
    registered in HKCU\Software\Classes at install time and launches activate.vbs →
    activate.ps1, which releases the Windows foreground lock with a synthetic ALT and then calls
    SetForegroundWindow, verifying the result.

Why the toast identity is com.deepseek.dsh, why a detached PowerShell child silently does
nothing, and how the foreground lock was solved: see docs/how-it-works.md.

Requirements

  • Windows 10/11 with the DeepSeek Harness desktop app installed (that is where the
    com.deepseek.dsh AppUserModelID comes from).
  • The @deepseek-ai/dsh-experimental-auto-review bundle enabled in the profile, if you want the
    auto preset (install.ps1 warns when it is missing).
  • PowerShell 5.1 (shipped with Windows). No admin rights: everything lives in HKCU and ~/.dsh.

Verifying

# raises a real clickable toast
powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\test-notify.ps1

# offline logic tests against a fake cordis context (no dsh restart needed)
powershell -NoProfile -ExecutionPolicy Bypass -File .\tools\verify.ps1

# delivery log
Get-Content "$env:USERPROFILE\.dsh\logs\permission-notify.log" -Tail 20

Uninstall

powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -Uninstall

Removes the managed patch block, the node_modules junction and the dshnotify: protocol.
The copied plugin files stay in ~/.dsh/plugins/ (delete them manually if you want).

中文说明

这个插件给 DeepSeek Harness(桌面端) 补两件事:

  1. 把「自动审查」变成默认权限。dsh 本身不允许把实验性的 auto 预设设成「未来会话默认值」,
    插件在会话创建和自身挂载时,对根会话重新应用你指定的预设(默认 auto);子代理会话不动。
  2. 原生 Windows 通知。回答结束、需要确认操作、ask_user_question 等你做选择时弹系统 Toast,
    带系统提示音;正文会引用最近一条回答的片段(不是固定模板),点击通知会把 DSH 窗口拉回前台。

核心结论(详见 docs/how-it-works.md):

  • Windows 对未打包的桌面程序发 Toast,要求 AppUserModelID 对应开始菜单里带
    System.AppUserModel.ID 的快捷方式;猜一个字符串会「Show() 不报错但什么都不显示」。
    DSH 桌面端的快捷方式里注册的是 com.deepseek.dsh,直接用就行。
  • 用 powershell.exe 发 Toast 时不能 spawn(..., { detached: true }):进程会以退出码 0 结束
    却不干活。改成普通子进程 + stdio: 'ignore'。
  • 点击 Toast 回前台:未打包程序的正规做法是注册 COM 激活器;这里改用 dshnotify: 协议 +
    一次合成 ALT 解除前台锁再 SetForegroundWindow,并用 wscript 隐藏窗口启动,避免黑窗闪一下。

配置项、安装/卸载、验证、排错都在上面英文段落和 docs/ 里;日志在
~\.dsh\logs\permission-notify.log。

License

MIT © 2026 WyyyD

常见问题

5 问
答案由本站依据条目字段整理,不引用上游原文
dsh-plugin-permission-notify 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:W-aPoint/dsh-plugin-permission-notify#v0.2.0` 即可。

dsh-plugin-permission-notify 的验证等级是什么意思?

L4 · 沙盒安装通过。安装命令在隔离沙盒内真实执行成功,无依赖错误

dsh-plugin-permission-notify 安全吗?

低风险。

dsh-plugin-permission-notify 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-plugin-permission-notify 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

通知与集成
按星标排序,可作替代方案

treg

treg

Treg 是面向 Agent 工具的 OpenRouter,聚合 60 个提供商的 2896 个端点,按调用计费,统一令牌访问,无需注册各供

L3 · 安装规范通过 4,976 星

dsh-purge

dsh-purge

dsh-purge Community · DeepSeek Harness 社区维护版:宿主兼容、状态诊断、提示词管理、更新与本机备份回滚

未标注验证等级 3,412 星

dsh-im

dsh-im

将IM机器人接入DeepSeek Harness,支持飞书、微信、钉钉等九种渠道,通过扫码或凭据配置,统一管理多机器人连接。

L5 · 运行验证通过 1,837 星

dsh-dafeiyu

dsh-dafeiyu

DSH 大肥鱼是一款由 DeepSeek Harness 真实工作状态驱动的桌面伴侣插件,以始终置顶的透明窗口实时展示 Agent 的思考、

L5 · 运行验证通过 425 星

dsh-trading

dsh-trading

L3 · 安装规范通过 235 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。