@kepoai/cli 0.0.1 → 0.0.2
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/kp +9 -6
- package/package.json +2 -3
package/bin/kp
CHANGED
|
@@ -24,7 +24,9 @@ fi
|
|
|
24
24
|
|
|
25
25
|
# Determine system architecture
|
|
26
26
|
os="$(uname)"
|
|
27
|
+
os_lower="darwin" # Currently only support macOS
|
|
27
28
|
architecture="$(uname -m)"
|
|
29
|
+
|
|
28
30
|
if [[ "${os}" = "Darwin" ]]; then
|
|
29
31
|
if [[ "${architecture}" = "arm64" ]]; then
|
|
30
32
|
architecture_dir="arm64"
|
|
@@ -33,24 +35,25 @@ if [[ "${os}" = "Darwin" ]]; then
|
|
|
33
35
|
architecture_dir="x86"
|
|
34
36
|
download_arch="amd64"
|
|
35
37
|
fi
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
else
|
|
39
|
+
echo "Error: Currently only macOS is supported"
|
|
40
|
+
exit 1
|
|
39
41
|
fi
|
|
40
42
|
|
|
41
43
|
# Define CLI paths
|
|
42
44
|
kp_path="$bin_dir/$architecture_dir/kp"
|
|
43
|
-
download_url="https://r2.kepo.ai/kepo-cli/$
|
|
45
|
+
download_url="https://r2.kepo.ai/kepo-cli/$kp_version/kepo-cli-$os_lower-$download_arch"
|
|
44
46
|
|
|
45
47
|
# Function to download CLI binary
|
|
46
48
|
function download_cli {
|
|
47
|
-
echo "Downloading Kepo CLI v${kp_version} for ${os}/${
|
|
49
|
+
echo "Downloading Kepo CLI v${kp_version} for ${os}/${download_arch}..."
|
|
48
50
|
mkdir -p "$(dirname "$kp_path")"
|
|
49
|
-
if ! curl -
|
|
51
|
+
if ! curl -fsSL "$download_url" -o "$kp_path"; then
|
|
50
52
|
echo "Error: Failed to download CLI from $download_url"
|
|
51
53
|
exit 1
|
|
52
54
|
fi
|
|
53
55
|
chmod +x "$kp_path"
|
|
56
|
+
echo "Successfully downloaded CLI to $kp_path"
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
# Handle npm post-install
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kepoai/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Kepo CLI - A tool for building TypeScript code into platform-specific plugins",
|
|
5
5
|
"bin": {
|
|
6
6
|
"kp": "./bin/kp"
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"node": ">=14.0.0"
|
|
14
14
|
},
|
|
15
15
|
"os": [
|
|
16
|
-
"darwin"
|
|
17
|
-
"linux"
|
|
16
|
+
"darwin"
|
|
18
17
|
],
|
|
19
18
|
"author": "Kepo Team",
|
|
20
19
|
"license": "MIT",
|