e2mcc/dsh-popout-sidebar4

dsh-popout-sidebar

可弹出侧边栏 · A DeepSeek Harness sidebar that shows artifacts and pops out into a larger web tab.

包名
dsh-popout-sidebar
版本
1.0.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:e2mcc/dsh-popout-sidebar

使用 / Usage

本插件同时支持静态安装(推荐,持久生效)与动态加载(临时)。

静态安装(推荐)

前置:DSH 已装好(dsh web 能正常运行)。

dsh plugin --profile web add /绝对路径/dsh-popout-sidebar

装完重启 DSH 服务(host 半加载)并硬刷新浏览器(Cmd/Ctrl+Shift+R),界面右上角即出现常驻的「产物」图标按钮(无会话时依然可见)。

  • 包内 cordis.patch.ymldsh.bundle.patch)让 CLI 自动把它挂进 dsh.profile.bundles
  • client 半由 package.jsondsh.client.platform: "web" + exports["./client"] 自动发现并加载;
  • 目录方式安装后是符号链接,改 src/ 后重启服务 / 硬刷新即可生效。

动态加载(临时,进程级)

src/host.jssrc/client.jsreturn { ... } 主体仍可直接传给 cordis_define

  1. 在 Harness 会话中调用 cordis_definecode.hostsrc/host.jsreturn { ... } 主体;code.clientsrc/client.jsconst plugin = (() => { 内的 return { ... } 主体。
  2. 调用 cordis_run 激活返回的 pluginId / packageId
  3. 点击「产物」按钮;点面板右上角 ↗ 打开独立标签页。

两种模式下 host 与 client 都通过 /popout-sidebar/* HTTP 路由通信(动态模式另保留 harness.handle RPC 兼容),因此行为一致。