@jnrs/lingshu-smart 3.1.18 → 3.1.19

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/AGENTS.md CHANGED
@@ -189,7 +189,7 @@ WebSocket 原始消息(envelope + payload)
189
189
 
190
190
  ```typescript
191
191
  interface MessageEnvelope {
192
- id: string // 唯一 ID(雪花算法 Long 型字符串),画布据此去重
192
+ id: string // 唯一 ID(前端生成采用 UUIDv7;画布据此去重)
193
193
  type: EnvelopeType // device_init | device_command | resource_command
194
194
  // | alarm_push | runtime_status_push | scene_reset | command_ack
195
195
  timestamp: string // ISO 8601
@@ -168,7 +168,7 @@ export interface WsProxyCaseConfig extends WsProxyConfig {
168
168
  export declare const DEFAULT_CONFIG_FILE_URL = "public/lingshu-smart/wsProxyConfig.json";
169
169
  /** 设备注册表接口默认地址(注册表模式):走统一 /api 代理前缀,
170
170
  * 开发环境由 Vite `server.proxy['/api']` 转发、生产由 Nginx 的 /api location 转发,无需单独配置 /device 代理规则 */
171
- export declare const DEFAULT_REGISTRY_URL = "/api/device/devices";
171
+ export declare const DEFAULT_REGISTRY_URL = "/api/device";
172
172
  /** 由 fileUrl 推导实际 fetch 路径:去掉开头多余 / 与 public/ 前缀,补全 .json 扩展名,
173
173
  * 并追加时间戳参数以禁用浏览器缓存(保证「重新应用此配置」始终读取最新文件内容) */
174
174
  export declare function resolveConfigFetchPath(fileUrl?: string): string;