Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:platinum952/dsh-session-notify
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Reply toasts for DeepSeek Harness sessions.
Run several sessions in parallel across different workspaces, and the one you are not looking at still needs your attention. This plugin watches every session on the Host and, when a background session finishes answering, pushes a WeChat-style toast into the top center of the Web UI:
<workspace folder>-<session title>, one line, ellipsized.× in the top-right corner.The package is a DSH bundle: a Host row plus a browser half. Install it into the
running profile from the directory that holds this package.json:
plugin_manager install_bundle target: /absolute/path/to/dsh-session-notify
Or, from a shell inside the profile:
pnpm add /absolute/path/to/dsh-session-notify
then add dsh-session-notify to the profile's cordis.patch.yml (or enable the
row in the Plugin Manager). Reload the page once: the browser half is served from
the installed package, so a fresh page load is what activates it.
Uninstall with plugin_manager remove_bundle (or remove the row).
The browser half reads no Loader row config, so the knobs are constants at the
top of client.js. Edit them and reload the page:
| Option | Default | Meaning |
|---|---|---|
maxToasts |
6 |
Cards kept on screen; the oldest fall off the bottom. |
ttlMs |
0 |
Auto-dismiss delay. 0 keeps a card until it is closed; a positive value pauses while the window is hidden. |
pageMessages |
8 |
Message records requested by one tail read. |
maxBodyChars |
200 |
Longest reply excerpt kept; CSS owns the visible lines. |
includeActiveSession |
false |
Also toast the session open in this window. |
Everything runs in the browser; the Host half is an empty Loader entry.
api-session/status event and
reacts when a session stops running.session/projections), which
carries the durable title and the effective working directory.session/page, ending at
that watermark, and takes the last assistant message of the page.shell.overlay slot. The session is never opened, so the
notification costs one short read and does not touch the workspace view.The attention tone comes from the two forwarded waterfalls that block a turn:
user-questions/request and approval/request. The plugin reads the asking
session from the listener's scoped context (ctx.sessions.scopeOf(this)), shows
the question text, and always calls next() so the real answerer still runs.
The plugin keeps no durable state: a page reload starts from an empty stack, and only replies that finish while the page is open are announced.
The session Remote namespace is read with ctx.get('remote.session'), not
ctx.remote.session: a namespace is mounted on the Client root, while the
remote.session property resolves through the calling fiber's associate table
and is undefined from a plugin context.
Built against DeepSeek Harness 0.2.x (@deepseek-ai/dsh-*). It depends on the
shipped browser wire API — the forwarded api-session/* events and the
session.projections / session.page Remote methods — and on the
shell.overlay slot. Those are pre-stable: a Harness release that renames one of
them needs a matching plugin release.
The plugin styles itself with the public --dsw-alias-* theme tokens and the
--dsh-frame-overlay-top inset, so light/dark and the Windows caption are
inherited rather than re-implemented.
npm test # node --test: behaviour tests through a fake Client context
node --check client.js
The tests load client.js the way the page does — through
window.__ModuleLoader__ — and drive the real event handlers, projection and
page reads, store and card markup. No build step, no dependencies.
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: notifications。