@zodic/shared 0.0.84 → 0.0.86

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.84",
3
+ "version": "0.0.86",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -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: ${combination}
114
+ Combination:
115
+ ${zodiacCombination}
112
116
  `,
113
117
  },
114
118
  ];
@@ -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>> = (env) => ({
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,21 @@ 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
+ You are an expert creative writer specializing in crafting vivid, high-quality prompts for AI image generation. Your task is to generate a detailed, ultra-realistic, and artistically rich prompt for a majestic crown that symbolizes core identity, inner power, and dynamic essence.
175
+
176
+ Instructions:
177
+ • Describe the crown’s composition—its base materials (e.g., gold, platinum, obsidian, celestial metal) and how they contribute to its symbolic meaning.
178
+ • Detail the crown’s structure—its form, height, weight, and shape, ensuring it exudes a regal yet mystical presence.
179
+ • Include engravings, gemstones, and artistic patterns—these should evoke deeper symbolic meaning rather than being purely ornamental.
180
+ • Describe the crown’s light and aura—does it emit a soft celestial glow, a bold fiery radiance, or a shimmering spectral light? How does this reinforce its power?
181
+ • Explain how the crown interacts with its environment—does it rest upon an ancient pedestal, hover weightlessly in the air, or radiate energy from its wearer?
182
+ • Ensure the description is cinematic and photorealistic—incorporate advanced rendering details like “ultra-realistic,” “8K resolution,” “HDR lighting,” and “cinematic composition.”
174
183
 
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.
184
+ Your Response Should Begin With:
185
+ “Create an ultra-realistic, 8K resolution, HDR image of a majestic crown symbolizing core identity, inner power, and dynamic essence.”
176
186
 
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.
187
+ Avoid direct zodiac sign references, but ensure the crown’s materials, engravings, and overall aura reflect the symbolic essence of the given Sun, Ascendant, and Moon signs.
178
188
  `;
179
189
 
180
190
  export const PROMPT_GENERATE_SCEPTER_LEONARDO = `
@@ -183,6 +193,7 @@ You are an expert creative writer specializing in crafting intricate and vivid p
183
193
  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
194
 
185
195
  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.
196
+ 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
197
  `;
187
198
 
188
199
  export const PROMPT_GENERATE_AMULET_LEONARDO = `
@@ -191,6 +202,8 @@ You are an expert creative writer specializing in crafting intricate and vivid p
191
202
  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
203
 
193
204
  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.
205
+
206
+ 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
207
  `;
195
208
 
196
209
  export const PROMPT_GENERATE_LANTERN_LEONARDO = `
@@ -199,6 +212,7 @@ You are an expert creative writer specializing in crafting intricate and vivid p
199
212
  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
213
 
201
214
  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.
215
+ 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
216
  `;
203
217
 
204
218
  export const PROMPT_GENERATE_ORB_LEONARDO = `
@@ -207,4 +221,6 @@ You are an expert creative writer specializing in crafting intricate and vivid p
207
221
  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
222
 
209
223
  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
- `;
224
+ 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."
225
+
226
+ `;
@@ -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
+ };