@pollen-robotics/reachy-mini-sdk 1.10.0-dev.0.main.b50d97e → 1.10.0-dev.0.main.fd9e867
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 +38 -0
- package/dist/lib/reachy-mini.d.ts.map +1 -1
- package/dist/lib/reachy-mini.js +165 -1
- 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-Bh4vCW5y.js} +188 -86
- 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,7 +1,7 @@
|
|
|
1
|
-
var $ = Object.defineProperty,
|
|
1
|
+
var $ = Object.defineProperty, O = (r, e, t) => e in r ? $(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, k = (r, e, t) => (O(r, typeof e != "symbol" ? e + "" : e, t), t), H = "https://huggingface.co";
|
|
2
2
|
async function C(r, e) {
|
|
3
3
|
var t, s;
|
|
4
|
-
const i = new
|
|
4
|
+
const i = new x(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}`;
|
|
6
6
|
const o = [`URL: ${i.url}`, i.requestId ? `Request ID: ${i.requestId}` : void 0].filter(Boolean).join(". ");
|
|
7
7
|
if ((s = r.headers.get("Content-Type")) != null && s.startsWith("application/json")) {
|
|
@@ -11,14 +11,14 @@ async function C(r, e) {
|
|
|
11
11
|
i.data = { message: await r.text() };
|
|
12
12
|
throw i.message += `. ${o}`, i;
|
|
13
13
|
}
|
|
14
|
-
var
|
|
14
|
+
var x = class extends Error {
|
|
15
15
|
constructor(r, e, t, s) {
|
|
16
16
|
super(s), k(this, "statusCode"), k(this, "url"), k(this, "requestId"), k(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 F(r) {
|
|
22
22
|
if (globalThis.Buffer)
|
|
23
23
|
return globalThis.Buffer.from(r).toString("base64");
|
|
24
24
|
{
|
|
@@ -40,28 +40,28 @@ async function M(r) {
|
|
|
40
40
|
throw new Error("Missing oauth code from query parameters in redirected URL");
|
|
41
41
|
if (!a)
|
|
42
42
|
throw new Error("Missing oauth nonce from localStorage");
|
|
43
|
-
const
|
|
44
|
-
if (!c)
|
|
45
|
-
throw new Error("Missing oauth code_verifier from localStorage");
|
|
46
|
-
const l = s.get("state");
|
|
43
|
+
const l = localStorage.getItem("huggingface.co:oauth:code_verifier");
|
|
47
44
|
if (!l)
|
|
45
|
+
throw new Error("Missing oauth code_verifier from localStorage");
|
|
46
|
+
const c = s.get("state");
|
|
47
|
+
if (!c)
|
|
48
48
|
throw new Error("Missing oauth state from query parameters in redirected URL");
|
|
49
49
|
let h;
|
|
50
50
|
try {
|
|
51
|
-
h = JSON.parse(
|
|
51
|
+
h = JSON.parse(c);
|
|
52
52
|
} catch {
|
|
53
|
-
throw new Error("Invalid oauth state in redirected URL, unable to parse JSON: " +
|
|
53
|
+
throw new Error("Invalid oauth state in redirected URL, unable to parse JSON: " + c);
|
|
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 = H, 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
63
|
throw await C(f);
|
|
64
|
-
const p = await f.json(),
|
|
64
|
+
const p = await f.json(), y = await fetch(p.token_endpoint, {
|
|
65
65
|
method: "POST",
|
|
66
66
|
headers: {
|
|
67
67
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
@@ -70,12 +70,12 @@ async function M(r) {
|
|
|
70
70
|
grant_type: "authorization_code",
|
|
71
71
|
code: n,
|
|
72
72
|
redirect_uri: h.redirectUri,
|
|
73
|
-
code_verifier:
|
|
73
|
+
code_verifier: l
|
|
74
74
|
}).toString()
|
|
75
75
|
});
|
|
76
|
-
if (localStorage.removeItem("huggingface.co:oauth:code_verifier"), localStorage.removeItem("huggingface.co:oauth:nonce"), !
|
|
77
|
-
throw await C(
|
|
78
|
-
const g = await
|
|
76
|
+
if (localStorage.removeItem("huggingface.co:oauth:code_verifier"), localStorage.removeItem("huggingface.co:oauth:nonce"), !y.ok)
|
|
77
|
+
throw await C(y);
|
|
78
|
+
const g = await y.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
|
}
|
|
@@ -121,30 +121,30 @@ 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 || H, 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
130
|
throw await C(o);
|
|
131
|
-
const n = await o.json(), a = globalThis.crypto.randomUUID(),
|
|
132
|
-
localStorage.setItem("huggingface.co:oauth:nonce", a), localStorage.setItem("huggingface.co:oauth:code_verifier",
|
|
133
|
-
const
|
|
131
|
+
const n = await o.json(), a = globalThis.crypto.randomUUID(), l = globalThis.crypto.randomUUID() + globalThis.crypto.randomUUID();
|
|
132
|
+
localStorage.setItem("huggingface.co:oauth:nonce", a), localStorage.setItem("huggingface.co:oauth:code_verifier", l);
|
|
133
|
+
const c = r?.redirectUrl || window.location.href, h = JSON.stringify({
|
|
134
134
|
nonce: a,
|
|
135
|
-
redirectUri:
|
|
135
|
+
redirectUri: c,
|
|
136
136
|
state: r?.state
|
|
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 =
|
|
141
|
-
new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(
|
|
140
|
+
const f = F(
|
|
141
|
+
new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(l)))
|
|
142
142
|
).replace(/[+]/g, "-").replace(/[/]/g, "_").replace(/=/g, "");
|
|
143
143
|
return `${n.authorization_endpoint}?${new URLSearchParams({
|
|
144
144
|
client_id: m,
|
|
145
145
|
scope: r?.scopes || d?.OAUTH_SCOPES || "openid profile",
|
|
146
146
|
response_type: "code",
|
|
147
|
-
redirect_uri:
|
|
147
|
+
redirect_uri: c,
|
|
148
148
|
state: h,
|
|
149
149
|
code_challenge: f,
|
|
150
150
|
code_challenge_method: "S256"
|
|
@@ -154,11 +154,11 @@ function R(r) {
|
|
|
154
154
|
return r * Math.PI / 180;
|
|
155
155
|
}
|
|
156
156
|
function B(r, e, t) {
|
|
157
|
-
const s = R(r), i = R(e), o = R(t), n = Math.cos(o), a = Math.sin(o),
|
|
157
|
+
const s = R(r), i = R(e), o = R(t), n = Math.cos(o), a = Math.sin(o), l = Math.cos(i), c = Math.sin(i), h = Math.cos(s), d = Math.sin(s);
|
|
158
158
|
return [
|
|
159
|
-
[n *
|
|
160
|
-
[a *
|
|
161
|
-
[-
|
|
159
|
+
[n * l, n * c * d - a * h, n * c * h + a * d, 0],
|
|
160
|
+
[a * l, a * c * d + n * h, a * c * h - n * d, 0],
|
|
161
|
+
[-c, l * d, l * h, 0],
|
|
162
162
|
[0, 0, 0, 1]
|
|
163
163
|
];
|
|
164
164
|
}
|
|
@@ -176,8 +176,8 @@ function G() {
|
|
|
176
176
|
const s = e.get("hf_username") || "user", i = e.get("hf_token_expires"), o = i && !Number.isNaN(new Date(i).getTime()) ? i : new Date(Date.now() + 365 * 24 * 60 * 60 * 1e3).toISOString();
|
|
177
177
|
try {
|
|
178
178
|
sessionStorage.setItem("hf_token", t), sessionStorage.setItem("hf_username", s), sessionStorage.setItem("hf_token_expires", o);
|
|
179
|
-
} catch (
|
|
180
|
-
console.warn("[reachy-mini] could not persist pre-seeded HF credentials:",
|
|
179
|
+
} catch (l) {
|
|
180
|
+
console.warn("[reachy-mini] could not persist pre-seeded HF credentials:", l);
|
|
181
181
|
}
|
|
182
182
|
e.delete("hf_token"), e.delete("hf_username"), e.delete("hf_token_expires");
|
|
183
183
|
const n = e.toString(), a = window.location.pathname + window.location.search + (n ? "#" + n : "");
|
|
@@ -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
|
|
215
|
+
const v = 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 T(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 T(new Uint8Array(t));
|
|
236
236
|
}
|
|
237
237
|
function L(r) {
|
|
238
238
|
const e = Math.round(Number(r) || 0);
|
|
@@ -261,8 +261,8 @@ function P(r) {
|
|
|
261
261
|
return "wav-base64";
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
const j = 3e3, D = 1e3, Y = 6e4;
|
|
265
|
-
class
|
|
264
|
+
const j = 3e3, D = 1e3, Y = 6e4, K = 4e3;
|
|
265
|
+
class Q extends EventTarget {
|
|
266
266
|
// ─── Config ──────────────────────────────────────────────────────────
|
|
267
267
|
_signalingUrl;
|
|
268
268
|
_clientId;
|
|
@@ -301,6 +301,7 @@ class K extends EventTarget {
|
|
|
301
301
|
_volumeResolve = null;
|
|
302
302
|
_micVolumeResolve = null;
|
|
303
303
|
_trackedFaceResolve = null;
|
|
304
|
+
_deleteHfTokenResolve = null;
|
|
304
305
|
// applyAudioConfig() / readAudioParameter() share the same single-slot
|
|
305
306
|
// pattern as the volume helpers. Separate slots so the two can be
|
|
306
307
|
// in-flight concurrently without collision.
|
|
@@ -309,6 +310,13 @@ class K extends EventTarget {
|
|
|
309
310
|
// ─── Log subscribers ─────────────────────────────────────────────────
|
|
310
311
|
_logSubscribers = /* @__PURE__ */ new Set();
|
|
311
312
|
_updateProgressSubscribers = /* @__PURE__ */ new Set();
|
|
313
|
+
// ─── JSON-RPC app control (over the same DataChannel) ────────────────
|
|
314
|
+
// rpcCall() sends {jsonrpc,id,method,params} and awaits the matching
|
|
315
|
+
// response; onNotification() subscribes to one-way events (no id) the
|
|
316
|
+
// robot/app pushes (conversation.phase/turn/transcript, ...).
|
|
317
|
+
_rpcCounter = 0;
|
|
318
|
+
_pendingRpc = /* @__PURE__ */ new Map();
|
|
319
|
+
_rpcListeners = /* @__PURE__ */ new Map();
|
|
312
320
|
// ─── Broadcast waiters (playMove / playUploadedAudio) ────────────────
|
|
313
321
|
_broadcastWaiters = [];
|
|
314
322
|
// ─── Active upload ids for no-arg cancels ────────────────────────────
|
|
@@ -434,16 +442,16 @@ class K extends EventTarget {
|
|
|
434
442
|
return new Promise((s, i) => {
|
|
435
443
|
let o = !1;
|
|
436
444
|
const n = t.body.getReader(), a = new TextDecoder();
|
|
437
|
-
let
|
|
445
|
+
let l = "";
|
|
438
446
|
(async () => {
|
|
439
447
|
try {
|
|
440
448
|
for (; ; ) {
|
|
441
449
|
const { done: h, value: d } = await n.read();
|
|
442
450
|
if (h) break;
|
|
443
|
-
|
|
444
|
-
const m =
|
|
451
|
+
l += a.decode(d, { stream: !0 });
|
|
452
|
+
const m = l.split(`
|
|
445
453
|
`);
|
|
446
|
-
|
|
454
|
+
l = m.pop() ?? "";
|
|
447
455
|
for (const f of m)
|
|
448
456
|
if (f.startsWith("data:"))
|
|
449
457
|
try {
|
|
@@ -475,10 +483,10 @@ class K extends EventTarget {
|
|
|
475
483
|
wakeOnConnect: n = !0
|
|
476
484
|
} = e;
|
|
477
485
|
if (this._state === "streaming") {
|
|
478
|
-
const
|
|
486
|
+
const l = this._robots?.find((c) => c.id === this._selectedRobotId);
|
|
479
487
|
return {
|
|
480
488
|
robotId: this._selectedRobotId,
|
|
481
|
-
robotName:
|
|
489
|
+
robotName: l?.meta?.name ?? null,
|
|
482
490
|
isEmbedded: this.isEmbedded,
|
|
483
491
|
alreadyStreaming: !0
|
|
484
492
|
};
|
|
@@ -491,36 +499,36 @@ class K extends EventTarget {
|
|
|
491
499
|
else if (!this._token && !await this.authenticate())
|
|
492
500
|
throw new Error("Not authenticated — call login() or pass a token");
|
|
493
501
|
this._state === "disconnected" && await this.connect();
|
|
494
|
-
let
|
|
502
|
+
let l, c = null;
|
|
495
503
|
if (this.isEmbedded) {
|
|
496
|
-
|
|
504
|
+
l = this._preselectedRobotId;
|
|
497
505
|
try {
|
|
498
|
-
await this._waitForRobotInList(
|
|
506
|
+
await this._waitForRobotInList(l, 5e3);
|
|
499
507
|
} catch {
|
|
500
508
|
}
|
|
501
|
-
|
|
509
|
+
c = this._robots?.find((d) => d.id === l)?.meta?.name ?? null;
|
|
502
510
|
} else {
|
|
503
511
|
const h = await this._fetchOwnedRobots({ filterBusy: o });
|
|
504
512
|
if (h.length === 0)
|
|
505
513
|
throw new Error("No reachable robots");
|
|
506
514
|
if (i && h.length === 1 && !h[0].busy)
|
|
507
|
-
|
|
515
|
+
l = h[0].id, c = h[0].name;
|
|
508
516
|
else if (s) {
|
|
509
517
|
const d = await s(h);
|
|
510
518
|
if (!d) throw new Error("Robot selection cancelled");
|
|
511
|
-
|
|
519
|
+
l = d, c = h.find((m) => m.id === d)?.name ?? null;
|
|
512
520
|
} else
|
|
513
521
|
throw new Error(
|
|
514
522
|
"Multiple robots available — pass a pickRobot callback to autoConnect()"
|
|
515
523
|
);
|
|
516
524
|
}
|
|
517
|
-
if (await this.startSession(
|
|
525
|
+
if (await this.startSession(l), n && typeof this.ensureAwake == "function")
|
|
518
526
|
try {
|
|
519
527
|
await this.ensureAwake();
|
|
520
528
|
} catch (h) {
|
|
521
529
|
console.warn("[reachy-mini] autoConnect: ensureAwake failed:", h);
|
|
522
530
|
}
|
|
523
|
-
return { robotId:
|
|
531
|
+
return { robotId: l, robotName: c, isEmbedded: this.isEmbedded };
|
|
524
532
|
} finally {
|
|
525
533
|
this._autoStartFromUrl = a;
|
|
526
534
|
}
|
|
@@ -576,10 +584,10 @@ class K extends EventTarget {
|
|
|
576
584
|
if (!s) throw new Error("AudioContext not supported");
|
|
577
585
|
const i = new s(), o = i.createMediaStreamDestination(), n = i.createOscillator(), a = i.createGain();
|
|
578
586
|
a.gain.value = 0, n.connect(a).connect(o), n.start();
|
|
579
|
-
const
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
}), this._micStream =
|
|
587
|
+
const l = o.stream;
|
|
588
|
+
l.getAudioTracks().forEach((c) => {
|
|
589
|
+
c.enabled = !1;
|
|
590
|
+
}), this._micStream = l, this._micMuted = !0;
|
|
583
591
|
} catch (t) {
|
|
584
592
|
console.warn("Audio sender placeholder setup failed:", t), this._micStream = null;
|
|
585
593
|
}
|
|
@@ -648,10 +656,10 @@ class K extends EventTarget {
|
|
|
648
656
|
}
|
|
649
657
|
}
|
|
650
658
|
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" }));
|
|
659
|
+
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._deleteHfTokenResolve && (this._deleteHfTokenResolve(null), this._deleteHfTokenResolve = 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
660
|
}
|
|
653
661
|
disconnect() {
|
|
654
|
-
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" });
|
|
662
|
+
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._deleteHfTokenResolve && (this._deleteHfTokenResolve(null), this._deleteHfTokenResolve = 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" });
|
|
655
663
|
}
|
|
656
664
|
// ─── Resilience: ICE-blip debounce + network awareness ───────────────
|
|
657
665
|
//
|
|
@@ -1026,6 +1034,31 @@ class K extends EventTarget {
|
|
|
1026
1034
|
{ type: "set_microphone_volume", volume: L(e) }
|
|
1027
1035
|
);
|
|
1028
1036
|
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Sign this robot out of Hugging Face: asks the daemon to delete its
|
|
1039
|
+
* stored HF token, which de-registers the robot from the central
|
|
1040
|
+
* signaling relay (it disappears from its owner's robot list until it
|
|
1041
|
+
* is set up again). Works over the WebRTC data channel, so it reaches
|
|
1042
|
+
* the robot remotely (no LAN HTTP path required).
|
|
1043
|
+
*
|
|
1044
|
+
* Resolves `true` when the daemon acked success, `false` on a daemon
|
|
1045
|
+
* error, or `null` when no ack arrives before the timeout (e.g. a
|
|
1046
|
+
* daemon that predates the `delete_hf_token` command silently drops
|
|
1047
|
+
* it). Rejects if the data channel isn't open. Note the sign-out
|
|
1048
|
+
* drops the central relay, so the session may tear down right after
|
|
1049
|
+
* the ack - callers should treat a post-call session drop as expected,
|
|
1050
|
+
* and a successful sign-out may surface as `null` if teardown races
|
|
1051
|
+
* ahead of the ack.
|
|
1052
|
+
*/
|
|
1053
|
+
signOut() {
|
|
1054
|
+
return this._slotRoundtrip(
|
|
1055
|
+
() => this._deleteHfTokenResolve,
|
|
1056
|
+
(e) => {
|
|
1057
|
+
this._deleteHfTokenResolve = e;
|
|
1058
|
+
},
|
|
1059
|
+
{ type: "delete_hf_token" }
|
|
1060
|
+
);
|
|
1061
|
+
}
|
|
1029
1062
|
applyAudioConfig(e, { verify: t = !0 } = {}) {
|
|
1030
1063
|
return this._slotRoundtrip(
|
|
1031
1064
|
() => this._applyAudioConfigResolve,
|
|
@@ -1065,7 +1098,12 @@ class K extends EventTarget {
|
|
|
1065
1098
|
return;
|
|
1066
1099
|
}
|
|
1067
1100
|
const n = e();
|
|
1068
|
-
n && n(null)
|
|
1101
|
+
n && n(null);
|
|
1102
|
+
let a;
|
|
1103
|
+
const l = (c) => {
|
|
1104
|
+
a !== void 0 && (clearTimeout(a), a = void 0), e() === l && t(null), i(c);
|
|
1105
|
+
};
|
|
1106
|
+
t(l), a = setTimeout(() => l(null), K), this._sendCommand(s);
|
|
1069
1107
|
});
|
|
1070
1108
|
}
|
|
1071
1109
|
sendRaw(e) {
|
|
@@ -1114,8 +1152,8 @@ class K extends EventTarget {
|
|
|
1114
1152
|
encoding: o = "gzip+base64",
|
|
1115
1153
|
playFrequency: n = 100,
|
|
1116
1154
|
initialGotoDuration: a = 0,
|
|
1117
|
-
startTimeoutMs:
|
|
1118
|
-
onProgress:
|
|
1155
|
+
startTimeoutMs: l = 8e3,
|
|
1156
|
+
onProgress: c = () => {
|
|
1119
1157
|
},
|
|
1120
1158
|
onStarted: h = () => {
|
|
1121
1159
|
}
|
|
@@ -1131,35 +1169,35 @@ class K extends EventTarget {
|
|
|
1131
1169
|
time: e.time,
|
|
1132
1170
|
set_target_data: e.set_target_data
|
|
1133
1171
|
}, f = JSON.stringify(m);
|
|
1134
|
-
let p,
|
|
1135
|
-
o === "gzip+base64" && J() ? (p = await X(f),
|
|
1136
|
-
const g = Math.ceil(p.length /
|
|
1137
|
-
|
|
1172
|
+
let p, y;
|
|
1173
|
+
o === "gzip+base64" && J() ? (p = await X(f), y = "gzip+base64") : (p = f, y = "json");
|
|
1174
|
+
const g = Math.ceil(p.length / v) || 1;
|
|
1175
|
+
c({
|
|
1138
1176
|
phase: "starting",
|
|
1139
1177
|
sent: 0,
|
|
1140
1178
|
total: g,
|
|
1141
1179
|
bytes: p.length,
|
|
1142
|
-
encoding:
|
|
1180
|
+
encoding: y
|
|
1143
1181
|
}), this._sendCommand({
|
|
1144
1182
|
type: "upload_move_start",
|
|
1145
1183
|
upload_id: d,
|
|
1146
1184
|
total_chunks: g,
|
|
1147
1185
|
description: i,
|
|
1148
|
-
encoding:
|
|
1186
|
+
encoding: y
|
|
1149
1187
|
});
|
|
1150
1188
|
for (let u = 0; u < g; u++) {
|
|
1151
|
-
this._dc.bufferedAmount >
|
|
1152
|
-
const _ = u *
|
|
1189
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1190
|
+
const _ = u * v;
|
|
1153
1191
|
this._sendCommand({
|
|
1154
1192
|
type: "upload_move_chunk",
|
|
1155
1193
|
upload_id: d,
|
|
1156
1194
|
chunk_index: u,
|
|
1157
|
-
chunk: p.slice(_, _ +
|
|
1158
|
-
}),
|
|
1195
|
+
chunk: p.slice(_, _ + v)
|
|
1196
|
+
}), c({ phase: "upload", sent: u + 1, total: g });
|
|
1159
1197
|
}
|
|
1160
|
-
if (this._sendCommand({ type: "upload_move_finish", upload_id: d }),
|
|
1161
|
-
const u = new Uint8Array(await t.arrayBuffer()), _ =
|
|
1162
|
-
|
|
1198
|
+
if (this._sendCommand({ type: "upload_move_finish", upload_id: d }), c({ phase: "uploaded", sent: g, total: g }), t) {
|
|
1199
|
+
const u = new Uint8Array(await t.arrayBuffer()), _ = T(u), b = Math.ceil(_.length / v) || 1;
|
|
1200
|
+
c({
|
|
1163
1201
|
phase: "audio-starting",
|
|
1164
1202
|
sent: 0,
|
|
1165
1203
|
total: b,
|
|
@@ -1172,16 +1210,16 @@ class K extends EventTarget {
|
|
|
1172
1210
|
description: i
|
|
1173
1211
|
});
|
|
1174
1212
|
for (let I = 0; I < b; I++) {
|
|
1175
|
-
this._dc.bufferedAmount >
|
|
1176
|
-
const
|
|
1213
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1214
|
+
const A = I * v;
|
|
1177
1215
|
this._sendCommand({
|
|
1178
1216
|
type: "upload_audio_chunk",
|
|
1179
1217
|
upload_id: d,
|
|
1180
1218
|
chunk_index: I,
|
|
1181
|
-
chunk: _.slice(
|
|
1182
|
-
}),
|
|
1219
|
+
chunk: _.slice(A, A + v)
|
|
1220
|
+
}), c({ phase: "audio-upload", sent: I + 1, total: b });
|
|
1183
1221
|
}
|
|
1184
|
-
this._sendCommand({ type: "upload_audio_finish", upload_id: d }),
|
|
1222
|
+
this._sendCommand({ type: "upload_audio_finish", upload_id: d }), c({ phase: "audio-uploaded", sent: b, total: b });
|
|
1185
1223
|
}
|
|
1186
1224
|
this._sendCommand({
|
|
1187
1225
|
type: "play_uploaded_move",
|
|
@@ -1194,7 +1232,7 @@ class K extends EventTarget {
|
|
|
1194
1232
|
try {
|
|
1195
1233
|
w = await this._waitForBroadcast(
|
|
1196
1234
|
(u) => u?.type === "play_uploaded_move" && u?.upload_id === d && (u.started === !0 || typeof u.error == "string"),
|
|
1197
|
-
{ timeoutMs:
|
|
1235
|
+
{ timeoutMs: l, debugLabel: "play_uploaded_move started" }
|
|
1198
1236
|
);
|
|
1199
1237
|
} catch (u) {
|
|
1200
1238
|
throw new Error(
|
|
@@ -1211,7 +1249,7 @@ class K extends EventTarget {
|
|
|
1211
1249
|
} catch (u) {
|
|
1212
1250
|
console.warn("playMove.onStarted threw:", u);
|
|
1213
1251
|
}
|
|
1214
|
-
|
|
1252
|
+
c({ phase: "playing", duration_s: w.duration_s });
|
|
1215
1253
|
const S = await this._waitForBroadcast(
|
|
1216
1254
|
(u) => u?.type === "play_uploaded_move" && u?.upload_id === d && (u.finished === !0 || u.cancelled === !0 || typeof u.error == "string"),
|
|
1217
1255
|
{
|
|
@@ -1231,7 +1269,7 @@ class K extends EventTarget {
|
|
|
1231
1269
|
throw new Error("data channel not open");
|
|
1232
1270
|
if (!(e instanceof Blob))
|
|
1233
1271
|
throw new TypeError("uploadAudio: expected a Blob");
|
|
1234
|
-
const i = U(), o = new Uint8Array(await e.arrayBuffer()), n =
|
|
1272
|
+
const i = U(), o = new Uint8Array(await e.arrayBuffer()), n = T(o), a = Math.ceil(n.length / v) || 1;
|
|
1235
1273
|
s({ phase: "audio-starting", sent: 0, total: a, bytes: n.length }), this._sendCommand({
|
|
1236
1274
|
type: "upload_audio_start",
|
|
1237
1275
|
upload_id: i,
|
|
@@ -1239,15 +1277,15 @@ class K extends EventTarget {
|
|
|
1239
1277
|
encoding: P(e),
|
|
1240
1278
|
description: t
|
|
1241
1279
|
});
|
|
1242
|
-
for (let
|
|
1243
|
-
this._dc.bufferedAmount >
|
|
1244
|
-
const
|
|
1280
|
+
for (let l = 0; l < a; l++) {
|
|
1281
|
+
this._dc.bufferedAmount > E && await this._awaitDataChannelDrain();
|
|
1282
|
+
const c = l * v;
|
|
1245
1283
|
this._sendCommand({
|
|
1246
1284
|
type: "upload_audio_chunk",
|
|
1247
1285
|
upload_id: i,
|
|
1248
|
-
chunk_index:
|
|
1249
|
-
chunk: n.slice(
|
|
1250
|
-
}), s({ phase: "audio-upload", sent:
|
|
1286
|
+
chunk_index: l,
|
|
1287
|
+
chunk: n.slice(c, c + v)
|
|
1288
|
+
}), s({ phase: "audio-upload", sent: l + 1, total: a });
|
|
1251
1289
|
}
|
|
1252
1290
|
return this._sendCommand({ type: "upload_audio_finish", upload_id: i }), s({ phase: "audio-uploaded", sent: a, total: a }), i;
|
|
1253
1291
|
}
|
|
@@ -1318,6 +1356,62 @@ class K extends EventTarget {
|
|
|
1318
1356
|
_sendCommand(e) {
|
|
1319
1357
|
return !this._dc || this._dc.readyState !== "open" ? !1 : (this._dc.send(JSON.stringify(e)), !0);
|
|
1320
1358
|
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Call a JSON-RPC method on the robot/app over the DataChannel and await
|
|
1361
|
+
* its result. This is the one way to drive an on-robot app (start/stop it
|
|
1362
|
+
* via `apps.*`, or drive a running app via its own namespace, e.g.
|
|
1363
|
+
* `conversation.say`). Rejects on the JSON-RPC error, a closed channel, or
|
|
1364
|
+
* timeout.
|
|
1365
|
+
*/
|
|
1366
|
+
rpcCall(e, t = {}, s = {}) {
|
|
1367
|
+
const i = s.timeoutMs ?? 2e4, o = `rpc-${++this._rpcCounter}`;
|
|
1368
|
+
return this._sendCommand({ jsonrpc: "2.0", id: o, method: e, params: t }) ? new Promise((n, a) => {
|
|
1369
|
+
const l = setTimeout(() => {
|
|
1370
|
+
this._pendingRpc.delete(o), a(new Error(`rpcCall(${e}) timed out after ${i}ms`));
|
|
1371
|
+
}, i);
|
|
1372
|
+
this._pendingRpc.set(o, {
|
|
1373
|
+
resolve: (c) => n(c),
|
|
1374
|
+
reject: a,
|
|
1375
|
+
timer: l
|
|
1376
|
+
});
|
|
1377
|
+
}) : Promise.reject(new Error(`rpcCall(${e}): data channel not open`));
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Subscribe to a JSON-RPC notification (one-way event) pushed by the
|
|
1381
|
+
* robot/app, e.g. `conversation.turn`. Returns an unsubscribe function.
|
|
1382
|
+
*/
|
|
1383
|
+
onNotification(e, t) {
|
|
1384
|
+
let s = this._rpcListeners.get(e);
|
|
1385
|
+
return s || (s = /* @__PURE__ */ new Set(), this._rpcListeners.set(e, s)), s.add(t), () => {
|
|
1386
|
+
this._rpcListeners.get(e)?.delete(t);
|
|
1387
|
+
};
|
|
1388
|
+
}
|
|
1389
|
+
_rejectPendingRpc(e) {
|
|
1390
|
+
for (const t of this._pendingRpc.values())
|
|
1391
|
+
clearTimeout(t.timer), t.reject(e);
|
|
1392
|
+
this._pendingRpc.clear();
|
|
1393
|
+
}
|
|
1394
|
+
_handleRpcMessage(e) {
|
|
1395
|
+
if ("id" in e && e.id != null && ("result" in e || "error" in e)) {
|
|
1396
|
+
const t = this._pendingRpc.get(e.id);
|
|
1397
|
+
if (!t) return;
|
|
1398
|
+
if (this._pendingRpc.delete(e.id), clearTimeout(t.timer), "error" in e && e.error) {
|
|
1399
|
+
const s = e.error, i = new Error(s.message ?? "rpc error");
|
|
1400
|
+
i.reason = s.data?.reason, t.reject(i);
|
|
1401
|
+
} else
|
|
1402
|
+
t.resolve(e.result);
|
|
1403
|
+
return;
|
|
1404
|
+
}
|
|
1405
|
+
if (typeof e.method == "string") {
|
|
1406
|
+
const t = e.params ?? {};
|
|
1407
|
+
for (const s of this._rpcListeners.get(e.method) ?? [])
|
|
1408
|
+
try {
|
|
1409
|
+
s(t);
|
|
1410
|
+
} catch (i) {
|
|
1411
|
+
console.error(`onNotification(${e.method}) threw:`, i);
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1321
1415
|
_checkSessionReady() {
|
|
1322
1416
|
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
1417
|
}
|
|
@@ -1403,6 +1497,10 @@ class K extends EventTarget {
|
|
|
1403
1497
|
}
|
|
1404
1498
|
}
|
|
1405
1499
|
_handleRobotMessage(e) {
|
|
1500
|
+
if (e.jsonrpc === "2.0") {
|
|
1501
|
+
this._handleRpcMessage(e);
|
|
1502
|
+
return;
|
|
1503
|
+
}
|
|
1406
1504
|
if ("version" in e && this._versionResolve) {
|
|
1407
1505
|
this._versionResolve(e.version), this._versionResolve = null;
|
|
1408
1506
|
return;
|
|
@@ -1419,6 +1517,10 @@ class K extends EventTarget {
|
|
|
1419
1517
|
this._micVolumeResolve && (this._micVolumeResolve(e.status === "error" ? null : e.volume), this._micVolumeResolve = null);
|
|
1420
1518
|
return;
|
|
1421
1519
|
}
|
|
1520
|
+
if (e.command === "delete_hf_token") {
|
|
1521
|
+
this._deleteHfTokenResolve && (this._deleteHfTokenResolve(e.status !== "error"), this._deleteHfTokenResolve = null);
|
|
1522
|
+
return;
|
|
1523
|
+
}
|
|
1422
1524
|
if (e.command === "apply_audio_config") {
|
|
1423
1525
|
this._applyAudioConfigResolve && (this._applyAudioConfigResolve(e.error ? !1 : !!e.applied), this._applyAudioConfigResolve = null);
|
|
1424
1526
|
return;
|
|
@@ -1519,5 +1621,5 @@ class K extends EventTarget {
|
|
|
1519
1621
|
}
|
|
1520
1622
|
}
|
|
1521
1623
|
export {
|
|
1522
|
-
|
|
1624
|
+
Q as R
|
|
1523
1625
|
};
|
|
@@ -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,EAAE,MAAM,OAAO,CAAC;AAkBjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB;uEACmE;IACnE,YAAY,EAAE,OAAO,CAAC;IACtB;;;+BAG2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;mDAE+C;IAC/C,SAAS,CAAC,IAAI,IAAI,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,QAAQ,EACR,SAAS,GACV,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"PickerView.d.ts","sourceRoot":"","sources":["../../src/components/PickerView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkBjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB;uEACmE;IACnE,YAAY,EAAE,OAAO,CAAC;IACtB;;;+BAG2B;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;mDAE+C;IAC/C,SAAS,CAAC,IAAI,IAAI,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,YAAY,EACZ,KAAK,EACL,kBAAkB,EAClB,QAAQ,EACR,SAAS,GACV,EAAE,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;IAClD,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;qEACiE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,IAAI,IAAI,CAAC;IAClB,YAAY,IAAI,IAAI,CAAC;CACtB;AAED,wBAAgB,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,
|
|
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;IAClD,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC;qEACiE;IACjE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,IAAI,IAAI,CAAC;IAClB,YAAY,IAAI,IAAI,CAAC;CACtB;AAED,wBAAgB,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-Bh4vCW5y.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-Bh4vCW5y.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 {
|