dsh-file-upload
其他 活跃维护

dsh-file-upload

zhangbo1201/dsh-file-upload

支持在当前工作台网页编写端直接上传本地文件至工作空间,无需跳转页面或额外格式转换,操作简单流畅,可快速完成文件导入的前置准备。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
39 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:zhangbo1201/dsh-file-upload
git clone https://github.com/zhangbo1201/dsh-file-upload.git
git clone git@github.com:zhangbo1201/dsh-file-upload.git
README.md main

dsh-local-file-upload

中文

Adds a local-file upload button to the DeepSeek Harness Web composer.

  • Select multiple files in one pass, or paste ordinary files into the composer with Cmd+V / Ctrl+V.
  • PNG/JPG/WebP/GIF continue through DSH's native image attachment path; other clipboard files use this plugin.
  • 10 MiB limit per file.
  • Writes into .dsh-uploads/ under the current Session workspace.
  • Allocates collision-safe names without overwriting existing files.
  • Appends @.dsh-uploads/<name> to the composer after upload, ready for dsh-at-file and agent filesystem tools.
  • Sanitizes path separators, whitespace, and @ from stored names.
  • Rejects symlinked upload directories and verifies the decoded byte count on Host.

Install

dsh plugin --profile web add dsh-local-file-upload

To update later:

dsh plugin --profile web update dsh-local-file-upload

The transfer stays on the local DSH loopback connection; no file is uploaded to a cloud service.

Restart the active dsh web process after installation. The upload button appears in the composer toolbar.

Cleanup

Uploads remain in the workspace's .dsh-uploads/ directory until removed. Add .dsh-uploads/ to the project's .gitignore to avoid committing uploaded files accidentally.

Development

pnpm install
pnpm run check