@ioai/lerobot-studio 1.1.0 → 1.2.1
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/CHANGELOG.md +16 -0
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist-lib/{DockviewLayout-DeRL52Yo.js → DockviewLayout-CUu7GYs2.js} +3245 -3221
- package/dist-lib/{LeRobotDataLoader-B8wZijIi.js → LeRobotDataLoader-DXZRK9t2.js} +1885 -1809
- package/dist-lib/assets/parquetImage.worker-DJN4vgFr.js +7 -0
- package/dist-lib/lerobot-studio.css +88 -1
- package/dist-lib/lerobot.es.js +3810 -2563
- package/dist-lib/{react-window-BIZRp3dx.js → react-window-Bqez0RiF.js} +976 -770
- package/dist-lib/workerManager-CQ6DPJcz.js +509 -0
- package/package.json +13 -10
- package/dist-lib/assets/parquetImage.worker-CsyqAWyH.js +0 -7
- package/dist-lib/workerManager-D6ovn2ln.js +0 -270
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
//#region src/core/subtask/types.ts
|
|
2
|
+
var e = ["subtask_index", "metadata.subtask_index"], t = ["metadata.subtask_label", "subtask"], n = "meta/subtasks.parquet", r = [
|
|
3
|
+
"subtask",
|
|
4
|
+
"__index_level_0__",
|
|
5
|
+
"subtasks",
|
|
6
|
+
"name"
|
|
7
|
+
];
|
|
8
|
+
function i(e) {
|
|
9
|
+
return e?.status === "supported" && e.adapterVersion === "v3.0";
|
|
10
|
+
}
|
|
11
|
+
function a(t) {
|
|
12
|
+
return t ? e.find((e) => t[e] != null) ?? null : null;
|
|
13
|
+
}
|
|
14
|
+
function o(e) {
|
|
15
|
+
return e ? t.find((t) => e[t] != null) ?? null : null;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/core/subtask/subtaskPlan.ts
|
|
19
|
+
function s(e) {
|
|
20
|
+
return e == null ? "" : String(e).trim();
|
|
21
|
+
}
|
|
22
|
+
function c(e) {
|
|
23
|
+
if (e == null) return null;
|
|
24
|
+
let t = Number(e);
|
|
25
|
+
return !Number.isSafeInteger(t) || t < 0 ? null : t;
|
|
26
|
+
}
|
|
27
|
+
function l(e) {
|
|
28
|
+
return `Subtask ${e}`;
|
|
29
|
+
}
|
|
30
|
+
function ee(e, t = {}) {
|
|
31
|
+
let n = { ...t };
|
|
32
|
+
for (let t of e) t != null && (n[t] == null || n[t] === "") && (n[t] = l(t));
|
|
33
|
+
return n;
|
|
34
|
+
}
|
|
35
|
+
function te(e) {
|
|
36
|
+
let t = Array.from(new Set(e.map((e) => s(e)).filter((e) => e.length > 0))).sort(), n = {};
|
|
37
|
+
return t.forEach((e, t) => {
|
|
38
|
+
n[t] = e;
|
|
39
|
+
}), n;
|
|
40
|
+
}
|
|
41
|
+
function ne(e, t) {
|
|
42
|
+
let n = [];
|
|
43
|
+
if (t) for (let e of Object.values(t)) {
|
|
44
|
+
let t = s(e);
|
|
45
|
+
t && n.push(t);
|
|
46
|
+
}
|
|
47
|
+
for (let t of e) if (t) for (let e of t) {
|
|
48
|
+
let t = s(e.label);
|
|
49
|
+
t && n.push(t);
|
|
50
|
+
}
|
|
51
|
+
return n;
|
|
52
|
+
}
|
|
53
|
+
function u(e, t) {
|
|
54
|
+
if (t == null) return null;
|
|
55
|
+
let n = e[t];
|
|
56
|
+
return n != null && n !== "" ? n : null;
|
|
57
|
+
}
|
|
58
|
+
function re(e, t) {
|
|
59
|
+
let n = s(t);
|
|
60
|
+
if (n) {
|
|
61
|
+
for (let [t, r] of Object.entries(e)) if (r === n) return Number(t);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function d(e, t) {
|
|
65
|
+
if (!Number.isSafeInteger(t) || t < 0) throw Error(`Invalid episode length ${t}`);
|
|
66
|
+
if (!Number.isSafeInteger(e.startFrame) || !Number.isSafeInteger(e.endFrame)) throw Error("Subtask segment frames must be integers");
|
|
67
|
+
let n = s(e.label);
|
|
68
|
+
if (!n) throw Error("Subtask label is required");
|
|
69
|
+
if (e.startFrame < 0 || e.endFrame < 0) throw Error("Subtask segment frames must be non-negative");
|
|
70
|
+
if (e.startFrame > e.endFrame) throw Error("Subtask segment start must be at or before end");
|
|
71
|
+
if (t === 0 || e.endFrame >= t) throw Error(`Subtask segment ${e.startFrame}-${e.endFrame} is outside episode length ${t}`);
|
|
72
|
+
return {
|
|
73
|
+
startFrame: e.startFrame,
|
|
74
|
+
endFrame: e.endFrame,
|
|
75
|
+
label: n
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function f(e, t) {
|
|
79
|
+
return e.startFrame <= t.endFrame && t.startFrame <= e.endFrame;
|
|
80
|
+
}
|
|
81
|
+
function p(e, t, n) {
|
|
82
|
+
return e.find((e, r) => r !== n && f(e, t));
|
|
83
|
+
}
|
|
84
|
+
function m(e) {
|
|
85
|
+
return [...e].sort((e, t) => e.startFrame - t.startFrame);
|
|
86
|
+
}
|
|
87
|
+
function ie(e, t, n) {
|
|
88
|
+
let r = d(t, n), i = p(e, r);
|
|
89
|
+
if (i) throw Error(`Subtask "${r.label}" overlaps "${i.label}" (${i.startFrame}-${i.endFrame})`);
|
|
90
|
+
return m([...e, r]);
|
|
91
|
+
}
|
|
92
|
+
function h(e, t, n, r) {
|
|
93
|
+
if (!Number.isSafeInteger(t) || t < 0 || t >= e.length) throw Error(`Subtask segment index ${t} is out of range`);
|
|
94
|
+
let i = d(n, r), a = p(e, i, t);
|
|
95
|
+
if (a) throw Error(`Subtask "${i.label}" overlaps "${a.label}" (${a.startFrame}-${a.endFrame})`);
|
|
96
|
+
let o = [...e];
|
|
97
|
+
return o[t] = i, m(o);
|
|
98
|
+
}
|
|
99
|
+
function g(e, t) {
|
|
100
|
+
let n = [], r = null;
|
|
101
|
+
return e.forEach((e, i) => {
|
|
102
|
+
let a = u(t, c(e));
|
|
103
|
+
if (a == null) {
|
|
104
|
+
r &&= (n.push(r), null);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (r && r.label === a && r.endFrame === i - 1) {
|
|
108
|
+
r = {
|
|
109
|
+
...r,
|
|
110
|
+
endFrame: i
|
|
111
|
+
};
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
r && n.push(r), r = {
|
|
115
|
+
startFrame: i,
|
|
116
|
+
endFrame: i,
|
|
117
|
+
label: a
|
|
118
|
+
};
|
|
119
|
+
}), r && n.push(r), n;
|
|
120
|
+
}
|
|
121
|
+
function _(e, t) {
|
|
122
|
+
return Number.isSafeInteger(t) && t > 0 && Number.isSafeInteger(e.startFrame) && Number.isSafeInteger(e.endFrame) && e.startFrame >= 0 && e.endFrame >= e.startFrame && e.endFrame < t;
|
|
123
|
+
}
|
|
124
|
+
function v(e, t) {
|
|
125
|
+
return e.filter((e) => _(e, t));
|
|
126
|
+
}
|
|
127
|
+
function y(e, t) {
|
|
128
|
+
return t <= 0 ? 0 : Math.max(0, Math.min(t - 1, e));
|
|
129
|
+
}
|
|
130
|
+
function b(e, t) {
|
|
131
|
+
if (!Number.isSafeInteger(t) || t <= 0) return [];
|
|
132
|
+
let n = m(v(e, t)), r = [], i = 0;
|
|
133
|
+
return n.forEach((e, t) => {
|
|
134
|
+
e.startFrame > i && r.push({
|
|
135
|
+
kind: "gap",
|
|
136
|
+
startFrame: i,
|
|
137
|
+
endFrame: e.startFrame - 1
|
|
138
|
+
}), r.push({
|
|
139
|
+
kind: "segment",
|
|
140
|
+
index: t,
|
|
141
|
+
startFrame: e.startFrame,
|
|
142
|
+
endFrame: e.endFrame,
|
|
143
|
+
label: e.label
|
|
144
|
+
}), i = e.endFrame + 1;
|
|
145
|
+
}), i < t && r.push({
|
|
146
|
+
kind: "gap",
|
|
147
|
+
startFrame: i,
|
|
148
|
+
endFrame: t - 1
|
|
149
|
+
}), r;
|
|
150
|
+
}
|
|
151
|
+
function x(e, t) {
|
|
152
|
+
let n = b(e, t);
|
|
153
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
|
154
|
+
let t = n[e];
|
|
155
|
+
if (t.kind === "gap") return {
|
|
156
|
+
startFrame: t.startFrame,
|
|
157
|
+
endFrame: t.endFrame
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
function S(e, t, n) {
|
|
163
|
+
if (!Number.isSafeInteger(t) || !Number.isSafeInteger(n) || t < 0 || t >= n || n <= 0) return null;
|
|
164
|
+
let r = m(v(e, n));
|
|
165
|
+
if (r.some((e) => t >= e.startFrame && t <= e.endFrame)) return null;
|
|
166
|
+
let i = 0;
|
|
167
|
+
for (let e of r) if (e.endFrame < t) i = e.endFrame + 1;
|
|
168
|
+
else break;
|
|
169
|
+
return i > t ? null : {
|
|
170
|
+
startFrame: i,
|
|
171
|
+
endFrame: t
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
function C(e, t, n, r, i) {
|
|
175
|
+
let a = m(v(e, i));
|
|
176
|
+
if (!Number.isSafeInteger(t) || t < 0 || t >= a.length) throw Error(`Subtask segment index ${t} is out of range`);
|
|
177
|
+
let o = a[t], s = a.map((e) => ({ ...e }));
|
|
178
|
+
if (n === "end") {
|
|
179
|
+
let e = s[t + 1], n = o.startFrame, a = e ? e.endFrame : i - 1, c = y(Math.max(n, Math.min(a, r)), i);
|
|
180
|
+
s[t] = {
|
|
181
|
+
...o,
|
|
182
|
+
endFrame: c
|
|
183
|
+
}, e && c >= e.startFrame && (s[t + 1] = {
|
|
184
|
+
...e,
|
|
185
|
+
startFrame: Math.min(c + 1, e.endFrame)
|
|
186
|
+
});
|
|
187
|
+
} else {
|
|
188
|
+
let e = s[t - 1], n = o.endFrame, a = e ? e.startFrame : 0, c = y(Math.max(a, Math.min(n, r)), i);
|
|
189
|
+
s[t] = {
|
|
190
|
+
...o,
|
|
191
|
+
startFrame: c
|
|
192
|
+
}, e && c <= e.endFrame && (s[t - 1] = {
|
|
193
|
+
...e,
|
|
194
|
+
endFrame: Math.max(e.startFrame, c - 1)
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
return s.map((e) => d(e, i));
|
|
198
|
+
}
|
|
199
|
+
function w(e, t) {
|
|
200
|
+
if (!Number.isSafeInteger(e) || e < 0) throw Error(`Invalid episode length ${e}`);
|
|
201
|
+
if (e === 0) return {
|
|
202
|
+
labeledFrames: 0,
|
|
203
|
+
totalFrames: 0,
|
|
204
|
+
gaps: [],
|
|
205
|
+
complete: !1
|
|
206
|
+
};
|
|
207
|
+
let n = Array(e).fill(!1);
|
|
208
|
+
for (let r of v(t, e)) for (let e = r.startFrame; e <= r.endFrame; e++) n[e] = !0;
|
|
209
|
+
let r = [], i = null, a = 0;
|
|
210
|
+
for (let t = 0; t < e; t++) n[t] ? (a += 1, i != null && (r.push({
|
|
211
|
+
startFrame: i,
|
|
212
|
+
endFrame: t - 1
|
|
213
|
+
}), i = null)) : i ??= t;
|
|
214
|
+
return i != null && r.push({
|
|
215
|
+
startFrame: i,
|
|
216
|
+
endFrame: e - 1
|
|
217
|
+
}), {
|
|
218
|
+
labeledFrames: a,
|
|
219
|
+
totalFrames: e,
|
|
220
|
+
gaps: r,
|
|
221
|
+
complete: e > 0 && r.length === 0
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function T(e, t) {
|
|
225
|
+
return e.map((e) => {
|
|
226
|
+
let n = s(e);
|
|
227
|
+
return n ? re(t, n) ?? null : null;
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
function E(e) {
|
|
231
|
+
let t = {};
|
|
232
|
+
return e.forEach((e, n) => {
|
|
233
|
+
let r = s(e.label);
|
|
234
|
+
if (!r) return;
|
|
235
|
+
let i = c(e.subtaskIndex) ?? n;
|
|
236
|
+
t[i] = r;
|
|
237
|
+
}), t;
|
|
238
|
+
}
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region node_modules/comlink/dist/esm/comlink.mjs
|
|
241
|
+
var D = Symbol("Comlink.proxy"), O = Symbol("Comlink.endpoint"), k = Symbol("Comlink.releaseProxy"), A = Symbol("Comlink.finalizer"), j = Symbol("Comlink.thrown"), M = (e) => typeof e == "object" && !!e || typeof e == "function", N = /* @__PURE__ */ new Map([["proxy", {
|
|
242
|
+
canHandle: (e) => M(e) && e[D],
|
|
243
|
+
serialize(e) {
|
|
244
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
245
|
+
return P(e, t), [n, [n]];
|
|
246
|
+
},
|
|
247
|
+
deserialize(e) {
|
|
248
|
+
return e.start(), L(e);
|
|
249
|
+
}
|
|
250
|
+
}], ["throw", {
|
|
251
|
+
canHandle: (e) => M(e) && j in e,
|
|
252
|
+
serialize({ value: e }) {
|
|
253
|
+
let t;
|
|
254
|
+
return t = e instanceof Error ? {
|
|
255
|
+
isError: !0,
|
|
256
|
+
value: {
|
|
257
|
+
message: e.message,
|
|
258
|
+
name: e.name,
|
|
259
|
+
stack: e.stack
|
|
260
|
+
}
|
|
261
|
+
} : {
|
|
262
|
+
isError: !1,
|
|
263
|
+
value: e
|
|
264
|
+
}, [t, []];
|
|
265
|
+
},
|
|
266
|
+
deserialize(e) {
|
|
267
|
+
throw e.isError ? Object.assign(Error(e.value.message), e.value) : e.value;
|
|
268
|
+
}
|
|
269
|
+
}]]);
|
|
270
|
+
function ae(e, t) {
|
|
271
|
+
for (let n of e) if (t === n || n === "*" || n instanceof RegExp && n.test(t)) return !0;
|
|
272
|
+
return !1;
|
|
273
|
+
}
|
|
274
|
+
function P(e, t = globalThis, n = ["*"]) {
|
|
275
|
+
t.addEventListener("message", function r(i) {
|
|
276
|
+
if (!i || !i.data) return;
|
|
277
|
+
if (!ae(n, i.origin)) {
|
|
278
|
+
console.warn(`Invalid origin '${i.origin}' for comlink proxy`);
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
let { id: a, type: o, path: s } = Object.assign({ path: [] }, i.data), c = (i.data.argumentList || []).map(Y), l;
|
|
282
|
+
try {
|
|
283
|
+
let t = s.slice(0, -1).reduce((e, t) => e[t], e), n = s.reduce((e, t) => e[t], e);
|
|
284
|
+
switch (o) {
|
|
285
|
+
case "GET":
|
|
286
|
+
l = n;
|
|
287
|
+
break;
|
|
288
|
+
case "SET":
|
|
289
|
+
t[s.slice(-1)[0]] = Y(i.data.value), l = !0;
|
|
290
|
+
break;
|
|
291
|
+
case "APPLY":
|
|
292
|
+
l = n.apply(t, c);
|
|
293
|
+
break;
|
|
294
|
+
case "CONSTRUCT":
|
|
295
|
+
l = se(new n(...c));
|
|
296
|
+
break;
|
|
297
|
+
case "ENDPOINT":
|
|
298
|
+
{
|
|
299
|
+
let { port1: t, port2: n } = new MessageChannel();
|
|
300
|
+
P(e, n), l = oe(t, [t]);
|
|
301
|
+
}
|
|
302
|
+
break;
|
|
303
|
+
case "RELEASE":
|
|
304
|
+
l = void 0;
|
|
305
|
+
break;
|
|
306
|
+
default: return;
|
|
307
|
+
}
|
|
308
|
+
} catch (e) {
|
|
309
|
+
l = {
|
|
310
|
+
value: e,
|
|
311
|
+
[j]: 0
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
Promise.resolve(l).catch((e) => ({
|
|
315
|
+
value: e,
|
|
316
|
+
[j]: 0
|
|
317
|
+
})).then((n) => {
|
|
318
|
+
let [i, s] = J(n);
|
|
319
|
+
t.postMessage(Object.assign(Object.assign({}, i), { id: a }), s), o === "RELEASE" && (t.removeEventListener("message", r), I(t), A in e && typeof e[A] == "function" && e[A]());
|
|
320
|
+
}).catch((e) => {
|
|
321
|
+
let [n, r] = J({
|
|
322
|
+
value: /* @__PURE__ */ TypeError("Unserializable return value"),
|
|
323
|
+
[j]: 0
|
|
324
|
+
});
|
|
325
|
+
t.postMessage(Object.assign(Object.assign({}, n), { id: a }), r);
|
|
326
|
+
});
|
|
327
|
+
}), t.start && t.start();
|
|
328
|
+
}
|
|
329
|
+
function F(e) {
|
|
330
|
+
return e.constructor.name === "MessagePort";
|
|
331
|
+
}
|
|
332
|
+
function I(e) {
|
|
333
|
+
F(e) && e.close();
|
|
334
|
+
}
|
|
335
|
+
function L(e, t) {
|
|
336
|
+
let n = /* @__PURE__ */ new Map();
|
|
337
|
+
return e.addEventListener("message", function(e) {
|
|
338
|
+
let { data: t } = e;
|
|
339
|
+
if (!t || !t.id) return;
|
|
340
|
+
let r = n.get(t.id);
|
|
341
|
+
if (r) try {
|
|
342
|
+
r(t);
|
|
343
|
+
} finally {
|
|
344
|
+
n.delete(t.id);
|
|
345
|
+
}
|
|
346
|
+
}), W(e, n, [], t);
|
|
347
|
+
}
|
|
348
|
+
function R(e) {
|
|
349
|
+
if (e) throw Error("Proxy has been released and is not useable");
|
|
350
|
+
}
|
|
351
|
+
function z(e) {
|
|
352
|
+
return X(e, /* @__PURE__ */ new Map(), { type: "RELEASE" }).then(() => {
|
|
353
|
+
I(e);
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
var B = /* @__PURE__ */ new WeakMap(), V = "FinalizationRegistry" in globalThis && new FinalizationRegistry((e) => {
|
|
357
|
+
let t = (B.get(e) || 0) - 1;
|
|
358
|
+
B.set(e, t), t === 0 && z(e);
|
|
359
|
+
});
|
|
360
|
+
function H(e, t) {
|
|
361
|
+
let n = (B.get(t) || 0) + 1;
|
|
362
|
+
B.set(t, n), V && V.register(e, t, e);
|
|
363
|
+
}
|
|
364
|
+
function U(e) {
|
|
365
|
+
V && V.unregister(e);
|
|
366
|
+
}
|
|
367
|
+
function W(e, t, n = [], r = function() {}) {
|
|
368
|
+
let i = !1, a = new Proxy(r, {
|
|
369
|
+
get(r, o) {
|
|
370
|
+
if (R(i), o === k) return () => {
|
|
371
|
+
U(a), z(e), t.clear(), i = !0;
|
|
372
|
+
};
|
|
373
|
+
if (o === "then") {
|
|
374
|
+
if (n.length === 0) return { then: () => a };
|
|
375
|
+
let r = X(e, t, {
|
|
376
|
+
type: "GET",
|
|
377
|
+
path: n.map((e) => e.toString())
|
|
378
|
+
}).then(Y);
|
|
379
|
+
return r.then.bind(r);
|
|
380
|
+
}
|
|
381
|
+
return W(e, t, [...n, o]);
|
|
382
|
+
},
|
|
383
|
+
set(r, a, o) {
|
|
384
|
+
R(i);
|
|
385
|
+
let [s, c] = J(o);
|
|
386
|
+
return X(e, t, {
|
|
387
|
+
type: "SET",
|
|
388
|
+
path: [...n, a].map((e) => e.toString()),
|
|
389
|
+
value: s
|
|
390
|
+
}, c).then(Y);
|
|
391
|
+
},
|
|
392
|
+
apply(r, a, o) {
|
|
393
|
+
R(i);
|
|
394
|
+
let s = n[n.length - 1];
|
|
395
|
+
if (s === O) return X(e, t, { type: "ENDPOINT" }).then(Y);
|
|
396
|
+
if (s === "bind") return W(e, t, n.slice(0, -1));
|
|
397
|
+
let [c, l] = K(o);
|
|
398
|
+
return X(e, t, {
|
|
399
|
+
type: "APPLY",
|
|
400
|
+
path: n.map((e) => e.toString()),
|
|
401
|
+
argumentList: c
|
|
402
|
+
}, l).then(Y);
|
|
403
|
+
},
|
|
404
|
+
construct(r, a) {
|
|
405
|
+
R(i);
|
|
406
|
+
let [o, s] = K(a);
|
|
407
|
+
return X(e, t, {
|
|
408
|
+
type: "CONSTRUCT",
|
|
409
|
+
path: n.map((e) => e.toString()),
|
|
410
|
+
argumentList: o
|
|
411
|
+
}, s).then(Y);
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
return H(a, e), a;
|
|
415
|
+
}
|
|
416
|
+
function G(e) {
|
|
417
|
+
return Array.prototype.concat.apply([], e);
|
|
418
|
+
}
|
|
419
|
+
function K(e) {
|
|
420
|
+
let t = e.map(J);
|
|
421
|
+
return [t.map((e) => e[0]), G(t.map((e) => e[1]))];
|
|
422
|
+
}
|
|
423
|
+
var q = /* @__PURE__ */ new WeakMap();
|
|
424
|
+
function oe(e, t) {
|
|
425
|
+
return q.set(e, t), e;
|
|
426
|
+
}
|
|
427
|
+
function se(e) {
|
|
428
|
+
return Object.assign(e, { [D]: !0 });
|
|
429
|
+
}
|
|
430
|
+
function J(e) {
|
|
431
|
+
for (let [t, n] of N) if (n.canHandle(e)) {
|
|
432
|
+
let [r, i] = n.serialize(e);
|
|
433
|
+
return [{
|
|
434
|
+
type: "HANDLER",
|
|
435
|
+
name: t,
|
|
436
|
+
value: r
|
|
437
|
+
}, i];
|
|
438
|
+
}
|
|
439
|
+
return [{
|
|
440
|
+
type: "RAW",
|
|
441
|
+
value: e
|
|
442
|
+
}, q.get(e) || []];
|
|
443
|
+
}
|
|
444
|
+
function Y(e) {
|
|
445
|
+
switch (e.type) {
|
|
446
|
+
case "HANDLER": return N.get(e.name).deserialize(e.value);
|
|
447
|
+
case "RAW": return e.value;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
function X(e, t, n, r) {
|
|
451
|
+
return new Promise((i) => {
|
|
452
|
+
let a = ce();
|
|
453
|
+
t.set(a, i), e.start && e.start(), e.postMessage(Object.assign({ id: a }, n), r);
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
function ce() {
|
|
457
|
+
return [
|
|
458
|
+
,
|
|
459
|
+
,
|
|
460
|
+
,
|
|
461
|
+
,
|
|
462
|
+
].fill(0).map(() => Math.floor(Math.random() * (2 ** 53 - 1)).toString(16)).join("-");
|
|
463
|
+
}
|
|
464
|
+
//#endregion
|
|
465
|
+
//#region src/platform/workers/parquet.worker.ts?worker&url
|
|
466
|
+
var le = "" + new URL("assets/parquet.worker-CWkXhGle.js", import.meta.url).href, ue = "" + new URL("assets/parquetImage.worker-DJN4vgFr.js", import.meta.url).href, Z = null, Q = /* @__PURE__ */ new WeakMap();
|
|
467
|
+
async function de() {
|
|
468
|
+
return Z ||= import("./wasmUrl-BBlR-NOh.js").then(({ wasmUrl: e }) => fetch(e)).then((e) => {
|
|
469
|
+
if (!e.ok) throw Error(`Failed to fetch WASM: ${e.status}`);
|
|
470
|
+
return e.arrayBuffer();
|
|
471
|
+
}).catch((e) => {
|
|
472
|
+
throw Z = null, e;
|
|
473
|
+
}), (await Z).slice(0);
|
|
474
|
+
}
|
|
475
|
+
function $(e) {
|
|
476
|
+
de().then((t) => {
|
|
477
|
+
e.postMessage({
|
|
478
|
+
type: "init-wasm",
|
|
479
|
+
wasmBuffer: t
|
|
480
|
+
}, [t]);
|
|
481
|
+
}).catch((t) => {
|
|
482
|
+
e.postMessage({
|
|
483
|
+
type: "init-wasm-error",
|
|
484
|
+
message: String(t)
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
function fe() {
|
|
489
|
+
let e = new Worker(le, { type: "module" });
|
|
490
|
+
$(e);
|
|
491
|
+
let t = L(e);
|
|
492
|
+
return Q.set(t, e), t;
|
|
493
|
+
}
|
|
494
|
+
function pe() {
|
|
495
|
+
let e = new Worker(ue, { type: "module" });
|
|
496
|
+
$(e);
|
|
497
|
+
let t = L(e);
|
|
498
|
+
return Q.set(t, e), {
|
|
499
|
+
remote: t,
|
|
500
|
+
raw: e
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
function me(e) {
|
|
504
|
+
e[k]();
|
|
505
|
+
let t = Q.get(e);
|
|
506
|
+
t && (t.terminate(), Q.delete(e));
|
|
507
|
+
}
|
|
508
|
+
//#endregion
|
|
509
|
+
export { n as C, o as D, a as E, d as S, i as T, g as _, te as a, S as b, p as c, x as d, c as f, C as g, h, b as i, T as l, E as m, fe as n, ne as o, s as p, me as r, w as s, pe as t, ie as u, v, r as w, ee as x, m as y };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ioai/lerobot-studio",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "npm@11.7.0",
|
|
7
7
|
"scripts": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@microsoft/api-extractor": "^7.58.12",
|
|
41
41
|
"@playwright/test": "^1.62.1",
|
|
42
42
|
"@tailwindcss/vite": "^4.3.3",
|
|
43
|
-
"@types/node": "^26.
|
|
43
|
+
"@types/node": "^26.2.0",
|
|
44
44
|
"@types/react": "^19.2.18",
|
|
45
45
|
"@types/react-dom": "^19.2.4",
|
|
46
46
|
"@vitejs/plugin-react": "^6.0.4",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"axe-core": "^4.12.1",
|
|
51
51
|
"eslint": "^10.8.0",
|
|
52
52
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
53
|
-
"eslint-plugin-react-refresh": "^0.5.
|
|
54
|
-
"globals": "^17.
|
|
53
|
+
"eslint-plugin-react-refresh": "^0.5.4",
|
|
54
|
+
"globals": "^17.11.0",
|
|
55
55
|
"lightningcss": "^1.33.0",
|
|
56
56
|
"playwright": "^1.62.1",
|
|
57
57
|
"prettier": "^3.6.2",
|
|
58
58
|
"publint": "^0.3.23",
|
|
59
59
|
"react": "^19.2.8",
|
|
60
60
|
"react-dom": "^19.2.8",
|
|
61
|
-
"shadcn": "^4.
|
|
61
|
+
"shadcn": "^4.18.0",
|
|
62
62
|
"tailwindcss": "^4.3.3",
|
|
63
63
|
"typescript": "6.0.3",
|
|
64
|
-
"typescript-eslint": "^8.
|
|
64
|
+
"typescript-eslint": "^8.67.0",
|
|
65
65
|
"vite": "^8.1.5",
|
|
66
66
|
"vitepress": "2.0.0-alpha.19",
|
|
67
67
|
"vitest": "^4.1.10"
|
|
@@ -115,10 +115,13 @@
|
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|
|
117
117
|
},
|
|
118
|
+
"overrides": {
|
|
119
|
+
"browserslist": "^4.28.8"
|
|
120
|
+
},
|
|
118
121
|
"dependencies": {
|
|
119
122
|
"@base-ui/react": "^1.7.0",
|
|
120
123
|
"@fontsource-variable/geist": "^5.3.0",
|
|
121
|
-
"@zip.js/zip.js": "^2.8.
|
|
124
|
+
"@zip.js/zip.js": "^2.8.51",
|
|
122
125
|
"apache-arrow": "^21.2.0",
|
|
123
126
|
"class-variance-authority": "^0.7.1",
|
|
124
127
|
"clsx": "^2.1.1",
|
|
@@ -126,14 +129,14 @@
|
|
|
126
129
|
"dockview-react": "^7.0.4",
|
|
127
130
|
"fflate": "^0.8.3",
|
|
128
131
|
"framer-motion": "^12.43.0",
|
|
129
|
-
"lucide-react": "^1.
|
|
132
|
+
"lucide-react": "^1.31.0",
|
|
130
133
|
"mediabunny": "^1.52.3",
|
|
131
134
|
"next-themes": "^0.4.6",
|
|
132
135
|
"parquet-wasm": "^0.7.2",
|
|
133
136
|
"radix-ui": "^1.6.7",
|
|
134
|
-
"react-intl": "
|
|
137
|
+
"react-intl": "10.1.23",
|
|
135
138
|
"react-window": "^2.3.0",
|
|
136
|
-
"sonner": "^2.0.
|
|
139
|
+
"sonner": "^2.0.8",
|
|
137
140
|
"tailwind-merge": "^3.6.0",
|
|
138
141
|
"tw-animate-css": "^1.4.0",
|
|
139
142
|
"uplot": "^1.6.32",
|