DeepSHPlugins
dsh-paste-path 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-paste-path

UI 增強JavaScriptMIT

macOS Finder 剪貼簿貼上:在 Finder 裡 Cmd+C 複製檔案或資料夾,回到 DSH 按 Ctrl+V 把絕對路徑插入輸入框;普通文字貼上的 Cmd+V 不受影響。

2 Starsjhuanxx44 更新時間 2026-08-21
訪問 GitHub 倉庫
dsh-paste-path 專案預覽

專案介紹

中文

macOS Finder 剪貼簿貼上:在 Finder 裡 Cmd+C 複製檔案或資料夾,回到 DSH 按 Ctrl+V 把絕對路徑插入輸入框;普通文字貼上的 Cmd+V 不受影響。

English

Finder clipboard paste for macOS: Cmd+C files or folders in Finder, then Ctrl+V in the DSH composer inserts their absolute paths; ordinary text paste with Cmd+V is untouched.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
jhuanxx44
倉庫
jhuanxx44/dsh-paste-path
GitHub Stars
2
Forks
0
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-21
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

54/ 100
維護活躍
86
文件與實用資訊
85
生態關注度
14
安裝便捷訊號
75
專案宣告訊號
100

近 21 天仍在更新;README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add dsh-paste-path

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-paste-path

English · 简体中文 · Website: English / 中文

A macOS plugin for DeepSeek Harness Web. Copy files or folders in Finder with Cmd+C, return to DSH, then press Ctrl+V to insert their absolute paths into the composer.

Normal text paste stays on Cmd+V.

The problem

Copying a file in Finder does not put a plain absolute path on the clipboard. Finder writes a native file-list representation, while a browser editor is deliberately isolated from local filesystem paths. That leaves a small but recurring gap when you want to give a local file path to an agent.

dsh-paste-path bridges that gap inside DSH without uploading the file or taking over normal paste.

Use it

  1. Select one or more files or folders in Finder and press Cmd+C.
  2. Return to DSH Web.
  3. When the composer shows the Ctrl+V Paste path hint, press Ctrl+V.
  4. The absolute paths are inserted into the current draft, one per line.

The hint stays hidden when the clipboard does not contain file paths. Duplicate paths already present in the draft are skipped.

Install

From npm:

dsh plugin --profile web add dsh-paste-path

From GitHub:

dsh plugin --profile web add github:jhuanxx44/dsh-paste-path

For local development:

dsh plugin --profile web add /absolute/path/to/dsh-paste-path

Restart dsh web and refresh the page after installation.

How it works

The host plugin reads macOS Pasteboard file-list data (NSFilenamesPboardType) through osascript. A small DSH client extension checks whether a path is ready and inserts it into the active composer only when you press Ctrl+V.

The browser Clipboard API is not used, so the plugin does not trigger a normal website clipboard permission prompt.

Security boundary

  • The plugin only activates on macOS.
  • Clipboard endpoints accept loopback connections only.
  • Mutating paste requests must be same-origin.
  • Clipboard responses are never cached by HTTP.
  • Files are not opened or uploaded; only their absolute paths are inserted.
  • Ordinary Cmd+V behavior is left untouched.

macOS may still deny osascript access depending on your local automation permissions. If that happens, grant the relevant permission and try again.

Remote DSH deployments

The clipboard belongs to the machine running dsh web, not necessarily the browser you are using.

  • LAN IP or public hostname: the host rejects non-loopback clipboard requests with 403, so the plugin cannot provide your Mac's local paths.
  • SSH port forwarding or a jump host: the connection still appears as loopback to DSH. The plugin cannot detect the tunnel and would read the remote server's clipboard, not your Mac's clipboard.

If you need to send local files to a remote DSH instance, use an upload-oriented plugin instead. This plugin intentionally solves local path handoff only.

Develop

Requirements:

  • macOS
  • Node.js 22 or newer
  • DeepSeek Harness Web

Run the checks:

npm test

The earlier in-session plugin named fpath-1 was the prototype. This repository is the installable, restart-persistent package.

License

MIT

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案