dsh-popout-sidebar
可弹出侧边栏 · A DeepSeek Harness sidebar that shows artifacts and pops out into a larger web tab.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:e2mcc/dsh-popout-sidebar说明文档
阅读完整 README ↗使用 / Usage
本插件同时支持静态安装(推荐,持久生效)与动态加载(临时)。
静态安装(推荐)
前置:DSH 已装好(dsh web 能正常运行)。
dsh plugin --profile web add /绝对路径/dsh-popout-sidebar
装完重启 DSH 服务(host 半加载)并硬刷新浏览器(Cmd/Ctrl+Shift+R),界面右上角即出现常驻的「产物」图标按钮(无会话时依然可见)。
- 包内
cordis.patch.yml(dsh.bundle.patch)让 CLI 自动把它挂进dsh.profile.bundles; - client 半由
package.json的dsh.client.platform: "web"+exports["./client"]自动发现并加载; - 目录方式安装后是符号链接,改
src/后重启服务 / 硬刷新即可生效。
动态加载(临时,进程级)
src/host.js 与 src/client.js 的 return { ... } 主体仍可直接传给 cordis_define:
- 在 Harness 会话中调用
cordis_define:code.host填src/host.js的return { ... }主体;code.client填src/client.js中const plugin = (() => {内的return { ... }主体。 - 调用
cordis_run激活返回的pluginId/packageId。 - 点击「产物」按钮;点面板右上角 ↗ 打开独立标签页。
两种模式下 host 与 client 都通过
/popout-sidebar/*HTTP 路由通信(动态模式另保留harness.handleRPC 兼容),因此行为一致。