dsh-file-beam - DSH plugin: drag files into the web composer, resolve real absolute paths, hidden path injection for the agent (no copy, no path in composer).
在 DeepSeek Harness 终端运行:
dsh plugin --profile web add bleamayaka/dsh-file-beamEnglish · 简体中文
把文件拖入 DSH Web 输入区:解析出文件的真实绝对路径(不复制文件),以附件 chip 登记;发送消息时由 Host 把路径清单隐藏注入给 Agent(UI 只显示一行摘要,输入框内不出现路径文本),Agent 直接读取源文件进行分析。
dsh plugin --profile web add github:bleamayaka/dsh-file-beam
安装完成后重启 DSH Web(dsh web)并刷新浏览器生效。
text/uri-list 暴露真实路径时直接使用(零搜索);否则由 Host 按名称在 会话工作区 + ~/Downloads、~/Desktop、~/Documents 中搜索,返回候选绝对路径(如 C:\Users\...\Desktop\报告.docx),你点选正确的那个agent/pre-step 阶段把路径清单作为插件 notice 消息插入请求——模型看到完整路径,UI 只显示一行「📎 文件 N 个」摘要report.docx、data.csv)拖入 DSH Web 页面任意位置# 在 profile 的 cordis.patch.yml 中覆盖:
- id: dsh-file-beam
config:
searchDirs: ["~/Downloads", "~/Desktop", "~/Documents"] # 额外搜索目录
workspaceDepth: 10 # 工作区搜索深度
searchDirsDepth: 3 # 额外目录搜索深度
maxResults: 20 # 候选上限
lib/index.js — Host half:路径搜索、会话登记(attach/detach/pending)、agent/pre-step 隐藏注入lib/client.js — Browser half:拖拽捕获、dock chip(conversation.input.dock slot)、候选选择cordis.patch.yml — bundle 层声明(insert 自身)本插件属于 DeepSeek Harness 生态,欢迎到官方社区交流、反馈问题或分享使用体验:
dsh-plugin topic,可在 GitHub 上被检索发现本插件在实现过程中参考了以下开源项目与官方资料,特此致谢:
交互与路径解析
conversation.input.for(scope).submit() 直接提交,无需打字text/uri-list / text/plain 解析 file:// URL(含 UNC 网络路径)直接得到真实路径,跳过宿主搜索lastModified 的差值排序,最近修改的优先隐藏注入与持久化
agent/pre-step 插入插件 notice 消息,模型可见完整清单、UI 只显示一行摘要):参考 re-ITRT/dsh-file-fix 的附件桥接实现思路。source 字段(UI 侧、不进模型上下文),配合 conversationEvents 事件定义 + conversation.chat.node 键控插槽在对话历史中渲染附件卡片规范与文档
dsh.bundle / dsh.client / cordis entry / client bundle 包装):参考 DeepSeek Harness 官方文档 cordis-tutorial 与社区 make-dsh-plugin 规范。MIT
登录后即可为该插件评分和评价。
还没有人评价这个插件,来抢个沙发吧!