master1Sun/dsh-file-workbench-lib

Plugin插件 Native原生 ⭐ 2 MIT Dev Workflow开发与代码工作流

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH), adding three core integrated modules to DSH’s right-side panel: a Win11 Explorer-style file workbench, a multi-tab code editor, and a persistent terminal. All three modules share the same workspace root, and the plugin also includes extra utilities like a Git management panel, a background task progress panel, and integration with DSH’s native file viewing system. The file workbench supports full file CRUD operations, recursive search, and batch edits, while the editor is built on CodeMirror 6 for in-place code modification.

After installation, the plugin adds entry cards for File Workbench and File Editor to DSH’s right-sidebar guide area. When you open either module for the first time, it automatically navigates to the current DSH session’s workspace directory. To open a terminal, you can click the toolbar terminal button or right-click a directory and select Open in Terminal. To preview a file, just double-click it in the file workbench, and it will open in DSH’s native right-side viewer with syntax highlighting and support for common formats like images and PDFs.

The plugin is built with Vue 3 and Vite, and depends on several open source packages including CodeMirror 6, node-pty, Element Plus, and fflate. Node-pty is a native module required for the terminal functionality; if it is missing, the terminal feature will not be available. All file path access is validated to prevent path traversal attacks, and by default, writes are blocked outside the workspace root. To get an administrator terminal you must run the DSH host process as administrator, since terminal permissions are inherited from the host. The project is released under the permissive MIT open source license.

这是一个专为DeepSeek Harness(DSH)开发的原生插件,会在DSH会话的右侧面板提供三个核心功能模块:文件工作台、文件编辑器和终端。所有功能共享同一个工作区根目录,文件工作台是Windows 11资源管理器风格的文件管理器,编辑器基于CodeMirror 6实现多标签页代码编辑,终端提供基于node-pty的持久化ConPTY Shell,还附带Git管理面板、背景任务面板等附加功能。

插件入口位于DSH右侧边栏的引导区,首次打开会自动导航到当前会话的工作区目录。用户可先在文件工作台浏览本地目录和系统文件,双击文件会调用DSH原生右侧查看器预览,右键选择编辑可打开内置编辑器修改文件。需要操作命令行时,可通过工具栏按钮或右键目录打开终端,终端会话会在面板关闭后保留,重新打开可恢复之前的输出。

本插件基于Vue 3 + Vite开发,依赖CodeMirror 6、node-pty、Element Plus等开源组件,其中node-pty为原生模块,缺失则终端功能不可用。项目遵循MIT许可协议,所有路径访问都会经过根目录 containment 校验,防止路径遍历,默认工作区根目录外只读,终端权限继承自DSH宿主进程的权限。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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:master1Sun/dsh-file-workbench-lib

把 master1Sun/dsh-file-workbench-lib 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH File Workbench Plugin (Vue 3 + Vite)

🌐 English | 简体中文

Provides three capabilities inside the right-side panel of a DSH session view, all sharing the same workspace root:

  • 🗂 File Workbench (tab kind workbench): a Windows 11 Explorer-style file manager
  • 📝 File Editor (tab kind vscode): a CodeMirror multi-tab code editor + project tree
  • ▶ Terminal: persistent shells via node-pty (ConPTY), a global singleton that survives panel close/reopen

On top of that: Git / SVN management panels, sending files into the session input box as official @path reference chips, a background-task panel, and handling selected files with a sub-agent.

File viewing is delegated to the DSH native right-side viewer (Markdown / syntax-highlighted code / images / PDF / HTML / plain text); use the file editor for in-place editing, or right-click "Edit" in the file list to open the built-in notepad.

Panels & Entry Points

Panel Tab kind Guide entry Notes
File Workbench workbench order 100 Open from the right-sidebar guide area; auto-navigates to the current session's workspace directory on first open
File Editor vscode order 101 Same as above, listed below the File Workbench
Terminal — — Toolbar terminal button, or right-click a directory → "Open in Terminal"

The only entries are the right-sidebar guide cards and tabs; there are no input-box buttons or top drawer anymore.

Feature Overview

🗂 File Workbench (Explorer)

  • Single-window Win11 tree: Home / Gallery / This PC drives / Recycle Bin / Favorites / Session files; draggable splitter (default 3:7), command bar + status bar, directory-first case-insensitive sorting.
  • Real drive volume labels: reads system volume labels shown as Label (C:), falling back to a localized "Local Disk (C:)".
  • View modes: 8 modes — extra-large / large / medium / small icons, list, details, content, tiles; details-view column widths are draggable; toggle extension visibility.
  • Search: recursive search of file names and content within the current directory, with case sensitivity / regex support and virtual scrolling; supports cross-file batch replace on content hits.
  • CRUD: create file / directory, rename, delete (with confirmation), copy / cut / paste, rubber-band multi-select, batch operations, external drag-and-drop upload, compress / extract.
  • Recycle Bin: shares the same UI as the file list (same 8 view modes / sorting / multi-select / rubber band), with operations switched to Restore / Delete permanently / Empty recycle bin.
  • Git badges: file status (? / A / M / D) badges + right-click Git operations.
  • Notepad: right-click "Edit" opens the built-in text editor (save-as / clipboard / unsaved-changes confirmation).
  • Background tasks: long-running jobs like uploads and compression show progress and results in the background-task panel, with a history archive.
  • Sub-agent: right-click "Handle with sub-agent" to start an official sub-agent session on the selected files / directories.
  • Navigation: back / forward / up / back to session directory, breadcrumb address bar, favorites, session-touched files (real-time via SSE).

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-vet 下一个 Next dsh-turn-rail →