@tbox.cn/app-template-h5 0.1.9 → 0.1.10

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
@@ -35,7 +35,7 @@ pnpm install
35
35
  | `PORT` | server | 服务端口(默认 8000) |
36
36
  | `HOST` | server | 监听地址(默认 0.0.0.0) |
37
37
  | `VITE_API_URL` | client | API base(空串/未设 = 同源相对路径);经 `configureRuntime` 注入 |
38
- | `TBOX_DEV_TOKEN` | server | 沙箱 dev server 鉴权 token(方案 W;平台运行时注入,**本地无需设置**):形状 `^[A-Za-z0-9_-]{20,128}$`。在场 → protected 双面裁决——dev 面(凭据 + 浏览器导航/同源信号)完整 vite 能力,static 面(无凭据/跨源子资源)纯 dist + SSE 刷新(`GET /__tbox_dev_hot_reload`),零源码泄漏;缺席 → classic(与历史行为字节级等价)。形状不合规 → fail-closed 全 static |
38
+ | `TBOX_DEV_TOKEN` | server | 沙箱 dev server 鉴权 token(方案 W;平台运行时注入,**本地无需设置**):形状 `^[A-Za-z0-9_-]{20,128}$`。在场 → protected 双面裁决——dev 面(凭据 + 浏览器导航/同源信号)完整 vite 能力,static 面(无凭据/跨源子资源)dist 静态 + SPA fallback catch-all(GET/HEAD 未命中恒回入口页,对齐生产)+ SSE 刷新(`GET /__tbox_dev_hot_reload`),零源码泄漏;缺席 → classic(与历史行为字节级等价)。形状不合规 → fail-closed 全 static |
39
39
  | `TBOX_DEV_SSE_KEEPALIVE_MS` | server | protected 面 SSE 心跳间隔 ms(缺省 15000;smoke 覆盖用) |
40
40
 
41
41
  ## 验收
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-template-h5",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
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.23.0"
38
+ "@tbox.cn/app-sdk-server": "0.24.0"
39
39
  },
40
40
  "scripts": {
41
41
  "dev": "pnpm --filter ./apps/server dev",
@@ -10,8 +10,8 @@ catalogs:
10
10
  specifier: 0.21.1
11
11
  version: 0.21.1
12
12
  '@tbox.cn/app-sdk-server':
13
- specifier: 0.23.0
14
- version: 0.23.0
13
+ specifier: 0.24.0
14
+ version: 0.24.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.23.0
85
+ version: 0.24.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.23.0
143
+ version: 0.24.0
144
144
  express:
145
145
  specifier: 'catalog:'
146
146
  version: 4.22.2
@@ -981,8 +981,8 @@ packages:
981
981
  resolution: {integrity: sha512-KDcFdIrIEOlwDvIqBu29CzR5vDjt0BCADMBrgrd5WlRqjrPM1/jM/RcaRO6gRuElmQCp5LfsoAkVeYTZE/6rpw==}
982
982
  engines: {node: '>=20.0.0'}
983
983
 
984
- '@tbox.cn/app-sdk-server@0.23.0':
985
- resolution: {integrity: sha512-h+WtBjHF6ophOLj+amsiejZJ8TwoxLTmbnEmgfmUxDMgXHLzqJe/A/KAXN701ryku0IEDtIRXeWJ1szPLG9H5g==}
984
+ '@tbox.cn/app-sdk-server@0.24.0':
985
+ resolution: {integrity: sha512-BzE40pZokr5DyXc5YuzJ7+PM/fA3rN9814/xxyFA5fToIz+YFIpamE4s9VgsJODYsgvfY0NsZeQ3bisv3yh6fw==}
986
986
  engines: {node: '>=20.0.0'}
987
987
  hasBin: true
988
988
 
@@ -2859,7 +2859,7 @@ snapshots:
2859
2859
  dependencies:
2860
2860
  '@tbox.cn/app-contracts': 0.12.3
2861
2861
 
2862
- '@tbox.cn/app-sdk-server@0.23.0':
2862
+ '@tbox.cn/app-sdk-server@0.24.0':
2863
2863
  dependencies:
2864
2864
  '@ag-ui/core': 0.0.47
2865
2865
  '@tbox.cn/app-contracts': 0.12.3
@@ -35,8 +35,8 @@ catalog:
35
35
  "@types/express": 4.17.25
36
36
  "@tbox.cn/app-sdk-core": 0.20.2
37
37
  "@tbox.cn/app-sdk-client": 0.21.1
38
- "@tbox.cn/app-sdk-server": 0.23.0
39
- "@tbox.cn/app-agent-sdk-server": 0.2.0
38
+ "@tbox.cn/app-sdk-server": 0.24.0
39
+ "@tbox.cn/app-agent-sdk-server": 0.2.1
40
40
  "@tbox.cn/app-agent-sdk-client": 0.1.4
41
41
  "@tbox.cn/app-contracts": 0.12.3
42
42
  "@tbox.cn/app-contracts-mall": 0.12.4