@zodic/shared 0.0.304 → 0.0.306

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.
@@ -603,6 +603,7 @@ export class ArchetypeService {
603
603
  .from(schema.archetypesData)
604
604
  .groupBy(schema.archetypesData.combination)
605
605
  .having(sql`count(*) < 12`)
606
+ .limit(400)
606
607
  .execute();
607
608
 
608
609
  const typedResult = result.map((row) => ({
@@ -728,6 +729,17 @@ export class ArchetypeService {
728
729
  }));
729
730
 
730
731
  for (const index of indexes) {
732
+ if (!english[index - 1] || !portuguese[index - 1]) {
733
+ await this.context.drizzle().insert(schema.archetypeNameDumps).values({
734
+ id: `${combination}:${index}:${Date.now()}`,
735
+ combination,
736
+ rawText: block,
737
+ parsedSuccessfully: 0,
738
+ createdAt: Date.now(),
739
+ });
740
+ console.warn(`⚠️ [Batch] Skipping index ${index} for ${combination} due to missing parsed block`);
741
+ continue;
742
+ }
731
743
  const englishEntry = english[index - 1];
732
744
  const ptEntry = portuguese[index - 1];
733
745
 
@@ -798,10 +810,11 @@ export class ArchetypeService {
798
810
  const db = this.context.drizzle();
799
811
  const incomplete = await this.findIncompleteCombinations();
800
812
  console.log(`🔎 [Fetch] Retrieved ${incomplete.length} incomplete combinations`);
813
+ const limited = incomplete.slice(0, 400);
801
814
 
802
815
  const compositions: Composition[] = [];
803
816
 
804
- for (const { combination } of incomplete) {
817
+ for (const { combination } of limited) {
805
818
  console.log(`🔍 [Fetch] Processing combination: ${combination}`);
806
819
  const [sun, ascendant, moon] = combination.split('-') as ZodiacSignSlug[];
807
820
 
@@ -835,7 +848,7 @@ export class ArchetypeService {
835
848
  }
836
849
  }
837
850
 
838
- console.log(`📦 [Fetch] Total compositions to regenerate: ${compositions.length}`);
851
+ console.log(`📦 [Fetch] Total compositions to regenerate (limited to 400): ${compositions.length}`);
839
852
 
840
853
 
841
854
  return compositions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.304",
3
+ "version": "0.0.306",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -211,7 +211,7 @@ For every composition, return:
211
211
  Avoid names that sound like objects, titles, or abstract forces (e.g., The Lantern, The Eclipse, The Veil).
212
212
  Instead, use names that suggest a personified being or living archetype, such as The Masked Oracle, The Starborn Seeker, or The Dancer of the Falling Sky.
213
213
 
214
- Do not include any commentary or explanations outside the defined output structure. Only return the output block for each composition.`;
214
+ Do not include any commentary or explanations outside the defined output structure. Only return the output block for each composition, exactly as described:`;
215
215
 
216
216
  const compositionBlocks = compositions.map((comp, i) => {
217
217
  const sun = influenceMap.sun[comp.sun];