@ynhcj/xiaoyi 2.2.9 → 2.3.0

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/dist/types.d.ts CHANGED
@@ -163,8 +163,8 @@ export interface WebSocketConnectionState {
163
163
  reconnectAttempts: number;
164
164
  maxReconnectAttempts: number;
165
165
  }
166
- export declare const DEFAULT_WS_URL_1 = "ws://localhost:8080/ws";
167
- export declare const DEFAULT_WS_URL_2 = "ws://localhost:8081/ws";
166
+ export declare const DEFAULT_WS_URL_1 = "wss://hag-drcn.op.hicloud.com/openclaw/v1/ws/link";
167
+ export declare const DEFAULT_WS_URL_2 = "wss://116.63.174.231";
168
168
  export interface InternalWebSocketConfig {
169
169
  wsUrl1: string;
170
170
  wsUrl2: string;
package/dist/types.js CHANGED
@@ -4,5 +4,5 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.DEFAULT_WS_URL_2 = exports.DEFAULT_WS_URL_1 = void 0;
6
6
  // Dual server configuration
7
- exports.DEFAULT_WS_URL_1 = "ws://localhost:8080/ws";
8
- exports.DEFAULT_WS_URL_2 = "ws://localhost:8081/ws";
7
+ exports.DEFAULT_WS_URL_1 = "wss://hag-drcn.op.hicloud.com/openclaw/v1/ws/link";
8
+ exports.DEFAULT_WS_URL_2 = "wss://116.63.174.231";
package/dist/websocket.js CHANGED
@@ -106,7 +106,7 @@ class XiaoYiWebSocketManager extends events_1.EventEmitter {
106
106
  agentId: userConfig.agentId,
107
107
  ak: userConfig.ak,
108
108
  sk: userConfig.sk,
109
- enableStreaming: userConfig.enableStreaming,
109
+ enableStreaming: userConfig.enableStreaming ?? true,
110
110
  };
111
111
  }
112
112
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.2.9",
3
+ "version": "2.3.0",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",