@quantiya/codevibe-antigravity-plugin 2.0.3 → 2.0.4

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-agy +24 -1
  2. package/package.json +2 -2
package/bin/codevibe-agy CHANGED
@@ -62,6 +62,14 @@ case "${ENVIRONMENT:-}" in
62
62
  esac
63
63
  CODEVIBE_TMPDIR="${TMPDIR:-/tmp}"
64
64
 
65
+ # ─── Config dir (agent-detection marker) ──────────────────────────────
66
+ # Ensure ~/.codevibe-antigravity exists on EVERY invocation (including the
67
+ # fast `--version` path and normal sessions). The CodeVibe 2.0 companion
68
+ # agent-detection probe marks agy "healthy" only when this dir exists
69
+ # (matching the claude/codex convention where the config dir signals
70
+ # "set up"). Non-fatal — a mkdir failure must never break the wrapper.
71
+ mkdir -p "$HOME/.codevibe-antigravity" 2>/dev/null || true
72
+
65
73
  # Resolve plugin dir via symlink-aware traversal (npm globals symlink
66
74
  # bin/ into /usr/local/bin/).
67
75
  SOURCE="${BASH_SOURCE[0]}"
@@ -137,8 +145,23 @@ cv_failed() {
137
145
  cv_telem "wrapper_failed" "\"reason\":\"$1\",\"lifetime_seconds\":$(( $(date +%s) - _CV_STARTED_AT ))"
138
146
  }
139
147
 
140
- # ─── Auth commands: delegate to shared codevibe-core CLI ───────────────
148
+ # ─── Auth + version commands: short-circuit BEFORE any heavy boot ──────
141
149
  case "$1" in
150
+ version|--version|-v)
151
+ # Fast, guaranteed-non-fatal version probe. Must NOT boot the MCP
152
+ # server, run the tmux pre-flight, or spawn anything heavy — the
153
+ # CodeVibe 2.0 companion agent-detection probe runs `codevibe-agy
154
+ # --version` and only requires exit 0. Print the plugin version;
155
+ # also surface the underlying `agy` version when it's on PATH.
156
+ _CV_VER="$(node -p "require('$PLUGIN_DIR/package.json').version" 2>/dev/null || echo unknown)"
157
+ echo "codevibe-agy $_CV_VER"
158
+ _CV_AGY_BIN="${AGY_PATH:-$(command -v agy 2>/dev/null || true)}"
159
+ if [ -n "$_CV_AGY_BIN" ] && [ -x "$_CV_AGY_BIN" ]; then
160
+ _CV_AGY_RAW="$("$_CV_AGY_BIN" --version 2>/dev/null | head -1)"
161
+ [ -n "$_CV_AGY_RAW" ] && echo "agy $_CV_AGY_RAW"
162
+ fi
163
+ exit 0
164
+ ;;
142
165
  login|logout|status|reset-device)
143
166
  CORE_CLI="$PLUGIN_DIR/node_modules/@quantiya/codevibe-core/bin/codevibe.js"
144
167
  # Also check hoisted location (when installed via @quantiya/codevibe meta-package).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-antigravity-plugin",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "Control Antigravity 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": {
@@ -48,7 +48,7 @@
48
48
  "node": ">=18.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "@quantiya/codevibe-core": "2.0.3",
51
+ "@quantiya/codevibe-core": "2.0.4",
52
52
  "chokidar": "^5.0.0",
53
53
  "dotenv": "^16.6.1",
54
54
  "express": "^5.1.0",