guanwei 1.1.2 → 1.1.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/README.en.md +5 -2
- package/README.md +6 -3
- package/dist/assets/index-C3wrtpPY.css +1 -0
- package/dist/assets/{index-C7ql6zvs.js → index-CAyAIgw8.js} +25 -25
- package/dist/assets/index-CAyAIgw8.js.map +1 -0
- package/dist/index.html +2 -2
- package/package.json +2 -2
- package/server/src/data/db.json +147 -0
- package/server/src/index.ts +27 -4
- package/server/src/routes/tarot.ts +4 -4
- package/server/src/routes/users.ts +42 -7
- package/server/src/services/divineStore.ts +1 -5
- package/server/src/services/promptBuilder.ts +2 -2
- package/server/src/types/index.ts +2 -104
- package/{src → shared/core}/data/lifeContext.ts +2 -8
- package/{src → shared/core}/data/spreads.ts +1 -1
- package/{src → shared/core}/data/tarotCards.ts +1 -1
- package/shared/core/engine/bazi.ts +0 -1
- package/shared/core/engine/calendar.ts +1 -1
- package/{server/src/utils → shared/core/engine}/semanticAnalyzer.ts +9 -46
- package/{server/src/utils → shared/core/engine}/tarotEngine.ts +6 -6
- package/shared/core/engine/ziwei.ts +3 -2
- package/shared/core/engine/ziweiInterpret.ts +0 -3
- package/shared/core/types.ts +157 -0
- package/src/arts/registry.ts +1 -1
- package/src/components/QuestionFields.tsx +0 -1
- package/src/components/ReportView.tsx +0 -1
- package/src/components/TimeShichenInput.tsx +1 -0
- package/src/components/arts/BaziArt.tsx +0 -10
- package/src/components/arts/LiurenArt.tsx +1 -1
- package/src/components/arts/LiuyaoArt.tsx +0 -1
- package/src/components/arts/MeihuaArt.tsx +0 -1
- package/src/components/arts/QimenArt.tsx +0 -1
- package/src/components/arts/TarotArt.tsx +2 -2
- package/src/components/arts/XiaoliurenArt.tsx +1 -2
- package/src/components/arts/ZiweiArt.tsx +2 -15
- package/src/pages/AuthPage.tsx +4 -6
- package/src/pages/DemoPage.tsx +1 -2
- package/src/pages/HistoryPage.tsx +10 -9
- package/src/pages/ModulePage.tsx +6 -32
- package/src/pages/SpreadLibrary.tsx +1 -1
- package/src/pages/TarotPage.tsx +7 -9
- package/src/services/api.ts +4 -4
- package/src/stores/useDivinationStore.ts +1 -1
- package/src/types/index.ts +2 -104
- package/tsconfig.json +5 -5
- package/dist/assets/index-C7ql6zvs.js.map +0 -1
- package/dist/assets/index-DQx62TUr.css +0 -1
- package/server/src/data/lifeContext.ts +0 -423
- package/server/src/data/spreads.ts +0 -255
- package/server/src/data/tarotCards.ts +0 -2353
- package/src/utils/semanticAnalyzer.ts +0 -555
- package/src/utils/tarotEngine.ts +0 -849
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import type { Spread } from '../types/index.js';
|
|
2
|
-
|
|
3
|
-
export const defaultSpreads: Spread[] = [
|
|
4
|
-
// ===== 极简牌阵 =====
|
|
5
|
-
{
|
|
6
|
-
id: 'one-card',
|
|
7
|
-
name: '一张牌',
|
|
8
|
-
description: '抽取单张牌,快速获得当下指引。适合日常的"我该怎么做"',
|
|
9
|
-
category: 'basic',
|
|
10
|
-
scene: ['general', 'spiritual'],
|
|
11
|
-
positions: [
|
|
12
|
-
{ id: 0, name: '指引', description: '此刻你需要知道的信息', x: 50, y: 50 },
|
|
13
|
-
],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
id: 'two-options',
|
|
17
|
-
name: '二选一',
|
|
18
|
-
description: '面对两个选择时,分别抽取一张牌对比能量',
|
|
19
|
-
category: 'basic',
|
|
20
|
-
scene: ['career', 'general'],
|
|
21
|
-
positions: [
|
|
22
|
-
{ id: 0, name: '选项A', description: '第一个选择的能量', x: 25, y: 50 },
|
|
23
|
-
{ id: 1, name: '选项B', description: '第二个选择的能量', x: 75, y: 50 },
|
|
24
|
-
],
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
// ===== 简单牌阵(3张)=====
|
|
28
|
-
{
|
|
29
|
-
id: 'three-card',
|
|
30
|
-
name: '过去-现在-未来',
|
|
31
|
-
description: '经典时间线牌阵,展示问题从根源到发展的轨迹',
|
|
32
|
-
category: 'basic',
|
|
33
|
-
scene: ['general', 'career', 'love', 'wealth'],
|
|
34
|
-
positions: [
|
|
35
|
-
{ id: 0, name: '过去', description: '已经过去的根源与铺垫', x: 20, y: 50 },
|
|
36
|
-
{ id: 1, name: '现在', description: '当下的核心状况', x: 50, y: 50 },
|
|
37
|
-
{ id: 2, name: '未来', description: '若不改变的自然趋势', x: 80, y: 50 },
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: 'mind-body-spirit',
|
|
42
|
-
name: '身-心-灵',
|
|
43
|
-
description: '从身体、情绪、精神三个层面解读内在平衡',
|
|
44
|
-
category: 'basic',
|
|
45
|
-
scene: ['health', 'spiritual', 'general'],
|
|
46
|
-
positions: [
|
|
47
|
-
{ id: 0, name: '身体', description: '身体层面需要关注的事', x: 50, y: 20 },
|
|
48
|
-
{ id: 1, name: '心智', description: '思维与情绪的课题', x: 50, y: 50 },
|
|
49
|
-
{ id: 2, name: '灵性', description: '灵魂与高层自我的指引', x: 50, y: 80 },
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
// ===== 中等牌阵(4-5张)=====
|
|
54
|
-
{
|
|
55
|
-
id: 'problem-solution',
|
|
56
|
-
name: '问题-障碍-建议-结果',
|
|
57
|
-
description: '清晰呈现问题的成因、阻碍、行动建议与最终走向',
|
|
58
|
-
category: 'basic',
|
|
59
|
-
scene: ['general', 'career', 'wealth'],
|
|
60
|
-
positions: [
|
|
61
|
-
{ id: 0, name: '问题本质', description: '这件事的核心是什么', x: 50, y: 15 },
|
|
62
|
-
{ id: 1, name: '主要障碍', description: '阻碍你前进的能量', x: 20, y: 50 },
|
|
63
|
-
{ id: 2, name: '建议行动', description: '可以采取的具体行动', x: 80, y: 50 },
|
|
64
|
-
{ id: 3, name: '可能结果', description: '若跟随建议的方向', x: 50, y: 85 },
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
id: 'five-elements',
|
|
69
|
-
name: '五元素牌阵',
|
|
70
|
-
description: '从土、水、火、风、以太五元素全方位分析能量',
|
|
71
|
-
category: 'basic',
|
|
72
|
-
scene: ['spiritual', 'health'],
|
|
73
|
-
positions: [
|
|
74
|
-
{ id: 0, name: '土(稳定)', description: '物质基础与现实层面', x: 50, y: 15 },
|
|
75
|
-
{ id: 1, name: '水(情感)', description: '感受、直觉与潜意识', x: 20, y: 50 },
|
|
76
|
-
{ id: 2, name: '火(行动)', description: '激情、意志与创造力', x: 80, y: 50 },
|
|
77
|
-
{ id: 3, name: '风(思维)', description: '思想、沟通与决策', x: 35, y: 85 },
|
|
78
|
-
{ id: 4, name: '以太(灵性)', description: '高层指引与灵魂目的', x: 65, y: 85 },
|
|
79
|
-
],
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: 'relationship',
|
|
83
|
-
name: '关系牌阵',
|
|
84
|
-
description: '探索两性关系中双方的能量、基础与未来走向',
|
|
85
|
-
category: 'basic',
|
|
86
|
-
scene: ['love', 'family'],
|
|
87
|
-
positions: [
|
|
88
|
-
{ id: 0, name: '你', description: '你在关系中的状态与需求', x: 25, y: 30 },
|
|
89
|
-
{ id: 1, name: '对方', description: '对方在关系中的状态', x: 75, y: 30 },
|
|
90
|
-
{ id: 2, name: '关系基础', description: '连接你们的核心', x: 50, y: 55 },
|
|
91
|
-
{ id: 3, name: '你的期待', description: '你希望从关系中得到什么', x: 25, y: 75 },
|
|
92
|
-
{ id: 4, name: '对方期待', description: '对方希望从关系中得到什么', x: 75, y: 75 },
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
id: 'career-pyramid',
|
|
97
|
-
name: '事业金字塔',
|
|
98
|
-
description: '从现实基础、当前状态、挑战、技能、未来五个维度分析职业',
|
|
99
|
-
category: 'basic',
|
|
100
|
-
scene: ['career', 'wealth'],
|
|
101
|
-
positions: [
|
|
102
|
-
{ id: 0, name: '当前岗位', description: '你现在的工作状态', x: 50, y: 15 },
|
|
103
|
-
{ id: 1, name: '核心能力', description: '你最强的职业技能', x: 25, y: 40 },
|
|
104
|
-
{ id: 2, name: '主要挑战', description: '阻碍职业发展的因素', x: 75, y: 40 },
|
|
105
|
-
{ id: 3, name: '发展建议', description: '提升的关键方向', x: 35, y: 70 },
|
|
106
|
-
{ id: 4, name: '未来可能', description: '若持续努力会达到的位置', x: 65, y: 70 },
|
|
107
|
-
],
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
id: 'wealth-flow',
|
|
111
|
-
name: '财务之流',
|
|
112
|
-
description: '分析收入来源、支出习惯、潜在机遇与财务心态',
|
|
113
|
-
category: 'basic',
|
|
114
|
-
scene: ['wealth'],
|
|
115
|
-
positions: [
|
|
116
|
-
{ id: 0, name: '收入源', description: '金钱流入的渠道', x: 20, y: 30 },
|
|
117
|
-
{ id: 1, name: '支出项', description: '金钱流出的方向', x: 80, y: 30 },
|
|
118
|
-
{ id: 2, name: '潜在机遇', description: '尚未发现的财富机会', x: 50, y: 55 },
|
|
119
|
-
{ id: 3, name: '财务心态', description: '你与金钱的关系', x: 50, y: 85 },
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
id: 'lost-and-found',
|
|
124
|
-
name: '寻物牌阵',
|
|
125
|
-
description: '寻找失物、宠物或确定方向的位置线索',
|
|
126
|
-
category: 'basic',
|
|
127
|
-
scene: ['general'],
|
|
128
|
-
positions: [
|
|
129
|
-
{ id: 0, name: '当前位置', description: '物件大致所在区域', x: 50, y: 20 },
|
|
130
|
-
{ id: 1, name: '环境线索', description: '它所在环境的特征', x: 20, y: 50 },
|
|
131
|
-
{ id: 2, name: '情感线索', description: '它与你的情绪连接', x: 80, y: 50 },
|
|
132
|
-
{ id: 3, name: '寻找路径', description: '重新找到它的步骤', x: 50, y: 80 },
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
// ===== 复杂牌阵(6-10张)=====
|
|
137
|
-
{
|
|
138
|
-
id: 'horseshoe',
|
|
139
|
-
name: '马蹄牌阵',
|
|
140
|
-
description: 'U形排列,从过去到未来加上建议与障碍的综合牌阵',
|
|
141
|
-
category: 'advanced',
|
|
142
|
-
scene: ['general', 'career'],
|
|
143
|
-
positions: [
|
|
144
|
-
{ id: 0, name: '过去', description: '已经发生的影响', x: 15, y: 20 },
|
|
145
|
-
{ id: 1, name: '现在', description: '当下的核心', x: 15, y: 50 },
|
|
146
|
-
{ id: 2, name: '未来', description: '潜在的发展', x: 15, y: 80 },
|
|
147
|
-
{ id: 3, name: '建议', description: '可以采取的行动', x: 50, y: 80 },
|
|
148
|
-
{ id: 4, name: '外力', description: '周围环境的影响', x: 85, y: 80 },
|
|
149
|
-
{ id: 5, name: '障碍', description: '需要克服的困难', x: 85, y: 50 },
|
|
150
|
-
{ id: 6, name: '结果', description: '最终的走向', x: 85, y: 20 },
|
|
151
|
-
],
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
id: 'celtic-cross',
|
|
155
|
-
name: '凯尔特十字',
|
|
156
|
-
description: '最经典深入的牌阵,十个位置全面分析问题各层面',
|
|
157
|
-
category: 'advanced',
|
|
158
|
-
scene: ['general'],
|
|
159
|
-
positions: [
|
|
160
|
-
{ id: 0, name: '现状', description: '当前问题的核心', x: 50, y: 45 },
|
|
161
|
-
{ id: 1, name: '阻碍', description: '你面对的挑战', x: 50, y: 45 },
|
|
162
|
-
{ id: 2, name: '潜意识', description: '问题的根基', x: 30, y: 65 },
|
|
163
|
-
{ id: 3, name: '过去', description: '过去的根源', x: 30, y: 25 },
|
|
164
|
-
{ id: 4, name: '目标', description: '你的期望', x: 70, y: 25 },
|
|
165
|
-
{ id: 5, name: '近期', description: '即将发生的事', x: 70, y: 65 },
|
|
166
|
-
{ id: 6, name: '自我', description: '你的态度与感受', x: 88, y: 20 },
|
|
167
|
-
{ id: 7, name: '环境', description: '外部的影响', x: 88, y: 40 },
|
|
168
|
-
{ id: 8, name: '希望/恐惧', description: '内心的期待与担心', x: 88, y: 60 },
|
|
169
|
-
{ id: 9, name: '结果', description: '最终的发展', x: 88, y: 80 },
|
|
170
|
-
],
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
id: 'decision-balance',
|
|
174
|
-
name: '决策平衡',
|
|
175
|
-
description: '面对重大决定时,分析利弊、自我与外部视角',
|
|
176
|
-
category: 'advanced',
|
|
177
|
-
scene: ['career', 'general'],
|
|
178
|
-
positions: [
|
|
179
|
-
{ id: 0, name: '当前处境', description: '做决定前的状态', x: 50, y: 15 },
|
|
180
|
-
{ id: 1, name: '选项A优势', description: '选A的益处', x: 20, y: 35 },
|
|
181
|
-
{ id: 2, name: '选项A风险', description: '选A的代价', x: 20, y: 65 },
|
|
182
|
-
{ id: 3, name: '选项B优势', description: '选B的益处', x: 80, y: 35 },
|
|
183
|
-
{ id: 4, name: '选项B风险', description: '选B的代价', x: 80, y: 65 },
|
|
184
|
-
{ id: 5, name: '建议方向', description: '宇宙给的倾向', x: 50, y: 85 },
|
|
185
|
-
],
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
id: 'healing-spread',
|
|
189
|
-
name: '心理治愈牌阵',
|
|
190
|
-
description: '针对情绪创伤与内心困境的疗愈指引',
|
|
191
|
-
category: 'advanced',
|
|
192
|
-
scene: ['health', 'spiritual'],
|
|
193
|
-
positions: [
|
|
194
|
-
{ id: 0, name: '当前伤痛', description: '你正在经历的痛苦', x: 50, y: 15 },
|
|
195
|
-
{ id: 1, name: '伤痛根源', description: '这个痛从哪里来', x: 20, y: 40 },
|
|
196
|
-
{ id: 2, name: '你的反应', description: '你现在的应对方式', x: 80, y: 40 },
|
|
197
|
-
{ id: 3, name: '内在资源', description: '你已经具备的疗愈力', x: 20, y: 70 },
|
|
198
|
-
{ id: 4, name: '外在支持', description: '可以帮助你的人或事', x: 80, y: 70 },
|
|
199
|
-
{ id: 5, name: '疗愈方向', description: '下一步该走向哪里', x: 50, y: 90 },
|
|
200
|
-
],
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
id: 'soul-journey',
|
|
204
|
-
name: '灵魂之旅',
|
|
205
|
-
description: '探索灵性成长、业力模式与灵魂目的',
|
|
206
|
-
category: 'advanced',
|
|
207
|
-
scene: ['spiritual'],
|
|
208
|
-
positions: [
|
|
209
|
-
{ id: 0, name: '灵魂起源', description: '你今生的起点', x: 50, y: 15 },
|
|
210
|
-
{ id: 1, name: '今生课题', description: '你需要学习的事', x: 25, y: 35 },
|
|
211
|
-
{ id: 2, name: '天赋礼物', description: '你带来的能力', x: 75, y: 35 },
|
|
212
|
-
{ id: 3, name: '业力模式', description: '需要转化的循环', x: 25, y: 65 },
|
|
213
|
-
{ id: 4, name: '内在阴影', description: '需要面对的暗面', x: 75, y: 65 },
|
|
214
|
-
{ id: 5, name: '灵魂目的', description: '这一世的核心目的', x: 50, y: 85 },
|
|
215
|
-
{ id: 6, name: '高层指引', description: '宇宙给你的方向', x: 50, y: 50 },
|
|
216
|
-
],
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
id: 'self-exploration',
|
|
220
|
-
name: '自我探索',
|
|
221
|
-
description: '深入探索内在自我、欲望、恐惧、优势与成长',
|
|
222
|
-
category: 'basic',
|
|
223
|
-
scene: ['spiritual', 'general'],
|
|
224
|
-
positions: [
|
|
225
|
-
{ id: 0, name: '自我认知', description: '你如何看待自己', x: 50, y: 20 },
|
|
226
|
-
{ id: 1, name: '欲望', description: '你真正渴望的', x: 25, y: 45 },
|
|
227
|
-
{ id: 2, name: '恐惧', description: '内心深处的担心', x: 75, y: 45 },
|
|
228
|
-
{ id: 3, name: '优势', description: '你独特的力量', x: 25, y: 75 },
|
|
229
|
-
{ id: 4, name: '成长', description: '需要发展的方向', x: 75, y: 75 },
|
|
230
|
-
],
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
// ===== 年度牌阵(12张)=====
|
|
234
|
-
{
|
|
235
|
-
id: 'yearly',
|
|
236
|
-
name: '年度运势',
|
|
237
|
-
description: '为每个月抽取一张牌,描绘全年12个月的能量走向',
|
|
238
|
-
category: 'advanced',
|
|
239
|
-
scene: ['general'],
|
|
240
|
-
positions: [
|
|
241
|
-
{ id: 0, name: '一月', description: '一月的主题', x: 10, y: 50 },
|
|
242
|
-
{ id: 1, name: '二月', description: '二月的主题', x: 18, y: 50 },
|
|
243
|
-
{ id: 2, name: '三月', description: '三月的主题', x: 26, y: 50 },
|
|
244
|
-
{ id: 3, name: '四月', description: '四月的主题', x: 34, y: 50 },
|
|
245
|
-
{ id: 4, name: '五月', description: '五月的主题', x: 42, y: 50 },
|
|
246
|
-
{ id: 5, name: '六月', description: '六月的主题', x: 50, y: 50 },
|
|
247
|
-
{ id: 6, name: '七月', description: '七月的主题', x: 58, y: 50 },
|
|
248
|
-
{ id: 7, name: '八月', description: '八月的主题', x: 66, y: 50 },
|
|
249
|
-
{ id: 8, name: '九月', description: '九月的主题', x: 74, y: 50 },
|
|
250
|
-
{ id: 9, name: '十月', description: '十月的主题', x: 82, y: 50 },
|
|
251
|
-
{ id: 10, name: '十一月', description: '十一月的主题', x: 90, y: 50 },
|
|
252
|
-
{ id: 11, name: '十二月', description: '十二月的主题', x: 95, y: 50 },
|
|
253
|
-
],
|
|
254
|
-
},
|
|
255
|
-
];
|