Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:yrui-ql/dsh-user-resend
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that adds a resend action to user messages in Chat.
After a Harness restart, a process interruption or a failed request, your user
message is still in the conversation but the model may not continue. Hover that
message, click Resend, and the plugin submits it again through the official
composer path — text, image attachments and @ file mentions included — so the
Agent continues without retyping.
在 DSH 对话(Chat)里,给用户角色发送的消息加一个「重新发送」按钮。
DSH 重启、进程中断、请求失败后,用户消息还在对话里,但 AI 可能不再继续输出。把鼠标移到那条用户消息上,点「重新发送」,插件会把该消息连同图片附件和 @ 文件提及重新发一次(走标准发送链路:排队和失败处理都由 Session Controller 负责),AI 会继续回答,不需要重新输入。
时间 · 复制 · 重新发送,与官方行一致(旧消息默认悬停显示)。@path / @"path with spaces" 文件提及是普通提示文本,原样发送。session.beginSubmission 登记本地回显,再带 requestId 调 session.prompt;失败时 retire 回显,不留下孤儿排队项。/goal)不经过命令解析器,会作为普通文本发送。需要命令语义时请用输入框。conversation.chat.node 的 user 渲染器(保留官方内容工厂,因此气泡、图片、引用仍由 ui-chat 渲染)。DSH 升级后若该渲染器签名变化,需要同步本插件。0.2.1-rc.5 上开发与验证。git clone https://github.com/yrui-ql/dsh-user-resend.git
然后在 DSH 会话中通过插件管理器安装(plugin_manager 的 install_bundle,target 指向克隆目录的绝对路径)。安装后它按普通 bundle 出现在「设置 → 插件」里。
卸载:在「设置 → 插件」中禁用或移除 dsh-user-resend 即可;它不写任何会话数据或配置文件。
user/message 的每个 content block,text 直接成为 { type: 'text', text };image 用 session.readAttachment(attachmentId) 读回字节,转 canonical base64 后成为 { type: 'image', mediaType, data, name }。session.beginSubmission({ mode: 'queue', text, attachments }) 登记本地回显并拿到 requestId,再 session.prompt(content, 'queue', undefined, requestId)。失败时 submission.abandon() 撤回回显;宿主负责排队、会话唤醒与错误上报。session.running === true 时提示等待),避免无回显的排队副本被合并/丢弃。conversation.chat.node 的 user 键注册 priority: -1 覆盖官方渲染器;内容仍调用官方 conversation.chat.user.content Factory(session 作用域),因此气泡、附件、引用展示不变。--dsw-alias-*)和宿主字体变量,不自带颜色方案。| 文件 | 作用 |
|---|---|
package.json |
bundle 清单:dsh.bundle.patch + dsh.client |
cordis.patch.yml |
插入 dsh-user-resend 插件行 |
index.js |
Host 空壳(能力完全在浏览器侧) |
client.js |
替换 user 消息渲染器 + 重新发送动作 |
locale/zh.json、locale/en.json |
插件展示元数据与 UI 文案 |
icon.svg |
插件管理器图标 |
test/manifest.test.mjs |
清单、导出、locale 与图标自检 |
npm test # node test/manifest.test.mjs
要求 Node.js 22+(仅校验需要;插件本身无运行时依赖)。
见 CHANGELOG.md。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: chat。