返回目录
文件与数据 插件

dsh-desktop-drop-path

duanzongyuan/dsh-desktop-drop-path

该仓库暂未提供项目说明。

Stars
0
Forks
0
Issues
0
更新
13 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:duanzongyuan/dsh-desktop-drop-path

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-desktop-drop-path

English | 中文

Drag a file into the DSH composer to auto-fill its absolute path.

Desktop only. This plugin resolves a file's real absolute path through the DSH Desktop Electron preload bridge (window.__DSH_DESKTOP_FILE_PATH__). In the plain web UI (dsh web in a browser) that bridge does not exist, so the plugin installs nothing and stays inert.

What it does

Drop a non-image file (.pdf, .md, .txt, .json, code, …) onto the composer input box. Instead of uploading it, the plugin inserts the file's full absolute path into the input, so you can send it to the agent and it can read the file straight from disk.

  • Single file → one line with the path.
  • Multiple files → one path per line.
  • Image drops are untouched and keep using the built-in image attachment rail.

Install (from GitHub)

pnpm dsh plugin --profile <profile-name> add git+https://github.com/duanzongyuan/dsh-desktop-drop-path.git

Replace <profile-name> with your DSH profile (e.g. desktop, web), and duanzongyuan with your GitHub username.

After installing, restart DSH Desktop.

Why a path instead of an upload?

DeepSeek Harness reads files from your disk (the workspace / any absolute path). Its message-attachment protocol is image-only, so there is no "upload a non-image file" channel. This plugin bridges that gap the natural way: it hands the agent the file's real path so the agent can read it itself.

Notes / caveats

  • Desktop only. Requires the DSH Desktop app. In a plain browser it does nothing (it deliberately does not insert a misleading filename).
  • Coupling. Clearing the built-in drop hint overlay relies on the @deepseek-ai/dsh-client-ui-attachment plugin's window-level dragend reset. If that internal plugin changes, overlay dismissal may need a tweak.
  • Non-image drops are consumed in the capture phase; the built-in image handler does not reject them.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类文件与数据
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: drag-drop、file-path。