@zodic/shared 0.0.112 → 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
package/types/scopes/generic.ts
CHANGED
|
@@ -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:
|
|
154
|
+
conceptSlug: Concept;
|
|
155
155
|
combinationString: string;
|
|
156
156
|
phase: ConceptPhase;
|
|
157
157
|
};
|
package/utils/KVKeysBuilders.ts
CHANGED
|
@@ -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:
|
|
14
|
+
conceptSlug: Concept,
|
|
15
15
|
combinationString: string
|
|
16
16
|
): string => {
|
|
17
17
|
return `concepts:${lang}:${conceptSlug}:${combinationString}`;
|
package/utils/buildMessages.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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:
|
|
148
|
+
conceptSlug: Concept;
|
|
149
149
|
combination: string;
|
|
150
150
|
}): ChatMessages => [
|
|
151
151
|
{
|