@simonyea/holysheep-cli 1.6.11 → 1.6.12
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-bridge.js +4 -3
- package/src/tools/openclaw.js +2 -1
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.12** — 修复 OpenClaw Bridge 对 GPT-5.4 的流式响应转换,避免 `holysheep/gpt-5.4` 在 OpenClaw 中报错;同时增强 Dashboard URL 解析,减少安装后浏览器打开黑屏/空白页
|
|
221
222
|
- **v1.6.11** — OpenClaw 新增本地 HolySheep Bridge,统一暴露单一 `holysheep` provider 以支持自由切换 GPT / Claude / MiniMax;同时保留用户所选默认模型,不再强制 GPT-5.4 作为 primary
|
|
222
223
|
- **v1.6.10** — 将可运行的 OpenClaw runtime(含 npx 回退)视为已安装,避免 Windows/Node 环境下重复提示安装;同时修复 Droid CLI 的 GPT `/v1` 接入地址并同步写入 `~/.factory/config.json`
|
|
223
224
|
- **v1.6.9** — 保留 OpenClaw 的 MiniMax 配置,并为 MiniMax 使用独立 provider id,避免与 Claude provider 冲突;在 OpenClaw 2026.3.13 下改为提示精确 `/model` 切换命令,而不是停止配置 MiniMax
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simonyea/holysheep-cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.12",
|
|
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",
|
|
@@ -420,9 +420,10 @@ async function relayOpenAIRequest(requestBody, config, res) {
|
|
|
420
420
|
})
|
|
421
421
|
|
|
422
422
|
const text = await upstream.text()
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
if (
|
|
423
|
+
const parsed = parseOpenAIStreamText(text)
|
|
424
|
+
if (upstream.ok && parsed) {
|
|
425
|
+
if (requestBody.stream) return sendOpenAIStream(res, parsed)
|
|
426
|
+
return sendJson(res, upstream.status, parsed)
|
|
426
427
|
}
|
|
427
428
|
|
|
428
429
|
res.writeHead(upstream.status, {
|
package/src/tools/openclaw.js
CHANGED
|
@@ -461,7 +461,8 @@ function getDashboardUrl(port, preferNpx = false) {
|
|
|
461
461
|
timeout: preferNpx ? 60000 : 20000,
|
|
462
462
|
})
|
|
463
463
|
if (result.status === 0) {
|
|
464
|
-
const
|
|
464
|
+
const output = String(result.stdout || '')
|
|
465
|
+
const match = output.match(/Dashboard URL:\s*(\S+)/) || output.match(/(https?:\/\/\S+)/)
|
|
465
466
|
if (match) return match[1]
|
|
466
467
|
}
|
|
467
468
|
return `http://127.0.0.1:${port}/`
|