插件目录 / UI & Skins / dsh-web-compat
dsh-web-compat
已验证 · 实测可装 Visol-456
功能简介
DeepSeek Harness Web 兼容插件:非 secure context 下注入 crypto.randomUUID polyfill,修复局域网 HTTP 访问时附件上传崩溃 | Web compat for DeepSeek Harness UI: crypto.randomUUID polyfill for plain-http LAN access
可用 — 实测通过,早期项目
DeepSeek Harness Web 兼容插件:非 secure context 下注入 crypto.randomUUID polyfill,修复局域网 HTTP 访问时附件上传崩溃 | Web compat for DeepSeek Harness UI: crypto.randomUUID polyfill for plain-http LAN access 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
@visol-456/dsh-web-compat
DeepSeek Harness Web 兼容插件:修复通过局域网纯 HTTP(非 secure context)访问 dsh web 时,官方会话界面添加图片附件调用 crypto.randomUUID() 崩溃的问题,并在设置页新增「Web 兼容」状态面板。
原理
- 浏览器仅在 secure context(HTTPS、localhost、127.0.0.1)暴露
crypto.randomUUID()。 - 通过
http://192.168.3.2:3080访问时属于非 secure context,crypto.randomUUID为undefined。 crypto.getRandomValues()在非 secure context 仍可用,因此插件在 client bundle 模块顶层立即注入 UUID v4 polyfill。- 插件同时注册 Settings 新 section「Web 兼容」,显示当前是否 secure context 以及
randomUUID来源。
使用
dsh plugin add @visol-456/dsh-web-compat
开发
npm install
npm test
npm run build
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-web-compat」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:Visol-456/dsh-web-compat Headless(CLI)profile:
dsh plugin --profile headless add github:Visol-456/dsh-web-compat 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。