@jnrs/lingshu-smart 3.1.17 → 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
@@ -144,7 +144,7 @@ onMounted(() => {
144
144
  | `feedSocketMessage` | `(msg: unknown) => void` | **推荐**。下发一条标准信封协议消息(`envelope + payload`),经 `SocketDispatcher` 自动分发驱动画布 |
145
145
  | `setSocketHandlers` | `(handlers: { onAck?: (ack) => void; onRaw?: (raw) => void }) => void` | 订阅回执 `command_ack` 与透传(`alarm_push` / `runtime_status_push`)回调 |
146
146
  | `operating` | `(data: ILayerOperating) => void` | 旧链路内部 `operating` 引擎,仅 WsProxy 等内部组件可选使用 |
147
- | `resetModels` | `() => void` | 一键复位画布(所有模型按初始配置重建,含资源清空) |
147
+ | `resetModels` | `(silent?: boolean) => void` | 一键复位画布(所有模型按初始配置重建,含资源清空);`silent` 为 `true` 时不弹复位结果提示 |
148
148
 
149
149
  **Props:**
150
150
 
@@ -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
@@ -495,7 +495,7 @@ type ILayerOperating =
495
495
  | `x` | `number` | 位移(像素);绑定轨道时按沿轨距离定位(≤1 比例 / >1 沿轨像素距离) |
496
496
  | `y` | `number` | 垂直位移(像素) |
497
497
  | `j1` | `number` | 一级关节角度(度) |
498
- | `currentFixture` | `EnumResourceType` | 当前夹具:`Pallet` / `Tool` |
498
+ | `currentFixture` | `EnumResourceType` | 当前夹具:`Pallet` / `Tool`;图层「自动切换夹具」开启时(默认)由被放置资源类型驱动,忽略该字段 |
499
499
  | `resource` | `IResourceOperating` | 托盘/刀具工位槽 |
500
500
 
501
501
  #### IDoubleJointRobotOperating
@@ -507,7 +507,7 @@ type ILayerOperating =
507
507
  | `y` | `number` | 垂直位移(像素) |
508
508
  | `j1` | `number` | 一级关节角度(度) |
509
509
  | `j2` | `number` | 二级关节角度(度) |
510
- | `currentFixture` | `EnumResourceType` | 当前夹具类型 |
510
+ | `currentFixture` | `EnumResourceType` | 当前夹具类型;图层「自动切换夹具」开启时(默认)由被放置资源类型驱动,忽略该字段 |
511
511
  | `resource` | `IResourceOperating` | 托盘/刀具工位槽 |
512
512
 
513
513
  #### IRGVOperating
@@ -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;