@quantiya/codevibe-codex-plugin 1.0.21 → 1.0.23

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