@simonyea/holysheep-cli 1.7.132 → 1.7.133
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.133",
|
|
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",
|
|
@@ -47,6 +47,7 @@ function getControlPlaneUrl(config) {
|
|
|
47
47
|
|
|
48
48
|
const leaseCache = new Map()
|
|
49
49
|
const MAX_PROXY_RETRIES = 3
|
|
50
|
+
const ENABLE_TIMING_LOG = process.env.HS_CLAUDE_TIMING_LOG === '1'
|
|
50
51
|
const SLOW_PATH_LOG_MS = Number(process.env.HS_CLAUDE_SLOW_PATH_LOG_MS) || 5000
|
|
51
52
|
|
|
52
53
|
function sanitizeUrl(value) {
|
|
@@ -60,6 +61,7 @@ function sanitizeUrl(value) {
|
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
function logProxyTiming(event, details = {}) {
|
|
64
|
+
if (!ENABLE_TIMING_LOG) return
|
|
63
65
|
const payload = Object.fromEntries(
|
|
64
66
|
Object.entries(details).filter(([, value]) => value !== undefined && value !== null && value !== '')
|
|
65
67
|
)
|