@jnrs/lingshu-smart 2.2.41 → 2.2.43

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.
@@ -92,6 +92,8 @@ export interface WsProxyConfig {
92
92
  * direct 模式:完整 ws/wss 地址(如 ws://host:port/path)
93
93
  * proxy 模式:仅路径(如 ws/monitor?page=ctsMonitor),运行时拼接当前页面协议+主机 */
94
94
  wsUrl?: string;
95
+ /** 是否在连接请求时携带 Token(作为 WebSocket 子协议);默认 false;紧随 wsUrl 之后 */
96
+ carryToken?: boolean;
95
97
  /** 请求模式:direct 直接请求 / proxy 代理请求(仅填 path,通过 vite/nginx 代理);默认 direct */
96
98
  requestMode?: WsProxyRequestMode;
97
99
  /** 是否在组件挂载且 wsUrl 有效时自动连接 WebSocket(默认 true) */
@@ -102,8 +104,6 @@ export interface WsProxyConfig {
102
104
  sourceTypeField?: string;
103
105
  /** 心跳检测间隔(秒):0=关闭;>0=开启,定期发送心跳消息检测连接活性 */
104
106
  heartbeatInterval?: number;
105
- /** 是否在连接请求时携带 Token(作为 WebSocket 子协议);默认 false */
106
- carryToken?: boolean;
107
107
  /** 模型映射表:源业务数据值 → 画布模型 className(如 { '1': 'MachineTool' })
108
108
  * 供字段映射的「模型映射表」特殊处理引用,将源值转换为对应模型的 className */
109
109
  modelMap?: Record<string, string>;