rnxsim 0.1.420 → 0.1.421

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/cli/outbound-endpoints.ts +12 -0
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/agent-identity.cjs +1 -1
  5. package/dist-lib/agent-sessions.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.mjs +1 -1
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +1 -1
  18. package/dist-lib/cli-constants.cjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud.cjs +447 -0
  22. package/dist-lib/cloud.mjs +419 -0
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/home-paths.cjs +1 -1
  27. package/dist-lib/host/bridge-host.cjs +1 -1
  28. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  29. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  30. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  31. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  32. package/dist-lib/host/websocket-proxy.cjs +1 -1
  33. package/dist-lib/index.cjs +1 -1
  34. package/dist-lib/jump-to-source-babel.cjs +1 -1
  35. package/dist-lib/menu.cjs +1 -1
  36. package/dist-lib/menu.mjs +1 -1
  37. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  38. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  39. package/dist-lib/metro-production-bundle.cjs +1 -1
  40. package/dist-lib/metro-production-bundle.mjs +1 -1
  41. package/dist-lib/metro.cjs +1 -1
  42. package/dist-lib/profiles.cjs +1 -1
  43. package/dist-lib/public-brand.cjs +1 -1
  44. package/dist-lib/react-native-host-modules.cjs +1 -1
  45. package/dist-lib/react-native-host-modules.mjs +1 -1
  46. package/dist-lib/render-mode.cjs +1 -1
  47. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  48. package/dist-lib/sdk.cjs +1 -1
  49. package/dist-lib/sdk.mjs +1 -1
  50. package/dist-lib/skills.cjs +1 -1
  51. package/dist-lib/vite.cjs +1 -1
  52. package/package.json +8 -1
  53. package/src/cloud.ts +499 -0
