@zodic/shared 0.0.265 → 0.0.267
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 +1 -1
- package/types/scopes/generic.ts +94 -74
- package/utils/astroPrompts/index.ts +5 -7
package/package.json
CHANGED
package/types/scopes/generic.ts
CHANGED
|
@@ -423,84 +423,104 @@ export type PlacementObject = {
|
|
|
423
423
|
house: number | null;
|
|
424
424
|
};
|
|
425
425
|
|
|
426
|
-
export interface
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
};
|
|
442
|
-
hemisphere: {
|
|
443
|
-
description: string | null;
|
|
444
|
-
east_west: HemisphereDetail & {
|
|
445
|
-
description: string | null;
|
|
446
|
-
report: string | null;
|
|
447
|
-
};
|
|
448
|
-
north_south: HemisphereDetail & {
|
|
449
|
-
description: string | null;
|
|
450
|
-
report: string | null;
|
|
451
|
-
};
|
|
452
|
-
};
|
|
453
|
-
elements: Elements & {
|
|
454
|
-
description: string | null;
|
|
455
|
-
report: string | null;
|
|
456
|
-
};
|
|
457
|
-
modes: Modes & {
|
|
458
|
-
description: string | null;
|
|
459
|
-
report: string | null;
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
};
|
|
463
|
-
corePlanets: Array<{
|
|
464
|
-
type: string;
|
|
465
|
-
name: string;
|
|
466
|
-
sign: string;
|
|
467
|
-
house: number | null;
|
|
468
|
-
fullDegree: number; // Non-nullable, ensure data exists
|
|
469
|
-
normDegree: number; // Non-nullable, ensure data exists
|
|
470
|
-
speed: number | null;
|
|
471
|
-
isRetro: boolean;
|
|
472
|
-
description: string | null;
|
|
473
|
-
signReport: string | null;
|
|
474
|
-
houseReport: string | null;
|
|
475
|
-
}>;
|
|
476
|
-
advancedPlacements: Array<{
|
|
477
|
-
type: string;
|
|
478
|
-
name: string;
|
|
479
|
-
sign: string;
|
|
480
|
-
house: number | null;
|
|
481
|
-
fullDegree: number; // Non-nullable, ensure data exists
|
|
482
|
-
normDegree: number; // Non-nullable, ensure data exists
|
|
483
|
-
description: string | null;
|
|
484
|
-
signReport: string | null;
|
|
485
|
-
houseReport: string | null;
|
|
486
|
-
}>;
|
|
487
|
-
houses: Array<{
|
|
488
|
-
house: number;
|
|
489
|
-
sign: string;
|
|
490
|
-
degree: number;
|
|
491
|
-
description: string | null;
|
|
426
|
+
export interface MoonPhaseKVData {
|
|
427
|
+
moon_phase_id: string;
|
|
428
|
+
name: string;
|
|
429
|
+
description: string | null;
|
|
430
|
+
report: string | null;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export interface HemisphereKVDetail {
|
|
434
|
+
description: string | null;
|
|
435
|
+
report: string | null;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface HemisphereKVData {
|
|
439
|
+
description: string | null;
|
|
440
|
+
east_west: HemisphereDetail & {
|
|
492
441
|
report: string | null;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
aspectingPlanet: string;
|
|
496
|
-
aspectedPlanet: string;
|
|
497
|
-
type: string;
|
|
498
|
-
orb: number;
|
|
499
|
-
diff: number;
|
|
442
|
+
};
|
|
443
|
+
north_south: HemisphereDetail & {
|
|
500
444
|
report: string | null;
|
|
501
|
-
}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface ElementsKVData extends Elements {
|
|
449
|
+
report: string | null;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
export interface ModesKVData extends Modes {
|
|
453
|
+
report: string | null;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface FeaturesKVData {
|
|
457
|
+
moon_phase: MoonPhaseKVData;
|
|
458
|
+
hemisphere: HemisphereKVData;
|
|
459
|
+
elements: ElementsKVData;
|
|
460
|
+
modes: ModesKVData;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
export interface NatalChartData {
|
|
464
|
+
wheelUrl: string;
|
|
465
|
+
placements: Array<PlacementObject>;
|
|
466
|
+
ascendant: {
|
|
467
|
+
sign: string;
|
|
468
|
+
};
|
|
469
|
+
features: FeaturesKVData;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
export interface CorePlanetKVData {
|
|
473
|
+
type: string;
|
|
474
|
+
name: string;
|
|
475
|
+
sign: string;
|
|
476
|
+
house: number | null;
|
|
477
|
+
fullDegree: number;
|
|
478
|
+
normDegree: number;
|
|
479
|
+
speed: number | null;
|
|
480
|
+
isRetro: boolean;
|
|
481
|
+
description: string | null;
|
|
482
|
+
signReport: string | null;
|
|
483
|
+
houseReport: string | null;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
export interface AdvancedPlacementKVData {
|
|
487
|
+
type: string;
|
|
488
|
+
name: string;
|
|
489
|
+
sign: string;
|
|
490
|
+
house: number | null;
|
|
491
|
+
fullDegree: number;
|
|
492
|
+
normDegree: number;
|
|
493
|
+
description: string | null;
|
|
494
|
+
signReport: string | null;
|
|
495
|
+
houseReport: string | null;
|
|
502
496
|
}
|
|
503
497
|
|
|
498
|
+
export interface HouseKVData {
|
|
499
|
+
house: number;
|
|
500
|
+
sign: string;
|
|
501
|
+
degree: number;
|
|
502
|
+
description: string | null;
|
|
503
|
+
report: string | null;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export interface AspectKVData {
|
|
507
|
+
aspectingPlanet: string;
|
|
508
|
+
aspectedPlanet: string;
|
|
509
|
+
type: string;
|
|
510
|
+
orb: number;
|
|
511
|
+
diff: number;
|
|
512
|
+
report: string | null;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
export interface AstroKVData {
|
|
516
|
+
natalChart: NatalChartData;
|
|
517
|
+
corePlanets: Array<CorePlanetKVData>;
|
|
518
|
+
advancedPlacements: Array<AdvancedPlacementKVData>;
|
|
519
|
+
houses: Array<HouseKVData>;
|
|
520
|
+
aspects: Array<AspectKVData>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
|
|
504
524
|
// Helper type for transforming astro_features to API types
|
|
505
525
|
// In your-types.ts or where types are defined
|
|
506
526
|
export interface AstroFeature {
|
|
@@ -273,10 +273,7 @@ export const astroPrompts = {
|
|
|
273
273
|
.join(' ');
|
|
274
274
|
case 'hemisphere_east_west':
|
|
275
275
|
case 'hemisphere_north_south':
|
|
276
|
-
return
|
|
277
|
-
.split('_')
|
|
278
|
-
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
279
|
-
.join(' ');
|
|
276
|
+
return "Hemisphere"
|
|
280
277
|
default:
|
|
281
278
|
return name.charAt(0).toUpperCase() + name.slice(1);
|
|
282
279
|
}
|
|
@@ -286,6 +283,7 @@ export const astroPrompts = {
|
|
|
286
283
|
|
|
287
284
|
const baseFormat = `
|
|
288
285
|
The result must have an English version and a Portuguese version.
|
|
286
|
+
Avoid using the expression "In astrology" and equivalents. Consider people already know the subject is about astrology.
|
|
289
287
|
The result format must be exactly like the following:
|
|
290
288
|
-- EN
|
|
291
289
|
[Single block of plain text with English version]
|
|
@@ -295,7 +293,7 @@ export const astroPrompts = {
|
|
|
295
293
|
|
|
296
294
|
if (isGeneric) {
|
|
297
295
|
return `
|
|
298
|
-
Make me an introductory, explanatory description of
|
|
296
|
+
Make me an introductory, explanatory description of 70 to 80 words about the astrological concept of the ${formattedName}.
|
|
299
297
|
${baseFormat}
|
|
300
298
|
`.trim();
|
|
301
299
|
} else {
|
|
@@ -305,12 +303,12 @@ export const astroPrompts = {
|
|
|
305
303
|
case 'karmic_point':
|
|
306
304
|
case 'arabic_part':
|
|
307
305
|
return `
|
|
308
|
-
Make me an introductory, explanatory description of
|
|
306
|
+
Make me an introductory, explanatory description of 70 to 80 words about what astrological placement: ${formattedName}.
|
|
309
307
|
${baseFormat}
|
|
310
308
|
`.trim();
|
|
311
309
|
case 'house':
|
|
312
310
|
return `
|
|
313
|
-
Make me an introductory, explanatory description of
|
|
311
|
+
Make me an introductory, explanatory description of 70 to 80 words about the astrological placement: ${formattedName}.
|
|
314
312
|
${baseFormat}
|
|
315
313
|
`.trim();
|
|
316
314
|
default:
|