@simonyea/holysheep-cli 1.7.17 → 1.7.18
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.
|
|
3
|
+
"version": "1.7.18",
|
|
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",
|
|
@@ -613,9 +613,8 @@ async function checkGatewayHealth(config) {
|
|
|
613
613
|
|
|
614
614
|
try {
|
|
615
615
|
const response = await fetch(`http://${host}:${gatewayPort}/`, { method: 'GET', timeout })
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
: { ok: false, reason: `gateway_http_${response.status}` }
|
|
616
|
+
// 任何 HTTP 响应都说明 Gateway 进程存活(4xx 可能是正常的路由/auth 行为)
|
|
617
|
+
return { ok: true, reason: `gateway_http_${response.status}` }
|
|
619
618
|
} catch {
|
|
620
619
|
return { ok: false, reason: 'gateway_http_unreachable' }
|
|
621
620
|
}
|