rnxsim 0.1.317 → 0.1.319

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 (183) hide show
  1. package/cli/bin.ts +1 -8
  2. package/cli/commands/debug.ts +1 -8
  3. package/cli/commands/detox.ts +16 -4
  4. package/cli/commands/flow.ts +1 -2
  5. package/cli/commands/inspect/wait-event.ts +1 -1
  6. package/cli/commands/inspect/wait-selector.ts +1 -1
  7. package/cli/commands/inspect.ts +56 -33
  8. package/cli/commands/maestro.ts +1 -1
  9. package/cli/commands/profile.ts +4 -6
  10. package/cli/commands/runtime.ts +0 -4
  11. package/cli/commands/storage.ts +1 -1
  12. package/cli/commands/telemetry.ts +0 -2
  13. package/cli/commands/timeline.ts +2 -4
  14. package/cli/parse-args.ts +0 -3
  15. package/detox/index.ts +155 -15
  16. package/detox/jest-preset.cjs +0 -1
  17. package/dist-cli/bin.js +5 -5
  18. package/dist-cli/chunks/{agent-EKGLRJEN.js → agent-Q4VAKGOL.js} +2 -2
  19. package/dist-cli/chunks/{agent-wrapper-FONNWB7J.js → agent-wrapper-Q2O4TR7H.js} +2 -2
  20. package/dist-cli/chunks/{app-fonts-XPM54HRY.js → app-fonts-B7UP3XTI.js} +2 -2
  21. package/dist-cli/chunks/{assert-PILHTZRZ.js → assert-NAFO4KMH.js} +2 -2
  22. package/dist-cli/chunks/{auth-Q2VUD5NQ.js → auth-CNUGYLCX.js} +2 -2
  23. package/dist-cli/chunks/{beta-P4XLZ3KL.js → beta-GN5BSED6.js} +2 -2
  24. package/dist-cli/chunks/{camera-O4PEVPI4.js → camera-EJRFUEXV.js} +2 -2
  25. package/dist-cli/chunks/{chunk-R6DDJVBB.js → chunk-2TNUPISH.js} +2 -2
  26. package/dist-cli/chunks/{chunk-BJ5CYKA7.js → chunk-3DEQXXSF.js} +4 -4
  27. package/dist-cli/chunks/{chunk-VB2ZZ4JI.js → chunk-3F3R7BM4.js} +2 -2
  28. package/dist-cli/chunks/{chunk-CUILVYWI.js → chunk-4UY4JSQ4.js} +1 -1
  29. package/dist-cli/chunks/chunk-522E7BRF.js +937 -0
  30. package/dist-cli/chunks/{chunk-NF63TOPI.js → chunk-5ABSWU6L.js} +2 -2
  31. package/dist-cli/chunks/{chunk-NA4AMR2E.js → chunk-5KXQT465.js} +1 -1
  32. package/dist-cli/chunks/{chunk-6WG4RQKM.js → chunk-6BGXKWGF.js} +2 -2
  33. package/dist-cli/chunks/{chunk-67ZR7PU7.js → chunk-72VB52IV.js} +1 -1
  34. package/dist-cli/chunks/{chunk-JQ4Y2XVT.js → chunk-76EVUPAL.js} +1 -1
  35. package/dist-cli/chunks/{chunk-OWADERTW.js → chunk-7DABL656.js} +2 -2
  36. package/dist-cli/chunks/{chunk-WWW5DC3G.js → chunk-7IW3PBRN.js} +2 -2
  37. package/dist-cli/chunks/{chunk-S23KHLTR.js → chunk-AX7PASOS.js} +2 -2
  38. package/dist-cli/chunks/{chunk-SZIPYT3D.js → chunk-AZ6S36CJ.js} +2 -2
  39. package/dist-cli/chunks/{chunk-T6W3B2KA.js → chunk-B27W3QWS.js} +1 -1
  40. package/dist-cli/chunks/{chunk-GQ3D2D4O.js → chunk-BQEWRZON.js} +1 -1
  41. package/dist-cli/chunks/{chunk-ADAIY3DX.js → chunk-BSCOA6LL.js} +2 -2
  42. package/dist-cli/chunks/{chunk-NUSBQSRQ.js → chunk-BVVUWEDG.js} +2 -2
  43. package/dist-cli/chunks/chunk-DD6F2WOA.js +4 -0
  44. package/dist-cli/chunks/{chunk-J4MCKLWE.js → chunk-DIADYUIH.js} +4 -4
  45. package/dist-cli/chunks/{chunk-KO7UG262.js → chunk-GHHVBATM.js} +2 -2
  46. package/dist-cli/chunks/{chunk-QCQQ2VDW.js → chunk-HCM7K4AU.js} +2 -2
  47. package/dist-cli/chunks/chunk-HPO2HNJX.js +124 -0
  48. package/dist-cli/chunks/{chunk-67OCUGZD.js → chunk-IHBAZ6ZJ.js} +2 -2
  49. package/dist-cli/chunks/{chunk-QGPNBTHT.js → chunk-IJYWC6QT.js} +2 -2
  50. package/dist-cli/chunks/{chunk-JZXCQEKO.js → chunk-JWAF5GXK.js} +2 -2
  51. package/dist-cli/chunks/{chunk-LSC2HFAB.js → chunk-JZIFPU64.js} +1 -1
  52. package/dist-cli/chunks/{chunk-RCPPPW7B.js → chunk-KMOLZN54.js} +1 -1
  53. package/dist-cli/chunks/{chunk-GMWPCQ63.js → chunk-L5JZXGYY.js} +1 -1
  54. package/dist-cli/chunks/{chunk-YRVJHPCU.js → chunk-LKO7E4VO.js} +2 -2
  55. package/dist-cli/chunks/{chunk-WJVNVBAI.js → chunk-M52VGRRN.js} +1 -1
  56. package/dist-cli/chunks/{chunk-7Q7IQ2SS.js → chunk-PFRV3TNY.js} +2 -2
  57. package/dist-cli/chunks/{chunk-3G7I72XV.js → chunk-PYDVLJOW.js} +2 -2
  58. package/dist-cli/chunks/{chunk-ATOUAYJP.js → chunk-QNNCKWZF.js} +1 -1
  59. package/dist-cli/chunks/{chunk-ODHQKXLB.js → chunk-R4JD7RQ5.js} +2 -2
  60. package/dist-cli/chunks/chunk-RIRZMX6H.js +4 -0
  61. package/dist-cli/chunks/{chunk-FIPCJ5OS.js → chunk-RVKU4F4H.js} +1 -1
  62. package/dist-cli/chunks/{chunk-A3GVXVSG.js → chunk-S5XIMHEZ.js} +2 -2
  63. package/dist-cli/chunks/{chunk-HJKQ6NEU.js → chunk-SPHYBQAZ.js} +2 -2
  64. package/dist-cli/chunks/chunk-TJSU45JD.js +4 -0
  65. package/dist-cli/chunks/{chunk-R6MEMDNB.js → chunk-UGYANOZR.js} +2 -2
  66. package/dist-cli/chunks/{chunk-W4YHMJOO.js → chunk-VB6FBQBW.js} +2 -2
  67. package/dist-cli/chunks/{chunk-5XVHBFAT.js → chunk-VLT3KCQT.js} +3 -3
  68. package/dist-cli/chunks/{chunk-OO5D7IJE.js → chunk-VQJMFDUN.js} +1 -1
  69. package/dist-cli/chunks/{chunk-EL23MRFL.js → chunk-WUZNWEBT.js} +1 -1
  70. package/dist-cli/chunks/{chunk-5BYFLVSZ.js → chunk-X2AHIPGY.js} +1 -1
  71. package/dist-cli/chunks/{chunk-OXSCF4UD.js → chunk-XJHAGKJD.js} +2 -2
  72. package/dist-cli/chunks/{chunk-RG3CME4Y.js → chunk-YPDFFAE7.js} +2 -2
  73. package/dist-cli/chunks/{chunk-HF4NZ5SD.js → chunk-YS6EWKGV.js} +2 -2
  74. package/dist-cli/chunks/{chunk-2SAOKV6V.js → chunk-YT6RDBLT.js} +1 -1
  75. package/dist-cli/chunks/{chunk-KZS5VM6Y.js → chunk-Z4LSUN4M.js} +1 -1
  76. package/dist-cli/chunks/{chunk-TUFL7CQK.js → chunk-Z72QDFQG.js} +2 -2
  77. package/dist-cli/chunks/{chunk-ARICQ4CG.js → chunk-ZH5X2H73.js} +2 -2
  78. package/dist-cli/chunks/{cleanup-O6IWLGDY.js → cleanup-GBLORG7C.js} +2 -2
  79. package/dist-cli/chunks/cli-version-6C4ZR7I7.js +4 -0
  80. package/dist-cli/chunks/{compat-562BT6JM.js → compat-OIWTQTTQ.js} +2 -2
  81. package/dist-cli/chunks/{config-7RO6O45J.js → config-DZCL6YFH.js} +2 -2
  82. package/dist-cli/chunks/{control-XYKZG442.js → control-MY5IZSCI.js} +2 -2
  83. package/dist-cli/chunks/daemon-42K3PILG.js +4 -0
  84. package/dist-cli/chunks/{debug-3VCEOVRM.js → debug-6UQUAZKP.js} +4 -4
  85. package/dist-cli/chunks/{desktop-K3PPS6VL.js → desktop-DFBFLSQ3.js} +3 -3
  86. package/dist-cli/chunks/detox-CIHUJOCI.js +52 -0
  87. package/dist-cli/chunks/{device-NZCR7JIN.js → device-7SOHSSJO.js} +2 -2
  88. package/dist-cli/chunks/{diagnose-VVJY6RF2.js → diagnose-P2FMX5HU.js} +2 -2
  89. package/dist-cli/chunks/{disk-cleanup-2VJMHUIY.js → disk-cleanup-6PP5CQVO.js} +2 -2
  90. package/dist-cli/chunks/drivers-CFJGYQFX.js +4 -0
  91. package/dist-cli/chunks/{film-CEMBA2DA.js → film-2WWHMPGU.js} +3 -3
  92. package/dist-cli/chunks/flow-KL7ZTVKL.js +4 -0
  93. package/dist-cli/chunks/help-T2OCMQPI.js +4 -0
  94. package/dist-cli/chunks/hidden-runtime-alias-ZZMC3E6R.js +4 -0
  95. package/dist-cli/chunks/{home-paths-TKPTU62O.js → home-paths-Y6X4LFSU.js} +2 -2
  96. package/dist-cli/chunks/inspect-PVMJQHMF.js +4 -0
  97. package/dist-cli/chunks/install-desktop-NHQZI4EH.js +4 -0
  98. package/dist-cli/chunks/{login-CIQT627K.js → login-BARKKDRL.js} +4 -4
  99. package/dist-cli/chunks/{logout-V2DJVY3U.js → logout-YVUMTGMP.js} +2 -2
  100. package/dist-cli/chunks/{maestro-YSZ6ZC5C.js → maestro-UPVELJ7G.js} +7 -7
  101. package/dist-cli/chunks/{maestro-generate-6JUELIXK.js → maestro-generate-EP76F4GB.js} +3 -3
  102. package/dist-cli/chunks/{mode-D4HQ6YN3.js → mode-ULOBJKDO.js} +2 -2
  103. package/dist-cli/chunks/{optional-demo-registry-AC6YJKT4.js → optional-demo-registry-O6RANNU3.js} +2 -2
  104. package/dist-cli/chunks/{perf-5GRZ4G5X.js → perf-ANPUHMRS.js} +2 -2
  105. package/dist-cli/chunks/{permissions-4V6UVWGK.js → permissions-NGMRAUGD.js} +2 -2
  106. package/dist-cli/chunks/{record-IDNLOQLR.js → record-CBO3QGRB.js} +3 -3
  107. package/dist-cli/chunks/{report-issue-TF6R77TT.js → report-issue-K7XKNJ2D.js} +2 -2
  108. package/dist-cli/chunks/reset-FXAX2W5A.js +4 -0
  109. package/dist-cli/chunks/runtime-GNCU66RR.js +4 -0
  110. package/dist-cli/chunks/{screenshot-command-CHJN7WUT.js → screenshot-command-KZZSYRX5.js} +3 -3
  111. package/dist-cli/chunks/{screenshot-layers-MSDCGYNE.js → screenshot-layers-Z3KSMJ3R.js} +2 -2
  112. package/dist-cli/chunks/{screenshots-capture-OGP3OQYR.js → screenshots-capture-QTB5GQNA.js} +2 -2
  113. package/dist-cli/chunks/{serve-GPBLCMXX.js → serve-JKTMCDG2.js} +2 -2
  114. package/dist-cli/chunks/{setup-S2KYWZZO.js → setup-GCAPEHZH.js} +2 -2
  115. package/dist-cli/chunks/{skills-AUS5DTUE.js → skills-Y4YDYEKA.js} +2 -2
  116. package/dist-cli/chunks/{state-QLYTMIKF.js → state-3HTG2CZU.js} +2 -2
  117. package/dist-cli/chunks/storage-XQE2XZJM.js +37 -0
  118. package/dist-cli/chunks/store-22QXHYUS.js +4 -0
  119. package/dist-cli/chunks/telemetry-VYGOHQWW.js +4 -0
  120. package/dist-cli/chunks/{timeline-EUHPXPFP.js → timeline-XYACO63Y.js} +3 -3
  121. package/dist-cli/chunks/{upgrade-JMMBM3ZN.js → upgrade-EVQTCUSG.js} +2 -2
  122. package/dist-cli/chunks/upload-XH3RQR4U.js +4 -0
  123. package/dist-cli/chunks/{version-QCF7RCA2.js → version-NLGYSRXS.js} +2 -2
  124. package/dist-cli/chunks/{web-WPYHMOVH.js → web-25OBFWDS.js} +2 -2
  125. package/dist-cli/chunks/{what-happened-3RNZP4MB.js → what-happened-MRN6CH5W.js} +2 -2
  126. package/dist-lib/agent-daemon-client.cjs +1 -1
  127. package/dist-lib/agent-events.cjs +1 -1
  128. package/dist-lib/agent-identity.cjs +1 -1
  129. package/dist-lib/agent-sessions.cjs +1 -1
  130. package/dist-lib/attached-projects.cjs +1 -1
  131. package/dist-lib/auth/shared-session.cjs +1 -1
  132. package/dist-lib/backend-origin.cjs +1 -1
  133. package/dist-lib/beta.cjs +1 -1
  134. package/dist-lib/beta.mjs +1 -1
  135. package/dist-lib/bridge-constants.cjs +1 -1
  136. package/dist-lib/bridge-contract.cjs +1 -1
  137. package/dist-lib/cli-constants.cjs +1 -1
  138. package/dist-lib/config.cjs +1 -1
  139. package/dist-lib/detox/index.cjs +93 -11
  140. package/dist-lib/detox/jest-preset.cjs +0 -1
  141. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  142. package/dist-lib/home-paths.cjs +1 -1
  143. package/dist-lib/host/bridge-host.cjs +1 -1
  144. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  145. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  146. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  147. package/dist-lib/host/websocket-proxy.cjs +1 -1
  148. package/dist-lib/index.cjs +1 -1
  149. package/dist-lib/jump-to-source-babel.cjs +1 -1
  150. package/dist-lib/menu.cjs +1 -1
  151. package/dist-lib/menu.mjs +1 -1
  152. package/dist-lib/metro.cjs +1 -1
  153. package/dist-lib/profiles.cjs +1 -1
  154. package/dist-lib/public-brand.cjs +1 -1
  155. package/dist-lib/render-mode.cjs +1 -1
  156. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  157. package/dist-lib/sdk.cjs +1 -1
  158. package/dist-lib/sdk.mjs +1 -1
  159. package/dist-lib/skills.cjs +62 -28
  160. package/dist-lib/vite.cjs +1 -1
  161. package/package.json +1 -1
  162. package/skills/contrast/SKILL.md +0 -1
  163. package/skills/rnx-perf/SKILL.md +17 -0
  164. package/src/vite-plugin.ts +74 -43
  165. package/dist-cli/chunks/chunk-744422UA.js +0 -4
  166. package/dist-cli/chunks/chunk-CHKTOWRH.js +0 -939
  167. package/dist-cli/chunks/chunk-O6OIXJ54.js +0 -4
  168. package/dist-cli/chunks/chunk-VUKB6JW3.js +0 -125
  169. package/dist-cli/chunks/cli-version-F2R7SUY7.js +0 -4
  170. package/dist-cli/chunks/daemon-WE37QLQC.js +0 -4
  171. package/dist-cli/chunks/detox-6ODNKASO.js +0 -52
  172. package/dist-cli/chunks/drivers-44ZJZ37B.js +0 -4
  173. package/dist-cli/chunks/flow-ORGIXYVS.js +0 -4
  174. package/dist-cli/chunks/help-UW52M7FZ.js +0 -4
  175. package/dist-cli/chunks/hidden-runtime-alias-R2QQLZZA.js +0 -4
  176. package/dist-cli/chunks/inspect-TNFI6C6G.js +0 -4
  177. package/dist-cli/chunks/install-desktop-NEJEPL4L.js +0 -4
  178. package/dist-cli/chunks/reset-D7WAFOZO.js +0 -4
  179. package/dist-cli/chunks/runtime-O5TNQBYH.js +0 -4
  180. package/dist-cli/chunks/storage-2MNS4TYO.js +0 -37
  181. package/dist-cli/chunks/store-UT52X7AA.js +0 -4
  182. package/dist-cli/chunks/telemetry-CAQVTTHY.js +0 -4
  183. package/dist-cli/chunks/upload-CEX4UBJL.js +0 -4
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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-GQ3D2D4O.js";import{d as V,f as q,g as J,i as F,j as B}from"./chunk-744422UA.js";import{b as x,c as L}from"./chunk-KO7UG262.js";import{c as k}from"./chunk-SZIPYT3D.js";import"./chunk-W4YHMJOO.js";import{f as y}from"./chunk-VB2ZZ4JI.js";import"./chunk-NUSBQSRQ.js";import"./chunk-S23KHLTR.js";import"./chunk-TUFL7CQK.js";import"./chunk-67OCUGZD.js";import"./chunk-R6MEMDNB.js";import"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import"./chunk-VUKB6JW3.js";import{C as R,D as C,J as w,M as N,O as I,l as v}from"./chunk-ATOUAYJP.js";import{a as T}from"./chunk-OXSCF4UD.js";import{a as s}from"./chunk-CUILVYWI.js";import"./chunk-2SAOKV6V.js";import"./chunk-5BYFLVSZ.js";import $ from"node:fs";import z from"node:os";import P from"node:path";import{spawn as re}from"node:child_process";import l from"node:fs";import a from"node:path";function Y(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"package.json")))return n;let r=a.dirname(n);if(r===n)return null;n=r}}function j(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"bun.lock"))||l.existsSync(a.join(n,"bun.lockb")))return"bun";if(l.existsSync(a.join(n,"pnpm-lock.yaml")))return"pnpm";if(l.existsSync(a.join(n,"package-lock.json")))return"npm";let r=a.dirname(n);if(r===n)return"npm";n=r}}function H(e){let n=a.resolve(e.appDir),r=te(a.join(n,"package.json")),t=`${s.commandName} open`,o=r.scripts?.[s.commandName];if(o&&o!==t)throw new Error(`package.json already defines scripts.${s.commandName} as ${JSON.stringify(o)}; resolve that conflict before setup`);let i=j(n),c=[];return r.devDependencies?.[s.packageName]!==e.cliVersion&&c.push(oe(i,e.cliVersion)),o!==t&&c.push(ae(i)),{appDir:n,packageManager:i,operations:c}}async function U(e,n){for(let r of e.operations)n.dryRun||await se(r,e.appDir,n.json)}function O(e){return e.operations.map(n=>`${n.command} ${n.args.map(ie).join(" ")}`)}function te(e){let n;try{n=JSON.parse(l.readFileSync(e,"utf8"))}catch(o){let i=o instanceof Error?o.message:String(o);throw new Error(`could not read ${e}: ${i}`)}if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`${e} must contain a JSON object`);let r=W(Reflect.get(n,"scripts")),t=W(Reflect.get(n,"devDependencies"));return{...r?{scripts:r}:{},...t?{devDependencies:t}:{}}}function W(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let n=Object.entries(e).filter(r=>typeof r[1]=="string");return Object.fromEntries(n)}function oe(e,n){let r=`${s.packageName}@${n}`;switch(e){case"bun":return{command:"bun",args:["add","--dev","--exact",r],description:`install ${r} as an exact dev dependency`};case"pnpm":return{command:"pnpm",args:["add","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`};case"npm":return{command:"npm",args:["install","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`}}}function ie(e){return/^[a-zA-Z0-9_./@=-]+$/.test(e)?e:JSON.stringify(e)}function se(e,n,r){return new Promise((t,o)=>{let i=re(e.command,e.args,{cwd:n,stdio:r?["ignore",2,"inherit"]:"inherit"});i.once("error",o),i.once("exit",c=>{c===0?t():o(new Error(`${e.command} exited with code ${c??"unknown"}`))})})}function ae(e){return{command:e,args:e==="bun"?["pm","pkg","set",`scripts.${s.commandName}=${s.commandName} open`]:["pkg","set",`scripts.${s.commandName}=${s.commandName} open`],description:`add the \`${s.commandName}\` package script`}}async function Ye(e){if(e.includes("--help")||e.includes("-h")){je();return}let n=ue(e),r="decisions";try{let t=Y(n.appDir),o=x(),i=R(),c=await le(n,o),X=await de(n,t),g=await K(n,"productAnalytics",i.productAnalytics,i.configured),S=await K(n,"crashReports",i.crashReports,i.configured),ee=await y.fetchManifest(),f=y.resolveVersion(ee,{channel:"stable"}).version,A=T();if(A==="0.0.0")throw new Error("could not resolve the installed rnxsim CLI version");let p=null;X&&t&&(p=H({appDir:t,cliVersion:A})),he(n),be(n,o,c,f),ve(n,t,p),Re(n,g,S),r="runtime";let M=!1;if(!n.dryRun){let E=w();M=(await y.install({version:f,channel:"stable",setActive:!0,protectVersions:E?[E]:[]})).installed}r="repository",p&&await U(p,{dryRun:n.dryRun,json:n.json}),r="service";let h=o.installed;c&&!o.installed&&!n.dryRun&&(await L({port:7668,force:!1}),h=!0),r="privacy",n.dryRun||C({productAnalytics:g,crashReports:S}),r="compatibility";let u=t?me(t):null,b=await fe(n,u);b&&u&&t&&!n.dryRun&&await ye(t,u),we(n,u,b);let _={runtimeVersion:f,serviceInstalled:h,repositoryPrepared:p!==null,compatibilityShared:b&&!n.dryRun},ne=Se(f);n.json?console.log(JSON.stringify({..._,runtimeInstalled:n.dryRun?!1:M,dryRun:n.dryRun,cache:ne,repositoryOperations:p?O(p):[]},null,2)):ke(p);let m=u?q(u):null;return k({event:"cli_setup_completed",properties:{service_installed:h,repository_prepared:p!==null,product_analytics:g,crash_reports:S,compat_supported:m?.supported??0,compat_partial:m?.partial??0,compat_unsupported:m?.unsupported??0,compat_not_yet_verified:m?.notYetVerified??0,from_welcome:n.fromWelcome,ci:n.ci,dry_run:n.dryRun}}),_}catch(t){let o=xe(t);throw k({event:"cli_setup_failed",properties:{stage:r,message:o}}),t}}function pe(){let e=x(),n=N(),r=w();return{daemonSupported:e.supported,daemonInstalled:e.installed,daemonRunning:!!(n&&I(n)),runtimeInstalled:!!(r&&$.existsSync(v(r))),privacyConfigured:R().configured}}function He(e=pe()){return!e.runtimeInstalled||!e.privacyConfigured}function ue(e){let n=e.indexOf("--app"),r=n>=0?e[n+1]:void 0;if(n>=0&&(!r||r.startsWith("-")))throw new Error("--app requires a directory");let t=G(e,"--service","--no-service"),o=G(e,"--repo","--no-repo");return{appDir:P.resolve(r??process.cwd()),ci:e.includes("--ci"),dryRun:e.includes("--dry-run"),fromWelcome:e.includes("--from-welcome"),json:e.includes("--json"),yes:e.includes("--yes")||e.includes("-y"),service:t,repository:o,productAnalytics:Z(e,"--analytics"),crashReports:Z(e,"--crash-reports"),shareCompatibility:e.includes("--share-compat")}}function G(e,n,r){if(e.includes(n)&&e.includes(r))throw new Error(`${n} and ${r} cannot be used together`);if(e.includes(n))return!0;if(e.includes(r))return!1}function Z(e,n){let r=e.find(i=>i.startsWith(`${n}=`)),t=e.indexOf(n),o=r?.slice(n.length+1)??(t>=0?e[t+1]:void 0);if(o!==void 0){if(o==="on"||o==="yes"||o==="true")return!0;if(o==="off"||o==="no"||o==="false")return!1;throw new Error(`${n} must be on or off`)}}async function le(e,n){if(e.ci){if(e.service===!0)throw new Error("--ci cannot install a machine service");return!1}return n.supported?n.installed&&e.service===void 0?!0:e.service!==void 0?e.service:e.yes?!0:(D(e,"--service or --no-service"),d("Install the background service and shared managed runtime?",!0)):!1}async function de(e,n){if(!n){if(e.repository===!0)throw new Error("--repo requires a package.json");return!1}return e.repository!==void 0?e.repository:e.yes?!0:(D(e,"--repo or --no-repo"),d(`Prepare ${n} for reproducible rnx runs?`,!0))}async function K(e,n,r,t){let o=n==="productAnalytics"?e.productAnalytics:e.crashReports;return o!==void 0?o:t?r:e.yes?!0:(D(e,n==="productAnalytics"?"--analytics on|off":"--crash-reports on|off"),d(n==="productAnalytics"?"Share bounded product analytics?":"Send bounded crash reports?",!0))}async function fe(e,n){return n?e.shareCompatibility?!0:e.yes||!process.stdin.isTTY?!1:d("Share dependency names, requested versions, framework, and this compatibility result?",!1):!1}function D(e,n){if(!(process.stdin.isTTY&&!e.ci))throw new Error(`non-interactive setup requires ${n}, or --yes to accept defaults`)}function me(e){let n=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!n||typeof n!="object")throw new Error("package.json must contain an object");return V(n)}async function ye(e,n){let r=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!r||typeof r!="object")throw new Error("package.json must be an object");let t=await fetch("https://contrast.dev/api/scan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(ge(r,n)),signal:AbortSignal.timeout(1e4)});if(!t.ok)throw new Error(`compatibility sharing failed with HTTP ${t.status}`)}function ge(e,n){return{dependencies:Q(Reflect.get(e,"dependencies")),devDependencies:Q(Reflect.get(e,"devDependencies")),framework:n.framework,result:{framework:n.framework,rnVersion:n.rnVersion,packages:n.packages.slice(0,200)},source:"desktop",shared:!0}}function Q(e){if(!e||typeof e!="object")return{};let n={};for(let[r,t]of Object.entries(e).slice(0,200))typeof t=="string"&&(n[r.slice(0,160)]=t.slice(0,80));return n}function Se(e){let n=z.platform(),r=z.arch();return{path:v(e),key:`sootsim-runtime-${n}-${r}-${e}`,inputs:{platform:n,arch:r,runtimeVersion:e}}}function he(e){e.json||console.log(`
4
+ import{a as d}from"./chunk-BQEWRZON.js";import{d as V,f as q,g as J,i as F,j as B}from"./chunk-TJSU45JD.js";import{b as x,c as L}from"./chunk-GHHVBATM.js";import{c as k}from"./chunk-AZ6S36CJ.js";import"./chunk-VB6FBQBW.js";import{f as y}from"./chunk-3F3R7BM4.js";import"./chunk-BVVUWEDG.js";import"./chunk-AX7PASOS.js";import"./chunk-Z72QDFQG.js";import"./chunk-IHBAZ6ZJ.js";import"./chunk-UGYANOZR.js";import"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-HPO2HNJX.js";import{C as R,D as C,J as w,M as N,O as I,l as v}from"./chunk-QNNCKWZF.js";import{a as T}from"./chunk-XJHAGKJD.js";import{a as s}from"./chunk-4UY4JSQ4.js";import"./chunk-YT6RDBLT.js";import"./chunk-X2AHIPGY.js";import $ from"node:fs";import z from"node:os";import P from"node:path";import{spawn as re}from"node:child_process";import l from"node:fs";import a from"node:path";function Y(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"package.json")))return n;let r=a.dirname(n);if(r===n)return null;n=r}}function j(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"bun.lock"))||l.existsSync(a.join(n,"bun.lockb")))return"bun";if(l.existsSync(a.join(n,"pnpm-lock.yaml")))return"pnpm";if(l.existsSync(a.join(n,"package-lock.json")))return"npm";let r=a.dirname(n);if(r===n)return"npm";n=r}}function H(e){let n=a.resolve(e.appDir),r=te(a.join(n,"package.json")),t=`${s.commandName} open`,o=r.scripts?.[s.commandName];if(o&&o!==t)throw new Error(`package.json already defines scripts.${s.commandName} as ${JSON.stringify(o)}; resolve that conflict before setup`);let i=j(n),c=[];return r.devDependencies?.[s.packageName]!==e.cliVersion&&c.push(oe(i,e.cliVersion)),o!==t&&c.push(ae(i)),{appDir:n,packageManager:i,operations:c}}async function U(e,n){for(let r of e.operations)n.dryRun||await se(r,e.appDir,n.json)}function O(e){return e.operations.map(n=>`${n.command} ${n.args.map(ie).join(" ")}`)}function te(e){let n;try{n=JSON.parse(l.readFileSync(e,"utf8"))}catch(o){let i=o instanceof Error?o.message:String(o);throw new Error(`could not read ${e}: ${i}`)}if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`${e} must contain a JSON object`);let r=W(Reflect.get(n,"scripts")),t=W(Reflect.get(n,"devDependencies"));return{...r?{scripts:r}:{},...t?{devDependencies:t}:{}}}function W(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let n=Object.entries(e).filter(r=>typeof r[1]=="string");return Object.fromEntries(n)}function oe(e,n){let r=`${s.packageName}@${n}`;switch(e){case"bun":return{command:"bun",args:["add","--dev","--exact",r],description:`install ${r} as an exact dev dependency`};case"pnpm":return{command:"pnpm",args:["add","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`};case"npm":return{command:"npm",args:["install","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`}}}function ie(e){return/^[a-zA-Z0-9_./@=-]+$/.test(e)?e:JSON.stringify(e)}function se(e,n,r){return new Promise((t,o)=>{let i=re(e.command,e.args,{cwd:n,stdio:r?["ignore",2,"inherit"]:"inherit"});i.once("error",o),i.once("exit",c=>{c===0?t():o(new Error(`${e.command} exited with code ${c??"unknown"}`))})})}function ae(e){return{command:e,args:e==="bun"?["pm","pkg","set",`scripts.${s.commandName}=${s.commandName} open`]:["pkg","set",`scripts.${s.commandName}=${s.commandName} open`],description:`add the \`${s.commandName}\` package script`}}async function Ye(e){if(e.includes("--help")||e.includes("-h")){je();return}let n=ue(e),r="decisions";try{let t=Y(n.appDir),o=x(),i=R(),c=await le(n,o),X=await de(n,t),g=await K(n,"productAnalytics",i.productAnalytics,i.configured),S=await K(n,"crashReports",i.crashReports,i.configured),ee=await y.fetchManifest(),f=y.resolveVersion(ee,{channel:"stable"}).version,A=T();if(A==="0.0.0")throw new Error("could not resolve the installed rnxsim CLI version");let p=null;X&&t&&(p=H({appDir:t,cliVersion:A})),he(n),be(n,o,c,f),ve(n,t,p),Re(n,g,S),r="runtime";let M=!1;if(!n.dryRun){let E=w();M=(await y.install({version:f,channel:"stable",setActive:!0,protectVersions:E?[E]:[]})).installed}r="repository",p&&await U(p,{dryRun:n.dryRun,json:n.json}),r="service";let h=o.installed;c&&!o.installed&&!n.dryRun&&(await L({port:7668,force:!1}),h=!0),r="privacy",n.dryRun||C({productAnalytics:g,crashReports:S}),r="compatibility";let u=t?me(t):null,b=await fe(n,u);b&&u&&t&&!n.dryRun&&await ye(t,u),we(n,u,b);let _={runtimeVersion:f,serviceInstalled:h,repositoryPrepared:p!==null,compatibilityShared:b&&!n.dryRun},ne=Se(f);n.json?console.log(JSON.stringify({..._,runtimeInstalled:n.dryRun?!1:M,dryRun:n.dryRun,cache:ne,repositoryOperations:p?O(p):[]},null,2)):ke(p);let m=u?q(u):null;return k({event:"cli_setup_completed",properties:{service_installed:h,repository_prepared:p!==null,product_analytics:g,crash_reports:S,compat_supported:m?.supported??0,compat_partial:m?.partial??0,compat_unsupported:m?.unsupported??0,compat_not_yet_verified:m?.notYetVerified??0,from_welcome:n.fromWelcome,ci:n.ci,dry_run:n.dryRun}}),_}catch(t){let o=xe(t);throw k({event:"cli_setup_failed",properties:{stage:r,message:o}}),t}}function pe(){let e=x(),n=N(),r=w();return{daemonSupported:e.supported,daemonInstalled:e.installed,daemonRunning:!!(n&&I(n)),runtimeInstalled:!!(r&&$.existsSync(v(r))),privacyConfigured:R().configured}}function He(e=pe()){return!e.runtimeInstalled||!e.privacyConfigured}function ue(e){let n=e.indexOf("--app"),r=n>=0?e[n+1]:void 0;if(n>=0&&(!r||r.startsWith("-")))throw new Error("--app requires a directory");let t=G(e,"--service","--no-service"),o=G(e,"--repo","--no-repo");return{appDir:P.resolve(r??process.cwd()),ci:e.includes("--ci"),dryRun:e.includes("--dry-run"),fromWelcome:e.includes("--from-welcome"),json:e.includes("--json"),yes:e.includes("--yes")||e.includes("-y"),service:t,repository:o,productAnalytics:Z(e,"--analytics"),crashReports:Z(e,"--crash-reports"),shareCompatibility:e.includes("--share-compat")}}function G(e,n,r){if(e.includes(n)&&e.includes(r))throw new Error(`${n} and ${r} cannot be used together`);if(e.includes(n))return!0;if(e.includes(r))return!1}function Z(e,n){let r=e.find(i=>i.startsWith(`${n}=`)),t=e.indexOf(n),o=r?.slice(n.length+1)??(t>=0?e[t+1]:void 0);if(o!==void 0){if(o==="on"||o==="yes"||o==="true")return!0;if(o==="off"||o==="no"||o==="false")return!1;throw new Error(`${n} must be on or off`)}}async function le(e,n){if(e.ci){if(e.service===!0)throw new Error("--ci cannot install a machine service");return!1}return n.supported?n.installed&&e.service===void 0?!0:e.service!==void 0?e.service:e.yes?!0:(D(e,"--service or --no-service"),d("Install the background service and shared managed runtime?",!0)):!1}async function de(e,n){if(!n){if(e.repository===!0)throw new Error("--repo requires a package.json");return!1}return e.repository!==void 0?e.repository:e.yes?!0:(D(e,"--repo or --no-repo"),d(`Prepare ${n} for reproducible rnx runs?`,!0))}async function K(e,n,r,t){let o=n==="productAnalytics"?e.productAnalytics:e.crashReports;return o!==void 0?o:t?r:e.yes?!0:(D(e,n==="productAnalytics"?"--analytics on|off":"--crash-reports on|off"),d(n==="productAnalytics"?"Share bounded product analytics?":"Send bounded crash reports?",!0))}async function fe(e,n){return n?e.shareCompatibility?!0:e.yes||!process.stdin.isTTY?!1:d("Share dependency names, requested versions, framework, and this compatibility result?",!1):!1}function D(e,n){if(!(process.stdin.isTTY&&!e.ci))throw new Error(`non-interactive setup requires ${n}, or --yes to accept defaults`)}function me(e){let n=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!n||typeof n!="object")throw new Error("package.json must contain an object");return V(n)}async function ye(e,n){let r=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!r||typeof r!="object")throw new Error("package.json must be an object");let t=await fetch("https://contrast.dev/api/scan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(ge(r,n)),signal:AbortSignal.timeout(1e4)});if(!t.ok)throw new Error(`compatibility sharing failed with HTTP ${t.status}`)}function ge(e,n){return{dependencies:Q(Reflect.get(e,"dependencies")),devDependencies:Q(Reflect.get(e,"devDependencies")),framework:n.framework,result:{framework:n.framework,rnVersion:n.rnVersion,packages:n.packages.slice(0,200)},source:"desktop",shared:!0}}function Q(e){if(!e||typeof e!="object")return{};let n={};for(let[r,t]of Object.entries(e).slice(0,200))typeof t=="string"&&(n[r.slice(0,160)]=t.slice(0,80));return n}function Se(e){let n=z.platform(),r=z.arch();return{path:v(e),key:`sootsim-runtime-${n}-${r}-${e}`,inputs:{platform:n,arch:r,runtimeVersion:e}}}function he(e){e.json||console.log(`
5
5
  ${e.fromWelcome?"welcome to rnx":"rnxsim setup"}`)}function be(e,n,r,t){e.json||(console.log(`
6
6
  1. machine`),console.log(` stable runtime: ${t}`),console.log(` background service: ${n.supported?r?"install":"skip":"unsupported on this platform"}`))}function ve(e,n,r){if(!e.json){if(console.log(`
7
7
  2. repository`),!n){console.log(" no package.json found; repository preparation skipped");return}if(!r){console.log(` skipped for ${n}`);return}console.log(` package manager: ${j(n)}`);for(let t of O(r))console.log(` ${e.dryRun?"would run":"run"}: ${t}`)}}function Re(e,n,r){e.json||(console.log(`
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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 h}from"./chunk-CUILVYWI.js";import"./chunk-5BYFLVSZ.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnxsim skill
4
+ import{a as h}from"./chunk-4UY4JSQ4.js";import"./chunk-X2AHIPGY.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnxsim skill
5
5
 
6
6
  install and inspect bundled rnx agent skills.
7
7
 
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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{m as a}from"./chunk-HF4NZ5SD.js";import"./chunk-KZS5VM6Y.js";import{q as c,s as l}from"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import"./chunk-ATOUAYJP.js";import"./chunk-5BYFLVSZ.js";function g(t){return!!t&&typeof t=="object"&&typeof Reflect.get(t,"capturedAt")=="number"}function p(){console.log(`
4
+ import{m as a}from"./chunk-YS6EWKGV.js";import"./chunk-Z4LSUN4M.js";import{q as c,s as l}from"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-QNNCKWZF.js";import"./chunk-X2AHIPGY.js";function g(t){return!!t&&typeof t=="object"&&typeof Reflect.get(t,"capturedAt")=="number"}function p(){console.log(`
5
5
  rnxsim state - capture the current app state in one call
6
6
 
7
7
  usage:
@@ -0,0 +1,37 @@
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{b as s,c as l,d as c,e as a,f}from"./chunk-5ABSWU6L.js";import{a as t}from"./chunk-R4JD7RQ5.js";import"./chunk-YS6EWKGV.js";import"./chunk-Z4LSUN4M.js";import"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-QNNCKWZF.js";import"./chunk-X2AHIPGY.js";function p(){console.log(`
5
+ rnxsim storage profile \u2014 manage isolated storage profiles
6
+
7
+ usage:
8
+ rnxsim storage profile list
9
+ rnxsim storage profile create <id>
10
+ rnxsim storage profile clear <id>
11
+ rnxsim storage profile delete <id>
12
+
13
+ profiles isolate cookies, localStorage, IndexedDB, cache, permissions, and
14
+ service workers in Electron and Playwright launches. Plain browser-tab launches
15
+ cannot honor profiles and will fail clearly if a profile is requested.
16
+
17
+ examples:
18
+ rnxsim storage profile list
19
+ rnxsim storage profile create qa
20
+ rnxsim open 8081 --profile qa
21
+ rnxsim open 8081 --profile qa --driver playwright
22
+ rnxsim storage profile clear qa
23
+ rnxsim storage profile delete qa
24
+ `)}async function d(r,i){if(r.includes("--help")||r.includes("-h"))return p(),0;let o=r[0]??"list";try{switch(o){case"list":{let e=s();for(let n of e)console.log(` ${n.id}`);return 0}case"create":{let e=r[1];if(!e)return console.error(" profile create expects <id>"),1;let n=c(e);return console.log(` created profile: ${n.id}`),0}case"ensure":{let e=r[1];if(!e)return console.error(" profile ensure expects <id>"),1;let n=l(e);return console.log(` profile: ${n.id}`),0}case"clear":{let e=r[1];return e?(l(e),f(e),console.log(` cleared profile: ${e}`),0):(console.error(" profile clear expects <id>"),1)}case"delete":{let e=r[1];if(!e)return console.error(" profile delete expects <id>"),1;let n=a(e);return console.log(` deleted profile: ${n.id}`),0}default:return console.error(` unknown profile command: ${o}`),p(),1}}catch(e){return console.error(` profile failed: ${e instanceof Error?e.message:String(e)}`),1}}var m=new Set(["--sim","--port","-p"]),g=new Set(["profile","clear"]);function x(r){for(let i=0;i<r.length;i++){let o=r[i];if(o.startsWith("-")){m.has(o)&&i++;continue}return g.has(o)?{name:o,index:i}:null}return null}function u(){console.log(`
25
+ rnxsim storage \u2014 manage sim and app storage
26
+
27
+ usage:
28
+ rnxsim storage profile <subcommand>
29
+ rnxsim storage clear [--full] [--sim <id>] [--json]
30
+
31
+ subcommands:
32
+ profile list
33
+ profile create <id>
34
+ profile clear <id>
35
+ profile delete <id>
36
+ clear clear the current guest app data and relaunch it
37
+ `)}async function w(r,i){if(r.includes("--help")||r.includes("-h"))return u(),0;let o=x(r);return o?.name==="profile"?d([...r.slice(0,o.index),...r.slice(o.index+1)],i):o?.name==="clear"?t([...r.slice(0,o.index),...r.slice(o.index+1)],i):(console.error(` unknown storage command: ${o?.name??"(missing)"}`),u(),1)}export{w as runStorage};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.319 | (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-IJYWC6QT.js";import"./chunk-UGYANOZR.js";import"./chunk-X2AHIPGY.js";export{a as settingsStore};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.319 | (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 as a,d as b}from"./chunk-AZ6S36CJ.js";import"./chunk-VB6FBQBW.js";import"./chunk-QNNCKWZF.js";import"./chunk-X2AHIPGY.js";export{b as flushCliTelemetry,a as trackCliEvent};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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 m,s as d,v as i}from"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import"./chunk-ATOUAYJP.js";import"./chunk-5BYFLVSZ.js";import{writeFileSync as g}from"fs";function u(){console.log(`
4
+ import{q as m,s as d,v as i}from"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-QNNCKWZF.js";import"./chunk-X2AHIPGY.js";import{writeFileSync as g}from"fs";function u(){console.log(`
5
5
  rnxsim timeline \u2014 control the semantic event timeline
6
6
 
7
7
  usage:
@@ -20,5 +20,5 @@ start/stop enables opt-in kinds (react-commit, scroll, gesture, text-input,
20
20
  layout, reanimated, animation).
21
21
 
22
22
  read the timeline with: rnxsim what-happened
23
- `)}async function h(n,p){let o=m(n,{port:p.port,stripBooleanFlags:["--json","--help","-h"]}),l=o.positional[0];(!l||n.includes("--help")||n.includes("-h"))&&(u(),process.exit(0));let a=n.includes("--json"),t=d(o),r=o.positional.slice(1),s=r[0]?r[0].split(",").map(e=>e.trim()).filter(Boolean):[];try{switch(l){case"status":{let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"start":case"enable":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.enable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"stop":case"disable":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.disable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"clear":{await i(t,"SootSim.bridges.timeline.clear"),console.log(" cleared");break}case"dump":{let e=r[0];e||(console.error(" usage: rnxsim timeline dump <file>"),process.exit(1));let c=await i(t,"SootSim.bridges.timeline.recent",{limit:1e6});g(e,JSON.stringify(c.events,null,2)+`
23
+ `)}async function h(n,p){let o=m(n,{port:p.port,stripBooleanFlags:["--json","--help","-h"]}),l=o.positional[0];(!l||n.includes("--help")||n.includes("-h"))&&(u(),process.exit(0));let r=n.includes("--json"),t=d(o),a=o.positional.slice(1),s=a[0]?a[0].split(",").map(e=>e.trim()).filter(Boolean):[];try{switch(l){case"status":{let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"start":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.enable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"stop":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.disable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"clear":{await i(t,"SootSim.bridges.timeline.clear"),console.log(" cleared");break}case"dump":{let e=a[0];e||(console.error(" usage: rnxsim timeline dump <file>"),process.exit(1));let c=await i(t,"SootSim.bridges.timeline.recent",{limit:1e6});g(e,JSON.stringify(c.events,null,2)+`
24
24
  `),console.log(` wrote ${c.events.length} event(s) to ${e}`);break}default:console.error(` unknown subcommand: ${l}`),u(),process.exit(1)}}finally{t.close()}}export{h as runTimeline};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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 h,b as v,c as $}from"./chunk-BJ5CYKA7.js";import{b as p}from"./chunk-7Q7IQ2SS.js";import"./chunk-FIPCJ5OS.js";import{b as g}from"./chunk-VB2ZZ4JI.js";import"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import{J as a,g as m,h as u,l as d}from"./chunk-ATOUAYJP.js";import{a as f}from"./chunk-OXSCF4UD.js";import"./chunk-CUILVYWI.js";import"./chunk-5BYFLVSZ.js";import{spawn as y}from"node:child_process";import x from"node:fs";import R from"node:os";import s from"node:path";var b="https://registry.npmjs.org/rnxsim/latest";async function W(t){let n=t.indexOf("--channel"),e=n>=0&&t[n+1]?t[n+1]:void 0;console.log(`rnxsim upgrade
4
+ import{a as h,b as v,c as $}from"./chunk-3DEQXXSF.js";import{b as p}from"./chunk-PFRV3TNY.js";import"./chunk-RVKU4F4H.js";import{b as g}from"./chunk-3F3R7BM4.js";import"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import{J as a,g as m,h as u,l as d}from"./chunk-QNNCKWZF.js";import{a as f}from"./chunk-XJHAGKJD.js";import"./chunk-4UY4JSQ4.js";import"./chunk-X2AHIPGY.js";import{spawn as y}from"node:child_process";import x from"node:fs";import R from"node:os";import s from"node:path";var b="https://registry.npmjs.org/rnxsim/latest";async function W(t){let n=t.indexOf("--channel"),e=n>=0&&t[n+1]?t[n+1]:void 0;console.log(`rnxsim upgrade
5
5
  `),console.log("runtime:");let o=a(),{config:l}=await p(),r=l?.runtimeVersion,c=r?x.existsSync(s.join(d(r),"index.html")):!1;r&&console.log(` project config: v${r}`);let i=(r&&c?null:await $(["install",...r?[r,"--set-active=false"]:[],...e?["--channel",e]:[]],{}))?.version??r??a();i&&console.log(r?c?` result: v${i} already installed for this project`:` result: not installed \u2192 v${i} for this project`:o&&o!==i?` result: v${o} \u2192 v${i}`:o?` result: v${i} already current`:` result: not installed \u2192 v${i}`);let k=i?await h(i):null;console.log(`
6
6
  cli:`),await j(),i&&console.log(`
7
7
  ${v(i,k)}`)}function w(){if(u())return{kind:"dev"};let t=process.argv[1]??"";try{t=x.realpathSync(t)}catch{}let n=s.sep;if(t.includes(`${n}_npx${n}`)||t.includes(`${n}.bunx${n}`))return{kind:"npx"};if(t.includes(`${n}.bun${n}`))return{kind:"global",command:"bun",args:["add","-g","rnxsim@latest"]};if(t.includes(`${n}pnpm${n}`))return{kind:"global",command:"pnpm",args:["add","-g","rnxsim@latest"]};let e=s.join(m(),"cli");if(t.startsWith(`${e}${n}`))return{kind:"global",command:"npm",args:["i","-g","--prefix",e,"rnxsim@latest"]};let o=s.resolve(process.env.SOOTSIM_CLI_PREFIX||s.join(R.homedir(),".local"));return t.startsWith(`${o}${n}`)?{kind:"global",command:"npm",args:["i","-g","--prefix",o,"rnxsim@latest"]}:{kind:"global",command:"npm",args:["i","-g","rnxsim@latest"]}}async function j(){let t=f(),n=await C();if(!n){console.log(` v${t} \u2014 couldn't reach the npm registry, skipped`);return}if(g(n,t)<=0){console.log(` v${t} (latest)`);return}let e=w();if(console.log(` v${t} \u2192 v${n}`),e.kind==="dev"){console.log(" running from the Contrast dev checkout \u2014 pull instead of upgrading");return}if(e.kind==="npx"){console.log(" running from the npx cache \u2014 get the latest with:"),console.log(" npx rnxsim@latest");return}let o=`${e.command} ${e.args.join(" ")}`;console.log(` updating global install (${o})\u2026`),await S(e.command,e.args)?console.log(` updated to v${n}`):(console.log(" update failed \u2014 run it yourself:"),console.log(` ${o}`))}function S(t,n){return new Promise(e=>{let o=y(t,n,{stdio:"inherit"});o.on("error",()=>e(!1)),o.on("exit",l=>e(l===0))})}async function C(){try{let t=await fetch(b,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!t.ok)return null;let n=await t.json();return typeof n.version=="string"&&n.version?n.version:null}catch{return null}}export{W as runUpgrade};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{e as a,f as b,g as c}from"./chunk-BSCOA6LL.js";import"./chunk-7DABL656.js";import"./chunk-LKO7E4VO.js";import"./chunk-PYDVLJOW.js";import"./chunk-RVKU4F4H.js";import"./chunk-76EVUPAL.js";import"./chunk-AZ6S36CJ.js";import"./chunk-VB6FBQBW.js";import"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-QNNCKWZF.js";import"./chunk-4UY4JSQ4.js";import"./chunk-X2AHIPGY.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
@@ -1,6 +1,6 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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 a}from"./chunk-7Q7IQ2SS.js";import"./chunk-FIPCJ5OS.js";import{d as s,f as t}from"./chunk-VB2ZZ4JI.js";import{a as m}from"./chunk-S23KHLTR.js";import"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import{l as r}from"./chunk-ATOUAYJP.js";import{a as l}from"./chunk-OXSCF4UD.js";import"./chunk-CUILVYWI.js";import"./chunk-5BYFLVSZ.js";import g from"node:fs";import d from"node:path";async function R($){let{IS_BETA:c,BETA_LABEL:u}=await import("./beta-P4XLZ3KL.js"),f=c?` \xB7 ${u}`:"";console.log(`rnxsim v${l()}${f}`);let o=m(),n=t.resolveChannel();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${n}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `rnxsim runtime install`"):console.log(`${o.primary} \xB7 ${n}`);let{config:i}=await a();if(i?.runtimeVersion){let p=g.existsSync(d.join(r(i.runtimeVersion),"index.html"));console.log(`project runtime v${i.runtimeVersion} \xB7 configured \xB7 ${p?"installed":"installs on open"}`)}let e=await t.checkUpToDate({channel:n});e.outdated&&e.latest&&console.log(`
4
+ import{b as a}from"./chunk-PFRV3TNY.js";import"./chunk-RVKU4F4H.js";import{d as s,f as t}from"./chunk-3F3R7BM4.js";import{a as m}from"./chunk-AX7PASOS.js";import"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import{l as r}from"./chunk-QNNCKWZF.js";import{a as l}from"./chunk-XJHAGKJD.js";import"./chunk-4UY4JSQ4.js";import"./chunk-X2AHIPGY.js";import g from"node:fs";import d from"node:path";async function R($){let{IS_BETA:c,BETA_LABEL:u}=await import("./beta-GN5BSED6.js"),f=c?` \xB7 ${u}`:"";console.log(`rnxsim v${l()}${f}`);let o=m(),n=t.resolveChannel();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${n}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `rnxsim runtime install`"):console.log(`${o.primary} \xB7 ${n}`);let{config:i}=await a();if(i?.runtimeVersion){let p=g.existsSync(d.join(r(i.runtimeVersion),"index.html"));console.log(`project runtime v${i.runtimeVersion} \xB7 configured \xB7 ${p?"installed":"installs on open"}`)}let e=await t.checkUpToDate({channel:n});e.outdated&&e.latest&&console.log(`
5
5
  \u2191 default runtime v${e.latest} available; run \`rnxsim upgrade\``),console.log(`
6
6
  what's new: ${s}`)}export{R as runVersion};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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}from"./chunk-744422UA.js";import"./chunk-5BYFLVSZ.js";export{b as COMPAT_CATEGORIES,j as COMPAT_RESULT_CAVEAT,c as POLYFILL_REGISTRY,a as UNSUPPORTABLE,f as countScanResults,i as formatDetailedScanLines,h as formatPackageStatus,g as formatScanCounts,d as scanDeps,e as scanDepsWithData};
4
+ import{a,b,c,d,e,f,g,h,i,j}from"./chunk-TJSU45JD.js";import"./chunk-X2AHIPGY.js";export{b as COMPAT_CATEGORIES,j as COMPAT_RESULT_CAVEAT,c as POLYFILL_REGISTRY,a as UNSUPPORTABLE,f as countScanResults,i as formatDetailedScanLines,h as formatPackageStatus,g as formatScanCounts,d as scanDeps,e as scanDepsWithData};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (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{D as F,E as T,G as y,R as A,S as b,T as S}from"./chunk-KZS5VM6Y.js";import{e as k,q as x,s as N}from"./chunk-A3GVXVSG.js";import"./chunk-GMWPCQ63.js";import"./chunk-ATOUAYJP.js";import"./chunk-5BYFLVSZ.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=x(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
4
+ import{D as F,E as T,G as y,R as A,S as b,T as S}from"./chunk-Z4LSUN4M.js";import{e as k,q as x,s as N}from"./chunk-S5XIMHEZ.js";import"./chunk-L5JZXGYY.js";import"./chunk-QNNCKWZF.js";import"./chunk-X2AHIPGY.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=x(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
5
5
  rnxsim what-happened \u2014 show recent events from the semantic timeline
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2673,23 +2673,39 @@ var device = {
2673
2673
  // actually fired (typically within a few ms of offsetMs).
2674
2674
  async takeScreenshotStagesFast(namePrefix, stages, options) {
2675
2675
  const page = getPage();
2676
- const frames = await page.evaluate(
2676
+ const token = `timed-${process.pid}-${Date.now()}-${Math.random()}`;
2677
+ const capturePromise = page.evaluate(
2677
2678
  async (input) => {
2678
- const sim = window;
2679
- const screenshot = sim.SootSim?.bridges?.screenshot;
2680
- const live = sim.SootSim?.bridges?.liveComposite;
2679
+ const captureWindow = window;
2680
+ const screenshot = captureWindow.SootSim?.bridges?.screenshot;
2681
+ const live = captureWindow.SootSim?.bridges?.liveComposite;
2681
2682
  if (typeof screenshot !== "function") {
2682
2683
  throw new Error("rnx screenshot bridge is not installed");
2683
2684
  }
2685
+ const registry = captureWindow.__sootsimTimedCaptures ?? (captureWindow.__sootsimTimedCaptures = {});
2686
+ const state = {
2687
+ anchorPerformanceMs: null,
2688
+ anchorWallMs: null,
2689
+ cancelled: false,
2690
+ ready: false
2691
+ };
2692
+ registry[input.token] = state;
2684
2693
  if (!input.skipWarmup) {
2685
2694
  await screenshot({ format: "png" });
2686
2695
  }
2687
- const start = performance.now();
2696
+ state.ready = true;
2697
+ while (state.anchorPerformanceMs === null || state.anchorWallMs === null) {
2698
+ if (state.cancelled) throw new Error("rnx timed capture was cancelled");
2699
+ await new Promise((resolve) => setTimeout(resolve, 0));
2700
+ }
2701
+ const captureAnchorMs = state.anchorWallMs;
2702
+ const captureAnchorPerformanceMs = state.anchorPerformanceMs;
2688
2703
  const snaps = await Promise.all(
2689
2704
  input.stages.map(
2690
2705
  (stage) => new Promise((resolve) => {
2691
2706
  const fire = async () => {
2692
- const actualMs = performance.now() - start;
2707
+ const actualMs = performance.now() - captureAnchorPerformanceMs;
2708
+ const captureRequestedAtMs = Date.now();
2693
2709
  try {
2694
2710
  let dataUrl = null;
2695
2711
  if (live && typeof live.captureFresh === "function") {
@@ -2714,6 +2730,7 @@ var device = {
2714
2730
  label: stage.label,
2715
2731
  offsetMs: stage.offsetMs,
2716
2732
  actualMs,
2733
+ captureRequestedAtMs,
2717
2734
  dataUrl
2718
2735
  });
2719
2736
  } catch {
@@ -2721,6 +2738,7 @@ var device = {
2721
2738
  label: stage.label,
2722
2739
  offsetMs: stage.offsetMs,
2723
2740
  actualMs,
2741
+ captureRequestedAtMs,
2724
2742
  dataUrl: null
2725
2743
  });
2726
2744
  }
@@ -2729,7 +2747,10 @@ var device = {
2729
2747
  () => {
2730
2748
  void fire();
2731
2749
  },
2732
- Math.max(0, stage.offsetMs)
2750
+ Math.max(
2751
+ 0,
2752
+ captureAnchorPerformanceMs + stage.offsetMs - performance.now()
2753
+ )
2733
2754
  );
2734
2755
  })
2735
2756
  )
@@ -2741,14 +2762,75 @@ var device = {
2741
2762
  label: snap.label,
2742
2763
  offsetMs: snap.offsetMs,
2743
2764
  actualMs: snap.actualMs,
2765
+ captureRequestedAtMs: snap.captureRequestedAtMs,
2744
2766
  dataUrl: snap.dataUrl
2745
2767
  });
2746
2768
  }
2747
- return out;
2769
+ delete registry[input.token];
2770
+ return { captureAnchorMs, frames: out };
2748
2771
  },
2749
- { stages, skipWarmup: options?.skipWarmup === true }
2772
+ { stages, skipWarmup: options.skipWarmup === true, token }
2750
2773
  );
2751
- return writeFastScreenshotFrames(namePrefix, frames);
2774
+ await page.waitForFunction(
2775
+ (captureToken) => {
2776
+ const registry = window.__sootsimTimedCaptures;
2777
+ return registry?.[captureToken]?.ready === true;
2778
+ },
2779
+ token,
2780
+ { timeout: 5e3 }
2781
+ );
2782
+ const armCapture = (anchorMs) => page.evaluate(
2783
+ ({ anchorMs: anchorMs2, captureToken }) => {
2784
+ const registry = window.__sootsimTimedCaptures;
2785
+ const capture = registry?.[captureToken];
2786
+ if (!capture?.ready) throw new Error("rnx timed capture was not armed");
2787
+ const nowMs = Date.now();
2788
+ capture.anchorWallMs = anchorMs2 ?? nowMs;
2789
+ capture.anchorPerformanceMs = performance.now() - (nowMs - capture.anchorWallMs);
2790
+ return capture.anchorWallMs;
2791
+ },
2792
+ { anchorMs, captureToken: token }
2793
+ );
2794
+ let triggerStartMs = 0;
2795
+ let triggerCompletedMs = 0;
2796
+ try {
2797
+ let captureAnchorMs;
2798
+ if (options.anchorAfterTrigger === false) {
2799
+ captureAnchorMs = await armCapture();
2800
+ triggerStartMs = captureAnchorMs;
2801
+ const triggerPromise = Promise.resolve().then(options.trigger).then(() => {
2802
+ triggerCompletedMs = Date.now();
2803
+ });
2804
+ const [capture2] = await Promise.all([capturePromise, triggerPromise]);
2805
+ return {
2806
+ captureAnchorMs,
2807
+ frames: writeFastScreenshotFrames(namePrefix, capture2.frames),
2808
+ triggerCompletedMs,
2809
+ triggerStartMs
2810
+ };
2811
+ }
2812
+ triggerStartMs = Date.now();
2813
+ await Promise.resolve(options.trigger());
2814
+ triggerCompletedMs = Date.now();
2815
+ captureAnchorMs = await armCapture(triggerCompletedMs);
2816
+ const capture = await capturePromise;
2817
+ return {
2818
+ captureAnchorMs,
2819
+ frames: writeFastScreenshotFrames(namePrefix, capture.frames),
2820
+ triggerCompletedMs,
2821
+ triggerStartMs
2822
+ };
2823
+ } catch (error) {
2824
+ await page.evaluate((captureToken) => {
2825
+ const registry = window.__sootsimTimedCaptures;
2826
+ const capture = registry?.[captureToken];
2827
+ if (capture) capture.cancelled = true;
2828
+ }, token).catch(() => {
2829
+ });
2830
+ await capturePromise.catch(() => {
2831
+ });
2832
+ throw error;
2833
+ }
2752
2834
  },
2753
2835
  // batched multi-stage capture for animation diffs. all N captures happen
2754
2836
  // inside one page.evaluate round trip so browser-side timing controls the
@@ -17,7 +17,6 @@ module.exports = {
17
17
  testTimeout: 180000,
18
18
  maxWorkers: 1,
19
19
  watchman: false,
20
- forceExit: true,
21
20
  verbose: true,
22
21
  testEnvironment: 'node',
23
22
  setupFilesAfterEnv: [path.join(PACKAGE_ROOT, 'detox', 'jest-setup-after-env.cjs')],
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "rnx";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.317 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.319 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;