@eyeclaw/eyeclaw 2.4.4 → 2.4.5

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": "@eyeclaw/eyeclaw",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "EyeClaw plugin for OpenClaw - HTTP SSE streaming + WebSocket client",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -201,7 +201,8 @@ export class EyeClawWebSocketClient {
201
201
 
202
202
  try {
203
203
  // 尝试一个简单的 HTTP 请求来检测网络是否可用
204
- const serverUrl = this.config.serverUrl.replace(/^ws/, 'http').replace(/^wss/, 'https')
204
+ // 直接使用配置的 serverUrl,不需要转换
205
+ const serverUrl = this.config.serverUrl
205
206
  const controller = new AbortController()
206
207
  const timeoutId = setTimeout(() => controller.abort(), 3000)
207
208
 
@@ -852,7 +853,8 @@ export class EyeClawWebSocketClient {
852
853
 
853
854
  try {
854
855
  // 尝试 HTTP 健康检查
855
- const serverUrl = this.config.serverUrl.replace(/^ws/, 'http').replace(/^wss/, 'https')
856
+ // 直接使用配置的 serverUrl,不需要转换
857
+ const serverUrl = this.config.serverUrl
856
858
  const healthUrl = `${serverUrl}/api/v1/health`
857
859
 
858
860
  const controller = new AbortController()