rnxsim 0.1.322 → 0.1.324

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 (157) hide show
  1. package/cli/commands/debug.ts +7 -1
  2. package/dist-cli/bin.js +5 -5
  3. package/dist-cli/chunks/{agent-NIJPYKAO.js → agent-LN5HGZZQ.js} +2 -2
  4. package/dist-cli/chunks/{agent-wrapper-VC2VPS6V.js → agent-wrapper-GD7TMRLA.js} +2 -2
  5. package/dist-cli/chunks/{app-fonts-25ZCB34S.js → app-fonts-UB5FYQMD.js} +2 -2
  6. package/dist-cli/chunks/{assert-EGRQFN3F.js → assert-2N6MZAVW.js} +2 -2
  7. package/dist-cli/chunks/{auth-LM3QTK3U.js → auth-RRGIXONZ.js} +2 -2
  8. package/dist-cli/chunks/{beta-FYZFHWX5.js → beta-4PIGFQQQ.js} +2 -2
  9. package/dist-cli/chunks/{camera-UQDC4ALH.js → camera-PNV4QHFF.js} +2 -2
  10. package/dist-cli/chunks/{chunk-CE2KHJUN.js → chunk-2PBHFK6F.js} +2 -2
  11. package/dist-cli/chunks/{chunk-ZC2AAKPI.js → chunk-4XLMNRNK.js} +3 -3
  12. package/dist-cli/chunks/{chunk-ELCODHRJ.js → chunk-54A5K5AU.js} +1 -1
  13. package/dist-cli/chunks/{chunk-V55REGJU.js → chunk-54THO3KL.js} +2 -2
  14. package/dist-cli/chunks/{chunk-LL2KBYX3.js → chunk-5UB2U5FP.js} +2 -2
  15. package/dist-cli/chunks/{chunk-DGMNOCZD.js → chunk-7C64NSHV.js} +1 -1
  16. package/dist-cli/chunks/{chunk-KEGJOMDP.js → chunk-7GNSTEOK.js} +1 -1
  17. package/dist-cli/chunks/{chunk-YLVQZKVD.js → chunk-7HE7BQCQ.js} +1 -1
  18. package/dist-cli/chunks/{chunk-3WOVZJLU.js → chunk-7QS7XX4W.js} +1 -1
  19. package/dist-cli/chunks/{chunk-7DE3NNKL.js → chunk-7RLEHBVV.js} +2 -2
  20. package/dist-cli/chunks/{chunk-NTZY74WJ.js → chunk-7WWEMNWX.js} +2 -2
  21. package/dist-cli/chunks/{chunk-LIROKJ67.js → chunk-CGIF4NMF.js} +2 -2
  22. package/dist-cli/chunks/{chunk-JSAH72EY.js → chunk-CUNQG6UV.js} +1 -1
  23. package/dist-cli/chunks/{chunk-3XLVQ3GF.js → chunk-CXBCH2CF.js} +1 -1
  24. package/dist-cli/chunks/{chunk-7F56NHVF.js → chunk-D7PJO63L.js} +1 -1
  25. package/dist-cli/chunks/{chunk-3GQZOUFV.js → chunk-EODEZB5P.js} +1 -1
  26. package/dist-cli/chunks/{chunk-ZHMEYZXY.js → chunk-FWHU7F62.js} +3 -3
  27. package/dist-cli/chunks/{chunk-Q6MFP4GM.js → chunk-GJD4O3J4.js} +2 -2
  28. package/dist-cli/chunks/{chunk-2NOBSTP5.js → chunk-GNUCWRYC.js} +1 -1
  29. package/dist-cli/chunks/{chunk-OFQYHISQ.js → chunk-HQTSCX7V.js} +1 -1
  30. package/dist-cli/chunks/{chunk-QEYTEHPY.js → chunk-IWUOHKPP.js} +2 -2
  31. package/dist-cli/chunks/{chunk-XXE5T2Y4.js → chunk-IXQPFAF7.js} +2 -2
  32. package/dist-cli/chunks/{chunk-DWBZFEW4.js → chunk-IYWYKWWX.js} +2 -2
  33. package/dist-cli/chunks/{chunk-FANHU6DO.js → chunk-JD5CHJTR.js} +1 -1
  34. package/dist-cli/chunks/{chunk-7BTA6IWV.js → chunk-KATIREON.js} +1 -1
  35. package/dist-cli/chunks/{chunk-QDA7WBVP.js → chunk-KFAOXL5B.js} +2 -2
  36. package/dist-cli/chunks/{chunk-LBBG4KRO.js → chunk-LRWEOO3A.js} +2 -2
  37. package/dist-cli/chunks/{chunk-NAGC5CEK.js → chunk-LS7X3QLL.js} +1 -1
  38. package/dist-cli/chunks/{chunk-A7ZEPRJ2.js → chunk-M4NQQUFR.js} +1 -1
  39. package/dist-cli/chunks/{chunk-QSG5HOZY.js → chunk-MFWNZEL5.js} +3 -3
  40. package/dist-cli/chunks/{chunk-MB5ULVG6.js → chunk-MOT75TJL.js} +1 -1
  41. package/dist-cli/chunks/{chunk-2QVSKVOD.js → chunk-MTDJ7L2P.js} +2 -2
  42. package/dist-cli/chunks/{chunk-PD4P6QHH.js → chunk-NDHMADU7.js} +2 -2
  43. package/dist-cli/chunks/{chunk-2ANXMVBO.js → chunk-NSHPXAVE.js} +2 -2
  44. package/dist-cli/chunks/{chunk-6IRBNOOV.js → chunk-OBDF2FDC.js} +2 -2
  45. package/dist-cli/chunks/{chunk-TPMNXUJG.js → chunk-OFLFRW6O.js} +2 -2
  46. package/dist-cli/chunks/{chunk-PFOKZTPT.js → chunk-PN2KPTN5.js} +2 -2
  47. package/dist-cli/chunks/{chunk-OQRKG2P4.js → chunk-PSIXVL6N.js} +2 -2
  48. package/dist-cli/chunks/{chunk-7C3OKBWI.js → chunk-PZRFERPK.js} +2 -2
  49. package/dist-cli/chunks/{chunk-UYQQFHDT.js → chunk-QADGABXD.js} +1 -1
  50. package/dist-cli/chunks/{chunk-QCJJ6JFE.js → chunk-R4IHFJ4G.js} +1 -1
  51. package/dist-cli/chunks/{chunk-JYRXXBPI.js → chunk-RJOHZ27C.js} +1 -1
  52. package/dist-cli/chunks/{chunk-MB7JVBJU.js → chunk-RWY7FEQA.js} +2 -2
  53. package/dist-cli/chunks/{chunk-NSRMQ6FV.js → chunk-RXAAHL37.js} +1 -1
  54. package/dist-cli/chunks/{chunk-NTMUMXCK.js → chunk-RXN3F3HA.js} +2 -2
  55. package/dist-cli/chunks/{chunk-6UHHMD4E.js → chunk-SVHAEF4X.js} +2 -2
  56. package/dist-cli/chunks/{chunk-65I23OCS.js → chunk-TZQGIL2G.js} +2 -2
  57. package/dist-cli/chunks/{chunk-TCSYA6ZZ.js → chunk-VEZOYBBR.js} +2 -2
  58. package/dist-cli/chunks/{chunk-CGXAANRC.js → chunk-VVXSNTF7.js} +2 -2
  59. package/dist-cli/chunks/{chunk-4YHMTHGT.js → chunk-XJRLBNGX.js} +2 -2
  60. package/dist-cli/chunks/{chunk-KGICM2XE.js → chunk-XTYUXATY.js} +3 -3
  61. package/dist-cli/chunks/{chunk-GW56WWP6.js → chunk-ZWK5MA3P.js} +2 -2
  62. package/dist-cli/chunks/{chunk-YZFQB7QN.js → chunk-ZZXTQOHH.js} +2 -2
  63. package/dist-cli/chunks/{cleanup-ON3E4JL6.js → cleanup-FWZQAALS.js} +2 -2
  64. package/dist-cli/chunks/cli-version-3AIZ3DCQ.js +4 -0
  65. package/dist-cli/chunks/{compat-CKMXRYA4.js → compat-6LR7GD4J.js} +2 -2
  66. package/dist-cli/chunks/{config-X4WIKW3I.js → config-5QWW6BCW.js} +2 -2
  67. package/dist-cli/chunks/{control-A5ZZW5EU.js → control-CBBCMJKE.js} +2 -2
  68. package/dist-cli/chunks/daemon-YFRH5QZO.js +4 -0
  69. package/dist-cli/chunks/{debug-3F3PSBPT.js → debug-MILMQ2LG.js} +12 -12
  70. package/dist-cli/chunks/{desktop-SEJJPJ3V.js → desktop-2K6WDFNX.js} +3 -3
  71. package/dist-cli/chunks/{detox-QIYTPSDJ.js → detox-AKQPXNGJ.js} +2 -2
  72. package/dist-cli/chunks/{device-RQRRQTCO.js → device-57MORRDI.js} +2 -2
  73. package/dist-cli/chunks/{diagnose-5XDTCE65.js → diagnose-HCGGP3LD.js} +2 -2
  74. package/dist-cli/chunks/{disk-cleanup-TWXUCTQK.js → disk-cleanup-TGJRTQXA.js} +2 -2
  75. package/dist-cli/chunks/drivers-Y6I2PG6H.js +4 -0
  76. package/dist-cli/chunks/{film-B635EXRH.js → film-4EFTTQLJ.js} +3 -3
  77. package/dist-cli/chunks/flow-AHV5SUN2.js +4 -0
  78. package/dist-cli/chunks/help-XMYAWZHR.js +4 -0
  79. package/dist-cli/chunks/{hidden-runtime-alias-F7HACNCM.js → hidden-runtime-alias-PSJ4VU5H.js} +2 -2
  80. package/dist-cli/chunks/{home-paths-CAGGHUP5.js → home-paths-KJ34SJFL.js} +2 -2
  81. package/dist-cli/chunks/inspect-42JF4CBA.js +4 -0
  82. package/dist-cli/chunks/install-desktop-33EEOKJN.js +4 -0
  83. package/dist-cli/chunks/{login-F3SDVGFK.js → login-FFGB7CCO.js} +4 -4
  84. package/dist-cli/chunks/{logout-5QBBOBVF.js → logout-NSHBJTX3.js} +2 -2
  85. package/dist-cli/chunks/{maestro-ARCXV6EH.js → maestro-NW66IVQM.js} +3 -3
  86. package/dist-cli/chunks/{maestro-generate-OCTJPXNW.js → maestro-generate-6NUMXPNT.js} +3 -3
  87. package/dist-cli/chunks/{mode-SZXV7VMA.js → mode-PAEB3YML.js} +2 -2
  88. package/dist-cli/chunks/{optional-demo-registry-M7QJADLQ.js → optional-demo-registry-Z7MF7N7R.js} +2 -2
  89. package/dist-cli/chunks/{perf-4HS5IOL7.js → perf-7JXEREP4.js} +2 -2
  90. package/dist-cli/chunks/{permissions-NVGYFJZL.js → permissions-HB7G5PHG.js} +2 -2
  91. package/dist-cli/chunks/{record-LN3YDVDM.js → record-EWDJQ6FI.js} +3 -3
  92. package/dist-cli/chunks/{report-issue-JNMZO232.js → report-issue-I3MEXXUB.js} +2 -2
  93. package/dist-cli/chunks/reset-3SZ23JLZ.js +4 -0
  94. package/dist-cli/chunks/runtime-V5S5HZMR.js +4 -0
  95. package/dist-cli/chunks/{screenshot-command-X6ATRVDW.js → screenshot-command-5IV5CFLX.js} +3 -3
  96. package/dist-cli/chunks/{screenshot-layers-6PXNEVPM.js → screenshot-layers-JTTIYSEU.js} +2 -2
  97. package/dist-cli/chunks/{screenshots-capture-BFEHOILE.js → screenshots-capture-D6XO4KLF.js} +2 -2
  98. package/dist-cli/chunks/{serve-QDSSCYVS.js → serve-LFUUEUOH.js} +2 -2
  99. package/dist-cli/chunks/{setup-MTQUOG7U.js → setup-HEVRXLGV.js} +2 -2
  100. package/dist-cli/chunks/{skills-EIIZDHXN.js → skills-J3Q747ZF.js} +2 -2
  101. package/dist-cli/chunks/{state-ZF6VTLHG.js → state-UMOY6BYA.js} +2 -2
  102. package/dist-cli/chunks/{storage-NXFVH4X4.js → storage-GAZF3GDN.js} +2 -2
  103. package/dist-cli/chunks/store-E4YTO2AI.js +4 -0
  104. package/dist-cli/chunks/telemetry-EBRQ4R2H.js +4 -0
  105. package/dist-cli/chunks/{timeline-MZPEKVIX.js → timeline-UXS4V5BN.js} +2 -2
  106. package/dist-cli/chunks/{upgrade-TUE2UOWE.js → upgrade-3WEASDWY.js} +2 -2
  107. package/dist-cli/chunks/upload-VV7L46SL.js +4 -0
  108. package/dist-cli/chunks/{version-MDQABDC6.js → version-ORUO3BCK.js} +2 -2
  109. package/dist-cli/chunks/{web-OWNPYPJE.js → web-YOX4K2AT.js} +2 -2
  110. package/dist-cli/chunks/{what-happened-EL6RNNAK.js → what-happened-ZWQJT7VC.js} +2 -2
  111. package/dist-lib/agent-daemon-client.cjs +1 -1
  112. package/dist-lib/agent-events.cjs +1 -1
  113. package/dist-lib/agent-identity.cjs +1 -1
  114. package/dist-lib/agent-sessions.cjs +1 -1
  115. package/dist-lib/attached-projects.cjs +1 -1
  116. package/dist-lib/auth/shared-session.cjs +1 -1
  117. package/dist-lib/backend-origin.cjs +1 -1
  118. package/dist-lib/beta.cjs +1 -1
  119. package/dist-lib/beta.mjs +1 -1
  120. package/dist-lib/bridge-constants.cjs +1 -1
  121. package/dist-lib/bridge-contract.cjs +1 -1
  122. package/dist-lib/cli-constants.cjs +1 -1
  123. package/dist-lib/config.cjs +1 -1
  124. package/dist-lib/detox/index.cjs +1 -1
  125. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  126. package/dist-lib/home-paths.cjs +1 -1
  127. package/dist-lib/host/bridge-host.cjs +1 -1
  128. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  129. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  130. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  131. package/dist-lib/host/websocket-proxy.cjs +1 -1
  132. package/dist-lib/index.cjs +1 -1
  133. package/dist-lib/jump-to-source-babel.cjs +1 -1
  134. package/dist-lib/menu.cjs +1 -1
  135. package/dist-lib/menu.mjs +1 -1
  136. package/dist-lib/metro.cjs +1 -1
  137. package/dist-lib/profiles.cjs +1 -1
  138. package/dist-lib/public-brand.cjs +1 -1
  139. package/dist-lib/render-mode.cjs +1 -1
  140. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  141. package/dist-lib/sdk.cjs +1 -1
  142. package/dist-lib/sdk.mjs +1 -1
  143. package/dist-lib/skills.cjs +1 -1
  144. package/dist-lib/vite.cjs +1 -1
  145. package/package.json +1 -1
  146. package/dist-cli/chunks/cli-version-GLQEMIXG.js +0 -4
  147. package/dist-cli/chunks/daemon-W2CJ26LR.js +0 -4
  148. package/dist-cli/chunks/drivers-KFM577QG.js +0 -4
  149. package/dist-cli/chunks/flow-MDX2RDFB.js +0 -4
  150. package/dist-cli/chunks/help-WLKSYDIZ.js +0 -4
  151. package/dist-cli/chunks/inspect-5YNOPNYF.js +0 -4
  152. package/dist-cli/chunks/install-desktop-BA2GDZ6R.js +0 -4
  153. package/dist-cli/chunks/reset-TGFAY754.js +0 -4
  154. package/dist-cli/chunks/runtime-WTDD5CIV.js +0 -4
  155. package/dist-cli/chunks/store-7FNPDD2N.js +0 -4
  156. package/dist-cli/chunks/telemetry-6PHXRU4L.js +0 -4
  157. package/dist-cli/chunks/upload-QC572ITM.js +0 -4
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-LBBG4KRO.js";import"./chunk-YZFQB7QN.js";import"./chunk-YLVQZKVD.js";import"./chunk-OQRKG2P4.js";import"./chunk-MB7JVBJU.js";import"./chunk-7BTA6IWV.js";import"./chunk-NTMUMXCK.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import"./chunk-XXE5T2Y4.js";import"./chunk-CGXAANRC.js";import"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-CE2KHJUN.js";import"./chunk-65I23OCS.js";import"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";export{e as applyRuntimeGenerationOrigin,i as buildOpenUrl,h as buildShellUrl,v as closeSimsBulk,c as ensureBridgeForOpen,b as normalizeDeepLinkTarget,w as planBulkCloseTargets,n as playwrightHostPidForSim,k as printConnectedSims,d as resolveBundleTarget,f as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,g as resolveShellBaseUrlForBridgePort,u as runClaimCommand,x as runCloseCommand,t as runFocusCommand,q as runLinkCommand,r as runOpenCommand,s as runUseCommand,o as signalDriverLaunchConnected,j as summarizeSimUrl,p as terminatePlaywrightHostsForSims,l as waitForSimMatch,m as waitForSimMatchOrHostExit};
4
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";export{e as applyRuntimeGenerationOrigin,i as buildOpenUrl,h as buildShellUrl,v as closeSimsBulk,c as ensureBridgeForOpen,b as normalizeDeepLinkTarget,w as planBulkCloseTargets,n as playwrightHostPidForSim,k as printConnectedSims,d as resolveBundleTarget,f as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,g as resolveShellBaseUrlForBridgePort,u as runClaimCommand,x as runCloseCommand,t as runFocusCommand,q as runLinkCommand,r as runOpenCommand,s as runUseCommand,o as signalDriverLaunchConnected,j as summarizeSimUrl,p as terminatePlaywrightHostsForSims,l as waitForSimMatch,m as waitForSimMatchOrHostExit};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{a,b,c,d,e,f}from"./chunk-VEZOYBBR.js";import"./chunk-PN2KPTN5.js";import"./chunk-NDHMADU7.js";import"./chunk-KFAOXL5B.js";import"./chunk-5UB2U5FP.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-NSHPXAVE.js";import"./chunk-JD5CHJTR.js";import"./chunk-M4NQQUFR.js";import"./chunk-CUNQG6UV.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,e as teardownDaemonService,d as teardownLegacyMacDaemonArtifacts,f as teardownSootsimHome};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{f as p,m as R}from"./chunk-CGXAANRC.js";import{L as N,M as D,N as O,O as T,P as $}from"./chunk-DGMNOCZD.js";import{q as A,s as _,u as S}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";var F=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],L="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function I(){console.log(`
4
+ import{f as b,m as C}from"./chunk-VVXSNTF7.js";import{L as N,M as D,N as O,O as T,P as k}from"./chunk-7C64NSHV.js";import{q as A,s as _,u as S}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";var B=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],F="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function R(){console.log(`
5
5
  rnxsim debug \u2014 drive __sootsimDebug from the terminal
6
6
 
7
7
  usage:
@@ -9,7 +9,7 @@ usage:
9
9
 
10
10
  subcommands:
11
11
  enable <channels> turn on one or more debug channels
12
- channels: ${F.slice(0,-1).join(", ")}
12
+ channels: ${B.slice(0,-1).join(", ")}
13
13
  or 'all' for every channel
14
14
  disable <channels> turn off one or more debug channels (or 'all')
15
15
  toggle <channel> flip a single channel
@@ -77,7 +77,7 @@ examples:
77
77
  rnxsim debug trace shell 120
78
78
  rnxsim debug trace anim on 3 240
79
79
  rnxsim debug trace anim 3 60
80
- `)}function C(t){return t?t.split(",").map(a=>a.trim()).filter(Boolean):[]}function i(t,a){return t===void 0?"":JSON.stringify(t,null,a?2:0)}function k(t,a=240){let d=Number.isFinite(a)&&a>0?Math.max(1,Math.round(a)):240,m=JSON.stringify(L),h=JSON.stringify(q);return t==="on"?`(() => {
80
+ `)}function I(t){return t?t.split(",").map(a=>a.trim()).filter(Boolean):[]}function i(t,a){return t===void 0?"":JSON.stringify(t,null,a?2:0)}function $(t,a=240){let d=Number.isFinite(a)&&a>0?Math.max(1,Math.round(a)):240,m=JSON.stringify(F),f=JSON.stringify(q);return t==="on"?`(() => {
81
81
  const root = window
82
82
  const store = root[${m}] || (root[${m}] = {
83
83
  enabled: false,
@@ -89,7 +89,7 @@ examples:
89
89
  })
90
90
  store.limit = ${d}
91
91
  store.enabled = true
92
- const currentHook = root[${h}]
92
+ const currentHook = root[${f}]
93
93
  if (store.hook !== currentHook) {
94
94
  store.prevHook = typeof currentHook === 'function' ? currentHook : undefined
95
95
  }
@@ -110,7 +110,7 @@ examples:
110
110
  }
111
111
  }
112
112
  }
113
- root[${h}] = store.hook
113
+ root[${f}] = store.hook
114
114
  return {
115
115
  enabled: true,
116
116
  limit: store.limit,
@@ -121,8 +121,8 @@ examples:
121
121
  const store = root[${m}]
122
122
  if (!store) return { enabled: false, limit: 0, count: 0 }
123
123
  store.enabled = false
124
- if (root[${h}] === store.hook) {
125
- root[${h}] = typeof store.prevHook === 'function' ? store.prevHook : undefined
124
+ if (root[${f}] === store.hook) {
125
+ root[${f}] = typeof store.prevHook === 'function' ? store.prevHook : undefined
126
126
  }
127
127
  return {
128
128
  enabled: false,
@@ -148,7 +148,7 @@ examples:
148
148
  count: Array.isArray(store?.samples) ? store.samples.length : 0,
149
149
  }
150
150
  })()`}function P(t=50){let a=Number.isFinite(t)&&t>0?Math.max(1,Math.round(t)):50;return`(() => {
151
- const store = window[${JSON.stringify(L)}]
151
+ const store = window[${JSON.stringify(F)}]
152
152
  const all = Array.isArray(store?.samples) ? store.samples : []
153
153
  const samples = all.slice(-${a})
154
154
  const first = samples[0] ?? null
@@ -181,8 +181,8 @@ examples:
181
181
  } : null,
182
182
  samples,
183
183
  }
184
- })()`}async function u(t,a){return S(t,a)}function z(t,a){let d=t.indexOf(a);if(d<0)return null;let m=Number(t[d+1]);return Number.isFinite(m)?m:null}async function J(t){await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'enable').then(() => 'enabled')"),await t.send({type:"screenshot"});let d=(await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'disable').then((s) => ({ imageAudit: s.imageAudit }))"))?.imageAudit;if(!d)throw new Error("compositor returned no image audit");return d}function E(t){return t===null?" - ":t.toFixed(3).padStart(6)}function V(t){let a=t.sourceUri??t.testID??`node ${t.nodeId}`;return a.length<=58?a:`...${a.slice(-55)}`}function W(t,a,d){let h=t.rows.filter(c=>c.shortfall!==null).filter(c=>c.shortfall<d);if(console.log(` ${t.rows.length} images drawn (${t.draws} draws), ${h.length} below ${d} of what their source could deliver`),a.length===0){console.log(" every image delivered its source resolution");return}console.log(""),console.log(" short eff decoded source needed(dev) dest(pt) dpr image");for(let c of a){let x=`${c.decoded.width}x${c.decoded.height}`.padEnd(11),r=(c.vector?"vector":c.intrinsic?`${c.intrinsic.width}x${c.intrinsic.height}`:"?").padEnd(11),w=`${Math.round(c.needed.width)}x${Math.round(c.needed.height)}`.padEnd(12),y=`${Math.round(c.destination.width)}x${Math.round(c.destination.height)}`.padEnd(9);console.log(` ${E(c.shortfall)} ${E(c.effective.width)} ${x} ${r} ${w} ${y} ${c.dpr.toFixed(1)} ${V(c)}`)}}async function X(t,a){let d=A(t,{port:a.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),m=d.positional;(!m[0]||t.includes("--help")||t.includes("-h"))&&(I(),process.exit(0));let c=d.wsPort,x=d.simId,r=!t.includes("--json"),w=x?` --sim ${x}`:"",y=m[0],l=m.slice(1);if(new Set(["state","js","perf","memory","sample-color"]).has(y)){let{runInspect:e}=await import("./inspect-5YNOPNYF.js");await e(["debug",...t],{port:a.port,verbose:a.verbose});return}let o=_(d);try{switch(y){case"enable":{let e=C(l[0]);e.length===0&&(console.error(` usage: rnxsim debug enable <channel[,channel,...]>
185
- known: ${F.join(", ")}`),process.exit(1));let s=await $(o,"enable",e);console.log(i({active:s},r));break}case"disable":{let e=C(l[0]),s=await $(o,"disable",e);console.log(i({active:s},r));break}case"toggle":{let e=l[0];e||(console.error(" usage: rnxsim debug toggle <channel>"),process.exit(1));let s=await u(o,`window.__sootsimDebug.toggle(${JSON.stringify(e)})`);console.log(i({[e]:s},r));break}case"status":{let e=await N(o);console.log(i(e,r));break}case"channels":{let e=await u(o,"window.__sootsimDebug.channels()");console.log(i(e,r));break}case"flags":{let e=await D(o);console.log(i(e,r));break}case"snapshot":{let e=l[0],s=e?`window.__sootsimDebug.snapshot(${JSON.stringify(e)})`:"window.__sootsimDebug.snapshot()",n=await u(o,`(() => { const s = ${s}; if (!s) return null; return { label: s.label, at: s.at, size: s.nodes.size }; })()`);console.log(i(n,r));break}case"snapshots":{let e=await u(o,"window.__sootsimDebug.snapshots()");console.log(i(e,r));break}case"diff":{let e=l[0],s=l[1];(!e||!s)&&(console.error(" usage: rnxsim debug diff <labelA> <labelB>"),process.exit(1));let n=`(() => {
184
+ })()`}async function u(t,a){return S(t,a)}function z(t,a){let d=t.indexOf(a);if(d<0)return null;let m=Number(t[d+1]);return Number.isFinite(m)?m:null}async function J(t){await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'enable').then(() => 'enabled')"),await t.send({type:"screenshot"});let d=(await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'disable').then((s) => ({ imageAudit: s.imageAudit }))"))?.imageAudit;if(!d)throw new Error("compositor returned no image audit");return d}function E(t){return t===null?" - ":t.toFixed(3).padStart(6)}function V(t){let a=t.sourceUri??t.testID??`node ${t.nodeId}`;return a.length<=58?a:`...${a.slice(-55)}`}function W(t,a,d){let f=t.rows.filter(c=>c.shortfall!==null).filter(c=>c.shortfall<d);if(console.log(` ${t.rows.length} images drawn (${t.draws} draws), ${f.length} below ${d} of what their source could deliver`),console.log(` sampling: mipmapped ${t.samplingCounts.mipmapped} \xB7 cubic ${t.samplingCounts.cubic} \xB7 repeat ${t.samplingCounts.repeat} \xB7 none ${t.samplingCounts.none}`),a.length===0){console.log(" every image delivered its source resolution");return}console.log(""),console.log(" short eff decoded source needed(dev) dest(pt) dpr image");for(let c of a){let x=`${c.decoded.width}x${c.decoded.height}`.padEnd(11),r=(c.vector?"vector":c.intrinsic?`${c.intrinsic.width}x${c.intrinsic.height}`:"?").padEnd(11),w=`${Math.round(c.needed.width)}x${Math.round(c.needed.height)}`.padEnd(12),y=`${Math.round(c.destination.width)}x${Math.round(c.destination.height)}`.padEnd(9);console.log(` ${E(c.shortfall)} ${E(c.effective.width)} ${x} ${r} ${w} ${y} ${c.dpr.toFixed(1)} ${V(c)}`)}}async function X(t,a){let d=A(t,{port:a.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),m=d.positional;(!m[0]||t.includes("--help")||t.includes("-h"))&&(R(),process.exit(0));let c=d.wsPort,x=d.simId,r=!t.includes("--json"),w=x?` --sim ${x}`:"",y=m[0],l=m.slice(1);if(new Set(["state","js","perf","memory","sample-color"]).has(y)){let{runInspect:e}=await import("./inspect-42JF4CBA.js");await e(["debug",...t],{port:a.port,verbose:a.verbose});return}let o=_(d);try{switch(y){case"enable":{let e=I(l[0]);e.length===0&&(console.error(` usage: rnxsim debug enable <channel[,channel,...]>
185
+ known: ${B.join(", ")}`),process.exit(1));let s=await k(o,"enable",e);console.log(i({active:s},r));break}case"disable":{let e=I(l[0]),s=await k(o,"disable",e);console.log(i({active:s},r));break}case"toggle":{let e=l[0];e||(console.error(" usage: rnxsim debug toggle <channel>"),process.exit(1));let s=await u(o,`window.__sootsimDebug.toggle(${JSON.stringify(e)})`);console.log(i({[e]:s},r));break}case"status":{let e=await N(o);console.log(i(e,r));break}case"channels":{let e=await u(o,"window.__sootsimDebug.channels()");console.log(i(e,r));break}case"flags":{let e=await D(o);console.log(i(e,r));break}case"snapshot":{let e=l[0],s=e?`window.__sootsimDebug.snapshot(${JSON.stringify(e)})`:"window.__sootsimDebug.snapshot()",n=await u(o,`(() => { const s = ${s}; if (!s) return null; return { label: s.label, at: s.at, size: s.nodes.size }; })()`);console.log(i(n,r));break}case"snapshots":{let e=await u(o,"window.__sootsimDebug.snapshots()");console.log(i(e,r));break}case"diff":{let e=l[0],s=l[1];(!e||!s)&&(console.error(" usage: rnxsim debug diff <labelA> <labelB>"),process.exit(1));let n=`(() => {
186
186
  const d = window.__sootsimDebug.diff(${JSON.stringify(e)}, ${JSON.stringify(s)});
187
187
  if (!d) return null;
188
188
  return {
@@ -197,4 +197,4 @@ examples:
197
197
  while it records, paint boundaries rebuild and raster blits are
198
198
  bypassed, so every image on screen should reach the draw path.
199
199
  zero draws means either nothing on screen is an image, or the audit
200
- is not attached to the surface that paints.`),process.exit(2));let n=s.rows.filter(g=>g.shortfall!==null&&g.shortfall<e);r?W(s,t.includes("--all")?s.rows:n,e):console.log(i({...s,minimum:e,under:n.length},!1)),n.length>0&&process.exit(1);break}case"find":{let e=l[0];if(e==="sheets"||e==="portals"||e==="boundaries"){let s=await O(o,e);console.log(i(s,r))}else console.error(" usage: rnxsim debug find <sheets|portals|boundaries>"),process.exit(1);break}case"trace":{let e=l[0],s=l[1];if(e==="anim"){let n=l[1];if((!n||n==="--help"||n==="-h")&&(console.error(" usage: rnxsim debug trace anim <on|off|status|clear|<id>> [id|limit]"),process.exit(1)),n==="on"){let f=l[2]??"all",b=l[3]?Number(l[3]):void 0,v=f==="all"?"all":Number(f);v!=="all"&&!Number.isFinite(v)&&(console.error(` invalid target: ${f}`),process.exit(1)),await p(o,"enableAnimationTrace",v,b);let j=await p(o,"listAnimationTraces");console.log(i({enabled:v,traces:j},r));break}if(n==="off"){let f=l[2]??"all",b=f==="all"?"all":Number(f);b!=="all"&&!Number.isFinite(b)&&(console.error(` invalid target: ${f}`),process.exit(1)),await p(o,"disableAnimationTrace",b),console.log(i({disabled:b},r));break}if(n==="status"||n==="clear"){n==="clear"&&await p(o,"disableAnimationTrace","all");let f=await p(o,"listAnimationTraces");console.log(i({traces:f},r));break}let g=Number(n);Number.isFinite(g)||(console.error(` invalid id: ${n}`),process.exit(1));let B=l[2]?Number(l[2]):void 0,H=await p(o,"getAnimationTrace",g,B);console.log(i({id:g,samples:H},r));break}if(e!=="shell"&&(console.error(" usage: rnxsim debug trace <shell|anim> [args]"),process.exit(1)),!s||/^[0-9]+$/.test(s)){let n=s?Number(s):50,g=await u(o,P(n));console.log(i(g,r));break}if(s==="on"){let n=l[2]?Number(l[2]):240,g=await u(o,k("on",n));console.log(i(g,r));break}if(s==="off"){let n=await u(o,k("off"));console.log(i(n,r));break}if(s==="clear"){let n=await u(o,k("clear"));console.log(i(n,r));break}if(s==="status"){let n=await u(o,k("status"));console.log(i(n,r));break}console.error(" usage: rnxsim debug trace shell [on [limit]|off|status|clear|recentLimit]"),process.exit(1)}case"record":{let e=l[0],n=await u(o,`window.__sootsimDebug.record(${e==="on"?"true":e==="off"?"false":"undefined"})`);console.log(i({recording:n},r));break}case"recent":{let e=l[0],s=l[1]?Number(l[1]):50,n=await T(o,e,s);console.log(i(n,r));break}case"clear-events":{await u(o,"window.__sootsimDebug.clearEvents()"),console.log(i({cleared:!0},r));break}default:console.error(` unknown subcommand: ${y}`),I(),process.exit(1)}}catch(e){console.error(` debug failed: ${e.message}`),await R(o,{errorsCommand:`rnxsim get errors 5${w}`,warningsCommand:`rnxsim get warnings 5${w}`,requestsCommand:`rnxsim get requests 5${w}`}),process.exit(1)}finally{o.close()}}export{X as runDebug};
200
+ is not attached to the surface that paints.`),process.exit(2));let n=s.rows.filter(g=>g.shortfall!==null&&g.shortfall<e);r?W(s,t.includes("--all")?s.rows:n,e):console.log(i({...s,minimum:e,under:n.length},!1)),n.length>0&&process.exit(1);break}case"find":{let e=l[0];if(e==="sheets"||e==="portals"||e==="boundaries"){let s=await O(o,e);console.log(i(s,r))}else console.error(" usage: rnxsim debug find <sheets|portals|boundaries>"),process.exit(1);break}case"trace":{let e=l[0],s=l[1];if(e==="anim"){let n=l[1];if((!n||n==="--help"||n==="-h")&&(console.error(" usage: rnxsim debug trace anim <on|off|status|clear|<id>> [id|limit]"),process.exit(1)),n==="on"){let p=l[2]??"all",h=l[3]?Number(l[3]):void 0,v=p==="all"?"all":Number(p);v!=="all"&&!Number.isFinite(v)&&(console.error(` invalid target: ${p}`),process.exit(1)),await b(o,"enableAnimationTrace",v,h);let j=await b(o,"listAnimationTraces");console.log(i({enabled:v,traces:j},r));break}if(n==="off"){let p=l[2]??"all",h=p==="all"?"all":Number(p);h!=="all"&&!Number.isFinite(h)&&(console.error(` invalid target: ${p}`),process.exit(1)),await b(o,"disableAnimationTrace",h),console.log(i({disabled:h},r));break}if(n==="status"||n==="clear"){n==="clear"&&await b(o,"disableAnimationTrace","all");let p=await b(o,"listAnimationTraces");console.log(i({traces:p},r));break}let g=Number(n);Number.isFinite(g)||(console.error(` invalid id: ${n}`),process.exit(1));let L=l[2]?Number(l[2]):void 0,H=await b(o,"getAnimationTrace",g,L);console.log(i({id:g,samples:H},r));break}if(e!=="shell"&&(console.error(" usage: rnxsim debug trace <shell|anim> [args]"),process.exit(1)),!s||/^[0-9]+$/.test(s)){let n=s?Number(s):50,g=await u(o,P(n));console.log(i(g,r));break}if(s==="on"){let n=l[2]?Number(l[2]):240,g=await u(o,$("on",n));console.log(i(g,r));break}if(s==="off"){let n=await u(o,$("off"));console.log(i(n,r));break}if(s==="clear"){let n=await u(o,$("clear"));console.log(i(n,r));break}if(s==="status"){let n=await u(o,$("status"));console.log(i(n,r));break}console.error(" usage: rnxsim debug trace shell [on [limit]|off|status|clear|recentLimit]"),process.exit(1)}case"record":{let e=l[0],n=await u(o,`window.__sootsimDebug.record(${e==="on"?"true":e==="off"?"false":"undefined"})`);console.log(i({recording:n},r));break}case"recent":{let e=l[0],s=l[1]?Number(l[1]):50,n=await T(o,e,s);console.log(i(n,r));break}case"clear-events":{await u(o,"window.__sootsimDebug.clearEvents()"),console.log(i({cleared:!0},r));break}default:console.error(` unknown subcommand: ${y}`),R(),process.exit(1)}}catch(e){console.error(` debug failed: ${e.message}`),await C(o,{errorsCommand:`rnxsim get errors 5${w}`,warningsCommand:`rnxsim get warnings 5${w}`,requestsCommand:`rnxsim get requests 5${w}`}),process.exit(1)}finally{o.close()}}export{X as runDebug};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as d}from"./chunk-KGICM2XE.js";import"./chunk-OFQYHISQ.js";import{a as u}from"./chunk-ELCODHRJ.js";import{h as m}from"./chunk-LBBG4KRO.js";import"./chunk-YZFQB7QN.js";import"./chunk-YLVQZKVD.js";import"./chunk-OQRKG2P4.js";import{a}from"./chunk-MB7JVBJU.js";import{a as p}from"./chunk-7BTA6IWV.js";import{c}from"./chunk-NTMUMXCK.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import"./chunk-XXE5T2Y4.js";import{a as l}from"./chunk-KEGJOMDP.js";import"./chunk-CGXAANRC.js";import"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-CE2KHJUN.js";import"./chunk-65I23OCS.js";import"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";function k(e){let t=e.indexOf("--port");if(t<0)return;let o=e[t+1],n=o?Number(o):Number.NaN;return(!Number.isInteger(n)||n<=0)&&(console.error(` invalid --port value: ${o||"(missing)"}`),process.exit(1)),n}async function v(e,t){let o=k(e)??t.port;return o?m(String(o)):void 0}async function f(e,t){(e.includes("--help")||e.includes("-h"))&&(console.log(`
4
+ import{a as d}from"./chunk-XTYUXATY.js";import"./chunk-HQTSCX7V.js";import{a as u}from"./chunk-54A5K5AU.js";import{h as m}from"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import{a}from"./chunk-RWY7FEQA.js";import{a as p}from"./chunk-KATIREON.js";import{c}from"./chunk-RXN3F3HA.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import{a as l}from"./chunk-7GNSTEOK.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";function k(e){let t=e.indexOf("--port");if(t<0)return;let o=e[t+1],n=o?Number(o):Number.NaN;return(!Number.isInteger(n)||n<=0)&&(console.error(` invalid --port value: ${o||"(missing)"}`),process.exit(1)),n}async function v(e,t){let o=k(e)??t.port;return o?m(String(o)):void 0}async function f(e,t){(e.includes("--help")||e.includes("-h"))&&(console.log(`
5
5
  rnxsim desktop \u2014 launch the desktop companion
6
6
 
7
7
  usage:
@@ -16,7 +16,7 @@ examples:
16
16
  rnxsim desktop
17
17
  rnxsim desktop --port 5173
18
18
  rnxsim desktop --profile qa
19
- `),process.exit(0));let o=e.find((g,s)=>e[s-1]==="--profile"),n=e.includes("--ephemeral");o&&n&&(console.error(" rnxsim desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=o?c(o).id:void 0,i=p();if(!i){if(u(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run rnxsim desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-BA2GDZ6R.js");await s(["--yes"]),i=p()}i||process.exit(1)}console.log(` launching ${i.path}`);let x=await v(e,t),r=await a.launch({url:x,device:t.device,profileId:h,ephemeralProfile:n});r.launched||(console.error(` ${r.message}`),process.exit(1)),console.log(` ${r.message}`)}function w(){console.log(`
19
+ `),process.exit(0));let o=e.find((g,s)=>e[s-1]==="--profile"),n=e.includes("--ephemeral");o&&n&&(console.error(" rnxsim desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=o?c(o).id:void 0,i=p();if(!i){if(u(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run rnxsim desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-33EEOKJN.js");await s(["--yes"]),i=p()}i||process.exit(1)}console.log(` launching ${i.path}`);let x=await v(e,t),r=await a.launch({url:x,device:t.device,profileId:h,ephemeralProfile:n});r.launched||(console.error(` ${r.message}`),process.exit(1)),console.log(` ${r.message}`)}function w(){console.log(`
20
20
  rnxsim desktop \u2014 launch or install the desktop companion
21
21
 
22
22
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{f as N}from"./chunk-ZHMEYZXY.js";import"./chunk-2NOBSTP5.js";import"./chunk-7DE3NNKL.js";import"./chunk-ZC2AAKPI.js";import"./chunk-ELCODHRJ.js";import"./chunk-UYQQFHDT.js";import"./chunk-QEYTEHPY.js";import"./chunk-LBBG4KRO.js";import"./chunk-YZFQB7QN.js";import"./chunk-YLVQZKVD.js";import"./chunk-OQRKG2P4.js";import"./chunk-MB7JVBJU.js";import"./chunk-7BTA6IWV.js";import"./chunk-NTMUMXCK.js";import{c as F,d as $,e as E}from"./chunk-LIROKJ67.js";import{a as M}from"./chunk-DWBZFEW4.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import"./chunk-XXE5T2Y4.js";import"./chunk-CGXAANRC.js";import"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-NSRMQ6FV.js";import"./chunk-7C3OKBWI.js";import"./chunk-PFOKZTPT.js";import"./chunk-PD4P6QHH.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-TPMNXUJG.js";import"./chunk-CE2KHJUN.js";import"./chunk-65I23OCS.js";import"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-3XLVQ3GF.js";import"./chunk-7F56NHVF.js";import{a as R}from"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";import{spawn as G}from"child_process";import{existsSync as g,mkdirSync as B,readFileSync as C,writeFileSync as y,unlinkSync as U}from"fs";import{tmpdir as k}from"os";import{dirname as q,resolve as a,join as J,relative as H}from"path";function V(){try{let t=import.meta.resolve(`${R.packageName}/detox`);return q(t.startsWith("file://")?t.slice(7):t)}catch{return a(import.meta.dirname,"..","..","detox")}}var z=`
4
+ import{f as N}from"./chunk-FWHU7F62.js";import"./chunk-GNUCWRYC.js";import"./chunk-7RLEHBVV.js";import"./chunk-4XLMNRNK.js";import"./chunk-54A5K5AU.js";import"./chunk-QADGABXD.js";import"./chunk-IWUOHKPP.js";import"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import{c as F,d as $,e as E}from"./chunk-CGIF4NMF.js";import{a as M}from"./chunk-IYWYKWWX.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-RXAAHL37.js";import"./chunk-PZRFERPK.js";import"./chunk-PN2KPTN5.js";import"./chunk-NDHMADU7.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import{a as R}from"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";import{spawn as G}from"child_process";import{existsSync as g,mkdirSync as B,readFileSync as C,writeFileSync as y,unlinkSync as U}from"fs";import{tmpdir as k}from"os";import{dirname as q,resolve as a,join as J,relative as H}from"path";function V(){try{let t=import.meta.resolve(`${R.packageName}/detox`);return q(t.startsWith("file://")?t.slice(7):t)}catch{return a(import.meta.dirname,"..","..","detox")}}var z=`
5
5
  rnxsim detox \u2014 run detox-style tests against an rnx shell
6
6
 
7
7
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import"./chunk-YLVQZKVD.js";import"./chunk-XXE5T2Y4.js";import"./chunk-CE2KHJUN.js";import{b as c,c as s,d as g}from"./chunk-65I23OCS.js";import{q as d,s as l,v as a}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";function h(){console.log(`
4
+ import"./chunk-7HE7BQCQ.js";import"./chunk-IXQPFAF7.js";import"./chunk-2PBHFK6F.js";import{b as c,c as s,d as g}from"./chunk-TZQGIL2G.js";import{q as d,s as l,v as a}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";function h(){console.log(`
5
5
  rnxsim device \u2014 inspect or change the live device preset for a sim
6
6
 
7
7
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{e as v,q as E,s as x,v as b}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";function j(e){return e.ts??e.t??0}function W(e){return typeof e.message=="string"&&e.message.length>0?e.message:Array.isArray(e.args)?e.args.map(r=>typeof r=="string"?r:JSON.stringify(r)).join(" "):""}var B=new Set(["timeline","network","react","console","screen"]);function P(){console.log(`
4
+ import{e as v,q as E,s as x,v as b}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";function j(e){return e.ts??e.t??0}function W(e){return typeof e.message=="string"&&e.message.length>0?e.message:Array.isArray(e.args)?e.args.map(r=>typeof r=="string"?r:JSON.stringify(r)).join(" "):""}var B=new Set(["timeline","network","react","console","screen"]);function P(){console.log(`
5
5
  rnxsim get diagnosis \u2014 compact "what just went wrong?" report
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a,b,c,d,e}from"./chunk-6UHHMD4E.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";export{e as applyAutomaticSootsimCleanup,d as applySootsimCleanup,b as formatSootsimBytes,a as isAutomaticSootsimCleanupComplete,c as planSootsimCleanup};
4
+ import{a,b,c,d,e}from"./chunk-SVHAEF4X.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";export{e as applyAutomaticSootsimCleanup,d as applySootsimCleanup,b as formatSootsimBytes,a as isAutomaticSootsimCleanupComplete,c as planSootsimCleanup};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import"./chunk-HQTSCX7V.js";import{a,b,c,d,e,f,g}from"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import"./chunk-EODEZB5P.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";export{c as ALL_DRIVERS,g as buildDriverListRows,a as electronDriver,d as getAllDrivers,e as getDriver,b as playwrightDriver,f as resolveDriver};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as R,d as L}from"./chunk-NTZY74WJ.js";import{q as x,s as A,w as b}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";import{spawnSync as T}from"node:child_process";import{existsSync as V,mkdirSync as W,unlinkSync as N,writeFileSync as E}from"node:fs";import{homedir as j}from"node:os";import{dirname as q,extname as H,join as K,resolve as I}from"node:path";var n=e=>new Promise(a=>setTimeout(a,e)),X=["--out","--fps","--script","--slow"],J=["--keep-three"],Q=["--background","--gradient","--gradient-angle","--colorway","--environment","--env-shape","--env-spread","--env-size","--env-color","--env-glow","--env-plastic","--room","--focus","--focus-amount","--focus-range"],Y=12e4,Z=16e6;function c(e,a){let s=e.indexOf(a);return s>=0?e[s+1]:void 0}async function r(e,a,s=3e4){return await e.send({type:"evaluate",code:a},{timeoutMs:s})}async function ae(e,a){if(e.length===0||e.includes("--help")||e.includes("-h"))return console.log(`
4
+ import{c as R,d as L}from"./chunk-7WWEMNWX.js";import{q as x,s as A,w as b}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";import{spawnSync as T}from"node:child_process";import{existsSync as V,mkdirSync as W,unlinkSync as N,writeFileSync as E}from"node:fs";import{homedir as j}from"node:os";import{dirname as q,extname as H,join as K,resolve as I}from"node:path";var n=e=>new Promise(a=>setTimeout(a,e)),X=["--out","--fps","--script","--slow"],J=["--keep-three"],Q=["--background","--gradient","--gradient-angle","--colorway","--environment","--env-shape","--env-spread","--env-size","--env-color","--env-glow","--env-plastic","--room","--focus","--focus-amount","--focus-range"],Y=12e4,Z=16e6;function c(e,a){let s=e.indexOf(a);return s>=0?e[s+1]:void 0}async function r(e,a,s=3e4){return await e.send({type:"evaluate",code:a},{timeoutMs:s})}async function ae(e,a){if(e.length===0||e.includes("--help")||e.includes("-h"))return console.log(`
5
5
  rnxsim film \u2014 record a flow flat, replay it on the 3d stage, save a clip
6
6
 
7
7
  usage:
@@ -35,7 +35,7 @@ examples:
35
35
  rnxsim film flows/swap.yaml --script hero-arc --background gradient-tide --out ~/Desktop/swap-3d.mp4
36
36
  rnxsim film flows/login.yaml --colorway deep-blue --environment on --env-shape pane --room on
37
37
  `),0;let s=e.find(d=>!d.startsWith("--")&&/\.ya?ml$/.test(d));if(!s||!V(I(s)))return console.error(` film: flow file not found: ${s??"(none given)"}`),1;let P=Number.parseInt(c(e,"--fps")??"30",10),h=c(e,"--script")??"hero-arc",z=e.includes("--keep-three"),v=s.replace(/^.*\//,"").replace(/\.ya?ml$/,""),O=c(e,"--out"),l=I(O??K(j(),"Desktop","sootsim-films",`${v}.webm`)),S=H(l).toLowerCase()===".mp4";if(S&&T("ffmpeg",["-version"]).status!==0)return console.error(" film: --out ends in .mp4 but ffmpeg is not installed"),console.error(" install ffmpeg or use a .webm output path"),1;let C=x(e,{port:a.port,stripValueFlags:[...X,...Q],stripBooleanFlags:J}),t=A({...C,commandTimeoutMs:6e4});try{let d=await r(t,`(() => { const s = window.SootSim?.bridges?.settings?.get?.() || {}
38
- return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-MDX2RDFB.js"),m=[s],y=c(e,"--sim");y&&m.push("--sim",y);let k=c(e,"--slow");k&&m.push("--slow",k);let f=await G(m);await n(400);let u=Math.min(Date.now()-D,Y);if(await r(t,"window.SootSim?.bridges?.stopRecording?.()"),f!==0)return console.error(` film: flow failed (exit ${f}) \u2014 not filming a broken take`),f;let F=!1;for(let o=0;o<50;o++){await n(400);let i=await r(t,`(() => { const s = window.SootSim?.bridges?.getRecordingState?.()
38
+ return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-AHV5SUN2.js"),m=[s],y=c(e,"--sim");y&&m.push("--sim",y);let k=c(e,"--slow");k&&m.push("--slow",k);let f=await G(m);await n(400);let u=Math.min(Date.now()-D,Y);if(await r(t,"window.SootSim?.bridges?.stopRecording?.()"),f!==0)return console.error(` film: flow failed (exit ${f}) \u2014 not filming a broken take`),f;let F=!1;for(let o=0;o<50;o++){await n(400);let i=await r(t,`(() => { const s = window.SootSim?.bridges?.getRecordingState?.()
39
39
  return { state: s?.state, hasBlob: !!s?.lastVideoBlob } })()`);if(i?.state==="idle"&&i.hasBlob){F=!0;break}}if(!F)return console.error(" film: flow recording never produced a video blob"),1;console.log(` film: flow captured (${(u/1e3).toFixed(1)}s)`),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeMode', true)"),await R(t),await n(1400),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeRecordingEditor', true)");let _=!1;for(let o=0;o<60;o++)if(await n(250),await r(t,`(() => { const rs = window.SootSim?.replayStore
40
40
  return rs?.value?.preview?.surface === 'video' && !!rs?.value?.preview?.flowVideoUrl })()`)){_=!0;break}if(!_)return console.error(" film: recording editor did not seed the replay store"),1;let p=L(e);delete p.script,p.resetPose=!0,await b(t,"SootSim.bridges.threeMode.configure",p),await n(2400),console.log(` film: filming the 3d stage (script: ${h})`);let M=await r(t,`(() => {
41
41
  const c = window.SootSim?.bridges?.threeMode?.getCanvas?.()
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{c,d,e,f,g,h,i}from"./chunk-FWHU7F62.js";import"./chunk-GNUCWRYC.js";import"./chunk-7RLEHBVV.js";import{b as a,c as b}from"./chunk-4XLMNRNK.js";import"./chunk-54A5K5AU.js";import"./chunk-QADGABXD.js";import"./chunk-IWUOHKPP.js";import"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import"./chunk-CGIF4NMF.js";import"./chunk-IYWYKWWX.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-RXAAHL37.js";import"./chunk-PZRFERPK.js";import"./chunk-PN2KPTN5.js";import"./chunk-NDHMADU7.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";export{f as discoverSootsimUrl,c as getLastFlowPreviewUploadResult,d as getLastFlowTraceSteps,h as hoistLeadingSimFlag,a as parseFlowFile,e as resolveAppFrontmatterTarget,g as runFlowPlayback,i as runMaestroAuthoring,b as validateFlowFile};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{a,b,c}from"./chunk-KFAOXL5B.js";import"./chunk-5UB2U5FP.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-NSHPXAVE.js";import"./chunk-JD5CHJTR.js";import"./chunk-M4NQQUFR.js";import"./chunk-CUNQG6UV.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import"./chunk-7C3OKBWI.js";import{b as n}from"./chunk-3XLVQ3GF.js";import"./chunk-JSAH72EY.js";var e=["do","get"];function i(t){if(t.command)return t;let o=t.commandArgs.find(r=>!r.startsWith("-"));if(!o)return t;for(let r of e)if(n(r,o))return{...t,command:r};return t}export{i as resolveHiddenRuntimeAlias};
4
+ import"./chunk-PZRFERPK.js";import{b as n}from"./chunk-CXBCH2CF.js";import"./chunk-CUNQG6UV.js";var e=["do","get"];function i(t){if(t.command)return t;let o=t.commandArgs.find(r=>!r.startsWith("-"));if(!o)return t;for(let r of e)if(n(r,o))return{...t,command:r};return t}export{i as resolveHiddenRuntimeAlias};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";export{b as ACTIVE_RUNTIME_FILE,e as CONFIG_FILE,f as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,d as DEV_BRIDGES_DIR,a as SOOTSIM_HOME_ENV,L as activeRuntimeDir,m as activeRuntimeFile,v as cacheDir,r as cameraFixturesDir,T as claimDaemonLockfile,z as configFilePath,H as consumeRuntimeUpgradeNotice,t as daemonAppBundlePath,s as daemonAppDir,u as daemonAppLauncherPath,w as daemonLockfilePath,y as devBridgeLockfilePath,x as devBridgesDir,n as electronDir,o as electronUserDataDir,p as electronVersionDir,I as ensureSootsimHome,O as isDaemonLockfileFresh,P as isDevBridgeLockfileFresh,i as isDevWorkstation,h as isSootsimDevCheckout,q as profilesDir,J as readActiveRuntime,M as readDaemonLockfile,N as readDevBridgeLockfiles,Q as readLiveRuntimeVersions,E as readOrCreateAnonymousId,C as readPrivacyPreferences,A as readSharedConfig,U as removeDaemonLockfile,V as removeDevBridgeLockfile,l as runtimeDir,F as runtimeUpgradeNoticePath,k as runtimesDir,j as shouldSkipPersistentDaemon,g as sootsimHomeDir,K as writeActiveRuntime,R as writeDaemonLockfile,S as writeDevBridgeLockfile,D as writePrivacyPreferences,G as writeRuntimeUpgradeNotice,B as writeSharedConfig};
4
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";export{b as ACTIVE_RUNTIME_FILE,e as CONFIG_FILE,f as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,d as DEV_BRIDGES_DIR,a as SOOTSIM_HOME_ENV,L as activeRuntimeDir,m as activeRuntimeFile,v as cacheDir,r as cameraFixturesDir,T as claimDaemonLockfile,z as configFilePath,H as consumeRuntimeUpgradeNotice,t as daemonAppBundlePath,s as daemonAppDir,u as daemonAppLauncherPath,w as daemonLockfilePath,y as devBridgeLockfilePath,x as devBridgesDir,n as electronDir,o as electronUserDataDir,p as electronVersionDir,I as ensureSootsimHome,O as isDaemonLockfileFresh,P as isDevBridgeLockfileFresh,i as isDevWorkstation,h as isSootsimDevCheckout,q as profilesDir,J as readActiveRuntime,M as readDaemonLockfile,N as readDevBridgeLockfiles,Q as readLiveRuntimeVersions,E as readOrCreateAnonymousId,C as readPrivacyPreferences,A as readSharedConfig,U as removeDaemonLockfile,V as removeDevBridgeLockfile,l as runtimeDir,F as runtimeUpgradeNoticePath,k as runtimesDir,j as shouldSkipPersistentDaemon,g as sootsimHomeDir,K as writeActiveRuntime,R as writeDaemonLockfile,S as writeDevBridgeLockfile,D as writePrivacyPreferences,G as writeRuntimeUpgradeNotice,B as writeSharedConfig};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{i as a,j as b}from"./chunk-4XLMNRNK.js";import"./chunk-54A5K5AU.js";import"./chunk-QADGABXD.js";import"./chunk-IWUOHKPP.js";import"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-RXAAHL37.js";import"./chunk-PZRFERPK.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";export{a as printShellPerfReport,b as runInspect};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{a}from"./chunk-XTYUXATY.js";import"./chunk-KATIREON.js";import"./chunk-7GNSTEOK.js";import"./chunk-CUNQG6UV.js";export{a as runInstallDesktop};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{b as k,d as v}from"./chunk-PD4P6QHH.js";import"./chunk-7F56NHVF.js";import{a as b}from"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";import{exec as L}from"node:child_process";import{randomBytes as R}from"node:crypto";import P from"node:http";var O=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev",w="https://contrast.localhost:3000";async function A(r){if(r)return r;if(process.env.SOOTSIM_AUTH_ORIGIN)return process.env.SOOTSIM_AUTH_ORIGIN;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{if((await fetch(`${w}/api/auth/me`)).ok)return w}catch{}return O}function C(){console.log(`
4
+ import{b as k,d as v}from"./chunk-NDHMADU7.js";import"./chunk-D7PJO63L.js";import{a as b}from"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";import{exec as L}from"node:child_process";import{randomBytes as R}from"node:crypto";import P from"node:http";var O=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev",w="https://contrast.localhost:3000";async function A(r){if(r)return r;if(process.env.SOOTSIM_AUTH_ORIGIN)return process.env.SOOTSIM_AUTH_ORIGIN;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{if((await fetch(`${w}/api/auth/me`)).ok)return w}catch{}return O}function C(){console.log(`
5
5
  rnxsim login \u2014 sign in so uploads can attach to your account
6
6
 
7
7
  usage:
@@ -23,6 +23,6 @@ options:
23
23
  <p style="color:#ccc">${r}</p>
24
24
  </div>
25
25
  </body>
26
- </html>`}async function G(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(e.status===403)return{ok:!1,error:"local dev-login unavailable"};if(!e.ok){let u=await e.text().catch(()=>"");return{ok:!1,error:`dev-login ${e.status}: ${u}`}}let t=await e.json();return t.token?{ok:!0,token:t.token,userId:t.user?.id,email:t.email}:{ok:!1,error:"dev-login response missing token"}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"dev-login fetch failed"}}}function M(r){try{let e=new URL(r).hostname.replace(/^\[|\]$/g,"").toLowerCase();return!!(e==="localhost"||/^127(?:\.\d{1,3}){3}$/.test(e)||e==="::1"||e==="0.0.0.0"||e.endsWith(".local")||e.endsWith(".localhost")||e==="host.containers.internal"||e==="host.docker.internal"||e==="host.orb.internal"||e==="host.lima.internal"||e==="fd07:b51a:cc66:f0::fe"||e==="192.168.5.2"||/^192\.168\.(?:64|139)\.1$/.test(e))}catch{return!1}}async function F(r){(r.includes("--help")||r.includes("-h"))&&(C(),process.exit(0));let e=[...r],t=await A(U(e,"--origin"));if(M(t)){console.log(` detected local origin (${t}) \u2014 signing in as dev user`);let n=await G(t);if(n.ok){k({token:n.token,user:n.userId?{id:n.userId,email:n.email}:null,origin:t,source:"cli"});let s=await v(t),d=s?.user?.email||n.email||s?.user?.id||n.userId,{trackCliEvent:a,flushCliTelemetry:f}=await import("./telemetry-6PHXRU4L.js");a({event:"cli_login_succeeded",identity:{userId:n.userId??s?.user?.id??null},properties:{origin:t,mode:"dev"}}),await f(),console.log(` signed in${d?` as ${d}`:""} (dev)`);return}console.log(` dev-login not available (${n.error}); falling back to browser`)}let u=R(16).toString("hex");{let{trackCliEvent:n,flushCliTelemetry:s}=await import("./telemetry-6PHXRU4L.js");n({event:"cli_login_started",properties:{origin:t}}),await s()}let m=300*1e3,i=await new Promise(n=>{let s,d=!1,a=c=>{d||(d=!0,clearTimeout(s),n(c),f.close())},f=P.createServer((c,o)=>{try{let l=new URL(c.url||"/","http://127.0.0.1"),S=l.searchParams.get("state"),y=l.searchParams.get("token"),x=l.searchParams.get("email")||void 0,T=l.searchParams.get("userId")||void 0,p=l.searchParams.get("error");if(S!==u){o.statusCode=404,o.end("not found");return}if(o.setHeader("content-type","text/html; charset=utf-8"),p){o.end(g(`sign-in failed: ${p}`)),a({ok:!1,error:p});return}if(!y){o.end(g("missing token. close this tab and retry `rnxsim login`.")),a({ok:!1,error:"missing token"});return}o.end(g("sign-in complete. you can return to the terminal.")),a({ok:!0,token:y,email:x,userId:T})}catch(l){o.statusCode=500,o.end(g("sign-in callback failed. retry `rnxsim login`.")),a({ok:!1,error:l instanceof Error?l.message:"callback failed"})}});s=setTimeout(()=>{a({ok:!1,error:"timed out waiting for the browser sign-in (5 minutes). rerun `rnxsim login` and complete the github authorize screen if it appears."})},m),f.listen(0,"127.0.0.1",()=>{let c=f.address();if(!c||typeof c=="string"){a({ok:!1,error:"failed to bind callback server"});return}let o=new URL(`${t.replace(/\/$/,"")}/auth/sootsim-cli`);o.searchParams.set("state",u),o.searchParams.set("port",String(c.port)),o.searchParams.set("contrast",t),console.log(" opening browser for rnxsim login..."),console.log(" first time here? github will show an authorize screen. approve it to continue."),console.log(" waiting up to 5 minutes for the browser (ctrl+c to cancel)"),console.log(` if nothing opens, visit:
26
+ </html>`}async function G(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(e.status===403)return{ok:!1,error:"local dev-login unavailable"};if(!e.ok){let u=await e.text().catch(()=>"");return{ok:!1,error:`dev-login ${e.status}: ${u}`}}let t=await e.json();return t.token?{ok:!0,token:t.token,userId:t.user?.id,email:t.email}:{ok:!1,error:"dev-login response missing token"}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"dev-login fetch failed"}}}function M(r){try{let e=new URL(r).hostname.replace(/^\[|\]$/g,"").toLowerCase();return!!(e==="localhost"||/^127(?:\.\d{1,3}){3}$/.test(e)||e==="::1"||e==="0.0.0.0"||e.endsWith(".local")||e.endsWith(".localhost")||e==="host.containers.internal"||e==="host.docker.internal"||e==="host.orb.internal"||e==="host.lima.internal"||e==="fd07:b51a:cc66:f0::fe"||e==="192.168.5.2"||/^192\.168\.(?:64|139)\.1$/.test(e))}catch{return!1}}async function F(r){(r.includes("--help")||r.includes("-h"))&&(C(),process.exit(0));let e=[...r],t=await A(U(e,"--origin"));if(M(t)){console.log(` detected local origin (${t}) \u2014 signing in as dev user`);let n=await G(t);if(n.ok){k({token:n.token,user:n.userId?{id:n.userId,email:n.email}:null,origin:t,source:"cli"});let s=await v(t),d=s?.user?.email||n.email||s?.user?.id||n.userId,{trackCliEvent:a,flushCliTelemetry:f}=await import("./telemetry-EBRQ4R2H.js");a({event:"cli_login_succeeded",identity:{userId:n.userId??s?.user?.id??null},properties:{origin:t,mode:"dev"}}),await f(),console.log(` signed in${d?` as ${d}`:""} (dev)`);return}console.log(` dev-login not available (${n.error}); falling back to browser`)}let u=R(16).toString("hex");{let{trackCliEvent:n,flushCliTelemetry:s}=await import("./telemetry-EBRQ4R2H.js");n({event:"cli_login_started",properties:{origin:t}}),await s()}let m=300*1e3,i=await new Promise(n=>{let s,d=!1,a=c=>{d||(d=!0,clearTimeout(s),n(c),f.close())},f=P.createServer((c,o)=>{try{let l=new URL(c.url||"/","http://127.0.0.1"),S=l.searchParams.get("state"),y=l.searchParams.get("token"),x=l.searchParams.get("email")||void 0,T=l.searchParams.get("userId")||void 0,p=l.searchParams.get("error");if(S!==u){o.statusCode=404,o.end("not found");return}if(o.setHeader("content-type","text/html; charset=utf-8"),p){o.end(g(`sign-in failed: ${p}`)),a({ok:!1,error:p});return}if(!y){o.end(g("missing token. close this tab and retry `rnxsim login`.")),a({ok:!1,error:"missing token"});return}o.end(g("sign-in complete. you can return to the terminal.")),a({ok:!0,token:y,email:x,userId:T})}catch(l){o.statusCode=500,o.end(g("sign-in callback failed. retry `rnxsim login`.")),a({ok:!1,error:l instanceof Error?l.message:"callback failed"})}});s=setTimeout(()=>{a({ok:!1,error:"timed out waiting for the browser sign-in (5 minutes). rerun `rnxsim login` and complete the github authorize screen if it appears."})},m),f.listen(0,"127.0.0.1",()=>{let c=f.address();if(!c||typeof c=="string"){a({ok:!1,error:"failed to bind callback server"});return}let o=new URL(`${t.replace(/\/$/,"")}/auth/sootsim-cli`);o.searchParams.set("state",u),o.searchParams.set("port",String(c.port)),o.searchParams.set("contrast",t),console.log(" opening browser for rnxsim login..."),console.log(" first time here? github will show an authorize screen. approve it to continue."),console.log(" waiting up to 5 minutes for the browser (ctrl+c to cancel)"),console.log(` if nothing opens, visit:
27
27
  ${o.toString()}
28
- `),E(o.toString())})});if(!i.ok){let{trackCliEvent:n,flushCliTelemetry:s}=await import("./telemetry-6PHXRU4L.js");n({event:"cli_login_failed",properties:{origin:t,error:i.error}}),await s(),console.error(` login failed: ${i.error}`),process.exit(1)}k({token:i.token,user:i.userId?{id:i.userId,email:i.email}:null,origin:t,source:"cli"});let h=await v(t),I=h?.user?.email||i.email||h?.user?.id||i.userId,{trackCliEvent:$,flushCliTelemetry:_}=await import("./telemetry-6PHXRU4L.js");$({event:"cli_login_succeeded",identity:{userId:i.userId??h?.user?.id??null},properties:{origin:t}}),await _(),console.log(` signed in${I?` as ${I}`:""}`)}export{F as runLogin};
28
+ `),E(o.toString())})});if(!i.ok){let{trackCliEvent:n,flushCliTelemetry:s}=await import("./telemetry-EBRQ4R2H.js");n({event:"cli_login_failed",properties:{origin:t,error:i.error}}),await s(),console.error(` login failed: ${i.error}`),process.exit(1)}k({token:i.token,user:i.userId?{id:i.userId,email:i.email}:null,origin:t,source:"cli"});let h=await v(t),I=h?.user?.email||i.email||h?.user?.id||i.userId,{trackCliEvent:$,flushCliTelemetry:_}=await import("./telemetry-EBRQ4R2H.js");$({event:"cli_login_succeeded",identity:{userId:i.userId??h?.user?.id??null},properties:{origin:t}}),await _(),console.log(` signed in${I?` as ${I}`:""}`)}export{F as runLogin};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as r,d as i}from"./chunk-PFOKZTPT.js";import{a as t,c as o}from"./chunk-PD4P6QHH.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";async function s(){let e=t();if(!e?.token){console.log(" not signed in");return}try{await fetch(`${e.origin.replace(/\/$/,"")}/api/auth/sign-out`,{method:"POST",headers:{authorization:`Bearer ${e.token}`}})}catch{}o(),r({event:"cli_logout",identity:{userId:e.user?.id??null},properties:{origin:e.origin}}),await i(),console.log(" signed out")}export{s as runLogout};
4
+ import{c as r,d as i}from"./chunk-PN2KPTN5.js";import{a as t,c as o}from"./chunk-NDHMADU7.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";async function s(){let e=t();if(!e?.token){console.log(" not signed in");return}try{await fetch(`${e.origin.replace(/\/$/,"")}/api/auth/sign-out`,{method:"POST",headers:{authorization:`Bearer ${e.token}`}})}catch{}o(),r({event:"cli_logout",identity:{userId:e.user?.id??null},properties:{origin:e.origin}}),await i(),console.log(" signed out")}export{s as runLogout};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as E,d as O,g as L,h as R,i as P}from"./chunk-ZHMEYZXY.js";import"./chunk-2NOBSTP5.js";import"./chunk-7DE3NNKL.js";import{b as k}from"./chunk-ZC2AAKPI.js";import"./chunk-ELCODHRJ.js";import"./chunk-UYQQFHDT.js";import{a as S}from"./chunk-QEYTEHPY.js";import"./chunk-LBBG4KRO.js";import"./chunk-YZFQB7QN.js";import"./chunk-YLVQZKVD.js";import"./chunk-OQRKG2P4.js";import"./chunk-MB7JVBJU.js";import"./chunk-7BTA6IWV.js";import"./chunk-NTMUMXCK.js";import{b as $,c as F,d as T,e as M}from"./chunk-LIROKJ67.js";import{a as A}from"./chunk-DWBZFEW4.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import"./chunk-XXE5T2Y4.js";import"./chunk-CGXAANRC.js";import"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-NSRMQ6FV.js";import"./chunk-7C3OKBWI.js";import"./chunk-PFOKZTPT.js";import"./chunk-PD4P6QHH.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-TPMNXUJG.js";import"./chunk-CE2KHJUN.js";import"./chunk-65I23OCS.js";import"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-3XLVQ3GF.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";import*as n from"fs";import*as a from"path";var I=[".maestro","maestro"];function W(){console.log(`
4
+ import{c as E,d as O,g as L,h as R,i as P}from"./chunk-FWHU7F62.js";import"./chunk-GNUCWRYC.js";import"./chunk-7RLEHBVV.js";import{b as k}from"./chunk-4XLMNRNK.js";import"./chunk-54A5K5AU.js";import"./chunk-QADGABXD.js";import{a as S}from"./chunk-IWUOHKPP.js";import"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import{b as $,c as F,d as T,e as M}from"./chunk-CGIF4NMF.js";import{a as A}from"./chunk-IYWYKWWX.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-RXAAHL37.js";import"./chunk-PZRFERPK.js";import"./chunk-PN2KPTN5.js";import"./chunk-NDHMADU7.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";import*as n from"fs";import*as a from"path";var I=[".maestro","maestro"];function W(){console.log(`
5
5
  rnxsim maestro \u2014 author and run Maestro YAML flows against rnx
