gearbox-code 0.1.13 → 0.1.14

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/dist/cli.mjs CHANGED
@@ -147353,7 +147353,7 @@ init_permission();
147353
147353
  var jsx_dev_runtime13 = __toESM(require_jsx_dev_runtime(), 1);
147354
147354
  process.env.LANG = process.env.LANG || "en_US.UTF-8";
147355
147355
  process.env.LC_ALL = process.env.LC_ALL || "en_US.UTF-8";
147356
- var VERSION16 = "0.1.13";
147356
+ var VERSION16 = "0.1.14";
147357
147357
  var args = process.argv.slice(2);
147358
147358
  var supportsAnsi = process.env.NO_COLOR !== "1" && process.env.TERM !== "dumb" && (process.stdout.isTTY || process.env.FORCE_COLOR === "1");
147359
147359
  var ansi = (code) => supportsAnsi ? `\x1B[${code}m` : "";
package/install.sh CHANGED
@@ -101,6 +101,10 @@ fi
101
101
  cp "${extract_dir}/package/dist/cli.mjs" "${target_dir}/cli.mjs"
102
102
  chmod 0755 "${target_dir}/cli.mjs"
103
103
 
104
+ # Replace stale symlinks instead of following them. Old Bun-linked installs can
105
+ # leave ~/.bun/bin/gearbox -> .../src/cli.tsx; `cat > symlink` would overwrite
106
+ # the target and keep the broken link in place.
107
+ rm -f "${BIN_DIR}/gearbox"
104
108
  cat > "${BIN_DIR}/gearbox" <<EOF
105
109
  #!/usr/bin/env sh
106
110
  exec node "${target_dir}/cli.mjs" "\$@"
@@ -133,8 +137,10 @@ esac
133
137
  if [[ "${GEARBOX_SKIP_ONBOARD:-}" != "1" ]]; then
134
138
  echo ""
135
139
  echo "Starting setup..."
136
- if [[ -r /dev/tty && -w /dev/tty ]]; then
137
- "${BIN_DIR}/gearbox" onboard < /dev/tty > /dev/tty
140
+ if [[ -t 1 && -e /dev/tty && -r /dev/tty && -w /dev/tty ]]; then
141
+ if ! "${BIN_DIR}/gearbox" onboard < /dev/tty > /dev/tty; then
142
+ echo "Setup did not complete. Run: ${BIN_DIR}/gearbox onboard"
143
+ fi
138
144
  else
139
145
  echo "No interactive terminal detected. Run: ${BIN_DIR}/gearbox onboard"
140
146
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gearbox-code",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "A beautiful multi-provider coding harness for the terminal. (Intelligent model routing lands on top of this soon.)",
5
5
  "type": "module",
6
6
  "license": "MIT",