@clickzetta/cz-cli 0.3.18 → 0.3.20
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/postinstall.js +14 -0
- package/package.json +6 -6
package/bin/postinstall.js
CHANGED
|
@@ -28,6 +28,20 @@ try {
|
|
|
28
28
|
path.join(home, ".openclaw", "workspace", "skills"),
|
|
29
29
|
path.join(home, ".singclaw", "workspace", "skills"),
|
|
30
30
|
];
|
|
31
|
+
|
|
32
|
+
// Cleanup: fix cz-cli-v2 → cz-cli in existing skill files (bug introduced in 57a49fcdc)
|
|
33
|
+
for (const dir of agentDirs) {
|
|
34
|
+
const skillFile = path.join(dir, "cz-cli", "SKILL.md");
|
|
35
|
+
try {
|
|
36
|
+
if (fs.existsSync(skillFile)) {
|
|
37
|
+
const content = fs.readFileSync(skillFile, "utf-8");
|
|
38
|
+
if (content.includes("name: cz-cli-v2")) {
|
|
39
|
+
fs.writeFileSync(skillFile, content.replace("name: cz-cli-v2", "name: cz-cli"), "utf-8");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
} catch (e) {}
|
|
43
|
+
}
|
|
44
|
+
|
|
31
45
|
if (skills.includes("cz-cli")) {
|
|
32
46
|
const src = path.join(skillsSrc, "cz-cli");
|
|
33
47
|
for (const dir of agentDirs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickzetta/cz-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.20",
|
|
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.20",
|
|
14
|
+
"@clickzetta/cz-cli-darwin-x64": "0.3.20",
|
|
15
|
+
"@clickzetta/cz-cli-linux-arm64": "0.3.20",
|
|
16
|
+
"@clickzetta/cz-cli-linux-x64": "0.3.20",
|
|
17
|
+
"@clickzetta/cz-cli-win32-x64": "0.3.20"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"repository": {
|