@simonyea/holysheep-cli 1.7.122 → 1.7.124
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 +1 -1
- package/src/tools/codex.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonyea/holysheep-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.124",
|
|
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",
|
package/src/tools/codex.js
CHANGED
|
@@ -65,7 +65,8 @@ function stripManagedTomlConfig(content) {
|
|
|
65
65
|
|
|
66
66
|
if (!currentSection) {
|
|
67
67
|
if (/^model\s*=\s*"[^"]*"\s*$/.test(trimmed)) continue
|
|
68
|
-
if (/^model_provider\s
|
|
68
|
+
if (/^model_provider\s*=/.test(trimmed)) continue
|
|
69
|
+
if (/^preferred_auth_method\s*=/.test(trimmed)) continue
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
output.push(line)
|
|
@@ -166,10 +167,7 @@ function neutralizeAuthJson() {
|
|
|
166
167
|
|
|
167
168
|
const auth = JSON.parse(fs.readFileSync(AUTH_FILE, 'utf8'))
|
|
168
169
|
|
|
169
|
-
//
|
|
170
|
-
if (auth.auth_mode !== 'chatgpt') return
|
|
171
|
-
|
|
172
|
-
// 切换为 api-key 模式,清除 OAuth tokens
|
|
170
|
+
// 清除所有可能干扰 holysheep provider 的认证信息
|
|
173
171
|
auth.auth_mode = 'api-key'
|
|
174
172
|
auth.OPENAI_API_KEY = null
|
|
175
173
|
delete auth.tokens
|