DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-permission-manager

L

dsh-permission-manager

Manifest valid★ 3

DSH Permission Management Panel: One-click switch all conversations' permissions to the same mode (view-only / modify within workspace / full access) from the sidebar, and lock it for conversations opened or created afterward. Author LiXiao1949 · GitHub https://github.com/LiXiao1949 · QQ 1640444672

UI (client)hasBundlePatchMachine translated

dsh-permission-manager

DSH 权限管理面板 —— 侧边栏一键把全部对话的权限切成同一个模式,并可锁定给之后打开或新建的对话。

作者 LiXiao1949  ·  GitHub github.com/LiXiao1949  ·  QQ 1640444672

项目信息
项目名dsh-permission-manager
包名@local/dsh-permission-manager
版本1.0.0
作者LiXiao1949
GitHubhttps://github.com/LiXiao1949
仓库https://github.com/LiXiao1949/dsh-permission-manager
QQ1640444672
反馈Issues · QQ 1640444672
许可证MIT

它做什么

侧边栏多一个「权限管理」入口,位置和插件市场、自动化任务并排(sidebar.panellist + main)。 里面可以一键把所有对话的权限切成同一个模式 —— 就是设置里那三种「权限预设」:

预设(键)面板显示沙箱审批
read-only仅可查看只读每次都问
workspace-write工作区内修改可写工作区/临时目录越界才问
danger-full-access完全权限任意路径可写从不问

打开面板就能看到作者信息(LiXiao1949 · GitHub · QQ 1640444672)。

它改的是什么

不是自己维护一份状态,全部走 DSH 自带的两个服务:

  • 已有对话:permissionPresets.set(session, preset)。DSH 的沙箱模式与审批策略都是会话日志里的折叠事件(sandbox/mode、approval/policy),所以对活着的会话 append 一条就立即生效 —— 当前对话下一次工具调用就按新权限走,不用重启。
  • 新对话:settings.mutate('permission', [{op:'set', path:['defaultPreset'], value: preset}]),写进 profile 配置(permission.defaultPreset),重启后仍在,只影响之后新建的会话。
  • 锁定模式:在 profile 里存一个开关(<profile>/.permission-manager/state.json),打开后监听 session/created,之后打开或新建的对话也会自动切成锁定的那个权限 —— 这是「历史对话也一并接管」的那条路(没锁定时,未被加载的历史对话按自己的记录恢复)。

界面

权限管理
一键把全部对话的权限切成同一个模式 —— 沙箱与审批一起换
作者 LiXiao1949 | GitHub @LiXiao1949 | 项目仓库 dsh-permission-manager | QQ 1640444672
[新对话默认:工作区内修改] [锁定:关闭]                      [刷新]

一键应用到所有对话                                      [2 个对话]
  ○ 仅可查看      read-only
  ○ 工作区内修改  workspace-write
  ○ 完全权限      danger-full-access
  [✓] 同时设为「新对话」的默认权限
  这里改的是当前进程里已经加载的每一个对话…

新对话默认权限
  ○ 仅可查看 / ○ 工作区内修改 / ○ 完全权限

锁定模式                                          [开关]

对话列表
  帮我写一个插件        session-946b3449   [完全权限]  [仅可查看][工作区内修改][完全权限]

目录结构

