dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
在 DSH 桌面版主面板里通过 Electron webview 嵌入 DeepSeek 网页版聊天(chat.deepseek.com),带后退/前进/刷新工具栏,并把登录相关的 localStorage 快照存在本地、下次打开时回填。
把 DeepSeek 网页版聊天(chat.deepseek.com)装进 DSH 桌面版的面板里。
侧栏会多一个「DeepSeek 网页版」图标,点开就是一个主面板,里面用 Electron <webview> 原样载入网页版,工具栏可以后退、前进、刷新、回首页、在系统浏览器打开。登录在 DeepSeek 自己的页面上完成,插件不接触你的密码。
这个面板需要
globalThis.dshDesktop.browser,它只由 DSH 桌面版的 preload 暴露;Web 版只会显示一行提示。
https://chat.deepseek.com/,不改页面、不注入脚本(只在你登录后读一次 localStorage 做快照)。localStorage 里登录相关的键备份到 ~/.dsh/dsh-dschat/storage.json(权限 0600),下次载入时先回填、再刷新页面。
能不能因此完全跳过登录页,取决于网页版把会话放在哪里:httpOnly cookie 不在快照范围内。在 DSH 插件市场里搜索 dsh-dschat 安装,或手动作为 bundle 装进你的 DSH profile:
npm install dsh-dschat
globalThis.dshDesktop.browser)。>= 0.2.1-rc.2。globalThis.dshDesktop.browser.acquire(workspace)。{ lease, partition } 后创建 <webview>,name 填 lease、partition 填 partition、src 填 about:blank#<lease>;DSH 主进程会在 will-attach-webview 里校验 lease 和 partition,通过后才真正挂载。dom-ready)后 loadURL('https://chat.deepseek.com/')。localStorage 里键名匹配 token/user/auth/session/login 的字符串值 POST 给插件的 host 路由,写到本地快照文件;下次打开时先回填再刷新。bridge.release(lease) 释放 guest。因为走的是和内置侧栏浏览器同一套 lease 校验、sandbox 与导航策略,插件本身拿不到 Electron/Node 权限。
插件不代理、不抓取、不转发任何内容,只渲染官方页面并保留一份本地快照。快照里可能有登录相关数据的明文,请当作 cookie 文件对待,不要分享;删掉 ~/.dsh/dsh-dschat/storage.json 即可清除快照。
index.js — host 半部:快照与日志的 HTTP 路由,以及一次性的客户端模块清单缓存刷新。client.js — client 半部:侧栏图标、主面板、webview 生命周期、工具栏。cordis.patch.yml — bundle patch。icon.svg — 插件图标。MIT
Embed the DeepSeek web chat (chat.deepseek.com) in a DSH Desktop main panel.
A sidebar entry opens a keyed main panel that hosts the real DeepSeek web app inside an
Electron <webview> guest, requested from the DSH desktop preload bridge
(globalThis.dshDesktop.browser.acquire) so it goes through the same main-process lease
check, sandbox flags and navigation policy as the built-in sidebar browser.
https://chat.deepseek.com/ unmodified. Sign-in happens on DeepSeek's own page;
the plugin never sees or stores your password.localStorage keys to ~/.dsh/dsh-dschat/storage.json (mode 0600) and
restores them on the next load before reloading the page. Whether that is enough to skip
the sign-in screen depends on where DeepSeek keeps the session: httpOnly cookies are
not part of the snapshot.Install it from the DSH plugin market (search for dsh-dschat), or add this package as a
bundle to your DSH profile:
npm install dsh-dschat
globalThis.dshDesktop.browser, which only the desktop
preload exposes. In the web build the panel shows a notice and does nothing.>=0.2.1-rc.2.The plugin does not proxy, scrape or forward anything. It renders the official page and keeps one local snapshot file. That file can contain login-related values in plain text; treat it like a cookie jar and do not share it. Delete it to forget the snapshot.
MIT