rnxsim 0.1.451 → 0.1.453

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 (63) hide show
  1. package/cli/bridge-flow-runner.ts +41 -13
  2. package/cli/cloud-client.ts +10 -0
  3. package/cli/commands/control.ts +52 -7
  4. package/cli/commands/debug.ts +42 -11
  5. package/cli/commands/inspect/core.ts +33 -13
  6. package/cli/commands/inspect/settling.ts +35 -3
  7. package/cli/drivers/playwright.ts +2 -4
  8. package/cli/ws-bridge.ts +72 -5
  9. package/dist-lib/agent-daemon-client.cjs +1 -1
  10. package/dist-lib/agent-events.cjs +1 -1
  11. package/dist-lib/agent-identity.cjs +1 -1
  12. package/dist-lib/agent-sessions.cjs +1 -1
  13. package/dist-lib/attached-projects.cjs +1 -1
  14. package/dist-lib/auth/shared-session.cjs +1 -1
  15. package/dist-lib/backend-origin.cjs +1 -1
  16. package/dist-lib/beta.cjs +1 -1
  17. package/dist-lib/beta.mjs +1 -1
  18. package/dist-lib/bridge-constants.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.mjs +1 -1
  21. package/dist-lib/bridge-contract.cjs +1 -1
  22. package/dist-lib/bridge-contract.mjs +1 -1
  23. package/dist-lib/capture-contract.cjs +1 -1
  24. package/dist-lib/capture-contract.mjs +1 -1
  25. package/dist-lib/cli-constants.cjs +1 -1
  26. package/dist-lib/cloud-contract.cjs +1 -1
  27. package/dist-lib/cloud-contract.mjs +1 -1
  28. package/dist-lib/cloud.cjs +1 -1
  29. package/dist-lib/cloud.mjs +1 -1
  30. package/dist-lib/config.cjs +1 -1
  31. package/dist-lib/detox/index.cjs +1 -1
  32. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +89 -8
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +1 -1
  50. package/dist-lib/profiles.cjs +1 -1
  51. package/dist-lib/public-brand.cjs +1 -1
  52. package/dist-lib/react-native-host-modules.cjs +1 -1
  53. package/dist-lib/react-native-host-modules.mjs +1 -1
  54. package/dist-lib/render-mode.cjs +1 -1
  55. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  56. package/dist-lib/sdk.cjs +59 -12
  57. package/dist-lib/sdk.mjs +58 -12
  58. package/dist-lib/skills.cjs +2349 -282
  59. package/dist-lib/vite.cjs +1 -1
  60. package/package.json +1 -1
  61. package/src/flow-timeout-scale.ts +15 -0
  62. package/src/playwright-host-log.ts +16 -0
  63. package/src/sim-client.ts +4 -0
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.451 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.453 | (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.451",
3
+ "version": "0.1.453",
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",
@@ -0,0 +1,15 @@
1
+ // hosted-runner previews reach first-render much slower than local dev: the
2
+ // guest bundle (often tens of MB) re-evals and re-hydrates on every launchApp
3
+ // hard reload, and it is served over a cloudflared tunnel. run.sh sets
4
+ // SOOTSIM_FLOW_TIMEOUT_SCALE for the recording lane so a slow-but-working app
5
+ // clears its waits without per-app timeouts. off (1x) locally, clamped to 1..10.
6
+ //
7
+ // every deadline a hosted launchApp has to clear must use this, or the lane is
8
+ // only half-scaled: the flow runner's own waits scaled while the CLI's
9
+ // post-navigation readiness poll kept a flat ceiling, so a launchApp that was
10
+ // working but slow failed the flow.
11
+ export const FLOW_TIMEOUT_SCALE_ENV = 'SOOTSIM_FLOW_TIMEOUT_SCALE'
12
+
13
+ export function flowTimeoutScale(): number {
14
+ return Math.min(10, Math.max(1, Number(process.env[FLOW_TIMEOUT_SCALE_ENV]) || 1))
15
+ }
@@ -0,0 +1,16 @@
1
+ // the playwright driver writes its browser-host stderr to a tmpdir log, and
2
+ // that log carries the only hardware-WebGL proof the hosted recorder accepts.
3
+ // the driver names the file and the recorder scans for it, so the prefix lives
4
+ // here rather than as a literal in both. it was already renamed once
5
+ // (sootsim- -> rnx-) without the recorder following, which silently failed
6
+ // every hosted job with "run completed without hardware WebGL proof" even when
7
+ // the preview itself uploaded fine.
8
+ export const PLAYWRIGHT_HOST_LOG_PREFIX = 'rnx-playwright-host-'
9
+
10
+ export function playwrightHostLogName(nowMs: number, pid: number): string {
11
+ return `${PLAYWRIGHT_HOST_LOG_PREFIX}${nowMs.toString(36)}-${pid}.log`
12
+ }
13
+
14
+ export function isPlaywrightHostLog(name: string): boolean {
15
+ return name.startsWith(PLAYWRIGHT_HOST_LOG_PREFIX) && name.endsWith('.log')
16
+ }
package/src/sim-client.ts CHANGED
@@ -261,6 +261,10 @@ export class SimClient implements WsBridge, InspectBridge {
261
261
  return this.bridge.listSims()
262
262
  }
263
263
 
264
+ resolveReloadedSim(retiredSimId: string): Promise<string | null> {
265
+ return this.bridge.resolveReloadedSim(retiredSimId)
266
+ }
267
+
264
268
  focusSim(simId: string = this.simId): Promise<any> {
265
269
  return this.bridge.focusSim(simId)
266
270
  }