@anturno/cli 0.2.0-linux-x64 → 0.2.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/bin/anturno ADDED
@@ -0,0 +1,61 @@
1
+ #!/bin/sh
2
+ # The root package's only executable content.
3
+ #
4
+ # POSIX sh rather than Node: this runs on every `anturno` invocation, and
5
+ # starting a second runtime just to resolve a path would sit in front of the
6
+ # first frame of the product.
7
+ #
8
+ # It looks in more than one place because the root package is scoped. npm
9
+ # installs @anturno/cli at node_modules/@anturno/cli, and its optional
10
+ # dependencies land either beside it or hoisted two levels up depending on the
11
+ # installer, so the shim checks both rather than betting on one.
12
+ set -eu
13
+
14
+ case "$(uname -s)" in
15
+ Darwin) os=darwin ;;
16
+ Linux) os=linux ;;
17
+ *)
18
+ echo "anturno: unsupported platform $(uname -s)-$(uname -m). Supported: darwin-arm64, linux-arm64, linux-x64" >&2
19
+ exit 1
20
+ ;;
21
+ esac
22
+
23
+ case "$(uname -m)" in
24
+ arm64|aarch64) cpu=arm64 ;;
25
+ x86_64|amd64) cpu=x64 ;;
26
+ *)
27
+ echo "anturno: unsupported platform ${os}-$(uname -m). Supported: darwin-arm64, linux-arm64, linux-x64" >&2
28
+ exit 1
29
+ ;;
30
+ esac
31
+
32
+ # npm installs the bin as a symlink. Resolve it before walking to the package
33
+ # root, so a global install and a local "bun x" both land in the right place.
34
+ script=$0
35
+ while [ -L "$script" ]; do
36
+ link=$(readlink "$script")
37
+ case "$link" in
38
+ /*) script=$link ;;
39
+ *) script=$(dirname "$script")/$link ;;
40
+ esac
41
+ done
42
+
43
+ package_root=$(CDPATH= cd -- "$(dirname "$script")/.." && pwd)
44
+ platform="${os}-${cpu}"
45
+ relative="anturno-${platform}/vendor/${platform}/bin/anturno"
46
+
47
+ for candidate in \
48
+ "${package_root}/node_modules/${relative}" \
49
+ "${package_root}/../../${relative}" \
50
+ "${package_root}/../${relative}"
51
+ do
52
+ if [ -x "$candidate" ]; then
53
+ exec "$candidate" "$@"
54
+ fi
55
+ done
56
+
57
+ echo "anturno: missing optional dependency anturno-${platform}." >&2
58
+ echo " Reinstall without --omit=optional / --no-optional:" >&2
59
+ echo " npm install -g @anturno/cli" >&2
60
+ echo " bun add -g @anturno/cli" >&2
61
+ exit 1
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "@anturno/cli",
3
- "version": "0.2.0-linux-x64",
4
- "description": "The anturno coding agent, in your terminal. (linux-x64)",
3
+ "version": "0.2.0",
4
+ "description": "The anturno coding agent, in your terminal.",
5
5
  "license": "MIT",
6
- "os": [
7
- "linux"
8
- ],
9
- "cpu": [
10
- "x64"
11
- ],
6
+ "bin": {
7
+ "anturno": "./bin/anturno"
8
+ },
12
9
  "files": [
13
- "vendor/linux-x64/bin"
10
+ "bin/anturno",
11
+ "README.md"
14
12
  ],
13
+ "optionalDependencies": {
14
+ "anturno-darwin-arm64": "npm:@anturno/cli@0.2.0-darwin-arm64",
15
+ "anturno-linux-arm64": "npm:@anturno/cli@0.2.0-linux-arm64",
16
+ "anturno-linux-x64": "npm:@anturno/cli@0.2.0-linux-x64"
17
+ },
15
18
  "publishConfig": {
16
19
  "access": "public"
17
20
  }
Binary file