hanbernate/dsh-save-button ↗★ 0

dsh-save-button

Download files delivered by `present` straight from the Web GUI delivery card — no SFTP, no extra tools. 适合需要从Web GUI直接下载文件而不想使用SFTP的用户。

パッケージ
dsh-save-button
互換性
未検証
バージョン
0.1.2
ライセンス
MIT
最終更新
2026/09/27

インストール

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

ドキュメント

README 全文を読む ↗

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).