@morlay/dsh-desktop-host 0.0.1-alpha.1
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/LICENSE +21 -0
- package/README.md +32 -0
- package/lib/index.js +6684 -0
- package/package.json +47 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 morlay
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @morlay/dsh-desktop-host
|
|
2
|
+
|
|
3
|
+
桌面部署里那个 **host 进程**:把 Web 应用按 `desktop` profile 启起来,并把 URL / index injections 通过 IPC
|
|
4
|
+
报给 Electron 壳。
|
|
5
|
+
|
|
6
|
+
上游 `apps/desktop-host`(`@deepseek-ai/dsh-desktop-host`)是 `private: true` 的应用,外部装不到,所以这里
|
|
7
|
+
是它的**变体包**:argv / IPC 契约、`lib/index.js` 入口路径照旧,差别只有一处——Office 组合不再挂
|
|
8
|
+
`@deepseek-ai/dsh-skill-office`(见 [`src/office.ts`](./src/office.ts))。
|
|
9
|
+
|
|
10
|
+
## 用法
|
|
11
|
+
|
|
12
|
+
被 [`@morlay/dsh-desktopify`](../dsh-desktopify/README.md) 使用,不单独跑:
|
|
13
|
+
|
|
14
|
+
- `dev` / `bundle` 把本包整份(`lib/index.js` 及 manifest)复制进部署的
|
|
15
|
+
`<runtime>/node_modules/@morlay/dsh-desktop-host`;
|
|
16
|
+
- 壳按 `<runtime>/node_modules/@morlay/dsh-desktop-host/lib/index.js` 启动它,argv 为
|
|
17
|
+
`[runtimeDir, projectDir, primaryRuntime, profileResolution, pnpmEntry, nodeBin]`。
|
|
18
|
+
|
|
19
|
+
## 依赖边界
|
|
20
|
+
|
|
21
|
+
`@deepseek-ai/*` 全部由**部署自己的** `node_modules` 提供(与上游同边界):
|
|
22
|
+
|
|
23
|
+
- `dependencies`:本包入口真正 import 的 `@deepseek-ai/dsh`(含 `./profile-boot` 子路径)、
|
|
24
|
+
`@deepseek-ai/dsh-app-boot`、`@deepseek-ai/dsh-home-paths`;
|
|
25
|
+
- `peerDependencies`:`@deepseek-ai/cordis`;
|
|
26
|
+
- 类型面 `@deepseek-ai/dsh-client-connection` / `@deepseek-ai/dsh-host-webserver` 只在 devDependencies
|
|
27
|
+
(空 import 带 Context merge,构建后即被擦除);
|
|
28
|
+
- vendor 里的 `update-tasks` 与 `workspace-dependencies` 模块在构建期内联,运行期不依赖 vendor 路径。
|
|
29
|
+
|
|
30
|
+
清单只声明**这份代码真正用到**的包:上游那份 app manifest 里的组合依赖
|
|
31
|
+
(`@deepseek-ai/dsh-skill-office`、`dsh-agent`、`dsh-jobs`、`dsh-tools` …)属于部署的官方闭包,
|
|
32
|
+
由 `@morlay/dsh-desktopify` 的部署步骤按 profile 提供,不该由本包声明。
|