Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:cccjj55/dsh-plugin-wsl
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Run bash inside WSL from dsh. One tool, wsl_sh, with exit code, timeout and an honest truncation notice.
dsh on Windows can only run Windows-native commands. Most robotics / ML work is Linux-shaped —
pip, colcon, nvidia-smi, systemd, apt — so the usual workaround is copying commands into
another terminal by hand. This plugin closes that loop: the agent calls wsl_sh, gets stdout/stderr
and a real exit code back, and keeps going.
$ uname -a && python3 -V
exit=0 duration=2631ms
--- stdout ---
Linux DESKTOP 6.6.87.2-microsoft-standard-WSL2 x86_64 GNU/Linux
Python 3.12.3
--- stderr ---
wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。
(The stderr line above is real: WSL warns about the proxy setup on every call. The plugin passes it
through instead of hiding it — that warning is why a pip install is slow, and hiding it would cost
you an hour of debugging.)
# 1) add the package to a profile (forwards to pnpm inside the profile dir)
dsh plugin --profile web add github:cccjj55/dsh-plugin-wsl
# 2) enable the bundle: add the package name to dsh.profile.bundles
# in $DSH_HOME/profiles/web/package.json
{
"dsh": {
"profile": {
"bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-plugin-wsl"]
}
}
}
Restart the profile. No config required; optional keys are listed below.
| parameter | type | required | meaning |
|---|---|---|---|
command |
string | yes | bash command to run |
description |
string | yes | 5–10 word description, shown in the UI |
workdir |
string | no | Linux path to cd into (Windows paths are not translated) |
timeoutMs |
number | no | kill after this long (default 120000) |
distribution |
string | no | e.g. Ubuntu-24.04; defaults to the WSL default distro |
Profile config (all optional):
# cordis.patch.yml
plugins:
wsl:
distribution: Ubuntu-24.04
timeoutMs: 300000
maxOutput: 20000
wsl.exe prints its own diagnostics as UTF-16 while Linux programs print UTF-8.
The plugin sets WSL_UTF8=1 before spawning so the two streams never mix into mojibake.timedOut set, so the caller can
decide whether a longer bound is worth it.bash
tool instead of surfacing a confusing spawn error.vim, sudo password prompts and anything that reads
from a terminal will hang until the timeout./home/you/...), or /mnt/c/... for Windows
files.wsl.exe (~0.2–2.6 s overhead). For many small commands, batch them into one
bash -lc invocation.node test/smoke.mjs # includes a real wsl.exe call (Windows)
node test/smoke.mjs --dry # helper/contract checks only (any OS)
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。