@quantiya/codevibe-codex-plugin 1.0.20 → 1.0.22

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.
@@ -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
@@ -8,3 +8,7 @@ INPUT=$(read_json_input)
8
8
  log "DEBUG" "Payload: $INPUT"
9
9
 
10
10
  send_to_server "event" "$INPUT"
11
+
12
+ # Hooks are best-effort telemetry. Never propagate send_to_server failures to
13
+ # Codex — a missing/unreachable daemon must not surface as a hook error.
14
+ exit 0
@@ -8,3 +8,9 @@ INPUT=$(read_json_input)
8
8
  log "DEBUG" "Payload: $INPUT"
9
9
 
10
10
  send_to_server "event" "$INPUT"
11
+
12
+ # Hooks are best-effort telemetry. Never propagate send_to_server failures to
13
+ # Codex. PreToolUse is especially load-bearing — a non-zero exit here would
14
+ # block the tool call itself, so a missing/unreachable daemon must not gate
15
+ # Codex execution.
16
+ exit 0
@@ -8,3 +8,7 @@ INPUT=$(read_json_input)
8
8
  log "DEBUG" "Payload: $INPUT"
9
9
 
10
10
  send_to_server "event" "$INPUT"
11
+
12
+ # Hooks are best-effort telemetry. Never propagate send_to_server failures to
13
+ # Codex — a missing/unreachable daemon must not surface as a hook error.
14
+ exit 0
package/hooks/stop.sh CHANGED
@@ -8,3 +8,7 @@ INPUT=$(read_json_input)
8
8
  log "DEBUG" "Payload: $INPUT"
9
9
 
10
10
  send_to_server "event" "$INPUT"
11
+
12
+ # Hooks are best-effort telemetry. Never propagate send_to_server failures to
13
+ # Codex — a missing/unreachable daemon must not surface as a hook error.
14
+ exit 0
@@ -8,3 +8,7 @@ INPUT=$(read_json_input)
8
8
  log "DEBUG" "Payload: $INPUT"
9
9
 
10
10
  send_to_server "event" "$INPUT"
11
+
12
+ # Hooks are best-effort telemetry. Never propagate send_to_server failures to
13
+ # Codex — a missing/unreachable daemon must not block prompt submission.
14
+ exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-codex-plugin",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
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": {