@quantiya/codevibe-gemini-plugin 1.0.20 → 1.0.21

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.
@@ -43,6 +43,30 @@ done
43
43
  SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
44
44
  PLUGIN_DIR="$(dirname "$SCRIPT_DIR")"
45
45
 
46
+ # ─── PATH augmentation ───────────────────────────────────────────────
47
+ # When the install one-liner runs in a fresh terminal, Homebrew's
48
+ # installer writes the shellenv eval into ~/.zprofile (and similar)
49
+ # but the user's current shell hasn't sourced it yet. Subsequent
50
+ # codevibe-* runs in that same terminal then fail tmux discovery
51
+ # because /opt/homebrew/bin isn't on PATH. Prepend common locations
52
+ # so the wrapper recovers without forcing the user to open a new
53
+ # terminal. Prepend (not append) is deliberate: the Homebrew binary
54
+ # install.sh just laid down should win over any older system binary
55
+ # (e.g. a stale /usr/bin/node on Linux) at the same name. To preserve
56
+ # the relative ordering of augmented dirs, build a single prefix
57
+ # string and prepend it once — iterating prepend-per-dir would
58
+ # reverse intended order. ${PATH:+:$PATH} keeps an empty starting
59
+ # PATH from producing a trailing colon (which makes cwd searchable).
60
+ _CV_NEW_PATHS=""
61
+ for _CV_DIR in /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin /usr/local/sbin /opt/local/bin /usr/bin /bin; do
62
+ case ":$PATH:" in
63
+ *":$_CV_DIR:"*) ;;
64
+ *) [ -d "$_CV_DIR" ] && _CV_NEW_PATHS="$_CV_NEW_PATHS:$_CV_DIR" ;;
65
+ esac
66
+ done
67
+ [ -n "$_CV_NEW_PATHS" ] && export PATH="${_CV_NEW_PATHS#:}${PATH:+:$PATH}"
68
+ unset _CV_DIR _CV_NEW_PATHS
69
+
46
70
  # ─── Wrapper telemetry (GA4 Measurement Protocol) ─────────────────────
47
71
  # Diagnoses agent CLI failures: pre-flight bailouts, fast-die patterns,
48
72
  # whether SessionStart hook fired, exit code. Background curl, fail
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-gemini-plugin",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Control Gemini CLI from your iPhone and Android — real-time sync, approve file edits, send prompts by voice. Part of CodeVibe.",
5
5
  "main": "dist/server.js",
6
6
  "bin": {