@morlay/dsh-desktop-host 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  被 [`@morlay/dsh-desktopify`](../dsh-desktopify/README.md) 使用,不单独跑:
10
10
 
11
11
  - `dev` / `bundle` 把本包落位到部署的 `<runtime>/node_modules/@morlay/dsh-desktop-host`(`dev` 整份复制源码树,`bundle` 按 manifest `files` 复制),四样必须都在——`lib/index.js`(启动入口)、`lib/webserver.js`(桌面 patch 行按 `../lib/webserver.js` 加载)、`lib/wire.js`、`config/desktop.cordis.patch.yml`(入口按它作 `patchFiles` 读);
12
- - 壳按 `lib/index.js` 启动它(stdio 五元组:FD 3/4 是管道,FD 5 是 Node IPC),argv 为 `[entry, runtimeDir, projectDir, primaryRuntime, pnpmEntry?, nodeBin?]`;
12
+ - 壳按 `lib/index.js` 启动它(stdio 五元组:FD 3/4 是管道,FD 5 是 Node IPC),argv 为 `[entry, runtimeDir, projectDir, pnpmEntry?, nodeBin?]`;
13
13
  - IPC:`ready { protocolVersion }` / `fatal { message, diagnostic }`,另外收 `shutdown`。
14
14
 
15
15
  运行时做的事(profile 装配、`webServer` 替身、认证接管、客户端 transport 与账号面)、出口面与依赖边界见[设计 桌面host的运行时面与依赖边界](./.agents/designs/20260929-桌面host的运行时面与依赖边界.md);载波形态的取舍见[设计 桌面无端口传输与窗口对齐](../dsh-desktopify/.agents/designs/20260920-桌面无端口传输与窗口对齐.md)。
package/lib/index.js CHANGED
@@ -6,30 +6,6 @@ import { fileURLToPath } from "node:url";
6
6
  import { inspect } from "node:util";
7
7
  import { loadLayeredEnv, loadProfileDirectory, reportSkippedBundles } from "@deepseek-ai/dsh-app-boot";
8
8
  import { runProfile } from "@deepseek-ai/dsh/profile-boot";
9
- import { resolveDshHome } from "@deepseek-ai/dsh-home-paths";
10
- import * as workspaceDependencies from "@deepseek-ai/dsh-tool-workspace-dependencies";
11
- //#region \0rolldown/runtime.js
12
- var __defProp = Object.defineProperty;
13
- var __exportAll = (all, no_symbols) => {
14
- let target = {};
15
- for (var name in all) __defProp(target, name, {
16
- get: all[name],
17
- enumerable: true
18
- });
19
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
20
- return target;
21
- };
22
- //#endregion
23
- //#region src/office.ts
24
- var office_exports = /* @__PURE__ */ __exportAll({
25
- apply: () => apply,
26
- name: () => name
27
- });
28
- const name = "desktop-office";
29
- async function apply(ctx, config) {
30
- await ctx.plugin(workspaceDependencies, config);
31
- }
32
- //#endregion
33
9
  //#region src/transport.ts
34
10
  const DESKTOP_TRANSPORT_SCRIPT = `globalThis.__DSH_TRANSPORT__={
35
11
  _desktop:true,
@@ -217,9 +193,8 @@ async function main() {
217
193
  const runtimeDir = process.argv[2];
218
194
  const projectDir = process.argv[3];
219
195
  if (runtimeDir === void 0 || projectDir === void 0 || process.send === void 0) throw new Error("dsh desktop: expected runtime and profile directories, byte pipes, and a Node IPC channel");
220
- const primaryRuntime = process.argv[4] ?? join(runtimeDir, "..", "runtime", "primary-runtime");
221
- const pnpmEntry = process.argv[5];
222
- const nodeBin = process.argv[6];
196
+ const pnpmEntry = process.argv[4];
197
+ const nodeBin = process.argv[5];
223
198
  const requestPipe = createReadStream("", {
224
199
  fd: 3,
225
200
  autoClose: false
@@ -278,10 +253,6 @@ async function main() {
278
253
  const { ctx } = await application;
279
254
  takeOverDesktopAuthentication(ctx);
280
255
  installDesktopTransport(ctx);
281
- await ctx.plugin(office_exports, {
282
- source: primaryRuntime,
283
- root: join(resolveDshHome(), "dsh-runtimes", "dsh-primary-runtime")
284
- });
285
256
  const webServer = ctx.get("webServer");
286
257
  const pending = /* @__PURE__ */ new Map();
287
258
  const runs = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morlay/dsh-desktop-host",
3
- "version": "0.2.2",
4
- "description": "Desktop host process for dsh-desktopify: boots the desktop profile and serves it through an in-process, portless webServer over byte pipes — upstream apps/desktop-host with the web carrier taken over and the Office skill mount removed.",
3
+ "version": "0.2.3",
4
+ "description": "Desktop host process for dsh-desktopify: boots the desktop profile and serves it through an in-process, portless webServer over byte pipes — upstream apps/desktop-host with the web carrier taken over and the Office composition dropped.",
5
5
  "keywords": [
6
6
  "desktop",
7
7
  "dsh",
@@ -32,9 +32,7 @@
32
32
  "dependencies": {
33
33
  "@deepseek-ai/dsh": "^0.2.0-rc.1",
34
34
  "@deepseek-ai/dsh-app-boot": "^0.2.0-rc.1",
35
- "@deepseek-ai/dsh-home-paths": "^0.2.0-rc.1",
36
35
  "@deepseek-ai/dsh-host-webserver": "^0.2.0-rc.1",
37
- "@deepseek-ai/dsh-tool-workspace-dependencies": "^0.2.0-rc.1",
38
36
  "@deepseek-ai/schemastery": "^3.18.4"
39
37
  },
40
38
  "devDependencies": {