@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.
- package/AGENTS.md +16 -0
- package/README.md +96 -0
- package/dist/chunk-AYQZO2FV.js +1496 -0
- package/dist/chunk-VKDA6RXQ.js +1676 -0
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -8
- package/dist/server/index.d.ts +2512 -608
- package/dist/server/index.js +1 -7
- package/dist/shopping-guide-EGRHPEDA.css +2598 -0
- package/package.json +25 -16
- package/skills/shopping-guide/SKILL.md +127 -24
- package/src/client/cards/category-list/index.tsx +113 -0
- package/src/client/cards/human-guide-list/index.tsx +72 -0
- package/src/client/cards/index.ts +14 -0
- package/src/client/cards/location-handoff/index.tsx +52 -0
- package/src/client/cards/mall-directory/index.tsx +77 -0
- package/src/client/cards/nearby-mall-list/index.tsx +40 -0
- package/src/client/cards/product-comparison/index.tsx +100 -0
- package/src/client/cards/product-detail/index.tsx +97 -0
- package/src/client/cards/product-list/index.tsx +223 -0
- package/src/client/cards/recommend-merchants/index.tsx +147 -0
- package/src/client/cards/shop-detail/index.tsx +133 -0
- package/src/client/cards/shop-list/index.tsx +216 -0
- package/src/client/cards/view.ts +147 -0
- package/src/client/categories.ts +38 -0
- package/src/client/components/ImageWithFallback.tsx +34 -0
- package/src/client/components/MerchantRow.tsx +78 -0
- package/src/client/components/ShopDetailSheet.tsx +383 -0
- package/src/client/components/ShopGuideHeader.tsx +23 -0
- package/src/client/components/ShopGuideSectionLabel.tsx +10 -0
- package/src/client/components/ShopListSheet.tsx +293 -0
- package/src/client/index.ts +8 -6
- package/src/client/styles/shopping-guide.css +2598 -0
- package/src/client/types/css.d.ts +2 -0
- package/src/server/cards/category-list/meta.ts +0 -2
- package/src/server/cards/human-guide-list/meta.ts +0 -2
- package/src/server/cards/index.ts +10 -10
- package/src/server/cards/location-handoff/meta.ts +0 -2
- package/src/server/cards/mall-directory/meta.ts +0 -2
- package/src/server/cards/nearby-mall-list/meta.ts +1 -3
- package/src/server/cards/product-comparison/meta.ts +0 -2
- package/src/server/cards/product-detail/meta.ts +0 -2
- package/src/server/cards/product-list/meta.ts +0 -2
- package/src/server/cards/recommend-merchants/meta.ts +37 -0
- package/src/server/cards/recommend-merchants/samples.ts +189 -0
- package/src/server/cards/{merchant-detail → shop-detail}/meta.ts +6 -6
- package/src/server/cards/shop-detail/samples.ts +72 -0
- package/src/server/cards/{merchant-list → shop-list}/meta.ts +9 -9
- package/src/server/cards/shop-list/samples.ts +154 -0
- package/src/server/domain/value-objects.ts +1 -2
- package/src/server/handler.ts +63 -0
- package/src/server/index.ts +161 -101
- package/src/server/ports/index.ts +120 -91
- package/src/server/ports/local-adapters.ts +5 -55
- package/src/server/projections/index.ts +159 -41
- package/src/server/tools/index.ts +590 -315
- package/tbox.module.json +137 -0
- package/tests/cards-render.test.tsx +830 -0
- package/tests/floor-pretool.test.ts +275 -0
- package/tests/handler.test.ts +259 -0
- package/tests/merchant-list-limit.test.ts +53 -0
- package/tests/ports-resolve.test.ts +112 -0
- package/tests/samples.test.ts +71 -0
- package/tests/shopping-guide.test.ts +402 -234
- package/tests/skill.test.ts +86 -0
- package/tests/view.test.ts +42 -0
- package/tsup.config.ts +9 -1
- package/dist/chunk-AGBLC6XI.js +0 -1294
- package/dist/chunk-U4WDS5PQ.js +0 -173
- package/skills/shopping-guide/references/comparison-format.md +0 -5
- package/skills/shopping-guide/references/faq-answers.md +0 -5
- package/skills/shopping-guide/references/floor-directory.md +0 -4
- package/skills/shopping-guide/references/intent-patterns.md +0 -5
- package/skills/shopping-guide/references/location-format.md +0 -5
- package/skills/shopping-guide/references/policy-lookup.md +0 -5
- package/skills/shopping-guide/references/product-search-tips.md +0 -6
- package/skills/shopping-guide/references/recommendation-style.md +0 -5
- package/src/client/cards/index.tsx +0 -267
- package/src/server/cards/customer-service-faq/meta.ts +0 -18
- package/src/server/integrations/joycity/adapter.ts +0 -226
- package/src/server/integrations/joycity/auth-strategy.ts +0 -38
- package/src/server/integrations/joycity/gateway.ts +0 -128
- package/tbox.component.json +0 -48
package/tbox.module.json
ADDED
|
@@ -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
|
+
}
|