dsh-permission-manager/
├── package.json          dsh.bundle.patch + dsh.client.platform=web + author 信息
├── cordis.patch.yml      插入 dsh-permission-manager 这一行 loader entry
├── assets/logo.svg       插件页图标
├── lib/
│   ├── index.js          host 半:等 webServer 就位后挂路由
│   ├── routes.js         /dsh-permission-manager/api/* 的 JSON 路由(/state 带 author 字段)
│   ├── http.js           同源/回环校验、JSON 收发
│   └── client.js         浏览器半:页面 + slot 注册 + 作者卡片
└── scripts/
    └── smoke-client.cjs  无浏览器的自测

接口(同源、走 host 的登录闸)

方法路径作用
GET/dsh-permission-manager/api/state预设表、新对话默认、锁定状态、对话列表(标题 + 当前权限)、作者信息(author)
POST/apply {preset, scope:'all'|'session', sessionId?, alsoDefault?}应用到全部 / 单个对话,可选同步新对话默认
POST/default {preset}只改新对话默认(写 profile 配置)
POST/lock {lock, preset?}开/关锁定模式;开启时立刻应用到现有对话

所有接口先问 connection.requestRejection()(DSH 的浏览器登录/信任闸),再自己校一遍 Host / sec-fetch-site / Origin。

/state 里的作者信息长这样:

{
  "author": {
    "name": "LiXiao1949",
    "github": "https://github.com/LiXiao1949",
    "repo": "https://github.com/LiXiao1949/dsh-permission-manager",
    "qq": "1640444672"
  }
}

安装自己

与 @local/dsh-local-install 同形:源目录先固化到 <profile>/local-plugins/<名字>@<版本>,再写一条 link: 依赖 + node_modules 符号链接 + bundles 条目。

git clone https://github.com/LiXiao1949/dsh-permission-manager.git
PROFILE=~/.dsh/profiles/web
cp -a dsh-permission-manager "$PROFILE/local-plugins/local-dsh-permission-manager@1.0.0"
ln -sfn "../../local-plugins/local-dsh-permission-manager@1.0.0" "$PROFILE/node_modules/@local/dsh-permission-manager"
# package.json dependencies 里加:
#   "@local/dsh-permission-manager": "link:<profile>/local-plugins/local-dsh-permission-manager@1.0.0"
# dsh.profile.bundles 里加 "@local/dsh-permission-manager"

host 半的路由在进程启动时挂载(只改 lib/client.js 刷新页面即可,改 lib/routes.js/lib/index.js 要重启一次 DSH)。

自测

node scripts/smoke-client.cjs   # 或 npm test

用假的 window.__ModuleLoader__ / react / document 跑一遍:apply() 返回 disposer、main 与 sidebar.panellist 两个座位按预期注册、以及「有预设/有对话/已锁定」的数据下页面能不能渲染出内容(含作者卡片 LiXiao1949 · GitHub · QQ 1640444672)。

边界

  • 只覆盖当前进程里已经加载的对话(DSH 的会话对象在打开时才进内存)。锁定模式补上「之后打开的」那一截。
  • Auto(自动审查)在它没注册的部署里不会出现;custom 是派生状态,不可选。
  • 完全权限 = 不弹审批 + 任意路径可写,跟设置里选「完全权限」等价。

联系作者

许可证

MIT © LiXiao1949

Comments

Loading…

Similar plugins

dsh-split-chat

by imshz6669

DSH 插件:把任意会话作为完整对话开进右侧栏,主区 + 右栏可同时对话(最多 3 个)。DSH plugin: open any session as a full chat tab in the right sidebar.

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Nov 2, 2026

dsh plugin --profile web add dsh-split-chat

by wonderandyou

DSH 插件:在权限菜单里新增「管理员」档(完全访问 + 永不询问),内置官方 computer use、操控提示与自主迭代按钮。

Security & AuditManifest valid

★ 21

MIT

JavaScript

Oct 21, 2026

dsh plugin --profile web add @local/dsh-admin-mode

by qiaozheng9

独立的 DSH /side 侧边对话插件,支持模型、权限、目标与计划模式。

Tools & CapabilitiesUI & ExperienceDevelopment & InfrastructureManifest valid

★ 1

MIT

TypeScript

Nov 4, 2026

dsh plugin --profile web add dsh-side-chat

by heartmove

DSH 插件,让当前代理直接从提示词驱动其它真实 DSH 会话——创建/发送/等待回复/读取/恢复/跨工作区查找会话,并支持监控调度主任务与归档会话。A DSH plugin that lets the agent drive other real DSH sessions straight from a prompt — create, send, wait, read, resume, an

Sessions & MessagesManifest valid

★ 10

↓ 858/wk

TypeScript

Nov 3, 2026

dsh plugin --profile web add dsh-session-bridge

by BPTumbleweed

DSH「置顶对话」插件:会话头部与会话行内一键 📌,把重要对话钉在侧栏分组顶部;宿主端只存事实(原子写 JSON + 信任栅栏内的 HTTP 接口),排序由客户端在 DOM 层完成。零运行时依赖、能力探测与熔断、面向跨版本升级设计。

Development & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 16, 2026

dsh plugin --profile web add dsh-pin-session

by g1998815

DSH(DeepSeek Harness) 右侧原生工具侧边栏插件:文件系统浏览器 / Git 变更与 diff / 会话变更 采用·撤回 / PTY 控制台。Windows 直连 node-pty,跟随 DSH 主题,RPC fail-closed。

Manifest valid

★ 3

JavaScript

Aug 16, 2026

dsh plugin --profile web add dsh-workspace-tools