@sys9/owl9-cli 0.1.0
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 +28 -0
- package/bin/owl9 +56 -0
- package/package.json +33 -0
- package/vendor/darwin_amd64/owl9 +0 -0
- package/vendor/darwin_arm64/owl9 +0 -0
- package/vendor/linux_amd64/owl9 +0 -0
- package/vendor/linux_arm64/owl9 +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @sys9/owl9-cli
|
|
2
|
+
|
|
3
|
+
`@sys9/owl9-cli` installs the `owl9` command.
|
|
4
|
+
|
|
5
|
+
The installed `owl9` executable is a bundled native binary. Node.js is not required at runtime.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install -g @sys9/owl9-cli
|
|
11
|
+
# or
|
|
12
|
+
bun add -g @sys9/owl9-cli
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Supported platforms
|
|
16
|
+
|
|
17
|
+
- Linux `x64`, `arm64`
|
|
18
|
+
- macOS `x64`, `arm64`
|
|
19
|
+
|
|
20
|
+
## Release contract
|
|
21
|
+
|
|
22
|
+
- npm package version `X.Y.Z` bundles prebuilt `owl9` binaries for all supported platforms
|
|
23
|
+
- those binaries are staged under `vendor/<goos>_<goarch>/owl9`
|
|
24
|
+
- `npm pack` / `npm publish` fail unless `vendor/` contains one non-empty executable bundled binary file for every supported platform
|
|
25
|
+
- GitHub release tag `vX.Y.Z-owl9-cli` publishes matching standalone binaries
|
|
26
|
+
- the tag release workflow requires the npm package to trust `sys9-ai/bricks` + `.github/workflows/owl9-release.yml` as a trusted publisher before the tag is pushed
|
|
27
|
+
- if that package-side trust is repaired after a failed tag release, rerun the same `vX.Y.Z-owl9-cli` workflow run; it reuses the existing GitHub release and still derives the npm publish version from the tag
|
|
28
|
+
- the installed executable name is `owl9`
|
package/bin/owl9
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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) vendor_dir="linux_amd64" ;;
|
|
27
|
+
aarch64|arm64) vendor_dir="linux_arm64" ;;
|
|
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) vendor_dir="darwin_amd64" ;;
|
|
37
|
+
arm64|aarch64) vendor_dir="darwin_arm64" ;;
|
|
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/${vendor_dir}/owl9"
|
|
51
|
+
if [ ! -x "$binary_path" ]; then
|
|
52
|
+
echo "Bundled owl9 binary not found at ${binary_path}" >&2
|
|
53
|
+
exit 1
|
|
54
|
+
fi
|
|
55
|
+
|
|
56
|
+
exec "$binary_path" "$@"
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sys9/owl9-cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Install the owl9 CLI",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/sys9-ai/bricks.git"
|
|
9
|
+
},
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"owl9": "bin/owl9"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"README.md",
|
|
18
|
+
"bin",
|
|
19
|
+
"vendor"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"prepack": "node ./scripts/verify-bundled-binaries.js",
|
|
23
|
+
"test": "node --test"
|
|
24
|
+
},
|
|
25
|
+
"os": [
|
|
26
|
+
"darwin",
|
|
27
|
+
"linux"
|
|
28
|
+
],
|
|
29
|
+
"cpu": [
|
|
30
|
+
"x64",
|
|
31
|
+
"arm64"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|