@clickzetta/cz-cli 0.5.18 → 0.5.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 +12 -0
- package/package.json +6 -6
package/bin/postinstall.js
CHANGED
|
@@ -58,6 +58,18 @@ async function main() {
|
|
|
58
58
|
fallbackRoot: DEFAULT_FALLBACK_ROOT,
|
|
59
59
|
force: true,
|
|
60
60
|
});
|
|
61
|
+
|
|
62
|
+
// On macOS, remove quarantine bit and re-apply ad-hoc signature.
|
|
63
|
+
// npm/bun extraction can re-attach com.apple.quarantine to the binary,
|
|
64
|
+
// which causes Gatekeeper to SIGKILL the process on first run.
|
|
65
|
+
if (process.platform === "darwin") {
|
|
66
|
+
try {
|
|
67
|
+
execFileSync("xattr", ["-dr", "com.apple.quarantine", installed.binPath], { stdio: "ignore" });
|
|
68
|
+
} catch (e) {}
|
|
69
|
+
try {
|
|
70
|
+
execFileSync("codesign", ["--force", "--sign", "-", installed.binPath], { stdio: "ignore" });
|
|
71
|
+
} catch (e) {}
|
|
72
|
+
}
|
|
61
73
|
// Install bundled skills into ~/.clickzetta/skills/.builtin/
|
|
62
74
|
const skillsSrc = path.join(installed.rootDir, "skills");
|
|
63
75
|
const builtinDest = path.join(home, ".clickzetta", "skills", ".builtin");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickzetta/cz-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.20",
|
|
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.5.
|
|
17
|
-
"@clickzetta/cz-cli-darwin-x64": "0.5.
|
|
18
|
-
"@clickzetta/cz-cli-linux-arm64": "0.5.
|
|
19
|
-
"@clickzetta/cz-cli-linux-x64": "0.5.
|
|
20
|
-
"@clickzetta/cz-cli-win32-x64": "0.5.
|
|
16
|
+
"@clickzetta/cz-cli-darwin-arm64": "0.5.20",
|
|
17
|
+
"@clickzetta/cz-cli-darwin-x64": "0.5.20",
|
|
18
|
+
"@clickzetta/cz-cli-linux-arm64": "0.5.20",
|
|
19
|
+
"@clickzetta/cz-cli-linux-x64": "0.5.20",
|
|
20
|
+
"@clickzetta/cz-cli-win32-x64": "0.5.20"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|