@clickzetta/cz-cli 0.3.5 → 0.3.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.
Files changed (2) hide show
  1. package/bin/postinstall.js +13 -2
  2. package/package.json +6 -6
@@ -40,9 +40,20 @@ try {
40
40
  }
41
41
  }
42
42
 
43
- // 2. All other skills → ~/.clickzetta/skills/ (cz-cli internal use)
44
- const internalDest = path.join(home, ".clickzetta", "skills");
43
+ // 2. All other skills → ~/.clickzetta/skills/.builtin/ (cz-cli managed, safe to overwrite)
44
+ const internalDest = path.join(home, ".clickzetta", "skills", ".builtin");
45
45
  fs.mkdirSync(internalDest, { recursive: true });
46
+
47
+ // Migrate: remove legacy skills that were previously installed directly in ~/.clickzetta/skills/
48
+ const legacyDir = path.join(home, ".clickzetta", "skills");
49
+ for (const name of skills) {
50
+ if (name === "cz-cli") continue;
51
+ const legacy = path.join(legacyDir, name);
52
+ if (fs.existsSync(legacy) && fs.statSync(legacy).isDirectory()) {
53
+ try { fs.rmSync(legacy, { recursive: true, force: true }); } catch (e) {}
54
+ }
55
+ }
56
+
46
57
  for (const name of skills) {
47
58
  if (name === "cz-cli") continue;
48
59
  const src = path.join(skillsSrc, name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickzetta/cz-cli",
3
- "version": "0.3.5",
3
+ "version": "0.3.7",
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.5",
14
- "@clickzetta/cz-cli-darwin-x64": "0.3.5",
15
- "@clickzetta/cz-cli-linux-arm64": "0.3.5",
16
- "@clickzetta/cz-cli-linux-x64": "0.3.5",
17
- "@clickzetta/cz-cli-win32-x64": "0.3.5"
13
+ "@clickzetta/cz-cli-darwin-arm64": "0.3.7",
14
+ "@clickzetta/cz-cli-darwin-x64": "0.3.7",
15
+ "@clickzetta/cz-cli-linux-arm64": "0.3.7",
16
+ "@clickzetta/cz-cli-linux-x64": "0.3.7",
17
+ "@clickzetta/cz-cli-win32-x64": "0.3.7"
18
18
  },
19
19
  "license": "MIT",
20
20
  "repository": {