@deepseek-ai/dsh-client-web 0.0.1-rc.1 → 0.0.1-rc.5

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
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
- README.md: 48355a046910bd5b78249af7b7781dab6a7c3a60
6
- README.zh.md: f0b567569849c698e8a1a29323e7088b49996522
5
+ README.md: 4b44e0e2c2e192363ce32ac2decc218f5ea17bd2
6
+ README.zh.md: d9cd3574fc1f1940b7dcd5e7722a3dccd1e75600
package/README.md CHANGED
@@ -6,7 +6,7 @@ Web shell kernel: `new AppWebEntry(el, seams?).run()` mounts the whole client th
6
6
 
7
7
  Shell self-sufficiency (web2 hard rule): the kernel value-imports no plugin package — the boot status store and signals are hand-rolled here (`loader-status.ts`), so the loading page works while (and especially when) plugins fail. The app-shell assembly (`@deepseek-ai/dsh-client-app-shell`, a shell-owned pseudo entry with no npm package behind it) is the only module registered through `registerStatic`; it inject-waits on slots/sessions/layout like any plugin.
8
8
 
9
- `PLATFORM_MODULES` (src/platform.ts) is the single source of truth for the shared module surface: seed-table keys, tsdown client externals, and the vite alias set are its projections.
9
+ `PLATFORM_MODULES` (src/platform.ts) is the single source of truth for shared modules: seed-table keys, tsdown client externals, and the Vite alias set are its projections.
10
10
 
11
11
  The optional override parameter `seams` forwards the module system's `loadBundle` transport override (`BootSeams`) for environments where external `<script>` execution cannot reach the page context; ordinary browser callers omit it.
12
12
 
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/lib/index.js CHANGED
@@ -14,6 +14,7 @@ import { useEffect, useRef, useSyncExternalStore } from "react";
14
14
  import * as ReactDom from "react-dom";
15
15
  import * as UiSlots from "@deepseek-ai/dsh-client-ui-slots";
16
16
  import * as UiPrimitives from "@deepseek-ai/dsh-client-ui-primitives";
17
+ import * as UiAttachment from "@deepseek-ai/dsh-client-ui-attachment";
17
18
  import * as SchemaForm from "@deepseek-ai/dsh-client-schema-form";
18
19
  //#region \0rolldown/runtime.js
19
20
  var __defProp = Object.defineProperty;
@@ -159,7 +160,7 @@ function AppRoot(props) {
159
160
  */
160
161
  /**
161
162
  * Build the static table handed to the module loader at boot.
162
- * @returns module specifier → export-surface entity (one entry per platform word).
163
+ * @returns module specifier → exported entity (one entry per platform word).
163
164
  */
164
165
  function getStaticModules() {
165
166
  return {
@@ -171,6 +172,7 @@ function getStaticModules() {
171
172
  "@deepseek-ai/dsh-client-ui-slots": UiSlots,
172
173
  "@deepseek-ai/dsh-client-web-react": WebReact,
173
174
  "@deepseek-ai/dsh-client-ui-primitives": UiPrimitives,
175
+ "@deepseek-ai/dsh-client-ui-attachment": UiAttachment,
174
176
  "@deepseek-ai/dsh-client-schema-form": SchemaForm
175
177
  };
176
178
  }
@@ -427,6 +429,7 @@ const PLATFORM_MODULES = [
427
429
  "@deepseek-ai/dsh-client-ui-slots",
428
430
  "@deepseek-ai/dsh-client-web-react",
429
431
  "@deepseek-ai/dsh-client-ui-primitives",
432
+ "@deepseek-ai/dsh-client-ui-attachment",
430
433
  "@deepseek-ai/dsh-client-schema-form"
431
434
  ];
432
435
  //#endregion
@@ -4,7 +4,7 @@
4
4
  * @module @deepseek-ai/dsh-client-web/src/platform
5
5
  */
6
6
  /** The module specifiers the shell shares into the frozen module table. */
7
- export declare const PLATFORM_MODULES: readonly ["react", "react/jsx-runtime", "react-dom", "react-dom/client", "@deepseek-ai/cordis", "@deepseek-ai/dsh-client-ui-slots", "@deepseek-ai/dsh-client-web-react", "@deepseek-ai/dsh-client-ui-primitives", "@deepseek-ai/dsh-client-schema-form"];
7
+ export declare const PLATFORM_MODULES: readonly ["react", "react/jsx-runtime", "react-dom", "react-dom/client", "@deepseek-ai/cordis", "@deepseek-ai/dsh-client-ui-slots", "@deepseek-ai/dsh-client-web-react", "@deepseek-ai/dsh-client-ui-primitives", "@deepseek-ai/dsh-client-ui-attachment", "@deepseek-ai/dsh-client-schema-form"];
8
8
  /** One platform module specifier (a seed-table key). */
9
9
  export type PlatformModule = (typeof PLATFORM_MODULES)[number];
10
10
  //# sourceMappingURL=platform.d.ts.map
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Build the static table handed to the module loader at boot.
3
- * @returns module specifier → export-surface entity (one entry per platform word).
3
+ * @returns module specifier → exported entity (one entry per platform word).
4
4
  */
5
5
  export declare function getStaticModules(): Record<string, unknown>;
6
6
  //# sourceMappingURL=seed.d.ts.map
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.1",
4
+ "version": "0.0.1-rc.5",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -29,27 +29,28 @@
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.1",
33
- "@deepseek-ai/dsh-client-schema-form": "^0.0.1-rc.1",
34
- "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.1",
35
- "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.1",
36
- "@deepseek-ai/dsh-client-web-react": "^0.0.1-rc.1",
37
- "@deepseek-ai/dsh-client-ui-theme": "^0.0.1-rc.1"
32
+ "@deepseek-ai/dsh-client-modules": "^0.0.1-rc.5",
33
+ "@deepseek-ai/dsh-client-schema-form": "^0.0.1-rc.5",
34
+ "@deepseek-ai/dsh-client-ui-attachment": "^0.0.1-rc.5",
35
+ "@deepseek-ai/dsh-client-ui-slots": "^0.0.1-rc.5",
36
+ "@deepseek-ai/dsh-client-ui-theme": "^0.0.1-rc.5",
37
+ "@deepseek-ai/dsh-client-web-react": "^0.0.1-rc.5",
38
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.0.1-rc.5"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@types/react": "~18.3.1",
41
42
  "@types/react-dom": "~18.3.0",
42
43
  "typescript": "^6.0.3",
43
- "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.1",
44
- "@deepseek-ai/dsh-client-test-runtime": "^0.0.1-rc.1",
45
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
46
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.1",
47
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
44
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2-rc.4",
45
+ "@deepseek-ai/dsh-client-runtime": "^0.0.1-rc.5",
46
+ "@deepseek-ai/dsh-client-test-runtime": "^0.0.1-rc.5",
47
+ "@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
48
+ "@deepseek-ai/cordis": "^4.0.1-rc.4"
48
49
  },
49
50
  "peerDependencies": {
50
- "@deepseek-ai/cordis-plugin-loader": "^1.0.1-rc.1",
51
- "@deepseek-ai/dsh-invariants": "^0.0.1-rc.1",
52
- "@deepseek-ai/cordis": "^4.0.1-rc.1"
51
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2-rc.4",
52
+ "@deepseek-ai/dsh-invariants": "^0.0.1-rc.5",
53
+ "@deepseek-ai/cordis": "^4.0.1-rc.4"
53
54
  },
54
55
  "files": [
55
56
  "lib/index.js",