@tbox.cn/app-template-agent 0.10.30 → 0.10.32
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 +4 -0
- package/apps/client/vite.config.ts +3 -1
- package/package.json +2 -2
- package/pnpm-lock.template.yaml +17 -17
- package/pnpm-workspace.template.yaml +3 -3
package/AGENTS.md
CHANGED
|
@@ -169,3 +169,7 @@ pnpm install
|
|
|
169
169
|
修改本应用任何代码时,导出面与装配文件的注释保持**自包含短文档**(用途 + 关键约束 +
|
|
170
170
|
消费视角);不引用仓库内部路径与决策编号——它们对沙箱外的读者无意义。指引类内容
|
|
171
171
|
不写进注释:集成指引用 `npx --yes @tbox.cn/app-cli skills get integration`(真源),本文件为发现入口。
|
|
172
|
+
|
|
173
|
+
## 首页卡片源码
|
|
174
|
+
|
|
175
|
+
定制首页时先运行 `npx --yes @tbox.cn/app-cli home list`、`home inspect <id>`,再用 `home add <ids...>` 按需复制卡片源码。复制后读取 `apps/client/src/components/home/shared/home-integration.md` 组合并接入 home 槽,后续直接改本地源码。已有 home 槽先确认替换方案,不能覆盖商圈业务首页。资源包不作为应用运行依赖;没有定制首页需求时无需安装。
|
|
@@ -62,7 +62,9 @@ export default defineConfig(async ({ command }) => {
|
|
|
62
62
|
// 只在开发服务装载 server 插件;build/vitest 无需解析其 Node 端依赖。
|
|
63
63
|
if (command === 'serve' && !process.env.VITEST) {
|
|
64
64
|
const { previewErrorReporter } = await import('@tbox.cn/app-agent-sdk-server/platform');
|
|
65
|
-
devPlugins.push(previewErrorReporter(
|
|
65
|
+
devPlugins.push(previewErrorReporter({
|
|
66
|
+
excludedPagePaths: ['/_tbox/card-preview', '/_tbox/card-preview.html'],
|
|
67
|
+
}));
|
|
66
68
|
}
|
|
67
69
|
// 作用域门:override 仅 dev-serve 生效——build/vitest 不受 dev 会话残留影响
|
|
68
70
|
// (G2 防线;门与探针标记同文件,guard 另断言门条件在场)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tbox.cn/app-template-agent",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.32",
|
|
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"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"typescript-eslint": "8.67.0",
|
|
37
37
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
38
38
|
"vite": "6.4.3",
|
|
39
|
-
"@tbox.cn/app-sdk-server": "0.26.
|
|
39
|
+
"@tbox.cn/app-sdk-server": "0.26.6"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"publishConfig": {
|
package/pnpm-lock.template.yaml
CHANGED
|
@@ -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.
|
|
20
|
-
version: 0.3.
|
|
19
|
+
specifier: 0.3.5
|
|
20
|
+
version: 0.3.5
|
|
21
21
|
'@tbox.cn/app-contracts':
|
|
22
22
|
specifier: 0.13.3
|
|
23
23
|
version: 0.13.3
|
|
@@ -25,8 +25,8 @@ catalogs:
|
|
|
25
25
|
specifier: 0.21.4
|
|
26
26
|
version: 0.21.4
|
|
27
27
|
'@tbox.cn/app-sdk-server':
|
|
28
|
-
specifier: 0.26.
|
|
29
|
-
version: 0.26.
|
|
28
|
+
specifier: 0.26.6
|
|
29
|
+
version: 0.26.6
|
|
30
30
|
'@tbox.cn/app-theme-tbox':
|
|
31
31
|
specifier: 0.1.6
|
|
32
32
|
version: 0.1.6
|
|
@@ -103,7 +103,7 @@ importers:
|
|
|
103
103
|
devDependencies:
|
|
104
104
|
'@tbox.cn/app-sdk-server':
|
|
105
105
|
specifier: 'catalog:'
|
|
106
|
-
version: 0.26.
|
|
106
|
+
version: 0.26.6
|
|
107
107
|
eslint:
|
|
108
108
|
specifier: 'catalog:'
|
|
109
109
|
version: 9.39.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.
|
|
155
|
+
version: 0.3.5(@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
|
|
@@ -194,7 +194,7 @@ importers:
|
|
|
194
194
|
version: 0.21.4
|
|
195
195
|
'@tbox.cn/app-sdk-server':
|
|
196
196
|
specifier: 'catalog:'
|
|
197
|
-
version: 0.26.
|
|
197
|
+
version: 0.26.6
|
|
198
198
|
typescript:
|
|
199
199
|
specifier: 'catalog:'
|
|
200
200
|
version: 5.9.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.
|
|
224
|
+
version: 0.3.5(@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.3
|
|
@@ -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.
|
|
347
|
+
version: 0.3.5(@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.3
|
|
@@ -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.
|
|
390
|
+
version: 0.3.5(@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.3
|
|
@@ -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.
|
|
1425
|
-
resolution: {integrity: sha512-
|
|
1424
|
+
'@tbox.cn/app-agent-sdk-server@0.3.5':
|
|
1425
|
+
resolution: {integrity: sha512-11QF9ZfqB157FTdNK34s9YlXGwZ132C8a0ZwaLE1Ew1rv7DhPHUh9E5blZ8B1T3lJBQpm56A5GxqHNqnDTuiGA==}
|
|
1426
1426
|
engines: {node: '>=20.0.0'}
|
|
1427
1427
|
|
|
1428
1428
|
'@tbox.cn/app-contracts@0.13.2':
|
|
@@ -1441,8 +1441,8 @@ packages:
|
|
|
1441
1441
|
resolution: {integrity: sha512-HLLRg1y2jB32uJPL3/a387eABdNZUxrmkGoJwIv44XV9B94DXmTgb9vxYzbyBa0FazxXG0WudyzFnmH5eeqqrw==}
|
|
1442
1442
|
engines: {node: '>=20.0.0'}
|
|
1443
1443
|
|
|
1444
|
-
'@tbox.cn/app-sdk-server@0.26.
|
|
1445
|
-
resolution: {integrity: sha512-
|
|
1444
|
+
'@tbox.cn/app-sdk-server@0.26.6':
|
|
1445
|
+
resolution: {integrity: sha512-9SvVCV+m2WTr4AXdf47ztltFpE1AoxvJAJy8/GL1ezN7AjtWEp+jogr2SVINJWQACPm9Di2FchgwIU76mCopvw==}
|
|
1446
1446
|
engines: {node: '>=20.0.0'}
|
|
1447
1447
|
hasBin: true
|
|
1448
1448
|
|
|
@@ -4173,7 +4173,7 @@ snapshots:
|
|
|
4173
4173
|
- '@types/react'
|
|
4174
4174
|
- immer
|
|
4175
4175
|
|
|
4176
|
-
'@tbox.cn/app-agent-sdk-server@0.3.
|
|
4176
|
+
'@tbox.cn/app-agent-sdk-server@0.3.5(@tbox-dev-js/sdk@0.1.18)(rxjs@7.8.1)':
|
|
4177
4177
|
dependencies:
|
|
4178
4178
|
'@ag-ui/core': 0.0.47
|
|
4179
4179
|
'@ai-sdk/openai-compatible': 2.0.68(zod@3.25.76)
|
|
@@ -4183,7 +4183,7 @@ snapshots:
|
|
|
4183
4183
|
'@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)
|
|
4184
4184
|
'@tbox.cn/app-contracts': 0.13.3
|
|
4185
4185
|
'@tbox.cn/app-sdk-core': 0.20.5
|
|
4186
|
-
'@tbox.cn/app-sdk-server': 0.26.
|
|
4186
|
+
'@tbox.cn/app-sdk-server': 0.26.6
|
|
4187
4187
|
ai: 6.0.246(zod@3.25.76)
|
|
4188
4188
|
express: 4.22.2
|
|
4189
4189
|
gray-matter: 4.0.3
|
|
@@ -4224,7 +4224,7 @@ snapshots:
|
|
|
4224
4224
|
dependencies:
|
|
4225
4225
|
'@tbox.cn/app-contracts': 0.13.2
|
|
4226
4226
|
|
|
4227
|
-
'@tbox.cn/app-sdk-server@0.26.
|
|
4227
|
+
'@tbox.cn/app-sdk-server@0.26.6':
|
|
4228
4228
|
dependencies:
|
|
4229
4229
|
'@ag-ui/core': 0.0.47
|
|
4230
4230
|
'@tbox.cn/app-contracts': 0.13.3
|
|
@@ -40,11 +40,11 @@ catalog:
|
|
|
40
40
|
"@tbox.cn/agent-plugin": 0.1.0
|
|
41
41
|
"@tbox.cn/app-sdk-core": 0.20.5
|
|
42
42
|
"@tbox.cn/app-sdk-client": 0.21.4
|
|
43
|
-
"@tbox.cn/app-sdk-server": 0.26.
|
|
44
|
-
"@tbox.cn/app-agent-sdk-server": 0.3.
|
|
43
|
+
"@tbox.cn/app-sdk-server": 0.26.6
|
|
44
|
+
"@tbox.cn/app-agent-sdk-server": 0.3.5
|
|
45
45
|
"@tbox.cn/app-agent-sdk-client": 0.2.2
|
|
46
46
|
"@tbox.cn/app-contracts": 0.13.3
|
|
47
|
-
"@tbox.cn/app-contracts-mall": 0.
|
|
47
|
+
"@tbox.cn/app-contracts-mall": 0.17.2
|
|
48
48
|
"@tbox.cn/app-theme-tbox": 0.1.6
|
|
49
49
|
zustand: 4.5.7
|
|
50
50
|
eslint: 9.39.5
|