dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
从侧栏打开的整页控制台面板,含八个标签:总览;从 sessions 服务读取的会话列表(标题、目录、运行状态、更新时间,带筛选);从 pluginInventory 与 pluginManager 读取的已装 bundle 与 Loader 条目,每个 bundle 带启用开关;列出 GitHub 搜索 API 中 topic:dsh-plugin 公开仓库的插件市场;一个模型与供应商编辑器,通过 remote.settings.mutate 写入 llm-pi-ai 配置命名空间(切换会话模型、新增或编辑供应商及其模型列表、经 remote.credentials 保存 API Key,并以合并方式写入以免表单未暴露的字段被覆盖);MCP 与技能两个标签;以及一个读取宿主回环 /api/dsh-usage/overview 文档的用量标签。所需服务通过 ctx.inject 声明,缺少任一服务的部署只是不挂载该面板,不会崩溃。
DeepSeek Harness Web 的全页控制台插件:把会话、插件、市场、MCP、技能与用量收进一个外壳。
| 视图 | 数据源 |
|---|---|
| 总览 | ctx.sessions.list 快照 + remote.pluginInventory |
| 会话管理 | ctx.sessions.list(标题、目录、运行状态、更新时间) |
| 插件管理 | remote.pluginInventory.list() + remote.pluginManager.listBundles() / listPlugins();开关调用 setBundleEnabled |
| 插件市场 | GitHub 搜索 API topic:dsh-plugin(公开、无需凭据) |
| 技能浏览 | remote.skills.list({ sessionId }),按活动会话解析 |
| MCP 管理 | 本构建无客户端接口 → 空状态 |
| 用量与模型 | 本构建无客户端 Remote → 空状态 |
localStorage。插件通过 ctx.get(name) 探测服务,未挂载的服务不会让面板崩溃:
sessions → 会话视图显示「sessions 服务不可用」pluginInventory → 插件视图显示不可用skills 或没有活动会话 → 技能视图显示对应提示npm run build
npm test
npm pack --dry-run
src/client.js 是唯一手写源,npm run build 把它复制为 lib/client.js(build:check 校验二者一致)。
tests/preview.html 是渲染验证挂具:模拟 DSH 的 ModuleLoader 与 ctx 服务,可在浏览器里离线查看各视图与降级路径。
dsh plugin --profile web add dsh-harness-ui
安装后重启 DeepSeek Harness Web。
本地开发版可以直接安装目录:
node D:\deepseek-harness\apps\cli\lib\bin.js plugin --profile web add E:\.weixincodex\dsh-harness-ui
sidebar / rightbar / root 是 DSH 的 single 槽位,由官方 ui-layout 与 ui-sidebar 占用,插件不可替换。本插件因此注册一个 main 整页面板(DSH 允许的做法)并从 sidebar.panellist 提供入口,而不是替换整个应用外壳。