SnowCrescenter-tech/dsh-desktop--packages-dsh-desktop-client ↗★ 6

@dsh-desktop/client

浏览器侧桌面桥接,连接原生 Electron 外壳与网页。 使用桌面版并需托盘命令或原生通知的开发者适用。

包名
@dsh-desktop/client
兼容性
待验证
Cordis 依赖范围
>=4.0.0
版本
0.2.0
许可证
MIT
最近更新
2026年8月14日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

@dsh-desktop/client

dsh-desktop 浏览器侧桌面桥接插件 —— 随 desktop profile 加载进 DeepSeek Harness 的 Web UI。

The desktop bridge plugin for dsh-desktop. It is loaded into the DeepSeek Harness Web UI by the desktop profile and bridges the native Electron shell with the web page.

What it does

  • 原生 → Web:暴露托盘命令处理器(show-about / reload),preload 在收到主进程广播时调用它路由命令。
  • Web → 原生:暴露 notifyNative() 助手(window.dshDesktopNotify),让页面能发送 Windows 原生通知。

本插件不注入任何视觉样式;在纯浏览器环境(无 window.dshDesktop)下优雅降级。

Install

This package is meant to be installed as a DeepSeek Harness plugin. Inside a DeepSeek Harness project, run:

dsh plugin add @dsh-desktop/client

It is a Cordis plugin that exposes name / inject / Config / apply and is loaded automatically by the desktop profile. You normally do not need to install it manually — the dsh-desktop app bundles it and mounts it with the desktop profile.

Development

npm run build   # tsc → lib/
npm test        # vitest

License

MIT