@quantiya/codevibe-codex-plugin 1.0.16 → 1.0.17
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/hooks/common.sh +24 -0
- package/package.json +1 -1
package/hooks/common.sh
CHANGED
|
@@ -36,6 +36,30 @@ if [ -n "$QUORUM_REVIEWER_SUBPROCESS" ]; then
|
|
|
36
36
|
exit 0
|
|
37
37
|
fi
|
|
38
38
|
|
|
39
|
+
# ─── Unsupported-environment short-circuit ───────────────────────────
|
|
40
|
+
#
|
|
41
|
+
# Codex's hooks (configured via `~/.codex/hooks.json` by the
|
|
42
|
+
# `codevibe-codex` wrapper) are registered at the user level and fire
|
|
43
|
+
# on EVERY `codex` invocation — whether launched via our wrapper OR
|
|
44
|
+
# via the Codex desktop app / plain `codex` CLI. The wrapper is the
|
|
45
|
+
# supported CodeVibe path: it exports `CODEVIBE_CODEX_TMUX_SESSION`
|
|
46
|
+
# and creates the companion port file at
|
|
47
|
+
# `${TMPDIR}/codevibe-codex-${session}.port` before launching `codex`.
|
|
48
|
+
# Direct `codex` invocations do neither.
|
|
49
|
+
#
|
|
50
|
+
# Without this guard, a hook firing in an unwrapped session computes
|
|
51
|
+
# a port-file path with an empty session segment
|
|
52
|
+
# (`/tmp/codevibe-codex-.port`), finds no file, tries to POST, and
|
|
53
|
+
# returns non-zero — Codex's UI then surfaces a noisy "hook failed"
|
|
54
|
+
# status even though nothing actually broke. Customer report on
|
|
55
|
+
# 2026-04-22.
|
|
56
|
+
#
|
|
57
|
+
# The right behavior for an unsupported environment is a silent no-op.
|
|
58
|
+
# `exit 0` propagates a clean hook success to Codex.
|
|
59
|
+
if [ -z "$CODEVIBE_CODEX_TMUX_SESSION" ]; then
|
|
60
|
+
exit 0
|
|
61
|
+
fi
|
|
62
|
+
|
|
39
63
|
CODEVIBE_TMPDIR="${TMPDIR:-/tmp}"
|
|
40
64
|
LOG_FILE="${LOG_FILE:-${CODEVIBE_TMPDIR}/codevibe-codex-hooks.log}"
|
|
41
65
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantiya/codevibe-codex-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
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": {
|