Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:purejiang/dsh-system-notifications
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A client-only plugin for the DeepSeek Harness (dsh) Web UI that raises a desktop
notification when a session needs you, and jumps back to that session when you click it.
running flips true → false) → notification.Notifications are edge-triggered: the first snapshot after page load is taken as the baseline, so a refresh never floods you with a backlog.
Version 1.2.0 — a second General row, Persistent notifications, asks the OS to keep a notification on screen until you click or dismiss it (Web Notification
requireInteraction).Version 1.1.0 — notification titles name the project (
Project · Event, e.g.harness-plugins · Approval required), and the body names the session.
engines.dsh: >=0.2.1-rc.2), Web GUI served in a
Chromium-based browser (Chrome/Edge). http://127.0.0.1 is a secure context, so no HTTPS is
required for the Notification API.The package is not published on npm yet; install it straight from this repository:
dsh plugin --profile web add github:purejiang/dsh-system-notifications
Or in the Web UI: Plugins → Install, and paste
github:purejiang/dsh-system-notifications.
The plugin is build-free: it ships index.js (an empty host half that registers the bundle row)
and client.js (the whole feature). Refreshing the page after install is enough.
http://127.0.0.1:3080 in
chrome://settings/content/notifications (or the site icon in the address bar) and retry.sessionStorage), or open the page
with ?dshNotificationTest=1.pendingInteraction appears (approval, question, or plan-review), or
running changes from true to false.<project> · <event>. The project is the title of the workspace that owns the
session (the default workspace is localized, e.g. “Default Workspace”); if the workspace list
is not loaded yet it falls back to the directory name of the session's cwd.tag), and at most 6 notifications are kept open.requireInteraction so the OS
keeps the toast up until the user acts on it, instead of hiding it after the default timeout.Both rows are built from the host's own primitives (Switch/Button from
@deepseek-ai/dsh-client-ui-primitives), so their spacing and type match the built-in settings
rows. The main row shows the current state and explains why notifications are off when the
browser permission is denied; the second row controls persistent notifications.
Everything is done through documented client extension points; no host-side code is needed:
| Need | Extension point |
|---|---|
| Detect waiting / finished | shell.overlay component reading props.useSessionStatus() |
| Session title | props.useSessions() → SessionListState.byId[id].displayTitle |
| Project name | props.useWorkspaces() (workspace title / session ownership), fallback to cwd |
| Am I looking at it | props.usePanelInfo().activePanelId, document.hasFocus(), visibilityState |
| Raise the notification | the browser Notification API |
| Click → open session | ctx.get('uiWorkspace').openSession(sessionId) |
| Settings controls | settings.general.item |
The running transition is observed both through React snapshots and by subscribing to the
client uiSession.sessionStatus store, because background tabs throttle rendering and would
otherwise coalesce a short run into no visible change.
package.json # dsh.bundle + dsh.client declarations
cordis.patch.yml # inserts the bundle row
index.js # host half: registers the bundle, no logic
client.js # observer, project-name resolution, session tracker, settings rows
locale/en.json # plugin list title/description (English)
locale/zh.json # plugin list title/description (Chinese)
icon.svg # plugin list / settings row icon
notification-icon.png # notification icon source (also embedded in client.js)
notification-icon.svg # vector source of the notification icon
requireInteraction and fall back to
the normal notification timeout.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notifications。