← 返回列表
C

dsh-web-open

v0.6.3 · 3 天前发布

Auto-open the browser, whale tray icon, desktop shortcut and one-shot installer for `dsh web` (DeepSeek Harness plugin)

dsh-plugindeepseek-harnessdsh

README

dsh-web-open

DeepSeek Harness 插件:dsh-web-open launch 启动服务后自动打开默认浏览器,不用再手动输入 http://127.0.0.1:3080。

Windows 上额外提供完整的桌面体验:

  • 🐳 系统托盘鲸鱼图标:右键菜单(打开浏览器 / 重启服务 / 停止服务并退出);

  • 🖥️ 隐藏控制台窗口:服务不再占用终端;

  • 🚀 桌面快捷方式:自动创建「DSH Web」鲸鱼图标快捷方式(不存在时)。
  • 零运行时依赖、TypeScript 编写(对齐官方包规范:ESM + lib/ 产物 + 类型声明)。

    跨平台支持

    | 平台 | 自动打开浏览器 | 系统托盘 | 桌面快捷方式 | 隐藏控制台 |
    | --- | --- | --- | --- | --- |
    | Windows | ✅ cmd /c start | ✅ 鲸鱼托盘 + 右键菜单 | ✅ 自动创建 | ✅ |
    | macOS | ✅ open | — | — | — |
    | Linux | ✅ xdg-open | — | — | — |

    托盘 / 快捷方式 / 隐藏控制台为 Windows 专属功能,macOS / Linux 上自动跳过(有测试覆盖),不影响自动打开浏览器。Linux 无桌面环境时 xdg-open 失败仅打印警告,不影响服务。

    安装

    ⚠️ 重要:dsh plugin add(或 pnpm add)只安装依赖包,不会激活插件。

    插件必须同时在 cordis.patch.yml 中注册才会被加载(否则不会打开浏览器、不会显示托盘)。

    方式一:一键安装 / 升级 / 重装(推荐)

    ```bash
    npx -

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ❓ 未知 metadata 缺失
    dsh@0.1.0 ❓ 未知 —
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

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

    元数据

    License
    MIT
    npm
    dsh-web-open
    Repo
    —
    Engines
    {}
    Weekly DL
    1,792
    Monthly DL
    0
    dsh.bundle
    {}