@simonyea/holysheep-cli 1.6.3 → 1.6.4
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/README.md +1 -0
- package/package.json +1 -1
- package/src/tools/openclaw.js +13 -16
package/README.md
CHANGED
|
@@ -218,6 +218,7 @@ A: OpenClaw 需要 Node.js 20+,运行 `node --version` 确认版本后重试
|
|
|
218
218
|
|
|
219
219
|
## Changelog
|
|
220
220
|
|
|
221
|
+
- **v1.6.4** — 修复 OpenClaw 的 npx 运行时检测,避免配置后页面仍卡在 Unauthorized / 未连接状态
|
|
221
222
|
- **v1.6.3** — OpenClaw 默认模型改为 GPT-5.4,并继续保留 Claude 模型切换能力
|
|
222
223
|
- **v1.6.2** — 修复 OpenClaw 配置误判与 npx 回退,端口冲突时自动切换空闲端口,并补充 Doctor 诊断
|
|
223
224
|
- **v1.6.0** — 新增 Droid CLI 一键配置,默认写入 GPT-5.4 / Sonnet 4.6 / Opus 4.6 / MiniMax 2.7 Highspeed / Haiku 4.5
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonyea/holysheep-cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
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/openclaw.js
CHANGED
|
@@ -74,34 +74,31 @@ function firstLine(text) {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
function getOpenClawVersion(preferNpx = false) {
|
|
77
|
-
const result = runOpenClaw(['--version'], { preferNpx, timeout: 15000 })
|
|
77
|
+
const result = runOpenClaw(['--version'], { preferNpx, timeout: preferNpx ? 60000 : 15000 })
|
|
78
78
|
if (result.status !== 0) return null
|
|
79
79
|
return firstLine(result.stdout)
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
function detectRuntime() {
|
|
83
83
|
const preferNpx = getPreferredRuntime()
|
|
84
|
-
const
|
|
84
|
+
const preferredRunner = getRunner(preferNpx)
|
|
85
85
|
|
|
86
|
-
if (
|
|
87
|
-
const runner = getRunner(preferNpx)
|
|
86
|
+
if (preferredRunner) {
|
|
88
87
|
return {
|
|
89
88
|
available: true,
|
|
90
|
-
via:
|
|
91
|
-
command:
|
|
92
|
-
version,
|
|
89
|
+
via: preferredRunner.via,
|
|
90
|
+
command: preferredRunner.label,
|
|
91
|
+
version: getOpenClawVersion(preferNpx),
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
version: fallbackVersion,
|
|
104
|
-
}
|
|
95
|
+
const fallbackRunner = getRunner(true)
|
|
96
|
+
if (fallbackRunner) {
|
|
97
|
+
return {
|
|
98
|
+
available: true,
|
|
99
|
+
via: fallbackRunner.via,
|
|
100
|
+
command: fallbackRunner.label,
|
|
101
|
+
version: getOpenClawVersion(true),
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
104
|
|