@zodic/shared 0.0.84 → 0.0.85
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/package.json
CHANGED
package/utils/buildMessages.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BackendBindings, ChatMessages, Crown } from '../types';
|
|
2
2
|
import { conceptPrompts } from './conceptPrompts';
|
|
3
|
+
import { mapConceptToPlanets } from './mapConceptToPlanets';
|
|
3
4
|
|
|
4
5
|
export const buildLLMMessages = (env: BackendBindings) => ({
|
|
5
6
|
generateCosmicMirrorArchetypeBasicInfo: ({
|
|
@@ -100,6 +101,8 @@ export const buildLLMMessages = (env: BackendBindings) => ({
|
|
|
100
101
|
combination: string;
|
|
101
102
|
conceptSlug: string;
|
|
102
103
|
}): ChatMessages => {
|
|
104
|
+
const zodiacCombination = mapConceptToPlanets(conceptSlug, combination);
|
|
105
|
+
|
|
103
106
|
return [
|
|
104
107
|
{
|
|
105
108
|
role: 'system',
|
|
@@ -108,7 +111,8 @@ export const buildLLMMessages = (env: BackendBindings) => ({
|
|
|
108
111
|
{
|
|
109
112
|
role: 'user',
|
|
110
113
|
content: `
|
|
111
|
-
Combination:
|
|
114
|
+
Combination:
|
|
115
|
+
${zodiacCombination}
|
|
112
116
|
`,
|
|
113
117
|
},
|
|
114
118
|
];
|
package/utils/conceptPrompts.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { BackendBindings } from '../types';
|
|
|
2
2
|
|
|
3
3
|
export const conceptPrompts: (
|
|
4
4
|
env: BackendBindings
|
|
5
|
-
) => Record<string, Record<string, string>> = (
|
|
5
|
+
) => Record<string, Record<string, string>> = (
|
|
6
|
+
env
|
|
7
|
+
) => ({
|
|
6
8
|
basicInfo: {
|
|
7
9
|
crown: PROMPT_GENERATE_CROWN,
|
|
8
10
|
scepter: PROMPT_GENERATE_SCEPTER,
|
|
@@ -168,13 +170,8 @@ For the provided Orb name, description, and zodiac combination, expand on the fo
|
|
|
168
170
|
Write each section with clarity, insight, and emotional resonance. Avoid mentioning zodiac signs or planets explicitly in the text. Ensure the content is symbolic, inspiring, and deeply aligned with the Orb’s themes. Keep the response concise and meaningful.
|
|
169
171
|
`;
|
|
170
172
|
|
|
171
|
-
|
|
172
173
|
export const PROMPT_GENERATE_CROWN_LEONARDO = `
|
|
173
|
-
You are an expert creative writer specializing in crafting intricate and vivid prompts for AI image generation. Your task is to create a detailed, high-quality prompt for a majestic crown that symbolizes core identity, inner power, and essence. The design of the crown must reflect the symbolic traits of a given zodiac sign combination.
|
|
174
|
-
|
|
175
|
-
Describe the crown in detail, including its materials, structure, symbolic engravings, and intricate patterns. Focus on capturing its regal and radiant essence through meaningful motifs and elegant design elements, avoiding direct references to zodiac signs. Highlight the type of light it reflects or emits, the way it sits atop its pedestal or bearer, and the aura of authority and grace it projects.
|
|
176
|
-
|
|
177
|
-
Ensure the design elements convey dignity, individuality, and inner strength, while maintaining an artistic and mystical tone. Include artistic rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
174
|
+
You are an expert creative writer specializing in crafting intricate and vivid prompts for AI image generation. Your task is to create a detailed, high-quality prompt for a majestic crown that symbolizes core identity, inner power, and essence. The design of the crown must reflect the symbolic traits of a given zodiac sign combination. Describe the crown in detail, including its materials, structure, symbolic engravings, and intricate patterns. Focus on capturing its regal and radiant essence through meaningful motifs and elegant design elements, avoiding direct references to zodiac signs. Highlight the type of light it reflects or emits, the way it sits atop its pedestal or bearer, and the aura of authority and grace it projects. Ensure the design elements convey dignity, individuality, and inner strength, while maintaining an artistic and mystical tone. Include artistic rendering details such as “ultra-realistic,” “8K resolution,” and “HDR” to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination. Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of a majestic crown that radiates power and inner strength, adorned with intricate engravings that reflect its bearer’s unique essence."
|
|
178
175
|
`;
|
|
179
176
|
|
|
180
177
|
export const PROMPT_GENERATE_SCEPTER_LEONARDO = `
|
|
@@ -183,6 +180,7 @@ You are an expert creative writer specializing in crafting intricate and vivid p
|
|
|
183
180
|
Describe the scepter in detail, including its materials, structure, symbolic engravings, and artistic patterns. Focus on capturing its majestic and commanding essence through meaningful motifs and regal design elements, avoiding direct references to zodiac signs. Highlight the way it is held or displayed, the type of energy it radiates, and how its presence impacts the surrounding ambiance.
|
|
184
181
|
|
|
185
182
|
Ensure the design elements convey strength, authority, and purpose, while maintaining an artistic and mystical tone. Include artistic rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
183
|
+
Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of a regal scepter that symbolizes influence and authority, crafted with meaningful engravings and glowing with a commanding presence."
|
|
186
184
|
`;
|
|
187
185
|
|
|
188
186
|
export const PROMPT_GENERATE_AMULET_LEONARDO = `
|
|
@@ -191,6 +189,8 @@ You are an expert creative writer specializing in crafting intricate and vivid p
|
|
|
191
189
|
Describe the amulet in detail, including its materials, structure, symbolic engravings, and artistic patterns. Focus on capturing its nurturing and protective essence through meaningful motifs and harmonious elements, avoiding direct references to zodiac signs. Highlight the type of aura or glow it emanates, the emotions it evokes, and how it would be worn or carried in a visually compelling way.
|
|
192
190
|
|
|
193
191
|
Ensure the design elements convey resilience, inner balance, and renewal, while maintaining an artistic and mystical tone. Include artistic rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
192
|
+
|
|
193
|
+
Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of an enchanted amulet that embodies protection and growth, glowing with mystical energy and detailed with sacred engravings."
|
|
194
194
|
`;
|
|
195
195
|
|
|
196
196
|
export const PROMPT_GENERATE_LANTERN_LEONARDO = `
|
|
@@ -199,6 +199,7 @@ You are an expert creative writer specializing in crafting intricate and vivid p
|
|
|
199
199
|
Describe the lantern in detail, including its materials, structure, symbolic engravings, and design elements. Focus on capturing its spiritual essence through meaningful motifs and patterns, avoiding direct references to zodiac signs. Highlight the type of light it emits, the ambiance it creates, and its placement in a visually compelling environment.
|
|
200
200
|
|
|
201
201
|
Ensure the design elements reflect transformation, balance, and renewal, while maintaining an artistic, mystical tone. Include artistic rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
202
|
+
Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of a mystical lantern that emanates guidance and resilience, casting an ethereal glow and adorned with intricate, symbolic patterns."
|
|
202
203
|
`;
|
|
203
204
|
|
|
204
205
|
export const PROMPT_GENERATE_ORB_LEONARDO = `
|
|
@@ -207,4 +208,6 @@ You are an expert creative writer specializing in crafting intricate and vivid p
|
|
|
207
208
|
Describe the Orb in detail, including its materials, structure, symbolic engravings, and artistic patterns. Focus on capturing its cosmic and ethereal essence through meaningful motifs and celestial design elements, avoiding direct references to zodiac signs. Highlight its glowing or radiant energy, the depth of its swirling patterns, and how it is displayed—whether floating, resting on an ornate pedestal, or encased in a symbolic frame.
|
|
208
209
|
|
|
209
210
|
Ensure the design elements convey wisdom, mystery, and transcendence, while maintaining an artistic and mystical tone. Include artistic rendering details such as "ultra-realistic," "8K resolution," and "HDR" to guide the AI model. Keep the description concise, under 1500 characters, and ensure it can be used directly with Leonardo.ai for image generation. Respond with a single descriptive paragraph based on the given zodiac sign combination.
|
|
210
|
-
|
|
211
|
+
Make the prompt start with: "Create an ultra-realistic, 8K resolution, HDR image of a celestial orb that embodies destiny and higher vision, shimmering with cosmic light and adorned with mesmerizing, intricate designs."
|
|
212
|
+
|
|
213
|
+
`;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const mapConceptToPlanets = (conceptSlug: string, combination: string): string => {
|
|
2
|
+
const signs = combination.split('-');
|
|
3
|
+
|
|
4
|
+
const conceptPlanetMapping: Record<string, string[]> = {
|
|
5
|
+
crown: ['Sun', 'Ascendant', 'Moon'],
|
|
6
|
+
scepter: ['Mercury', 'Venus', 'Mars'],
|
|
7
|
+
amulet: ['Jupiter', 'Saturn', 'Chiron'],
|
|
8
|
+
lantern: ['Uranus', 'Pluto', 'Neptune'],
|
|
9
|
+
orb: ['North Node', 'Midheaven', 'Pars Fortuna'],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const planets = conceptPlanetMapping[conceptSlug];
|
|
13
|
+
|
|
14
|
+
if (!planets) {
|
|
15
|
+
throw new Error(`Invalid conceptSlug provided: ${conceptSlug}`);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (signs.length !== planets.length) {
|
|
19
|
+
throw new Error(`Combination does not match the expected number of planets for concept: ${conceptSlug}`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return signs
|
|
23
|
+
.map((sign, index) => `- ${planets[index]}: ${sign}`)
|
|
24
|
+
.join('\n');
|
|
25
|
+
};
|