Bundle
web-directory-picker
把 DeepSeek Harness Web 界面「添加工作区」的目录选择固定为官方应用内浏览对话框(禁用 directory-picker-auto 在本机的 native 解析,组合官方 browse 组合对)。
- Source
- daemtri
- License
- MIT
- Updated
- Updated 22 days ago
Readme
**中文** | [English](README.en.md)
# web-directory-picker
DeepSeek Harness **组合插件(bundle)**:把 Web 界面「添加工作区」的目录选择固定为
**官方应用内浏览对话框**(`dsh-client-ui-directory-picker-browse` 的
「选择工作区目录」对话框),替代启动时自动解析出的宿主机原生 OS 目录框。
本包不含运行时代码——它通过 `dsh.bundle.patch` 声明一个组合补丁,
直接组合官方 browse 组合对(宿主后端 + 浏览器表面,均为产品自带并已安装):
```yaml
- id: directory-picker # 禁用启动时自动判定(本机解析为 native)
disabled: true
- insert: # 固定组合官方 browse 组合对
- id: directory-picker-browse
name: '@deepseek-ai/dsh-host-directory-picker-browse'
- id: ui-directory-picker-browse
name: '@deepseek-ai/dsh-client-ui-directory-picker-browse'
```
## 安装 / 卸载
```powershell
# 安装(GitHub 形式,推荐)
dsh plugin --profile web add github:daemtri/web-directory-picker
# 也可以从本地目录安装
dsh plugin --profile web add D:\Workspace\test\deepseek-plugin\web-directory-picker
# 卸载(恢复原生的自动判定行为)
dsh plugin --profile web remove web-directory-picker
```
`dsh plugin add` 会在 profile 工作区执行 `pnpm add`,并因本包声明了
`dsh.bundle.patch` 而自动把 `web-directory-picker` 登记进 profile 的
`dsh.profile.bundles` 组合层。**安装与卸载均需重启 DSH 后生效**。
## 效果
重启后,左侧边栏「添加工作区…」与新会话页的工作区选择器将弹出产品自带的
Web 目录浏览对话框(官方维护:本地化、新建文件夹、面包屑导航、完整错误态),
不再启动 node 原生系统选择框。
Install
dsh plugin --profile web add github:daemtri/web-directory-picker
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install web-directory-picker from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.