dsh-desktop-shortcut:爲 DSH Web 提供 Windows 桌面快捷方式

前言

DeepSeek Harness(DSH)的 Web 形態通常需要在本地啓動 dsh web,再手動訪問本地地址。對於經常在 Windows 上使用 DSH Web 的開發者來說,這會增加命令、路徑和 URL 的來回切換。

dsh-desktop-shortcut 要解決的問題很具體:給 DSH Web 提供一個可雙擊的桌面入口,同時在 Web UI 中加入一個日常刷新按鈕。

這是什麼

dsh-desktop-shortcut 是一個 DSH 插件,由 fuyue521 維護,許可證爲 MIT。

它的一句話定位是:創建一個 Windows 桌面快捷方式,用於啓動並打開 dsh web。插件同時會在 DSH Web UI 中加入一個可拖拽的刷新按鈕。

插件聲明的運行環境如下:

peerDependencies: @deepseek-ai/cordis ^4.0.1
engines: node >=18

核心功能

插件已覈實的功能包括:

  • One-click Windows desktop shortcut
  • Double-click the shortcut to start dsh web and open the browser
  • Draggable floating refresh button in the Web UI
  • Refresh button shows a spinning animation and green “Refresh success” feedback
  • When AI is replying, shows red “AI is replying” and disables refresh
  • Configurable browser: auto / edge / chrome
  • Custom shortcut name, icon, and launch arguments

安裝與啓用

使用前需要滿足以下前提:

  • Windows
  • Node.js / pnpm / dsh CLI 已安裝
  • DeepSeek Harness(dsh web)可在本地運行

先安裝 pnpm:

npm install -g pnpm

然後安裝插件。下面使用 README 推薦的 npm 安裝命令:

dsh plugin --profile web add dsh-desktop-shortcut

最後啓動 DSH Web:

dsh web

啓動後,桌面會自動生成一個 DeepSeek Harness 快捷方式。

典型用法

日常流程可以按下面步驟操作:

1、安裝插件。

2、啓動 dsh web。

3、在桌面找到 DeepSeek Harness 快捷方式。

4、雙擊圖標打開 DSH Web。

默認地址是:

http://127.0.0.1:3080

如果需要指定瀏覽器,可以在 cordis.patch.yml 中配置。例如使用 chrome:

- id: desktop-shortcut
  config:
    browser: chrome

已覈實的瀏覽器可選值包括 auto、edge 和 chrome。

適用場景與注意

適合在 Windows 上本地運行 DSH Web、希望減少手動命令操作的用戶。

使用時需要留意:

  • 插件以當前 dsh 進程權限運行,安裝前建議檢查源碼與許可證。
  • 如果雙擊快捷方式後頁面打不開,先確認 dsh web 已運行,並檢查地址是否爲 http://127.0.0.1:3080。
  • 刷新按鈕在 AI 回覆期間會禁用,並顯示紅色 “AI is replying”。
  • 關閉 Harness 瀏覽器窗口後,如果服務仍未停止,需要手動關閉命令行窗口。

結尾

dsh-desktop-shortcut 的價值比較收斂:它主要是給本地 DSH Web 提供一個桌面入口,並補充一個 Web UI 刷新按鈕。DSH 社區目錄是獨立站點,與 DeepSeek / 幻方無官方從屬關係,本插件可作爲社區插件安裝使用。

  • GitHub:https://github.com/fuyue521/dsh-desktop-shortcut
  • 社區目錄:未提供已覈實的具體 URL
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

小夜