Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:FST-EchoFly/dsh-im-phone-chat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
配套 dsh-im(@xmanrui/dsh-im)的 DSH 桌面端插件:
可以把手机 IM 通道(QQ / 微信 / 飞书 …)经 dsh-im 桥接进 DSH 的会话,以只读聊天镜像的形式显示在 DSH 界面里喵。
只读镜像:不写入会话,也不修改 dsh-im 安装包,dsh-im 升级/重装不影响本插件。 已在 DSH
0.2.1-rc.2+ dsh-im5.0.3(Windows 桌面端)实测可用。
@xmanrui/dsh-im,且至少一个 IM 通道(如 QQ)已连接dsh 命令可用;用插件管理器安装则不需要# <profile>:桌面端一般是 desktop,Web 端一般是 web
dsh plugin --profile <profile> add dsh-im-phone-chat
使用dsh自带的插件安装功能直接输入dsh-im-phone-chat安装就可以了喵
安装后刷新一次页面(桌面端 Ctrl+R / F5),左侧栏底部、设置按钮上方出现「聊天气泡」图标。
克隆或下载本仓库到本地任意目录(目录之后不要删/移动,插件以本地链接方式安装):
git clone https://github.com/FST-EchoFly/dsh-im-phone-chat.git
打开 DSH:设置 → 插件 → 安装本地插件,选择克隆下来的目录(包名 dsh-im-phone-chat)
启用「手机聊天镜像」插件
刷新一次页面(桌面端按 Ctrl+R / F5)
左侧栏底部、设置按钮上方出现「聊天气泡」图标,点击即可打开面板
git clone https://github.com/FST-EchoFly/dsh-im-phone-chat.git
# <profile> 换成你正在使用的 profile:桌面端一般是 desktop,Web 端一般是 web
# <克隆目录> 换成克隆出来的绝对路径,例如 D:\tools\dsh-im-phone-chat
dsh plugin --profile <profile> add link:<克隆目录>
dsh plugin --profile <profile> add dsh-im-phone-chat
git pull,再重启 DSH 或刷新页面。dsh plugin --profile <profile> remove dsh-im-phone-chat以
link:方式安装的包指向克隆目录,卸载插件不会删除源码目录。
QQ · 问候、QQ · 你好,带日期便于区分),默认选中最新的手机通道会话一般情况下无需配置:插件会通过 dsh-im 的管理 RPC(connection.status 返回的 bot.workspace)自动发现手机通道工作区,并结合「标题带 IM 通道前缀」的会话兜底。
只有在以下情况才需要改:
src/plugin.js 顶部的 FALLBACK_WORKSPACES 数组(填你的工作区绝对路径),然后重新构建(见下)仓库里已提交构建好的 client.js,普通使用无需构建;只有改源码时才需要:
# 安装构建依赖(esbuild / katex / markdown-it)
pnpm install
# 重新构建 client.js
pnpm run build
src/plugin.jsbuild.mjs(esbuild 打包后包一层 DSH 的 window.__ModuleLoader__ 注册格式)| 文件 | 作用 |
|---|---|
package.json |
bundle 与 dsh.client 声明(platform: web、immediately: true) |
cordis.patch.yml |
向 DSH 宿主插入插件行 |
index.js |
宿主侧空实现(本插件是纯客户端 UI) |
src/plugin.js |
客户端插件源码:UI、事件折叠、Markdown / KaTeX 渲染、图片预览 |
client.js |
构建产物:window.__ModuleLoader__ 客户端 bundle(内置 KaTeX、markdown-it) |
build.mjs / wrap.mjs |
esbuild 构建脚本;wrap.mjs 是在受限环境里先手动跑 esbuild 再包装的兜底脚本 |
locale/zh.json / locale/en.json |
插件管理器展示用的标题/描述 |
icon.svg |
插件图标 |
LICENSE |
MIT |
THIRD_PARTY_NOTICES.md |
内置第三方库(KaTeX、markdown-it)的 MIT 声明 |
main 全局面板槽位,图标注册到 sidebar.panellist,两者使用同一个 id,点击图标即切换到该面板ctx.sessions.retain() 拿到会话绑定,订阅 binding.eventSource 的连续事件窗口(用户消息、助手流式 chunk、结算消息)$...$ / $$...$$ 用 KaTeX 渲染成 MathML(Chromium 原生渲染,无需字体文件);流式中的半成品按纯文本显示,结束后排版session.readAttachment() 取原图字节 → Blob URL 渲染,滚动到附近才懒加载,卸载释放截至 2026-11,在 GitHub 与 npm 的 DSH 插件生态里没有找到功能完全相同的实现。下面是最接近的几类,以及本插件的差异:
| 插件 | 做什么 | 与本插件的差异 |
|---|---|---|
xmanrui/dsh-im(含 integrations/desktop-panel) |
IM 接入本体;可在左侧栏加「IM机器人」全局面板 | 打开的是机器人管理/配置面板,不是聊天内容镜像 |
| MichengAI/dsh-im-connect | 另一套 IM 接入;IM 会话归到工作区 Channels 标签下 | 只是把 IM 会话作为普通 DSH 会话查看,没有独立聊天镜像面板,也没有侧栏常驻聊天入口 |
| unfar/dsh-chat-plugin(dsh Chat) | 左栏 + 全屏 IM 风聊天面板 | 是 DSH 与 DSH 之间的聊天室,不是手机 IM 镜像 |
| JaMoLpE88/dsh-desktop-chat | 在 DSH 桌面侧栏内嵌 DeepSeek 官方 Chat | 数据源是 DeepSeek Chat,不是手机 IM |
| Jydsh/dsh-ding-card | 复用 dsh-im 连接,侧栏加「钉卡片」面板 | 功能是钉钉卡片设计/投放 |
| 201222-L/dsh-mobile-remote、dsh-mobile 等 | 在手机上看/控制电脑上的 DSH | 方向相反:把桌面 DSH 搬到手机,而不是把手机消息镜像到桌面 |
本插件的差异点:dsh-im 配套 + 左侧栏入口 + 实时气泡镜像 + Markdown/LaTeX/图片渲染,只读、不改 dsh-im 本体。
如果你发现了同类插件,欢迎开 issue 补充。
FALLBACK_WORKSPACES 兜底MIT,见 LICENSE。内置第三方库许可见 THIRD_PARTY_NOTICES.md。
A read-only chat mirror for DSH desktop: shows the phone IM conversation bridged by dsh-im, with live assistant streaming, Markdown + LaTeX, and inline images.
Requirements: DSH (web or desktop), @xmanrui/dsh-im installed and enabled with a connected channel.
Install (from npm, recommended)
dsh plugin --profile <your-profile> add dsh-im-phone-chat
Or clone this repo and install the local directory via DSH Settings → Plugins → Install local plugin,
or dsh plugin --profile <your-profile> add link:<absolute-path-to-clone>.
Then refresh the page once (Ctrl+R / F5). A chat-bubble icon appears in the left sidebar; click it to open the mirror panel.
Update: dsh plugin --profile <your-profile> add dsh-im-phone-chat (npm) or git pull in a local clone.
Uninstall: disable/remove the plugin in DSH, or
dsh plugin --profile <your-profile> remove dsh-im-phone-chat.
Built with KaTeX (MIT) and markdown-it (MIT); see third-party notices.
How it differs from related plugins: as of 2026-11 there is no other DSH plugin that mirrors the phone IM conversation itself in a desktop panel. The closest ones are dsh-im's own sidebar panel (bot management, not chat content), dsh-im-connect's "Channels" tab (IM sessions shown as ordinary DSH sessions), dsh Chat (DSH↔DSH chat rooms) and dsh-desktop-chat (official DeepSeek Chat, not IM). This plugin is the dsh-im companion that adds a real-time, read-only chat mirror with Markdown/LaTeX and inline images.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: wechat。