dsh_upload_file
其他 活跃维护

dsh_upload_file

JarszmLovesAI/dsh_upload_file

支持各类文件直接粘贴至编辑器、收件箱完成存储,自动生成对应缩略图,可快速读取收件箱内文本内容,图片理解需搭配自带的图像读取模块使用

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

dsh-inbox-paste

中文文档

DSH web bundle: paste or pick files in the composer, store under {session.cwd}/inbox/, show thumbnails before/after send. Agents use list_inbox / read_inbox for text; image understanding requires your own vision skill or model (see below).

Example: pasted screenshot analyzed via image-reader skill

Requirements

Install

dsh plugin --profile web add github:JarszmLovesAI/dsh_upload_file
dsh web

Remove: dsh plugin --profile web remove dsh-inbox-paste

Usage

  1. Paste (Ctrl+V / Cmd+V) or use the paperclip in the composer.
  2. Pending thumbnails appear above the input; remove with × before send (no disk write yet).
  3. On send, files land in inbox/; the bubble can show thumbnails (see config).
  4. Agent: list_inbox → read_inbox for text; for images, use the bundled image-reader skill or your own vision tooling.

Upload ≠ multimodal understanding

This plugin does not use Harness native image attachments. The main model only gets path markers unless you add vision:

  • Install the optional image-reader skill and set ARK_API_KEY in ~/.dsh/.env, or
  • Bring your own vision MCP / skill / multimodal model.

Configuration

~/.dsh/profiles/web/cordis.patch.yml (adjust profile name):

- id: inbox-paste
  config:
    uploadMaxBytes: 26214400
    inboxDirName: inbox
    allowedExtensions: []
    customizeUserBubble: true   # false = built-in user bubble (may show raw paths)

Restart dsh web after changes.

vs dsh-file-upload

dsh-inbox-paste dsh-file-upload
Paste ✅ ❌
Storage {cwd}/inbox/ {cwd}/.dsh-uploads/
Built-in PDF ❌ ✅

Tests

npm test

License

MIT