@pollen-robotics/reachy-mini-sdk 1.9.0 → 1.10.0-dev.0.main.828a720
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/dist/lib/reachy-mini.d.ts +20 -0
- package/dist/lib/reachy-mini.d.ts.map +1 -1
- package/dist/lib/reachy-mini.js +93 -0
- package/dist/lib/reachy-mini.js.map +1 -1
- package/host/dist/chunks/{mountHost-DjE5zE9R.js → mountHost-DztGlWwu.js} +21939 -21928
- package/host/dist/chunks/{reachy-mini-CdsdQLIU.js → reachy-mini-DwiuAr8T.js} +89 -22
- package/host/dist/components/ConnectingView.d.ts.map +1 -1
- package/host/dist/components/ErrorView.d.ts.map +1 -1
- package/host/dist/components/LeavingView.d.ts.map +1 -1
- package/host/dist/components/PickerView.d.ts.map +1 -1
- package/host/dist/components/PostOAuthSplash.d.ts.map +1 -1
- package/host/dist/components/TopBar.d.ts.map +1 -1
- package/host/dist/components/WelcomeBackOverlay.d.ts.map +1 -1
- package/host/dist/entry/auto.js +2 -2
- package/host/dist/entry/embed.js +1 -1
- package/host/dist/index.js +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
async function
|
|
1
|
+
var x = Object.defineProperty, F = (r, e, t) => e in r ? x(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, C = (r, e, t) => (F(r, typeof e != "symbol" ? e + "" : e, t), t), $ = "https://huggingface.co";
|
|
2
|
+
async function k(r, e) {
|
|
3
3
|
var t, s;
|
|
4
4
|
const i = new O(r.url, r.status, (t = r.headers.get("X-Request-Id")) != null ? t : void 0);
|
|
5
5
|
i.message = `Api error with status ${i.statusCode}`;
|
|
@@ -13,12 +13,12 @@ async function C(r, e) {
|
|
|
13
13
|
}
|
|
14
14
|
var O = class extends Error {
|
|
15
15
|
constructor(r, e, t, s) {
|
|
16
|
-
super(s),
|
|
16
|
+
super(s), C(this, "statusCode"), C(this, "url"), C(this, "requestId"), C(this, "data"), this.statusCode = e, this.requestId = t, this.url = r;
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
new Promise((r) => {
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function N(r) {
|
|
22
22
|
if (globalThis.Buffer)
|
|
23
23
|
return globalThis.Buffer.from(r).toString("base64");
|
|
24
24
|
{
|
|
@@ -54,13 +54,13 @@ async function M(r) {
|
|
|
54
54
|
}
|
|
55
55
|
if (h.nonce !== a)
|
|
56
56
|
throw new Error("Invalid oauth state in redirected URL");
|
|
57
|
-
const d =
|
|
57
|
+
const d = $, m = `${new URL(d).origin}/.well-known/openid-configuration`, f = await fetch(m, {
|
|
58
58
|
headers: {
|
|
59
59
|
Accept: "application/json"
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
if (!f.ok)
|
|
63
|
-
throw await
|
|
63
|
+
throw await k(f);
|
|
64
64
|
const p = await f.json(), v = await fetch(p.token_endpoint, {
|
|
65
65
|
method: "POST",
|
|
66
66
|
headers: {
|
|
@@ -74,14 +74,14 @@ async function M(r) {
|
|
|
74
74
|
}).toString()
|
|
75
75
|
});
|
|
76
76
|
if (localStorage.removeItem("huggingface.co:oauth:code_verifier"), localStorage.removeItem("huggingface.co:oauth:nonce"), !v.ok)
|
|
77
|
-
throw await
|
|
77
|
+
throw await k(v);
|
|
78
78
|
const g = await v.json(), w = new Date(Date.now() + g.expires_in * 1e3), S = await fetch(p.userinfo_endpoint, {
|
|
79
79
|
headers: {
|
|
80
80
|
Authorization: `Bearer ${g.access_token}`
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
if (!S.ok)
|
|
84
|
-
throw await
|
|
84
|
+
throw await k(S);
|
|
85
85
|
const u = await S.json();
|
|
86
86
|
return {
|
|
87
87
|
accessToken: g.access_token,
|
|
@@ -109,7 +109,7 @@ async function M(r) {
|
|
|
109
109
|
scope: g.scope
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
|
-
async function
|
|
112
|
+
async function H(r) {
|
|
113
113
|
if (typeof window > "u")
|
|
114
114
|
throw new Error("oauthHandleRedirect is only available in the browser");
|
|
115
115
|
const e = new URLSearchParams(window.location.search);
|
|
@@ -121,13 +121,13 @@ async function V(r) {
|
|
|
121
121
|
var e, t;
|
|
122
122
|
if (typeof window > "u")
|
|
123
123
|
throw new Error("oauthLogin is only available in the browser");
|
|
124
|
-
const s = r?.hubUrl ||
|
|
124
|
+
const s = r?.hubUrl || $, i = `${new URL(s).origin}/.well-known/openid-configuration`, o = await fetch(i, {
|
|
125
125
|
headers: {
|
|
126
126
|
Accept: "application/json"
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
if (!o.ok)
|
|
130
|
-
throw await
|
|
130
|
+
throw await k(o);
|
|
131
131
|
const n = await o.json(), a = globalThis.crypto.randomUUID(), c = globalThis.crypto.randomUUID() + globalThis.crypto.randomUUID();
|
|
132
132
|
localStorage.setItem("huggingface.co:oauth:nonce", a), localStorage.setItem("huggingface.co:oauth:code_verifier", c);
|
|
133
133
|
const l = r?.redirectUrl || window.location.href, h = JSON.stringify({
|
|
@@ -137,7 +137,7 @@ async function V(r) {
|
|
|
137
137
|
}), d = (t = (e = window?.huggingface) == null ? void 0 : e.variables) != null ? t : null, m = r?.clientId || d?.OAUTH_CLIENT_ID;
|
|
138
138
|
if (!m)
|
|
139
139
|
throw d ? new Error("Missing clientId, please add hf_oauth: true to the README.md's metadata in your static Space") : new Error("Missing clientId");
|
|
140
|
-
const f =
|
|
140
|
+
const f = N(
|
|
141
141
|
new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(c)))
|
|
142
142
|
).replace(/[+]/g, "-").replace(/[/]/g, "_").replace(/=/g, "");
|
|
143
143
|
return `${n.authorization_endpoint}?${new URLSearchParams({
|
|
@@ -212,14 +212,14 @@ function W(r) {
|
|
|
212
212
|
if (s.startsWith("m=audio") ? t = !0 : s.startsWith("m=") && (t = !1), t && s === "a=sendrecv") return !0;
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
|
-
const y = 12 * 1024,
|
|
215
|
+
const y = 12 * 1024, E = 1 * 1024 * 1024, z = 512 * 1024;
|
|
216
216
|
function J() {
|
|
217
217
|
return typeof CompressionStream < "u";
|
|
218
218
|
}
|
|
219
219
|
function U() {
|
|
220
220
|
return "u" + Math.random().toString(36).slice(2, 11) + Date.now().toString(36);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function A(r) {
|
|
223
223
|
let e = "";
|
|
224
224
|
for (let s = 0; s < r.length; s += 32768)
|
|
225
225
|
e += String.fromCharCode.apply(
|
|
@@ -232,7 +232,7 @@ async function X(r) {
|
|
|
232
232
|
const e = new TextEncoder().encode(r), t = await new Response(
|
|
233
233
|
new Blob([e]).stream().pipeThrough(new CompressionStream("gzip"))
|
|
234
234
|
).arrayBuffer();
|
|
235
|
-
return
|
|
235
|
+
return A(new Uint8Array(t));
|
|
236
236
|
}
|
|
237
237
|
function L(r) {
|
|
238
238
|
const e = Math.round(Number(r) || 0);
|
|
@@ -309,6 +309,13 @@ class K extends EventTarget {
|
|
|
309
309
|
// ─── Log subscribers ─────────────────────────────────────────────────
|
|
310
310
|
_logSubscribers = /* @__PURE__ */ new Set();
|
|
311
311
|
_updateProgressSubscribers = /* @__PURE__ */ new Set();
|
|
312
|
+
// ─── JSON-RPC app control (over the same DataChannel) ────────────────
|
|
313
|
+
// rpcCall() sends {jsonrpc,id,method,params} and awaits the matching
|
|
314
|
+
// response; onNotification() subscribes to one-way events (no id) the
|
|
315
|
+
// robot/app pushes (conversation.phase/turn/transcript, ...).
|
|
316
|
+
_rpcCounter = 0;
|
|
317
|
+
_pendingRpc = /* @__PURE__ */ new Map();
|
|
318
|
+
_rpcListeners = /* @__PURE__ */ new Map();
|
|
312
319
|
// ─── Broadcast waiters (playMove / playUploadedAudio) ────────────────
|
|
313
320
|
_broadcastWaiters = [];
|
|
314
321
|
// ─── Active upload ids for no-arg cancels ────────────────────────────
|
|
@@ -393,7 +400,7 @@ class K extends EventTarget {
|
|
|
393
400
|
async authenticate() {
|
|
394
401
|
try {
|
|
395
402
|
G();
|
|
396
|
-
const e = await
|
|
403
|
+
const e = await H();
|
|
397
404
|
if (e)
|
|
398
405
|
return this._username = e.userInfo.preferred_username || e.userInfo.name || null, this._token = e.accessToken, this._tokenExpires = e.accessTokenExpiresAt, sessionStorage.setItem("hf_token", this._token), sessionStorage.setItem("hf_username", this._username ?? ""), sessionStorage.setItem(
|
|
399
406
|
"hf_token_expires",
|
|
@@ -648,7 +655,7 @@ class K extends EventTarget {
|
|
|
648
655
|
}
|
|
649
656
|
}
|
|
650
657
|
async stopSession() {
|
|
651
|
-
this._versionResolve && (this._versionResolve(null), this._versionResolve = null), this._hardwareIdResolve && (this._hardwareIdResolve(null), this._hardwareIdResolve = null), this._volumeResolve && (this._volumeResolve(null), this._volumeResolve = null), this._micVolumeResolve && (this._micVolumeResolve(null), this._micVolumeResolve = null), this._trackedFaceResolve && (this._trackedFaceResolve(null), this._trackedFaceResolve = null), this._applyAudioConfigResolve && (this._applyAudioConfigResolve(!1), this._applyAudioConfigResolve = null), this._readAudioParameterResolve && (this._readAudioParameterResolve(null), this._readAudioParameterResolve = null), this._logSubscribers.clear(), this._updateProgressSubscribers.clear(), this._rejectPendingMotionCompletions(new Error("Session stopped")), this._clearIceGrace(), this._uninstallNetworkListeners(), this._sessionReject && (this._sessionReject(new Error("Session stopped")), this._sessionResolve = null, this._sessionReject = null), this._stateRefreshInterval && (clearInterval(this._stateRefreshInterval), this._stateRefreshInterval = null), this._latencyMonitorId && (clearInterval(this._latencyMonitorId), this._latencyMonitorId = null), this._sessionId && await this._sendToServer({ type: "endSession", sessionId: this._sessionId }), this._micStream && (this._micStream.getTracks().forEach((t) => t.stop()), this._micStream = null), this._micMuted = !0, this._micSupported = !1, this._pc && (this._pc.close(), this._pc = null), this._dc && (this._dc.close(), this._dc = null), this._sessionId = null, this._iceConnected = !1, this._dcOpen = !1, this._state === "streaming" && (this._state = "connected", this._emit("sessionStopped", { reason: "user" }));
|
|
658
|
+
this._versionResolve && (this._versionResolve(null), this._versionResolve = null), this._hardwareIdResolve && (this._hardwareIdResolve(null), this._hardwareIdResolve = null), this._volumeResolve && (this._volumeResolve(null), this._volumeResolve = null), this._micVolumeResolve && (this._micVolumeResolve(null), this._micVolumeResolve = null), this._trackedFaceResolve && (this._trackedFaceResolve(null), this._trackedFaceResolve = null), this._applyAudioConfigResolve && (this._applyAudioConfigResolve(!1), this._applyAudioConfigResolve = null), this._readAudioParameterResolve && (this._readAudioParameterResolve(null), this._readAudioParameterResolve = null), this._logSubscribers.clear(), this._updateProgressSubscribers.clear(), this._rejectPendingMotionCompletions(new Error("Session stopped")), this._rejectPendingRpc(new Error("Session stopped")), this._clearIceGrace(), this._uninstallNetworkListeners(), this._sessionReject && (this._sessionReject(new Error("Session stopped")), this._sessionResolve = null, this._sessionReject = null), this._stateRefreshInterval && (clearInterval(this._stateRefreshInterval), this._stateRefreshInterval = null), this._latencyMonitorId && (clearInterval(this._latencyMonitorId), this._latencyMonitorId = null), this._sessionId && await this._sendToServer({ type: "endSession", sessionId: this._sessionId }), this._micStream && (this._micStream.getTracks().forEach((t) => t.stop()), this._micStream = null), this._micMuted = !0, this._micSupported = !1, this._pc && (this._pc.close(), this._pc = null), this._dc && (this._dc.close(), this._dc = null), this._sessionId = null, this._iceConnected = !1, this._dcOpen = !1, this._state === "streaming" && (this._state = "connected", this._emit("sessionStopped", { reason: "user" }));
|
|
652
659
|
}
|
|
653
660
|
disconnect() {
|
|
654
661
|
this._sseAbortController && (this._sseAbortController.abort(), this._sseAbortController = null), this._versionResolve && (this._versionResolve(null), this._versionResolve = null), this._hardwareIdResolve && (this._hardwareIdResolve(null), this._hardwareIdResolve = null), this._volumeResolve && (this._volumeResolve(null), this._volumeResolve = null), this._micVolumeResolve && (this._micVolumeResolve(null), this._micVolumeResolve = null), this._trackedFaceResolve && (this._trackedFaceResolve(null), this._trackedFaceResolve = null), this._applyAudioConfigResolve && (this._applyAudioConfigResolve(!1), this._applyAudioConfigResolve = null), this._readAudioParameterResolve && (this._readAudioParameterResolve(null), this._readAudioParameterResolve = null), this._logSubscribers.clear(), this._updateProgressSubscribers.clear(), this._rejectPendingMotionCompletions(new Error("Disconnected")), this._clearIceGrace(), this._uninstallNetworkListeners(), this._sessionReject && (this._sessionReject(new Error("Disconnected")), this._sessionResolve = null, this._sessionReject = null), this._stateRefreshInterval && (clearInterval(this._stateRefreshInterval), this._stateRefreshInterval = null), this._latencyMonitorId && (clearInterval(this._latencyMonitorId), this._latencyMonitorId = null), this._sessionId && this._token && this._sendToServer({ type: "endSession", sessionId: this._sessionId }), this._micStream && (this._micStream.getTracks().forEach((e) => e.stop()), this._micStream = null), this._pc && (this._pc.close(), this._pc = null), this._dc && (this._dc.close(), this._dc = null), this._sessionId = null, this._micMuted = !0, this._micSupported = !1, this._iceConnected = !1, this._dcOpen = !1, this._robots = [], this._state = "disconnected", this._emit("disconnected", { reason: "user" });
|
|
@@ -1148,7 +1155,7 @@ class K extends EventTarget {
|
|
|
1148
1155
|
encoding: v
|
|
1149
1156
|
});
|
|
1150
1157
|
for (let u = 0; u < g; u++) {
|
|
1151
|
-
this._dc.bufferedAmount >
|
|
1158
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1152
1159
|
const _ = u * y;
|
|
1153
1160
|
this._sendCommand({
|
|
1154
1161
|
type: "upload_move_chunk",
|
|
@@ -1158,7 +1165,7 @@ class K extends EventTarget {
|
|
|
1158
1165
|
}), l({ phase: "upload", sent: u + 1, total: g });
|
|
1159
1166
|
}
|
|
1160
1167
|
if (this._sendCommand({ type: "upload_move_finish", upload_id: d }), l({ phase: "uploaded", sent: g, total: g }), t) {
|
|
1161
|
-
const u = new Uint8Array(await t.arrayBuffer()), _ =
|
|
1168
|
+
const u = new Uint8Array(await t.arrayBuffer()), _ = A(u), b = Math.ceil(_.length / y) || 1;
|
|
1162
1169
|
l({
|
|
1163
1170
|
phase: "audio-starting",
|
|
1164
1171
|
sent: 0,
|
|
@@ -1172,7 +1179,7 @@ class K extends EventTarget {
|
|
|
1172
1179
|
description: i
|
|
1173
1180
|
});
|
|
1174
1181
|
for (let I = 0; I < b; I++) {
|
|
1175
|
-
this._dc.bufferedAmount >
|
|
1182
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1176
1183
|
const T = I * y;
|
|
1177
1184
|
this._sendCommand({
|
|
1178
1185
|
type: "upload_audio_chunk",
|
|
@@ -1231,7 +1238,7 @@ class K extends EventTarget {
|
|
|
1231
1238
|
throw new Error("data channel not open");
|
|
1232
1239
|
if (!(e instanceof Blob))
|
|
1233
1240
|
throw new TypeError("uploadAudio: expected a Blob");
|
|
1234
|
-
const i = U(), o = new Uint8Array(await e.arrayBuffer()), n =
|
|
1241
|
+
const i = U(), o = new Uint8Array(await e.arrayBuffer()), n = A(o), a = Math.ceil(n.length / y) || 1;
|
|
1235
1242
|
s({ phase: "audio-starting", sent: 0, total: a, bytes: n.length }), this._sendCommand({
|
|
1236
1243
|
type: "upload_audio_start",
|
|
1237
1244
|
upload_id: i,
|
|
@@ -1240,7 +1247,7 @@ class K extends EventTarget {
|
|
|
1240
1247
|
description: t
|
|
1241
1248
|
});
|
|
1242
1249
|
for (let c = 0; c < a; c++) {
|
|
1243
|
-
this._dc.bufferedAmount >
|
|
1250
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1244
1251
|
const l = c * y;
|
|
1245
1252
|
this._sendCommand({
|
|
1246
1253
|
type: "upload_audio_chunk",
|
|
@@ -1318,6 +1325,62 @@ class K extends EventTarget {
|
|
|
1318
1325
|
_sendCommand(e) {
|
|
1319
1326
|
return !this._dc || this._dc.readyState !== "open" ? !1 : (this._dc.send(JSON.stringify(e)), !0);
|
|
1320
1327
|
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Call a JSON-RPC method on the robot/app over the DataChannel and await
|
|
1330
|
+
* its result. This is the one way to drive an on-robot app (start/stop it
|
|
1331
|
+
* via `apps.*`, or drive a running app via its own namespace, e.g.
|
|
1332
|
+
* `conversation.say`). Rejects on the JSON-RPC error, a closed channel, or
|
|
1333
|
+
* timeout.
|
|
1334
|
+
*/
|
|
1335
|
+
rpcCall(e, t = {}, s = {}) {
|
|
1336
|
+
const i = s.timeoutMs ?? 2e4, o = `rpc-${++this._rpcCounter}`;
|
|
1337
|
+
return this._sendCommand({ jsonrpc: "2.0", id: o, method: e, params: t }) ? new Promise((n, a) => {
|
|
1338
|
+
const c = setTimeout(() => {
|
|
1339
|
+
this._pendingRpc.delete(o), a(new Error(`rpcCall(${e}) timed out after ${i}ms`));
|
|
1340
|
+
}, i);
|
|
1341
|
+
this._pendingRpc.set(o, {
|
|
1342
|
+
resolve: (l) => n(l),
|
|
1343
|
+
reject: a,
|
|
1344
|
+
timer: c
|
|
1345
|
+
});
|
|
1346
|
+
}) : Promise.reject(new Error(`rpcCall(${e}): data channel not open`));
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Subscribe to a JSON-RPC notification (one-way event) pushed by the
|
|
1350
|
+
* robot/app, e.g. `conversation.turn`. Returns an unsubscribe function.
|
|
1351
|
+
*/
|
|
1352
|
+
onNotification(e, t) {
|
|
1353
|
+
let s = this._rpcListeners.get(e);
|
|
1354
|
+
return s || (s = /* @__PURE__ */ new Set(), this._rpcListeners.set(e, s)), s.add(t), () => {
|
|
1355
|
+
this._rpcListeners.get(e)?.delete(t);
|
|
1356
|
+
};
|
|
1357
|
+
}
|
|
1358
|
+
_rejectPendingRpc(e) {
|
|
1359
|
+
for (const t of this._pendingRpc.values())
|
|
1360
|
+
clearTimeout(t.timer), t.reject(e);
|
|
1361
|
+
this._pendingRpc.clear();
|
|
1362
|
+
}
|
|
1363
|
+
_handleRpcMessage(e) {
|
|
1364
|
+
if ("id" in e && e.id != null && ("result" in e || "error" in e)) {
|
|
1365
|
+
const t = this._pendingRpc.get(e.id);
|
|
1366
|
+
if (!t) return;
|
|
1367
|
+
if (this._pendingRpc.delete(e.id), clearTimeout(t.timer), "error" in e && e.error) {
|
|
1368
|
+
const s = e.error, i = new Error(s.message ?? "rpc error");
|
|
1369
|
+
i.reason = s.data?.reason, t.reject(i);
|
|
1370
|
+
} else
|
|
1371
|
+
t.resolve(e.result);
|
|
1372
|
+
return;
|
|
1373
|
+
}
|
|
1374
|
+
if (typeof e.method == "string") {
|
|
1375
|
+
const t = e.params ?? {};
|
|
1376
|
+
for (const s of this._rpcListeners.get(e.method) ?? [])
|
|
1377
|
+
try {
|
|
1378
|
+
s(t);
|
|
1379
|
+
} catch (i) {
|
|
1380
|
+
console.error(`onNotification(${e.method}) threw:`, i);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1321
1384
|
_checkSessionReady() {
|
|
1322
1385
|
this._iceConnected && this._dcOpen && this._sessionResolve && (this._state = "streaming", this.requestState(), this._stateRefreshInterval = setInterval(() => this.requestState(), 500), this._emit("streaming", { sessionId: this._sessionId, robotId: this._selectedRobotId }), this._sessionResolve(), this._sessionResolve = null, this._sessionReject = null);
|
|
1323
1386
|
}
|
|
@@ -1403,6 +1466,10 @@ class K extends EventTarget {
|
|
|
1403
1466
|
}
|
|
1404
1467
|
}
|
|
1405
1468
|
_handleRobotMessage(e) {
|
|
1469
|
+
if (e.jsonrpc === "2.0") {
|
|
1470
|
+
this._handleRpcMessage(e);
|
|
1471
|
+
return;
|
|
1472
|
+
}
|
|
1406
1473
|
if ("version" in e && this._versionResolve) {
|
|
1407
1474
|
this._versionResolve(e.version), this._versionResolve = null;
|
|
1408
1475
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectingView.d.ts","sourceRoot":"","sources":["../../src/components/ConnectingView.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/B;;oCAEgC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAiBD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,OAAO,GACR,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ConnectingView.d.ts","sourceRoot":"","sources":["../../src/components/ConnectingView.tsx"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIzD,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,IAAI,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC/B;;oCAEgC;IAChC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAiBD,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,OAAO,GACR,EAAE,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAmGnC;AAkED,eAAO,MAAM,qBAAqB,qBAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorView.d.ts","sourceRoot":"","sources":["../../src/components/ErrorView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAMjC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,IAAI,IAAI,CAAC;IACjB,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAA8B,EAC9B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,cAAc,GACf,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"ErrorView.d.ts","sourceRoot":"","sources":["../../src/components/ErrorView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAMjC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,IAAI,IAAI,CAAC;IACjB,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAA8B,EAC9B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,cAAc,GACf,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CA+D9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeavingView.d.ts","sourceRoot":"","sources":["../../src/components/LeavingView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKjC,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"LeavingView.d.ts","sourceRoot":"","sources":["../../src/components/LeavingView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKjC,wBAAgB,WAAW,IAAI,GAAG,CAAC,OAAO,CA+CzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickerView.d.ts","sourceRoot":"","sources":["../../src/components/PickerView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,GAAG,EA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,eAAe,GAAG,GAAG,CAAC,OAAO,CAkF/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostOAuthSplash.d.ts","sourceRoot":"","sources":["../../src/components/PostOAuthSplash.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA6BjC,wBAAgB,eAAe,IAAI,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"PostOAuthSplash.d.ts","sourceRoot":"","sources":["../../src/components/PostOAuthSplash.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA6BjC,wBAAgB,eAAe,IAAI,GAAG,CAAC,OAAO,CAuD7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../src/components/TopBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,EAAuB,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAsBtD,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,SAAS,GACT,UAAU,GACV,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB;+CAC2C;IAC3C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B;kDAC8C;IAC9C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;wEACoE;IACpE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;sDAEkD;IACl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AgB,MAAM,CAAC,EACrB,OAAO,EACP,UAAiB,EACjB,QAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAgB,EAChB,iBAAwB,EACxB,sBAA6B,EAC7B,SAAgB,EAChB,SAAS,EACT,YAAY,GACb,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAuJ3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WelcomeBackOverlay.d.ts","sourceRoot":"","sources":["../../src/components/WelcomeBackOverlay.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAsCjC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAM,GACP,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"WelcomeBackOverlay.d.ts","sourceRoot":"","sources":["../../src/components/WelcomeBackOverlay.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAsCjC,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,MAAM,GACP,EAAE,uBAAuB,GAAG,GAAG,CAAC,OAAO,CAwFvC"}
|
package/host/dist/entry/auto.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as i } from "../chunks/reachy-mini-
|
|
2
|
-
import { m as n } from "../chunks/mountHost-
|
|
1
|
+
import { R as i } from "../chunks/reachy-mini-DwiuAr8T.js";
|
|
2
|
+
import { m as n } from "../chunks/mountHost-DztGlWwu.js";
|
|
3
3
|
typeof window < "u" && (window.ReachyMini || (window.ReachyMini = i, window.dispatchEvent(new Event("reachymini:ready"))), window.ReachyMiniHost = { mountHost: n });
|
|
4
4
|
export {
|
|
5
5
|
n as mountHost
|
package/host/dist/entry/embed.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as i } from "../chunks/reachy-mini-
|
|
1
|
+
import { R as i } from "../chunks/reachy-mini-DwiuAr8T.js";
|
|
2
2
|
import { c as n } from "../chunks/index-lMs2sCXG.js";
|
|
3
3
|
typeof window < "u" && (window.ReachyMini || (window.ReachyMini = i, window.dispatchEvent(new Event("reachymini:ready"))), window.ReachyMiniHostEmbed = { connectToHost: n });
|
|
4
4
|
export {
|
package/host/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as o } from "./chunks/reachy-mini-
|
|
2
|
-
import { R as s, m as a } from "./chunks/mountHost-
|
|
1
|
+
import { R as o } from "./chunks/reachy-mini-DwiuAr8T.js";
|
|
2
|
+
import { R as s, m as a } from "./chunks/mountHost-DztGlWwu.js";
|
|
3
3
|
import { c as t } from "./chunks/index-lMs2sCXG.js";
|
|
4
4
|
import { PROTOCOL_VERSION as c, decodeCredsFromHash as m, encodeCredsToHash as w, isProtocolMessage as h } from "./lib/protocol.js";
|
|
5
5
|
typeof window < "u" && !window.ReachyMini && (window.ReachyMini = o, window.dispatchEvent(new Event("reachymini:ready")));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pollen-robotics/reachy-mini-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0-dev.0.main.828a720",
|
|
4
4
|
"description": "Browser SDK for controlling a Reachy Mini robot over WebRTC, plus an optional Hugging Face Spaces host shell (OAuth + robot picker + iframe bridge) exposed via the ./host subpath.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/reachy-mini-sdk.js",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"@emotion/react": "^11.14.0",
|
|
60
60
|
"@emotion/styled": "^11.14.1",
|
|
61
61
|
"@huggingface/hub": "^0.15.2",
|
|
62
|
-
"@mui/icons-material": "^
|
|
63
|
-
"@mui/material": "^
|
|
62
|
+
"@mui/icons-material": "^9.0.0",
|
|
63
|
+
"@mui/material": "^9.0.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0 || ^19.0.0",
|