re-ITRT/dsh-upload-ux
re-ITRT★ 0TypeScriptLast synced: 2026-08-16
DeepSeek Harness plugin: unified file import - byte-level upload store, file-list context injection, read_attachment/place_attachment tools, historical file bubbles
README excerpt
dsh-upload-ux DeepSeek Harness(DSH)上传体验优化插件: 统一文件导入体系 ——任何后缀的文件都能 拖入 / 粘贴 / 点击选择, 字节上传到附件库 (不依赖工作区路径,服务器部署可用), 文件清单随消息注入模型上下文,历史消息下方显示文件气泡(可下载),agent 可读取内容 或导出到工作区。完全不使用 DSH 官方图片导入链路。 背景(DSH Web 原生痛点) 痛点 现状 非图片文件无法上传 DSH Web 只收图片;非图片弹「仅支持 PNG、JPG、WebP、GIF」提示 拖入非图片后 overlay 卡住 drop 后「拖入图片」界面不消失 无法点击选择文件 没有 file input 粘贴只支持文本 Ctrl+V 文件无反应 上传文件 agent 不可见 无文件清单注入,agent 只能猜路径(曾猜 75 步) 方案 - 任何文件 drop / 粘贴 / 📎 选择 → 字节上传( uploadux/persistFile )→ host 存入 内容寻址附件库 /.dsh/attachments/uploadux/ (sha256 去重,manifest.jsonl 索引)——与工作区完全解耦 - 发送时( agent/pre-step )注入文件清单消息(role=user + plugin 来源 + notice 表单: UI 只显示「📎 附件 N 个文件」一行摘要,模型读到完整清单与 attachment id) - 模型侧工具 : - read attachment :按 attachment id 读取内容;支持分段(offset/limit/more,默认段 48 KB 避开 dsh spill-policy 的 50 KB 内联阈值);大文件自动镜像完整副本到工作区 .dsh-uploadux/reads/ (官方 read 工具在 spill-policy 中豁免,可读全量) - place attachment :把附件字节导出到会话工作区任意路径(边界校验,防 ../ 逃逸) - 历史消息: uploadux/files 会话事件(ignorable)记录「消息 ↔ 文件」关联,客户端 shadow 官方 user 节点渲染器,在文字气泡下方渲染文件列表气泡(文件名+大小+下载链接, 下载走 /plugins/dsh-upload-ux/download/ ,限 API token) - 交互照 Hermes:统一 rail 混排(缩略图降采样队列)、chip 三态(上传中/完成/失败点击重试)、 删除 chip 连带删附件、Esc 取消拖拽、深度计数防闪烁、drop 后焦点回输入框 - 限制(插件 config 可覆盖):单文件 50 MB、每批 20 个、批量总量 200 MB;超限整批拒…
View full README on GitHub →Category
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video — real files, HTML/PDF/PPTX/MP4 export. 🤖 Claude Code / Codex / Cursor / DeepSeek Harness / OpenCode & 20+ CLIs via BYOK.
★ 87,432
volcengine/OpenVikingSelf-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
★ 28,650
titanwings/colleague-skill将冰冷的离别化为温暖的 Skill,欢迎加入数字生命1.0!Transforming cold farewells into warm skills? It's giving rebirth era. Welcome to Digital Life 1.0. 🫶
★ 22,793