fengzhiyushui/dsh-desktop-window1

dsh-desktop-window

DSH 桌面窗口插件,支持在独立的应用程序窗口中打开 DSH Web 界面,提供自动打开、设置开关及专用浏览器配置管理。

AI 分析

核心用途是提供类似桌面客户端的独立窗口交互体验。适合不想在浏览器标签页中混杂 DSH、希望其作为独立应用常驻桌面的用户。

套件
dsh-desktop-window
版本
0.4.0
授權
MIT
最近更新
2026年9月11日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fengzhiyushui/dsh-desktop-window

Usage

dsh web

## Configuration

The auto-open preference lives in `$DSH_HOME/desktop-window.json` (default `%USERPROFILE%\.dsh\desktop-window.json`). It is written by the settings switch; a hand-edit is also fine, including one saved by Notepad (a UTF-8 BOM is tolerated).

```json
{
  "autoOpen": true,
  "cleanProfileOnUnload": false
}
KeyDefaultMeaning
autoOpentrueOpen the standalone window when the server starts
cleanProfileOnUnloadfalseDelete the dedicated browser profile directory when the plugin unloads. Left false, the profile is kept so the window starts warm

HTTP endpoints

The plugin's browser half talks to these routes; they are also usable from scripts. Mutating routes reject a cross-site Origin with 403 and bodies larger than 4 KB.

RouteMethodPurpose
/desktop-window/statusGET/POST{ open, auto }
/desktop-window/togglePOSTOpen the window, or close it when open
/desktop-window/set-autoPOST{ auto: boolean } → persists the preference
/desktop-window/manifest.webmanifestGETThe injected web manifest
/desktop-window/.pngGETServed icon bytes