@zodic/shared 0.0.292 → 0.0.294
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/app/services/ArchetypeService.ts +103 -1
- package/db/migrations/0011_hard_king_bedlam.sql +1 -0
- package/db/migrations/0012_sudden_doctor_spectrum.sql +27 -0
- package/db/migrations/meta/0011_snapshot.json +2602 -0
- package/db/migrations/meta/0012_snapshot.json +2602 -0
- package/db/migrations/meta/_journal.json +14 -0
- package/db/schema.ts +3 -1
- package/package.json +1 -1
- package/utils/archetypeNamesMessages.ts +188 -46
|
@@ -78,6 +78,20 @@
|
|
|
78
78
|
"when": 1743532594156,
|
|
79
79
|
"tag": "0010_tricky_lord_hawal",
|
|
80
80
|
"breakpoints": true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"idx": 11,
|
|
84
|
+
"version": "6",
|
|
85
|
+
"when": 1743535219441,
|
|
86
|
+
"tag": "0011_hard_king_bedlam",
|
|
87
|
+
"breakpoints": true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"idx": 12,
|
|
91
|
+
"version": "6",
|
|
92
|
+
"when": 1743545371795,
|
|
93
|
+
"tag": "0012_sudden_doctor_spectrum",
|
|
94
|
+
"breakpoints": true
|
|
81
95
|
}
|
|
82
96
|
]
|
|
83
97
|
}
|
package/db/schema.ts
CHANGED
|
@@ -419,12 +419,14 @@ export const archetypesData = sqliteTable(
|
|
|
419
419
|
archetypeIndex: text('archetype_index').notNull(), // '1', '2', or '3'
|
|
420
420
|
name: text('name').notNull(), // Archetype name
|
|
421
421
|
essenceLine: text('essence_line').notNull(), // Short poetic essence line
|
|
422
|
-
description: text('description')
|
|
422
|
+
description: text('description'), // Narrative description
|
|
423
423
|
content: text('content').default('[]').notNull(), // JSON stringified structured content
|
|
424
424
|
virtues: text('virtues').default('[]').notNull(), // JSON stringified array
|
|
425
425
|
leonardoPrompt: text('leonardo_prompt'), // Leonardo prompt
|
|
426
426
|
status: text('status').default('idle'), // Generation status
|
|
427
427
|
createdAt: integer('created_at').default(sql`CURRENT_TIMESTAMP`),
|
|
428
|
+
// JSON array of objects: { leonardoId: string; url: string; height: number; width: number; }
|
|
429
|
+
images: text('images').default('[]').notNull(),
|
|
428
430
|
updatedAt: integer('updated_at').default(sql`CURRENT_TIMESTAMP`),
|
|
429
431
|
},
|
|
430
432
|
(table) => [
|
package/package.json
CHANGED
|
@@ -1,67 +1,209 @@
|
|
|
1
1
|
// --- 1. Influence Table ---
|
|
2
2
|
|
|
3
|
+
import { ZodiacSignSlug } from '../types/scopes/legacy';
|
|
4
|
+
|
|
3
5
|
export type Planet = 'sun' | 'ascendant' | 'moon';
|
|
4
|
-
export type Sign =
|
|
5
|
-
| 'aries' | 'taurus' | 'gemini' | 'cancer'
|
|
6
|
-
| 'leo' | 'virgo' | 'libra' | 'scorpio'
|
|
7
|
-
| 'sagittarius' | 'capricorn' | 'aquarius' | 'pisces';
|
|
8
6
|
|
|
9
7
|
export interface Trait {
|
|
10
8
|
label: string;
|
|
11
9
|
description: string;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
export const influenceMap: Record<Planet, Record<
|
|
12
|
+
export const influenceMap: Record<Planet, Record<ZodiacSignSlug, Trait>> = {
|
|
15
13
|
sun: {
|
|
16
|
-
aries:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
aries: {
|
|
15
|
+
label: 'Fierce Initiator',
|
|
16
|
+
description:
|
|
17
|
+
'A core identity centered around courage, action, and blazing one’s own trail.',
|
|
18
|
+
},
|
|
19
|
+
taurus: {
|
|
20
|
+
label: 'Steadfast Builder',
|
|
21
|
+
description:
|
|
22
|
+
'A core identity rooted in patience, consistency, and enduring creation.',
|
|
23
|
+
},
|
|
24
|
+
gemini: {
|
|
25
|
+
label: 'Curious Communicator',
|
|
26
|
+
description:
|
|
27
|
+
'A core identity driven by learning, connection, and intellectual discovery.',
|
|
28
|
+
},
|
|
29
|
+
cancer: {
|
|
30
|
+
label: 'Nurturing Protector',
|
|
31
|
+
description:
|
|
32
|
+
'A core identity grounded in care, intuition, and emotional loyalty.',
|
|
33
|
+
},
|
|
34
|
+
leo: {
|
|
35
|
+
label: 'Radiant Leader',
|
|
36
|
+
description:
|
|
37
|
+
'A core identity fueled by self-expression, pride, and the desire to inspire.',
|
|
38
|
+
},
|
|
39
|
+
virgo: {
|
|
40
|
+
label: 'Analytical Alchemist',
|
|
41
|
+
description:
|
|
42
|
+
'A core identity shaped by precision, service, and a drive to perfect.',
|
|
43
|
+
},
|
|
44
|
+
libra: {
|
|
45
|
+
label: 'Harmonious Diplomat',
|
|
46
|
+
description:
|
|
47
|
+
'A core identity rooted in balance, fairness, and graceful interaction.',
|
|
48
|
+
},
|
|
49
|
+
scorpio: {
|
|
50
|
+
label: 'Intense Transformer',
|
|
51
|
+
description:
|
|
52
|
+
'A core identity driven by emotional depth, secrecy, and powerful change.',
|
|
53
|
+
},
|
|
54
|
+
sagittarius: {
|
|
55
|
+
label: 'Visionary Seeker',
|
|
56
|
+
description:
|
|
57
|
+
'A core identity driven by exploration, truth, and a thirst for meaning beyond boundaries.',
|
|
58
|
+
},
|
|
59
|
+
capricorn: {
|
|
60
|
+
label: 'Ambitious Achiever',
|
|
61
|
+
description:
|
|
62
|
+
'A core identity shaped by discipline, endurance, and long-term goals.',
|
|
63
|
+
},
|
|
64
|
+
aquarius: {
|
|
65
|
+
label: 'Radical Thinker',
|
|
66
|
+
description:
|
|
67
|
+
'A core identity rooted in innovation, progress, and standing apart.',
|
|
68
|
+
},
|
|
69
|
+
pisces: {
|
|
70
|
+
label: 'Mystical Dreamer',
|
|
71
|
+
description:
|
|
72
|
+
'A core identity connected to imagination, empathy, and spiritual flow.',
|
|
73
|
+
},
|
|
28
74
|
},
|
|
29
75
|
ascendant: {
|
|
30
|
-
aries:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
76
|
+
aries: {
|
|
77
|
+
label: 'Bold Pathfinder',
|
|
78
|
+
description:
|
|
79
|
+
'An outward presence that feels daring, direct, and ready to lead the charge.',
|
|
80
|
+
},
|
|
81
|
+
taurus: {
|
|
82
|
+
label: 'Earthbound Stabilizer',
|
|
83
|
+
description:
|
|
84
|
+
'An outward presence that feels calm, grounded, and sensually secure.',
|
|
85
|
+
},
|
|
86
|
+
gemini: {
|
|
87
|
+
label: 'Witty Messenger',
|
|
88
|
+
description:
|
|
89
|
+
'An outward presence that feels quick, verbal, and full of mental spark.',
|
|
90
|
+
},
|
|
91
|
+
cancer: {
|
|
92
|
+
label: 'Gentle Guardian',
|
|
93
|
+
description:
|
|
94
|
+
'An outward presence that feels warm, intuitive, and emotionally attuned.',
|
|
95
|
+
},
|
|
96
|
+
leo: {
|
|
97
|
+
label: 'Magnetic Performer',
|
|
98
|
+
description:
|
|
99
|
+
'An outward presence that feels bold, charismatic, and naturally radiant.',
|
|
100
|
+
},
|
|
101
|
+
virgo: {
|
|
102
|
+
label: 'Humble Servant',
|
|
103
|
+
description:
|
|
104
|
+
'An outward presence that feels modest, helpful, and attentive to detail.',
|
|
105
|
+
},
|
|
106
|
+
libra: {
|
|
107
|
+
label: 'Graceful Mediator',
|
|
108
|
+
description:
|
|
109
|
+
'An outward presence that feels diplomatic, stylish, and socially attuned.',
|
|
110
|
+
},
|
|
111
|
+
scorpio: {
|
|
112
|
+
label: 'Silent Watcher',
|
|
113
|
+
description:
|
|
114
|
+
'An outward presence that feels intense, private, and unreadable.',
|
|
115
|
+
},
|
|
116
|
+
sagittarius: {
|
|
117
|
+
label: 'Adventurous Spirit',
|
|
118
|
+
description:
|
|
119
|
+
'An outward presence that feels free, optimistic, and constantly in motion.',
|
|
120
|
+
},
|
|
121
|
+
capricorn: {
|
|
122
|
+
label: 'Disciplined Strategist',
|
|
123
|
+
description:
|
|
124
|
+
'An outward presence that feels composed, determined, and grounded in ambition and structure.',
|
|
125
|
+
},
|
|
126
|
+
aquarius: {
|
|
127
|
+
label: 'Creative Visionary',
|
|
128
|
+
description:
|
|
129
|
+
'An outward presence that feels unconventional, future-focused, and effortlessly different — someone who stands apart with purpose.',
|
|
130
|
+
},
|
|
131
|
+
pisces: {
|
|
132
|
+
label: 'Ethereal Observer',
|
|
133
|
+
description:
|
|
134
|
+
'An outward presence that feels dreamy, elusive, and emotionally fluid.',
|
|
135
|
+
},
|
|
42
136
|
},
|
|
43
137
|
moon: {
|
|
44
|
-
aries:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
138
|
+
aries: {
|
|
139
|
+
label: 'Fiery Instinct',
|
|
140
|
+
description:
|
|
141
|
+
'An emotional world driven by urgency, independence, and assertive desire.',
|
|
142
|
+
},
|
|
143
|
+
taurus: {
|
|
144
|
+
label: 'Soothing Sensor',
|
|
145
|
+
description:
|
|
146
|
+
'An emotional world that seeks calm, physical comfort, and dependable rhythm.',
|
|
147
|
+
},
|
|
148
|
+
gemini: {
|
|
149
|
+
label: 'Restless Thinker',
|
|
150
|
+
description:
|
|
151
|
+
'An emotional world stimulated by ideas, variety, and clever interaction.',
|
|
152
|
+
},
|
|
153
|
+
cancer: {
|
|
154
|
+
label: 'Empathic Nurturer',
|
|
155
|
+
description:
|
|
156
|
+
'An emotional world guided by sensitivity, care, and a deep desire to protect and emotionally connect with others.',
|
|
157
|
+
},
|
|
158
|
+
leo: {
|
|
159
|
+
label: 'Emotive Performer',
|
|
160
|
+
description:
|
|
161
|
+
'An emotional world charged with pride, affection, and dramatic expression.',
|
|
162
|
+
},
|
|
163
|
+
virgo: {
|
|
164
|
+
label: 'Cautious Processor',
|
|
165
|
+
description:
|
|
166
|
+
'An emotional world driven by analysis, practicality, and internal refinement.',
|
|
167
|
+
},
|
|
168
|
+
libra: {
|
|
169
|
+
label: 'Peace-Weaving Romantic',
|
|
170
|
+
description:
|
|
171
|
+
'An emotional world attuned to beauty, connection, and harmony — seeking to unify rather than divide.',
|
|
172
|
+
},
|
|
173
|
+
scorpio: {
|
|
174
|
+
label: 'Secretive Intensity',
|
|
175
|
+
description:
|
|
176
|
+
'An emotional world shaped by powerful bonds, protection, and emotional control.',
|
|
177
|
+
},
|
|
178
|
+
sagittarius: {
|
|
179
|
+
label: 'Wanderlust Heart',
|
|
180
|
+
description:
|
|
181
|
+
'An emotional world lifted by inspiration, movement, and spontaneous joy.',
|
|
182
|
+
},
|
|
183
|
+
capricorn: {
|
|
184
|
+
label: 'Resilient Stoic',
|
|
185
|
+
description:
|
|
186
|
+
'An emotional world anchored in control, caution, and endurance.',
|
|
187
|
+
},
|
|
188
|
+
aquarius: {
|
|
189
|
+
label: 'Detached Idealist',
|
|
190
|
+
description:
|
|
191
|
+
'An emotional world guided by principles, distance, and concern for the collective.',
|
|
192
|
+
},
|
|
193
|
+
pisces: {
|
|
194
|
+
label: 'Mystic Empath',
|
|
195
|
+
description:
|
|
196
|
+
'An emotional world open to dreams, feelings, and transcendental emotion.',
|
|
197
|
+
},
|
|
198
|
+
},
|
|
57
199
|
};
|
|
58
200
|
|
|
59
201
|
// --- 2. Prompt Generator ---
|
|
60
202
|
|
|
61
203
|
export interface Composition {
|
|
62
|
-
sun:
|
|
63
|
-
ascendant:
|
|
64
|
-
moon:
|
|
204
|
+
sun: ZodiacSignSlug;
|
|
205
|
+
ascendant: ZodiacSignSlug;
|
|
206
|
+
moon: ZodiacSignSlug;
|
|
65
207
|
}
|
|
66
208
|
|
|
67
209
|
export function generateArchetypePrompt(compositions: Composition[]): string {
|
|
@@ -120,4 +262,4 @@ Do not include any commentary or explanations outside the defined output structu
|
|
|
120
262
|
\``;
|
|
121
263
|
|
|
122
264
|
return `${promptHeader}\n${compositionBlocks.join('\n')}\n${outputFormat}`;
|
|
123
|
-
}
|
|
265
|
+
}
|