@tbox.cn/app-module-shopping-guide 0.2.1 → 0.8.3

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.
Files changed (85) hide show
  1. package/AGENTS.md +16 -0
  2. package/README.md +96 -0
  3. package/dist/chunk-AYQZO2FV.js +1496 -0
  4. package/dist/chunk-VKDA6RXQ.js +1676 -0
  5. package/dist/client/index.d.ts +3 -3
  6. package/dist/client/index.js +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +2 -8
  9. package/dist/server/index.d.ts +2512 -608
  10. package/dist/server/index.js +1 -7
  11. package/dist/shopping-guide-EGRHPEDA.css +2598 -0
  12. package/package.json +25 -16
  13. package/skills/shopping-guide/SKILL.md +127 -24
  14. package/src/client/cards/category-list/index.tsx +113 -0
  15. package/src/client/cards/human-guide-list/index.tsx +72 -0
  16. package/src/client/cards/index.ts +14 -0
  17. package/src/client/cards/location-handoff/index.tsx +52 -0
  18. package/src/client/cards/mall-directory/index.tsx +77 -0
  19. package/src/client/cards/nearby-mall-list/index.tsx +40 -0
  20. package/src/client/cards/product-comparison/index.tsx +100 -0
  21. package/src/client/cards/product-detail/index.tsx +97 -0
  22. package/src/client/cards/product-list/index.tsx +223 -0
  23. package/src/client/cards/recommend-merchants/index.tsx +147 -0
  24. package/src/client/cards/shop-detail/index.tsx +133 -0
  25. package/src/client/cards/shop-list/index.tsx +216 -0
  26. package/src/client/cards/view.ts +147 -0
  27. package/src/client/categories.ts +38 -0
  28. package/src/client/components/ImageWithFallback.tsx +34 -0
  29. package/src/client/components/MerchantRow.tsx +78 -0
  30. package/src/client/components/ShopDetailSheet.tsx +383 -0
  31. package/src/client/components/ShopGuideHeader.tsx +23 -0
  32. package/src/client/components/ShopGuideSectionLabel.tsx +10 -0
  33. package/src/client/components/ShopListSheet.tsx +293 -0
  34. package/src/client/index.ts +8 -6
  35. package/src/client/styles/shopping-guide.css +2598 -0
  36. package/src/client/types/css.d.ts +2 -0
  37. package/src/server/cards/category-list/meta.ts +0 -2
  38. package/src/server/cards/human-guide-list/meta.ts +0 -2
  39. package/src/server/cards/index.ts +10 -10
  40. package/src/server/cards/location-handoff/meta.ts +0 -2
  41. package/src/server/cards/mall-directory/meta.ts +0 -2
  42. package/src/server/cards/nearby-mall-list/meta.ts +1 -3
  43. package/src/server/cards/product-comparison/meta.ts +0 -2
  44. package/src/server/cards/product-detail/meta.ts +0 -2
  45. package/src/server/cards/product-list/meta.ts +0 -2
  46. package/src/server/cards/recommend-merchants/meta.ts +37 -0
  47. package/src/server/cards/recommend-merchants/samples.ts +189 -0
  48. package/src/server/cards/{merchant-detail → shop-detail}/meta.ts +6 -6
  49. package/src/server/cards/shop-detail/samples.ts +72 -0
  50. package/src/server/cards/{merchant-list → shop-list}/meta.ts +9 -9
  51. package/src/server/cards/shop-list/samples.ts +154 -0
  52. package/src/server/domain/value-objects.ts +1 -2
  53. package/src/server/handler.ts +63 -0
  54. package/src/server/index.ts +161 -101
  55. package/src/server/ports/index.ts +120 -91
  56. package/src/server/ports/local-adapters.ts +5 -55
  57. package/src/server/projections/index.ts +159 -41
  58. package/src/server/tools/index.ts +590 -315
  59. package/tbox.module.json +137 -0
  60. package/tests/cards-render.test.tsx +830 -0
  61. package/tests/floor-pretool.test.ts +275 -0
  62. package/tests/handler.test.ts +259 -0
  63. package/tests/merchant-list-limit.test.ts +53 -0
  64. package/tests/ports-resolve.test.ts +112 -0
  65. package/tests/samples.test.ts +71 -0
  66. package/tests/shopping-guide.test.ts +402 -234
  67. package/tests/skill.test.ts +86 -0
  68. package/tests/view.test.ts +42 -0
  69. package/tsup.config.ts +9 -1
  70. package/dist/chunk-AGBLC6XI.js +0 -1294
  71. package/dist/chunk-U4WDS5PQ.js +0 -173
  72. package/skills/shopping-guide/references/comparison-format.md +0 -5
  73. package/skills/shopping-guide/references/faq-answers.md +0 -5
  74. package/skills/shopping-guide/references/floor-directory.md +0 -4
  75. package/skills/shopping-guide/references/intent-patterns.md +0 -5
  76. package/skills/shopping-guide/references/location-format.md +0 -5
  77. package/skills/shopping-guide/references/policy-lookup.md +0 -5
  78. package/skills/shopping-guide/references/product-search-tips.md +0 -6
  79. package/skills/shopping-guide/references/recommendation-style.md +0 -5
  80. package/src/client/cards/index.tsx +0 -267
  81. package/src/server/cards/customer-service-faq/meta.ts +0 -18
  82. package/src/server/integrations/joycity/adapter.ts +0 -226
  83. package/src/server/integrations/joycity/auth-strategy.ts +0 -38
  84. package/src/server/integrations/joycity/gateway.ts +0 -128
  85. package/tbox.component.json +0 -48
