pumpkinai-config 1.0.13 → 1.0.14

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/claude-api.js CHANGED
@@ -175,8 +175,7 @@ function createClaudeConfig(apiKey) {
175
175
  const settings = {
176
176
  env: {
177
177
  ANTHROPIC_AUTH_TOKEN: apiKey,
178
- ANTHROPIC_BASE_URL: "https://new.aicode.us.com",
179
- ANTHROPIC_SMALL_FAST_MODEL: "claude-3-5-haiku-20241022",
178
+ ANTHROPIC_BASE_URL: "https://new.aicode.us.com"
180
179
  }
181
180
  };
182
181
 
package/claude-setup.js CHANGED
@@ -86,14 +86,14 @@ function installClaude() {
86
86
  log('[安装] 开始安装 @anthropic-ai/claude-code...', 'cyan');
87
87
 
88
88
  if (osType === 'windows') {
89
- command = 'npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
89
+ command = 'npm install -g @anthropic-ai/claude-code@2.0.59 --registry https://registry.npmmirror.com';
90
90
  } else {
91
91
  // 检查是否已经是 root 用户(通过 sudo 运行或直接 root)
92
92
  const isRoot = process.getuid && process.getuid() === 0;
93
93
  if (isRoot) {
94
- command = 'npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
94
+ command = 'npm install -g @anthropic-ai/claude-code@2.0.59 --registry https://registry.npmmirror.com';
95
95
  } else {
96
- command = 'sudo npm install -g @anthropic-ai/claude-code --registry https://registry.npmmirror.com';
96
+ command = 'sudo npm install -g @anthropic-ai/claude-code@2.0.59 --registry https://registry.npmmirror.com';
97
97
  }
98
98
  }
99
99
 
@@ -175,9 +175,10 @@ function createClaudeConfig(apiKey) {
175
175
  const settings = {
176
176
  env: {
177
177
  ANTHROPIC_AUTH_TOKEN: apiKey,
178
- ANTHROPIC_BASE_URL: "https://code.ppchat.vip",
179
- ANTHROPIC_SMALL_FAST_MODEL: "claude-3-5-haiku-20241022"
180
- }
178
+ ANTHROPIC_BASE_URL: "https://code.ppchat.vip"
179
+ },
180
+ autoUpdaterStatus: "disabled",
181
+ autoUpdates: false
181
182
  };
182
183
 
183
184
  fs.writeFileSync(settingsPath, JSON.stringify(settings, null, 2), 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pumpkinai-config",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "PumpkinAI 一键安装配置工具 - 支持 Codex 和 Claude Code",
5
5
  "main": "codex-setup.js",
6
6
  "bin": {