DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-table-attach

y

dsh-table-attach

Manifest valid★ 1

Attach tables and documents (xlsx, csv, pdf, zip…) to the DSH composer via paste or drag-and-drop: files are saved into the session workspace and an @reference is inserted.

UI (client)hasBundlePatch

dsh-table-attach

Paste or drag tables & documents (.xlsx, .csv, .pdf, .zip, …) into the DSH web composer. The file is saved into the current session's workspace and an @reference is inserted at the caret, so the agent reads the real file.

The official DSH composer only accepts images (PNG/JPG/WebP/GIF) on paste/drop. This plugin adds non-image file attachments.

Features

  • Paste & drop: works for file pastes (⌘C a file, then paste) and drag-and-drop.
  • Any non-image file: spreadsheets, CSVs, documents, PDFs, archives, JSON, …
  • Saves into the session workspace: files land in <workspace>/attachments/ (auto-renamed with a -1/-2… suffix on name clashes).
  • Inserts an @reference: e.g. @attachments/report.xlsx (quoted as @"attachments/my report.xlsx" when the name contains spaces) — matching the host's @-mention grammar so the agent can read the file.
  • Safe by default: 50 MiB size cap, executable extensions blocked (.exe, .dll, .sh, .js, …), and path-traversal-proof file names.
  • Images untouched: PNG/JPG/WebP/GIF pastes/drops still go through the built-in image path.
  • i18n: zh / en toasts and drop-hint overlay.

Install

Currently distributed from GitHub (npm publishing pending):

dsh plugin add github:yybukn/dsh-table-attach

For local development:

dsh plugin --profile web add /path/to/dsh-table-attach

Usage

  1. Open any session (it provides the workspace).
  2. Drag a .xlsx / .csv / .pdf / .zip … into the composer, or copy a file and paste it into the composer.
  3. A toast reports progress; on success the composer contains @attachments/<file>.
  4. Send the message — the agent can read the referenced file.

Pasting table cell text (copied out of Excel) is treated as ordinary text and passes through untouched; it is not converted into a file.

How it works

  • Host side (lib/index.js) registers a Typert Remote service tableAttach.saveFile(agent, payload). It validates the payload, keeps the path inside the session workspace, de-duplicates file names and writes with 0o644. It runs as a cordis plugin (no build step — plain ESM + zod).
  • Client side (lib/client.js) is a web bundle. It intercepts paste/dragenter/dragover/drop at the document level before the conversation plugin's handlers, base64-encodes the file, calls the host remote, and inserts the @mention into the composer (which is a Lexical contenteditable — insertion goes through execCommand("insertText"), the same beforeinput path the editor itself uses).

Security

  • Files larger than 50 MiB are rejected before bytes cross the wire.
  • Executable extensions (.exe, .dll, .app, .sh, .js, .jar, …) are blocked.
  • File names are sanitized (no directories, control characters, dotfiles or traversal), and the target path is verified to stay inside the workspace.
  • The agent only ever sees the workspace-relative reference, never an arbitrary absolute path.

Development

dsh-table-attach/
├── lib/
│   ├── index.js      # host: cordis plugin + Typert Remote service
│   └── client.js     # browser: interception, upload, composer insertion
├── cordis.patch.yml  # loader entry for the host bundle
├── dsh.plugin.json   # plugin manifest
└── package.json      # exports ./client for the web platform

The host runs in the DSH harness (Node); the client runs in the web GUI. When installed from npm the host's peer deps (@deepseek-ai/cordis, @deepseek-ai/dsh-typert-protocol, zod) resolve from the profile's shared dependency closure. A local link: install outside the profile needs those deps made resolvable (e.g. node_modules symlinks into the app bundle) — these are not part of the package and are git-ignored.

License

MIT

Compatibility

DSH 0.1.6-alpha.2: failedDSH 0.2.1-rc.4: failedDSH 0.2.1-rc.3: failed

Versions

Latest versionPublishedSize
0.1.0——

Comments

Loading…

Similar plugins

dsh-paste-file

by lhh666-6

Paste/drop files into the DSH composer, save them under the current workspace, and insert relative paths.

Manifest valid

★ 0

MIT

TypeScript

Aug 23, 2026

dsh plugin --profile web add dsh-paste-files

by whyzsm

Attach files/folders in the DSH composer: clipboard paste, native picker, @-mention path search, paged Markdown conversion

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 28, 2026

dsh plugin --profile web add dsh-clipfile

by dannyvan

Drag & drop or click to attach any non-image file (PDF/Word/Excel/ZIP/text) into the composer: in the desktop shell it resolves the real Finder path instantly; otherwise it uploads to the workspace an

UI & ExperienceTerminal & ClientsManifest valid

★ 4

↓ 99/wk

MIT

JavaScript

Aug 16, 2026

dsh plugin --profile web add dsh-file-drop

by seeingrain

Upload any file to DSH, isolated per workspace and session — a composer file library with server-side thumbnails and a context menu to open, copy, re-download or delete.

UI & ExperienceManifest valid

★ 0

MIT

TypeScript

Sep 5, 2026

dsh plugin --profile web add dsh-upload-file

by zhanghuqqqq

DSH plugin: drag & drop anything into the composer - local files upload with absolute-path references, web images/links download host-side, plain text inserts. Per-session .dropped/<sessionId>/ landin

Tools & CapabilitiesManifest valid

★ 0

↓ 45/wk

MIT

JavaScript

Sep 8, 2026

dsh plugin --profile web add dsh-drop-in

by WJZ-P

Adds file and folder drag-and-drop attachments to the Web UI, with composer cards, persistent history, and workspace-backed paths.

Tools & CapabilitiesUI & ExperienceManifest valid

★ 6

↓ 166/wk

MIT

JavaScript

Aug 19, 2026

dsh plugin --profile web add dsh-attachment