bill9109/dsh-drag-and-drop 预览 preview

bill9109/dsh-drag-and-drop

Plugin插件 Native原生 ⭐ 22 BSD-3-Clause Clients & Launchers客户端与启动器

为 DSH Web UI 增加跨平台文件拖拽与原始路径插入能力,无需复制文件

Project Overview项目介绍

This repository hosts a native plugin built exclusively for the DeepSeek Harness (DSH) Web UI. It enables users to drag local files or folders directly onto any area of the DSH web interface, automatically resolves their original absolute filesystem paths, and inserts those paths directly into the current conversation input box. It solves the problem where browsers by default do not expose real local file paths to web applications for security reasons. To install the plugin, you can run the official DSH plugin command, and no source code changes or manual configuration files are required.

When a user drops a file onto the DSH Web UI, the plugin first checks the current workspace and all registered workspaces to retrieve the correct path. If the browser does not expose the original path, the plugin will search through the system file index or within a bounded directory range to locate the file. When multiple candidate files share the same name, the plugin compares metadata and even content fingerprints to find the correct one, and it will ask the user to manually select if it cannot automatically distinguish between identical candidates. It is designed for all users who work with local files using the DSH Web version for development and editing tasks.

The plugin is open-sourced under the permissive BSD-3-Clause license, and it supports macOS, Linux, and Windows desktop platforms. On Linux, installing plocate is recommended for faster global path resolution, while on Windows installing the Everything command-line tool significantly speeds up search on large disks. The plugin limits directory searches to at most 10,000 entries and 32 directory levels, and it never follows symbolic links or Windows junctions. All path resolution and processing happens locally on the host machine running DSH, and no file information is ever uploaded to external services.

这是一个专为DeepSeek Harness(DSH)Web UI开发的原生插件,核心功能是让用户可以将本地文件或文件夹拖拽到DSH网页界面上,自动解析并插入这些文件或文件夹的原始绝对文件路径到当前对话输入框,不需要上传、移动或复制任何文件,解决了浏览器默认不会向网页暴露真实本地文件路径的问题。安装可以通过DSH官方插件命令完成,无需修改源码或手动编写配置文件。

普通用户拖拽文件到DSH Web界面后,插件会先在当前工作区和已注册的工作区中查找文件路径,如果浏览器没有暴露路径,会通过系统文件索引或限定范围搜索定位文件。遇到多个重名候选文件时,插件会比对元信息甚至内容指纹,无法自动区分时会让用户手动选择正确路径。适合所有使用DSH Web版处理本地文件的日常开发与编辑场景。

该插件采用BSD-3-Clause许可证开源,支持macOS、Linux和Windows三大桌面平台,不同系统下推荐安装对应系统工具提升搜索速度,比如Linux推荐安装plocate,Windows推荐安装Everything命令行工具。插件限定目录搜索最多遍历10000个条目和32层目录,不会跟随符号链接,所有路径解析操作都在本地完成,不会上传任何文件信息。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 22 stars - an early-stage project星标 22,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:omdsh-dev/dsh-drag-and-drop

把 bill9109/dsh-drag-and-drop 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-drag-and-drop — Drag local files in and insert their real paths

Release v0.1.6 License: BSD-3-Clause Node.js DSH profiles

Install: dsh plugin --profile web add github:omdsh-dev/dsh-drag-and-drop

A DeepSeek Harness Web UI plugin: drag local files or folders onto any part of the page and their original absolute filesystem paths are inserted into the current conversation input — without uploading, moving, or copying anything.

English | 中文

Why this exists

A browser never hands a web page the real filesystem path of a dropped file — it exposes only a local file URI when it feels like it, and often nothing at all, for security. DSH, though, operates on real files: its tools read, run, and patch actual paths on the machine. Drop a file into an ordinary web input and you get either an upload (a copy that silently breaks the file's relationship with its neighboring dependencies) or a hand-typed path that is easy to get wrong.

This plugin closes that gap on the machine running DSH. It converts the browser's local file URI into the native absolute path, and when the browser hides the path entirely it resolves the file back to its real location — through the current Workspace, registered Workspaces, the OS file index, and a bounded directory search — then writes that path into the current conversation input. The file never leaves its directory.

Features

  • Drag files onto any part of the Web UI to insert their original absolute paths
  • Full-page dim + blur hint while dragging
  • Supports files and folders; drag multiple items at once — one path per line
  • Native paths on macOS, Linux, and Windows
  • POSIX paths, Windows drive-letter paths, and UNC network paths
  • No uploading, moving, or copying of files
  • Locates files in the current Workspace and registered Workspaces first
  • When the browser hides the original path, uses the local file index and bounded directory search
  • Computes content fingerprints only when multiple candidates exist
  • When several byte-identical copies cannot be told apart automatically, lets the user pick the path
  • Failed lookups surface as a dismissible plugin toast (auto-dismisses after 8s; hovering pauses the timer)
  • Writes the draft via DSH's input-state service instead of touching the input DOM

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-ros2 下一个 Next dsh-design-skills →