@zodic/shared 0.0.119 → 0.0.120
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/app/base/AppContext.ts
CHANGED
|
@@ -63,11 +63,18 @@ export class AppContext {
|
|
|
63
63
|
|
|
64
64
|
kvConceptsManagementStore() {
|
|
65
65
|
if (!this.env.KV_CONCEPTS_MANAGEMENT) {
|
|
66
|
-
throw new Error('
|
|
66
|
+
throw new Error('KV_CONCEPTS_MANAGEMENT is not defined in the environment.');
|
|
67
67
|
}
|
|
68
68
|
return this.env.KV_CONCEPTS_MANAGEMENT;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
kvAstroStore() {
|
|
72
|
+
if (!this.env.KV_ASTRO) {
|
|
73
|
+
throw new Error('KV_ASTRO is not defined in the environment.');
|
|
74
|
+
}
|
|
75
|
+
return this.env.KV_ASTRO;
|
|
76
|
+
}
|
|
77
|
+
|
|
71
78
|
api() {
|
|
72
79
|
return Api(this.env);
|
|
73
80
|
}
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ export type CentralBindings = {
|
|
|
23
23
|
KV_CONCEPTS: KVNamespace;
|
|
24
24
|
KV_CONCEPTS_MANAGEMENT: KVNamespace;
|
|
25
25
|
KV_LEONARDO_PROMPTS: KVNamespace;
|
|
26
|
+
KV_ASTRO: KVNamespace;
|
|
26
27
|
KV_TEST: KVNamespace;
|
|
27
28
|
KV_USER_PRODUCT_STATUS: KVNamespace;
|
|
28
29
|
CONCEPT_GENERATION_QUEUE: Queue;
|
|
@@ -90,6 +91,7 @@ export type BackendBindings = Env &
|
|
|
90
91
|
| 'KV_COSMIC_MIRROR_ARCHETYPES'
|
|
91
92
|
| 'KV_CONCEPTS'
|
|
92
93
|
| 'KV_LEONARDO_PROMPTS'
|
|
94
|
+
| 'KV_ASTRO'
|
|
93
95
|
| 'PROMPT_IMAGE_DESCRIBER'
|
|
94
96
|
| 'PROMPT_GENERATE_ARCHETYPE_CONTENT'
|
|
95
97
|
| 'PROMPT_GENERATE_ARCHETYPE_LEONARDO_PROMPTS'
|