zuppaclaude 1.3.10 → 1.3.12

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,10 +87,18 @@ fi
87
87
 
88
88
  ZAI_API_KEY=$(cat "$API_KEY_FILE")
89
89
 
90
- # Export environment and run Claude
90
+ # Export environment for z.ai
91
91
  export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
92
92
  export ANTHROPIC_API_KEY="$ZAI_API_KEY"
93
93
 
94
+ # Check for auth conflict (claude.ai token file)
95
+ CLAUDE_AUTH_FILE="$HOME/.claude/.credentials.json"
96
+ if [ -f "$CLAUDE_AUTH_FILE" ]; then
97
+ echo -e "\\033[0;33m[!]\\033[0m Auth conflict detected (claude.ai login exists)"
98
+ echo -e " Run: \\033[0;36mclaude /logout\\033[0m to fix this"
99
+ echo ""
100
+ fi
101
+
94
102
  echo -e "\\033[0;32m[✓]\\033[0m Using z.ai backend"
95
103
  echo -e "\\033[0;34m[i]\\033[0m Starting Claude Code..."
96
104
  echo ""
@@ -7,7 +7,8 @@ const path = require('path');
7
7
  const { Logger } = require('../utils/logger');
8
8
  const { Platform } = require('../utils/platform');
9
9
 
10
- const CONFIG_URL = 'https://raw.githubusercontent.com/hasankaantan/zuppaclaude/main/assets/CLAUDE.md';
10
+ // Bundled CLAUDE.md path (in npm package)
11
+ const BUNDLED_CONFIG = path.join(__dirname, '../../assets/CLAUDE.md');
11
12
 
12
13
  class ConfigInstaller {
13
14
  constructor() {
@@ -40,26 +41,22 @@ class ConfigInstaller {
40
41
  this.logger.info(`Existing config backed up to: ${backupPath}`);
41
42
  }
42
43
 
43
- // Download CLAUDE.md
44
- this.logger.info('Downloading CLAUDE.md...');
45
- await this.platform.download(CONFIG_URL, this.configPath);
44
+ // Copy bundled CLAUDE.md
45
+ if (fs.existsSync(BUNDLED_CONFIG)) {
46
+ fs.copyFileSync(BUNDLED_CONFIG, this.configPath);
47
+ this.logger.success('CLAUDE.md installed');
48
+ return true;
49
+ }
46
50
 
47
- this.logger.success('CLAUDE.md installed');
51
+ // Fallback if bundled file not found
52
+ this.logger.warning('Bundled config not found, creating fallback...');
53
+ const fallbackConfig = this.getFallbackConfig();
54
+ fs.writeFileSync(this.configPath, fallbackConfig, 'utf8');
55
+ this.logger.success('Fallback CLAUDE.md created');
48
56
  return true;
49
57
  } catch (error) {
50
58
  this.logger.error(`Failed to install config: ${error.message}`);
51
-
52
- // Create a basic fallback config
53
- try {
54
- this.logger.info('Creating fallback configuration...');
55
- const fallbackConfig = this.getFallbackConfig();
56
- fs.writeFileSync(this.configPath, fallbackConfig, 'utf8');
57
- this.logger.success('Fallback CLAUDE.md created');
58
- return true;
59
- } catch (fallbackError) {
60
- this.logger.error(`Failed to create fallback config: ${fallbackError.message}`);
61
- return false;
62
- }
59
+ return false;
63
60
  }
64
61
  }
65
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zuppaclaude",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "Claude Code power-up installer - SuperClaude + Spec Kit + Claude-Z + Claude HUD",
5
5
  "main": "lib/index.js",
6
6
  "bin": {