@sys9/tape9-cli 0.5.0 → 0.6.3-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 +9 -6
- package/package.json +14 -25
- package/vendor/darwin_amd64/tape9 +0 -0
- package/bin/tape9 +0 -56
- package/vendor/darwin_arm64/tape9 +0 -0
- package/vendor/linux_amd64/tape9 +0 -0
- package/vendor/linux_arm64/tape9 +0 -0
package/README.md
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
`@sys9/tape9-cli` installs the `tape9` command.
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The published npm layout mirrors Codex: `@sys9/tape9-cli` is a lightweight Node launcher, and the native `tape9` binary arrives through one platform-specific optional dependency.
|
|
6
|
+
|
|
7
|
+
Each machine downloads only its matching Linux/macOS `x64` or `arm64` binary package.
|
|
6
8
|
|
|
7
9
|
## Install
|
|
8
10
|
|
|
@@ -19,10 +21,11 @@ bun add -g @sys9/tape9-cli
|
|
|
19
21
|
|
|
20
22
|
## Release contract
|
|
21
23
|
|
|
22
|
-
- npm package version `X.Y.Z`
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
24
|
+
- npm package version `X.Y.Z` publishes a lightweight root package plus four platform-specific optional dependency packages
|
|
25
|
+
- the root package keeps the `tape9` launcher under `bin/tape9` and resolves the native binary from `@sys9/tape9-cli-<platform>`
|
|
26
|
+
- each platform package ships exactly one prebuilt binary under `vendor/<goos>_<goarch>/tape9`
|
|
27
|
+
- the source package is only a template; release tarballs must be staged with `python3 ./scripts/stage-npm-packages.py`
|
|
28
|
+
- GitHub release tag `vX.Y.Z-tape9-cli` publishes matching standalone binaries and the staged npm tarballs
|
|
26
29
|
- the tag release workflow requires the npm package to trust `sys9-ai/bricks` + `.github/workflows/tape9-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-tape9-cli` workflow run; it reuses the existing GitHub release and
|
|
30
|
+
- if that package-side trust is repaired after a failed tag release, rerun the same `vX.Y.Z-tape9-cli` workflow run; it reuses the existing GitHub release and skips npm versions that were already published
|
|
28
31
|
- the installed executable name is `tape9`
|
package/package.json
CHANGED
|
@@ -1,33 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sys9/tape9-cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Install the tape9 CLI",
|
|
3
|
+
"version": "0.6.3-darwin-x64",
|
|
4
|
+
"description": "Install the tape9 CLI with platform-native npm packages for Linux and macOS",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
"bin": {
|
|
14
|
-
"tape9": "bin/tape9"
|
|
15
|
-
},
|
|
6
|
+
"os": [
|
|
7
|
+
"darwin"
|
|
8
|
+
],
|
|
9
|
+
"cpu": [
|
|
10
|
+
"x64"
|
|
11
|
+
],
|
|
16
12
|
"files": [
|
|
17
|
-
"README.md",
|
|
18
|
-
"bin",
|
|
19
13
|
"vendor"
|
|
20
14
|
],
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/sys9-ai/bricks.git"
|
|
24
18
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
],
|
|
29
|
-
"cpu": [
|
|
30
|
-
"x64",
|
|
31
|
-
"arm64"
|
|
32
|
-
]
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=16"
|
|
21
|
+
}
|
|
33
22
|
}
|
|
Binary file
|
package/bin/tape9
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) 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}/tape9"
|
|
51
|
-
if [ ! -x "$binary_path" ]; then
|
|
52
|
-
echo "Bundled tape9 binary not found at ${binary_path}" >&2
|
|
53
|
-
exit 1
|
|
54
|
-
fi
|
|
55
|
-
|
|
56
|
-
exec "$binary_path" "$@"
|
|
Binary file
|
package/vendor/linux_amd64/tape9
DELETED
|
Binary file
|
package/vendor/linux_arm64/tape9
DELETED
|
Binary file
|