← 返回列表
D

@ahikl/dsh-desktop

v0.1.0 · 2 天前发布

A dsh desktop bundle: an Electron shell over the dsh Web UI with a system tray and a dsh-styled custom title bar.

dshdsh-pluginelectrondesktopdeepseek-harness

README

dsh-desktop



English | 简体中文

DeepSeek Harness 桌面端插件:使用 Electron 包装 dsh Web UI,提供系统托盘与自定义标题栏。


简介



dsh-desktop 是一个 out-of-tree 桌面端插件,不修改 dsh 源码,也不把 Electron 引入 dsh 依赖树。

功能



  • 使用 Electron 加载 dsh Web UI

  • 无边框窗口 + dsh 风格标题栏,自动跟随主题

  • 系统托盘:显示主窗口、打开浏览器、退出

  • 关闭窗口时最小化到托盘

  • URL 解析优先级:--url > Web Server 端口 > dashboard.html


  • 工作原理



    通过 cordis.patch.yml 挂载两个插件:

  • desktop-startup:解析 dsh desktop 参数,提供 webStartup / desktopStartup 服务

  • desktop-runner:等待树稳定后,解析 URL 和 Electron 路径,并以子进程方式启动 Electron


  • 使用



    sh
    
    dsh plugin --profile desktop add @ahikl/dsh-desktop @deepseek-ai/dsh-web-app
    dsh plugin --profile desktop add electron
    dsh --profile desktop desktop

    dsh --profile desktop --url https://example.com


    配置



    ```
    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @ahikl/dsh-desktop
    Repo
    git+https://github.com/ahikl/dsh-desktop.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}