Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:linfunss/dsh-win-notify
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Windows 11 system notification bridge plugin for DeepSeek Harness.
Branded system toasts (DeepSeek name + whale icon + sound) when a tool action needs user confirmation and when the model finishes running — so you don't have to keep staring at the Harness window.
Zero runtime dependencies. Zero build step. Plain ESM JavaScript.
| Scenario | Event | Title | Sound |
|---|---|---|---|
| User confirmation needed | approval/request (waterfall, observed only) |
需要确认 | Notification.Looping.Alarm (looping) |
| Model finished running | agent/status running → idle (subagents filtered) |
运行完成 | Notification.Default |
DeepSeek branding, self-healing. On every load the plugin:
%LOCALAPPDATA%\DeepSeekHarness\deepseek.ico;DeepSeekAI.DeepSeekHarness in HKCU\Software\Classes\AppUserModelId\... with the display name and icon URI.Toasts are sent via CreateToastNotifier(aumid), so Windows attributes them to DeepSeek Harness instead of PowerShell — correct name, correct logo, correct sound.
Note: the icon is rasterized directly from the official favicon path data because librsvg (the renderer behind
sharp) mis-scales this specific path into a thin strip. The scanline rasterizer inicon.mjsbypasses that.
@deepseek-ai/cordis peer)The package is a standard DSH bundle: add it to your profile's dsh.profile.bundles, or insert the row manually.
git clone https://github.com/<your-name>/dsh-win-notify.git
Then reference it from your profile's package.json ($DSH_HOME/profiles/<profile>/package.json):
{
"name": "dsh-profile-web",
"private": true,
"dependencies": {
"dsh-win-notify": "file:C:/path/to/dsh-win-notify"
}
}
Install and add to the bundle list:
dsh plugin --profile web install
# then add "dsh-win-notify" to dsh.profile.bundles in the profile package.json
dsh plugin --profile web add dsh-win-notify
"dependencies": {
"dsh-win-notify": "github:<your-name>/dsh-win-notify"
}
Then pnpm install inside your profile directory (or dsh plugin --profile web install).
Add the package to the profile's dsh.profile.bundles (its cordis.patch.yml inserts the win-notify row), or insert it yourself in the profile's cordis.patch.yml:
- insert:
- id: win-notify
name: 'dsh-win-notify'
Restart DSH. You should now see a "DeepSeek Harness" entry in Settings → System → Notifications (make sure its toggle is on; Focus Assist can silence toasts).
All fields are optional:
- id: win-notify
name: 'dsh-win-notify'
config:
enabled: true # default: true
appName: DeepSeek Harness
aumid: DeepSeekAI.DeepSeekHarness
confirmationTitle: DeepSeek Harness · 需要确认
completionTitle: DeepSeek Harness · 运行完成
confirmationSound: Notification.Looping.Alarm
completionSound: Notification.Default
node tests/icon.test.mjs # or: npm test
Verifies the ICO structure, PNG entries, and that the whale actually renders.
ToastActivatorCLSID registered).DeepSeek Harness 的 Windows 11 系统通知桥接插件:当工具操作需要用户确认、以及模型运行完成时,弹出带 DeepSeek 品牌(名称、鲸鱼图标、音效)的系统通知,不用一直盯着 Harness 窗口。
零运行时依赖、零构建步骤、纯 ESM JavaScript。
| 场景 | 事件 | 标题 | 音效 |
|---|---|---|---|
| 需要用户确认 | approval/request(瀑布事件,仅旁观) |
需要确认 | Notification.Looping.Alarm(循环警报) |
| 模型运行完成 | agent/status running → idle(过滤子代理) |
运行完成 | Notification.Default(默认提示音) |
品牌自愈:每次加载时用纯 Node 重新生成 DeepSeek 鲸鱼图标(不依赖渲染库),写入 %LOCALAPPDATA%\DeepSeekHarness\deepseek.ico,并把 AppUserModelID DeepSeekAI.DeepSeekHarness 重新注册进 HKCU\Software\Classes\AppUserModelId\...(显示名 + 图标路径)。通知经 CreateToastNotifier(aumid) 发出,Windows 会将其归属为 DeepSeek Harness 而不是 PowerShell——名称、图标、音效都正确。
图标直接由官方 favicon 路径数据光栅化生成,因为 librsvg(sharp 底层)会把这条特定路径压扁成一条细线;
icon.mjs里的扫描线光栅化绕开了该缺陷。
方式 A:本地 clone 后在 profile 的 package.json 里加 "dsh-win-notify": "file:...路径",再 dsh plugin --profile <profile> install。
方式 B:发布到 npm 后 dsh plugin --profile <profile> add dsh-win-notify。
方式 C:git 依赖 "dsh-win-notify": "github:<你的账号>/dsh-win-notify" 后 pnpm install。
把包加入 profile 的 dsh.profile.bundles(自带 cordis.patch.yml 会插入 win-notify 行),或在 profile 的 cordis.patch.yml 手动插入:
- insert:
- id: win-notify
name: 'dsh-win-notify'
重启 DSH。此时「设置 → 系统 → 通知」里会出现 DeepSeek Harness 条目(确保开关打开;专注助手可能静音)。
全部可选:
- id: win-notify
name: 'dsh-win-notify'
config:
enabled: true
appName: DeepSeek Harness
aumid: DeepSeekAI.DeepSeekHarness
confirmationTitle: DeepSeek Harness · 需要确认
completionTitle: DeepSeek Harness · 运行完成
confirmationSound: Notification.Looping.Alarm
completionSound: Notification.Default
node tests/icon.test.mjs # 或 npm test
验证 ICO 结构、PNG 条目与鲸鱼渲染内容。
ToastActivatorCLSID)。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notifications。