dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
给 DeepSeek Harness Web UI 增加一个展示产物(artifacts)的侧边栏,并支持把侧边栏内容弹出为更大的网页标签页,拖到另一块显示器上观看。
A sidebar for the DeepSeek Harness Web UI that shows the agent's artifacts (files created/edited by
write/edit), with the ability to pop the sidebar out into a larger web tab viewable on another monitor.
write / edit 工具创建或修改的文件;产物列表与预览区之间的分界线可拖动调整。edit 修改过的文件在预览里展示「删除 / 新增」的改动片段对比。@path 引用写入会话输入框(悬浮在列表行)。/popout-sidebar),每 1.5s 自动刷新,可拖到另一块显示器。--dsw-alias-* 主题变量)。localStorage);面板更宽可通过拖动左边缘调整。tools/result 事件,追踪 write / edit 的成功调用并提取 file_path(edit 额外记录 old_string/new_string 改动片段,并按扩展名标注预览类型)。harness.handle 暴露包私有 RPC:artifacts.list、artifacts.read、artifacts.remove、artifacts.listDir。webServer.register 提供路由:/popout-sidebar(页面)、/popout-sidebar/data(JSON)、/popout-sidebar/content(文本预览)、/popout-sidebar/media(二进制图片)、/popout-sidebar/remove(删除单条产物)、/popout-sidebar/listdir(目录列表)。shell.overlay(root 作用域)注册一个固定于右上角的常驻「产物」图标按钮,无会话时依然可见;按钮仅含图标(方框 + 右侧竖线 + 弹出箭头),不含文字。shell.overlay 渲染浮动侧边栏面板。host.call 拉取数据,并读取当前主题把 scheme 传给独立标签页。.
├── README.md
├── LICENSE
├── package.json # 静态 bundle 元数据(main / exports ./client / dsh.bundle / dsh.client)
├── cordis.patch.yml # bundle 挂载补丁(dsh plugin add 自动识别)
└── src
├── index.js # 静态 Host 入口:求值 host.js 主体并导出给 loader
├── host.js # Host 半主体:产物追踪 + webServer 路由(独立标签页)
└── client.js # Client 半:按钮 + 浮动侧边栏面板(静态 client bundle)
本插件同时支持静态安装(推荐,持久生效)与动态加载(临时)。
前置: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;package.json 的 dsh.client.platform: "web" + exports["./client"] 自动发现并加载;src/ 后重启服务 / 硬刷新即可生效。src/host.js 与 src/client.js 的 return { ... } 主体仍可直接传给 cordis_define:
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 兼容),因此行为一致。
在 DSH 设置面板(左下角 ⚙️)里会多出一个「Popout Sidebar」选项卡,包含以下设置:
| 设置 | 默认 | 说明 |
|---|---|---|
| 自动刷新 | 开 | 面板打开时每 2s 拉取最新产物列表 |
| 文件树 | 开 | 在侧边栏显示「文件树」标签页,浏览工作区目录 |
| 最短面板宽度 | 30% | 面板最小宽度(占窗口宽度的百分比,20–60%);更宽可通过拖动面板左边缘调整 |
右上角的「产物」图标按钮、独立标签页按钮(↗)、以及「自动让位到其他侧边栏左侧」均为常驻行为,无需开关。
设置保存在浏览器 localStorage(键 dsh-popout-sidebar:settings),刷新后仍然生效。
面板与标签页使用与主界面相同的主题色值(来自 @deepseek-ai/dsh-client-ui-theme 的 design-platform.css)。
标签页默认使用浅色(light)配色;如需深色可手动在地址后加 ?scheme=dark。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。