zuppaclaude 1.3.11 → 1.3.13

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.
@@ -87,7 +87,16 @@ fi
87
87
 
88
88
  ZAI_API_KEY=$(cat "$API_KEY_FILE")
89
89
 
90
- # Export environment and run Claude
90
+ # Handle auth conflict - backup and remove claude.ai credentials
91
+ CLAUDE_AUTH_FILE="$HOME/.claude/.credentials.json"
92
+ CLAUDE_AUTH_BACKUP="$HOME/.claude/.credentials.json.bak"
93
+
94
+ if [ -f "$CLAUDE_AUTH_FILE" ]; then
95
+ echo -e "\\033[0;33m[!]\\033[0m Temporarily disabling claude.ai session for z.ai..."
96
+ mv "$CLAUDE_AUTH_FILE" "$CLAUDE_AUTH_BACKUP"
97
+ fi
98
+
99
+ # Export environment for z.ai
91
100
  export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
92
101
  export ANTHROPIC_API_KEY="$ZAI_API_KEY"
93
102
 
@@ -95,7 +104,17 @@ echo -e "\\033[0;32m[✓]\\033[0m Using z.ai backend"
95
104
  echo -e "\\033[0;34m[i]\\033[0m Starting Claude Code..."
96
105
  echo ""
97
106
 
98
- exec claude "$@"
107
+ # Run claude and restore credentials on exit
108
+ claude "$@"
109
+ EXIT_CODE=$?
110
+
111
+ # Restore claude.ai credentials
112
+ if [ -f "$CLAUDE_AUTH_BACKUP" ]; then
113
+ mv "$CLAUDE_AUTH_BACKUP" "$CLAUDE_AUTH_FILE"
114
+ echo -e "\\033[0;32m[✓]\\033[0m claude.ai session restored"
115
+ fi
116
+
117
+ exit $EXIT_CODE
99
118
  `;
100
119
 
101
120
  fs.writeFileSync(this.binPath, script, 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zuppaclaude",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Claude Code power-up installer - SuperClaude + Spec Kit + Claude-Z + Claude HUD",
5
5
  "main": "lib/index.js",
6
6
  "bin": {