6
6
 
7
7
  usage:
@@ -91,7 +91,7 @@ appId: com.example.app
91
91
  - inputText: "secret123"
92
92
  - tapOn: "Sign in"
93
93
  - assertVisible: "Welcome"
94
- `,"utf8"),console.log(` + wrote ${e}`),console.log(" next: rnxsim maestro test .maestro/login.yaml"),0)}async function Q(t,s={}){if(t.includes("--help")||t.includes("-h"))return W(),0;if(t.includes("--list-compat"))return D(),0;let e;try{e=Y(t)}catch(o){return console.error(` error: ${o.message}`),1}e=R(e);let r=process.cwd(),i=e[0];if(i==="init")return _(r);if(i==="generate"){let{runMaestroGenerate:o}=await import("./maestro-generate-OCTJPXNW.js");return o(e.slice(1))}if(i==="start"||i==="keep"||i==="good"||i==="end"||i==="validate")return P(e);e=J(e);let c=null,p;if(i==="test"){let o=e.slice(1).find(f=>!U(f));o?(c=a.resolve(r,o),p=e.slice(1).filter(f=>f!==o)):(c=j(r),p=e.slice(1))}else i&&!U(i)?(c=a.resolve(r,i),p=e.slice(1)):(c=j(r),p=e);if(!c)return console.error(`
94
+ `,"utf8"),console.log(` + wrote ${e}`),console.log(" next: rnxsim maestro test .maestro/login.yaml"),0)}async function Q(t,s={}){if(t.includes("--help")||t.includes("-h"))return W(),0;if(t.includes("--list-compat"))return D(),0;let e;try{e=Y(t)}catch(o){return console.error(` error: ${o.message}`),1}e=R(e);let r=process.cwd(),i=e[0];if(i==="init")return _(r);if(i==="generate"){let{runMaestroGenerate:o}=await import("./maestro-generate-6NUMXPNT.js");return o(e.slice(1))}if(i==="start"||i==="keep"||i==="good"||i==="end"||i==="validate")return P(e);e=J(e);let c=null,p;if(i==="test"){let o=e.slice(1).find(f=>!U(f));o?(c=a.resolve(r,o),p=e.slice(1).filter(f=>f!==o)):(c=j(r),p=e.slice(1))}else i&&!U(i)?(c=a.resolve(r,i),p=e.slice(1)):(c=j(r),p=e);if(!c)return console.error(`
95
95
  error: no maestro flows found.
