@zodic/shared 0.0.88 → 0.0.90

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.
@@ -5,6 +5,7 @@ import { v4 as uuidv4 } from 'uuid';
5
5
  import { schema } from '../..';
6
6
  import { Languages } from '../../types';
7
7
  import { KVConcept, sizes } from '../../types/scopes/legacy';
8
+ import { leonardoInitImages } from '../../utils/initImages';
8
9
  import { buildConceptKVKey } from '../../utils/KVKeysBuilders';
9
10
  import { AppContext } from '../base/AppContext';
10
11
 
@@ -198,16 +199,14 @@ export class ConceptService {
198
199
  const [planet1Sign, planet2Sign, planet3Sign] =
199
200
  combinationString.split('-');
200
201
 
201
- if (!planet1Sign || !planet2Sign || (planet3 && !planet3Sign)) {
202
+ if (!planet1Sign || !planet2Sign || !planet3Sign) {
202
203
  throw new Error(
203
204
  `❌ Invalid combinationString: ${combinationString} (Expected format: sign1-sign2-[sign3])`
204
205
  );
205
206
  }
206
207
 
207
208
  console.log(
208
- `🌌 Extracted planet signs: ${planet1} -> ${planet1Sign}, ${planet2} -> ${planet2Sign}, ${
209
- planet3 || 'N/A'
210
- } -> ${planet3Sign || 'N/A'}`
209
+ `🌌 Extracted planet signs: ${planet1} -> ${planet1Sign}, ${planet2} -> ${planet2Sign}, ${planet3} -> ${planet3Sign}`
211
210
  );
212
211
 
213
212
  // 🔍 Ensure Concept Combination exists
@@ -255,6 +254,14 @@ export class ConceptService {
255
254
  prompt: concept.leonardoPrompt,
256
255
  width,
257
256
  height,
257
+ controlNets: [
258
+ {
259
+ "initImageId": leonardoInitImages.concetps.crown.imageId,
260
+ "initImageType": "UPLOADED",
261
+ "preprocessorId": 100, // content reference
262
+ "strengthType": "Low",
263
+ },
264
+ ]
258
265
  });
259
266
 
260
267
  const generationId = leonardoResponse?.sdGenerationJob?.generationId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.88",
3
+ "version": "0.0.90",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -0,0 +1,9 @@
1
+ export const leonardoInitImages = {
2
+ concetps: {
3
+ crown: {
4
+ imageId: '450076a1-c6bb-4877-8a0b-c0d3ba72fca7',
5
+ imageUrl:
6
+ 'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/450076a1-c6bb-4877-8a0b-c0d3ba72fca7.jpg',
7
+ },
8
+ },
9
+ };