DeepSHPlugins
dsh-desktop-electron 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-desktop-electron

客戶端與終端TypeScriptMIT

DSH Web GUI 的跨平臺 Electron 桌面殼:在自有 dsh web 之上提供常駐托盤的獨立視窗,不捆綁 Node 執行時。

5 StarsVoid0312Aurora 更新時間 2026-08-15
訪問 GitHub 倉庫
dsh-desktop-electron 專案預覽

專案介紹

中文

DSH Web GUI 的跨平臺 Electron 桌面殼:在自有 dsh web 之上提供常駐托盤的獨立視窗,不捆綁 Node 執行時。

English

A cross-platform Electron desktop shell for the DSH Web GUI: a resident-tray standalone window over your own dsh web, no bundled Node runtime.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
Void0312Aurora
倉庫
Void0312Aurora/dsh-desktop-electron
GitHub Stars
5
Forks
1
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-15
Manifest
未檢測到 / 未記錄

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

59/ 100
維護活躍
81
文件與實用資訊
50
生態關注度
27
安裝便捷訊號
80
專案宣告訊號
100

關注度尚低(5)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

git clone https://github.com/Void0312Aurora/dsh-desktop-electron.git

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-desktop-electron

English | 中文

An Electron desktop shell for the DeepSeek Harness (dsh) Web GUI: it spawns dsh web, waits for the server's readiness line, and hosts the GUI in a standalone window with tray residency.

The shell targets the public @deepseek-ai/dsh package. It relies only on the maintained dsh web --host <host> --port <port> arguments and the dsh web: <URL> readiness line.

This repository is an independently maintained DSH desktop-shell project. It carries no harness source code; the backend is provided by a dsh installation on the host.

What this is

The Web GUI is the harness's richest surface but normally lives in a browser tab: no taskbar presence, no tray, and every launch means opening a terminal and keeping the tab alive. This shell makes it a real desktop window.

It is a shell only. It bundles no Node runtime and no harness closure — it runs whatever dsh web your machine already provides, so it stays correct across harness upgrades instead of pinning a snapshot.

WindowSandboxed renderer (sandbox: true, contextIsolation: true, nodeIntegration: false, no preload) — the GUI is a normal web application
Tray residencyClosing the window hides it; the server keeps running. Only Quit terminates the server
Single instanceA second launch focuses the existing window instead of starting a second server
No orphansQuit tree-kills the server; a reaper child also tree-kills it if the main process is ever hard-killed
PlatformsWindows, macOS, Linux — pure Node/npm toolchain, no Rust/Go/Swift

Requirements

A working dsh web, resolved in this order:

  1. DSH_BIN — an explicit path to a dsh executable;
  2. DSH_HOME — a harness checkout root (~/.dsh/source/current for an install.sh install). Its built apps/cli/lib/bin.js is preferred; otherwise the tsx source launch is used, exactly as the checkout's own pnpm run dsh does;
  3. dsh on PATH.

On Windows, the spawn boundary automatically resolves npm command shims reached through either DSH_BIN or PATH, including .cmd files. Arguments remain a separate vector: the shell does not enable a general command shell and does not require users to locate the package's JavaScript entry point.

The server always listens on 127.0.0.1 with an OS-assigned port (--port 0), so it can never collide with an existing dsh web — a browser instance and this shell can run side by side.

Run from source

npm install
DSH_HOME=~/.dsh/source/current npm run dev

Package

npm run dist        # installers under release/
npm run dist:dir    # unpacked dir only, for a quick smoke

Installers are unsigned, so Windows SmartScreen and macOS Gatekeeper will warn on first run. The packaged app still needs a dsh on the host — see Requirements.

Behavior notes

  • Windows permission mode. Windows has no harness confinement backend, so the CLI's default workspace-write mode cannot boot there. When DSH_PERMISSION_MODE is unset the shell falls back to danger-full-access (approval prompts disabled) and logs a warning. Set DSH_PERMISSION_MODE explicitly to override.
  • Tree termination. On Windows the kill is taskkill /T /F, because child.kill() is TerminateProcess of the direct child only. On POSIX the server is spawned detached and the whole process group is signalled, SIGTERM then SIGKILL after a grace period. The server does not run a graceful-dispose path; session data is written per event to JSONL, so a killed server loses nothing already logged.
  • External links. Anything that opens a new window or navigates off the server origin goes to the system browser, restricted to http(s); unparsable targets are dropped.
  • Workspace semantics are the CLI's: the invoking directory is the default project root. Launching from a desktop shortcut starts in the shell's cwd, so prefer opening the app from a project directory or picking the Workspace in the GUI.
  • Logs. The server's stdout is forwarded with a [dsh web] prefix; run the app from a terminal to see both streams.

Tests

npm test        # 31 keyless cases: command resolution/spawn, readiness parsing, HTTP polling
npm run test:electron:windows # built Electron lifecycle through a Windows npm .cmd shim
npm run typecheck
npm run dist:dir # unpacked app plus packaged production-closure verification

Credits

The shell, the launcher, and the process-tree primitive were developed in a harness fork and contributed upstream; this repository is the standalone extraction. Related standalone shells: dsh-desktop (Go/Wails, Windows), dsh-desktop-mac (Swift/WKWebView), deepseek-harness-desktop (Wails + Node SEA).

License

MIT, matching the harness.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案