@@ -0,0 +1,137 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "name": "module-shopping-guide",
4
+ "version": "0.3.0",
5
+ "kind": "business",
6
+ "risk": {
7
+ "level": "medium",
8
+ "writeBoundary": "source"
9
+ },
10
+ "distribution": {
11
+ "defaultMode": "codegen"
12
+ },
13
+ "contributes": {
14
+ "handlers": [
15
+ "shopping-guide"
16
+ ],
17
+ "tools": [
18
+ "recommend",
19
+ "search-products",
20
+ "product-facets",
21
+ "get-product",
22
+ "compare-products",
23
+ "search-merchants",
24
+ "get-merchant",
25
+ "mall-directory",
26
+ "get-location",
27
+ "list-human-guides",
28
+ "list-browsing-history",
29
+ "list-nearby-malls",
30
+ "list-categories",
31
+ "search-knowledge"
32
+ ],
33
+ "cards": [
34
+ {
35
+ "cardType": "product-list",
36
+ "schemaVersion": 1
37
+ },
38
+ {
39
+ "cardType": "product-detail",
40
+ "schemaVersion": 1
41
+ },
42
+ {
43
+ "cardType": "shop-list",
44
+ "schemaVersion": 1
45
+ },
46
+ {
47
+ "cardType": "shop-detail",
48
+ "schemaVersion": 1
49
+ },
50
+ {
51
+ "cardType": "category-list",
52
+ "schemaVersion": 1
53
+ },
54
+ {
55
+ "cardType": "product-comparison",
56
+ "schemaVersion": 1
57
+ },
58
+ {
59
+ "cardType": "mall-directory",
60
+ "schemaVersion": 1
61
+ },
62
+ {
63
+ "cardType": "nearby-mall-list",
64
+ "schemaVersion": 1
65
+ },
66
+ {
67
+ "cardType": "human-guide-list",
68
+ "schemaVersion": 1
69
+ },
70
+ {
71
+ "cardType": "location-handoff",
72
+ "schemaVersion": 1
73
+ },
74
+ {
75
+ "cardType": "recommend-merchants",
76
+ "schemaVersion": 1
77
+ }
78
+ ],
79
+ "routes": [],
80
+ "pages": [],
81
+ "tabs": [],
82
+ "skills": [
83
+ "shopping-guide"
84
+ ],
85
+ "services": [
86
+ {
87
+ "service": "shopping-guide.catalog",
88
+ "optional": false,
89
+ "defaults": [
90
+ {
91
+ "provider": "mock",
92
+ "implementation": "mock-shopping@1"
93
+ }
94
+ ]
95
+ },
96
+ {
97
+ "service": "shopping-guide.shops",
98
+ "optional": false,
99
+ "defaults": [
100
+ {
101
+ "provider": "mock",
102
+ "implementation": "mock-shopping@1"
103
+ }
104
+ ]
105
+ },
106
+ {
107
+ "service": "shopping-guide.categories",
108
+ "optional": false,
109
+ "defaults": [
110
+ {
111
+ "provider": "mock",
112
+ "implementation": "mock-shopping@1"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "service": "shopping-guide.directory",
118
+ "optional": false,
119
+ "defaults": [
120
+ {
121
+ "provider": "mock",
122
+ "implementation": "mock-shopping@1"
123
+ }
124
+ ]
125
+ }
126
+ ]
127
+ },
128
+ "dependencies": {
129
+ "modules": [
130
+ {
131
+ "id": "contracts-mall",
132
+ "required": true
133
+ }
134
+ ]
135
+ },
136
+ "env": []
137
+ }