@quantiya/codevibe 1.0.50 → 1.0.52
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/bin/codevibe +43 -8
- package/package.json +1 -1
package/bin/codevibe
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# codevibe - CodeVibe CLI
|
|
4
4
|
#
|
|
5
5
|
# Manages authentication, updates, and plugin lifecycle.
|
|
6
|
-
# Authentication is shared across all CodeVibe plugins (Claude, Codex, Gemini).
|
|
6
|
+
# Authentication is shared across all CodeVibe plugins (Claude, Codex, Gemini, Antigravity).
|
|
7
7
|
#
|
|
8
8
|
# Usage:
|
|
9
9
|
# codevibe login # Sign in via browser
|
|
@@ -58,6 +58,7 @@ show_help() {
|
|
|
58
58
|
echo " codevibe-claude Start Claude Code with mobile sync"
|
|
59
59
|
echo " codevibe-gemini Start Gemini CLI with mobile sync"
|
|
60
60
|
echo " codevibe-codex Start Codex CLI with mobile sync"
|
|
61
|
+
echo " codevibe-agy Start Antigravity CLI with mobile sync"
|
|
61
62
|
echo ""
|
|
62
63
|
echo -e "${DIM}https://quantiya.ai/codevibe${NC}"
|
|
63
64
|
echo ""
|
|
@@ -84,7 +85,7 @@ show_version() {
|
|
|
84
85
|
fi
|
|
85
86
|
|
|
86
87
|
# Plugin versions
|
|
87
|
-
for plugin in claude gemini codex; do
|
|
88
|
+
for plugin in claude gemini codex antigravity; do
|
|
88
89
|
PKG="$PACKAGE_DIR/node_modules/@quantiya/codevibe-${plugin}-plugin/package.json"
|
|
89
90
|
if [ -f "$PKG" ]; then
|
|
90
91
|
VER=$(node -p "require('$PKG').version" 2>/dev/null || echo "?")
|
|
@@ -92,12 +93,35 @@ show_version() {
|
|
|
92
93
|
fi
|
|
93
94
|
done
|
|
94
95
|
|
|
95
|
-
#
|
|
96
|
+
# Agent CLI versions (only printed for CLIs actually installed)
|
|
97
|
+
local _printed_cli_header=false
|
|
98
|
+
_print_cli_section_header() {
|
|
99
|
+
if [ "$_printed_cli_header" = false ]; then
|
|
100
|
+
echo ""
|
|
101
|
+
_printed_cli_header=true
|
|
102
|
+
fi
|
|
103
|
+
}
|
|
104
|
+
|
|
96
105
|
if command -v claude >/dev/null 2>&1; then
|
|
97
106
|
CLAUDE_VER=$(claude --version 2>/dev/null | head -1 || echo "?")
|
|
98
|
-
|
|
107
|
+
_print_cli_section_header
|
|
99
108
|
echo -e " Claude Code ${GREEN}$CLAUDE_VER${NC}"
|
|
100
109
|
fi
|
|
110
|
+
if command -v gemini >/dev/null 2>&1; then
|
|
111
|
+
GEMINI_VER=$(gemini --version 2>/dev/null | head -1 || echo "?")
|
|
112
|
+
_print_cli_section_header
|
|
113
|
+
echo -e " Gemini CLI ${GREEN}$GEMINI_VER${NC}"
|
|
114
|
+
fi
|
|
115
|
+
if command -v codex >/dev/null 2>&1; then
|
|
116
|
+
CODEX_VER=$(codex --version 2>/dev/null | head -1 || echo "?")
|
|
117
|
+
_print_cli_section_header
|
|
118
|
+
echo -e " Codex CLI ${GREEN}$CODEX_VER${NC}"
|
|
119
|
+
fi
|
|
120
|
+
if command -v agy >/dev/null 2>&1; then
|
|
121
|
+
AGY_VER=$(agy --version 2>/dev/null | head -1 || echo "?")
|
|
122
|
+
_print_cli_section_header
|
|
123
|
+
echo -e " Antigravity CLI ${GREEN}$AGY_VER${NC}"
|
|
124
|
+
fi
|
|
101
125
|
|
|
102
126
|
echo ""
|
|
103
127
|
}
|
|
@@ -190,8 +214,12 @@ do_update() {
|
|
|
190
214
|
echo -e "${YELLOW}!${NC} claude CLI not found — skipping Claude Code plugin update"
|
|
191
215
|
echo ""
|
|
192
216
|
echo -e "${BOLD}Updated versions:${NC}"
|
|
193
|
-
|
|
194
|
-
|
|
217
|
+
# Same in-place-update gotcha as the success path — `exec "$0" version`
|
|
218
|
+
# re-runs the just-installed script bytes instead of the OLD in-memory
|
|
219
|
+
# show_version that was loaded before npm overwrote us. This branch
|
|
220
|
+
# also returns 0, so swapping `show_version + return 0` for `exec`
|
|
221
|
+
# preserves exit semantics.
|
|
222
|
+
exec "$0" version
|
|
195
223
|
fi
|
|
196
224
|
|
|
197
225
|
echo ""
|
|
@@ -275,9 +303,16 @@ do_update() {
|
|
|
275
303
|
|
|
276
304
|
echo ""
|
|
277
305
|
|
|
278
|
-
# Show new versions
|
|
306
|
+
# Show new versions.
|
|
307
|
+
# `exec "$0" version` re-runs the (now-updated-on-disk) script in a fresh
|
|
308
|
+
# bash process, so the post-update output reflects the JUST-INSTALLED
|
|
309
|
+
# version's `show_version`, not the OLD function definitions that this
|
|
310
|
+
# bash process loaded into memory BEFORE `npm install -g` overwrote the
|
|
311
|
+
# script on disk. Without this, an upgrade like 1.0.50 → 1.0.51 displays
|
|
312
|
+
# the old script's versions block (e.g. missing a freshly-added plugin)
|
|
313
|
+
# even though the new bytes are already installed.
|
|
279
314
|
echo -e "${BOLD}Updated versions:${NC}"
|
|
280
|
-
|
|
315
|
+
exec "$0" version
|
|
281
316
|
}
|
|
282
317
|
|
|
283
318
|
# ─── Command routing ─────────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantiya/codevibe",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"description": "CodeVibe — Control Claude Code, Gemini CLI, Codex CLI, and Antigravity CLI from your iPhone and Android. Real-time sync, voice prompts, approve file edits, E2E encrypted.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"codevibe": "./bin/codevibe",
|