@pollen-robotics/reachy-mini-sdk 1.10.0 → 1.11.0-dev.0.main.94e8b7d

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.
@@ -1,5 +1,5 @@
1
- import { R as i } from "../chunks/centralRest-uXNMidlL.js";
2
- import { m as n } from "../chunks/mountHost-D6qt3s1W.js";
1
+ import { R as i } from "../chunks/centralRest-vcOOpQK6.js";
2
+ import { m as n } from "../chunks/mountHost-CNQYkWZ4.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
@@ -1,5 +1,5 @@
1
- import { R as i } from "../chunks/centralRest-uXNMidlL.js";
2
- import { a as n, c as o } from "../chunks/index-Beu4GNzi.js";
1
+ import { R as i } from "../chunks/centralRest-vcOOpQK6.js";
2
+ import { a as n, c as o } from "../chunks/index-BrKBhTE0.js";
3
3
  typeof window < "u" && (window.ReachyMini || (window.ReachyMini = i, window.dispatchEvent(new Event("reachymini:ready"))), window.ReachyMiniHostEmbed = { connectToHost: o, connectToHostCredsOnly: n });
4
4
  export {
5
5
  o as connectToHost,
@@ -1,6 +1,6 @@
1
- import { R as o } from "./chunks/centralRest-uXNMidlL.js";
2
- import { R as i, m as a } from "./chunks/mountHost-D6qt3s1W.js";
3
- import { c as r, a as c } from "./chunks/index-Beu4GNzi.js";
1
+ import { R as o } from "./chunks/centralRest-vcOOpQK6.js";
2
+ import { R as i, m as a } from "./chunks/mountHost-CNQYkWZ4.js";
3
+ import { c as r, a as c } from "./chunks/index-BrKBhTE0.js";
4
4
  import { PROTOCOL_VERSION as m, decodeCredsFromHash as w, encodeCredsToHash as h, isProtocolMessage as y } from "./lib/protocol.js";
5
5
  typeof window < "u" && !window.ReachyMini && (window.ReachyMini = o, window.dispatchEvent(new Event("reachymini:ready")));
6
6
  export {
@@ -36,6 +36,7 @@ declare global {
36
36
  variables?: {
37
37
  OAUTH_CLIENT_ID?: string;
38
38
  OAUTH_SCOPES?: string;
39
+ SIGNALING_URL?: string;
39
40
  SPACE_HOST?: string;
40
41
  SPACE_ID?: string;
41
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-types.d.ts","sourceRoot":"","sources":["../../src/lib/sdk-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,EACV,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;;;;;;;;;;GAcG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,EAAE,qBAAqB,CAAC;QAClC;gEACwD;QACxD,WAAW,CAAC,EAAE;YACZ,SAAS,CAAC,EAAE;gBACV,eAAe,CAAC,EAAE,MAAM,CAAC;gBACzB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;KACH;CACF;AAED,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"sdk-types.d.ts","sourceRoot":"","sources":["../../src/lib/sdk-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,YAAY,EACV,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;;;;;;;;;;GAcG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,EAAE,qBAAqB,CAAC;QAClC;gEACwD;QACxD,WAAW,CAAC,EAAE;YACZ,SAAS,CAAC,EAAE;gBACV,eAAe,CAAC,EAAE,MAAM,CAAC;gBACzB,YAAY,CAAC,EAAE,MAAM,CAAC;gBACtB,aAAa,CAAC,EAAE,MAAM,CAAC;gBACvB,UAAU,CAAC,EAAE,MAAM,CAAC;gBACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;aACnB,CAAC;SACH,CAAC;KACH;CACF;AAED,OAAO,EAAE,CAAC"}
@@ -1,28 +1,3 @@
1
- /**
2
- * Resolve the signaling URL for the ReachyMini SDK.
3
- *
4
- * Priority:
5
- * 1. `?signaling_url=<url>` URL parameter (override for
6
- * staging / self-hosted central).
7
- * 2. `window.huggingface.variables.SIGNALING_URL` if injected
8
- * by the HF Spaces frontmatter (rare).
9
- * 3. The canonical Pollen-Robotics central
10
- * (`https://pollen-robotics-reachy-mini-central.hf.space`).
11
- *
12
- * Why we don't fall back to the SDK's bundled default
13
- * ───────────────────────────────────────────────────
14
- * The SDK shipped with `tfrere-reachy-mini-central.hf.space`
15
- * baked in for legacy reasons. Reachies registered through the
16
- * mobile app (the canonical onboarding path) sit on the
17
- * `pollen-robotics-...` Space, so a host that lets the SDK fall
18
- * back to the legacy URL ends up showing an empty list even when
19
- * the user owns one of those robots. We override the default
20
- * here so the host and the mobile app talk to the same central
21
- * out of the box.
22
- *
23
- * Never throws. A malformed override just falls back to the
24
- * canonical default.
25
- */
26
1
  export declare const DEFAULT_CENTRAL_SIGNALING_URL = "https://pollen-robotics-reachy-mini-central.hf.space";
27
2
  export declare function resolveSignalingUrl(): string;
28
3
  //# sourceMappingURL=signalingUrl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signalingUrl.d.ts","sourceRoot":"","sources":["../../src/lib/signalingUrl.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,eAAO,MAAM,6BAA6B,yDACc,CAAC;AAEzD,wBAAgB,mBAAmB,IAAI,MAAM,CAsB5C"}
1
+ {"version":3,"file":"signalingUrl.d.ts","sourceRoot":"","sources":["../../src/lib/signalingUrl.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,yDACc,CAAC;AAmCzD,wBAAgB,mBAAmB,IAAI,MAAM,CAmB5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pollen-robotics/reachy-mini-sdk",
3
- "version": "1.10.0",
3
+ "version": "1.11.0-dev.0.main.94e8b7d",
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",