96
96
  expected one of: ${I.map(o=>`./${o}/`).join(", ")}
97
97
  or pass a flow explicitly: rnxsim maestro test path/to/flow.yaml
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as x}from"./chunk-QEYTEHPY.js";import{b as O,d as A,e as E}from"./chunk-LIROKJ67.js";import{a as S,b as T}from"./chunk-DWBZFEW4.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import{f as v}from"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-PFOKZTPT.js";import"./chunk-PD4P6QHH.js";import{q as y,s as b}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";import{mkdtempSync as B,writeFileSync as N}from"fs";import{tmpdir as C}from"os";import{join as k}from"path";var J=process.env.SOOTSIM_TEST_MODEL||"deepseek-v4-flash",_=18e3,j=18e4;function f(e,t){let r=e.indexOf(t);return r>=0?e[r+1]:void 0}function V(e,t){for(let r of t){let o=f(e,r);if(o)return o}}var F=new Set(["--origin","--preview-origin","--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]);function G(e){for(let t=0;t<e.length;t++){let r=e[t];if(r){if(F.has(r)){t+=1;continue}if(!r.startsWith("-"))return{prompt:r,index:t}}}return null}function H(e,t){return e.filter((r,o)=>o!==t)}async function Y(e,t){let r=H(e,t),o=y(r,{stripBooleanFlags:["--new","--headless","--headed","--electron","--preview-open"],stripValueFlags:[...F]}),i=b(o);try{let n=await v(i,{describe:!0,verbose:!1,filter:"",compact:!0,hideXy:!0}),s=[n.shell?`shell: ${JSON.stringify(n.shell)}`:"",n.keyboard?`keyboard: ${JSON.stringify(n.keyboard)}`:"",typeof n.nodeCount=="number"?`nodes: ${n.nodeCount}`:"",n.tree||""].filter(Boolean).join(`
4
+ import{a as x}from"./chunk-IWUOHKPP.js";import{b as O,d as A,e as E}from"./chunk-CGIF4NMF.js";import{a as S,b as T}from"./chunk-IYWYKWWX.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import{f as v}from"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-PN2KPTN5.js";import"./chunk-NDHMADU7.js";import{q as y,s as b}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";import{mkdtempSync as B,writeFileSync as N}from"fs";import{tmpdir as C}from"os";import{join as k}from"path";var J=process.env.SOOTSIM_TEST_MODEL||"deepseek-v4-flash",_=18e3,j=18e4;function f(e,t){let r=e.indexOf(t);return r>=0?e[r+1]:void 0}function V(e,t){for(let r of t){let o=f(e,r);if(o)return o}}var F=new Set(["--origin","--preview-origin","--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]);function G(e){for(let t=0;t<e.length;t++){let r=e[t];if(r){if(F.has(r)){t+=1;continue}if(!r.startsWith("-"))return{prompt:r,index:t}}}return null}function H(e,t){return e.filter((r,o)=>o!==t)}async function Y(e,t){let r=H(e,t),o=y(r,{stripBooleanFlags:["--new","--headless","--headed","--electron","--preview-open"],stripValueFlags:[...F]}),i=b(o);try{let n=await v(i,{describe:!0,verbose:!1,filter:"",compact:!0,hideXy:!0}),s=[n.shell?`shell: ${JSON.stringify(n.shell)}`:"",n.keyboard?`keyboard: ${JSON.stringify(n.keyboard)}`:"",typeof n.nodeCount=="number"?`nodes: ${n.nodeCount}`:"",n.tree||""].filter(Boolean).join(`
5
5
  `);return s.length>_?s.slice(0,_)+`
6
6
  [tree truncated]`:s}finally{i.close()}}var K=`
7
7
  You write Maestro-compatible rnx YAML flows from a user's plain-language test goal.
@@ -32,5 +32,5 @@ ${t||"[no tree available]"}
32
32
 
33
33
  Generate the shortest replayable flow that verifies the goal from this current state.
34
34
  `.trim()}async function z(e){let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/llm`,{method:"POST",headers:{"content-type":"application/json",authorization:e.authHeader},body:JSON.stringify({modelId:J,context:{systemPrompt:K,messages:[{role:"user",content:X(e.prompt,e.describe),timestamp:Date.now()}]},options:{maxTokens:1800,temperature:.2},threadId:null}),signal:AbortSignal.timeout(j)});if(!t.ok||!t.body){let a=await t.text().catch(()=>"");throw new Error(`/api/llm ${t.status}${a?`: ${a}`:""}`)}let r=t.body.getReader(),o=new TextDecoder,i=[],n="",c=a=>{let l=a.trim();if(!l)return;let u=JSON.parse(l);if(u.type==="text_delta"&&u.delta)i.push(u.delta);else if(u.type==="error")throw new Error(u.errorMessage||"llm error")};for(;;){let{value:a,done:l}=await r.read();if(l)break;n+=o.decode(a,{stream:!0});let u;for(;(u=n.indexOf(`
35
- `))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function W(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function P(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=W(e);if(!P(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"rnx generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!P(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:x.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: rnxsim maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=S();if(!i||i.kind==="github")return console.error(' rnxsim maestro generate "<goal>" needs a login or RNX_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await z({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=B(k(C(),"sootsim-maestro-generate-")),p=k(u,"flow.yaml");N(p,l.yamlText),console.log(` flow: ${p}`);let M=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-MDX2RDFB.js"),L=Q(e,o,p,c),w=await I(L),m=$(),h=D(),R=h.find(U=>U.status==="failure"),g=w===0?"passed":"failed",d=await A({origin:c,kind:"maestro",prompt:r,summary:l.summary,status:g,failureMessage:g==="failed"?R?.error??"flow playback failed":null,previewShareId:m?.shareId??null,owner:f(e,"--owner")??null,repo:f(e,"--repo")??null,durationMs:Date.now()-M,flowYamlSizeBytes:Buffer.byteLength(l.yamlText,"utf8"),...O(h),auth:i});return console.log(`
35
+ `))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function W(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function P(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=W(e);if(!P(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"rnx generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!P(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:x.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: rnxsim maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=S();if(!i||i.kind==="github")return console.error(' rnxsim maestro generate "<goal>" needs a login or RNX_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await z({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=B(k(C(),"sootsim-maestro-generate-")),p=k(u,"flow.yaml");N(p,l.yamlText),console.log(` flow: ${p}`);let M=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-AHV5SUN2.js"),L=Q(e,o,p,c),w=await I(L),m=$(),h=D(),R=h.find(U=>U.status==="failure"),g=w===0?"passed":"failed",d=await A({origin:c,kind:"maestro",prompt:r,summary:l.summary,status:g,failureMessage:g==="failed"?R?.error??"flow playback failed":null,previewShareId:m?.shareId??null,owner:f(e,"--owner")??null,repo:f(e,"--repo")??null,durationMs:Date.now()-M,flowYamlSizeBytes:Buffer.byteLength(l.yamlText,"utf8"),...O(h),auth:i});return console.log(`
36
36
  result: ${g}`),d&&console.log(` run: ${d.id}`),m?.previewUrl&&console.log(` preview: ${m.previewUrl}`),d?.traceUrl&&console.log(` replay: ${d.traceUrl}`),w}export{le as runMaestroGenerate};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as s,b as r}from"./chunk-NTZY74WJ.js";import"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";async function i(e,o){(e.includes("--help")||e.includes("-h"))&&(console.log(`
4
+ import{a as s,b as r}from"./chunk-7WWEMNWX.js";import"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";async function i(e,o){(e.includes("--help")||e.includes("-h"))&&(console.log(`
5
5
  rnxsim mode screenshot \u2014 toggle the screenshot-mode chrome overlay
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a,b,c,d}from"./chunk-3WOVZJLU.js";import"./chunk-JSAH72EY.js";export{d as __withOptionalDemoAppsForTests,a as findInternalDemoRegistry,b as loadOptionalDemoApps,c as optionalDemoAppsSync};
4
+ import{a,b,c,d}from"./chunk-7QS7XX4W.js";import"./chunk-CUNQG6UV.js";export{d as __withOptionalDemoAppsForTests,a as findInternalDemoRegistry,b as loadOptionalDemoApps,c as optionalDemoAppsSync};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{j as N}from"./chunk-ZC2AAKPI.js";import"./chunk-ELCODHRJ.js";import"./chunk-UYQQFHDT.js";import"./chunk-QEYTEHPY.js";import"./chunk-LBBG4KRO.js";import"./chunk-YZFQB7QN.js";import"./chunk-YLVQZKVD.js";import"./chunk-OQRKG2P4.js";import"./chunk-MB7JVBJU.js";import"./chunk-7BTA6IWV.js";import"./chunk-NTMUMXCK.js";import"./chunk-V55REGJU.js";import"./chunk-Q6MFP4GM.js";import"./chunk-QCJJ6JFE.js";import"./chunk-XXE5T2Y4.js";import"./chunk-CGXAANRC.js";import"./chunk-DGMNOCZD.js";import"./chunk-3WOVZJLU.js";import"./chunk-NSRMQ6FV.js";import"./chunk-7C3OKBWI.js";import"./chunk-3GQZOUFV.js";import"./chunk-6IRBNOOV.js";import"./chunk-TPMNXUJG.js";import"./chunk-CE2KHJUN.js";import"./chunk-65I23OCS.js";import{q as P,s as R,v as d,w as x}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-3XLVQ3GF.js";import"./chunk-7F56NHVF.js";import"./chunk-FANHU6DO.js";import"./chunk-JSAH72EY.js";import{mkdirSync as D,writeFileSync as W}from"fs";import{dirname as A,resolve as J}from"path";import{WebSocket as B}from"ws";var C=e=>new Promise(o=>setTimeout(o,e)),S=class{ws;nextId=1;pending=new Map;listeners=new Set;ready;constructor(o){this.ws=new B(o,{maxPayload:1<<28}),this.ready=new Promise((r,n)=>{this.ws.once("open",()=>r()),this.ws.once("error",n)}),this.ws.on("message",r=>{let n=JSON.parse(r.toString());if(n.id&&this.pending.has(n.id)){let{res:t,rej:s}=this.pending.get(n.id);this.pending.delete(n.id),n.error?s(new Error(JSON.stringify(n.error))):t(n.result)}else if(n.method)for(let t of this.listeners)t(n.method,n.params)})}waitOpen(){return this.ready}on(o){this.listeners.add(o)}send(o,r={},n){let t=this.nextId++;return new Promise((s,a)=>{this.pending.set(t,{res:s,rej:a}),this.ws.send(JSON.stringify({id:t,method:o,params:r,...n?{sessionId:n}:{}}))})}close(){try{this.ws.close()}catch{}}};async function O(e,o){let r=Number(h(e,"--duration")??"5");if(!Number.isFinite(r)||r<=0)return console.error(" --duration must be a positive number (seconds)"),1;let n=Number(h(e,"--sample-interval")??"0.1"),t=Number(h(e,"--cdp-port")??process.env.SOOTSIM_CDP_PORT??"9222"),s=h(e,"--match")??"/rn/",a=h(e,"--output")??h(e,"-o"),i=J(process.cwd(),a??"/tmp/sootsim.cpuprofile"),l=[];try{l=await(await fetch(`http://localhost:${t}/json/list`)).json()}catch{return E(t),1}let f=l.find(m=>m.type==="page"&&m.url.includes(s));if(!f)return console.error(` no page target matching "${s}" on CDP :${t}`),console.error(` open targets: ${l.map(m=>m.url).join(", ")||"(none)"}`),1;let u=new S(f.webSocketDebuggerUrl);await u.waitOpen();try{let m=new Map;if(u.on((c,p)=>{c==="Target.attachedToTarget"&&p.targetInfo?.type==="worker"&&m.set(p.sessionId,p.targetInfo.url),c==="Target.detachedFromTarget"&&m.delete(p.sessionId)}),await u.send("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!1,flatten:!0}),await C(500),m.size===0)return console.error(" no worker targets attached \u2014 is the app loaded in this tab?"),1;for(let c of m.keys())await u.send("Profiler.enable",{},c),await u.send("Profiler.setSamplingInterval",{interval:n*1e3},c),await u.send("Profiler.start",{},c);console.log(` recording ${r}s across ${m.size} worker(s) \u2014 interact now\u2026`),await C(r*1e3);let b=[];for(let[c,p]of m){let{profile:y}=await u.send("Profiler.stop",{},c);b.push({url:p,profile:y})}return b.sort((c,p)=>p.profile.samples.length-c.profile.samples.length),D(A(i),{recursive:!0}),b.forEach((c,p)=>{let y=p===0?i:i.replace(/(\.[^.]+)?$/,`.worker${p}$1`);if(W(y,JSON.stringify(c.profile)),console.log(` ${v(c.url)}: ${c.profile.samples.length} samples \u2192 ${y}`),o.verbose&&c.profile.samples.length>0)for(let $ of U(c.profile,12))console.log(` ${$.pct.toFixed(1).padStart(5)}% ${$.name} ${$.url}`)}),console.log(" open in chrome devtools \u2192 Performance \u2192 Load profile to inspect."),0}finally{u.close()}}function E(e){console.error(` perf cpu needs a CDP-enabled browser on :${e}.`),console.error(" the tenant worker can't be profiled via the JS Self-Profiler API (F28),"),console.error(" so the sim must expose Chrome remote debugging. easiest path \u2014"),console.error(" open the sim with a CDP port (it stays driveable over the bridge,"),console.error(" so you can scroll/navigate while profiling):"),console.error(""),console.error(` rnxsim open <metro-port> --new --driver playwright --cdp-port ${e}`),console.error(` rnxsim perf cpu --cdp-port ${e} --match <metro-port>`),console.error(""),console.error(" or launch a standalone CDP Chrome (not bridge-driveable):"),console.error(""),console.error(' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \\'),console.error(` --remote-debugging-port=${e} --user-data-dir=/tmp/sootsim-cdp \\`),console.error(" --no-sandbox --disable-gpu-sandbox \\"),console.error(" --use-gl=angle --use-angle=metal \\"),console.error(' "http://localhost:5173/rn/<metro-port>" &'),console.error(""),console.error(" override the port with --cdp-port or $SOOTSIM_CDP_PORT.")}function v(e){return e?e.replace(/^https?:\/\/[^/]+/,"").replace(/\?.*$/,"").slice(-50):"(native)"}function U(e,o){let r=e.samples.length||1,n=new Map;for(let t of e.nodes){let s=t.callFrame,a=`${s.functionName||"(anonymous)"}@${v(s.url)}:${s.lineNumber}`,i=n.get(a)??{self:0,name:s.functionName||"(anonymous)",url:`${v(s.url)}:${s.lineNumber}`};i.self+=t.hitCount??0,n.set(a,i)}return[...n.values()].map(t=>({...t,pct:t.self/r*100})).sort((t,s)=>s.self-t.self).slice(0,o)}function h(e,o){let r=e.indexOf(o);if(!(r<0||r===e.length-1))return e[r+1]}function j(){console.log(`
4
+ import{j as N}from"./chunk-4XLMNRNK.js";import"./chunk-54A5K5AU.js";import"./chunk-QADGABXD.js";import"./chunk-IWUOHKPP.js";import"./chunk-LRWEOO3A.js";import"./chunk-ZZXTQOHH.js";import"./chunk-7HE7BQCQ.js";import"./chunk-PSIXVL6N.js";import"./chunk-RWY7FEQA.js";import"./chunk-KATIREON.js";import"./chunk-RXN3F3HA.js";import"./chunk-54THO3KL.js";import"./chunk-GJD4O3J4.js";import"./chunk-R4IHFJ4G.js";import"./chunk-IXQPFAF7.js";import"./chunk-VVXSNTF7.js";import"./chunk-7C64NSHV.js";import"./chunk-7QS7XX4W.js";import"./chunk-RXAAHL37.js";import"./chunk-PZRFERPK.js";import"./chunk-EODEZB5P.js";import"./chunk-OBDF2FDC.js";import"./chunk-OFLFRW6O.js";import"./chunk-2PBHFK6F.js";import"./chunk-TZQGIL2G.js";import{q as P,s as R,v as d,w as x}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-CXBCH2CF.js";import"./chunk-D7PJO63L.js";import"./chunk-JD5CHJTR.js";import"./chunk-CUNQG6UV.js";import{mkdirSync as D,writeFileSync as W}from"fs";import{dirname as A,resolve as J}from"path";import{WebSocket as B}from"ws";var C=e=>new Promise(o=>setTimeout(o,e)),S=class{ws;nextId=1;pending=new Map;listeners=new Set;ready;constructor(o){this.ws=new B(o,{maxPayload:1<<28}),this.ready=new Promise((r,n)=>{this.ws.once("open",()=>r()),this.ws.once("error",n)}),this.ws.on("message",r=>{let n=JSON.parse(r.toString());if(n.id&&this.pending.has(n.id)){let{res:t,rej:s}=this.pending.get(n.id);this.pending.delete(n.id),n.error?s(new Error(JSON.stringify(n.error))):t(n.result)}else if(n.method)for(let t of this.listeners)t(n.method,n.params)})}waitOpen(){return this.ready}on(o){this.listeners.add(o)}send(o,r={},n){let t=this.nextId++;return new Promise((s,a)=>{this.pending.set(t,{res:s,rej:a}),this.ws.send(JSON.stringify({id:t,method:o,params:r,...n?{sessionId:n}:{}}))})}close(){try{this.ws.close()}catch{}}};async function O(e,o){let r=Number(h(e,"--duration")??"5");if(!Number.isFinite(r)||r<=0)return console.error(" --duration must be a positive number (seconds)"),1;let n=Number(h(e,"--sample-interval")??"0.1"),t=Number(h(e,"--cdp-port")??process.env.SOOTSIM_CDP_PORT??"9222"),s=h(e,"--match")??"/rn/",a=h(e,"--output")??h(e,"-o"),i=J(process.cwd(),a??"/tmp/sootsim.cpuprofile"),l=[];try{l=await(await fetch(`http://localhost:${t}/json/list`)).json()}catch{return E(t),1}let f=l.find(m=>m.type==="page"&&m.url.includes(s));if(!f)return console.error(` no page target matching "${s}" on CDP :${t}`),console.error(` open targets: ${l.map(m=>m.url).join(", ")||"(none)"}`),1;let u=new S(f.webSocketDebuggerUrl);await u.waitOpen();try{let m=new Map;if(u.on((c,p)=>{c==="Target.attachedToTarget"&&p.targetInfo?.type==="worker"&&m.set(p.sessionId,p.targetInfo.url),c==="Target.detachedFromTarget"&&m.delete(p.sessionId)}),await u.send("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!1,flatten:!0}),await C(500),m.size===0)return console.error(" no worker targets attached \u2014 is the app loaded in this tab?"),1;for(let c of m.keys())await u.send("Profiler.enable",{},c),await u.send("Profiler.setSamplingInterval",{interval:n*1e3},c),await u.send("Profiler.start",{},c);console.log(` recording ${r}s across ${m.size} worker(s) \u2014 interact now\u2026`),await C(r*1e3);let b=[];for(let[c,p]of m){let{profile:y}=await u.send("Profiler.stop",{},c);b.push({url:p,profile:y})}return b.sort((c,p)=>p.profile.samples.length-c.profile.samples.length),D(A(i),{recursive:!0}),b.forEach((c,p)=>{let y=p===0?i:i.replace(/(\.[^.]+)?$/,`.worker${p}$1`);if(W(y,JSON.stringify(c.profile)),console.log(` ${v(c.url)}: ${c.profile.samples.length} samples \u2192 ${y}`),o.verbose&&c.profile.samples.length>0)for(let $ of U(c.profile,12))console.log(` ${$.pct.toFixed(1).padStart(5)}% ${$.name} ${$.url}`)}),console.log(" open in chrome devtools \u2192 Performance \u2192 Load profile to inspect."),0}finally{u.close()}}function E(e){console.error(` perf cpu needs a CDP-enabled browser on :${e}.`),console.error(" the tenant worker can't be profiled via the JS Self-Profiler API (F28),"),console.error(" so the sim must expose Chrome remote debugging. easiest path \u2014"),console.error(" open the sim with a CDP port (it stays driveable over the bridge,"),console.error(" so you can scroll/navigate while profiling):"),console.error(""),console.error(` rnxsim open <metro-port> --new --driver playwright --cdp-port ${e}`),console.error(` rnxsim perf cpu --cdp-port ${e} --match <metro-port>`),console.error(""),console.error(" or launch a standalone CDP Chrome (not bridge-driveable):"),console.error(""),console.error(' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \\'),console.error(` --remote-debugging-port=${e} --user-data-dir=/tmp/sootsim-cdp \\`),console.error(" --no-sandbox --disable-gpu-sandbox \\"),console.error(" --use-gl=angle --use-angle=metal \\"),console.error(' "http://localhost:5173/rn/<metro-port>" &'),console.error(""),console.error(" override the port with --cdp-port or $SOOTSIM_CDP_PORT.")}function v(e){return e?e.replace(/^https?:\/\/[^/]+/,"").replace(/\?.*$/,"").slice(-50):"(native)"}function U(e,o){let r=e.samples.length||1,n=new Map;for(let t of e.nodes){let s=t.callFrame,a=`${s.functionName||"(anonymous)"}@${v(s.url)}:${s.lineNumber}`,i=n.get(a)??{self:0,name:s.functionName||"(anonymous)",url:`${v(s.url)}:${s.lineNumber}`};i.self+=t.hitCount??0,n.set(a,i)}return[...n.values()].map(t=>({...t,pct:t.self/r*100})).sort((t,s)=>s.self-t.self).slice(0,o)}function h(e,o){let r=e.indexOf(o);if(!(r<0||r===e.length-1))return e[r+1]}function j(){console.log(`
5
5
  rnxsim perf react \u2014 inspect React component render cost in the tenant worker
6
6
 
7
7
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.324 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{q as h,s as w,v as l,w as u}from"./chunk-4YHMTHGT.js";import"./chunk-JYRXXBPI.js";import"./chunk-7F56NHVF.js";import"./chunk-JSAH72EY.js";var A=["not-determined","restricted","denied","authorized","limited","provisional","ephemeral","unavailable"],E=["app-tracking-transparency","bluetooth","calendars","camera","contacts","face-id","local-network","location-always","location-when-in-use","media-library","microphone","motion","notifications","photo-library","photo-library-add-only","reminders","siri","speech-recognition"];function b(){console.log(`
4
+ import{q as h,s as w,v as l,w as u}from"./chunk-XJRLBNGX.js";import"./chunk-RJOHZ27C.js";import"./chunk-D7PJO63L.js";import"./chunk-CUNQG6UV.js";var A=["not-determined","restricted","denied","authorized","limited","provisional","ephemeral","unavailable"],E=["app-tracking-transparency","bluetooth","calendars","camera","contacts","face-id","local-network","location-always","location-when-in-use","media-library","microphone","motion","notifications","photo-library","photo-library-add-only","reminders","siri","speech-recognition"];function b(){console.log(`
5
5
  rnxsim permissions \u2014 inspect and change simulated operating-system permissions
6
6
 
7
7
  usage: