thoth-cli 0.2.19 → 0.2.20
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/dist/bin.js +16 -39
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
formatEphemerisRange,
|
|
13
13
|
formatHorary,
|
|
14
14
|
formatLunarReturn,
|
|
15
|
-
formatMoon,
|
|
16
15
|
formatMoonExtended,
|
|
17
16
|
formatProgressions,
|
|
18
17
|
formatScore,
|
|
@@ -24,7 +23,6 @@ import {
|
|
|
24
23
|
horary,
|
|
25
24
|
isError,
|
|
26
25
|
lunarReturn,
|
|
27
|
-
moon,
|
|
28
26
|
moonExtended,
|
|
29
27
|
progressions,
|
|
30
28
|
score,
|
|
@@ -96,7 +94,7 @@ EPHEMERIS & MOON
|
|
|
96
94
|
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
|
|
97
95
|
REFERENCE
|
|
98
96
|
\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
|
|
99
|
-
thoth key # full symbol reference`).version("0.2.
|
|
97
|
+
thoth key # full symbol reference`).version("0.2.20");
|
|
100
98
|
program.command("chart").description("Calculate a natal chart").requiredOption("--date <date>", "Birth date (YYYY-MM-DD)").requiredOption("--time <time>", "Birth time (HH:MM)").option("--lat <lat>", "Latitude", parseFloat).option("--lng <lng>", "Longitude", parseFloat).option("--city <city>", "City name").option("--nation <nation>", "Country code", "US").option("--name <name>", "Name", "Subject").option("--json", "Output raw JSON").option("--svg", "Output SVG chart").option("--svg-file <path>", "Save SVG to file").action(async (options) => {
|
|
101
99
|
if (!options.city && (!options.lat || !options.lng)) {
|
|
102
100
|
console.error(chalk.red("Error: Must provide either --city or both --lat and --lng"));
|
|
@@ -481,40 +479,19 @@ program.command("horary").description("Cast a horary chart for divination (like
|
|
|
481
479
|
console.log(formatHorary(result));
|
|
482
480
|
}
|
|
483
481
|
});
|
|
484
|
-
program.command("moon").description("Get
|
|
482
|
+
program.command("moon").description("Get moon phase, eclipses, sunrise/sunset").option("--date <date>", "Date (YYYY-MM-DD, default: today)").option("--lat <lat>", "Latitude", parseFloat, 40.7128).option("--lng <lng>", "Longitude", parseFloat, -74.006).option("--tz <tz>", "Timezone", "America/New_York").option("--json", "Output raw JSON").action(async (options) => {
|
|
485
483
|
let year, month, day;
|
|
486
484
|
if (options.date) {
|
|
487
485
|
[year, month, day] = options.date.split("-").map(Number);
|
|
488
486
|
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const result2 = await moonExtended({
|
|
492
|
-
year,
|
|
493
|
-
month,
|
|
494
|
-
day,
|
|
495
|
-
lat: options.lat,
|
|
496
|
-
lng: options.lng,
|
|
497
|
-
tz: options.tz
|
|
498
|
-
});
|
|
499
|
-
spinner2.stop();
|
|
500
|
-
if (isError(result2)) {
|
|
501
|
-
console.error(chalk.red(`Error: ${result2.error}`));
|
|
502
|
-
process.exit(1);
|
|
503
|
-
}
|
|
504
|
-
if (options.json) {
|
|
505
|
-
console.log(JSON.stringify(result2, null, 2));
|
|
506
|
-
} else {
|
|
507
|
-
console.log(formatMoonExtended(result2));
|
|
508
|
-
}
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
const spinner = ora("Getting moon phase...").start();
|
|
512
|
-
const result = await moon({
|
|
487
|
+
const spinner = ora("Getting moon data...").start();
|
|
488
|
+
const result = await moonExtended({
|
|
513
489
|
year,
|
|
514
490
|
month,
|
|
515
491
|
day,
|
|
516
492
|
lat: options.lat,
|
|
517
|
-
lng: options.lng
|
|
493
|
+
lng: options.lng,
|
|
494
|
+
tz: options.tz
|
|
518
495
|
});
|
|
519
496
|
spinner.stop();
|
|
520
497
|
if (isError(result)) {
|
|
@@ -524,7 +501,7 @@ program.command("moon").description("Get current moon phase and position").optio
|
|
|
524
501
|
if (options.json) {
|
|
525
502
|
console.log(JSON.stringify(result, null, 2));
|
|
526
503
|
} else {
|
|
527
|
-
console.log(
|
|
504
|
+
console.log(formatMoonExtended(result));
|
|
528
505
|
}
|
|
529
506
|
});
|
|
530
507
|
program.command("ephemeris").description("Get ephemeris position for a celestial body").requiredOption("--body <body>", "Celestial body (sun, moon, mars, etc.)").option("--date <date>", "Date (YYYY-MM-DD, default: today)").option("--json", "Output raw JSON").action(async (options) => {
|
|
@@ -560,7 +537,7 @@ program.command("core-version").description("Show thoth-core version").action(as
|
|
|
560
537
|
});
|
|
561
538
|
program.command("key").description("Symbol reference guide").action(() => {
|
|
562
539
|
const sun = chalk.hex("#FFD700");
|
|
563
|
-
const
|
|
540
|
+
const moon = chalk.hex("#C0C0C0");
|
|
564
541
|
const mercury = chalk.hex("#FF8C00");
|
|
565
542
|
const venus = chalk.hex("#00FF7F");
|
|
566
543
|
const mars = chalk.hex("#FF0000");
|
|
@@ -577,8 +554,8 @@ program.command("key").description("Symbol reference guide").action(() => {
|
|
|
577
554
|
console.log(chalk.bold.cyan("\u2550\u2550 PLANETS \u2550\u2550"));
|
|
578
555
|
console.log(` ${sun("\u2609 Sun")} Identity, vitality, ego, life force`);
|
|
579
556
|
console.log(` ${chalk.dim("Rules:")} ${sun("Leo")} ${chalk.dim("Sephira:")} Tiphareth`);
|
|
580
|
-
console.log(` ${
|
|
581
|
-
console.log(` ${chalk.dim("Rules:")} ${
|
|
557
|
+
console.log(` ${moon("\u263D Moon")} Emotions, instincts, the unconscious, mother`);
|
|
558
|
+
console.log(` ${chalk.dim("Rules:")} ${moon("Cancer")} ${chalk.dim("Sephira:")} Yesod`);
|
|
582
559
|
console.log(` ${mercury("\u263F Mercury")} Mind, communication, learning, commerce`);
|
|
583
560
|
console.log(` ${chalk.dim("Rules:")} ${mercury("Gemini, Virgo")} ${chalk.dim("Sephira:")} Hod`);
|
|
584
561
|
console.log(` ${venus("\u2640 Venus")} Love, beauty, values, attraction, harmony`);
|
|
@@ -609,8 +586,8 @@ program.command("key").description("Symbol reference guide").action(() => {
|
|
|
609
586
|
console.log(` ${chalk.dim("Ruler:")} ${venus("Venus")} ${chalk.dim('"I HAVE"')}`);
|
|
610
587
|
console.log(` ${mercury("\u264A Gemini")} ${chalk.dim("Mutable Air")} Curiosity, duality, scattered`);
|
|
611
588
|
console.log(` ${chalk.dim("Ruler:")} ${mercury("Mercury")} ${chalk.dim('"I THINK"')}`);
|
|
612
|
-
console.log(` ${
|
|
613
|
-
console.log(` ${chalk.dim("Ruler:")} ${
|
|
589
|
+
console.log(` ${moon("\u264B Cancer")} ${chalk.dim("Cardinal Water")} Nurturing, protective, moody`);
|
|
590
|
+
console.log(` ${chalk.dim("Ruler:")} ${moon("Moon")} ${chalk.dim('"I FEEL"')}`);
|
|
614
591
|
console.log(` ${sun("\u264C Leo")} ${chalk.dim("Fixed Fire")} Creative, proud, dramatic`);
|
|
615
592
|
console.log(` ${chalk.dim("Ruler:")} ${sun("Sun")} ${chalk.dim('"I WILL"')}`);
|
|
616
593
|
console.log(` ${mercury("\u264D Virgo")} ${chalk.dim("Mutable Earth")} Analytical, service, critical`);
|
|
@@ -645,7 +622,7 @@ program.command("key").description("Symbol reference guide").action(() => {
|
|
|
645
622
|
console.log(chalk.bold.cyan("\u2550\u2550 ASPECTS \u2550\u2550"));
|
|
646
623
|
console.log(` ${sun("\u260C Conjunction")} 0\xB0 Fusion, intensification, new cycle`);
|
|
647
624
|
console.log(` ${chalk.dim("Sephira: Tiphareth (Sun) \u2014 creative union")}`);
|
|
648
|
-
console.log(` ${
|
|
625
|
+
console.log(` ${moon("\u260D Opposition")} 180\xB0 Awareness, tension, projection`);
|
|
649
626
|
console.log(` ${chalk.dim("Sephira: Yesod (Moon) \u2014 polarity, reflection")}`);
|
|
650
627
|
console.log(` ${jupiter("\u25B3 Trine")} 120\xB0 Harmony, ease, natural talent`);
|
|
651
628
|
console.log(` ${chalk.dim("Sephira: Chesed (Jupiter) \u2014 grace, flow")}`);
|
|
@@ -667,12 +644,12 @@ program.command("key").description("Symbol reference guide").action(() => {
|
|
|
667
644
|
console.log(` ${mercury("\u{1F701} Air")} ${mercury("Gemini, Libra, Aquarius")}`);
|
|
668
645
|
console.log(` Mind, communication, connection, ideas`);
|
|
669
646
|
console.log(` ${chalk.dim("Hot & Wet \u2014 Sanguine \u2014 Thinking function")}`);
|
|
670
|
-
console.log(` ${jupiter("\u{1F704} Water")} ${
|
|
647
|
+
console.log(` ${jupiter("\u{1F704} Water")} ${moon("Cancer, Scorpio, Pisces")}`);
|
|
671
648
|
console.log(` Emotion, intuition, the unconscious, soul`);
|
|
672
649
|
console.log(` ${chalk.dim("Cold & Wet \u2014 Phlegmatic \u2014 Feeling function")}`);
|
|
673
650
|
console.log("");
|
|
674
651
|
console.log(chalk.bold.cyan("\u2550\u2550 MODALITIES \u2550\u2550"));
|
|
675
|
-
console.log(` ${chalk.bold("Cardinal")} ${mars("Aries")}, ${
|
|
652
|
+
console.log(` ${chalk.bold("Cardinal")} ${mars("Aries")}, ${moon("Cancer")}, ${venus("Libra")}, ${saturn("Capricorn")}`);
|
|
676
653
|
console.log(` Initiating, leadership, action`);
|
|
677
654
|
console.log(` ${chalk.dim('The spark. Begins seasons. "I start."')}`);
|
|
678
655
|
console.log(` ${chalk.bold("Fixed")} ${venus("Taurus")}, ${sun("Leo")}, ${pluto("Scorpio")}, ${uranus("Aquarius")}`);
|
|
@@ -797,6 +774,6 @@ program.command("ephemeris-multi").description("Get ephemeris for multiple bodie
|
|
|
797
774
|
}
|
|
798
775
|
});
|
|
799
776
|
console.log(chalk.dim(""));
|
|
800
|
-
console.log(chalk.yellow(" \u{1315D}") + chalk.dim(" thoth-cli v0.2.
|
|
777
|
+
console.log(chalk.yellow(" \u{1315D}") + chalk.dim(" thoth-cli v0.2.20"));
|
|
801
778
|
console.log(chalk.dim(""));
|
|
802
779
|
program.parse();
|
package/package.json
CHANGED