@quantiya/codevibe-claude-plugin 1.0.1 → 1.0.2

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevibe-claude",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Sync Claude Code sessions with iOS mobile app via AWS backend. Control Claude Code from your iPhone with real-time bidirectional synchronization.",
5
5
  "author": {
6
6
  "name": "CodeVibe Team"
@@ -58,6 +58,19 @@ case "$1" in
58
58
  ;;
59
59
  esac
60
60
 
61
+ # Check authentication before launching
62
+ CORE_CLI="$PLUGIN_DIR/node_modules/@quantiya/codevibe-core/bin/codevibe.js"
63
+ if [ -f "$CORE_CLI" ]; then
64
+ AUTH_STATUS=$(node "$CORE_CLI" status 2>/dev/null)
65
+ if echo "$AUTH_STATUS" | grep -q "Not authenticated"; then
66
+ echo ""
67
+ echo "⚠️ CodeVibe: Not authenticated."
68
+ echo " Run 'codevibe-claude login' to sign in first."
69
+ echo ""
70
+ exit 1
71
+ fi
72
+ fi
73
+
61
74
  # Configuration
62
75
  TMUX_SESSION_PREFIX="codevibe-claude"
63
76
  LOG_FILE="${CODEVIBE_TMPDIR}/codevibe-claude-wrapper.log"
@@ -126,11 +126,8 @@ EXIT_CODE=$?
126
126
  if [ $EXIT_CODE -eq 0 ]; then
127
127
  log "INFO" "SessionStart event sent successfully"
128
128
  else
129
- # Don't fail the hook if auth is missing - just warn
130
- # This allows users to run claude without logging in first
131
129
  log "WARN" "Failed to send SessionStart event (exit code: $EXIT_CODE)"
132
130
  log "WARN" "Run 'codevibe-claude login' to enable mobile sync"
133
131
  fi
134
132
 
135
- # Always exit 0 to avoid blocking Claude Code startup
136
133
  exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantiya/codevibe-claude-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Mobile companion for Claude Code - monitor and control your Claude Code sessions from your iPhone with CodeVibe",
5
5
  "main": "dist/server.js",
6
6
  "bin": {