@tbox.cn/app-module-member 0.9.5 → 0.9.6

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.
@@ -103,19 +103,19 @@ declare const memberCards: {
103
103
  labelRef: zod.ZodString;
104
104
  name: zod.ZodString;
105
105
  }, "strip", zod.ZodTypeAny, {
106
- name: string;
107
106
  labelRef: string;
108
- }, {
109
107
  name: string;
108
+ }, {
110
109
  labelRef: string;
110
+ name: string;
111
111
  }>, "many">;
112
112
  }, "strip", zod.ZodTypeAny, {
113
113
  userId: string;
114
- state: "unknown" | "active" | "not_enrolled" | "closed";
115
114
  authState: "authenticated" | "unauthenticated";
115
+ state: "unknown" | "active" | "not_enrolled" | "closed";
116
116
  labels: {
117
- name: string;
118
117
  labelRef: string;
118
+ name: string;
119
119
  }[];
120
120
  displayName?: string | undefined;
121
121
  avatarUrl?: string | undefined;
@@ -124,11 +124,11 @@ declare const memberCards: {
124
124
  registeredAt?: string | undefined;
125
125
  }, {
126
126
  userId: string;
127
- state: "unknown" | "active" | "not_enrolled" | "closed";
128
127
  authState: "authenticated" | "unauthenticated";
128
+ state: "unknown" | "active" | "not_enrolled" | "closed";
129
129
  labels: {
130
- name: string;
131
130
  labelRef: string;
131
+ name: string;
132
132
  }[];
133
133
  displayName?: string | undefined;
134
134
  avatarUrl?: string | undefined;
@@ -185,13 +185,13 @@ declare const memberCards: {
185
185
  text: zod.ZodOptional<zod.ZodString>;
186
186
  }, "strip", zod.ZodTypeAny, {
187
187
  kind: "toast" | "miniapp" | "dialog";
188
- url?: string | undefined;
189
188
  title?: string | undefined;
189
+ url?: string | undefined;
190
190
  text?: string | undefined;
191
191
  }, {
192
192
  kind: "toast" | "miniapp" | "dialog";
193
- url?: string | undefined;
194
193
  title?: string | undefined;
194
+ url?: string | undefined;
195
195
  text?: string | undefined;
196
196
  }>>;
197
197
  }, "strip", zod.ZodTypeAny, {
@@ -200,8 +200,8 @@ declare const memberCards: {
200
200
  description?: string | undefined;
201
201
  action?: {
202
202
  kind: "toast" | "miniapp" | "dialog";
203
- url?: string | undefined;
204
203
  title?: string | undefined;
204
+ url?: string | undefined;
205
205
  text?: string | undefined;
206
206
  } | undefined;
207
207
  iconUrl?: string | undefined;
@@ -211,8 +211,8 @@ declare const memberCards: {
211
211
  description?: string | undefined;
212
212
  action?: {
213
213
  kind: "toast" | "miniapp" | "dialog";
214
- url?: string | undefined;
215
214
  title?: string | undefined;
215
+ url?: string | undefined;
216
216
  text?: string | undefined;
217
217
  } | undefined;
218
218
  iconUrl?: string | undefined;
@@ -228,8 +228,8 @@ declare const memberCards: {
228
228
  query: string;
229
229
  }>, "many">>;
230
230
  }, "strip", zod.ZodTypeAny, {
231
- status: "unknown" | "active" | "inactive" | "frozen" | "expired";
232
231
  userId: string;
232
+ status: "unknown" | "active" | "inactive" | "frozen" | "expired";
233
233
  cardRef: string;
234
234
  cardDisplay: string;
235
235
  availablePoints: number;
@@ -254,8 +254,8 @@ declare const memberCards: {
254
254
  description?: string | undefined;
255
255
  action?: {
256
256
  kind: "toast" | "miniapp" | "dialog";
257
- url?: string | undefined;
258
257
  title?: string | undefined;
258
+ url?: string | undefined;
259
259
  text?: string | undefined;
260
260
  } | undefined;
261
261
  iconUrl?: string | undefined;
@@ -265,8 +265,8 @@ declare const memberCards: {
265
265
  query: string;
266
266
  }[] | undefined;
267
267
  }, {
268
- status: "unknown" | "active" | "inactive" | "frozen" | "expired";
269
268
  userId: string;
269
+ status: "unknown" | "active" | "inactive" | "frozen" | "expired";
270
270
  cardRef: string;
271
271
  cardDisplay: string;
272
272
  availablePoints: number;
@@ -291,8 +291,8 @@ declare const memberCards: {
291
291
  description?: string | undefined;
292
292
  action?: {
293
293
  kind: "toast" | "miniapp" | "dialog";
294
- url?: string | undefined;
295
294
  title?: string | undefined;
295
+ url?: string | undefined;
296
296
  text?: string | undefined;
297
297
  } | undefined;
298
298
  iconUrl?: string | undefined;
@@ -313,42 +313,42 @@ declare const memberCards: {
313
313
  usedAt: zod.ZodOptional<zod.ZodString>;
314
314
  description: zod.ZodOptional<zod.ZodString>;
315
315
  }, "strip", zod.ZodTypeAny, {
316
- title: string;
317
316
  usageRecordRef: string;
317
+ title: string;
318
318
  amount: string;
319
- description?: string | undefined;
320
319
  usedAt?: string | undefined;
320
+ description?: string | undefined;
321
321
  }, {
322
- title: string;
323
322
  usageRecordRef: string;
323
+ title: string;
324
324
  amount: string;
325
- description?: string | undefined;
326
325
  usedAt?: string | undefined;
326
+ description?: string | undefined;
327
327
  }>, "many">;
328
328
  total: zod.ZodNumber;
329
329
  }, "strip", zod.ZodTypeAny, {
330
330
  userId: string;
331
- total: number;
331
+ balance: number;
332
332
  items: {
333
- title: string;
334
333
  usageRecordRef: string;
334
+ title: string;
335
335
  amount: string;
336
- description?: string | undefined;
337
336
  usedAt?: string | undefined;
337
+ description?: string | undefined;
338
338
  }[];
339
- balance: number;
339
+ total: number;
340
340
  membershipLabel?: string | undefined;
341
341
  }, {
342
342
  userId: string;
343
- total: number;
343
+ balance: number;
344
344
  items: {
345
- title: string;
346
345
  usageRecordRef: string;
346
+ title: string;
347
347
  amount: string;
348
- description?: string | undefined;
349
348
  usedAt?: string | undefined;
349
+ description?: string | undefined;
350
350
  }[];
351
- balance: number;
351
+ total: number;
352
352
  membershipLabel?: string | undefined;
353
353
  }>>;
354
354
  readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -390,14 +390,14 @@ declare const memberCards: {
390
390
  required: zod.ZodBoolean;
391
391
  url: zod.ZodOptional<zod.ZodString>;
392
392
  }, "strip", zod.ZodTypeAny, {
393
- required: boolean;
394
393
  title: string;
394
+ required: boolean;
395
395
  version: string;
396
396
  consentId: string;
397
397
  url?: string | undefined;
398
398
  }, {
399
- required: boolean;
400
399
  title: string;
400
+ required: boolean;
401
401
  version: string;
402
402
  consentId: string;
403
403
  url?: string | undefined;
@@ -415,6 +415,7 @@ declare const memberCards: {
415
415
  manualNotice: zod.ZodOptional<zod.ZodString>;
416
416
  }, "strip", zod.ZodTypeAny, {
417
417
  userId: string;
418
+ state: "unknown" | "active" | "not_enrolled" | "closed";
418
419
  authorization: {
419
420
  status: "unavailable" | "required" | "authorized";
420
421
  mobileMasked?: string | undefined;
@@ -429,11 +430,10 @@ declare const memberCards: {
429
430
  prefill?: string | undefined;
430
431
  placeholder?: string | undefined;
431
432
  }[];
432
- state: "unknown" | "active" | "not_enrolled" | "closed";
433
433
  formVersion: string;
434
434
  consents: {
435
- required: boolean;
436
435
  title: string;
436
+ required: boolean;
437
437
  version: string;
438
438
  consentId: string;
439
439
  url?: string | undefined;
@@ -441,6 +441,7 @@ declare const memberCards: {
441
441
  manualNotice?: string | undefined;
442
442
  }, {
443
443
  userId: string;
444
+ state: "unknown" | "active" | "not_enrolled" | "closed";
444
445
  authorization: {
445
446
  status: "unavailable" | "required" | "authorized";
446
447
  mobileMasked?: string | undefined;
@@ -455,11 +456,10 @@ declare const memberCards: {
455
456
  prefill?: string | undefined;
456
457
  placeholder?: string | undefined;
457
458
  }[];
458
- state: "unknown" | "active" | "not_enrolled" | "closed";
459
459
  formVersion: string;
460
460
  consents: {
461
- required: boolean;
462
461
  title: string;
462
+ required: boolean;
463
463
  version: string;
464
464
  consentId: string;
465
465
  url?: string | undefined;
@@ -474,15 +474,15 @@ declare const memberCards: {
474
474
  message: zod.ZodOptional<zod.ZodString>;
475
475
  }, "strip", zod.ZodTypeAny, {
476
476
  userId: string;
477
- state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
478
- message?: string | undefined;
477
+ state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
479
478
  memberRef?: string | undefined;
479
+ message?: string | undefined;
480
480
  attemptRef?: string | undefined;
481
481
  }, {
482
482
  userId: string;
483
- state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
484
- message?: string | undefined;
483
+ state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
485
484
  memberRef?: string | undefined;
485
+ message?: string | undefined;
486
486
  attemptRef?: string | undefined;
487
487
  }>>;
488
488
  readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -495,16 +495,16 @@ declare const memberCards: {
495
495
  perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
496
496
  }, "strip", zod.ZodTypeAny, {
497
497
  userId: string;
498
- state: "not_enrolled" | "closed";
499
498
  authState: "authenticated";
499
+ state: "not_enrolled" | "closed";
500
500
  title?: string | undefined;
501
501
  subtitle?: string | undefined;
502
502
  enrollUrl?: string | undefined;
503
503
  perks?: string[] | undefined;
504
504
  }, {
505
505
  userId: string;
506
- state: "not_enrolled" | "closed";
507
506
  authState: "authenticated";
507
+ state: "not_enrolled" | "closed";
508
508
  title?: string | undefined;
509
509
  subtitle?: string | undefined;
510
510
  enrollUrl?: string | undefined;
@@ -541,19 +541,19 @@ declare const serverModule: {
541
541
  labelRef: zod.ZodString;
542
542
  name: zod.ZodString;
543
543
  }, "strip", zod.ZodTypeAny, {
544
- name: string;
545
544
  labelRef: string;
546
- }, {
547
545
  name: string;
546
+ }, {
548
547
  labelRef: string;
548
+ name: string;
549
549
  }>, "many">;
550
550
  }, "strip", zod.ZodTypeAny, {
551
551
  userId: string;
552
- state: "unknown" | "active" | "not_enrolled" | "closed";
553
552
  authState: "authenticated" | "unauthenticated";
553
+ state: "unknown" | "active" | "not_enrolled" | "closed";
554
554
  labels: {
555
- name: string;
556
555
  labelRef: string;
556
+ name: string;
557
557
  }[];
558
558
  displayName?: string | undefined;
559
559
  avatarUrl?: string | undefined;
@@ -562,11 +562,11 @@ declare const serverModule: {
562
562
  registeredAt?: string | undefined;
563
563
  }, {
564
564
  userId: string;
565
- state: "unknown" | "active" | "not_enrolled" | "closed";
566
565
  authState: "authenticated" | "unauthenticated";
566
+ state: "unknown" | "active" | "not_enrolled" | "closed";
567
567
  labels: {
568
- name: string;
569
568
  labelRef: string;
569
+ name: string;
570
570
  }[];
571
571
  displayName?: string | undefined;
572
572
  avatarUrl?: string | undefined;
@@ -623,13 +623,13 @@ declare const serverModule: {
623
623
  text: zod.ZodOptional<zod.ZodString>;
624
624
  }, "strip", zod.ZodTypeAny, {
625
625
  kind: "toast" | "miniapp" | "dialog";
626
- url?: string | undefined;
627
626
  title?: string | undefined;
627
+ url?: string | undefined;
628
628
  text?: string | undefined;
629
629
  }, {
630
630
  kind: "toast" | "miniapp" | "dialog";
631
- url?: string | undefined;
632
631
  title?: string | undefined;
632
+ url?: string | undefined;
633
633
  text?: string | undefined;
634
634
  }>>;
635
635
  }, "strip", zod.ZodTypeAny, {
@@ -638,8 +638,8 @@ declare const serverModule: {
638
638
  description?: string | undefined;
639
639
  action?: {
640
640
  kind: "toast" | "miniapp" | "dialog";
641
- url?: string | undefined;
642
641
  title?: string | undefined;
642
+ url?: string | undefined;
643
643
  text?: string | undefined;
644
644
  } | undefined;
645
645
  iconUrl?: string | undefined;
@@ -649,8 +649,8 @@ declare const serverModule: {
649
649
  description?: string | undefined;
650
650
  action?: {
651
651
  kind: "toast" | "miniapp" | "dialog";
652
- url?: string | undefined;
653
652
  title?: string | undefined;
653
+ url?: string | undefined;
654
654
  text?: string | undefined;
655
655
  } | undefined;
656
656
  iconUrl?: string | undefined;
@@ -666,8 +666,8 @@ declare const serverModule: {
666
666
  query: string;
667
667
  }>, "many">>;
668
668
  }, "strip", zod.ZodTypeAny, {
669
- status: "unknown" | "active" | "inactive" | "frozen" | "expired";
670
669
  userId: string;
670
+ status: "unknown" | "active" | "inactive" | "frozen" | "expired";
671
671
  cardRef: string;
672
672
  cardDisplay: string;
673
673
  availablePoints: number;
@@ -692,8 +692,8 @@ declare const serverModule: {
692
692
  description?: string | undefined;
693
693
  action?: {
694
694
  kind: "toast" | "miniapp" | "dialog";
695
- url?: string | undefined;
696
695
  title?: string | undefined;
696
+ url?: string | undefined;
697
697
  text?: string | undefined;
698
698
  } | undefined;
699
699
  iconUrl?: string | undefined;
@@ -703,8 +703,8 @@ declare const serverModule: {
703
703
  query: string;
704
704
  }[] | undefined;
705
705
  }, {
706
- status: "unknown" | "active" | "inactive" | "frozen" | "expired";
707
706
  userId: string;
707
+ status: "unknown" | "active" | "inactive" | "frozen" | "expired";
708
708
  cardRef: string;
709
709
  cardDisplay: string;
710
710
  availablePoints: number;
@@ -729,8 +729,8 @@ declare const serverModule: {
729
729
  description?: string | undefined;
730
730
  action?: {
731
731
  kind: "toast" | "miniapp" | "dialog";
732
- url?: string | undefined;
733
732
  title?: string | undefined;
733
+ url?: string | undefined;
734
734
  text?: string | undefined;
735
735
  } | undefined;
736
736
  iconUrl?: string | undefined;
@@ -751,42 +751,42 @@ declare const serverModule: {
751
751
  usedAt: zod.ZodOptional<zod.ZodString>;
752
752
  description: zod.ZodOptional<zod.ZodString>;
753
753
  }, "strip", zod.ZodTypeAny, {
754
- title: string;
755
754
  usageRecordRef: string;
755
+ title: string;
756
756
  amount: string;
757
- description?: string | undefined;
758
757
  usedAt?: string | undefined;
758
+ description?: string | undefined;
759
759
  }, {
760
- title: string;
761
760
  usageRecordRef: string;
761
+ title: string;
762
762
  amount: string;
763
- description?: string | undefined;
764
763
  usedAt?: string | undefined;
764
+ description?: string | undefined;
765
765
  }>, "many">;
766
766
  total: zod.ZodNumber;
767
767
  }, "strip", zod.ZodTypeAny, {
768
768
  userId: string;
769
- total: number;
769
+ balance: number;
770
770
  items: {
771
- title: string;
772
771
  usageRecordRef: string;
772
+ title: string;
773
773
  amount: string;
774
- description?: string | undefined;
775
774
  usedAt?: string | undefined;
775
+ description?: string | undefined;
776
776
  }[];
777
- balance: number;
777
+ total: number;
778
778
  membershipLabel?: string | undefined;
779
779
  }, {
780
780
  userId: string;
781
- total: number;
781
+ balance: number;
782
782
  items: {
783
- title: string;
784
783
  usageRecordRef: string;
784
+ title: string;
785
785
  amount: string;
786
- description?: string | undefined;
787
786
  usedAt?: string | undefined;
787
+ description?: string | undefined;
788
788
  }[];
789
- balance: number;
789
+ total: number;
790
790
  membershipLabel?: string | undefined;
791
791
  }>>;
792
792
  readonly 'member-enrollment-form': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -828,14 +828,14 @@ declare const serverModule: {
828
828
  required: zod.ZodBoolean;
829
829
  url: zod.ZodOptional<zod.ZodString>;
830
830
  }, "strip", zod.ZodTypeAny, {
831
- required: boolean;
832
831
  title: string;
832
+ required: boolean;
833
833
  version: string;
834
834
  consentId: string;
835
835
  url?: string | undefined;
836
836
  }, {
837
- required: boolean;
838
837
  title: string;
838
+ required: boolean;
839
839
  version: string;
840
840
  consentId: string;
841
841
  url?: string | undefined;
@@ -853,6 +853,7 @@ declare const serverModule: {
853
853
  manualNotice: zod.ZodOptional<zod.ZodString>;
854
854
  }, "strip", zod.ZodTypeAny, {
855
855
  userId: string;
856
+ state: "unknown" | "active" | "not_enrolled" | "closed";
856
857
  authorization: {
857
858
  status: "unavailable" | "required" | "authorized";
858
859
  mobileMasked?: string | undefined;
@@ -867,11 +868,10 @@ declare const serverModule: {
867
868
  prefill?: string | undefined;
868
869
  placeholder?: string | undefined;
869
870
  }[];
870
- state: "unknown" | "active" | "not_enrolled" | "closed";
871
871
  formVersion: string;
872
872
  consents: {
873
- required: boolean;
874
873
  title: string;
874
+ required: boolean;
875
875
  version: string;
876
876
  consentId: string;
877
877
  url?: string | undefined;
@@ -879,6 +879,7 @@ declare const serverModule: {
879
879
  manualNotice?: string | undefined;
880
880
  }, {
881
881
  userId: string;
882
+ state: "unknown" | "active" | "not_enrolled" | "closed";
882
883
  authorization: {
883
884
  status: "unavailable" | "required" | "authorized";
884
885
  mobileMasked?: string | undefined;
@@ -893,11 +894,10 @@ declare const serverModule: {
893
894
  prefill?: string | undefined;
894
895
  placeholder?: string | undefined;
895
896
  }[];
896
- state: "unknown" | "active" | "not_enrolled" | "closed";
897
897
  formVersion: string;
898
898
  consents: {
899
- required: boolean;
900
899
  title: string;
900
+ required: boolean;
901
901
  version: string;
902
902
  consentId: string;
903
903
  url?: string | undefined;
@@ -912,15 +912,15 @@ declare const serverModule: {
912
912
  message: zod.ZodOptional<zod.ZodString>;
913
913
  }, "strip", zod.ZodTypeAny, {
914
914
  userId: string;
915
- state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
916
- message?: string | undefined;
915
+ state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
917
916
  memberRef?: string | undefined;
917
+ message?: string | undefined;
918
918
  attemptRef?: string | undefined;
919
919
  }, {
920
920
  userId: string;
921
- state: "failed" | "active" | "pending_confirmation" | "confirmation_timeout";
922
- message?: string | undefined;
921
+ state: "active" | "failed" | "pending_confirmation" | "confirmation_timeout";
923
922
  memberRef?: string | undefined;
923
+ message?: string | undefined;
924
924
  attemptRef?: string | undefined;
925
925
  }>>;
926
926
  readonly 'member-enrollment-cta': _tbox_cn_app_contracts.CardMeta<zod.ZodObject<{
@@ -933,16 +933,16 @@ declare const serverModule: {
933
933
  perks: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
934
934
  }, "strip", zod.ZodTypeAny, {
935
935
  userId: string;
936
- state: "not_enrolled" | "closed";
937
936
  authState: "authenticated";
937
+ state: "not_enrolled" | "closed";
938
938
  title?: string | undefined;
939
939
  subtitle?: string | undefined;
940
940
  enrollUrl?: string | undefined;
941
941
  perks?: string[] | undefined;
942
942
  }, {
943
943
  userId: string;
944
- state: "not_enrolled" | "closed";
945
944
  authState: "authenticated";
945
+ state: "not_enrolled" | "closed";
946
946
  title?: string | undefined;
947
947
  subtitle?: string | undefined;
948
948
  enrollUrl?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tbox.cn/app-module-member",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "description": "商圈会员模块:会员账户、会员卡、积分流水与入会流程(codegen 源)。",
6
6
  "exports": {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@tbox.cn/app-contracts": "0.12.3",
22
- "@tbox.cn/app-contracts-mall": "0.12.3",
22
+ "@tbox.cn/app-contracts-mall": "0.12.4",
23
23
  "@tbox.cn/app-agent-sdk-client": "0.1.3",
24
24
  "@tbox.cn/app-agent-sdk-server": "0.1.4"
25
25
  },
@@ -56,7 +56,9 @@ routingTerms:
56
56
 
57
57
  调 `queryPoints` 并将用户原始问题传入 `query` 参数。只引用 `member-card-summary` 一张卡;积分流水不构造卡片,只作为工具返回的文本事实供 LLM 消费。积分来源只能引用流水中返回的标题与描述字段,**禁止推断或声称任何未从工具返回的奖励机制**(如"消费满额自动返积分")——顾客会按你说的规则去消费。
58
58
 
59
- - **会员卡面已展示时**:不要再说“如果想看看会员卡面”;如需引导详细流水,只提示「详细积分流水请点击会员卡面上的“我的积分”」。
59
+ - **会员卡面已展示时**:不要再说“如果想看看会员卡面”。引导详细流水**只以 `pointsUrl` 为条件**——卡面有没有“我的积分”入口由它决定:
60
+ - 工具结果含 `pointsUrl` → 只提示「详细积分流水请点击会员卡面上的“我的积分”」;
61
+ - `pointsUrl` 缺席 → 卡面没有“我的积分”入口,**不得指涉该入口**,改为转述已返回的流水 `items`,无 `items` 时如实说「暂无流水记录」。
60
62
 
61
63
  - **积分是用户具体事实,禁止无工具直答**:每轮必须重新调 `queryPoints` 拿当轮实时余额与流水——不得引用历史轮余额/流水,或凭对话记忆作答(历史轮流水可能已变化;未调工具时给出的任何流水细节一律视为编造)
62
64
  - ❌ 反例:用户问「积分」,未调任何工具就回答"最近一笔是餐饮消费积攒的"——流水凭空出现,属于编造;真实情况可能是"暂无流水记录",应如实转述
@@ -80,7 +82,7 @@ routingTerms:
80
82
  当用户询问会员卡、会员中心或会员卡及积分情况时,拿到 `member-card-summary` 后按以下顺序组织回答:
81
83
 
82
84
  1. 先概括会员卡面整体能力:卡名/状态、当前积分、消费进度或其他实际返回的卡面信息。
83
- 2. 积分部分说明:当前余额来自实时查询;需要逐笔明细时,点击会员卡面上的“我的积分”进入积分流水页。
85
+ 2. 积分部分说明:当前余额来自实时查询;工具结果含 `pointsUrl` 时,可引导逐笔明细点击会员卡面上的“我的积分”进入积分流水页;`pointsUrl` 缺席时卡面无此入口,改为转述流水 `items`(或说明暂无),不得引导点击不存在的入口。
84
86
  3. 积分规则只介绍卡面返回的 `pointsRuleContent` 或规则图片,不根据卡名、等级或余额推断规则。
85
87
  4. 会员权益只适度介绍卡面实际返回的 `benefits`,优先说权益名称和摘要;没有返回就明确说明暂未提供,不补充承诺。
86
88
  5. 卡面包含 `preferencePrompts` 时,可在结尾自然推荐偏好服务,例如询问用户更关注餐饮、购物或亲子,并引导其选择对应偏好;不得强推或替用户保存偏好。
@@ -130,7 +132,7 @@ routingTerms:
130
132
  - **数据必须来自工具**:余额、卡名、标签、等级、权益一律从工具结果读取,禁止编造——**积分流水细节(来源、最近一笔、攒分规则叙事)同样如此:无当轮工具返回,禁止给出任何流水叙事**,如实说"暂无流水记录"或实际调用工具后再转述
131
133
  - **身份只认会话**:任何用户输入的手机号、会员卡号或账号都不能覆盖当前登录身份;涉及修改资料、代查他人或切换账号时按隐私边界直接拒答
132
134
  - **会员卡面优先**:会员积分查询只出 `member-card-summary`;积分流水仅进入文本事实,不出 `member-point-usage-list`;未入会出 `member-enrollment-cta`(普通开卡问询)
133
- - **已出卡的后续引导**:会员卡面已经展示时,不重复邀请查看卡面;详细积分流水通过卡面上的“我的积分”入口查看。
135
+ - **已出卡的后续引导**:会员卡面已经展示时,不重复邀请查看卡面;详细积分流水只有在工具结果含 `pointsUrl` 时才通过卡面上的“我的积分”入口查看,缺席时不引导点击该入口。
134
136
  - **卡片必须引用**:工具返回含 `cards` 字段时,正文末尾必须按平台协议引用对应卡片 id——不引用用户就看不到卡
135
137
  - **不代写不代勾**:入会表单与授权动作全部由用户在卡片/小程序内完成
136
138
 
@@ -5,7 +5,7 @@
5
5
  - queryPoints 统一作为积分业务工具调用;把原始问题传入 `query`。只投影 `member-card-summary`,不构造积分流水卡,也不再额外调用 queryMemberCard。
6
6
  - 工具返回的 `balance` 是当前积分余额(点数);`items` 是接口解码后的流水事实:`title` 为业务说明(优先取厂商 `message`),`amount` 为本笔积分变动(正数增加、负数扣减),`usedAt` 为发生时间,`description` 为可选门店名称(优先取厂商 `storeName`);`total` 为流水总数。回答只能引用这些字段,不自行换算或估算。
7
7
  - 「积分怎么来的」:只引用流水的标题和描述,不得从其他业务流程推断积分奖励规则。
8
- - 会员卡面已经展示时,不要重复邀请用户“再看看会员卡面”;需要查看详细积分流水时,提示点击会员卡面上的“我的积分”。
8
+ - 会员卡面已经展示时,不要重复邀请用户“再看看会员卡面”。引导详细流水以 `pointsUrl` 为条件:工具结果含 `pointsUrl` 说明卡面有“我的积分”入口,提示点击它;`pointsUrl` 缺席的卡面(如 mock 档)没有该入口,不得引导用户点击,改为转述已返回的流水 `items` 或如实说明暂无流水。
9
9
  - 会员卡相关回答建议按“整体卡面能力 → 当前积分 → 积分规则 → 已返回的会员权益 → 偏好服务推荐”组织;规则和权益只能引用卡面真实返回内容,偏好推荐应自然询问用户关注方向,不代替用户保存。
10
10
 
11
11
  ## 会员卡与账户(queryMemberCard / queryMemberInfo)
@@ -51,7 +51,10 @@ describe('K1:member skills 装配', () => {
51
51
  expect(skills.member!.instructions).toContain('泛会员信息或只查会员卡 → 调 `queryMemberCard`');
52
52
  expect(skills.member!.instructions).toContain('明确问积分 → 只调一次 `queryPoints`');
53
53
  expect(skills.member!.instructions).toContain('会员卡面优先');
54
+ // 「点卡面我的积分」引导以 pointsUrl 为条件——无入口的卡面(如 mock 档)不得指涉该入口
55
+ expect(skills.member!.instructions).toContain('引导详细流水**只以 `pointsUrl` 为条件**');
54
56
  expect(skills.member!.instructions).toContain('详细积分流水请点击会员卡面上的“我的积分”');
57
+ expect(skills.member!.instructions).toContain('不得指涉该入口');
55
58
  expect(skills.member!.instructions).toContain('会员卡面回答结构');
56
59
  expect(skills.member!.instructions).toContain('自然推荐偏好服务');
57
60
  });