@sys9/smith9-cli 0.1.1 → 0.1.2-darwin-x64
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/README.md +4 -3
- package/package.json +7 -14
- package/vendor/x86_64-apple-darwin/smith9/smith9 +0 -0
- package/bin/smith9 +0 -56
- package/vendor/aarch64-apple-darwin/smith9/smith9 +0 -0
- package/vendor/aarch64-unknown-linux-musl/smith9/smith9 +0 -0
- package/vendor/x86_64-unknown-linux-musl/smith9/smith9 +0 -0
package/README.md
CHANGED
|
@@ -10,9 +10,10 @@ npm install -g @sys9/smith9-cli
|
|
|
10
10
|
bun install -g @sys9/smith9-cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
The
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
The published npm layout mirrors Codex: `@sys9/smith9-cli` is a lightweight
|
|
14
|
+
launcher package, and the actual native binary arrives through one
|
|
15
|
+
platform-specific optional dependency. That keeps installs small because each
|
|
16
|
+
machine only downloads its own Linux/macOS `x64` or `arm64` binary.
|
|
16
17
|
|
|
17
18
|
Run:
|
|
18
19
|
|
package/package.json
CHANGED
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sys9/smith9-cli",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "smith9 CLI with
|
|
3
|
+
"version": "0.1.2-darwin-x64",
|
|
4
|
+
"description": "smith9 CLI with platform-native npm packages for Linux and macOS",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"bin": {
|
|
7
|
-
"smith9": "bin/smith9"
|
|
8
|
-
},
|
|
9
6
|
"os": [
|
|
10
|
-
"darwin"
|
|
11
|
-
"linux"
|
|
7
|
+
"darwin"
|
|
12
8
|
],
|
|
13
9
|
"cpu": [
|
|
14
|
-
"arm64",
|
|
15
10
|
"x64"
|
|
16
11
|
],
|
|
17
12
|
"files": [
|
|
18
|
-
"
|
|
19
|
-
"vendor",
|
|
20
|
-
"README.md"
|
|
13
|
+
"vendor"
|
|
21
14
|
],
|
|
22
|
-
"publishConfig": {
|
|
23
|
-
"access": "public"
|
|
24
|
-
},
|
|
25
15
|
"repository": {
|
|
26
16
|
"type": "git",
|
|
27
17
|
"url": "https://github.com/sys9-ai/smith9.git",
|
|
28
18
|
"directory": "npm"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=16"
|
|
29
22
|
}
|
|
30
23
|
}
|
|
Binary file
|
package/bin/smith9
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env sh
|
|
2
|
-
|
|
3
|
-
set -eu
|
|
4
|
-
|
|
5
|
-
resolve_script_path() {
|
|
6
|
-
script_path="$1"
|
|
7
|
-
while [ -L "$script_path" ]; do
|
|
8
|
-
link_target="$(readlink "$script_path")"
|
|
9
|
-
case "$link_target" in
|
|
10
|
-
/*) script_path="$link_target" ;;
|
|
11
|
-
*) script_path="$(dirname "$script_path")/$link_target" ;;
|
|
12
|
-
esac
|
|
13
|
-
done
|
|
14
|
-
printf '%s\n' "$script_path"
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
script_path="$(resolve_script_path "$0")"
|
|
18
|
-
script_dir="$(CDPATH= cd "$(dirname "$script_path")" && pwd)"
|
|
19
|
-
|
|
20
|
-
uname_s="$(uname -s)"
|
|
21
|
-
uname_m="$(uname -m)"
|
|
22
|
-
|
|
23
|
-
case "$uname_s" in
|
|
24
|
-
Linux)
|
|
25
|
-
case "$uname_m" in
|
|
26
|
-
x86_64|amd64) target_triple="x86_64-unknown-linux-musl" ;;
|
|
27
|
-
aarch64|arm64) target_triple="aarch64-unknown-linux-musl" ;;
|
|
28
|
-
*)
|
|
29
|
-
echo "Unsupported architecture: $uname_m" >&2
|
|
30
|
-
exit 1
|
|
31
|
-
;;
|
|
32
|
-
esac
|
|
33
|
-
;;
|
|
34
|
-
Darwin)
|
|
35
|
-
case "$uname_m" in
|
|
36
|
-
x86_64|amd64) target_triple="x86_64-apple-darwin" ;;
|
|
37
|
-
arm64|aarch64) target_triple="aarch64-apple-darwin" ;;
|
|
38
|
-
*)
|
|
39
|
-
echo "Unsupported architecture: $uname_m" >&2
|
|
40
|
-
exit 1
|
|
41
|
-
;;
|
|
42
|
-
esac
|
|
43
|
-
;;
|
|
44
|
-
*)
|
|
45
|
-
echo "Unsupported platform: $uname_s ($uname_m)" >&2
|
|
46
|
-
exit 1
|
|
47
|
-
;;
|
|
48
|
-
esac
|
|
49
|
-
|
|
50
|
-
binary_path="${script_dir}/../vendor/${target_triple}/smith9/smith9"
|
|
51
|
-
if [ ! -x "$binary_path" ]; then
|
|
52
|
-
echo "Bundled smith9 binary not found at ${binary_path}" >&2
|
|
53
|
-
exit 1
|
|
54
|
-
fi
|
|
55
|
-
|
|
56
|
-
exec "$binary_path" "$@"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|