Skip to content

Releases: jing-hy/dsh-file-drop-eac

Release list

v0.1.0

Choose a tag to compare

@jing-hy jing-hy released this 21 Aug 05:31

dsh-file-drop-eac v0.1.0 — Release Notes

「拖入文件/文件夹到对话」的 Deepseek Harness EAC 特化插件。本包是 EAC 客户端内置插件
dsh-file-drop 的重写/特化版,作为其替代品发布。

移植来源

  • 原插件:Deepseek Harness EAC 内置 dsh-file-drop
    (仓库内 resources/app/assets/plugins/dsh-file-drop,EAC 客户端 4.4.1 内置)。
  • 需求来源:Deepseek-Harness-EAC issue #141
    —— 支持拖任意文件/文件夹并拿到真实路径交给模型。
  • 参考实现:preload 已暴露的 dshDesktop.getPathForFilewebUtils.getPathForFile)。

移植目标

  • 目标形态:独立插件库,作为 EAC 客户端内置替代插件接入:
    • 登记进 resources/app/main.jsCOMPANION_PLUGINS{ id: 'file-drop-eac', name: 'dsh-file-drop-eac', dir: 'dsh-file-drop-eac' });
    • 分发到 resources/app/assets/plugins/dsh-file-drop-eac,由 syncCompanionPlugins 复制到 web profile 的 node_modules 并写 patch 行;
    • dsh-file-drop 出厂默认禁用(disabled: true,保留登记可回退)。
  • 本发布(独立仓库 dsh-file-drop-eac)即作为该内置插件的上游分发源。

变更(相对 dsh-file-drop)

行为 dsh-file-drop(旧) dsh-file-drop-eac(本包)
文本 / 代码文件 内容注入输入框(≤256 KB) 保留
二进制 / 超大文件 注入完整路径提示 保留
图片 注入路径提示/文本 不接管:拖图交给视觉桥 / 缩略图
文件夹 不支持(被静默忽略) 新增:识别 + 可操作降级提示
SQL(.sql) 按文本注入内容 只给路径提示,不注入内容

验证

  • node --test:11/11 通过(纯逻辑 + vm 端到端 drop 注入)。
  • client.js 为 classic-script bundle,经 window.__ModuleLoader__.load 注册,host 半边 no-op。

安装 / 接入(对 EAC 客户端)

  1. 将本包目录复制到 resources/app/assets/plugins/dsh-file-drop-eac
  2. main.jsCOMPANION_PLUGINS{ id: 'file-drop-eac', name: 'dsh-file-drop-eac', dir: 'dsh-file-drop-eac' }
  3. 重启 EAC(含托盘后台运行),syncCompanionPlugins 自动分发到 profile 并加载。

License: MIT。