Web chat entry for DeepSeek Harness: a sidebar button opening chat.deepseek.com in a dedicated desktop window under dsh-desktop, with in-webview fallback for plain web environments.
Install
# from npm (prebuilt)
dsh plugin --profile web add @zerorigin-studio/dsh-deepseek-chat
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zerorigin-studio/dsh-deepseek-chat
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DeepSeek Harness 网页对话入口插件 —— 在侧边栏"新对话"按钮正下方显示一个"网页对话"按钮,点击打开 chat.deepseek.com。
✨ 特性
- 位置自然:按钮位于侧边栏新对话按钮正下方,宽度/高度/悬停动效与 harness 原生控件完全一致,展开态显示「网页对话」,收起态为 36px 图标(响应即时,无轮询延迟)
- 桌面独立窗口:在 dsh-desktop(Wails v3 启动器)下运行时,点击按钮通过本地桥接 API(
127.0.0.1随机端口 + 每实例随机 token)让启动器打开独立聊天子窗口——主窗口(harness 页面)不再被导航霸占,可同时多任务 - Web 环境降级:纯浏览器 / 第三方桌面壳(无
window.__DSH_DESKTOP_API__桥接)时自动降级为原行为(当前 webview 内跳转),插件功能永不失效 - 持久化开关:设置页可开关入口(
dsh-deepseek-chat.showEntry,默认开)
📦 安装
# 方式一:npm 官方安装(推荐)
dsh plugin --profile web add @zerorigin-studio/dsh-deepseek-chat
# 方式二:Gitee Release tgz(无 npm registry 时)
# https://gitee.com/coldcgh/dsh-deepseek-chat/releases/download/0.3.3/zerorigin-studio-dsh-deepseek-chat-0.3.3.tgz
curl -L -o dsh-deepseek-chat.tgz https://gitee.com/coldcgh/dsh-deepseek-chat/releases/download/0.3.3/zerorigin-studio-dsh-deepseek-chat-0.3.3.tgz
dsh plugin --profile web add ./dsh-deepseek-chat.tgz
# 方式三:从源码构建安装(开发测试)
cd dsh-deepseek-chat && npm pack
dsh plugin --profile web add ./zerorigin-studio-dsh-deepseek-chat-0.3.3.tgz
重启 harness 后,侧边栏"新对话"按钮正下方出现「网页对话」按钮。
🖥️ 桌面多窗口(标准 SDK,可选增强)
dsh-desktop-shell 客户端(≥0.2.9)向托管页面注入标准桌面 SDK window.dsh.desktop:
await window.dsh.desktop.openWindow({ url: CHAT_URL, title: "DeepSeek 网页对话" });
- 底层走 WebView2 宿主消息(
window.chrome.webview.postMessage→{ type: "dsh.desktop.openWindow", ... }),无跨端口 fetch/CORS; - 无宿主(纯 web / 第三方壳):自动降级为当前 webview 内导航,插件永不失效;
- 兼容旧桥接:宿主仍注入
window.__DSH_DESKTOP_API__(HTTP 桥接,loopback + token),老协议路径继续可用。
📁 结构
lib/index.js server 端:settings 注册(showEntry 开关,ctx 由宿主注入)
lib/client.js client 端:侧边栏入口按钮 + 布局/降级逻辑(编译产物)
cordis.patch.yml bundle patch:把插件加入 web roster
当前分发编译产物;源文件(tsx)与构建脚本在后续版本补齐(tsdown 构建)。
🔧 开发
npm pack # 构建本地 tgz
dsh plugin --profile web add ./zerorigin-studio-dsh-deepseek-chat-0.3.3.tgz
📝 License
MIT © caoganghui
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 6815
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 6815
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3318
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 2823
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 1695
A fixed-corner whale widget showing DeepSeek balance, today usage, per-turn cost and random talk lines, with sound effects and a menu.
Devin-AXIS/deepseek-design#deepseek-idesign★ 720
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.