@tbox.cn/app-module-shopping-guide 0.9.11 → 0.9.12

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
@@ -1,6 +1,6 @@
1
1
  # module-shopping-guide —— 集成指引(AI 助手用)
2
2
 
3
- 本模块为商圈业务模块(导购:商户、商品、目录与商场信息)。服务槽、接口清单、接入依赖与可选降级见本包
3
+ 本模块为商圈业务模块(门店导览:商户、商品、目录与商场信息)。服务槽、接口清单、接入依赖与可选降级见本包
4
4
  `INTEGRATION.md`(真源);结构事实(槽位/必选性)见本包 `tbox.module.json`。
5
5
 
6
6
  ## 自定义 API 对接(AI 集成)
package/INTEGRATION.md CHANGED
@@ -1,4 +1,4 @@
1
- # INTEGRATION —— module-shopping-guide(智能导购)接入指引
1
+ # INTEGRATION —— module-shopping-guide(门店导览)接入指引
2
2
 
3
3
  > 结构事实以本包 `tbox.module.json` 为准(`declare.consumes`:槽位与必选性、`declare.owns`:
4
4
  > 服务归属);接口签名以消费的契约包 Port 为准(`packages/contracts-mall/src/services/`);本文件只写二者推不出的接入语义。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # module-shopping-guide · 商圈导购业务组件
1
+ # module-shopping-guide · 门店导览业务组件
2
2
 
3
- 商圈导购域承接组件(`@tbox.cn/app-module-shopping-guide`,moduleId `shopping-guide`)。
3
+ 门店导览域承接组件(`@tbox.cn/app-module-shopping-guide`,moduleId `shopping-guide`)。
4
4
  角色三分:机导(商品/商户检索出卡)、券导(营销券联动,跨模块借道 promotion)、
5
5
  人导(真人导览预约)。签名形态:2 个模型可见工具 + 4 个 silent preTool 内部编排 +
6
6
  11 张卡 + 零写动作(券领取写动作归 module-promotion)。
@@ -1555,13 +1555,18 @@ function createShoppingGuideHandler() {
1555
1555
  if (!scope?.mallId) return { cards: [], text: "\u5546\u573A\u4E0A\u4E0B\u6587\u7F3A\u5931\uFF0C\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\u54C1\u724C\u5BFC\u89C8" };
1556
1556
  const ports = await resolveShoppingGuidePorts(reqCtx, ctx);
1557
1557
  const q = toContext(reqCtx);
1558
- const result = await ports.shop.searchShops({
1559
- ctx: q,
1560
- keyword: "",
1561
- keywords: [],
1562
- page: 1,
1563
- pageSize: BRAND_GUIDE_PAGE_SIZE
1564
- });
1558
+ let result;
1559
+ try {
1560
+ result = await ports.shop.searchShops({
1561
+ ctx: q,
1562
+ keyword: "",
1563
+ keywords: [],
1564
+ page: 1,
1565
+ pageSize: BRAND_GUIDE_PAGE_SIZE
1566
+ });
1567
+ } catch {
1568
+ return { cards: [], text: "\u95E8\u5E97\u4FE1\u606F\u6682\u65F6\u65E0\u6CD5\u83B7\u53D6\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5" };
1569
+ }
1565
1570
  if (result.items.length === 0) {
1566
1571
  return { cards: [], text: "\u95E8\u5E97\u4FE1\u606F\u6682\u672A\u5C31\u7EEA\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5" };
1567
1572
  }
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  resolveShoppingGuidePorts,
4
4
  serverModule,
5
5
  shoppingGuideCards
6
- } from "./chunk-XRXDTTFY.js";
6
+ } from "./chunk-43AO3W7C.js";
7
7
  import {
8
8
  clientModule
9
9
  } from "./chunk-PAYDOSCV.js";