pumpkinai-config 1.0.12 → 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.
Files changed (2) hide show
  1. package/claude-setup.js +6 -4
  2. package/package.json +1 -1
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
 
@@ -176,7 +176,9 @@ function createClaudeConfig(apiKey) {
176
176
  env: {
177
177
  ANTHROPIC_AUTH_TOKEN: apiKey,
178
178
  ANTHROPIC_BASE_URL: "https://code.ppchat.vip"
179
- }
179
+ },
180
+ autoUpdaterStatus: "disabled",
181
+ autoUpdates: false
180
182
  };
181
183
 
182
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.12",
3
+ "version": "1.0.14",
4
4
  "description": "PumpkinAI 一键安装配置工具 - 支持 Codex 和 Claude Code",
5
5
  "main": "codex-setup.js",
6
6
  "bin": {