thoth-cli 0.2.6 → 0.2.8
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
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
synastry,
|
|
27
27
|
transit,
|
|
28
28
|
version
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SURUD7BV.js";
|
|
30
30
|
|
|
31
31
|
// src/bin.ts
|
|
32
32
|
import { Command } from "commander";
|
|
@@ -43,7 +43,7 @@ Examples:
|
|
|
43
43
|
thoth synastry --date1 1991-07-08 --time1 14:06 --city1 "New York" --date2 2026-02-26 --time2 04:35 --city2 "New York"
|
|
44
44
|
thoth progressions --natal-date 1991-07-08 --natal-time 14:06 --city "New York" --target-date 2026-03-01
|
|
45
45
|
thoth moon
|
|
46
|
-
thoth ephemeris --body pluto`).version("0.2.
|
|
46
|
+
thoth ephemeris --body pluto`).version("0.2.8");
|
|
47
47
|
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) => {
|
|
48
48
|
if (!options.city && (!options.lat || !options.lng)) {
|
|
49
49
|
console.error(chalk.red("Error: Must provide either --city or both --lat and --lng"));
|
|
@@ -535,6 +535,6 @@ program.command("key").description("Symbol reference guide").action(() => {
|
|
|
535
535
|
console.log("");
|
|
536
536
|
});
|
|
537
537
|
console.log(chalk.dim(""));
|
|
538
|
-
console.log(chalk.yellow(" \u{1315D}") + chalk.dim(" thoth-cli v0.2.
|
|
538
|
+
console.log(chalk.yellow(" \u{1315D}") + chalk.dim(" thoth-cli v0.2.8"));
|
|
539
539
|
console.log(chalk.dim(""));
|
|
540
540
|
program.parse();
|
|
@@ -34,12 +34,12 @@ function getBinaryPath() {
|
|
|
34
34
|
const platformKey = getPlatformKey();
|
|
35
35
|
const binaryName = getBinaryName();
|
|
36
36
|
const possiblePaths = [
|
|
37
|
-
// Installed via npm (production)
|
|
37
|
+
// Installed via npm (production) - dist/ is one level down from package root
|
|
38
|
+
join(__dirname, "..", "bin", platformKey, binaryName),
|
|
39
|
+
// Installed via npm (alt path)
|
|
38
40
|
join(__dirname, "..", "..", "bin", platformKey, binaryName),
|
|
39
41
|
// Development (monorepo)
|
|
40
|
-
join(__dirname, "..", "..", "..", "
|
|
41
|
-
// Local development
|
|
42
|
-
join(__dirname, "..", "..", "bin", binaryName)
|
|
42
|
+
join(__dirname, "..", "..", "..", "bin", platformKey, binaryName)
|
|
43
43
|
];
|
|
44
44
|
for (const p of possiblePaths) {
|
|
45
45
|
if (existsSync(p)) {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
import { platform, arch } from 'os';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
9
|
-
import { existsSync, mkdirSync, createWriteStream, chmodSync } from 'fs';
|
|
9
|
+
import { existsSync, mkdirSync, createWriteStream, chmodSync, statSync } from 'fs';
|
|
10
10
|
import { fileURLToPath } from 'url';
|
|
11
11
|
import https from 'https';
|
|
12
12
|
|
|
13
13
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
14
|
|
|
15
|
-
const VERSION = '0.2.
|
|
15
|
+
const VERSION = '0.2.7';
|
|
16
16
|
const REPO = 'aklo360/thoth-cli';
|
|
17
17
|
const BASE_URL = `https://github.com/${REPO}/releases/download/v${VERSION}`;
|
|
18
18
|
|
|
@@ -69,10 +69,14 @@ async function main() {
|
|
|
69
69
|
const binDir = join(__dirname, '..', 'bin', platformKey);
|
|
70
70
|
const binaryPath = join(binDir, binaryName);
|
|
71
71
|
|
|
72
|
-
// Skip if binary already exists
|
|
72
|
+
// Skip if binary already exists AND has content
|
|
73
73
|
if (existsSync(binaryPath)) {
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const stats = statSync(binaryPath);
|
|
75
|
+
if (stats.size > 0) {
|
|
76
|
+
console.log(`✓ thoth-core binary already exists`);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
console.log(`Found empty placeholder, downloading actual binary...`);
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
console.log(`Downloading thoth-core for ${platformKey}...`);
|