@clickzetta/cz-cli 0.5.6 → 0.5.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.
- package/bin/postinstall.js +0 -10
- package/package.json +6 -6
package/bin/postinstall.js
CHANGED
|
@@ -11,15 +11,6 @@ const home = os.homedir();
|
|
|
11
11
|
const installFile = path.join(home, ".clickzetta", "install.json");
|
|
12
12
|
const version = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf-8")).version;
|
|
13
13
|
|
|
14
|
-
function detectPackageManager() {
|
|
15
|
-
const userAgent = process.env.npm_config_user_agent || "";
|
|
16
|
-
if (userAgent.startsWith("pnpm/")) return "pnpm";
|
|
17
|
-
if (userAgent.startsWith("yarn/")) return "yarn";
|
|
18
|
-
if (userAgent.startsWith("bun/")) return "bun";
|
|
19
|
-
if (userAgent.startsWith("npm/")) return "npm";
|
|
20
|
-
return "npm";
|
|
21
|
-
}
|
|
22
|
-
|
|
23
14
|
function cleanupOutdatedBinaries() {
|
|
24
15
|
// Only remove standalone binaries in ~/.local/bin that are not symlinks
|
|
25
16
|
// (npm/bun create symlinks in their bin dirs, standalone installs are real files)
|
|
@@ -156,7 +147,6 @@ async function main() {
|
|
|
156
147
|
JSON.stringify(
|
|
157
148
|
{
|
|
158
149
|
version: 1,
|
|
159
|
-
method: detectPackageManager(),
|
|
160
150
|
installed_path: installed.binPath,
|
|
161
151
|
channel: "latest",
|
|
162
152
|
binary_version: binaryVersion,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickzetta/cz-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
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.7",
|
|
17
|
+
"@clickzetta/cz-cli-darwin-x64": "0.5.7",
|
|
18
|
+
"@clickzetta/cz-cli-linux-arm64": "0.5.7",
|
|
19
|
+
"@clickzetta/cz-cli-linux-x64": "0.5.7",
|
|
20
|
+
"@clickzetta/cz-cli-win32-x64": "0.5.7"
|
|
21
21
|
},
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"repository": {
|