@jnrs/lingshu-smart 2.2.47 → 3.0.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.
Files changed (64) hide show
  1. package/AGENTS.md +281 -348
  2. package/dist/components/debug/DataLogPanel.vue.d.ts +13 -2
  3. package/dist/components/debug/PerformanceStats.vue.d.ts +1 -1
  4. package/dist/components/debug/ScriptRunner/ConfigPanel.vue.d.ts +1 -1
  5. package/dist/components/debug/ScriptRunner/StepsPanel.vue.d.ts +4 -2
  6. package/dist/components/debug/ScriptRunner/index.vue.d.ts +11 -0
  7. package/dist/components/debug/ScriptRunner/script.d.ts +131 -41
  8. package/dist/components/debug/ScriptRunner/scriptFile.d.ts +92 -0
  9. package/dist/components/debug/WsProxy/index.vue.d.ts +10 -8
  10. package/dist/components/debug/WsProxy/proxy.d.ts +114 -53
  11. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +18 -2
  12. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +2 -2
  13. package/dist/components/editor/ControlBar/PersistDialog.vue.d.ts +9 -0
  14. package/dist/components/index.js +8287 -6169
  15. package/dist/components/preview/index.vue.d.ts +6308 -4098
  16. package/dist/controller/AppController.d.ts +65 -3
  17. package/dist/controller/SocketDispatcher.d.ts +59 -0
  18. package/dist/fullscreen-BA3oea8O.js +53 -0
  19. package/dist/index-C6Liz-8o.js +1238 -0
  20. package/dist/index.js +36 -27
  21. package/dist/lingshu-smart/cases.json +5882 -14843
  22. package/dist/lingshu-smart/mockSocket.json +263 -0
  23. package/dist/lingshu-smart/wsProxyConfig.json +327 -725
  24. package/dist/playground/ViewPageDemo.vue.d.ts +13336 -8894
  25. package/dist/stores/index.js +1 -1
  26. package/dist/stores/useAppStore.d.ts +18952 -12321
  27. package/dist/stores/useDataStore.d.ts +19714 -12469
  28. package/dist/stores/useDebugStore.d.ts +11 -2
  29. package/dist/stores/useEditorStore.d.ts +3 -3
  30. package/dist/types/app.types.d.ts +1 -1
  31. package/dist/types/components/config.types.d.ts +16 -0
  32. package/dist/types/components/operating.types.d.ts +22 -13
  33. package/dist/types/enums.d.ts +22 -2
  34. package/dist/types/guards.d.ts +1 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/models/config.types.d.ts +23 -5
  37. package/dist/types/models/operating.types.d.ts +57 -57
  38. package/dist/types/socket.types.d.ts +275 -0
  39. package/dist/ui/abstract/ModelAbs.d.ts +37 -2
  40. package/dist/ui/components/Resource.d.ts +0 -1
  41. package/dist/ui/components/StationSlot.d.ts +8 -2
  42. package/dist/ui/components/StationSlotGroup.d.ts +26 -1
  43. package/dist/ui/models/DoubleJointRobot.d.ts +14 -4
  44. package/dist/ui/models/MachineTool.d.ts +6 -1
  45. package/dist/ui/models/MaterialTrack.d.ts +14 -2
  46. package/dist/ui/models/Pallet.d.ts +20 -5
  47. package/dist/ui/models/ResourceOperationWindow.d.ts +0 -1
  48. package/dist/ui/models/ResourceStore.d.ts +7 -5
  49. package/dist/ui/models/Rgv.d.ts +4 -2
  50. package/dist/ui/models/ShuttleStation.d.ts +14 -2
  51. package/dist/ui/models/SingleJointRobot.d.ts +14 -4
  52. package/dist/ui/utils/resolveStationSlotLayers.d.ts +20 -0
  53. package/dist/ui/utils/resolveTypeStyle.d.ts +13 -0
  54. package/dist/useAppStore-DASwAOBy.js +7223 -0
  55. package/dist/utils/fullscreen.d.ts +9 -0
  56. package/dist/utils/index.d.ts +1 -0
  57. package/dist/vite.d.ts +15 -0
  58. package/dist/vite.js +39 -0
  59. package/package.json +6 -2
  60. package/dist/components/editor/OptionCard/Equipment/stationSlot/StationSlotGroupBoth.vue.d.ts +0 -2
  61. package/dist/guards-Bi8oNtaY.js +0 -35
  62. package/dist/index-Dsgrnpn0.js +0 -1186
  63. package/dist/useAppStore-CevWqcmT.js +0 -6147
  64. /package/dist/components/editor/OptionCard/Equipment/{stationSlot/StationSlotGroup.vue.d.ts → models/ResourceStore.vue.d.ts} +0 -0