@@ -0,0 +1,419 @@
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+
6
+ // src/backend-origin.ts
7
+ function normalizeHostname(hostname) {
8
+ return hostname.replace(/^\[|\]$/g, "").toLowerCase();
9
+ }
10
+ function isLoopbackHost(hostname) {
11
+ const normalized = normalizeHostname(hostname);
12
+ return normalized === "localhost" || normalized.endsWith(".localhost") || normalized === "0.0.0.0" || normalized === "::1" || /^127(?:\.\d{1,3}){3}$/.test(normalized);
13
+ }
14
+
15
+ // src/cloud-contract.ts
16
+ var RNX_CLOUD_MAX_ARTIFACT_BYTES = 20 * 1024 * 1024;
17
+ var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
18
+ var RNX_CLOUD_COMMAND_TYPES = Object.freeze([
19
+ "state",
20
+ "query",
21
+ "resolve",
22
+ "perform",
23
+ "waitFor",
24
+ "reset",
25
+ "screenshot",
26
+ "capture",
27
+ "captureRegions",
28
+ "settle",
29
+ "setAppearance",
30
+ "openUrl",
31
+ "tree",
32
+ "tap",
33
+ "longPress",
34
+ "memory",
35
+ "diagnostics"
36
+ ]);
37
+ var RNX_CLOUD_COMMAND_TYPE_SET = new Set(RNX_CLOUD_COMMAND_TYPES);
38
+ function isRnxCloudCommandType(value) {
39
+ return RNX_CLOUD_COMMAND_TYPE_SET.has(value);
40
+ }
41
+
42
+ // src/public-brand.ts
43
+ var name = "rnx";
44
+ var rnxPublicBrand = Object.freeze({
45
+ name,
46
+ packageName: "rnxsim",
47
+ commandName: "rnx",
48
+ domain: "rnxsim.com",
49
+ origin: "https://rnxsim.com"
50
+ });
51
+
52
+ // src/cloud.ts
53
+ var DEFAULT_DEVICE = "iphone-16";
54
+ var DEFAULT_WAIT_READY_MS = 2e4;
55
+ function isRecord(value) {
56
+ return value !== null && typeof value === "object" && !Array.isArray(value);
57
+ }
58
+ function normalizeCloudOrigin(source) {
59
+ let parsed;
60
+ try {
61
+ parsed = new URL(source);
62
+ } catch {
63
+ throw new Error(`invalid RNX Cloud origin: ${source}`);
64
+ }
65
+ if (parsed.protocol !== "https:" && parsed.protocol !== "http:" || parsed.username || parsed.password || parsed.pathname !== "/" || parsed.search || parsed.hash) {
66
+ throw new Error(`RNX Cloud origin must be an HTTP(S) origin: ${source}`);
67
+ }
68
+ if (parsed.protocol === "http:" && !isLoopbackHost(parsed.hostname)) {
69
+ throw new Error(`RNX Cloud origin requires HTTPS outside loopback: ${source}`);
70
+ }
71
+ return parsed.origin;
72
+ }
73
+ function resolveOrigin(value) {
74
+ const configured = value?.trim() || process.env.RNX_CLOUD_ORIGIN?.trim();
75
+ return normalizeCloudOrigin(configured || rnxPublicBrand.origin);
76
+ }
77
+ function responseError(status, text) {
78
+ if (text) {
79
+ try {
80
+ const parsed = JSON.parse(text);
81
+ const error = isRecord(parsed) ? parsed.error : null;
82
+ if (isRecord(error) && typeof error.message === "string") {
83
+ return new Error(`RNX Cloud request failed (${status}): ${error.message}`);
84
+ }
85
+ } catch {
86
+ }
87
+ }
88
+ return new Error(
89
+ `RNX Cloud request failed (${status})${text.trim() ? `: ${text.trim()}` : ""}`
90
+ );
91
+ }
92
+ function copyArrayBuffer(bytes) {
93
+ const copy = new ArrayBuffer(bytes.byteLength);
94
+ new Uint8Array(copy).set(bytes);
95
+ return copy;
96
+ }
97
+ async function sha256Hex(bytes) {
98
+ const digest = await globalThis.crypto.subtle.digest("SHA-256", copyArrayBuffer(bytes));
99
+ const view = new Uint8Array(digest);
100
+ let hex = "";
101
+ for (const byte of view) hex += byte.toString(16).padStart(2, "0");
102
+ return hex;
103
+ }
104
+ function readJsArtifact(bytes) {
105
+ let source;
106
+ try {
107
+ source = new TextDecoder("utf-8", { fatal: true }).decode(bytes);
108
+ } catch {
109
+ throw new Error("rnx Cloud artifact must be valid UTF-8 JavaScript, not bytecode");
110
+ }
111
+ if (source.includes("\0") || !source.includes("__d(") || !source.includes("__r(")) {
112
+ throw new Error("rnx Cloud artifact must be a Metro JavaScript bundle");
113
+ }
114
+ return source;
115
+ }
116
+ function readClaim(value) {
117
+ if (!isRecord(value) || typeof value.id !== "string" || !value.id || typeof value.expiresAt !== "number") {
118
+ throw new Error("RNX Cloud returned an invalid claim");
119
+ }
120
+ return { id: value.id, expiresAt: value.expiresAt };
121
+ }
122
+ function artifactDigestId(sha256) {
123
+ return `sha256:${sha256}`;
124
+ }
125
+ function readArtifact(value, expectedId, expectedBytes) {
126
+ if (!isRecord(value) || value.id !== expectedId || typeof value.bytes !== "number" || !Number.isInteger(value.bytes) || value.bytes !== expectedBytes) {
127
+ throw new Error("RNX Cloud returned an invalid artifact receipt");
128
+ }
129
+ return { id: expectedId, bytes: expectedBytes };
130
+ }
131
+ function readSimulatorCreate(value, expectedId, expectedBytes) {
132
+ if (!isRecord(value)) throw new Error("RNX Cloud create returned an invalid simulator");
133
+ const claim = readClaim(value.claim);
134
+ if (typeof value.simId !== "string" || !value.simId || typeof value.token !== "string") {
135
+ throw new Error("RNX Cloud create returned an invalid simulator");
136
+ }
137
+ return {
138
+ simId: value.simId,
139
+ token: value.token,
140
+ claim,
141
+ artifact: readArtifact(value.artifact, expectedId, expectedBytes)
142
+ };
143
+ }
144
+ function readBoxCreate(value, expectedBytes, expectedSha256) {
145
+ const artifactId = artifactDigestId(expectedSha256);
146
+ if (!isRecord(value)) throw new Error("RNX Cloud create returned invalid JSON");
147
+ const simulator = readSimulatorCreate(value.simulator, artifactId, expectedBytes);
148
+ if (typeof value.boxId !== "string" || !value.boxId || value.size !== "nano" || typeof value.token !== "string" || !value.token) {
149
+ throw new Error("RNX Cloud create returned an invalid box receipt");
150
+ }
151
+ return {
152
+ receipt: {
153
+ boxId: value.boxId,
154
+ size: "nano",
155
+ artifact: readArtifact(value.artifact, artifactId, expectedBytes),
156
+ simulator: {
157
+ simId: simulator.simId,
158
+ artifact: simulator.artifact,
159
+ claim: simulator.claim
160
+ }
161
+ },
162
+ boxToken: value.token,
163
+ simulatorToken: simulator.token
164
+ };
165
+ }
166
+ function cloudCommand(command) {
167
+ const clean = {};
168
+ for (const [key, value] of Object.entries(command)) {
169
+ if (key !== "id" && key !== "simId") clean[key] = value;
170
+ }
171
+ if (!isRnxCloudCommandType(command.type)) {
172
+ throw new Error(`RNX Cloud does not support bridge command type ${command.type}`);
173
+ }
174
+ return { ...clean, type: command.type };
175
+ }
176
+ var NanoBox = class _NanoBox {
177
+ constructor(session) {
178
+ __publicField(this, "session");
179
+ this.session = session;
180
+ }
181
+ get boxId() {
182
+ return this.session.boxId;
183
+ }
184
+ get simId() {
185
+ return this.session.simId;
186
+ }
187
+ get claim() {
188
+ return this.session.claim;
189
+ }
190
+ get receipt() {
191
+ return {
192
+ boxId: this.session.boxId,
193
+ size: "nano",
194
+ artifact: this.session.artifact,
195
+ simulator: {
196
+ simId: this.session.simId,
197
+ artifact: this.session.artifact,
198
+ claim: this.session.claim
199
+ }
200
+ };
201
+ }
202
+ async command(command, options) {
203
+ const body = {
204
+ id: globalThis.crypto.randomUUID(),
205
+ claimId: this.session.claim.id,
206
+ command: cloudCommand(command)
207
+ };
208
+ let response;
209
+ try {
210
+ response = await fetch(
211
+ `${this.session.origin}/v1/sims/${encodeURIComponent(this.session.simId)}/commands`,
212
+ {
213
+ method: "POST",
214
+ headers: {
215
+ authorization: `Bearer ${this.session.simulatorToken}`,
216
+ "content-type": "application/json"
217
+ },
218
+ body: JSON.stringify(body),
219
+ ...options?.timeoutMs ? { signal: AbortSignal.timeout(options.timeoutMs) } : {}
220
+ }
221
+ );
222
+ } catch (error) {
223
+ throw new Error(
224
+ `could not reach RNX Cloud at ${this.session.origin}: ${error instanceof Error ? error.message : String(error)}`
225
+ );
226
+ }
227
+ const text = await response.text();
228
+ if (!response.ok) throw responseError(response.status, text);
229
+ let parsed;
230
+ try {
231
+ parsed = JSON.parse(text);
232
+ } catch {
233
+ throw new Error("RNX Cloud command returned unreadable JSON");
234
+ }
235
+ if (!isRecord(parsed) || parsed.id !== body.id) {
236
+ throw new Error("RNX Cloud command returned an invalid command receipt");
237
+ }
238
+ if (typeof parsed.error === "string" && parsed.error) throw new Error(parsed.error);
239
+ if (!Object.hasOwn(parsed, "result")) {
240
+ throw new Error("RNX Cloud command receipt has no result");
241
+ }
242
+ return parsed.result;
243
+ }
244
+ describe() {
245
+ return this.command({ type: "tree" });
246
+ }
247
+ do(command) {
248
+ return this.command(command);
249
+ }
250
+ wait(condition, options) {
251
+ const timeoutMs = options?.maxMs ?? DEFAULT_WAIT_READY_MS;
252
+ const waitCondition = condition === "ready" ? { type: "ready" } : condition;
253
+ return this.command(
254
+ {
255
+ type: "waitFor",
256
+ waitForOptions: { condition: waitCondition, timeoutMs }
257
+ },
258
+ { timeoutMs: timeoutMs + 1e3 }
259
+ );
260
+ }
261
+ screenshot(options) {
262
+ return this.command({
263
+ type: "screenshot",
264
+ layers: options?.layers ?? "tenant"
265
+ });
266
+ }
267
+ capture() {
268
+ return this.command({ type: "capture" });
269
+ }
270
+ reset() {
271
+ return this.command({ type: "reset" });
272
+ }
273
+ async confirm() {
274
+ const response = await fetch(
275
+ `${this.session.origin}/v1/sims/${encodeURIComponent(this.session.simId)}/claim`,
276
+ {
277
+ method: "POST",
278
+ headers: {
279
+ authorization: `Bearer ${this.session.simulatorToken}`,
280
+ "content-type": "application/json"
281
+ },
282
+ body: JSON.stringify({ claimId: this.session.claim.id })
283
+ }
284
+ );
285
+ const text = await response.text();
286
+ if (!response.ok) throw responseError(response.status, text);
287
+ let parsed;
288
+ try {
289
+ parsed = JSON.parse(text);
290
+ } catch {
291
+ throw new Error("RNX Cloud claim returned unreadable JSON");
292
+ }
293
+ const claim = readClaim(isRecord(parsed) ? parsed.claim : null);
294
+ if (claim.id !== this.session.claim.id) {
295
+ throw new Error("RNX Cloud confirmation replaced the initial claim");
296
+ }
297
+ this.session = { ...this.session, claim };
298
+ return claim;
299
+ }
300
+ async addSimulator(input = {}) {
301
+ const device = input.device?.trim() || DEFAULT_DEVICE;
302
+ const response = await fetch(
303
+ `${this.session.origin}/v1/boxes/${encodeURIComponent(this.session.boxId)}/simulators`,
304
+ {
305
+ method: "POST",
306
+ headers: {
307
+ authorization: `Bearer ${this.session.boxToken}`,
308
+ "x-rnx-account-authorization": this.session.authorization,
309
+ "content-type": "application/json"
310
+ },
311
+ body: JSON.stringify({
312
+ device,
313
+ ...input.storageFrom === void 0 ? {} : { storageFrom: input.storageFrom }
314
+ })
315
+ }
316
+ );
317
+ const text = await response.text();
318
+ if (!response.ok) throw responseError(response.status, text);
319
+ let parsed;
320
+ try {
321
+ parsed = JSON.parse(text);
322
+ } catch {
323
+ throw new Error("RNX Cloud simulator create returned unreadable JSON");
324
+ }
325
+ if (!isRecord(parsed) || parsed.boxId !== this.session.boxId) {
326
+ throw new Error("RNX Cloud simulator create returned an invalid box id");
327
+ }
328
+ const simulator = readSimulatorCreate(
329
+ parsed.simulator,
330
+ this.session.artifact.id,
331
+ this.session.artifact.bytes
332
+ );
333
+ const pooled = new _NanoBox({
334
+ ...this.session,
335
+ simId: simulator.simId,
336
+ simulatorToken: simulator.token,
337
+ claim: simulator.claim
338
+ });
339
+ await pooled.confirm();
340
+ return pooled;
341
+ }
342
+ async close() {
343
+ const response = await fetch(
344
+ `${this.session.origin}/v1/boxes/${encodeURIComponent(this.session.boxId)}`,
345
+ {
346
+ method: "DELETE",
347
+ headers: { authorization: `Bearer ${this.session.boxToken}` }
348
+ }
349
+ );
350
+ const text = await response.text();
351
+ if (!response.ok && response.status !== 404) {
352
+ throw responseError(response.status, text);
353
+ }
354
+ }
355
+ };
356
+ async function createNanoBox(input) {
357
+ if (input.artifact.byteLength > RNX_CLOUD_MAX_ARTIFACT_BYTES) {
358
+ throw new Error(
359
+ `rnx Cloud artifact is ${input.artifact.byteLength} bytes and exceeds the ${RNX_CLOUD_MAX_ARTIFACT_BYTES}-byte limit`
360
+ );
361
+ }
362
+ if (input.artifact.byteLength <= 0) {
363
+ throw new Error("rnx Cloud artifact is empty");
364
+ }
365
+ readJsArtifact(input.artifact);
366
+ const origin = resolveOrigin(input.origin);
367
+ const sha256 = await sha256Hex(input.artifact);
368
+ if (input.sha256 && input.sha256 !== sha256) {
369
+ throw new Error("rnx Cloud artifact sha256 does not match the provided digest");
370
+ }
371
+ const device = input.device?.trim() || DEFAULT_DEVICE;
372
+ let response;
373
+ try {
374
+ response = await fetch(`${origin}/v1/boxes`, {
375
+ method: "POST",
376
+ headers: {
377
+ authorization: input.authorization,
378
+ "content-type": "application/javascript",
379
+ "x-rnx-box-size": "nano",
380
+ "x-rnx-artifact-sha256": sha256,
381
+ "x-rnx-platform": "ios",
382
+ "x-rnx-device": device
383
+ },
384
+ body: copyArrayBuffer(input.artifact)
385
+ });
386
+ } catch (error) {
387
+ throw new Error(
388
+ `could not reach RNX Cloud at ${origin}: ${error instanceof Error ? error.message : String(error)}`
389
+ );
390
+ }
391
+ const responseText = await response.text();
392
+ if (!response.ok) throw responseError(response.status, responseText);
393
+ let parsed;
394
+ try {
395
+ parsed = JSON.parse(responseText);
396
+ } catch {
397
+ throw new Error("RNX Cloud create returned unreadable JSON");
398
+ }
399
+ const created = readBoxCreate(parsed, input.artifact.byteLength, sha256);
400
+ const box = new NanoBox({
401
+ origin,
402
+ authorization: input.authorization,
403
+ boxId: created.receipt.boxId,
404
+ boxToken: created.boxToken,
405
+ simId: created.receipt.simulator.simId,
406
+ simulatorToken: created.simulatorToken,
407
+ claim: created.receipt.simulator.claim,
408
+ artifact: created.receipt.artifact
409
+ });
410
+ await box.confirm();
411
+ return box;
412
+ }
413
+ export {
414
+ NanoBox,
415
+ RNX_CLOUD_COMMAND_TYPES,
416
+ RNX_CLOUD_MAX_ARTIFACT_BYTES,
417
+ createNanoBox,
418
+ isRnxCloudCommandType
419
+ };
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "rnx";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/metro-fingerprint-registry.ts
4
4
  var RNX_METRO_FINGERPRINT_SCHEMA_VERSION = 2;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/metro-production-bundle.ts
4
4
  var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.420 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.421 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rnxsim",
3
- "version": "0.1.420",
3
+ "version": "0.1.421",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for rnx.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -130,6 +130,13 @@
130
130
  "import": "./dist-lib/cloud-contract.mjs",
131
131
  "default": "./dist-lib/cloud-contract.cjs"
132
132
  },
133
+ "./cloud": {
134
+ "types": "./src/cloud.ts",
135
+ "source": "./src/cloud.ts",
136
+ "bun": "./src/cloud.ts",
137
+ "import": "./dist-lib/cloud.mjs",
138
+ "default": "./dist-lib/cloud.cjs"
139
+ },
133
140
  "./capture-contract": {
134
141
  "types": "./src/capture-contract.ts",
135
142
  "source": "./src/capture-contract.ts",