rnxsim 0.1.329 → 0.1.331

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 (156) hide show
  1. package/dist-cli/bin.js +5 -5
  2. package/dist-cli/chunks/{agent-WNUCWOPC.js → agent-TIVJ2VQL.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-FK7K3GZR.js → agent-wrapper-NAAH2TNP.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-P3DADZ2T.js → app-fonts-F4X4W4YK.js} +2 -2
  5. package/dist-cli/chunks/{assert-GNFF3VNG.js → assert-3NYZ544E.js} +2 -2
  6. package/dist-cli/chunks/{auth-BHSZ72CG.js → auth-QUWQKG5S.js} +2 -2
  7. package/dist-cli/chunks/{beta-HO4XKH4Z.js → beta-BO3LCCRQ.js} +2 -2
  8. package/dist-cli/chunks/{camera-CY4IESV4.js → camera-YWPE2C2E.js} +2 -2
  9. package/dist-cli/chunks/{chunk-XO3LJ2BQ.js → chunk-2664O2SP.js} +2 -2
  10. package/dist-cli/chunks/{chunk-7P3NXU4K.js → chunk-3M24TFEF.js} +2 -2
  11. package/dist-cli/chunks/{chunk-RXCRS3MQ.js → chunk-3PKHK6G4.js} +3 -3
  12. package/dist-cli/chunks/{chunk-3GON3377.js → chunk-5R5FCLE4.js} +2 -2
  13. package/dist-cli/chunks/{chunk-5JG7OCPS.js → chunk-6MWOPKCZ.js} +2 -2
  14. package/dist-cli/chunks/{chunk-Y3KPW46E.js → chunk-6QEYHQZH.js} +2 -2
  15. package/dist-cli/chunks/{chunk-TEA75F6H.js → chunk-ADGT4K22.js} +2 -2
  16. package/dist-cli/chunks/{chunk-S22ABIJP.js → chunk-BPXOBH2S.js} +2 -2
  17. package/dist-cli/chunks/{chunk-E2AM3YWQ.js → chunk-BW7RJZKD.js} +3 -3
  18. package/dist-cli/chunks/{chunk-5ZQ5G76U.js → chunk-BYO6P6AW.js} +2 -2
  19. package/dist-cli/chunks/{chunk-AXOK3IZR.js → chunk-C53ASFDC.js} +2 -2
  20. package/dist-cli/chunks/{chunk-ZQU5X3D5.js → chunk-CJJFG5KQ.js} +1 -1
  21. package/dist-cli/chunks/{chunk-P52N24RM.js → chunk-CLI3SDZR.js} +2 -2
  22. package/dist-cli/chunks/{chunk-SZQY7NFH.js → chunk-CWOSCFGT.js} +2 -2
  23. package/dist-cli/chunks/{chunk-TLTBT7QM.js → chunk-CXKDXNRV.js} +2 -2
  24. package/dist-cli/chunks/{chunk-KWNB6JUI.js → chunk-DXOSLJQ7.js} +1 -1
  25. package/dist-cli/chunks/{chunk-MUGJLIRC.js → chunk-EIK7XWQ5.js} +2 -2
  26. package/dist-cli/chunks/{chunk-36SLXMYJ.js → chunk-ENPMBKGL.js} +1 -1
  27. package/dist-cli/chunks/{chunk-W5VTGSXZ.js → chunk-EXIHWLOG.js} +1 -1
  28. package/dist-cli/chunks/{chunk-VSQKEGUT.js → chunk-FJIPXIGR.js} +2 -2
  29. package/dist-cli/chunks/{chunk-VV42XEDS.js → chunk-FKP4RKI7.js} +1 -1
  30. package/dist-cli/chunks/{chunk-RQNNXIBD.js → chunk-FQNDTYZQ.js} +1 -1
  31. package/dist-cli/chunks/{chunk-XQCRNIDM.js → chunk-GMG63IR6.js} +2 -2
  32. package/dist-cli/chunks/{chunk-FVYN7JXZ.js → chunk-HEY3X6S5.js} +2 -2
  33. package/dist-cli/chunks/{chunk-RRZWYSAM.js → chunk-IDFSGLP3.js} +2 -2
  34. package/dist-cli/chunks/{chunk-5XZPTTX6.js → chunk-IXMPQ35S.js} +1 -1
  35. package/dist-cli/chunks/{chunk-J76H5R5N.js → chunk-JDUNLHV4.js} +2 -2
  36. package/dist-cli/chunks/{chunk-3KKQNO4E.js → chunk-LTKFVWTL.js} +2 -2
  37. package/dist-cli/chunks/{chunk-DE2C75TX.js → chunk-MXQNNVV4.js} +2 -2
  38. package/dist-cli/chunks/{chunk-GA4AX4DD.js → chunk-NB5Y2UMJ.js} +2 -2
  39. package/dist-cli/chunks/{chunk-ZTVKMEFE.js → chunk-OKAQ3XRQ.js} +1 -1
  40. package/dist-cli/chunks/{chunk-4HHSYUJV.js → chunk-PFQ2GL6I.js} +1 -1
  41. package/dist-cli/chunks/{chunk-FMZ3FIEA.js → chunk-PHEOSYZF.js} +1 -1
  42. package/dist-cli/chunks/{chunk-5WPFEICR.js → chunk-PMSGRATC.js} +2 -2
  43. package/dist-cli/chunks/{chunk-E3HIN5R6.js → chunk-PPXPG2LH.js} +1 -1
  44. package/dist-cli/chunks/{chunk-F7TPFXGU.js → chunk-R465QKXY.js} +2 -2
  45. package/dist-cli/chunks/{chunk-HOAC4Q2B.js → chunk-RKNKWP63.js} +1 -1
  46. package/dist-cli/chunks/{chunk-VGFYJYVA.js → chunk-SOV5SHYG.js} +1 -1
  47. package/dist-cli/chunks/{chunk-QNTVP5P6.js → chunk-SRGYFE5A.js} +1 -1
  48. package/dist-cli/chunks/{chunk-JX3PIITA.js → chunk-T3RYRPOL.js} +2 -2
  49. package/dist-cli/chunks/{chunk-723DNICS.js → chunk-UQAS5DKQ.js} +1 -1
  50. package/dist-cli/chunks/{chunk-MSFGYJWK.js → chunk-WRA524FO.js} +1 -1
  51. package/dist-cli/chunks/{chunk-Z2S2X233.js → chunk-WU3RVT52.js} +2 -2
  52. package/dist-cli/chunks/{chunk-JHAK5RBC.js → chunk-X5XJUVTI.js} +1 -1
  53. package/dist-cli/chunks/{chunk-VKLR3VZI.js → chunk-XCAWIFDN.js} +1 -1
  54. package/dist-cli/chunks/{chunk-N3HQSZKL.js → chunk-XMB5EJKT.js} +1 -1
  55. package/dist-cli/chunks/{chunk-ORZVUI4D.js → chunk-XPGHWUUW.js} +2 -2
  56. package/dist-cli/chunks/{chunk-ZEW32JYG.js → chunk-XR2ELPIS.js} +2 -2
  57. package/dist-cli/chunks/{chunk-VLMOYXCX.js → chunk-XSW55GIR.js} +2 -2
  58. package/dist-cli/chunks/{chunk-MS3WCYON.js → chunk-XY6S3SA5.js} +1 -1
  59. package/dist-cli/chunks/{chunk-RKHVKFVO.js → chunk-YYR4BDUN.js} +2 -2
  60. package/dist-cli/chunks/{chunk-C2JHZVQ6.js → chunk-YZ52AN7N.js} +3 -3
  61. package/dist-cli/chunks/{chunk-K6X2EPRW.js → chunk-ZXLX6VWG.js} +3 -3
  62. package/dist-cli/chunks/{cleanup-TTW7Y2VR.js → cleanup-3SG25UHN.js} +2 -2
  63. package/dist-cli/chunks/cli-version-QO6EIJVH.js +4 -0
  64. package/dist-cli/chunks/{compat-NXGAGN7P.js → compat-K7WLYWBU.js} +2 -2
  65. package/dist-cli/chunks/{config-BYMWPKQ5.js → config-TKTI5L67.js} +2 -2
  66. package/dist-cli/chunks/{control-LHTHTJXB.js → control-4XG7HI7E.js} +2 -2
  67. package/dist-cli/chunks/daemon-DQZKHNAG.js +4 -0
  68. package/dist-cli/chunks/{debug-24CSBPH4.js → debug-ZOXWDUDF.js} +3 -3
  69. package/dist-cli/chunks/{desktop-JCWRU4KZ.js → desktop-QEFCE4TC.js} +3 -3
  70. package/dist-cli/chunks/{detox-OPCSWLPP.js → detox-ZTTUHOJC.js} +2 -2
  71. package/dist-cli/chunks/{device-NAK46RTG.js → device-EQ2UGP5T.js} +2 -2
  72. package/dist-cli/chunks/{diagnose-GEVKPJBH.js → diagnose-VUR2KXNV.js} +2 -2
  73. package/dist-cli/chunks/{disk-cleanup-4FOR5DRG.js → disk-cleanup-BG3FSH3T.js} +2 -2
  74. package/dist-cli/chunks/drivers-OV4G6634.js +4 -0
  75. package/dist-cli/chunks/{film-UZSJMPNP.js → film-KXDF6PN6.js} +3 -3
  76. package/dist-cli/chunks/flow-QW74XB5M.js +4 -0
  77. package/dist-cli/chunks/help-CUC4YFWC.js +4 -0
  78. package/dist-cli/chunks/{hidden-runtime-alias-46GLPB44.js → hidden-runtime-alias-ITAZXMMG.js} +2 -2
  79. package/dist-cli/chunks/{home-paths-ATDCFUYR.js → home-paths-KGGUDHCZ.js} +2 -2
  80. package/dist-cli/chunks/inspect-GMZRQONO.js +4 -0
  81. package/dist-cli/chunks/install-desktop-SPCPW2J7.js +4 -0
  82. package/dist-cli/chunks/{login-DPXAFFGF.js → login-4F7NERV7.js} +4 -4
  83. package/dist-cli/chunks/{logout-AFE54RGM.js → logout-2OKDBJHO.js} +2 -2
  84. package/dist-cli/chunks/{maestro-WBZVD5BC.js → maestro-NW6WAYQV.js} +3 -3
  85. package/dist-cli/chunks/{maestro-generate-KXGSS4TC.js → maestro-generate-MISRGALN.js} +3 -3
  86. package/dist-cli/chunks/{mode-J7C3F6LF.js → mode-EKI72F2T.js} +2 -2
  87. package/dist-cli/chunks/{optional-demo-registry-RLC6UEFN.js → optional-demo-registry-AAEIQVCY.js} +2 -2
  88. package/dist-cli/chunks/{perf-N2VUHCDO.js → perf-OW2JXHYV.js} +2 -2
  89. package/dist-cli/chunks/{permissions-UVVDADYQ.js → permissions-NNHXQKBS.js} +2 -2
  90. package/dist-cli/chunks/{record-64LEC7BD.js → record-VADDEEBX.js} +3 -3
  91. package/dist-cli/chunks/{report-issue-FGZ57DC7.js → report-issue-DHT4PQBP.js} +2 -2
  92. package/dist-cli/chunks/reset-XW3K66N7.js +4 -0
  93. package/dist-cli/chunks/runtime-J6CSXKS6.js +4 -0
  94. package/dist-cli/chunks/{screenshot-command-6XIWRKMY.js → screenshot-command-7DKY35CU.js} +3 -3
  95. package/dist-cli/chunks/{screenshot-layers-7X3GZD25.js → screenshot-layers-ESNJOBVU.js} +2 -2
  96. package/dist-cli/chunks/{screenshots-capture-U3BYW2H7.js → screenshots-capture-POJ5L7CV.js} +2 -2
  97. package/dist-cli/chunks/{serve-BBON446D.js → serve-CW32JPG4.js} +2 -2
  98. package/dist-cli/chunks/{setup-6DDFBULM.js → setup-DKF75MGR.js} +2 -2
  99. package/dist-cli/chunks/{skills-CTX3GDI3.js → skills-CBFL5UON.js} +2 -2
  100. package/dist-cli/chunks/{state-NZUGHHIF.js → state-CT56FPBR.js} +2 -2
  101. package/dist-cli/chunks/{storage-HBUPW4T7.js → storage-C6OPQ7HG.js} +2 -2
  102. package/dist-cli/chunks/store-FEB6UD6M.js +4 -0
  103. package/dist-cli/chunks/telemetry-RLMA24YQ.js +4 -0
  104. package/dist-cli/chunks/{timeline-VGCU3ACI.js → timeline-42WFDMKB.js} +2 -2
  105. package/dist-cli/chunks/{upgrade-AJ3UWBXY.js → upgrade-YBUFX2UK.js} +2 -2
  106. package/dist-cli/chunks/upload-V4SXEM42.js +4 -0
  107. package/dist-cli/chunks/{version-IXCZ4YT7.js → version-YFPV4YOP.js} +2 -2
  108. package/dist-cli/chunks/{web-2LHPWCKK.js → web-I77YJ726.js} +2 -2
  109. package/dist-cli/chunks/{what-happened-VO5ITUXB.js → what-happened-6MXBXSSE.js} +2 -2
  110. package/dist-lib/agent-daemon-client.cjs +1 -1
  111. package/dist-lib/agent-events.cjs +1 -1
  112. package/dist-lib/agent-identity.cjs +1 -1
  113. package/dist-lib/agent-sessions.cjs +1 -1
  114. package/dist-lib/attached-projects.cjs +1 -1
  115. package/dist-lib/auth/shared-session.cjs +1 -1
  116. package/dist-lib/backend-origin.cjs +1 -1
  117. package/dist-lib/beta.cjs +1 -1
  118. package/dist-lib/beta.mjs +1 -1
  119. package/dist-lib/bridge-constants.cjs +1 -1
  120. package/dist-lib/bridge-contract.cjs +1 -1
  121. package/dist-lib/cli-constants.cjs +1 -1
  122. package/dist-lib/config.cjs +1 -1
  123. package/dist-lib/detox/index.cjs +1 -1
  124. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  125. package/dist-lib/home-paths.cjs +1 -1
  126. package/dist-lib/host/bridge-host.cjs +1 -1
  127. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  128. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  129. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  130. package/dist-lib/host/websocket-proxy.cjs +1 -1
  131. package/dist-lib/index.cjs +1 -1
  132. package/dist-lib/jump-to-source-babel.cjs +1 -1
  133. package/dist-lib/menu.cjs +1 -1
  134. package/dist-lib/menu.mjs +1 -1
  135. package/dist-lib/metro.cjs +1 -1
  136. package/dist-lib/profiles.cjs +1 -1
  137. package/dist-lib/public-brand.cjs +1 -1
  138. package/dist-lib/render-mode.cjs +1 -1
  139. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  140. package/dist-lib/sdk.cjs +1 -1
  141. package/dist-lib/sdk.mjs +1 -1
  142. package/dist-lib/skills.cjs +1 -1
  143. package/dist-lib/vite.cjs +1 -1
  144. package/package.json +1 -1
  145. package/dist-cli/chunks/cli-version-N4RB3TU4.js +0 -4
  146. package/dist-cli/chunks/daemon-FXPE7NUU.js +0 -4
  147. package/dist-cli/chunks/drivers-PJUWNY4F.js +0 -4
  148. package/dist-cli/chunks/flow-37ZIZM43.js +0 -4
  149. package/dist-cli/chunks/help-N4DEQZIY.js +0 -4
  150. package/dist-cli/chunks/inspect-A4UWZB5O.js +0 -4
  151. package/dist-cli/chunks/install-desktop-RTW2N3WY.js +0 -4
  152. package/dist-cli/chunks/reset-K4NUFYLY.js +0 -4
  153. package/dist-cli/chunks/runtime-LPMJMVYJ.js +0 -4
  154. package/dist-cli/chunks/store-EU2A63AX.js +0 -4
  155. package/dist-cli/chunks/telemetry-I26UYHAJ.js +0 -4
  156. package/dist-cli/chunks/upload-PXCUKL3I.js +0 -4
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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
4
  var m={"--help":{type:"boolean",short:"-h"},"--version":{type:"boolean",short:"-V"},"--verbose":{type:"boolean",short:"-v"},"--port":{type:"number",short:"-p"},"--device":{type:"string",short:"-d"},"--theme":{type:"string",short:"-t"},"--headless":{type:"boolean"},"--driver":{type:"string"},"--sim":{type:"string"},"--session":{type:"string"},"--tab":{type:"string"}},p=new Set(["list","describe","find","get","do","wait","network","logs","shell"]),b=new Set(["do","get","wait","shell","debug"]),d=new Set(["detox","maestro","record","film","storage","permissions","perf","screenshot","state","reset","camera","mode","debug","timeline","what-happened","shell","assert","device","open","list","use","claim","close","compat","report-issue","desktop","login","logout","auth","setup","serve","daemon","runtime","upgrade","version","skill","config","cleanup","app-fonts","agent-wrapper","agent",...p]);function u(c){let n=c.slice(2),e={command:null,commandArgs:[],globalFlags:{},help:!1,version:!1,verbose:!1},s=0;for(;s<n.length;){let o=n[s];if(o==="--"){e.commandArgs.push(...n.slice(s+1));break}let i=Object.entries(m).find(([a,r])=>a===o||r.short===o);if(i){let[a,r]=i,l=a.replace(/^--/,"");if(r.type==="boolean")e.globalFlags[l]=!0,s++;else{let t=n[s+1];if(t===void 0||t.startsWith("-")){console.error(` warning: ${o} requires a value`),s++;continue}if(r.type==="number"){let g=Number(t);if(Number.isNaN(g)){console.error(` warning: ${o} requires a number, got "${t}"`),s+=2;continue}e.globalFlags[l]=g}else e.globalFlags[l]=t;s+=2}continue}if(!e.command&&!o.startsWith("-")){let a=o.indexOf("-");if(a>0){let r=o.slice(0,a),l=o.slice(a+1);if(b.has(r)&&l.length>0){e.command=r;let t=n.slice(s+1);e.commandArgs=[l,...t[0]==="--"?t.slice(1):t];break}}if(d.has(o)){e.command=o;let r=n.slice(s+1);e.commandArgs=r[0]==="--"?r.slice(1):r;break}e.commandArgs=n.slice(s);break}e.commandArgs.push(o),s++}return e.help=!!e.globalFlags.help,e.version=!!e.globalFlags.version,e.verbose=!!e.globalFlags.verbose,e}export{p as a,u as b};
