Pasumao/dsh-plugin-workbench ↗★ 2
dsh-plugin-workbench
VS Code-style workspace file explorer + editable preview for the dsh web GUI
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Pasumao/dsh-plugin-workbench说明文档
阅读完整 README ↗dsh-plugin-workbench
DSH Web GUI 的 VS Code 风格文件浏览器插件:文件树 + 可编辑代码预览 (语法高亮、标签页),每个工作区独立保存状态。需要布局补丁(见下)。
功能
- 文件树:懒加载、2 秒自动刷新、每工作区独立展开状态
- 可编辑预览:透明 textarea 叠加语法高亮,
Ctrl+S/Cmd+S保存 - 标签页:多文件、拖拽排序、收起/弹出;亮暗主题一键切换
- 语法高亮:highlight.js(JS/TS、Python、JSON、HTML、CSS、Markdown、Shell 等)
安装
布局补丁针对
dsh-client-ui-layout@0.1.0-rc.6编写,其他版本需更新锚点。
# npm(推荐)
dsh plugin --profile web add dsh-plugin-workbench
# 或 GitHub
dsh plugin --profile web add github:Pasumao/dsh-plugin-workbench
安装后打布局补丁并重启:
node node_modules/dsh-plugin-workbench/scripts/patch-layout.mjs
# 重启 dsh web
开发
pnpm install
pnpm run build # 产出 lib/index.js(host)与 lib/client.js(browser)
pnpm run typecheck
卸载
dsh plugin --profile web remove dsh-plugin-workbench
# 并还原布局 bundle(patches/layout.backup/client.js.orig → dsh-client-ui-layout/lib/client.js)
说明
/dsh-plugin-filesRPC 通道仅限 loopback;写操作显式以danger-full-access执行- DSH 升级会覆盖布局 bundle,需重新运行补丁脚本;锚点失效时更新
scripts/patch-layout.mjs - 本仓库不包含 DSH 编译产物
参与贡献
见 CONTRIBUTING 与 CODE_OF_CONDUCT; 变更记录见 CHANGELOG。
AI 生成声明
部分源码与文档由 AI 辅助生成(DeepSeek Harness),均经人工审查与实机验证; 权限相关逻辑已按最小权限原则复核。