@morlay/dsh-desktop-host 0.0.1-alpha.7 → 0.0.1-alpha.9

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
@@ -37,7 +37,12 @@
37
37
  被改写为放行(理由与代价见[债务 桌面宿主覆写 connection 认证方法](../dsh-desktopify/.agents/debts/20260920-桌面宿主覆写connection认证方法.md));
38
38
  4. 注入客户端 transport(`__DSH_TRANSPORT__ = { ownsHost, openStream }`)并注册 `/.dsh/remote-stream`
39
39
  (双向 NDJSON:请求体首行定 endpoint/payload、后续行是上行项,响应体是下行帧 →
40
- `typertGateway.wireStream.open`)。
40
+ `typertGateway.wireStream.open`);
41
+ 5. 桌面 patch 还按 id 停掉整条**账号/登录面**(`deepseek-account`、`account-controller`、
42
+ `llm-deepseek-account`、`ui-settings-account`):登录要的回环地址回调在无端口下没有入口,
43
+ 装着只会撞死路——理由与代价见 [ADR 桌面档不含登录与账号面](./.agents/adrs/20260928-桌面档不含登录与账号面.md)。
44
+ 模型路径不受影响(`credentials` + `llm-pi-ai` 的 `ollama` 路由),探针
45
+ [`tool/verify-desktop-account-plane.mts`](./tool/verify-desktop-account-plane.mts) 判这两件事。
41
46
 
42
47
  ## 依赖边界
43
48
 
@@ -21,3 +21,33 @@
21
21
  printUrl: false
22
22
  surfaceContext: false
23
23
  trustedHosts: []
24
+
25
+ # 桌面档不含登录,账号面整条停掉。DeepSeek 账号登录是「系统浏览器授权 + 回环地址回调」:
26
+ # 上游 `dsh-deepseek-account-platform` 在 webServer 上注册 `/oauth/callback`,授权页要回到
27
+ # `http://localhost:<端口>/oauth/callback`——而本部署的 webServer 没有端口(上面的
28
+ # portless-webserver),回调没有入口;client 半算出的回调来源是页面的自定义协议来源,
29
+ # 连协议校验都过不了。装着的那几个面点进去只会撞死路,于是按 id 停掉:
30
+ #
31
+ # - `deepseek-account`:登录实现(凭据记录、事务面与浏览器流程的宿主一半);
32
+ # - `account-controller`:账号事务的 Remote 名册,硬注入 `deepseekAccount`,登录实现停了
33
+ # 它只会等一个不会出现的服务;
34
+ # - `llm-deepseek-account`:账号 token 独占的模型路由,token 只可能来自上面那条登录,
35
+ # 留着则是一条永远 `ACCOUNT_SIGN_IN_REQUIRED` 的死路由;
36
+ # - `ui-settings-account`:账号的 client 面(设置页的账号页、侧栏账号菜单、桌面首次引导
37
+ # 覆盖层、充值页宿主),并且是 `ui-settings-account` 这个 settings namespace 的 owner。
38
+ #
39
+ # 留下的仍是本部署的模型路径:`credentials`(通用凭据服务)与 `llm-deepseek`(官方 API key
40
+ # 路由,不是登录)都不动——模型走 ollama provider,key 由 `credentials` 解析
41
+ # `apiKeyEnv: OLLAMA_API_KEY`(profile 层给的)。
42
+
43
+ - id: deepseek-account
44
+ disabled: true
45
+
46
+ - id: llm-deepseek-account
47
+ disabled: true
48
+
49
+ - id: account-controller
50
+ disabled: true
51
+
52
+ - id: ui-settings-account
53
+ disabled: true
package/lib/index.js CHANGED
@@ -4,7 +4,7 @@ import { createReadStream, createWriteStream } from "node:fs";
4
4
  import { join } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { inspect } from "node:util";
7
- import { loadLayeredEnv, loadProfileDirectory } from "@deepseek-ai/dsh-app-boot";
7
+ import { loadLayeredEnv, loadProfileDirectory, reportSkippedBundles } from "@deepseek-ai/dsh-app-boot";
8
8
  import { runProfile } from "@deepseek-ai/dsh/profile-boot";
9
9
  import { resolveDshHome } from "@deepseek-ai/dsh-home-paths";
10
10
  import * as workspaceDependencies from "@deepseek-ai/dsh-tool-workspace-dependencies";
@@ -285,6 +285,7 @@ async function main() {
285
285
  };
286
286
  const installAnchor = join(runtimeDir, "node_modules", "@deepseek-ai", "dsh", "package.json");
287
287
  const profile = loadProfileDirectory("dsh", projectDir, installAnchor);
288
+ reportSkippedBundles("dsh", profile);
288
289
  const application = runProfile({
289
290
  environment: loadLayeredEnv("dsh"),
290
291
  profile: "desktop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-desktop-host",
3
- "version": "0.0.1-alpha.7",
3
+ "version": "0.0.1-alpha.9",
4
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.",
5
5
  "keywords": [
6
6
  "desktop",
@@ -23,24 +23,29 @@
23
23
  "type": "module",
24
24
  "main": "./lib/index.js",
25
25
  "exports": {
26
+ ".": "./lib/index.js",
27
+ "./webserver": "./lib/webserver.js",
28
+ "./wire": "./lib/wire.js",
29
+ "./package.json": "./package.json",
26
30
  "./locale/*.json": "./locale/*.json"
27
31
  },
28
32
  "dependencies": {
29
- "@deepseek-ai/dsh": "0.1.7-alpha.2",
30
- "@deepseek-ai/dsh-app-boot": "0.1.7-alpha.2",
31
- "@deepseek-ai/dsh-home-paths": "0.1.7-alpha.2",
32
- "@deepseek-ai/dsh-host-webserver": "0.1.7-alpha.2",
33
- "@deepseek-ai/dsh-tool-workspace-dependencies": "0.1.7-alpha.2",
34
- "@deepseek-ai/schemastery": "3.18.4"
33
+ "@deepseek-ai/dsh": "^0.1.7-rc.2",
34
+ "@deepseek-ai/dsh-app-boot": "^0.1.7-rc.2",
35
+ "@deepseek-ai/dsh-home-paths": "^0.1.7-rc.2",
36
+ "@deepseek-ai/dsh-host-webserver": "^0.1.7-rc.2",
37
+ "@deepseek-ai/dsh-tool-workspace-dependencies": "^0.1.7-rc.2",
38
+ "@deepseek-ai/schemastery": "^3.18.4"
35
39
  },
36
40
  "devDependencies": {
37
41
  "@deepseek-ai/cordis": "4.0.4",
38
- "@deepseek-ai/dsh-api-gateway": "0.1.7-alpha.2",
39
- "@deepseek-ai/dsh-client-connection": "0.1.7-alpha.2",
42
+ "@deepseek-ai/dsh-api-gateway": "0.1.7-rc.2",
43
+ "@deepseek-ai/dsh-client-connection": "0.1.7-rc.2",
44
+ "@local/devkit": "0.1.0",
40
45
  "@types/node": "^26.5.0"
41
46
  },
42
47
  "peerDependencies": {
43
- "@deepseek-ai/cordis": "4.0.4"
48
+ "@deepseek-ai/cordis": "^4.0.4"
44
49
  },
45
50
  "engines": {
46
51
  "node": ">=24.11.0"