Skip to content
dsh.fish
Bundle

dsh-workspace-open

Open a workspace folder from the DeepSeek Harness left workspace list.

Source
1274623767
License
MIT
Updated
Updated 4 days ago

Readme

# dsh-workspace-open

DeepSeek Harness (DSH) 插件:在左侧工作区列表中直接打开工作区的文件夹。

## 功能

- 在每个真实工作区行(左侧 `Workspace` 列表)上增加一个文件夹按钮。
- 点击后调用 DSH 内置的 `ctx.workspaces.openPath(path)`,由 Host 用系统默认文件管理器打开:
  - Windows:资源管理器
  - macOS:Finder
  - Linux:`xdg-open` 默认文件管理器

## 安装

在 DSH profile 中安装本插件(任选一种):

```sh
# 本地目录
dsh plugin --profile web add ./dsh-workspace-open

# 打包后安装
npm pack
dsh plugin --profile web add ./dsh-workspace-open-0.1.0.tgz
```

安装后需要重启 DSH Web 服务(Host 侧插件加载),然后刷新浏览器页面。

## 工作原理

- Host 半区:`lib/index.js` 是一个空 `apply`,仅用于让 DSH 发现并加载本包。
- 浏览器半区:`lib/client.js` 注册到 DSH 客户端。
- 优先使用未来版本可能提供的 `sidebar.workspaces.row-menu` slot;
- 当前 DSH `0.1.0-rc.x` 没有该 slot 时,自动回退到 DOM 适配器,把文件夹按钮插入到工作区行 hover 操作区。

## 开发

```sh
npm install
npm run build
```

`lib/` 已提交,直接安装也可用;修改 `src/` 后重新 build。

## 说明

- 插件只对“真实 Workspace”行添加按钮;“Ungrouped / 未分组”不会显示。
- 如果 DSH 官方后续提供稳定的工作区行菜单 slot,本插件会自动切换到原生注册方式。

Install

dsh plugin --profile web add github:1274623767/dsh-workspace-open#1da0d2ce1c0d2f9786e173aaaae2a294eaa6b797

Profile: web

  • This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
Source