Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:whoisDDD/dsh-approval-notify
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A minimal browser-only DSH Web GUI plugin that reminds you when a session needs attention or a background session finishes.
Version 0.2.1 targets DSH 0.2.1-alpha.1. It reads labels from sessions.list and attention state from the public uiSession.sessionStatus observable: pendingInteraction for approval/question/plan review and completionUnread for background completion. It prefers native browser notifications, and falls back to a larger stacked toast panel when native notifications are unavailable. On Windows, granted browser notifications surface through the system notification center.
| DSH state | Notification title | Notes |
|---|---|---|
approval |
Approval request | The session is waiting for an approval decision. |
question |
Question request | The session is waiting for a user choice or answer. |
plan-review |
Plan review | The session is waiting for plan confirmation. |
completed |
Completed | A top-level background session has finished. |
completed on a subagent |
Subagent completed | A subagent/background child session has finished. |
dsh-web-ui-all.sessions, uiSession, and uiWorkspace Client services; no DOM queries of core page structure.requireInteraction: true.git clone https://github.com/whoisDDD/dsh-approval-notify.git
cd dsh-approval-notify
pnpm install --frozen-lockfile
pnpm build
dsh plugin --profile web add link:$(pwd)
After installation, restart dsh web and reload the DSH Web GUI page. The browser may ask for notification permission on first load. While permission is ungranted, the plugin immediately shows in-page toast reminders, even if the permission prompt never settles. Native notification creation failures also fall back to toast.
DSH Desktop has its own desktop profile; installing the plugin into the web profile does not automatically change Desktop. In DSH 0.2.1-alpha.1 and 0.2.2-alpha.2, their default directories are ~/.dsh/profiles/desktop and ~/.dsh/profiles/web; a DSH_HOME set for the desktop process changes the root. Start Desktop at least once to initialize its profile, then fully quit Desktop and its Host before using dsh plugin --profile desktop add link:<absolute-plugin-path>. Preserve existing profile backups and make sure the CLI and Desktop use the same user and DSH_HOME. Restart Desktop and verify the startup log and served JavaScript.
pnpm install
pnpm typecheck
pnpm build
pnpm test
Useful scripts:
pnpm test — run all Vitest tests (build first after changing source). Includes the shipped bundle against the published DSH UiSession service, with fixture remote events; no provider API calls.pnpm test:notify — run the core notification behavior tests.pnpm typecheck — run TypeScript type checking.pnpm build — generate lib/ artifacts.pnpm watch — rebuild the client bundle during development.The startup log is [approval-notify] loaded (session-navigation, event-driven). A native click logs native notification clicked, followed by session navigation requested after the host navigation call returns. These logs omit session titles and IDs; a returned call does not guarantee that the UI switched or its window gained focus. If the old loaded log persists, inspect the actual Host/profile and loaded plugin rather than relying on source-map line numbers alone.
.gitattributes keeps TypeScript sources and generated bundles at LF so Windows checkouts do not embed CRLF in source maps. Existing working trees may need affected files checked out again after updating; preserve any local changes first.
SessionSummary.completed and uiSession.pendingInteractions fields are not used. Completion means DSH reports an unread background stop; it does not certify that the task succeeded.sessions.list.byId are also observed, even when they are outside the Host catalog ids. Unknown metadata is ignored until a label is available.BSD-3-Clause.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notifications。