feat(desktop): add Electron desktop shell over the web profile

Spawn the real dsh CLI running the web profile on loopback (OS-assigned
port), parse the printed readiness URL, and open a native window at it.
The harness and its native addons stay on the system Node ABI; the main
imports only electron and node builtins.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pine
2026-08-14 10:23:22 +08:00
parent 47f943859b
commit 0cdbbfbf1a
8 changed files with 266 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
{
"name": "@deepseek-ai/dsh-desktop",
"description": "Electron desktop shell over the dsh harness: spawns the `web` profile on loopback and opens the GUI in a native window.",
"version": "0.1.0-rc.5",
"private": true,
"type": "module",
"main": "lib/types/main.js",
"files": [
"lib/types/*.js",
"lib/types/*.d.ts",
"electron-builder.yml"
],
"scripts": {
"build": "tsc -b tsconfig.json",
"typecheck": "tsc -b tsconfig.json",
"test": "vitest run",
"pack": "electron-builder"
},
"dependencies": {
"@deepseek-ai/dsh": "workspace:^"
},
"devDependencies": {
"@types/node": "^22.0.0",
"electron": "^42.4.1",
"electron-builder": "^25.1.8",
"typescript": "^6.0.3",
"vitest": "^4.1.8"
}
}