@@ -1,5 +1,5 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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{I as m,o as P,q as a}from"./chunk-5XZPTTX6.js";import l from"fs";import c from"path";var s="default",S="profiles.json",i=1;function o(e){let r=e.trim();if(!r)throw new Error("profile id is required");if(!/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(r))throw new Error("profile ids must start with a letter or number and contain only letters, numbers, dot, dash, or underscore");if(r==="."||r==="..")throw new Error(`invalid profile id: ${r}`);return r}function d(){return c.join(a(),S)}function I(e){return`sootsim-profile-${o(e)}`}function h(e){return c.join(P(),"Partitions",I(e))}function A(e){return c.join(a(),"playwright",o(e))}function u(){try{let e=JSON.parse(l.readFileSync(d(),"utf8"));if(!e||e.version!==i)return{version:i,profiles:[]};let r=Array.isArray(e.profiles)?e.profiles.filter(t=>!!t&&typeof t.id=="string"&&typeof t.createdAt=="string"&&typeof t.updatedAt=="string").map(t=>({id:o(t.id),createdAt:t.createdAt,updatedAt:t.updatedAt})):[];return{version:i,profiles:r}}catch{return{version:i,profiles:[]}}}function x(e){return[...e].sort((r,t)=>r.id===s?-1:t.id===s?1:r.id.localeCompare(t.id))}function p(e){if(e.profiles.some(t=>t.id===s))return{...e,profiles:x(e.profiles)};let r=new Date().toISOString();return{version:i,profiles:x([{id:s,createdAt:r,updatedAt:r},...e.profiles])}}function g(e){m();let r=p(e),t=`${d()}.tmp`;return l.writeFileSync(t,`${JSON.stringify(r,null,2)}
4
+ import{I as m,o as P,q as a}from"./chunk-IXMPQ35S.js";import l from"fs";import c from"path";var s="default",S="profiles.json",i=1;function o(e){let r=e.trim();if(!r)throw new Error("profile id is required");if(!/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(r))throw new Error("profile ids must start with a letter or number and contain only letters, numbers, dot, dash, or underscore");if(r==="."||r==="..")throw new Error(`invalid profile id: ${r}`);return r}function d(){return c.join(a(),S)}function I(e){return`sootsim-profile-${o(e)}`}function h(e){return c.join(P(),"Partitions",I(e))}function A(e){return c.join(a(),"playwright",o(e))}function u(){try{let e=JSON.parse(l.readFileSync(d(),"utf8"));if(!e||e.version!==i)return{version:i,profiles:[]};let r=Array.isArray(e.profiles)?e.profiles.filter(t=>!!t&&typeof t.id=="string"&&typeof t.createdAt=="string"&&typeof t.updatedAt=="string").map(t=>({id:o(t.id),createdAt:t.createdAt,updatedAt:t.updatedAt})):[];return{version:i,profiles:r}}catch{return{version:i,profiles:[]}}}function x(e){return[...e].sort((r,t)=>r.id===s?-1:t.id===s?1:r.id.localeCompare(t.id))}function p(e){if(e.profiles.some(t=>t.id===s))return{...e,profiles:x(e.profiles)};let r=new Date().toISOString();return{version:i,profiles:x([{id:s,createdAt:r,updatedAt:r},...e.profiles])}}function g(e){m();let r=p(e),t=`${d()}.tmp`;return l.writeFileSync(t,`${JSON.stringify(r,null,2)}
5
5
  `,"utf8"),l.renameSync(t,d()),r}function y(){return g(u()).profiles}function E(e){let r=o(e);return y().find(t=>t.id===r)??null}function _(e=s){let r=o(e),t=E(r);return t||D(r)}function D(e){let r=o(e),t=p(u());if(t.profiles.some(w=>w.id===r))throw new Error(`profile already exists: ${r}`);let f=new Date().toISOString(),n={id:r,createdAt:f,updatedAt:f};return g({version:i,profiles:[...t.profiles,n]}),n}function F(e){let r=o(e);if(r===s)throw new Error("the default profile cannot be deleted; clear it instead");let t=p(u()),f=t.profiles.find(n=>n.id===r);if(!f)throw new Error(`profile not found: ${r}`);return g({version:i,profiles:t.profiles.filter(n=>n.id!==r)}),v(r),f}function v(e){let r=o(e);for(let t of[h(r),A(r)])try{l.rmSync(t,{recursive:!0,force:!0})}catch{}}export{A as a,y as b,_ as c,D as d,F as e,v as f};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 j,s as A,v as K,w as v}from"./chunk-GA4AX4DD.js";import{createHash as Y}from"node:crypto";import{mkdirSync as L,readFileSync as W,readdirSync as Q,unlinkSync as X,writeFileSync as D}from"node:fs";import{dirname as q,extname as Z,resolve as B}from"node:path";function H(t){let e=t[0]?.toLowerCase()??"toggle";return e!=="on"&&e!=="off"&&e!=="toggle"&&(console.error(` unknown argument: "${e}" (expected on | off | toggle)`),process.exit(1)),e}async function U(t,e,n){let o=j(t,{port:e.port}),i=H(o.positional),m=A({...o,commandTimeoutMs:5e3});try{let a=!!(await K(m,"SootSim.bridges.settings.get"))?.[n.modeKey],u=i==="on"?!0:i==="off"?!1:!a;if(a===u)return console.log(` ${n.displayName}: already ${u?"on":"off"}`),{current:a,target:u,changed:!1};if(!await m.send({type:"evaluate",acquireLock:!0,code:`(async () => {
4
+ import{q as j,s as A,v as K,w as v}from"./chunk-NB5Y2UMJ.js";import{createHash as Y}from"node:crypto";import{mkdirSync as L,readFileSync as W,readdirSync as Q,unlinkSync as X,writeFileSync as D}from"node:fs";import{dirname as q,extname as Z,resolve as B}from"node:path";function H(t){let e=t[0]?.toLowerCase()??"toggle";return e!=="on"&&e!=="off"&&e!=="toggle"&&(console.error(` unknown argument: "${e}" (expected on | off | toggle)`),process.exit(1)),e}async function U(t,e,n){let o=j(t,{port:e.port}),i=H(o.positional),m=A({...o,commandTimeoutMs:5e3});try{let a=!!(await K(m,"SootSim.bridges.settings.get"))?.[n.modeKey],u=i==="on"?!0:i==="off"?!1:!a;if(a===u)return console.log(` ${n.displayName}: already ${u?"on":"off"}`),{current:a,target:u,changed:!1};if(!await m.send({type:"evaluate",acquireLock:!0,code:`(async () => {
5
5
  const modeKey = ${JSON.stringify(n.modeKey)}
6
6
  const target = ${JSON.stringify(u)}
7
7
  window.dispatchEvent(new CustomEvent('sootsim:shell-command', {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 t}from"./chunk-36SLXMYJ.js";import{readFileSync as a}from"node:fs";import{fileURLToPath as n}from"node:url";var r=null;function f(){if(r!=null)return r;let o=[()=>n(import.meta.resolve(`${t.packageName}/package.json`)),()=>n(new URL("../package.json",import.meta.url))];for(let i of o)try{let e=JSON.parse(a(i(),"utf8")).version;if(typeof e=="string"&&e)return r=e,r}catch{}return r="0.0.0",r}export{f as a};
4
+ import{a as t}from"./chunk-ENPMBKGL.js";import{readFileSync as a}from"node:fs";import{fileURLToPath as n}from"node:url";var r=null;function f(){if(r!=null)return r;let o=[()=>n(import.meta.resolve(`${t.packageName}/package.json`)),()=>n(new URL("../package.json",import.meta.url))];for(let i of o)try{let e=JSON.parse(a(i(),"utf8")).version;if(typeof e=="string"&&e)return r=e,r}catch{}return r="0.0.0",r}export{f as a};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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
4
  var c="sootsim-agent-prompt-v1";function r(n){return typeof n=="string"?n.trim():""}function m(n){let e=r(n.text);if(!e)return"";let t=r(n.displayText),s=r(n.inspectSummary),o=r(n.inspectTrace);return!!s||!!o||/[\r\n]/.test(e)||!!t&&t!==e?JSON.stringify({__sootsimAgentPrompt:c,text:e,displayText:t,inspectSummary:s,inspectTrace:o}):e}function u(n){let e=r(n);if(!e)return null;try{let t=JSON.parse(e);if(t.__sootsimAgentPrompt!==c)return{text:e};let s=r(typeof t.text=="string"?t.text:void 0);if(!s)return null;let o=r(typeof t.displayText=="string"?t.displayText:void 0),i=r(typeof t.inspectSummary=="string"?t.inspectSummary:void 0),p=r(typeof t.inspectTrace=="string"?t.inspectTrace:void 0);return{text:s,...o?{displayText:o}:{},...i?{inspectSummary:i}:{},...p?{inspectTrace:p}:{}}}catch{return{text:e}}}export{m as a,u as b};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 K,b as V,c as Le}from"./chunk-Z2S2X233.js";import{c as Ne,d as Ce}from"./chunk-S22ABIJP.js";import{k as Fe}from"./chunk-F7TPFXGU.js";import{c as _e,d as E}from"./chunk-VSQKEGUT.js";import{a as Ue}from"./chunk-TLTBT7QM.js";import{q as Pe,s as $e,u as B}from"./chunk-GA4AX4DD.js";import{a as Ae}from"./chunk-36SLXMYJ.js";import{createHash as vt}from"crypto";import{readFileSync as M}from"fs";import qe from"path";import{gzipSync as ge,gunzipSync as xt}from"zlib";function Oe(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}import{brotliCompressSync as ct,constants as dt}from"node:zlib";var pt=9;function ze(e){return ct(e,{params:{[dt.BROTLI_PARAM_QUALITY]:pt}})}function ce(e,t){let r=new AbortController,s=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(s)}}async function ft(e){let t=ce(12e4,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let s=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${s.slice(0,200)}`)}}async function mt(e,t=8,r){let s=0,o=0,i=e.length;await Promise.all(Array.from({length:Math.min(t,i)},async()=>{for(;s<i;){let l=e[s++];await ft(l),o++,r?.(o,i)}}))}function gt(e,t,r,s){let o=[];o.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let i of e.files){let l=r.get(i.urlhash);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}e.events&&s?.eventsBytes&&o.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.timeline&&s?.timelineBytes&&o.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:s.timelineBytes}),e.flowVideo&&s?.videoBytes&&o.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&o.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes}),e.failureBundle&&s?.failureBundleBytes&&o.push({url:e.failureBundle.putUrl,contentType:e.failureBundle.contentType,bytes:s.failureBundleBytes});for(let i of e.snapshots??[]){let l=s?.snapshotBytes?.get(i.id);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}return o}function ht(e){return e.replace(/\/+$/,"")}var W=class extends Error{constructor(r,s,o,i=""){super(r);this.status=s;this.phase=o;this.responseText=i;this.name="PresignedUploadError"}};async function De(e){let t=ht(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-contrast-admin-upload-bypass"]=e.adminBypassToken);let s=ce(3e4,"init"),o;try{o=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!o.ok){let T=await o.text().catch(()=>"");throw new W(`init failed: ${o.status} ${T.slice(0,200)}`,o.status,"init",T)}let i=await o.json(),l=gt(i,e.bundleBytes,e.filesByHash,e.extras);await mt(l,e.concurrency??8,e.onPutProgress);let f=ce(3e4,"finalize"),c;try{c=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:i.token}),signal:f.signal})}finally{f.cancel()}if(!c.ok){let T=await c.text().catch(()=>"");throw new W(`finalize failed: ${c.status} ${T.slice(0,200)}`,c.status,"finalize",T)}let h=await c.json();return{init:i,finalize:h}}function yt(e){return e!==null&&typeof e=="object"?e:null}function He(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function de(e){let t=yt(e);return t?t.schemaVersion===1&&He(t.t)!==void 0&&He(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function bt(e,t){let r=[];for(let s of e.split(`
4
+ import{a as K,b as V,c as Le}from"./chunk-WU3RVT52.js";import{c as Ne,d as Ce}from"./chunk-BPXOBH2S.js";import{k as Fe}from"./chunk-R465QKXY.js";import{c as _e,d as E}from"./chunk-FJIPXIGR.js";import{a as Ue}from"./chunk-CXKDXNRV.js";import{q as Pe,s as $e,u as B}from"./chunk-NB5Y2UMJ.js";import{a as Ae}from"./chunk-ENPMBKGL.js";import{createHash as vt}from"crypto";import{readFileSync as M}from"fs";import qe from"path";import{gzipSync as ge,gunzipSync as xt}from"zlib";function Oe(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}import{brotliCompressSync as ct,constants as dt}from"node:zlib";var pt=9;function ze(e){return ct(e,{params:{[dt.BROTLI_PARAM_QUALITY]:pt}})}function ce(e,t){let r=new AbortController,s=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(s)}}async function ft(e){let t=ce(12e4,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let s=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${s.slice(0,200)}`)}}async function mt(e,t=8,r){let s=0,o=0,i=e.length;await Promise.all(Array.from({length:Math.min(t,i)},async()=>{for(;s<i;){let l=e[s++];await ft(l),o++,r?.(o,i)}}))}function gt(e,t,r,s){let o=[];o.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let i of e.files){let l=r.get(i.urlhash);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}e.events&&s?.eventsBytes&&o.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.timeline&&s?.timelineBytes&&o.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:s.timelineBytes}),e.flowVideo&&s?.videoBytes&&o.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&o.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes}),e.failureBundle&&s?.failureBundleBytes&&o.push({url:e.failureBundle.putUrl,contentType:e.failureBundle.contentType,bytes:s.failureBundleBytes});for(let i of e.snapshots??[]){let l=s?.snapshotBytes?.get(i.id);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}return o}function ht(e){return e.replace(/\/+$/,"")}var W=class extends Error{constructor(r,s,o,i=""){super(r);this.status=s;this.phase=o;this.responseText=i;this.name="PresignedUploadError"}};async function De(e){let t=ht(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-contrast-admin-upload-bypass"]=e.adminBypassToken);let s=ce(3e4,"init"),o;try{o=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!o.ok){let T=await o.text().catch(()=>"");throw new W(`init failed: ${o.status} ${T.slice(0,200)}`,o.status,"init",T)}let i=await o.json(),l=gt(i,e.bundleBytes,e.filesByHash,e.extras);await mt(l,e.concurrency??8,e.onPutProgress);let f=ce(3e4,"finalize"),c;try{c=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:i.token}),signal:f.signal})}finally{f.cancel()}if(!c.ok){let T=await c.text().catch(()=>"");throw new W(`finalize failed: ${c.status} ${T.slice(0,200)}`,c.status,"finalize",T)}let h=await c.json();return{init:i,finalize:h}}function yt(e){return e!==null&&typeof e=="object"?e:null}function He(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function de(e){let t=yt(e);return t?t.schemaVersion===1&&He(t.t)!==void 0&&He(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function bt(e,t){let r=[];for(let s of e.split(`
5
5
  `)){let o=s.trim();if(o)try{let i=JSON.parse(o);t(i)&&r.push(i)}catch{}}return r}function je(e){return bt(e,de)}import{execSync as wt}from"child_process";function fe(e){try{return wt(e,{stdio:["ignore","pipe","ignore"],timeout:3e3,encoding:"utf8"}).trim()||null}catch{return null}}function pe(e){let t=e?.trim();return!t||!/^\d+$/.test(t)?null:Number(t)}function Mt(){let e=fe("git remote get-url origin");if(!e)return null;let t=e.match(/github\.com[/:]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i);return t?{owner:t[1],repo:t[2]}:null}function me(){let e=process.env.GITHUB_ACTIONS==="true",t=process.env.CONTRAST_BRANCH?.trim()||null,r=process.env.CONTRAST_SHA?.trim()||null,s=process.env.CONTRAST_PR_TITLE?.trim()||null,o=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim(),[i,l]=o.includes("/")?o.split("/",2):[null,null];if(e){let h=process.env.GITHUB_REF?.match(/^refs\/pull\/(\d+)\//)?.[1];return{owner:i,repo:l,branch:t||process.env.GITHUB_HEAD_REF?.trim()||process.env.GITHUB_REF_NAME?.trim()||null,commitSha:r||process.env.GITHUB_SHA?.trim()||null,githubUsername:process.env.GITHUB_ACTOR?.trim()||null,pullRequestNumber:pe(process.env.CONTRAST_PR_NUMBER)??pe(h),pullRequestTitle:s,githubRunId:process.env.GITHUB_RUN_ID?.trim()||null,source:"ci"}}let f=t??fe("git rev-parse --abbrev-ref HEAD"),c=i?null:Mt();return{owner:i??c?.owner??null,repo:l??c?.repo??null,branch:f==="HEAD"?null:f,commitSha:r??fe("git rev-parse HEAD"),githubUsername:null,pullRequestNumber:pe(process.env.CONTRAST_PR_NUMBER),pullRequestTitle:s,githubRunId:null,source:"cli"}}function Qt(e){if(e.length===0)return{stepCount:null,failedStepIndex:null};let t=e.find(r=>r.status==="failure");return{stepCount:e.length,failedStepIndex:t?t.stepIndex:null}}function Xt(e){return e.auth?e.uploadedShare?!0:e.auth.kind==="github"||process.env.GITHUB_ACTIONS==="true":!1}async function Zt(e){let t=e.auth??K();if(!t)return null;let r=me(),s=e.owner??(t.kind==="github"?t.owner:null)??r.owner,o=e.repo??(t.kind==="github"?t.repo:null)??r.repo;try{let i=await fetch(`${e.origin.replace(/\/$/,"")}/api/sootsim/test-runs`,{method:"POST",headers:{"content-type":"application/json",authorization:V(t)},body:JSON.stringify({kind:e.kind,source:r.source,name:e.name??void 0,prompt:e.prompt??void 0,summary:e.summary??void 0,status:e.status,failureMessage:e.failureMessage??void 0,previewShareId:e.previewShareId??void 0,owner:s??void 0,repo:o??void 0,branch:r.branch??void 0,commitSha:r.commitSha??void 0,githubUsername:r.githubUsername??void 0,pullRequestNumber:r.pullRequestNumber??void 0,githubRunId:r.githubRunId??void 0,stepCount:e.stepCount??void 0,failedStepIndex:e.failedStepIndex??void 0,durationMs:e.durationMs??void 0,flowYamlSizeBytes:e.flowYamlSizeBytes??void 0})});if(!i.ok){let f=await i.text().catch(()=>"");return console.warn(` warn: run registration failed: /api/sootsim/test-runs ${i.status}${f?`: ${f.slice(0,200)}`:""}`),null}let l=await i.json();return l.run?.id?{id:l.run.id,previewUrl:l.run.previewUrl??null,traceUrl:l.run.traceUrl??null}:(console.warn(" warn: run registration returned no id"),null)}catch(i){return console.warn(` warn: run registration failed: ${i instanceof Error?i.message:String(i)}`),null}}function Rt(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}function kt(e){let t=JSON.parse(M(e,"utf8"));if(!Array.isArray(t))throw new Error("snapshot manifest must be an array");let r=new Set;return t.map((s,o)=>{if(s===null||typeof s!="object")throw new Error(`snapshot manifest entry ${o} must be an object`);let i=Reflect.get(s,"id"),l=Reflect.get(s,"label"),f=Reflect.get(s,"path"),c=Reflect.get(s,"t");if(typeof i!="string"||!i||r.has(i))throw new Error(`snapshot manifest entry ${o} has an invalid or duplicate id`);if(typeof f!="string"||!f)throw new Error(`snapshot manifest entry ${o} has no PNG path`);if(typeof c!="number"||!Number.isFinite(c)||c<0)throw new Error(`snapshot manifest entry ${o} has an invalid capture time`);r.add(i);let h=M(f);return{meta:{id:i,label:typeof l=="string"&&l?l:i,kind:"interaction",t:Math.round(c),contentType:"image/png",sizeBytes:h.byteLength},bytes:h}})}var We=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://contrast.dev",Ye=process.env.SOOTSIM_PREVIEW_ORIGIN||Ae.origin,ye="https://contrast.localhost:3000",Et=2e3;async function Bt(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${ye}/api/preview/upload/init`,{method:"OPTIONS",signal:AbortSignal.timeout(Et)});if(t.ok||t.status===204||t.status===405)return ye}catch{}return We}function C(e){return e.replace(/\/$/,"")}function It(e){try{let r=new URL(e).hostname.replace(/^\[|\]$/g,"").toLowerCase();return r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r)}catch{return!1}}function At(e){try{let t=new URL(e).hostname.toLowerCase();return t==="contrast.dev"||t.endsWith(".contrast.dev")}catch{return!1}}function Ut(e,t){return t?C(t):process.env.SOOTSIM_PREVIEW_ORIGIN?C(process.env.SOOTSIM_PREVIEW_ORIGIN):It(e)?C(e):At(e)?C(Ye):C(e)}function _t(){console.log(`
6
6
  rnxsim record upload \u2014 publish the current recorded bundle as a /preview/<id> link
7
7
 
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 at}from"./chunk-ZTVKMEFE.js";import{a as dt}from"./chunk-3KKQNO4E.js";import{a as qe,b as me,c as ge,d as ze,e as we,f as ye,g as Xe,h as be,i as st}from"./chunk-RXCRS3MQ.js";import{a as Ye}from"./chunk-RRZWYSAM.js";import{g as tt,h as rt,p as it,r as nt,v as ot}from"./chunk-XO3LJ2BQ.js";import{a as et}from"./chunk-FMZ3FIEA.js";import{e as lt}from"./chunk-RKHVKFVO.js";import{g as Qe}from"./chunk-F7TPFXGU.js";import{h as Ge,m as Ke}from"./chunk-TEA75F6H.js";import{J as fe,m as Ue,n as We,o as je,p as Ve,q as Je}from"./chunk-QNTVP5P6.js";import{b as Ze}from"./chunk-HOAC4Q2B.js";import{c as De,d as ce}from"./chunk-VSQKEGUT.js";import{a as Be,b as Le,c as Ce}from"./chunk-5ZQ5G76U.js";import{g as ue,h as Ne,q as pe,r as he,s as He}from"./chunk-GA4AX4DD.js";import*as P from"fs";import{createHash as zt,randomUUID as Xt}from"node:crypto";import{tmpdir as Y}from"os";import*as w from"path";import*as x from"fs";import*as S from"path";var Rt="inset 0 0 0 0.5px #000, inset 0 0 0 2px #757575, inset 0 0 0 5px #212121",ut=1;function Mt(n){let e=Ce(n),t=e.scale,r=e.statusBarHeight>0&&!e.dynamicIsland&&e.homeIndicatorHeight===0&&e.cornerRadius===0,i=e.width,o=e.height,a=Be(e),s=r?e.width+58:a.frameWidth,l=r?e.height+111+111:a.frameHeight,p=9.5,u=ut,g=s+p*2,b=l+ut*2,m=p+(r?29:a.screenLeft),k=r?111:a.screenTop,$=r?52:a.frameRadius,H=[{side:e.hardwareButtons.lock.side,top:e.hardwareButtons.lock.top,height:e.hardwareButtons.lock.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.ringToggle.side,top:e.hardwareButtons.ringToggle.top,height:e.hardwareButtons.ringToggle.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.volumeUp.side,top:e.hardwareButtons.volumeUp.top,height:e.hardwareButtons.volumeUp.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.volumeDown.side,top:e.hardwareButtons.volumeDown.top,height:e.hardwareButtons.volumeDown.height,width:e.hardwareButtons.width}];return{model:n,renderScale:t,outerWidth:Math.round(g*t),outerHeight:Math.round(b*t),logicalOuterWidth:g,logicalOuterHeight:b,logicalFrameWidth:s,logicalFrameHeight:l,logicalFrameLeft:p,logicalFrameTop:u,logicalScreenWidth:i,logicalScreenHeight:o,logicalScreenLeft:m,logicalScreenTop:k,logicalScreenRadius:r?0:a.screenRadius,logicalFrameRadius:$,frameBackground:r?"linear-gradient(180deg, #1b1c20 0%, #0f1012 42%, #050608 100%)":"#000000",frameOutline:r?"0 0 0 1px #1f2125":"0 0 0 1px #333",metallicRingShadow:r?null:Rt,buttons:H,legacyHomeButton:r?{top:111+e.height+47/2,left:e.width/2-64/2+29,size:64,ring:1.5}:null,showHomeIndicator:e.homeIndicatorHeight>0,logicalHomeIndicatorStripHeight:e.homeIndicatorHeight}}function Ot(n){let e=n.side==="right",t=e?"inset(-3px -3px -3px 0)":"inset(-3px 0 -3px -3px)";return`
4
+ import{a as at}from"./chunk-OKAQ3XRQ.js";import{a as dt}from"./chunk-LTKFVWTL.js";import{a as qe,b as me,c as ge,d as ze,e as we,f as ye,g as Xe,h as be,i as st}from"./chunk-3PKHK6G4.js";import{a as Ye}from"./chunk-IDFSGLP3.js";import{g as tt,h as rt,p as it,r as nt,v as ot}from"./chunk-2664O2SP.js";import{a as et}from"./chunk-PHEOSYZF.js";import{e as lt}from"./chunk-YYR4BDUN.js";import{g as Qe}from"./chunk-R465QKXY.js";import{h as Ge,m as Ke}from"./chunk-ADGT4K22.js";import{J as fe,m as Ue,n as We,o as je,p as Ve,q as Je}from"./chunk-SRGYFE5A.js";import{b as Ze}from"./chunk-RKNKWP63.js";import{c as De,d as ce}from"./chunk-FJIPXIGR.js";import{a as Be,b as Le,c as Ce}from"./chunk-BYO6P6AW.js";import{g as ue,h as Ne,q as pe,r as he,s as He}from"./chunk-NB5Y2UMJ.js";import*as P from"fs";import{createHash as zt,randomUUID as Xt}from"node:crypto";import{tmpdir as Y}from"os";import*as w from"path";import*as x from"fs";import*as S from"path";var Rt="inset 0 0 0 0.5px #000, inset 0 0 0 2px #757575, inset 0 0 0 5px #212121",ut=1;function Mt(n){let e=Ce(n),t=e.scale,r=e.statusBarHeight>0&&!e.dynamicIsland&&e.homeIndicatorHeight===0&&e.cornerRadius===0,i=e.width,o=e.height,a=Be(e),s=r?e.width+58:a.frameWidth,l=r?e.height+111+111:a.frameHeight,p=9.5,u=ut,g=s+p*2,b=l+ut*2,m=p+(r?29:a.screenLeft),k=r?111:a.screenTop,$=r?52:a.frameRadius,H=[{side:e.hardwareButtons.lock.side,top:e.hardwareButtons.lock.top,height:e.hardwareButtons.lock.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.ringToggle.side,top:e.hardwareButtons.ringToggle.top,height:e.hardwareButtons.ringToggle.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.volumeUp.side,top:e.hardwareButtons.volumeUp.top,height:e.hardwareButtons.volumeUp.height,width:e.hardwareButtons.width},{side:e.hardwareButtons.volumeDown.side,top:e.hardwareButtons.volumeDown.top,height:e.hardwareButtons.volumeDown.height,width:e.hardwareButtons.width}];return{model:n,renderScale:t,outerWidth:Math.round(g*t),outerHeight:Math.round(b*t),logicalOuterWidth:g,logicalOuterHeight:b,logicalFrameWidth:s,logicalFrameHeight:l,logicalFrameLeft:p,logicalFrameTop:u,logicalScreenWidth:i,logicalScreenHeight:o,logicalScreenLeft:m,logicalScreenTop:k,logicalScreenRadius:r?0:a.screenRadius,logicalFrameRadius:$,frameBackground:r?"linear-gradient(180deg, #1b1c20 0%, #0f1012 42%, #050608 100%)":"#000000",frameOutline:r?"0 0 0 1px #1f2125":"0 0 0 1px #333",metallicRingShadow:r?null:Rt,buttons:H,legacyHomeButton:r?{top:111+e.height+47/2,left:e.width/2-64/2+29,size:64,ring:1.5}:null,showHomeIndicator:e.homeIndicatorHeight>0,logicalHomeIndicatorStripHeight:e.homeIndicatorHeight}}function Ot(n){let e=n.side==="right",t=e?"inset(-3px -3px -3px 0)":"inset(-3px 0 -3px -3px)";return`
5
5
  <div
6
6
  aria-hidden="true"
7
7
  style="
@@ -535,7 +535,7 @@ flow extension:
535
535
  })()`}),console.log(` captured ${_.length} partial replay events`)}catch(d){console.warn(` event recorder stop failed: ${d?.message||String(d)}`)}console.error(`
536
536
  x failed: ${h.message}
537
537
  `),O&&(console.log(" partial profile:"),gt(O)),F&&console.log(` partial video: ${F}`);try{let d=c.lastFailedStep,y=d?`step-${String(d.index+1).padStart(2,"0")}-${d.kind}`:"unstaged",I=w.join(s,y);await c.captureFailureBundle(I,{error:h,stepIndex:d?.index,stepKind:d?.kind,stepTarget:d?.target}),de=I,console.log(` failure bundle: ${I}`),console.log(" (contents: screenshot.png, describe.json, a11y.txt, tree.txt, console.json, error.json)")}catch(d){try{let y=w.join(s,"error.png");await c.captureScreenshot(y),console.log(` error screenshot: ${y}`)}catch{}console.log(` (failure bundle capture failed: ${d instanceof Error?d.message:String(d)})`)}await Ke(E,{errorsCommand:`sootsim get errors 5${c.simId?` --sim ${c.simId}`:""}`,warningsCommand:`sootsim get warnings 5${c.simId?` --sim ${c.simId}`:""}`,requestsCommand:`sootsim get requests 5${c.simId?` --sim ${c.simId}`:""}`}),V=1}if(await c.liveStatus?.end(V===0?"passed":"failed"),m&&(V===0||F||_))try{let h=await tr(_??[]),d=["--origin",k,"--events",h];$&&d.push("--public-origin",$),F&&d.push("--video",F),j&&d.push("--screenshot",j),F&&L&&Number.isFinite(L)&&(d.push("--video-duration-ms",String(Math.round(L))),d.push("--recorded-duration-ms",String(Math.round(L))));let y=c.getLastRecordingStartedAtMs();y&&Number.isFinite(y)&&d.push("--recording-started-at-ms",String(Math.round(y))),v.wsPort&&d.push("--port",String(v.wsPort)),c.simId&&d.push("--sim",c.simId),H&&d.push("--open"),Ie&&d.push("--owner",Ie),Pe&&d.push("--repo",Pe),d.push("--run-scope",yt),U&&d.push("--billing-kind",U),console.log(`
538
- preparing preview upload\u2026`);let I=c.getFlowTraceSteps();I.length>0&&d.push("--timeline-events",await rr(I));let J=await ir(I,y);J&&d.push("--snapshot-manifest",J),de&&d.push("--failure-bundle",de);let D=c.getLastRecordingFrameStats();D&&d.push("--trace-frame-stats",await nr(D));let{runUpload:Pt}=await import("./upload-PXCUKL3I.js");Ee=await Pt(d,{})}catch(h){console.error(` preview upload failed: ${h?.message||h}`),V=1}return Fe=c.getFlowTraceSteps(),E.close(),ae?(c.simId&&le.add(c.simId),await er(v.wsPort,v.commandTimeoutMs,[...le])):c.simId&&c.simId!==X&&Ne(c.simId),await ce(),V}async function er(n,e,t){let r=[...new Set(t.filter(Boolean))];if(r.length===0)return;let i=he(n,{commandTimeoutMs:e});try{let o=await i.listSims(),a=r.filter(l=>o.some(p=>p.id===l&&p.readyState==="open"));if(a.length===0)return;let s=await ot(i,n,e,a);await it(o,a),s.closed.length>0&&console.log(` closed flow sim(s): ${s.closed.join(", ")}`),s.remaining.length>0&&console.warn(` warn: flow sim(s) still connected after close: ${s.remaining.join(", ")}`)}catch(o){console.warn(` warn: failed to close flow sim(s): ${o instanceof Error?o.message:String(o)}`)}finally{i.close()}}async function tr(n){let{gzipSync:e}=await import("zlib"),t=n.map(o=>JSON.stringify(o)).join(`
538
+ preparing preview upload\u2026`);let I=c.getFlowTraceSteps();I.length>0&&d.push("--timeline-events",await rr(I));let J=await ir(I,y);J&&d.push("--snapshot-manifest",J),de&&d.push("--failure-bundle",de);let D=c.getLastRecordingFrameStats();D&&d.push("--trace-frame-stats",await nr(D));let{runUpload:Pt}=await import("./upload-V4SXEM42.js");Ee=await Pt(d,{})}catch(h){console.error(` preview upload failed: ${h?.message||h}`),V=1}return Fe=c.getFlowTraceSteps(),E.close(),ae?(c.simId&&le.add(c.simId),await er(v.wsPort,v.commandTimeoutMs,[...le])):c.simId&&c.simId!==X&&Ne(c.simId),await ce(),V}async function er(n,e,t){let r=[...new Set(t.filter(Boolean))];if(r.length===0)return;let i=he(n,{commandTimeoutMs:e});try{let o=await i.listSims(),a=r.filter(l=>o.some(p=>p.id===l&&p.readyState==="open"));if(a.length===0)return;let s=await ot(i,n,e,a);await it(o,a),s.closed.length>0&&console.log(` closed flow sim(s): ${s.closed.join(", ")}`),s.remaining.length>0&&console.warn(` warn: flow sim(s) still connected after close: ${s.remaining.join(", ")}`)}catch(o){console.warn(` warn: failed to close flow sim(s): ${o instanceof Error?o.message:String(o)}`)}finally{i.close()}}async function tr(n){let{gzipSync:e}=await import("zlib"),t=n.map(o=>JSON.stringify(o)).join(`
539
539
  `)+(n.length?`
540
540
  `:""),r=e(Buffer.from(t,"utf8")),i=w.join(Y(),`sootsim-events-${Date.now()}.jsonl.gz`);return P.writeFileSync(i,r),console.log(` events: ${n.length} written to ${i} (${r.length} bytes gz)`),i}async function rr(n){let{gzipSync:e}=await import("zlib"),t=n.map((a,s)=>({schemaVersion:1,t:a.endedAtMs,seq:1e6+s,context:"host",kind:"flow-step",id:`flow-step-${a.stepIndex}`,data:{stepIndex:a.stepIndex,stepNumber:a.stepIndex+1,stepName:a.stepName,...a.targetLabel?{targetLabel:a.targetLabel}:{},status:a.status,durationMs:a.durationMs,startedAtMs:a.startedAtMs,endedAtMs:a.endedAtMs,...a.error?{error:a.error}:{}}})),r=t.map(a=>JSON.stringify(a)).join(`
541
541
  `)+`
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 $}from"./chunk-5WPFEICR.js";import{b as y,c as R,d as m,e as w,f as a}from"./chunk-Y3KPW46E.js";import{n as x}from"./chunk-GA4AX4DD.js";import{I as g,J as u,K as d,Q as h,l as p}from"./chunk-5XZPTTX6.js";import O from"fs";import{WebSocket as E}from"ws";function C(t){if(!t||typeof t!="object")return!1;let e=Reflect.get(t,"sections");return typeof Reflect.get(t,"title")=="string"&&Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof Reflect.get(o,"title")=="string"&&Array.isArray(Reflect.get(o,"items"))&&Reflect.get(o,"items").every(n=>n&&typeof n=="object"&&typeof Reflect.get(n,"summary")=="string"&&typeof Reflect.get(n,"hash")=="string"))}async function b(t,e=fetch){try{let o=new URL(w);o.searchParams.set("version",t);let n=await e(o,{headers:{accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!n.ok)return null;let s=await n.json();if(!s||typeof s!="object")return null;let i=Reflect.get(s,"entries");return!Array.isArray(i)||!C(i[0])?null:i[0]}catch{return null}}function A(t,e){let o=[`what's new in rnx engine v${t}:`];if(!e||e.sections.length===0)o.push(" release notes are not available yet");else for(let n of e.sections){o.push(` ${n.title}:`);for(let s of n.items)o.push(` \u2022 ${s.summary}`)}return o.push(` full changelog: ${m}`),o.join(`
4
+ import{b as $}from"./chunk-PMSGRATC.js";import{b as y,c as R,d as m,e as w,f as a}from"./chunk-6QEYHQZH.js";import{n as x}from"./chunk-NB5Y2UMJ.js";import{I as g,J as u,K as d,Q as h,l as p}from"./chunk-IXMPQ35S.js";import O from"fs";import{WebSocket as E}from"ws";function C(t){if(!t||typeof t!="object")return!1;let e=Reflect.get(t,"sections");return typeof Reflect.get(t,"title")=="string"&&Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof Reflect.get(o,"title")=="string"&&Array.isArray(Reflect.get(o,"items"))&&Reflect.get(o,"items").every(n=>n&&typeof n=="object"&&typeof Reflect.get(n,"summary")=="string"&&typeof Reflect.get(n,"hash")=="string"))}async function b(t,e=fetch){try{let o=new URL(w);o.searchParams.set("version",t);let n=await e(o,{headers:{accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!n.ok)return null;let s=await n.json();if(!s||typeof s!="object")return null;let i=Reflect.get(s,"entries");return!Array.isArray(i)||!C(i[0])?null:i[0]}catch{return null}}function A(t,e){let o=[`what's new in rnx engine v${t}:`];if(!e||e.sections.length===0)o.push(" release notes are not available yet");else for(let n of e.sections){o.push(` ${n.title}:`);for(let s of n.items)o.push(` \u2022 ${s.summary}`)}return o.push(` full changelog: ${m}`),o.join(`
5
5
  `)}async function Q(t,e={}){let[o,...n]=t;if(!o||o==="--help"||o==="-h"){S();return}switch(o){case"install":return L(n,e);case"list":return j(n);case"use":return T(n);case"remove":return D(n);case"which":return G();case"notes":return U(n);default:console.error(` unknown runtime subcommand: ${o}`),S(),process.exit(1)}}function S(){console.log(`
6
6
  rnxsim runtime \u2014 manage engine runtimes under ~/.sootsim/runtimes/
7
7
 
@@ -27,4 +27,4 @@ examples:
27
27
  rnxsim runtime install --channel beta
28
28
  rnxsim runtime use 1.2.3
29
29
  rnxsim runtime notes
30
- `)}async function L(t,e){let{version:o,flags:n}=F(t),s=n.channel??e.channel??"stable",i=n.force===!0,l=n.setActive!==!1;g(),console.log("rnxsim runtime install"),console.log(` cdn: ${a.resolveCdnOrigin()}`);try{let r=await a.install({version:o,channel:s,force:i,setActive:l,protectVersions:h()});return console.log(` version: ${r.version} (channel: ${r.channel})`),r.installed?console.log(` installed ${r.version}`):console.log(` already installed at ${r.runtimeDir}`),l&&await k(r.version),r}catch(r){console.error(` ${I(r)}`),process.exit(1)}}async function k(t){d(t),console.log(` active: ${t}`),await _(t)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${t})`)}async function _(t){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-ATDCFUYR.js"),n=o();if(!e(n))return!1;let s=x();return new Promise(i=>{let l=!1,r=!1,f=N=>{l||(l=!0,i(N))},c=new E(`ws://127.0.0.1:${s}`,{handshakeTimeout:800}),v=setTimeout(()=>{try{c.close()}catch{}f(r)},1500);c.on("open",()=>{try{c.send(JSON.stringify({type:"runtime:use",version:t,id:0})),r=!0}catch{}setTimeout(()=>{try{c.close()}catch{}},100)}),c.on("close",()=>{clearTimeout(v),f(r)}),c.on("error",()=>{clearTimeout(v),f(!1)})})}async function j(t){g();let e=a.listInstalled(),o=u();if(console.log("installed:"),e.length===0)console.log(" (none)");else for(let n of e)console.log(` ${n===o?"*":" "} ${n}`);try{let n=await a.fetchManifest();console.log("available (latest per channel):");for(let[i,l]of Object.entries(n.channels))console.log(` ${i.padEnd(8)} ${l.latest}`);let s=Object.keys(n.versions).sort(y).reverse();if(s.length>1){console.log("hosted versions:");for(let i of s)console.log(` ${i}`)}}catch(n){console.log(`available: (could not fetch manifest: ${I(n)})`)}}async function T(t){let e=t[0];e||(console.error(" usage: rnxsim runtime use <version>"),process.exit(1));let o=a.listInstalled();o.includes(e)||(console.error(` version ${e} is not installed`),console.error(` installed: ${o.join(", ")||"(none)"}`),console.error(` run \`rnxsim runtime install ${e}\` first`),process.exit(1)),await k(e)}async function D(t){let e=t[0];e||(console.error(" usage: rnxsim runtime remove <version>"),process.exit(1)),u()===e&&(console.error(` cannot remove active runtime ${e}`),console.error(" switch with `rnxsim runtime use <other>` first, or install another version"),process.exit(1)),h().includes(e)&&(console.error(` cannot remove runtime ${e} while a project is using it`),process.exit(1));let n=p(e);if(!O.existsSync(n)){console.error(` ${e} is not installed`);return}O.rmSync(n,{recursive:!0,force:!0}),console.log(` removed ${e}`)}async function G(){let t=u();if(!t){console.log(" no active runtime");return}console.log(t)}async function U(t){t.length>0&&(console.error(" usage: rnxsim runtime notes"),process.exit(1));let{config:e}=await $(),o=e?.runtimeVersion??u();if(!o){console.log(" no active runtime"),console.log(` release notes: ${m}`);return}console.log(A(o,await b(o)))}function F(t){let e={},o=[];for(let n=0;n<t.length;n++){let s=t[n];if(s==="--channel"&&n+1<t.length){e.channel=t[n+1],n++;continue}if(s.startsWith("--channel=")){e.channel=s.slice(10);continue}if(s==="--force"){e.force=!0;continue}if(s==="--set-active=false"||s==="--no-set-active"){e.setActive=!1;continue}o.push(s)}return{version:o[0]??null,flags:e}}function I(t){return t instanceof Error?t.message:String(t)}export{b as a,A as b,Q as c};
30
+ `)}async function L(t,e){let{version:o,flags:n}=F(t),s=n.channel??e.channel??"stable",i=n.force===!0,l=n.setActive!==!1;g(),console.log("rnxsim runtime install"),console.log(` cdn: ${a.resolveCdnOrigin()}`);try{let r=await a.install({version:o,channel:s,force:i,setActive:l,protectVersions:h()});return console.log(` version: ${r.version} (channel: ${r.channel})`),r.installed?console.log(` installed ${r.version}`):console.log(` already installed at ${r.runtimeDir}`),l&&await k(r.version),r}catch(r){console.error(` ${I(r)}`),process.exit(1)}}async function k(t){d(t),console.log(` active: ${t}`),await _(t)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${t})`)}async function _(t){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-KGGUDHCZ.js"),n=o();if(!e(n))return!1;let s=x();return new Promise(i=>{let l=!1,r=!1,f=N=>{l||(l=!0,i(N))},c=new E(`ws://127.0.0.1:${s}`,{handshakeTimeout:800}),v=setTimeout(()=>{try{c.close()}catch{}f(r)},1500);c.on("open",()=>{try{c.send(JSON.stringify({type:"runtime:use",version:t,id:0})),r=!0}catch{}setTimeout(()=>{try{c.close()}catch{}},100)}),c.on("close",()=>{clearTimeout(v),f(r)}),c.on("error",()=>{clearTimeout(v),f(!1)})})}async function j(t){g();let e=a.listInstalled(),o=u();if(console.log("installed:"),e.length===0)console.log(" (none)");else for(let n of e)console.log(` ${n===o?"*":" "} ${n}`);try{let n=await a.fetchManifest();console.log("available (latest per channel):");for(let[i,l]of Object.entries(n.channels))console.log(` ${i.padEnd(8)} ${l.latest}`);let s=Object.keys(n.versions).sort(y).reverse();if(s.length>1){console.log("hosted versions:");for(let i of s)console.log(` ${i}`)}}catch(n){console.log(`available: (could not fetch manifest: ${I(n)})`)}}async function T(t){let e=t[0];e||(console.error(" usage: rnxsim runtime use <version>"),process.exit(1));let o=a.listInstalled();o.includes(e)||(console.error(` version ${e} is not installed`),console.error(` installed: ${o.join(", ")||"(none)"}`),console.error(` run \`rnxsim runtime install ${e}\` first`),process.exit(1)),await k(e)}async function D(t){let e=t[0];e||(console.error(" usage: rnxsim runtime remove <version>"),process.exit(1)),u()===e&&(console.error(` cannot remove active runtime ${e}`),console.error(" switch with `rnxsim runtime use <other>` first, or install another version"),process.exit(1)),h().includes(e)&&(console.error(` cannot remove runtime ${e} while a project is using it`),process.exit(1));let n=p(e);if(!O.existsSync(n)){console.error(` ${e} is not installed`);return}O.rmSync(n,{recursive:!0,force:!0}),console.log(` removed ${e}`)}async function G(){let t=u();if(!t){console.log(" no active runtime");return}console.log(t)}async function U(t){t.length>0&&(console.error(" usage: rnxsim runtime notes"),process.exit(1));let{config:e}=await $(),o=e?.runtimeVersion??u();if(!o){console.log(" no active runtime"),console.log(` release notes: ${m}`);return}console.log(A(o,await b(o)))}function F(t){let e={},o=[];for(let n=0;n<t.length;n++){let s=t[n];if(s==="--channel"&&n+1<t.length){e.channel=t[n+1],n++;continue}if(s.startsWith("--channel=")){e.channel=s.slice(10);continue}if(s==="--force"){e.force=!0;continue}if(s==="--set-active=false"||s==="--no-set-active"){e.setActive=!1;continue}o.push(s)}return{version:o[0]??null,flags:e}}function I(t){return t instanceof Error?t.message:String(t)}export{b as a,A as b,Q as c};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 s,c as g,d as f,e as v}from"./chunk-MUGJLIRC.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-5XZPTTX6.js";import"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.js";var $={"browser-cache":"browser caches","camera-fixture":"staged camera fixture videos",recording:"recordings and captured frames","runtime-archive":"downloaded runtime archives","runtime-version":"inactive runtime versions"};function y(r){let i=new Map;for(let o of r){let n=i.get(o.kind)??{bytes:0,count:0};n.bytes+=o.bytes,n.count++,i.set(o.kind,n)}return[...i].sort((o,n)=>n[1].bytes-o[1].bytes).map(([o,n])=>` ${$[o]}: ${s(n.bytes)} (${n.count} ${n.count===1?"item":"items"})`)}function h(){console.log(`
4
+ import{b as s,c as g,d as f,e as v}from"./chunk-EIK7XWQ5.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.js";var $={"browser-cache":"browser caches","camera-fixture":"staged camera fixture videos",recording:"recordings and captured frames","runtime-archive":"downloaded runtime archives","runtime-version":"inactive runtime versions"};function y(r){let i=new Map;for(let o of r){let n=i.get(o.kind)??{bytes:0,count:0};n.bytes+=o.bytes,n.count++,i.set(o.kind,n)}return[...i].sort((o,n)=>n[1].bytes-o[1].bytes).map(([o,n])=>` ${$[o]}: ${s(n.bytes)} (${n.count} ${n.count===1?"item":"items"})`)}function h(){console.log(`
5
5
  rnxsim cleanup \u2014 inspect and reclaim local rnx disk usage
6
6
 
7
7
  usage:
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.331 | (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-XSW55GIR.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.js";export{a as getCliVersion};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 i,g as a,i as d,j as r}from"./chunk-VKLR3VZI.js";import"./chunk-JHAK5RBC.js";import{existsSync as m,readFileSync as k}from"node:fs";import{resolve as f}from"node:path";async function P(e){if(e.includes("--help")||e.includes("-h")){console.log(`
4
+ import{d as i,g as a,i as d,j as r}from"./chunk-XCAWIFDN.js";import"./chunk-X5XJUVTI.js";import{existsSync as m,readFileSync as k}from"node:fs";import{resolve as f}from"node:path";async function P(e){if(e.includes("--help")||e.includes("-h")){console.log(`
5
5
  rnxsim compat \u2014 check package compatibility
6
6
 
7
7
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 s,D as r,z as t}from"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.js";function l(){let e=s();console.log(` product analytics are ${e.productAnalytics?"ON":"OFF"}`),console.log(` config: ${t()}`);let o=process.env.DO_NOT_TRACK;(o==="1"||o==="true")&&console.log(` note: DO_NOT_TRACK=${o} is set \u2014 telemetry is off for this run`)}async function i(e){let o=e.find(n=>!n.startsWith("-"))?.toLowerCase();switch(o){case void 0:case"status":l();return;case"on":r({...s(),productAnalytics:!0}),console.log(" product analytics ON"),console.log(` config: ${t()}`);return;case"off":r({...s(),productAnalytics:!1}),console.log(" product analytics OFF"),console.log(` config: ${t()}`);return;default:console.error(` unknown telemetry action: ${o}`),console.error(" usage: rnxsim config telemetry [on|off|status]"),process.exit(1)}}function c(){console.log(`
4
+ import{C as s,D as r,z as t}from"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.js";function l(){let e=s();console.log(` product analytics are ${e.productAnalytics?"ON":"OFF"}`),console.log(` config: ${t()}`);let o=process.env.DO_NOT_TRACK;(o==="1"||o==="true")&&console.log(` note: DO_NOT_TRACK=${o} is set \u2014 telemetry is off for this run`)}async function i(e){let o=e.find(n=>!n.startsWith("-"))?.toLowerCase();switch(o){case void 0:case"status":l();return;case"on":r({...s(),productAnalytics:!0}),console.log(" product analytics ON"),console.log(` config: ${t()}`);return;case"off":r({...s(),productAnalytics:!1}),console.log(" product analytics OFF"),console.log(` config: ${t()}`);return;default:console.error(` unknown telemetry action: ${o}`),console.error(" usage: rnxsim config telemetry [on|off|status]"),process.exit(1)}}function c(){console.log(`
5
5
  rnxsim config \u2014 manage local CLI preferences
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-XO3LJ2BQ.js";import"./chunk-J76H5R5N.js";import"./chunk-RQNNXIBD.js";import"./chunk-5WPFEICR.js";import"./chunk-DE2C75TX.js";import"./chunk-FMZ3FIEA.js";import"./chunk-ORZVUI4D.js";import"./chunk-S22ABIJP.js";import"./chunk-F7TPFXGU.js";import"./chunk-4HHSYUJV.js";import"./chunk-JX3PIITA.js";import"./chunk-TEA75F6H.js";import"./chunk-QNTVP5P6.js";import"./chunk-HOAC4Q2B.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-P52N24RM.js";import"./chunk-5ZQ5G76U.js";import"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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.331 | (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-HEY3X6S5.js";import"./chunk-FJIPXIGR.js";import"./chunk-CXKDXNRV.js";import"./chunk-5R5FCLE4.js";import"./chunk-C53ASFDC.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import"./chunk-XSW55GIR.js";import"./chunk-ENPMBKGL.js";import"./chunk-CJJFG5KQ.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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 b,m as C}from"./chunk-TEA75F6H.js";import{L as N,M as D,N as O,O as T,P as k}from"./chunk-QNTVP5P6.js";import{q as A,s as _,u as S}from"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.js";var B=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],F="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function R(){console.log(`
4
+ import{f as b,m as C}from"./chunk-ADGT4K22.js";import{L as N,M as D,N as O,O as T,P as k}from"./chunk-SRGYFE5A.js";import{q as A,s as _,u as S}from"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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:
@@ -181,7 +181,7 @@ 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 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-A4UWZB5O.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,...]>
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-GMZRQONO.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
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;
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-E2AM3YWQ.js";import"./chunk-VV42XEDS.js";import{a as u}from"./chunk-723DNICS.js";import{h as m}from"./chunk-XO3LJ2BQ.js";import"./chunk-J76H5R5N.js";import"./chunk-RQNNXIBD.js";import"./chunk-5WPFEICR.js";import{a}from"./chunk-DE2C75TX.js";import{a as p}from"./chunk-FMZ3FIEA.js";import{c}from"./chunk-ORZVUI4D.js";import"./chunk-S22ABIJP.js";import"./chunk-F7TPFXGU.js";import"./chunk-4HHSYUJV.js";import"./chunk-JX3PIITA.js";import{a as l}from"./chunk-MSFGYJWK.js";import"./chunk-TEA75F6H.js";import"./chunk-QNTVP5P6.js";import"./chunk-HOAC4Q2B.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-P52N24RM.js";import"./chunk-5ZQ5G76U.js";import"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-BW7RJZKD.js";import"./chunk-FKP4RKI7.js";import{a as u}from"./chunk-UQAS5DKQ.js";import{h as m}from"./chunk-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import{a}from"./chunk-MXQNNVV4.js";import{a as p}from"./chunk-PHEOSYZF.js";import{c}from"./chunk-XPGHWUUW.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import{a as l}from"./chunk-WRA524FO.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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-RTW2N3WY.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-SPCPW2J7.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-C2JHZVQ6.js";import"./chunk-ZTVKMEFE.js";import"./chunk-3KKQNO4E.js";import"./chunk-RXCRS3MQ.js";import"./chunk-723DNICS.js";import"./chunk-E3HIN5R6.js";import"./chunk-RRZWYSAM.js";import"./chunk-XO3LJ2BQ.js";import"./chunk-J76H5R5N.js";import"./chunk-RQNNXIBD.js";import"./chunk-5WPFEICR.js";import"./chunk-DE2C75TX.js";import"./chunk-FMZ3FIEA.js";import"./chunk-ORZVUI4D.js";import{c as F,d as $,e as E}from"./chunk-RKHVKFVO.js";import{a as M}from"./chunk-Z2S2X233.js";import"./chunk-S22ABIJP.js";import"./chunk-F7TPFXGU.js";import"./chunk-4HHSYUJV.js";import"./chunk-JX3PIITA.js";import"./chunk-TEA75F6H.js";import"./chunk-QNTVP5P6.js";import"./chunk-HOAC4Q2B.js";import"./chunk-N3HQSZKL.js";import"./chunk-XQCRNIDM.js";import"./chunk-VSQKEGUT.js";import"./chunk-TLTBT7QM.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-7P3NXU4K.js";import"./chunk-P52N24RM.js";import"./chunk-5ZQ5G76U.js";import"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-VGFYJYVA.js";import"./chunk-5XZPTTX6.js";import{a as R}from"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-YZ52AN7N.js";import"./chunk-OKAQ3XRQ.js";import"./chunk-LTKFVWTL.js";import"./chunk-3PKHK6G4.js";import"./chunk-UQAS5DKQ.js";import"./chunk-PPXPG2LH.js";import"./chunk-IDFSGLP3.js";import"./chunk-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import{c as F,d as $,e as E}from"./chunk-YYR4BDUN.js";import{a as M}from"./chunk-WU3RVT52.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-XMB5EJKT.js";import"./chunk-GMG63IR6.js";import"./chunk-FJIPXIGR.js";import"./chunk-CXKDXNRV.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import{a as R}from"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-RQNNXIBD.js";import"./chunk-JX3PIITA.js";import"./chunk-P52N24RM.js";import{b as c,c as s,d as g}from"./chunk-5ZQ5G76U.js";import{q as d,s as l,v as a}from"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.js";function h(){console.log(`
4
+ import"./chunk-FQNDTYZQ.js";import"./chunk-T3RYRPOL.js";import"./chunk-CLI3SDZR.js";import{b as c,c as s,d as g}from"./chunk-BYO6P6AW.js";import{q as d,s as l,v as a}from"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.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-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-MUGJLIRC.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-5XZPTTX6.js";import"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-EIK7XWQ5.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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.331 | (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-FKP4RKI7.js";import{a,b,c,d,e,f,g}from"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import"./chunk-DXOSLJQ7.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-ZEW32JYG.js";import{q as x,s as A,w as b}from"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.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-XR2ELPIS.js";import{q as x,s as A,w as b}from"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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-37ZIZM43.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-QW74XB5M.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.331 | (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-YZ52AN7N.js";import"./chunk-OKAQ3XRQ.js";import"./chunk-LTKFVWTL.js";import{b as a,c as b}from"./chunk-3PKHK6G4.js";import"./chunk-UQAS5DKQ.js";import"./chunk-PPXPG2LH.js";import"./chunk-IDFSGLP3.js";import"./chunk-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import"./chunk-YYR4BDUN.js";import"./chunk-WU3RVT52.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-XMB5EJKT.js";import"./chunk-GMG63IR6.js";import"./chunk-FJIPXIGR.js";import"./chunk-CXKDXNRV.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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.331 | (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-5R5FCLE4.js";import"./chunk-C53ASFDC.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import"./chunk-XSW55GIR.js";import"./chunk-ENPMBKGL.js";import"./chunk-CJJFG5KQ.js";import"./chunk-X5XJUVTI.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-XQCRNIDM.js";import{b as n}from"./chunk-VGFYJYVA.js";import"./chunk-JHAK5RBC.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-GMG63IR6.js";import{b as n}from"./chunk-SOV5SHYG.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-5XZPTTX6.js";import"./chunk-JHAK5RBC.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-IXMPQ35S.js";import"./chunk-X5XJUVTI.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.331 | (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-3PKHK6G4.js";import"./chunk-UQAS5DKQ.js";import"./chunk-PPXPG2LH.js";import"./chunk-IDFSGLP3.js";import"./chunk-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-XMB5EJKT.js";import"./chunk-GMG63IR6.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.js";export{a as printShellPerfReport,b as runInspect};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.331 | (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-BW7RJZKD.js";import"./chunk-PHEOSYZF.js";import"./chunk-WRA524FO.js";import"./chunk-X5XJUVTI.js";export{a as runInstallDesktop};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-TLTBT7QM.js";import"./chunk-5XZPTTX6.js";import{a as b}from"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-CXKDXNRV.js";import"./chunk-IXMPQ35S.js";import{a as b}from"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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-I26UYHAJ.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-I26UYHAJ.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-RLMA24YQ.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-RLMA24YQ.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-I26UYHAJ.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-I26UYHAJ.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-RLMA24YQ.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-RLMA24YQ.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-VSQKEGUT.js";import{a as t,c as o}from"./chunk-TLTBT7QM.js";import"./chunk-5XZPTTX6.js";import"./chunk-JHAK5RBC.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-FJIPXIGR.js";import{a as t,c as o}from"./chunk-CXKDXNRV.js";import"./chunk-IXMPQ35S.js";import"./chunk-X5XJUVTI.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.329 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.331 | (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-C2JHZVQ6.js";import"./chunk-ZTVKMEFE.js";import"./chunk-3KKQNO4E.js";import{b as k}from"./chunk-RXCRS3MQ.js";import"./chunk-723DNICS.js";import"./chunk-E3HIN5R6.js";import{a as S}from"./chunk-RRZWYSAM.js";import"./chunk-XO3LJ2BQ.js";import"./chunk-J76H5R5N.js";import"./chunk-RQNNXIBD.js";import"./chunk-5WPFEICR.js";import"./chunk-DE2C75TX.js";import"./chunk-FMZ3FIEA.js";import"./chunk-ORZVUI4D.js";import{b as $,c as F,d as T,e as M}from"./chunk-RKHVKFVO.js";import{a as A}from"./chunk-Z2S2X233.js";import"./chunk-S22ABIJP.js";import"./chunk-F7TPFXGU.js";import"./chunk-4HHSYUJV.js";import"./chunk-JX3PIITA.js";import"./chunk-TEA75F6H.js";import"./chunk-QNTVP5P6.js";import"./chunk-HOAC4Q2B.js";import"./chunk-N3HQSZKL.js";import"./chunk-XQCRNIDM.js";import"./chunk-VSQKEGUT.js";import"./chunk-TLTBT7QM.js";import"./chunk-KWNB6JUI.js";import"./chunk-Y3KPW46E.js";import"./chunk-7P3NXU4K.js";import"./chunk-P52N24RM.js";import"./chunk-5ZQ5G76U.js";import"./chunk-GA4AX4DD.js";import"./chunk-W5VTGSXZ.js";import"./chunk-VGFYJYVA.js";import"./chunk-5XZPTTX6.js";import"./chunk-36SLXMYJ.js";import"./chunk-JHAK5RBC.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-YZ52AN7N.js";import"./chunk-OKAQ3XRQ.js";import"./chunk-LTKFVWTL.js";import{b as k}from"./chunk-3PKHK6G4.js";import"./chunk-UQAS5DKQ.js";import"./chunk-PPXPG2LH.js";import{a as S}from"./chunk-IDFSGLP3.js";import"./chunk-2664O2SP.js";import"./chunk-JDUNLHV4.js";import"./chunk-FQNDTYZQ.js";import"./chunk-PMSGRATC.js";import"./chunk-MXQNNVV4.js";import"./chunk-PHEOSYZF.js";import"./chunk-XPGHWUUW.js";import{b as $,c as F,d as T,e as M}from"./chunk-YYR4BDUN.js";import{a as A}from"./chunk-WU3RVT52.js";import"./chunk-BPXOBH2S.js";import"./chunk-R465QKXY.js";import"./chunk-PFQ2GL6I.js";import"./chunk-T3RYRPOL.js";import"./chunk-ADGT4K22.js";import"./chunk-SRGYFE5A.js";import"./chunk-RKNKWP63.js";import"./chunk-XMB5EJKT.js";import"./chunk-GMG63IR6.js";import"./chunk-FJIPXIGR.js";import"./chunk-CXKDXNRV.js";import"./chunk-DXOSLJQ7.js";import"./chunk-6QEYHQZH.js";import"./chunk-3M24TFEF.js";import"./chunk-CLI3SDZR.js";import"./chunk-BYO6P6AW.js";import"./chunk-NB5Y2UMJ.js";import"./chunk-EXIHWLOG.js";import"./chunk-SOV5SHYG.js";import"./chunk-IXMPQ35S.js";import"./chunk-ENPMBKGL.js";import"./chunk-X5XJUVTI.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-KXGSS4TC.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-MISRGALN.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