@deepseek-ai/dsh-client-web 0.0.1-rc.2 → 0.1.0-rc.2

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 CHANGED
@@ -1,28 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
- Copyright (c) 2026, DeepSeek
3
+ Copyright (c) 2026 DeepSeek
4
4
 
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
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:
7
11
 
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
10
14
 
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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.i18n.yaml CHANGED
@@ -3,4 +3,4 @@
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/web/README.md
5
5
  README.md: 4b44e0e2c2e192363ce32ac2decc218f5ea17bd2
6
- README.zh.md: f0b567569849c698e8a1a29323e7088b49996522
6
+ README.zh.md: d9cd3574fc1f1940b7dcd5e7722a3dccd1e75600
package/README.zh.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  Web 外壳内核:`new AppWebEntry(el, seams?).run()` 通过两阶段启动(web2)挂载整个客户端。第一阶段(模块侧):构建客户端模块系统(`@deepseek-ai/dsh-client-modules`),以主机推送的配置项图(`window.__DSH_BOOT__`)为基础,并行预取 `immediately` 层级;执行组合包只会注册 factory。第二阶段(插件侧):挂载仓库内置的 Cordis Loader,并通过其 `internal` 约定注入模块系统;为每一行图数据创建一个 loader 配置项,另创建外壳自身的 app-shell 组装配置项(tree.import 会物化各模块);以 settle 作为 AppRoot 的门禁(loader 完全停稳 + 每个配置项 fiber 都为 ACTIVE → 一次切换显示完整 UI)。组合完全由主机图决定:花名册和 immediately 层级都位于负责组合的应用中;外壳不作任何组合决策。
6
6
 
7
- 外壳自给自足(web2 硬性规则):内核不对任何插件包(package)执行值导入;启动状态 store 与信号在这里手写(`loader-status.ts`),因此即使插件失败,加载页面仍能工作,而此时这一点尤其重要。app-shell 组装(`@deepseek-ai/dsh-client-app-shell`,由外壳拥有、背后没有 npm 包的伪配置项)是唯一通过 `registerStatic` 注册的模块;它与任何插件一样,通过 inject 等待 slots/sessions/layout。
7
+ 外壳自给自足(web2 硬性规则):内核不对任何插件包执行值导入;启动状态 store 与信号在这里手写(`loader-status.ts`),因此即使插件失败,加载页面仍能工作,而此时这一点尤其重要。app-shell 组装(`@deepseek-ai/dsh-client-app-shell`,由外壳拥有、背后没有 npm 包的伪配置项)是唯一通过 `registerStatic` 注册的模块;它与任何插件一样,通过 inject 等待 slots/sessions/layout。
8
8
 
9
- `PLATFORM_MODULES`(src/platform.ts)是共享模块表层的唯一真源:种子表 key、tsdown 客户端 external 和 vite alias 集都是它的投影。
9
+ `PLATFORM_MODULES`(src/platform.ts)是共享模块接口的唯一真源:种子表 key、tsdown 客户端 external 和 vite alias 集都是它的投影。
10
10
 
11
11
  可选的覆盖参数 `seams` 会为外部 `<script>` 执行无法到达页面上下文的环境转发模块系统的 `loadBundle` 传输覆盖(`BootSeams`);普通浏览器调用方省略此参数。
12
12
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-web",
3
3
  "description": "Web shell kernel: bootWebShell (module system holding + seed table + two-stage boot + AppRoot gate + app-shell assembly entry), consumed by the apps/web vite entry",
4
- "version": "0.0.1-rc.2",
4
+ "version": "0.1.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -25,32 +25,32 @@
25
25
  "./src/*": "./src/*",
26
26
  "./package.json": "./package.json"
27
27
  },
28
- "license": "BSD-3-Clause",
28
+ "license": "MIT",
29
29
  "dependencies": {
30
30
  "react": "^18.2.0",
31
31
  "react-dom": "^18.2.0",
32
- "@deepseek-ai/dsh-client-modules": "^0.0.1-rc.2",
33
- "@deepseek-ai/dsh-client-schema-form": "^0.0.1-rc.2",
34
- "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.2",
35
- "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.2",
36
- "@deepseek-ai/dsh-client-ui-theme": "^0.0.1-rc.2",
37
- "@deepseek-ai/dsh-client-ui-attachment": "^0.0.1-rc.2",
38
- "@deepseek-ai/dsh-client-web-react": "^0.0.1-rc.2"
32
+ "@deepseek-ai/dsh-client-schema-form": "^0.1.0-rc.2",
33
+ "@deepseek-ai/dsh-client-ui-attachment": "^0.1.0-rc.2",
34
+ "@deepseek-ai/dsh-client-modules": "^0.1.0-rc.2",
35
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.2",
36
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.2",
37
+ "@deepseek-ai/dsh-client-ui-theme": "^0.1.0-rc.2",
38
+ "@deepseek-ai/dsh-client-web-react": "^0.1.0-rc.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/react": "~18.3.1",
42
42
  "@types/react-dom": "~18.3.0",
43
43
  "typescript": "^6.0.3",
44
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
45
- "@deepseek-ai/dsh-client-test-runtime": "^0.0.1-rc.2",
46
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2",
47
- "@deepseek-ai/cordis": "^4.0.1-rc.1",
48
- "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.2"
44
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
45
+ "@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.2",
46
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.0-rc.2",
47
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2",
48
+ "@deepseek-ai/cordis": "^4.0.1"
49
49
  },
50
50
  "peerDependencies": {
51
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
52
- "@deepseek-ai/cordis": "^4.0.1-rc.1",
53
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.2"
51
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
52
+ "@deepseek-ai/dsh-invariants": "^0.1.0-rc.2",
53
+ "@deepseek-ai/cordis": "^4.0.1"
54
54
  },
55
55
  "files": [
56
56
  "lib/index.js",