@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 +1 -1
- package/dist/components/debug/WsProxy/proxy.d.ts +1 -1
- package/dist/components/index.js +5313 -5286
- package/dist/{fullscreen-DhhBmMbU.js → fullscreen-hS6QkG2j.js} +1 -1
- package/dist/index-ClOx1u3s.js +1299 -0
- package/dist/index.js +21 -20
- package/dist/lingshu-smart/cases.json +40 -40
- package/dist/lingshu-smart/mockSocket.json +26 -26
- package/dist/lingshu-smart/wsProxyConfig.json +13 -13
- package/dist/stores/index.js +1 -1
- package/dist/{useAppStore-BT6lU9eW.js → useAppStore-DY9e4SKw.js} +815 -833
- package/dist/utils/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index-CQbsL_m9.js +0 -1260
package/AGENTS.md
CHANGED
|
@@ -189,7 +189,7 @@ WebSocket 原始消息(envelope + payload)
|
|
|
189
189
|
|
|
190
190
|
```typescript
|
|
191
191
|
interface MessageEnvelope {
|
|
192
|
-
id: string // 唯一 ID
|
|
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
|
|
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;
|