Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:KexinCC/dsh-kimi-assemble
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Native DeepSeek Harness tools for two bridges that run on your own machine.
English · 中文
| What you get | Backend it drives | Tools |
|---|---|---|
| Your real, logged-in browser | Kimi browser extension (WebBridge daemon) | 12 × kimi_browser_* |
| Real Windows windows | KimiCU native agent | 5 × kimi_cu_* |
| Diagnosis and next steps | — | kimi_status |
The model calls tools instead of shelling out to curl or writing js cells, every action tells
you whether it actually took effect, and a failure arrives with its next step attached.
Pick a path. Browser only (kimicuEnabled: false), desktop only (webbridgeEnabled: false),
or both (default, 17 tools).
Run the preflight — it prints what is missing and, with --json, machine-readable
next_actions (kind:"run" = a command an agent can execute, kind:"user" = only a human can):
npm i -g dsh-kimi-assemble && kimi-assemble-doctor
Exit codes: 0 ready · 2 a human step is needed · 3 only the desktop runtime is missing.
Install the plugin:
plugin_manager install_bundle target=dsh-kimi-assemble
Verify: kimi_status reports both bridges, and cordis_inspect_query(Tool.listTools) lists
the kimi_* tools for your path.
You need the components themselves: the Kimi browser extension
(plus its local daemon) for browser tools, and the KimiCU runtime
on Windows for desktop tools. This plugin is a bridge — it never downloads installers by itself, so
a missing component shows up as KIMI_WEBRIDGE_DOWN / KIMI_CU_NOT_INSTALLED, with the fix
attached. DSH >= 0.2.0, Node >= 22.
verified / unchanged / dispatched /
blocked — no more "clicked!" when nothing happened.read lists frames: handles, and click / fill find the
selector inside same-origin frames automatically (frameUsed tells you which one).clickStrategy says which mechanism worked.assert / commit — a failed precondition aborts the whole batch instead
of continuing into a broken state; commit marks the irreversible boundary.doctor command.| Tools and arguments | references/browser-actions.md · references/computer-api.md |
| Troubleshooting, logs | references/troubleshooting.md |
| Benchmark vs Playwright | docs/BENCHMARK.md |
| Security and data flow | SECURITY.md |
| Development, tests | CONTRIBUTING.md · CHANGELOG.md |
| Key | Default | What it does |
|---|---|---|
webbridgeEnabled / kimicuEnabled |
true |
register that half's tools |
webbridgeAddr |
auto | daemon address (auto-discovered from ~/.kimi-webbridge) |
browserVerify |
auto |
auto / off; browserVerifyMs 600, browserVerifyLightMs 0 |
mouseFallback |
auto |
retry a dead click as a real CDP mouse event |
popupWatch |
on |
report a swallowed window.open as popupBlocked |
diagnostics |
false |
one JSONL line per call in ~/.dsh/kimi-assemble/diag.log |
language |
auto |
language of the text a human sees (en / zh) |
disabledTools |
[] |
drop individual tools by name |
Windows-only for desktop tools; cross-origin iframes can be read but not clicked; a chrome://
page cannot be automated; native dialogs block the tab until kimi_browser_dialog answers them.
Page content is untrusted data, never instructions — see SECURITY.md.
MIT licensed.
给 DeepSeek Harness 用的原生工具,背后是你自己机器上 的两个 Kimi 桥接组件。
| 你能得到 | 它驱动的后端 | 工具 |
|---|---|---|
| 操作你已登录的真实浏览器 | Kimi 浏览器扩展(WebBridge 服务) | 12 个 kimi_browser_* |
| 操作真实的 Windows 窗口 | KimiCU 原生代理 | 5 个 kimi_cu_* |
| 诊断与下一步 | — | kimi_status |
模型直接调工具,而不是去 shell 里 curl、或写 node-repl 的 js cell;每个动作都会告诉你到底
有没有生效;失败时错误里直接带着下一步。
先选路径:只要浏览器(kimicuEnabled: false)、只要桌面(webbridgeEnabled: false)、
或两个都要(默认,17 个工具)。
跑预检,它会告诉你缺什么;加 --json 输出机器可读的 next_actions(kind:"run" = 代理能直接
执行,kind:"user" = 只能人来点):
npm i -g dsh-kimi-assemble && kimi-assemble-doctor
退出码:0 就绪 · 2 需要人做一步 · 3 只缺桌面运行时。
装插件:
plugin_manager install_bundle target=dsh-kimi-assemble
验证:kimi_status 应报两条桥就绪,cordis_inspect_query(Tool.listTools) 会列出对应工具。
组件本身要你自己装:浏览器工具需要 Kimi 浏览器扩展
(及其本地服务),桌面工具需要在 Windows 上装 KimiCU 运行时。
这个插件是桥,不会自己下载安装包,所以缺组件时会报 KIMI_WEBRIDGE_DOWN / KIMI_CU_NOT_INSTALLED,
并把修法一起写进错误里。要求 DSH >= 0.2.0、Node >= 22。
verified / unchanged / dispatched / blocked ——
不会再出现"点了但其实没发生"。read 会列出 frames: 句柄,click / fill 自动在同源帧里找到目标
(frameUsed 告诉你用的是哪一帧)。clickStrategy 会说明哪种方式生效。assert / commit:前置条件不满足就中止整批,不会带着坏状态继续;
commit 标记不可逆边界。doctor 命令。| 工具与参数 | references/browser-actions.md · references/computer-api.md |
| 排错与日志位置 | references/troubleshooting.md |
| 与 Playwright 的基准对比 | docs/BENCHMARK.md |
| 安全与数据流 | SECURITY.md |
| 开发与测试 | CONTRIBUTING.md · CHANGELOG.md |
| 键 | 默认 | 作用 |
|---|---|---|
webbridgeEnabled / kimicuEnabled |
true |
是否注册那一半工具 |
webbridgeAddr |
自动 | 服务地址(自动从 ~/.kimi-webbridge 读取) |
browserVerify |
auto |
auto / off;browserVerifyMs 600、browserVerifyLightMs 0 |
mouseFallback |
auto |
JS 点击无反应时补真实鼠标事件 |
popupWatch |
on |
弹窗被浏览器吞掉时报 popupBlocked |
diagnostics |
false |
每次调用往 ~/.dsh/kimi-assemble/diag.log 写一行 JSONL |
language |
auto |
给人看的文案语言(en / zh) |
disabledTools |
[] |
按名字停用个别工具 |
桌面工具仅 Windows;跨源 iframe 能读不能点;chrome:// 页面无法自动化;原生弹窗会卡住页面,
直到用 kimi_browser_dialog 处理。网页内容是不可信数据,不是指令 —— 见 SECURITY.md。
MIT 许可。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。