dsh-file-drop-eac
Manifest validDrag and Drop Files/Folders into Conversation - Built-in Replacement Plugin for Deepseek Harness EAC (replaces the deprecated dsh-file-drop, see issue #141)
dsh-file-drop-eac — 拖入文件/文件夹到对话(EAC 特化版)
Deepseek Harness EAC 配套插件:把本地文件/文件夹直接拖进对话输入框,让 agent 处理。 本包是已弃用的 dsh-file-drop 的 EAC 特化重写,针对"拖入图片会与视觉桥重复注入冲突"做了裁剪。
移植来源与移植目标
- 移植来源:Deepseek Harness EAC 内置插件
dsh-file-drop(仓库内resources/app/assets/plugins/dsh-file-drop),以及用户的拖拽真实路径需求 Deepseek-Harness-EAC issue #141。 - 移植目标:抽出为独立插件库
dsh-file-drop-eac, 作为 EAC 客户端内置替代插件(登记进main.js的COMPANION_PLUGINS并落到resources/app/assets/plugins/dsh-file-drop-eac),由客户端内的syncCompanionPlugins分发到 web profile,替换原dsh-file-drop。发布:https://github.com/jing-hy/dsh-file-drop-eac/releases。
与 dsh-file-drop 的差异
| 行为 | dsh-file-drop(旧) | dsh-file-drop-eac(本包) |
|---|---|---|
| 文本 / 代码文件 | 内容注入输入框(≤256 KB) | ✅ 保留 |
| 二进制 / 超大文件 | 注入完整路径提示 | ✅ 保留 |
| 图片 | 注入路径提示/文本 | ❌ 完全不接管:拖图什么都不做,交给视觉桥 / 原生缩略图 |
| 文件夹 | ❌ 不支持(被静默忽略) | ✅ 新增接管:识别并给出可操作降级提示 |
支持与限制
- 文本 / 代码文件(
.md/.js/.py/.json等常见文本扩展名与无扩展名文件): 内容自动注入输入框(上限 256 KB),带<!-- 拖入文件:<名> -->文件头。 - 二进制 / 超大文件:注入完整路径提示,agent 用文件工具按路径直接读取。
- 图片:不接管(避免与视觉桥/缩略图重复注入冲突)。
- 文件夹:识别为目录并提示 —— 浏览器 / Electron 出于安全限制拿不到文件夹的磁盘绝对路径
(
webUtils.getPathForFile只接受 File,文件夹是webkitGetAsEntry()返回的目录条目, 仅带虚拟路径),因此插件降级提示"在文件/项目目录标签打开该目录"或"关键文件逐一拖入"。
Electron 桌面端通过 preload 暴露的 dshDesktop.getPathForFile(webUtils)获取拖入文件的
完整磁盘路径;纯浏览器打开 WebUI 时自动降级为可读提示。
目录结构
dsh-file-drop-eac/
├── lib/
│ ├── index.js # host half(no-op,让包成为合法 bundle)
│ └── client.js # 浏览器半边(classic-script,经 __ModuleLoader__.load 注册)
├── test/
│ └── client.test.js # node:test + vm 沙箱(纯逻辑 + 端到端 drop 注入)
├── README.md
└── package.json
client.js 是 classic-script bundle(官方模块加载器只支持该形式,不能 import),纯逻辑挂在
window.__dshFileDropEacCore 上(生产无副作用),供 node 测试直接评估本文件。
测试
npm test
# 或
node --test
License: MIT。Deepseek Harness EAC 配套插件。
Comments
Loading…
Similar plugins
by gaor0605-kq
在 DSH 左侧栏查看工作区文件,拖进对话让 DSH 读取或修改 · DSH plugin: browse workspace files in the left sidebar and drag them into the chat
★ 0
MIT
JavaScript
Nov 6, 2026
dsh plugin --profile web add dsh-workspace-explorerby thawline
把交付卡片和消息图片拖到 Windows 桌面,并附上「打开所在文件夹 / 复制路径 / 另存为」
★ 0
MIT
JavaScript
Nov 8, 2026
dsh plugin --profile web add dsh-desk-dropLocal drag-and-drop attachments for DeepSeek Harness, delivered as an external plugin
★ 0
dsh plugin --profile web add dsh-dragndrop-attachmentsby skyzzq
DeepSeek Harness 插件:文件展示与链接交互。对话中提到的所有文件路径自动转为可点击链接,支持侧边栏秒级预览、外部编辑器跳转与资源管理器定位;内置同源界面强调色设置。
★ 0
MIT
JavaScript
Nov 13, 2026
dsh plugin --profile web add dsh-file-viewby luckamuu
DeepSeek Harness 插件:提供删除已归档会话的入口(可以彻底删除不会在次出现)
★ 0
MIT
JavaScript
Oct 8, 2026
dsh plugin --profile web add @local/archived-sessionsby Zenjibad
Extends the DSH web chat drag-and-drop to accept every file type: non-image files are saved into the active session workspace so the agent can read and use them.
★ 2
MIT
TypeScript
Sep 10, 2026
dsh plugin --profile web add dsh-drop-any-file