@quantiya/codevibe 1.0.51 → 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.
Files changed (2) hide show
  1. package/bin/codevibe +15 -4
  2. package/package.json +1 -1
package/bin/codevibe CHANGED
@@ -214,8 +214,12 @@ do_update() {
214
214
  echo -e "${YELLOW}!${NC} claude CLI not found — skipping Claude Code plugin update"
215
215
  echo ""
216
216
  echo -e "${BOLD}Updated versions:${NC}"
217
- show_version
218
- return 0
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
219
223
  fi
220
224
 
221
225
  echo ""
@@ -299,9 +303,16 @@ do_update() {
299
303
 
300
304
  echo ""
301
305
 
302
- # 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.
303
314
  echo -e "${BOLD}Updated versions:${NC}"
304
- show_version
315
+ exec "$0" version
305
316
  }
306
317
 
307
318
  # ─── Command routing ─────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe",
3
- "version": "1.0.51",
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",