reveal-file

by cnskycn

0 会话与消息github 检测到 manifest package.json#dsh收录于 08-16

在DeepSeek Harness Web聊天中右键点击生成的文件,在操作系统文件管理器中打开其位置

Right-click a produced file in DeepSeek Harness Web chat to open its location in the OS file manager

安装

dsh plugin --profile web add github:cnskycn/reveal-file

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

Right-click a produced file in DeepSeek Harness (dsh) Web chat and open its location in your OS file manager — with the file selected.

Features

  • Right-click menu — "打开所在目录" appears on produced-file rows in chat
  • Cross-platform — explorer.exe /select, (Windows), open -R (macOS), xdg-open (Linux)
  • Feedback toast — success / failure notification in the corner
  • Lightweight — pure DOM context menu, no framework, one REST endpoint

Requirements

  • DeepSeek Harness (@deepseek-ai/dsh) with the web profile
  • @deepseek-ai/cordis (bundled with dsh)

Installation

pnpm dsh plugin --profile web add reveal-file
pnpm dsh --profile web

Or add it to your profile's cordis.patch.yml:

- insert:
    - id: reveal-file
      name: 'reveal-file'

Usage

In a chat message, right-click any produced file row (the files the model wrote to disk). A small menu appears with 📂 打开所在目录. Click it — the file manager opens with the file selected.

How it works

Dual-face plugin:

  • Host half (lib/index.js) — registers a REST endpoint /api/reveal-file/reveal on the dsh web server. It resolves the path through the fs service, then spawns the platform's reveal command via the subprocess service.
  • Client half (lib/client.js) — listens for contextmenu events on produced-file rows and calls the endpoint with fetch().

Note: the host half uses the host webServer service. This is the correct pattern for a static host plugin — the dynamic-runner sandbox has no harness global.

License

MIT

原始 README: https://github.com/cnskycn/reveal-file/blob/main/README.md ↗