@clickzetta/cz-cli 0.3.7 → 0.3.9
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/bin/run.js +5 -9
- package/package.json +6 -6
package/bin/run.js
CHANGED
|
@@ -13,15 +13,11 @@ const binName = platform === "win32" ? "cz-cli.exe" : "cz-cli";
|
|
|
13
13
|
try {
|
|
14
14
|
const pkgDir = path.dirname(require.resolve(`${pkgName}/package.json`));
|
|
15
15
|
const binPath = path.join(pkgDir, "bin", binName);
|
|
16
|
-
|
|
17
|
-
stdio: "inherit",
|
|
18
|
-
env: process.env,
|
|
19
|
-
});
|
|
16
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: "inherit", env: process.env });
|
|
20
17
|
} catch (e) {
|
|
21
|
-
if (e.status !== undefined)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
console.error(`
|
|
25
|
-
console.error(`Try installing directly: curl -fsSL https://github.com/clickzetta/cz-cli/releases/latest/download/install.sh | sh`);
|
|
18
|
+
if (e.status !== undefined) process.exit(e.status);
|
|
19
|
+
console.error(`Error: Platform binary not found (${pkgName}).`);
|
|
20
|
+
console.error(`Fix: npm install -g @clickzetta/cz-cli@latest`);
|
|
21
|
+
console.error(`Or: curl -fsSL https://github.com/clickzetta/cz-cli/releases/latest/download/install.sh | sh`);
|
|
26
22
|
process.exit(1);
|
|
27
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickzetta/cz-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "AI-Agent-friendly CLI for ClickZetta Lakehouse",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cz-cli": "bin/run.js"
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
},
|
|
11
11
|
"files": ["bin/"],
|
|
12
12
|
"optionalDependencies": {
|
|
13
|
-
"@clickzetta/cz-cli-darwin-arm64": "0.3.
|
|
14
|
-
"@clickzetta/cz-cli-darwin-x64": "0.3.
|
|
15
|
-
"@clickzetta/cz-cli-linux-arm64": "0.3.
|
|
16
|
-
"@clickzetta/cz-cli-linux-x64": "0.3.
|
|
17
|
-
"@clickzetta/cz-cli-win32-x64": "0.3.
|
|
13
|
+
"@clickzetta/cz-cli-darwin-arm64": "0.3.9",
|
|
14
|
+
"@clickzetta/cz-cli-darwin-x64": "0.3.9",
|
|
15
|
+
"@clickzetta/cz-cli-linux-arm64": "0.3.9",
|
|
16
|
+
"@clickzetta/cz-cli-linux-x64": "0.3.9",
|
|
17
|
+
"@clickzetta/cz-cli-win32-x64": "0.3.9"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"repository": {
|