@@ -0,0 +1,263 @@
1
+ [
2
+ {
3
+ "caseId": "358611430854885377",
4
+ "caseName": "测试所有设备51d9",
5
+ "steps": [
6
+ {
7
+ "uid": "359363387894812672",
8
+ "deviceType": "",
9
+ "deviceId": "",
10
+ "delay": 1000,
11
+ "enabled": false,
12
+ "params": {
13
+ "operation": "batch_remove",
14
+ "resource_ids": "[\"12\", \"77\", \"9\"]",
15
+ "resource_type": "workpiece"
16
+ },
17
+ "configuredKeys": [
18
+ "operation",
19
+ "resource_ids"
20
+ ],
21
+ "msgType": "resource_command"
22
+ },
23
+ {
24
+ "uid": "358644910330511360",
25
+ "deviceType": "DoubleJointRobot",
26
+ "deviceId": "70158290822131712",
27
+ "delay": 500,
28
+ "enabled": false,
29
+ "params": {
30
+ "light.color": "#00fffb",
31
+ "light.blinking": true,
32
+ "light.rotating": false,
33
+ "position.x": 0.2,
34
+ "position.y": 0,
35
+ "position.j1": 90,
36
+ "position.j2": -50,
37
+ "current_fixture": "workpiece"
38
+ },
39
+ "configuredKeys": [
40
+ "light.color",
41
+ "light.blinking",
42
+ "position.x",
43
+ "current_fixture"
44
+ ],
45
+ "msgType": "device_command"
46
+ },
47
+ {
48
+ "uid": "358645287247446016",
49
+ "deviceType": "__continuous__",
50
+ "deviceId": "",
51
+ "delay": 500,
52
+ "enabled": true,
53
+ "params": {
54
+ "target": {
55
+ "label": "双关节机器人",
56
+ "value": "70158290822131712",
57
+ "className": "DoubleJointRobot",
58
+ "nameplate": "双关节机器人"
59
+ },
60
+ "freq": 24,
61
+ "amplitude": 0.5,
62
+ "period": 6,
63
+ "driveX": false,
64
+ "driveY": false,
65
+ "driveZ": false,
66
+ "driveJ1": true,
67
+ "driveJ2": true,
68
+ "drivePercent": false
69
+ },
70
+ "configuredKeys": [
71
+ "driveX",
72
+ "driveJ1",
73
+ "driveJ2",
74
+ "freq"
75
+ ],
76
+ "msgType": "device_command"
77
+ },
78
+ {
79
+ "uid": "358645265990713344",
80
+ "deviceType": "",
81
+ "deviceId": "",
82
+ "delay": 500,
83
+ "enabled": false,
84
+ "params": {
85
+ "operation": "add",
86
+ "resource_type": "workpiece",
87
+ "resource_name": "P12",
88
+ "resource_id": "12",
89
+ "resource_state": 1,
90
+ "to_type": "DoubleJointRobot",
91
+ "to_id": "70158290822131712"
92
+ },
93
+ "configuredKeys": [
94
+ "operation",
95
+ "resource_type",
96
+ "resource_name",
97
+ "resource_id",
98
+ "resource_state",
99
+ "to_type",
100
+ "to_id",
101
+ "to_device_station",
102
+ "to_device_layer"
103
+ ],
104
+ "msgType": "resource_command"
105
+ },
106
+ {
107
+ "uid": "358645688784945152",
108
+ "deviceType": "",
109
+ "deviceId": "",
110
+ "delay": 1000,
111
+ "enabled": false,
112
+ "params": {
113
+ "operation": "transfer",
114
+ "resource_type": "workpiece",
115
+ "resource_id": "12",
116
+ "resource_state": 2,
117
+ "to_type": "ResourceStore",
118
+ "to_id": "70158290788577280",
119
+ "to_device_station": 9,
120
+ "from_type": "DoubleJointRobot",
121
+ "from_id": "70158290822131712"
122
+ },
123
+ "configuredKeys": [
124
+ "operation",
125
+ "resource_type",
126
+ "resource_id",
127
+ "resource_state",
128
+ "to_type",
129
+ "to_id",
130
+ "to_device_station",
131
+ "to_device_layer",
132
+ "from_type",
133
+ "from_id",
134
+ "from_device_station",
135
+ "from_device_layer"
136
+ ],
137
+ "msgType": "resource_command"
138
+ },
139
+ {
140
+ "uid": "358964687959797760",
141
+ "deviceType": "DoubleJointRobot",
142
+ "deviceId": "70158290822131712",
143
+ "delay": 1000,
144
+ "enabled": false,
145
+ "params": {
146
+ "light.color": "#00ffe5",
147
+ "light.blinking": false,
148
+ "light.rotating": false,
149
+ "position.x": 1,
150
+ "position.y": 0,
151
+ "position.j1": 90,
152
+ "position.j2": 0,
153
+ "current_fixture": "tool"
154
+ },
155
+ "configuredKeys": [
156
+ "light.color"
157
+ ],
158
+ "msgType": "device_command"
159
+ },
160
+ {
161
+ "uid": "358646625343668224",
162
+ "deviceType": "",
163
+ "deviceId": "",
164
+ "delay": 500,
165
+ "enabled": false,
166
+ "params": {
167
+ "operation": "batch_add",
168
+ "resources": "[\n {\n \"resource_id\": \"77\",\n \"resource_type\": \"workpiece\",\n \"resource_name\": \"P77\",\n \"resource_state\": 1,\n \"to\": {\n \"device_type\": \"resource_store\",\n \"device_id\": \"70158290788577280\",\n \"device_station\": 1\n }\n },\n {\n \"resource_id\": \"9\",\n \"resource_type\": \"tool\",\n \"resource_name\": \"9\",\n \"resource_state\": 3,\n \"to\": {\n \"device_type\": \"resource_store\",\n \"device_id\": \"70158290788577280\",\n \"device_station\": 1,\n \"device_layer\": 2\n }\n },\n {\n \"resource_id\": \"55\",\n \"resource_type\": \"tool\",\n \"resource_name\": \"55\",\n \"resource_state\": 1,\n \"to\": {\n \"device_type\": \"double_joint_robot\",\n \"device_id\": \"70158290822131712\",\n \"device_station\": 1\n }\n }\n]"
169
+ },
170
+ "configuredKeys": [
171
+ "operation",
172
+ "resources"
173
+ ],
174
+ "msgType": "resource_command"
175
+ },
176
+ {
177
+ "uid": "360363000684687360",
178
+ "deviceType": "MachineTool",
179
+ "deviceId": "70158290792771584",
180
+ "delay": 500,
181
+ "enabled": false,
182
+ "params": {
183
+ "light.color": "#52b71b",
184
+ "light.blinking": false,
185
+ "light.rotating": true,
186
+ "progress.percent": 0.3,
187
+ "progress.text": "",
188
+ "passage.in": false,
189
+ "passage.out": false,
190
+ "station_layout": "vertical",
191
+ "station_rotation": 180,
192
+ "is_working": false,
193
+ "device_state": 1
194
+ },
195
+ "configuredKeys": [
196
+ "station_rotation",
197
+ "light.color",
198
+ "light.rotating",
199
+ "progress.percent",
200
+ "station_layout"
201
+ ],
202
+ "msgType": "device_command"
203
+ },
204
+ {
205
+ "uid": "358646324641431552",
206
+ "deviceType": "",
207
+ "deviceId": "",
208
+ "delay": 1000,
209
+ "enabled": false,
210
+ "params": {
211
+ "operation": "batch_remove",
212
+ "resource_ids": "[\"12\", \"77\", \"9\",\"66\"]",
213
+ "resource_type": "workpiece"
214
+ },
215
+ "configuredKeys": [
216
+ "operation",
217
+ "resource_ids",
218
+ "resource_type"
219
+ ],
220
+ "msgType": "resource_command"
221
+ },
222
+ {
223
+ "uid": "360414024497684480",
224
+ "deviceType": "MachineTool",
225
+ "deviceId": "70158290792771584",
226
+ "delay": 500,
227
+ "enabled": false,
228
+ "params": {
229
+ "light.color": "#ff0d0d",
230
+ "light.blinking": true,
231
+ "light.rotating": false,
232
+ "progress.percent": 1,
233
+ "progress.text": "",
234
+ "passage.in": true,
235
+ "passage.out": false,
236
+ "station_rotation": 0,
237
+ "is_working": false,
238
+ "device_state": 1
239
+ },
240
+ "configuredKeys": [
241
+ "station_rotation",
242
+ "progress.percent",
243
+ "light.color",
244
+ "light.blinking",
245
+ "passage.in"
246
+ ],
247
+ "msgType": "device_command"
248
+ },
249
+ {
250
+ "uid": "360811416107700224",
251
+ "deviceType": "",
252
+ "deviceId": "",
253
+ "delay": 500,
254
+ "enabled": true,
255
+ "params": {},
256
+ "configuredKeys": [],
257
+ "msgType": "runtime_status_push",
258
+ "customData": "{\n \"envelope\": {\n \"type\": \"runtime_status_push\"\n },\n \"payload\": {\n \"running\": false,\n \"mode\": \"auto\",\n \"device_stats\": {\n \"total\": 0,\n \"online\": 0,\n \"alarm\": 0,\n \"idle\": 0\n },\n \"resource_stats\": {\n \"workpiece\": 0,\n \"tool\": 0,\n \"auxiliary\": 0\n },\n \"throughput_today\": 0,\n \"oee\": 0,\n \"update_time\": 0\n }\n}"
259
+ }
260
+ ],
261
+ "looping": false
262
+ }
263
+ ]