@zodic/shared 0.0.111 → 0.0.113

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.111",
3
+ "version": "0.0.113",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -151,7 +151,7 @@ export type Concept =
151
151
 
152
152
  export type Concepts = ['crown', 'scepter', 'amulet', 'lantern', 'orb', 'ring'];
153
153
  export type ConceptQueueMessage = {
154
- conceptSlug: string;
154
+ conceptSlug: Concept;
155
155
  combinationString: string;
156
156
  phase: ConceptPhase;
157
157
  };
@@ -1,4 +1,4 @@
1
- import { Gender, Languages } from '../types';
1
+ import { Concept, Gender, Languages } from '../types';
2
2
 
3
3
  export const buildCosmicMirrorArchetypeKVKey = (
4
4
  lang: Languages,
@@ -11,7 +11,7 @@ export const buildCosmicMirrorArchetypeKVKey = (
11
11
 
12
12
  export const buildConceptKVKey = (
13
13
  lang: Languages,
14
- conceptSlug: string,
14
+ conceptSlug: Concept,
15
15
  combinationString: string
16
16
  ): string => {
17
17
  return `concepts:${lang}:${conceptSlug}:${combinationString}`;
@@ -1,4 +1,4 @@
1
- import { BackendBindings, ChatMessages, Crown } from '../types';
1
+ import { BackendBindings, ChatMessages, Concept, Crown } from '../types';
2
2
  import { conceptPrompts } from './conceptPrompts';
3
3
  import { mapConceptToPlanets } from './mapConceptToPlanets';
4
4
 
@@ -99,7 +99,7 @@ export const buildLLMMessages = (env: BackendBindings) => ({
99
99
  conceptSlug,
100
100
  }: {
101
101
  combination: string;
102
- conceptSlug: string;
102
+ conceptSlug: Concept;
103
103
  }): ChatMessages => {
104
104
  const zodiacCombination = mapConceptToPlanets(conceptSlug, combination);
105
105
 
@@ -122,7 +122,7 @@ export const buildLLMMessages = (env: BackendBindings) => ({
122
122
  conceptSlug,
123
123
  }: {
124
124
  combination: string;
125
- conceptSlug: string;
125
+ conceptSlug: Concept;
126
126
  }): ChatMessages => [
127
127
  {
128
128
  role: 'system',
@@ -145,7 +145,7 @@ export const buildLLMMessages = (env: BackendBindings) => ({
145
145
  name: string;
146
146
  description: string;
147
147
  poem: string;
148
- conceptSlug: string;
148
+ conceptSlug: Concept;
149
149
  combination: string;
150
150
  }): ChatMessages => [
151
151
  {
@@ -21,14 +21,12 @@ export const leonardoInitImages: LeonardoInitImages = {
21
21
  imageUrl: null,
22
22
  },
23
23
  orb: {
24
- imageId: '450076a1-c6bb-4877-8a0b-c0d3ba72fca7',
25
- imageUrl:
26
- 'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/450076a1-c6bb-4877-8a0b-c0d3ba72fca7.jpg',
24
+ imageId: null,
25
+ imageUrl: null,
27
26
  },
28
27
  ring: {
29
- imageId: '450076a1-c6bb-4877-8a0b-c0d3ba72fca7',
30
- imageUrl:
31
- 'https://cdn.leonardo.ai/users/b117a933-e5c9-45b2-96aa-4b619c2d74ba/initImages/450076a1-c6bb-4877-8a0b-c0d3ba72fca7.jpg',
28
+ imageId: null,
29
+ imageUrl: null,
32
30
  },
33
31
  },
34
32
  };