rekipedia 0.9.3 → 0.9.5
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
//
|
|
2
|
+
// rekipedia npm shim
|
|
3
3
|
// Delegates to the Python package (installed via uv or pip).
|
|
4
4
|
// Security: uses execFileSync with an explicit args array — never shell:true
|
|
5
5
|
// or string interpolation of user-supplied values.
|
|
@@ -25,21 +25,21 @@ function tryRun(cmd, cmdArgs) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// Strategy 1: uvx (preferred — no global install needed)
|
|
28
|
-
if (tryRun("uvx", ["
|
|
28
|
+
if (tryRun("uvx", ["rekipedia", ...args])) process.exit(0);
|
|
29
29
|
|
|
30
|
-
// Strategy 2: python -m
|
|
31
|
-
if (tryRun("python3", ["-m", "
|
|
32
|
-
if (tryRun("python", ["-m", "
|
|
30
|
+
// Strategy 2: python -m rekipedia (already pip-installed)
|
|
31
|
+
if (tryRun("python3", ["-m", "rekipedia", ...args])) process.exit(0);
|
|
32
|
+
if (tryRun("python", ["-m", "rekipedia", ...args])) process.exit(0);
|
|
33
33
|
|
|
34
34
|
// No viable runtime found
|
|
35
35
|
console.error(
|
|
36
36
|
[
|
|
37
37
|
"",
|
|
38
|
-
"
|
|
38
|
+
"rekipedia: could not find a Python runtime to run the tool.",
|
|
39
39
|
"",
|
|
40
40
|
"Please install one of:",
|
|
41
41
|
" uv (recommended) — https://docs.astral.sh/uv/getting-started/installation/",
|
|
42
|
-
" pip install
|
|
42
|
+
" pip install rekipedia",
|
|
43
43
|
"",
|
|
44
44
|
].join("\n")
|
|
45
45
|
);
|
package/package.json
CHANGED