aa2246740/dsh-dragndrop-attachments 预览 preview

aa2246740/dsh-dragndrop-attachments

Plugin插件 Native原生 ⭐ 2 MIT Docs & Writing文档与写作

需要官方 DeepSeek Harness 0.1.5-rc.2(dsh 或 npx @deepseek-ai/dsh)。dsh plugin 在 $DSHHOME/profiles/web 里跑 pnpm,所以 pnpm 必须在 PATH 上。装完后重启这个 Host,再刷新页面。这条命令只写 profile,不会热挂正在跑的进程。

catalog descriptioncatalog 简介 / catalog description:Codex-style drag-and-drop files, folders, ZIP and Office attachments for DeepSeek Harness

Project Overview项目介绍

This is a drag-and-drop attachment plugin for DeepSeek Harness. It supports dragging images, Office documents, ZIPs, folders and more, builds a local index for the model to read specified content. Use it when you need AI to access multiple types of local attachments. Note attachment content is marked untrusted and cannot be read directly via bash from disk.

这是DeepSeek Harness的拖放附件插件,支持将图片、Office文档、ZIP、文件夹等拖入会话,在本地建立索引后供模型读取指定内容。需要让AI读取本地多种格式附件内容时可使用,注意附件正文被标记为不可信用户数据,不能通过bash直接读取磁盘路径。

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

CLI Install命令行安装

dsh plugin --profile web add github:aa2246740/dsh-dragndrop-attachments

aa2246740/dsh-dragndrop-attachments 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH DragNDrop Attachments

dsh plugin --profile web add github:aa2246740/dsh-dragndrop-attachments

需要官方 DeepSeek Harness 0.1.5-rc.2dshnpx @deepseek-ai/dsh)。dsh plugin$DSH_HOME/profiles/web 里跑 pnpm,所以 pnpm 必须在 PATH 上。装完后重启这个 Host,再刷新页面。这条命令只写 profile,不会热挂正在跑的进程。

仓库已提交编好的 lib/package.json 声明了 dsh.bundle.patchgithub: 安装因此不跑 prepare,也不需要给 pnpm ≥10 开 allowBuilds

dsh 不在 PATH 时:

npx @deepseek-ai/dsh plugin --profile web add github:aa2246740/dsh-dragndrop-attachments

DSH.app 的 desktop profile 不能吃 github:;请用 dsh web 装进 web profile。

把文件、Finder 文件夹、Office 文档和 ZIP 拖进会话,在本机建索引,再给模型工具去读指定行、区间、幻灯片、备注或压缩包条目。

架构图

图片预处理改编自 OpenAI Codex 的 prompt-image 逻辑,Rust 译成 TypeScript 后接到 DSH 原生图片附件。

可拖 PNG、JPEG、WebP、GIF、DOCX、XLSX、PPTX、CSV、常见文本和代码、ZIP、Finder 文件夹。模型用 list_attachments / read_attachmentattachment_id 读,不要用 bash 去磁盘猜附件位置。

详细使用见 USER_GUIDE.zh-CN.md

本机已有 clone 时:

git clone https://github.com/aa2246740/dsh-dragndrop-attachments.git
dsh plugin --profile web add ./dsh-dragndrop-attachments

然后同样重启这个 Host,再刷新页面。

dsh plugin --profile web remove dsh-dragndrop-attachments

本机数据

非图片附件在 ~/.dsh/dragndrop-attachments/v1。浏览器拖放不会把 Finder 原始绝对路径暴露给网页。模型只看到 attachment_id。附件正文标成不可信用户数据。若本机还有早期预览版 ~/.dsh/codex-attachments/v1,会继续用它。

Office 随包固定 OfficeCLI 1.0.144(macOS arm64),校验见 vendor/officecli/manifest.json

开发

pnpm install --ignore-workspace --frozen-lockfile
pnpm check

第三方许可见 THIRD_PARTY_NOTICES.md

上一个 Prev DeepSeek-Harness-Desktop 下一个 Next dsh-completion-notifier