@tbox.cn/app-template-agent 0.10.34 → 0.10.36

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
@@ -156,6 +156,7 @@ pnpm install
156
156
  2. **flex 子项设 `flex-shrink: 0`**——壳内内容宽度不定,防元素被压缩变形。
157
157
  3. **滚动容器隐藏滚动条**(`::-webkit-scrollbar { display: none }`)——web-view 无原生滚动条,出现即破相。
158
158
  4. **颜色用 `rgba()` 传统语法**——避免 `color-mix`/`oklch` 等新语法在低版本 web-view 内核不渲染。
159
+ 5. **整页背景**——背景图或渐变设置在 `.chat-page__bg`,首页容器保持透明。
159
160
 
160
161
  ## 工程边界(check-workspace 校验)
161
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-template-agent",
3
- "version": "0.10.34",
3
+ "version": "0.10.36",
4
4
  "description": "tbox AI Agent 全栈模板(多包 pnpm workspace):apps/client + apps/server。唯一模板(W4 单一模板统一化:缺省带 AI 支付体验的 chat 形态;mall 能力经 profiles/mall 加装),能力经 CLI module add 模块扩展(shopping-guide/member 等)。",
5
5
  "engines": {
6
6
  "node": ">=24.0.0 <25.0.0"
@@ -10,10 +10,14 @@
10
10
  background: var(--tbox-bg-page);
11
11
 
12
12
  &__bg {
13
+ /* 整页背景独立于滚动内容,覆盖历史入口、首页与底部输入区。 */
13
14
  position: absolute;
14
15
  inset: 0;
15
16
  z-index: 0;
16
17
  background: var(--tbox-bg-page);
18
+ background-position: center;
19
+ background-size: cover;
20
+ background-repeat: no-repeat;
17
21
  pointer-events: none;
18
22
  }
19
23
 
@@ -50,9 +54,9 @@
50
54
  margin-left: var(--tbox-page-gutter);
51
55
  }
52
56
 
