@tbox.cn/app-template-h5 0.1.12 → 0.1.13

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/AGENTS.md CHANGED
@@ -22,15 +22,14 @@ pnpm typecheck
22
22
  pnpm test
23
23
  pnpm build
24
24
  pnpm verify # typecheck + test + lint + build + check:inspector
25
- pnpm check:inspector # inspector 接线守卫(随 @tbox.cn/app-sdk 分发)
26
- ```
25
+ pnpm check:inspector # inspector 接线守卫(随 @tbox.cn/app-sdk-server 分发)
27
26
 
28
27
  ## SDK 复用点(优先复用,勿手写)
29
28
 
30
- - `@tbox.cn/app-sdk/client`:`configureRuntime`(API base 注入,勿硬编码 host)、`httpGet/httpPost/createService`(HTTP 客户端)、`ErrorBoundary`、`createLogger`、`installGlobalErrorReporting`
31
- - `@tbox.cn/app-sdk/server`:`createLogger`
32
- - `@tbox.cn/app-sdk/platform`:`installInspector` + vite `code-inspect` 插件(页面微调基线,受 `check:inspector` 守卫)
33
- - 不直接 import `@tbox-dev-js/sdk`——平台能力一律经 `@tbox.cn/app-sdk` 公开入口。
29
+ - `@tbox.cn/app-sdk-client`:`configureRuntime`(API base 注入,勿硬编码 host)、`httpGet/httpPost/createService`(HTTP 客户端)、`ErrorBoundary`、`createLogger`、`installGlobalErrorReporting`
30
+ - `@tbox.cn/app-sdk-server`:`createLogger`
31
+ - `@tbox.cn/app-sdk-server/platform`:`installInspector`;vite `code-inspect` 插件入口为 `@tbox.cn/app-sdk-client/platform/code-inspect`(页面微调基线,受 `check:inspector` 守卫)
32
+ - 不直接 import `@tbox-dev-js/sdk`——平台能力一律经 `@tbox.cn/app-sdk-client` / `@tbox.cn/app-sdk-server` 公开入口。开入口。
34
33
 
35
34
  ## 关键入口
36
35
 
@@ -58,6 +57,6 @@ apps/server/src/dev.ts # vite dev 入口(仅 tsx 运行;
58
57
 
59
58
  ## 边界
60
59
 
61
- - 不创建嵌套 Vite 项目、第二个 `package.json` 或额外 lockfile(check:workspace 校验)。
62
- - 无模块装配面:`tbox-app module add` 不适用于本模板(模块展开后仅告警、不装配)。
60
+ - 保持单 workspace 的 `apps/client` + `apps/server` 两成员;不新增 `apps/client/` 之外的 Vite 配置或嵌套 lockfile(`pnpm check:workspace` 校验)。
61
+ - 无模块/Provider/主题装配面:缺双端 `apps/*/src/modules.ts`——`tbox-app module add`、`tbox-app new module`、`tbox-app new provider` 会被 CLI 直接拒绝;`tbox-app theme use` 因无主题接线点也不适用。
63
62
  - 结构、路由、命令、依赖或环境变量变化时同步 README 与本文件。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # template-h5
2
2
 
3
- tbox 移动 H5 全栈模板(包名 `@tbox.cn/app-template-h5`),单 workspace:`apps/client`(React/Vite)+ `apps/server`(Express)。运行时与页面微调经 `@tbox.cn/app-sdk`。
3
+ tbox 移动 H5 全栈模板(包名 `@tbox.cn/app-template-h5`),单 workspace:`apps/client`(React/Vite)+ `apps/server`(Express)。运行时与页面微调经 `@tbox.cn/app-sdk-client` / `@tbox.cn/app-sdk-server`。
4
4
 
5
5
  ## 快速开始
6
6
 
@@ -14,9 +14,6 @@ pnpm dev
14
14
  ## 生成新应用
15
15
 
16
16
  ```sh
17
- # 本地模板目录
18
- tbox-app create . --name my-h5-app --source <tbox-app 仓>/templates/template-h5
19
- # 或 registry(公开发布后)
20
17
  tbox-app create . --name my-h5-app --source @tbox.cn/app-template-h5
21
18
  pnpm install
22
19
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-template-h5",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "tbox 移动 H5 全栈模板(单 workspace:apps/client + apps/server),运行时与页面微调经 @tbox.cn/app-sdk。",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,7 +35,7 @@
35
35
  "eslint-plugin-react-hooks": "5.2.0",
36
36
  "typescript-eslint": "8.67.0",
37
37
  "vite": "6.4.3",
38
- "@tbox.cn/app-sdk-server": "0.25.0"
38
+ "@tbox.cn/app-sdk-server": "0.26.0"
39
39
  },
40
40
  "scripts": {
41
41
  "dev": "pnpm --filter ./apps/server dev",
@@ -10,8 +10,8 @@ catalogs:
10
10
  specifier: 0.21.3
11
11
  version: 0.21.3
12
12
  '@tbox.cn/app-sdk-server':
13
- specifier: 0.25.0
14
- version: 0.25.0
13
+ specifier: 0.26.0
14
+ version: 0.26.0
15
15
  '@types/express':
16
16
  specifier: 4.17.25
17
17
  version: 4.17.25
@@ -82,7 +82,7 @@ importers:
82
82
  devDependencies:
83
83
  '@tbox.cn/app-sdk-server':
84
84
  specifier: 'catalog:'
85
- version: 0.25.0
85
+ version: 0.26.0
86
86
  eslint:
87
87
  specifier: 'catalog:'
88
88
  version: 9.39.5
@@ -140,7 +140,7 @@ importers:
140
140
  dependencies:
141
141
  '@tbox.cn/app-sdk-server':
142
142
  specifier: 'catalog:'
143
- version: 0.25.0
143
+ version: 0.26.0
144
144
  express:
145
145
  specifier: 'catalog:'
146
146
  version: 4.22.2
@@ -965,6 +965,10 @@ packages:
965
965
  resolution: {integrity: sha512-8sqP/23MoUlbTX9enFNotP5bu7XKFfigDUJ6sEn1Ff2a0rRlSTWzLWmDv9lP70cfZMPjh4MHoLKFoukr8QPvMA==}
966
966
  engines: {node: '>=20.0.0'}
967
967
 
968
+ '@tbox.cn/app-contracts@0.13.1':
969
+ resolution: {integrity: sha512-Cty4qoknyihli6ZMlxOqqTgRqwg0NOh0WOMfIWdB4rHua0QzZkP1jUoeffq5imnpIh7vXdfLhDpv/JwTrHd1XQ==}
970
+ engines: {node: '>=20.0.0'}
971
+
968
972
  '@tbox.cn/app-sdk-client@0.21.3':
969
973
  resolution: {integrity: sha512-64y22k5gzCc9eEQ0IJA1izxPaosNEmoCJ4YrsfHOoHYq2UPJCCmP7RIu3Rn4stPZ4tcmRdMdAi2y5499KObYHw==}
970
974
  engines: {node: '>=20.0.0'}
@@ -973,13 +977,13 @@ packages:
973
977
  resolution: {integrity: sha512-4kcoxnZnPgsO0RwAsjsodOXRhZNQcr9r3INN3Z03/JR2e3E+izkW2YHsgGcdbVSVX81s8gZrkaBbE+xco3wSqg==}
974
978
  engines: {node: '>=20.0.0'}
975
979
 
976
- '@tbox.cn/app-sdk-server@0.25.0':
977
- resolution: {integrity: sha512-wKKbmFnY6YU+mQOoak4UADWe1nWZKKdZeGqzatWC9Ny0W05QtDGLG9ql9kP1IwN3a5S6lFf4A6OBdSwERTFqTw==}
980
+ '@tbox.cn/app-sdk-server@0.26.0':
981
+ resolution: {integrity: sha512-VpV3sf4K/2MEsnkuK5EqZUyf9KoSVHeJUm4Al0M6R4Wumg6183apnxB2f38S5wuP30JSJShN/ww63EzRniTrjw==}
978
982
  engines: {node: '>=20.0.0'}
979
983
  hasBin: true
980
984
 
981
- '@tbox.cn/app-toolkit@0.7.5':
982
- resolution: {integrity: sha512-ObVkHKElsDz/JazUHkBaIGYYDxZxvQEtjFAk77HXBc0+PSikSRmtb62F99PWGibTnOSLq6wlkGWhk/y+Iy1UOg==}
985
+ '@tbox.cn/app-toolkit@0.8.0':
986
+ resolution: {integrity: sha512-urefCf5DCWbH9wM8dSGavA9MNdY4gx7LY16+s9jIlwhahq83mfrCP2h9ombn44ljMrv04G7mnb3vMtNeWs5/Ug==}
983
987
  engines: {node: '>=20.0.0'}
984
988
 
985
989
  '@types/babel__core@7.20.5':
@@ -2830,6 +2834,12 @@ snapshots:
2830
2834
  react: 18.3.1
2831
2835
  zod: 3.25.76
2832
2836
 
2837
+ '@tbox.cn/app-contracts@0.13.1':
2838
+ dependencies:
2839
+ '@ag-ui/core': 0.0.47
2840
+ react: 18.3.1
2841
+ zod: 3.25.76
2842
+
2833
2843
  '@tbox.cn/app-sdk-client@0.21.3':
2834
2844
  dependencies:
2835
2845
  '@tbox.cn/app-contracts': 0.13.0
@@ -2841,19 +2851,19 @@ snapshots:
2841
2851
  dependencies:
2842
2852
  '@tbox.cn/app-contracts': 0.13.0
2843
2853
 
2844
- '@tbox.cn/app-sdk-server@0.25.0':
2854
+ '@tbox.cn/app-sdk-server@0.26.0':
2845
2855
  dependencies:
2846
2856
  '@ag-ui/core': 0.0.47
2847
- '@tbox.cn/app-contracts': 0.13.0
2857
+ '@tbox.cn/app-contracts': 0.13.1
2848
2858
  '@tbox.cn/app-sdk-core': 0.20.4
2849
- '@tbox.cn/app-toolkit': 0.7.5
2859
+ '@tbox.cn/app-toolkit': 0.8.0
2850
2860
  express: 4.22.2
2851
2861
  jose: 6.2.8
2852
2862
  zod: 3.25.76
2853
2863
  transitivePeerDependencies:
2854
2864
  - supports-color
2855
2865
 
2856
- '@tbox.cn/app-toolkit@0.7.5':
2866
+ '@tbox.cn/app-toolkit@0.8.0':
2857
2867
  dependencies:
2858
2868
  ajv: 8.20.0
2859
2869
  zod: 3.25.76
@@ -33,13 +33,13 @@ catalog:
33
33
  "@types/node": 24.13.3
34
34
  express: 4.22.2
35
35
  "@types/express": 4.17.25
36
- "@tbox.cn/app-sdk-core": 0.20.4
36
+ "@tbox.cn/app-sdk-core": 0.20.5
37
37
  "@tbox.cn/app-sdk-client": 0.21.3
38
- "@tbox.cn/app-sdk-server": 0.25.0
39
- "@tbox.cn/app-agent-sdk-server": 0.2.3
40
- "@tbox.cn/app-agent-sdk-client": 0.1.6
41
- "@tbox.cn/app-contracts": 0.13.0
42
- "@tbox.cn/app-contracts-mall": 0.13.0
38
+ "@tbox.cn/app-sdk-server": 0.26.0
39
+ "@tbox.cn/app-agent-sdk-server": 0.3.1
40
+ "@tbox.cn/app-agent-sdk-client": 0.2.0
41
+ "@tbox.cn/app-contracts": 0.13.2
42
+ "@tbox.cn/app-contracts-mall": 0.13.1
43
43
  eslint: 9.39.5
44
44
  typescript-eslint: 8.67.0
45
45
  eslint-plugin-react-hooks: 5.2.0