hanbernate/dsh-save-button ↗★ 0

dsh-save-button

在Web界面直接下载交付的文件 适合需要从Web GUI直接下载文件而不想使用SFTP的用户。

包名
dsh-save-button
兼容性
待验证
版本
0.1.2
许可证
MIT
最近更新
2026年9月27日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hanbernate/dsh-save-button

Usage

The button sits to the right of the official Open button, one per delivered file:

ActionBehavior
Downloadfirst sends HEAD /api/download.button?sessionId=…&seq=…&index=… to probe availability, then hands the file to the browser's download manager with ``; the file name comes from the Host's Content-Disposition
Opensame as official: previews the file in the sidebar
▾ menuofficial actions: open in default app / open containing folder (Finder / File Explorer); disabled when the Host has no desktop
On failurethe reason is shown in place (e.g. "file is no longer in this session") and the same button retries
More than 4 filesthe official collapse is preserved: All N files / Collapse

Downloads are addressed only by the (sessionId, seq, index) triple — there is no path parameter — so the only files that can be downloaded are the ones this session declared with present. Resolution, containment and type checks, and chunked reads all happen in the Host half. See doc/architecture.md (Chinese).