@simonyea/holysheep-cli 1.7.71 → 1.7.72

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simonyea/holysheep-cli",
3
- "version": "1.7.71",
3
+ "version": "1.7.72",
4
4
  "description": "Claude Code/Cursor/Cline API relay for China — ¥1=$1, WeChat/Alipay payment, no credit card, no VPN. One command setup for all AI coding tools.",
5
5
  "keywords": [
6
6
  "openai-china",
@@ -60,6 +60,13 @@ async function runClaude(args = []) {
60
60
 
61
61
  ensureClaudeProxyConfig(apiKey)
62
62
 
63
+ // 修复 settings.json 中残留的旧 proxy URL(之前版本的 applyRuntimeSettingsOverride 遗留)
64
+ const settings = claudeCodeTool.readSettings()
65
+ if (settings.env?.ANTHROPIC_BASE_URL?.startsWith('http://127.0.0.1:')) {
66
+ settings.env.ANTHROPIC_BASE_URL = BASE_URL_ANTHROPIC
67
+ claudeCodeTool.writeSettings(settings)
68
+ }
69
+
63
70
  const { server, port, sessionId } = await startProcessProxy({})
64
71
  const proxyUrl = getLocalProxyUrl(port)
65
72
  const runtime = typeof claudeCodeTool.detectClaudeRuntime === 'function'