Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:shaomingbo/dsh-attention
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Desktop attention alerts for DeepSeek Harness Web.
The bundle tells you when a session finishes a turn (always — even the one you are reading) and when an agent is waiting for approval, a question, or a plan review (while the page is in the background). It is a GitHub-distributed DSH bundle, not a shell modification.
| Event | When it alerts |
|---|---|
| Task finished (any session, including the one you are reading) | Always: sound + tab title flash + system banner |
| Approval / plan review / question | While this page is in the background or unfocused |
Each channel is independent and can be toggled in Settings → Alerts:
| Channel | Owner |
|---|---|
| Short chime (Web Audio, OpenCode/Codex-style) | The page, whenever it is open |
| Tab title prefix + favicon badge | The page (blocking waits hold it; finished flashes ~4 s) |
Native OS banner (osascript / notify-send / Windows toast) |
The host |
Single-producer rule: while a browser tab is alive (heartbeat fresher than ~8 s), the page owns the banner and the chime; the host backs off. If every tab is closed or frozen, the host fires the banner itself (with the bundled chime) — no duplicates, no gaps. Completions and waterfall approvals collapse onto a host-minted per-session ordinal. Questions and plan reviews occupy a live slot: the first tab to report open mints the identity, later tabs collapse, and close (when the wait leaves the session list) releases the slot so the next real question can ring. Concurrent reports of one identity single-flight: the host grants sound and fallback to exactly one caller. A client-side native failure is soft-recorded so echoes collapse; a backup failure leaves the event unclaimed so the first recovering tab can fall back. Completion edges observed while preferences are still loading are stashed and flushed once loaded.
When the native notifier binary is missing (notify-send absent, and so on), the host reports it, the Alerts page shows native notifications as unavailable, and the browser Notification fallback takes over automatically.
Preferred — install the fixed release tag with the package's own no-argument installer:
npx --yes github:shaomingbo/dsh-attention#v0.1.4
No arguments is the same as install. The installer only edits dependencies.dsh-attention and dsh.profile.bundles in the target profile's package.json (default profile web), writes it atomically, then runs pnpm install --ignore-scripts in that profile directory. It never stops or restarts DSH.
Check installation state:
npx --yes github:shaomingbo/dsh-attention#v0.1.4 status
Remove it (idempotent — safe to run twice, restores the manifest if dependency installation fails):
npx --yes github:shaomingbo/dsh-attention#v0.1.4 uninstall
Options available to every command: --profile <name> (default web), --source <source>, -h/--help. The default source is pinned to the current SemVer tag; you can also point it at a local checkout with link::
npx --yes github:shaomingbo/dsh-attention#v0.1.4 --source link:/path/to/dsh-attention
After installing or uninstalling: restart dsh web manually, then hard-refresh the browser.
Manual fallback — edit ~/.dsh/profiles/web/package.json yourself:
{
"dependencies": {
"dsh-attention": "github:shaomingbo/dsh-attention#v0.1.4"
},
"dsh": {
"profile": { "bundles": ["dsh-attention"] }
}
}
Then run pnpm install --ignore-scripts in that profile directory and restart DSH.
If you manage bundles through dsh plugin instead, the equivalents are dsh plugin --profile web add|update|remove dsh-attention.
Open Settings → Alerts to toggle:
Preferences live in $DSH_HOME/attention.json (default ~/.dsh/attention.json) so they survive a browser refresh.
approval/request but always calls next(). It never answers an approval.npm test
npm run check
lib/ is the release authority. The browser half is a hand-written window.__ModuleLoader__ bundle, matching other optional DSH Web plugins.
MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notification、notifications。