@rely-ai/caliber 1.7.6 → 1.7.7
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 +7 -0
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -2681,6 +2681,11 @@ import { execSync as execSync5 } from "child_process";
|
|
|
2681
2681
|
var _resolved = null;
|
|
2682
2682
|
function resolveCaliber() {
|
|
2683
2683
|
if (_resolved) return _resolved;
|
|
2684
|
+
const isNpx = process.argv[1]?.includes("_npx") || process.env.npm_execpath?.includes("npx");
|
|
2685
|
+
if (isNpx) {
|
|
2686
|
+
_resolved = "npx --yes @rely-ai/caliber";
|
|
2687
|
+
return _resolved;
|
|
2688
|
+
}
|
|
2684
2689
|
try {
|
|
2685
2690
|
const found = execSync5("which caliber", {
|
|
2686
2691
|
encoding: "utf-8",
|
|
@@ -2703,6 +2708,8 @@ function resolveCaliber() {
|
|
|
2703
2708
|
function isCaliberCommand(command, subcommandTail) {
|
|
2704
2709
|
if (command === `caliber ${subcommandTail}`) return true;
|
|
2705
2710
|
if (command.endsWith(`/caliber ${subcommandTail}`)) return true;
|
|
2711
|
+
if (command === `npx --yes @rely-ai/caliber ${subcommandTail}`) return true;
|
|
2712
|
+
if (command === `npx @rely-ai/caliber ${subcommandTail}`) return true;
|
|
2706
2713
|
return false;
|
|
2707
2714
|
}
|
|
2708
2715
|
|
package/package.json
CHANGED