build(desktop): wire the Electron app into the workspace and build graph

Add desktop:dev/build/pack scripts, approve the electron build script in
pnpm-workspace.yaml allowBuilds, and reference apps/desktop (plus its
tests) in the host TypeScript program. Records the electron and
electron-builder deps in the lockfile.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Pine
2026-08-14 10:23:39 +08:00
parent 0cdbbfbf1a
commit 10a4f4a8f5
4 changed files with 2062 additions and 5 deletions
+3
View File
@@ -139,6 +139,9 @@
"demo:acp": "node --import tsx packages/examples/acp-demo/src/bin.ts --config examples/acp-agent/cordis.yml",
"mock:llm": "node --import tsx packages/test-support/llm-mock-server/src/bin.ts",
"dev:web": "tsx scripts/dev-web.ts --poll",
"desktop:build": "pnpm run build:lib:host && pnpm --filter @deepseek-ai/dsh-web-frontend run build && pnpm --filter @deepseek-ai/dsh-desktop run build",
"desktop:dev": "pnpm run desktop:build && pnpm --filter @deepseek-ai/dsh-desktop exec electron .",
"desktop:pack": "pnpm run desktop:build && pnpm --filter @deepseek-ai/dsh-desktop run pack",
"postinstall": "node scripts/install-lefthook.mjs"
},
"devDependencies": {
+2053 -4
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -53,6 +53,9 @@ allowBuilds:
# The Python runtime deploy includes the reviewed workspace postinstall that
# restores the executable bit on node-pty's macOS spawn helper.
'@deepseek-ai/dsh-subprocess-local@file:packages/subprocess/subprocess-local': true
# The desktop shell depends on the electron npm package; its postinstall
# downloads the platform Electron binary the app launches with.
electron: true
minimumReleaseAgeExclude:
# Fresh pi-ai releases carry the model catalog updates that are the whole
+3 -1
View File
@@ -83,6 +83,7 @@
"apps/web/tests/workflow-run.e2e.ts",
"apps/web/stress-tests/reasoning-chunks.stress.ts",
"apps/cli/tests/**/*.ts",
"apps/desktop/tests/**/*.ts",
"examples/*/src/**/*.ts",
"examples/*/start.ts",
"examples/*/tests/**/*.ts",
@@ -293,6 +294,7 @@
{ "path": "./packages/lsp/lsp" },
{ "path": "./packages/lsp/lsp-stdio" },
{ "path": "./packages/lsp/tool-lsp" },
{ "path": "./apps/cli" }
{ "path": "./apps/cli" },
{ "path": "./apps/desktop" }
]
}