@tbox.cn/app-module-shopping-guide 1.0.0-alpha.20 → 1.0.0-alpha.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-shopping-guide",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.21",
4
4
  "type": "module",
5
5
  "description": "门店导览模块:商品/商户搜索、推荐、对比、商场目录、人工导购、位置导航。",
6
6
  "exports": {
@@ -19,16 +19,16 @@
19
19
  "./package.json": "./package.json"
20
20
  },
21
21
  "dependencies": {
22
- "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.20",
23
- "@tbox.cn/app-contracts": "1.0.0-alpha.20",
24
- "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.20",
25
- "@tbox.cn/app-contracts-mall": "1.0.0-alpha.20"
22
+ "@tbox.cn/app-contracts-mall": "1.0.0-alpha.21",
23
+ "@tbox.cn/app-contracts": "1.0.0-alpha.21",
24
+ "@tbox.cn/app-agent-sdk-client": "1.0.0-alpha.21",
25
+ "@tbox.cn/app-agent-sdk-server": "1.0.0-alpha.21"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "zod": "3.25.76",
29
29
  "react": "18.3.1",
30
30
  "@phosphor-icons/react": "2.1.10",
31
- "@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.20"
31
+ "@tbox.cn/app-agent-ui-kit": "^1.0.0-alpha.21"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/react": "18.3.31",
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * 室内导航跳转目标解析(两条门店详情链路唯一共用入口)。
3
- * - 服务接口与服务键 = TIER1 真源(@tbox.cn/app-contracts-mall services/shopping-guide——
3
+ * - 服务接口与服务键 = TIER1 真源(@tbox.cn/app-contracts-mall services/indoor-navigation——
4
4
  * 实现方(任务 1)与本消费方(任务 2)共同引用,单侧改名结构类型与常量引用双钉死);
5
5
  * 经 ctx.services 注册表解析(跨模块 Port + ctx 铁律——本模块零实现依赖,
6
6
  * 与 mall-directory 服务同模式);实现归室内导航服务(任务 1),测试实现见 tests。
7
7
  * - 导航为增强面(与 guide 槽 fail-soft 同语义):缺商场范围 / 服务未注册 / 服务无有效目标 /
8
8
  * 服务异常 / URL 不符契约(indoorNavigationUrlSchema——完整 HTTPS,消费侧复用同一 schema
9
9
  * safeParse 同源判定)→ 一律省略字段,门店详情照常返回。
10
- * - merchantId 原样透传(如 '001' 不做任何归一——爱笔侧以 third_id 匹配门店);
10
+ * - merchantId 原样透传(如 '001' 不做任何归一——供应商侧以 third_id 匹配门店);
11
11
  * URL 由服务生成为完整 HTTPS 地址(含 third_id 业务参数),本层原样透传不拼接。
12
12
  */
13
13
  import type { ServerContext } from '@tbox.cn/app-agent-sdk-server';
@@ -116,7 +116,7 @@ function buildServer(opts?: { indoor?: IndoorNavigationService }): ServerContext
116
116
  interface NavCall { mallId: string; merchantId: string }
117
117
 
118
118
  /** 导航服务测试实现(并行开发替身——任务 1 交付后换其注册实现):
119
- * mallId → 爱笔 H5 基址(未配置商场缺席);生成完整 URL 时追加 third_id=<merchantId>(编码一次)。 */
119
+ * mallId → 供应商 H5 基址(未配置商场缺席);生成完整 URL 时追加 third_id=<merchantId>(编码一次)。 */
120
120
  function makeIndoorStub(configs: Record<string, string>, overrides?: Partial<IndoorNavigationService>) {
121
121
  const calls: NavCall[] = [];
122
122
  const service: IndoorNavigationService = {