@clickzetta/cz-cli 0.3.75 → 0.3.78

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.
Files changed (2) hide show
  1. package/bin/postinstall.js +17 -0
  2. package/package.json +6 -6
@@ -32,6 +32,23 @@ function cleanupOutdatedBinaries() {
32
32
  } catch (e) {
33
33
  // Permission denied or other error — skip silently
34
34
  }
35
+
36
+ // Detect pip-installed cz-cli and warn user to uninstall it
37
+ try {
38
+ const result = execFileSync("pip3", ["show", "cz-cli"], {
39
+ stdio: ["ignore", "pipe", "ignore"],
40
+ encoding: "utf-8",
41
+ timeout: 5000,
42
+ });
43
+ if (result && result.includes("Name: cz-cli")) {
44
+ process.stderr.write(
45
+ "\n⚠️ Detected a pip-installed cz-cli that may conflict with this npm installation.\n" +
46
+ " Please remove it with: pip3 uninstall cz-cli\n\n",
47
+ );
48
+ }
49
+ } catch (e) {
50
+ // pip3 not found or command failed — skip silently
51
+ }
35
52
  }
36
53
 
37
54
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickzetta/cz-cli",
3
- "version": "0.3.75",
3
+ "version": "0.3.78",
4
4
  "description": "AI-Agent-friendly CLI for ClickZetta Lakehouse",
5
5
  "bin": {
6
6
  "cz-cli": "bin/run.js",
@@ -13,11 +13,11 @@
13
13
  "bin/"
14
14
  ],
15
15
  "optionalDependencies": {
16
- "@clickzetta/cz-cli-darwin-arm64": "0.3.75",
17
- "@clickzetta/cz-cli-darwin-x64": "0.3.75",
18
- "@clickzetta/cz-cli-linux-arm64": "0.3.75",
19
- "@clickzetta/cz-cli-linux-x64": "0.3.75",
20
- "@clickzetta/cz-cli-win32-x64": "0.3.75"
16
+ "@clickzetta/cz-cli-darwin-arm64": "0.3.78",
17
+ "@clickzetta/cz-cli-darwin-x64": "0.3.78",
18
+ "@clickzetta/cz-cli-linux-arm64": "0.3.78",
19
+ "@clickzetta/cz-cli-linux-x64": "0.3.78",
20
+ "@clickzetta/cz-cli-win32-x64": "0.3.78"
21
21
  },
22
22
  "license": "MIT",
23
23
  "repository": {