lcgash/dsh-plugin-uw 预览 preview

lcgash/dsh-plugin-uw

插件Plugin ⭐ 9 datasecurityweb-ui

Merge multiple directories into one DSH session with configurable write scopes: primary only, all members via common ancestor, or unrestricted.

编辑导读Editor's Brief

## 核心特性
- 该插件将一个主目录和一个或多个成员目录合并为一个联合工作区,使 AI 助手能够在单个 DSH 会话中访问。
- 它提供两种权限预设:workspace-write 允许通过插件的成员目录工具进行读取、写入、删除和移动;danger-full-access 允许不受限制的读写访问。
- 侧边栏管理面板支持创建、删除、修改和浏览联合工作区,并提供成员目录树视图,支持懒加载和递归展开。
- 已有会话可以通过 /uw 命令或会话头部按钮升级为联合工作区,工作区定义会持久化保存在 ~/.dsh/union-workspaces.json 中。
- 聊天输入支持 @ 提及,可跨成员目录搜索文件;注册的 uw_readuw_writeuw_edituw_deleteuw_move 工具则可在标准单根沙箱之外操作成员目录路径。

## 使用场景
- 该插件支持前后端协作任务,适用于代码、共享类型定义和相关资源分别存放在不同目录的场景。
- 它可以限制 AI 助手……

## Core Features
- The plugin merges one primary directory and one or more member directories into a union workspace that an AI assistant can access within a single DSH session.
- It provides two permission presets: workspace-write, which permits reading, writing, deleting, and moving through the plugin's member-directory tools, and danger-full-access, which allows unrestricted read and write access.
- A sidebar management panel supports creating, deleting, modifying, and browsing union workspaces, with a tree view for member directories that uses lazy loading and recursive expansion.
- Existing sessions can be upgraded to union workspaces through the /uw command or a session-header button, and workspace definitions persist in ~/.dsh/union-workspaces.json.
- Chat input supports @ mentions that search files across member directories, while registered uw_read, uw_write, uw_edit, uw_delete, and uw_move tools operate on member-directory paths outside the standard single-root sandbox.

## Use Cases
- The plugin supports front-end and back-end coordination tasks where code, shared type definitions, and related assets are stored in separate directories.
- It can limit an assistant

安装Install

dsh plugin --profile web add dsh-union-workspace

lcgash/dsh-plugin-uw 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

上一个 Prev dsh-image2-draw 下一个 Next dsh-lan-access