53
- /* 顶部历史入口在场时欢迎区不再叠加自身顶部留白:胶囊到标题区留 4PX(= 欢迎区自带上边距)。 */
54
- .history-entry ~ .mall-home {
55
- padding-top: 0;
57
+ &__home-slot {
58
+ /* 首页子元素的外边距留在槽内,不折叠到历史入口与首页之间。 */
59
+ display: flow-root;
56
60
  }
57
61
 
58
62
  /* 对话开始后首页仍保留,消息接在联单主卡下方。 */
@@ -2,7 +2,7 @@
2
2
  .history-entry {
3
3
  display: flex;
4
4
  justify-content: center;
5
- /* 自身不留边距;与欢迎区的 4PX 间距由页面 index.less 的 `.history-entry ~ .mall-home` 统一编排。 */
5
+ /* 外部间距由页面容器与首页内部留白管理。 */
6
6
  padding: 0;
7
7
 
8
8
  &__button {
@@ -16,8 +16,8 @@ catalogs:
16
16
  specifier: 0.2.2
17
17
  version: 0.2.2
18
18
  '@tbox.cn/app-agent-sdk-server':
19
- specifier: 0.3.6
20
- version: 0.3.6
19
+ specifier: 0.3.7
20
+ version: 0.3.7
21
21
  '@tbox.cn/app-contracts':
22
22
  specifier: 0.13.5
23
23
  version: 0.13.5
@@ -152,7 +152,7 @@ importers:
152
152
  devDependencies:
153
153
  '@tbox.cn/app-agent-sdk-server':
154
154
  specifier: 'catalog:'
155
- version: 0.3.6(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
155
+ version: 0.3.7(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
156
156
  '@types/node':
157
157
  specifier: 'catalog:'
158
158
  version: 24.13.3
@@ -221,7 +221,7 @@ importers:
221
221
  version: 0.1.0(@mastra/core@1.59.0(ai@6.0.246(zod@3.25.76))(express@4.22.2)(rxjs@7.8.1)(zod@3.25.76))(@tbox-dev-js/sdk@0.1.18)(zod@3.25.76)
222
222
  '@tbox.cn/app-agent-sdk-server':
223
223
  specifier: 'catalog:'
224
- version: 0.3.6(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
224
+ version: 0.3.7(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
225
225
  '@tbox.cn/app-contracts':
226
226
  specifier: 'catalog:'
227
227
  version: 0.13.5
@@ -344,7 +344,7 @@ importers:
344
344
  version: 0.2.2(@types/react@18.3.31)
345
345
  '@tbox.cn/app-agent-sdk-server':
346
346
  specifier: 'catalog:'
347
- version: 0.3.6(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
347
+ version: 0.3.7(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
348
348
  '@tbox.cn/app-contracts':
349
349
  specifier: 'catalog:'
350
350
  version: 0.13.5
@@ -387,7 +387,7 @@ importers:
387
387
  version: 0.2.2(@types/react@18.3.31)
388
388
  '@tbox.cn/app-agent-sdk-server':
389
389
  specifier: 'catalog:'
390
- version: 0.3.6(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
390
+ version: 0.3.7(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)
391
391
  '@tbox.cn/app-contracts':
392
392
  specifier: 'catalog:'
393
393
  version: 0.13.5
@@ -1421,8 +1421,8 @@ packages:
1421
1421
  resolution: {integrity: sha512-Ciu+g4yVy9Ftd9f0KP7D8VVhUy6C4nzzVNxw2ncv2x+VcMO7weobQYbf+SfXgCpKaF30J7tLDBuAs6fjCWg+ZQ==}
1422
1422
  engines: {node: '>=20.0.0'}
1423
1423
 
1424
- '@tbox.cn/app-agent-sdk-server@0.3.6':
1425
- resolution: {integrity: sha512-1TI2d/3D5cm5MJouP4DMhPo4Cp9Ww3yPowZho/m6KCyvlgAzdRnbpT2kCIKv9+8q4Y5y1utFFiIIHWSowKyAsA==}
1424
+ '@tbox.cn/app-agent-sdk-server@0.3.7':
1425
+ resolution: {integrity: sha512-+wdCYchHHXaBndKEUXRKpUsH9Y7X+u+wJe1yX7eWfRtDUJ1MAjQrcglQd1FEZMp1iPhMqhTEg+3KUtWh/JBomg==}
1426
1426
  engines: {node: '>=20.0.0'}
1427
1427
 
1428
1428
  '@tbox.cn/app-contracts@0.13.2':
@@ -1433,10 +1433,6 @@ packages:
1433
1433
  resolution: {integrity: sha512-P16LFd+ZzIASrujs6fyaOEwRnsLg7Lh5k1qOVDNblmohrvUbVIOK5ntn+7mupJxnjK7SY43RUT4mtWtfM85/rQ==}
1434
1434
  engines: {node: '>=20.0.0'}
1435
1435
 
1436
- '@tbox.cn/app-contracts@0.13.4':
1437
- resolution: {integrity: sha512-CR9qpX4lFRYnsl2933yytKG1YT0W8rQuzOVLRIlH7gpE+ct4HAxLUIULx4iwdhjmYXZ2dlp99bbVgmBbi/Rrkg==}
1438
- engines: {node: '>=20.0.0'}
1439
-
1440
1436
  '@tbox.cn/app-contracts@0.13.5':
1441
1437
  resolution: {integrity: sha512-xqS3J2eCP1D1nevPUm9zWOIVznPDWxTGFccw9kd5wjwU/ItQsLRT896Ea65qPHCxrEnOGK9J0o6GGs2xIh3fnQ==}
1442
1438
  engines: {node: '>=20.0.0'}
@@ -1449,11 +1445,6 @@ packages:
1449
1445
  resolution: {integrity: sha512-HLLRg1y2jB32uJPL3/a387eABdNZUxrmkGoJwIv44XV9B94DXmTgb9vxYzbyBa0FazxXG0WudyzFnmH5eeqqrw==}
1450
1446
  engines: {node: '>=20.0.0'}
1451
1447
 
1452
- '@tbox.cn/app-sdk-server@0.26.7':
1453
- resolution: {integrity: sha512-6qVqOYdIHNCeWAHJDoxWQlp3lSNEsAlWRNxJMFh0RCLTM2FF0zzd/bbtV6pSyEiTsl1GcwklihsrejMrsd0yhQ==}
1454
- engines: {node: '>=20.0.0'}
1455
- hasBin: true
1456
-
1457
1448
  '@tbox.cn/app-sdk-server@0.26.8':
1458
1449
  resolution: {integrity: sha512-ylkPOANepWet+1LBRw5ituVDg7qYi0Msbe7QOy2H8qSmWSvDk6cHwFlRimtqHf9SsIGB+VWQfaOPG3WBm+gxug==}
1459
1450
  engines: {node: '>=20.0.0'}
@@ -1462,10 +1453,6 @@ packages:
1462
1453
  '@tbox.cn/app-theme-tbox@0.1.6':
1463
1454
  resolution: {integrity: sha512-u3CAWYYChTYCvqMF0bBxeIDhDSa/rfailxzIKnjRrumRgQYs6YS10t4kl3vgQpf6s8KTPFZoGKdJmrLtnMccnQ==}
1464
1455
 
1465
- '@tbox.cn/app-toolkit@0.8.6':
1466
- resolution: {integrity: sha512-nhiUr2Hz9zn9dAZmuUXPg+7mkzGDtschMXiriBDp2v7AmsvWXbH3Tk93+nb89GT347VrwGFj7XTW8Zbshf1PVQ==}
1467
- engines: {node: '>=20.0.0'}
1468
-
1469
1456
  '@tbox.cn/app-toolkit@0.8.7':
1470
1457
  resolution: {integrity: sha512-Hn6zGtnaoyQ9C5ss2IqL5NJznBfieyML6rzWSKCNMGiu478W3ZZFYFmOdEyfvyjyrppLq8jHq3IDgJbYaQmNDQ==}
1471
1458
  engines: {node: '>=20.0.0'}
@@ -4190,7 +4177,7 @@ snapshots:
4190
4177
  - '@types/react'
4191
4178
  - immer
4192
4179
 
4193
- '@tbox.cn/app-agent-sdk-server@0.3.6(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)':
4180
+ '@tbox.cn/app-agent-sdk-server@0.3.7(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)':
4194
4181
  dependencies:
4195
4182
  '@ag-ui/core': 0.0.47
4196
4183
  '@ai-sdk/openai-compatible': 2.0.68(zod@3.25.76)
@@ -4198,9 +4185,9 @@ snapshots:
4198
4185
  '@mastra/core': 1.59.0(ai@6.0.246(zod@3.25.76))(express@4.22.2)(rxjs@7.8.1)(zod@3.25.76)
4199
4186
  '@mastra/observability': 1.16.5(@mastra/core@1.59.0(ai@6.0.246(zod@3.25.76))(express@4.22.2)(rxjs@7.8.1)(zod@3.25.76))(zod@3.25.76)
4200
4187
  '@tbox.cn/agent-plugin': 0.1.0(@mastra/core@1.59.0(ai@6.0.246(zod@3.25.76))(express@4.22.2)(rxjs@7.8.1)(zod@3.25.76))(@tbox-dev-js/sdk@0.1.18)(zod@3.25.76)
4201
- '@tbox.cn/app-contracts': 0.13.4
4188
+ '@tbox.cn/app-contracts': 0.13.5
4202
4189
  '@tbox.cn/app-sdk-core': 0.20.5
4203
- '@tbox.cn/app-sdk-server': 0.26.7
4190
+ '@tbox.cn/app-sdk-server': 0.26.8
4204
4191
  ai: 6.0.246(zod@3.25.76)
4205
4192
  express: 4.22.2
4206
4193
  gray-matter: 4.0.3
@@ -4230,12 +4217,6 @@ snapshots:
4230
4217
  react: 18.3.1
4231
4218
  zod: 3.25.76
4232
4219
 
4233
- '@tbox.cn/app-contracts@0.13.4':
4234
- dependencies:
4235
- '@ag-ui/core': 0.0.47
4236
- react: 18.3.1
4237
- zod: 3.25.76
4238
-
4239
4220
  '@tbox.cn/app-contracts@0.13.5':
4240
4221
  dependencies:
4241
4222
  '@ag-ui/core': 0.0.47
@@ -4253,18 +4234,6 @@ snapshots:
4253
4234
  dependencies:
4254
4235
  '@tbox.cn/app-contracts': 0.13.2
4255
4236
 
4256
- '@tbox.cn/app-sdk-server@0.26.7':
4257
- dependencies:
4258
- '@ag-ui/core': 0.0.47
4259
- '@tbox.cn/app-contracts': 0.13.4
4260
- '@tbox.cn/app-sdk-core': 0.20.5
4261
- '@tbox.cn/app-toolkit': 0.8.6
4262
- express: 4.22.2
4263
- jose: 6.2.8
4264
- zod: 3.25.76
4265
- transitivePeerDependencies:
4266
- - supports-color
4267
-
4268
4237
  '@tbox.cn/app-sdk-server@0.26.8':
4269
4238
  dependencies:
4270
4239
  '@ag-ui/core': 0.0.47
@@ -4279,11 +4248,6 @@ snapshots:
4279
4248
 
4280
4249
  '@tbox.cn/app-theme-tbox@0.1.6': {}
4281
4250
 
4282
- '@tbox.cn/app-toolkit@0.8.6':
4283
- dependencies:
4284
- ajv: 8.20.0
4285
- zod: 3.25.76
4286
-
4287
4251
  '@tbox.cn/app-toolkit@0.8.7':
4288
4252
  dependencies:
4289
4253
  ajv: 8.20.0
@@ -41,7 +41,7 @@ catalog:
41
41
  "@tbox.cn/app-sdk-core": 0.20.5
42
42
  "@tbox.cn/app-sdk-client": 0.21.4
43
43
  "@tbox.cn/app-sdk-server": 0.26.8
44
- "@tbox.cn/app-agent-sdk-server": 0.3.6
44
+ "@tbox.cn/app-agent-sdk-server": 0.3.7
45
45
  "@tbox.cn/app-agent-sdk-client": 0.2.2
46
46
  "@tbox.cn/app-contracts": 0.13.5
47
47
  "@tbox.cn/app-contracts-mall": 0.18.0