rnxsim 0.1.321 → 0.1.323

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/cli/commands/debug.ts +7 -1
  2. package/dist-cli/bin.js +5 -5
  3. package/dist-cli/chunks/{agent-ZCYY6UIN.js → agent-E4YKECDH.js} +2 -2
  4. package/dist-cli/chunks/{agent-wrapper-RHQSSWDW.js → agent-wrapper-T3RQREGT.js} +2 -2
  5. package/dist-cli/chunks/{app-fonts-AQQYVP7R.js → app-fonts-Z66QPRC5.js} +2 -2
  6. package/dist-cli/chunks/{assert-X2WWRRSM.js → assert-AFWNLPTA.js} +2 -2
  7. package/dist-cli/chunks/{auth-J3KZA5A6.js → auth-UD7EW6MF.js} +2 -2
  8. package/dist-cli/chunks/{beta-HY6A6NCH.js → beta-ORBE77DV.js} +2 -2
  9. package/dist-cli/chunks/{camera-WUBTQ334.js → camera-FCATGBTJ.js} +2 -2
  10. package/dist-cli/chunks/{chunk-3K5UE6UP.js → chunk-3Z6UM3QG.js} +1 -1
  11. package/dist-cli/chunks/{chunk-TSY2V2MP.js → chunk-4QP534TL.js} +1 -1
  12. package/dist-cli/chunks/{chunk-HHLWR6VA.js → chunk-5TPJ5IY4.js} +2 -2
  13. package/dist-cli/chunks/{chunk-VWDGEDEZ.js → chunk-6332KI2T.js} +2 -2
  14. package/dist-cli/chunks/{chunk-3CSXP2YE.js → chunk-6PWJFXSP.js} +2 -2
  15. package/dist-cli/chunks/{chunk-QT75KSQM.js → chunk-7AFN5JMY.js} +1 -1
  16. package/dist-cli/chunks/{chunk-2QMTL2EG.js → chunk-7L5FE2RO.js} +1 -1
  17. package/dist-cli/chunks/{chunk-YF2IN3VY.js → chunk-AC4SUACJ.js} +2 -2
  18. package/dist-cli/chunks/{chunk-NAQPR53B.js → chunk-AVT45ZQM.js} +2 -2
  19. package/dist-cli/chunks/{chunk-UJMOZCWO.js → chunk-BA4SR2FE.js} +2 -2
  20. package/dist-cli/chunks/{chunk-FFLKQQG3.js → chunk-BRFDEPAY.js} +2 -2
  21. package/dist-cli/chunks/{chunk-3LV2SDTH.js → chunk-CGK2YKCZ.js} +2 -2
  22. package/dist-cli/chunks/{chunk-4I2CJZN5.js → chunk-D4LCQGOJ.js} +2 -2
  23. package/dist-cli/chunks/{chunk-SF53CD7P.js → chunk-DECTRJSR.js} +2 -2
  24. package/dist-cli/chunks/{chunk-BNQ72PAX.js → chunk-DM6JAGLM.js} +1 -1
  25. package/dist-cli/chunks/{chunk-WHNMPF54.js → chunk-EF3Z5QEU.js} +2 -2
  26. package/dist-cli/chunks/{chunk-7VJZ6B4X.js → chunk-EIYAEJUE.js} +1 -1
  27. package/dist-cli/chunks/{chunk-32A72KME.js → chunk-EOQZOGAV.js} +2 -2
  28. package/dist-cli/chunks/{chunk-U4ZDIQ7L.js → chunk-FAPYW5HW.js} +3 -3
  29. package/dist-cli/chunks/{chunk-DKBKKGFO.js → chunk-FDQXIC7J.js} +2 -2
  30. package/dist-cli/chunks/{chunk-JVSP44UG.js → chunk-FUEWNH3Y.js} +1 -1
  31. package/dist-cli/chunks/{chunk-CZC6KUTW.js → chunk-G2TTTHBS.js} +3 -3
  32. package/dist-cli/chunks/{chunk-NHCFCFAV.js → chunk-GC6WGX7S.js} +3 -3
  33. package/dist-cli/chunks/{chunk-XXCK3RR5.js → chunk-GY5B7CEB.js} +1 -1
  34. package/dist-cli/chunks/{chunk-3CNTIEWQ.js → chunk-HBW3S34I.js} +2 -2
  35. package/dist-cli/chunks/{chunk-CSDURW3F.js → chunk-HTXD3VW2.js} +1 -1
  36. package/dist-cli/chunks/{chunk-WUPOL43L.js → chunk-IN5PFMX4.js} +2 -2
  37. package/dist-cli/chunks/{chunk-23ZU4FXX.js → chunk-IZSMNEQ4.js} +2 -2
  38. package/dist-cli/chunks/{chunk-IFGVS2TC.js → chunk-JSRABDNO.js} +1 -1
  39. package/dist-cli/chunks/{chunk-7KZFMNBK.js → chunk-JWZTZJNZ.js} +1 -1
  40. package/dist-cli/chunks/{chunk-XVSFRPTA.js → chunk-K72QHRWC.js} +2 -2
  41. package/dist-cli/chunks/{chunk-SHARS5CG.js → chunk-LONHC2VJ.js} +1 -1
  42. package/dist-cli/chunks/{chunk-36JV4DV6.js → chunk-OWASMPJ5.js} +2 -2
  43. package/dist-cli/chunks/{chunk-S7BD2P6E.js → chunk-Q4KLH3DZ.js} +2 -2
  44. package/dist-cli/chunks/{chunk-SBWPE3WK.js → chunk-R4MCIHA2.js} +1 -1
  45. package/dist-cli/chunks/{chunk-POSOP6PZ.js → chunk-RNVECHBR.js} +1 -1
  46. package/dist-cli/chunks/{chunk-4IN6R33C.js → chunk-SPRRFQWE.js} +2 -2
  47. package/dist-cli/chunks/{chunk-FFVU2PDZ.js → chunk-T7JYU26H.js} +2 -2
  48. package/dist-cli/chunks/{chunk-RQ33WKLO.js → chunk-TG2Q3JBG.js} +1 -1
  49. package/dist-cli/chunks/{chunk-TQHZJZY2.js → chunk-TJMUWTHJ.js} +2 -2
  50. package/dist-cli/chunks/{chunk-T46RH3WF.js → chunk-UCRG6I4R.js} +1 -1
  51. package/dist-cli/chunks/{chunk-5M233QX4.js → chunk-UEMPUEFE.js} +1 -1
  52. package/dist-cli/chunks/{chunk-KXJU4MBT.js → chunk-UG4B3ZIR.js} +1 -1
  53. package/dist-cli/chunks/{chunk-EEE6UJHO.js → chunk-UJT2N7AQ.js} +2 -2
  54. package/dist-cli/chunks/{chunk-4PKAKFQK.js → chunk-UTIHNUM6.js} +1 -1
  55. package/dist-cli/chunks/{chunk-S6NS2TKN.js → chunk-VQCYCFHO.js} +3 -3
  56. package/dist-cli/chunks/{chunk-VOEHSEKD.js → chunk-WL6KKN7Z.js} +2 -2
  57. package/dist-cli/chunks/{chunk-POHL75MH.js → chunk-XV66JAJX.js} +2 -2
  58. package/dist-cli/chunks/{chunk-QE4NGEPT.js → chunk-YBPRXMIU.js} +2 -2
  59. package/dist-cli/chunks/{chunk-5VKPIWJZ.js → chunk-YJBX57EP.js} +2 -2
  60. package/dist-cli/chunks/{chunk-FPKWVCBQ.js → chunk-YMXYZ7VM.js} +2 -2
  61. package/dist-cli/chunks/{chunk-PT3GNJQH.js → chunk-YOFZWUE2.js} +2 -2
  62. package/dist-cli/chunks/{chunk-ZK4IAIMS.js → chunk-YXO4LRWG.js} +1 -1
  63. package/dist-cli/chunks/{cleanup-DE64XSKX.js → cleanup-DEP7HYEA.js} +2 -2
  64. package/dist-cli/chunks/cli-version-GV6UUJB6.js +4 -0
  65. package/dist-cli/chunks/{compat-5GC6MAPX.js → compat-WK36SR3A.js} +2 -2
  66. package/dist-cli/chunks/{config-7CUM23NN.js → config-2FNVWR7E.js} +2 -2
  67. package/dist-cli/chunks/{control-YTLWJKDP.js → control-U63JL4PW.js} +2 -2
  68. package/dist-cli/chunks/daemon-7TLOLM2O.js +4 -0
  69. package/dist-cli/chunks/{debug-VZP6SDUP.js → debug-MRCKGVTL.js} +12 -12
  70. package/dist-cli/chunks/{desktop-T33XW3GD.js → desktop-4AZUAF4T.js} +3 -3
  71. package/dist-cli/chunks/{detox-LUOUH3C3.js → detox-ZWBVCZTB.js} +2 -2
  72. package/dist-cli/chunks/{device-FXRQXNG5.js → device-FCGVRVA6.js} +2 -2
  73. package/dist-cli/chunks/{diagnose-WHGCL34L.js → diagnose-MFUX5KL2.js} +2 -2
  74. package/dist-cli/chunks/{disk-cleanup-ELTLACVP.js → disk-cleanup-SEFSQP7G.js} +2 -2
  75. package/dist-cli/chunks/drivers-LJTMWBII.js +4 -0
  76. package/dist-cli/chunks/{film-6LQAQS57.js → film-A4BGIP5T.js} +3 -3
  77. package/dist-cli/chunks/flow-I34F6LM4.js +4 -0
  78. package/dist-cli/chunks/help-42RNPXDR.js +4 -0
  79. package/dist-cli/chunks/{hidden-runtime-alias-NBGWRK47.js → hidden-runtime-alias-XN6DQBMT.js} +2 -2
  80. package/dist-cli/chunks/{home-paths-RZP2L3BB.js → home-paths-LYBJZO7K.js} +2 -2
  81. package/dist-cli/chunks/inspect-WL4KQXY3.js +4 -0
  82. package/dist-cli/chunks/install-desktop-VUXKNHS5.js +4 -0
  83. package/dist-cli/chunks/{login-H2HWC5RU.js → login-H5XW56QB.js} +4 -4
  84. package/dist-cli/chunks/{logout-S44WRVP3.js → logout-JUEHEF6P.js} +2 -2
  85. package/dist-cli/chunks/{maestro-U5SBE2HV.js → maestro-CR2OOETU.js} +3 -3
  86. package/dist-cli/chunks/{maestro-generate-TBUZDLAF.js → maestro-generate-MHS6SBUL.js} +3 -3
  87. package/dist-cli/chunks/{mode-37QVQ7OI.js → mode-JDBV6GEB.js} +2 -2
  88. package/dist-cli/chunks/{optional-demo-registry-SNKYXLAT.js → optional-demo-registry-DTAH5QQ2.js} +2 -2
  89. package/dist-cli/chunks/{perf-KQQWKUW3.js → perf-YQAQ663H.js} +2 -2
  90. package/dist-cli/chunks/{permissions-MVK4QOEY.js → permissions-JB2KDRW3.js} +2 -2
  91. package/dist-cli/chunks/{record-NNTQCAJ3.js → record-EGTRRZUU.js} +3 -3
  92. package/dist-cli/chunks/{report-issue-UOEECDRT.js → report-issue-6AHQ2PC3.js} +2 -2
  93. package/dist-cli/chunks/reset-YNKZID3Y.js +4 -0
  94. package/dist-cli/chunks/runtime-SK66FU5U.js +4 -0
  95. package/dist-cli/chunks/{screenshot-command-KLVX7P24.js → screenshot-command-T2F45EYZ.js} +3 -3
  96. package/dist-cli/chunks/{screenshot-layers-ISGWVQPM.js → screenshot-layers-WSPZ2BTL.js} +2 -2
  97. package/dist-cli/chunks/{screenshots-capture-WNJ4TWJ4.js → screenshots-capture-IAU5EJ5M.js} +2 -2
  98. package/dist-cli/chunks/{serve-M3QTPA55.js → serve-CCXPNYIV.js} +2 -2
  99. package/dist-cli/chunks/{setup-H5XFNCVF.js → setup-K3RJPGEL.js} +2 -2
  100. package/dist-cli/chunks/{skills-OVKZPWM5.js → skills-ZBNURFKW.js} +2 -2
  101. package/dist-cli/chunks/{state-4UZM32TR.js → state-GKPY5LXH.js} +2 -2
  102. package/dist-cli/chunks/{storage-YWXATWMC.js → storage-634V5RGB.js} +2 -2
  103. package/dist-cli/chunks/store-VRAF24GO.js +4 -0
  104. package/dist-cli/chunks/telemetry-D2WLGCDB.js +4 -0
  105. package/dist-cli/chunks/{timeline-H6FCOHPR.js → timeline-3MOPYDMM.js} +2 -2
  106. package/dist-cli/chunks/{upgrade-BYXH7RHT.js → upgrade-N5U7FDGP.js} +2 -2
  107. package/dist-cli/chunks/upload-TDWCOG72.js +4 -0
  108. package/dist-cli/chunks/{version-A2VOC5DI.js → version-UEZDJQTG.js} +2 -2
  109. package/dist-cli/chunks/{web-BAOBEDHH.js → web-TMXHYSSW.js} +2 -2
  110. package/dist-cli/chunks/{what-happened-HIG4KHRX.js → what-happened-R3T2XUPS.js} +2 -2
  111. package/dist-lib/agent-daemon-client.cjs +1 -1
  112. package/dist-lib/agent-events.cjs +1 -1
  113. package/dist-lib/agent-identity.cjs +1 -1
  114. package/dist-lib/agent-sessions.cjs +1 -1
  115. package/dist-lib/attached-projects.cjs +1 -1
  116. package/dist-lib/auth/shared-session.cjs +1 -1
  117. package/dist-lib/backend-origin.cjs +1 -1
  118. package/dist-lib/beta.cjs +1 -1
  119. package/dist-lib/beta.mjs +1 -1
  120. package/dist-lib/bridge-constants.cjs +1 -1
  121. package/dist-lib/bridge-contract.cjs +1 -1
  122. package/dist-lib/cli-constants.cjs +1 -1
  123. package/dist-lib/config.cjs +1 -1
  124. package/dist-lib/detox/index.cjs +1 -1
  125. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  126. package/dist-lib/home-paths.cjs +1 -1
  127. package/dist-lib/host/bridge-host.cjs +1 -1
  128. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  129. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  130. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  131. package/dist-lib/host/websocket-proxy.cjs +1 -1
  132. package/dist-lib/index.cjs +1 -1
  133. package/dist-lib/jump-to-source-babel.cjs +1 -1
  134. package/dist-lib/menu.cjs +1 -1
  135. package/dist-lib/menu.mjs +1 -1
  136. package/dist-lib/metro.cjs +1 -1
  137. package/dist-lib/profiles.cjs +1 -1
  138. package/dist-lib/public-brand.cjs +1 -1
  139. package/dist-lib/render-mode.cjs +1 -1
  140. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  141. package/dist-lib/sdk.cjs +1 -1
  142. package/dist-lib/sdk.mjs +1 -1
  143. package/dist-lib/skills.cjs +1 -1
  144. package/dist-lib/vite.cjs +1 -1
  145. package/package.json +1 -1
  146. package/dist-cli/chunks/cli-version-4PHX7SM2.js +0 -4
  147. package/dist-cli/chunks/daemon-HCWJYO7Y.js +0 -4
  148. package/dist-cli/chunks/drivers-ALZ2DI7E.js +0 -4
  149. package/dist-cli/chunks/flow-DAZJNZUQ.js +0 -4
  150. package/dist-cli/chunks/help-GW42ZLG5.js +0 -4
  151. package/dist-cli/chunks/inspect-NA6HUTGV.js +0 -4
  152. package/dist-cli/chunks/install-desktop-VCLGTXMR.js +0 -4
  153. package/dist-cli/chunks/reset-NMSCZFR5.js +0 -4
  154. package/dist-cli/chunks/runtime-752LLHT5.js +0 -4
  155. package/dist-cli/chunks/store-6BKOI4J4.js +0 -4
  156. package/dist-cli/chunks/telemetry-E4UF7OTF.js +0 -4
  157. package/dist-cli/chunks/upload-AD43GTK2.js +0 -4
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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 O,b as B}from"./chunk-KXJU4MBT.js";import{M as T,N,O as _,P as W,g as F}from"./chunk-CSDURW3F.js";var Ie="http://localhost:7668/";function H(e){if(typeof e=="number")return Number.isInteger(e)&&e>0?e:null;if(typeof e!="string")return null;let t=e.trim();if(!t)return null;let r=Number(t);return Number.isInteger(r)&&r>0?r:null}function X(e){let t=H(e);return t===null?0:t}function V(e={}){let t=H(e.explicitPort);return t!==null?t:7668+X(e.portOffset)}var z=5173;var Q=2e3;function Pe(e){let t=e-7668;return t<0||t>Q?null:`http://localhost:${z+t}/`}var ye=4001,Te="sootsim close";import{existsSync as Z,mkdirSync as ee,readFileSync as te,rmSync as E,writeFileSync as re}from"fs";import{tmpdir as ne}from"os";import{dirname as ie,join as oe,resolve as se}from"path";var v=1,G="SOOTSIM_CLI_CURRENT_SIM_PATH",le=["SOOTSIM_CLI_IDENTITY","TM_SESSION","CLAUDE_CODE_SESSION_ID","CODEX_THREAD_ID","TERM_SESSION_ID","ITERM_SESSION_ID","TMUX_PANE","STY","KITTY_WINDOW_ID","WEZTERM_PANE","ALACRITTY_WINDOW_ID","WINDOWID","VSCODE_INJECTION"],j=/^(?:tmux|screen)|^tm$/i;function q(e,t=20){let r=e,n=O(e);if(!n||n<=1){let o=B(e);return e>1&&o&&!j.test(o)?e:null}for(let o=0;o<t;o++){let s=B(n);if(s&&j.test(s))return r;let u=O(n);if(!u||u<=1)return s?n:r;r=n,n=u}return n}function x(){for(let t of le){let r=process.env[t];if(r&&r.trim())return{key:`${t}:${r.trim()}`,source:t,stable:!0}}let e=q(process.ppid);return e&&e>1?{key:`gppid-${e}`,source:"grand-ppid",stable:!0}:{key:`pid-${process.ppid}`,source:"ppid",stable:!1}}function ce(){return x().key}function ve(){return q(process.ppid)}function k(){if(process.env[G])return se(process.env[G]);let e=ce();return oe(ne(),`sootsim-current-sim-${e}.json`)}function de(){let e=k();if(!Z(e))return null;try{let t=JSON.parse(te(e,"utf8"));return t.version!==v||typeof t.simId!="string"||!t.simId.trim()||typeof t.updatedAt!="string"?(E(e,{force:!0}),null):{version:v,simId:t.simId.trim(),updatedAt:t.updatedAt}}catch{return E(e,{force:!0}),null}}function R(){return de()?.simId||null}function xe(e){let t=e.trim();if(!t)return;let r=k();ee(ie(r),{recursive:!0}),re(r,JSON.stringify({version:v,simId:t,updatedAt:new Date().toISOString()},null,2)+`
4
+ import{a as O,b as B}from"./chunk-UG4B3ZIR.js";import{M as T,N,O as _,P as W,g as F}from"./chunk-HTXD3VW2.js";var Ie="http://localhost:7668/";function H(e){if(typeof e=="number")return Number.isInteger(e)&&e>0?e:null;if(typeof e!="string")return null;let t=e.trim();if(!t)return null;let r=Number(t);return Number.isInteger(r)&&r>0?r:null}function X(e){let t=H(e);return t===null?0:t}function V(e={}){let t=H(e.explicitPort);return t!==null?t:7668+X(e.portOffset)}var z=5173;var Q=2e3;function Pe(e){let t=e-7668;return t<0||t>Q?null:`http://localhost:${z+t}/`}var ye=4001,Te="sootsim close";import{existsSync as Z,mkdirSync as ee,readFileSync as te,rmSync as E,writeFileSync as re}from"fs";import{tmpdir as ne}from"os";import{dirname as ie,join as oe,resolve as se}from"path";var v=1,G="SOOTSIM_CLI_CURRENT_SIM_PATH",le=["SOOTSIM_CLI_IDENTITY","TM_SESSION","CLAUDE_CODE_SESSION_ID","CODEX_THREAD_ID","TERM_SESSION_ID","ITERM_SESSION_ID","TMUX_PANE","STY","KITTY_WINDOW_ID","WEZTERM_PANE","ALACRITTY_WINDOW_ID","WINDOWID","VSCODE_INJECTION"],j=/^(?:tmux|screen)|^tm$/i;function q(e,t=20){let r=e,n=O(e);if(!n||n<=1){let o=B(e);return e>1&&o&&!j.test(o)?e:null}for(let o=0;o<t;o++){let s=B(n);if(s&&j.test(s))return r;let u=O(n);if(!u||u<=1)return s?n:r;r=n,n=u}return n}function x(){for(let t of le){let r=process.env[t];if(r&&r.trim())return{key:`${t}:${r.trim()}`,source:t,stable:!0}}let e=q(process.ppid);return e&&e>1?{key:`gppid-${e}`,source:"grand-ppid",stable:!0}:{key:`pid-${process.ppid}`,source:"ppid",stable:!1}}function ce(){return x().key}function ve(){return q(process.ppid)}function k(){if(process.env[G])return se(process.env[G]);let e=ce();return oe(ne(),`sootsim-current-sim-${e}.json`)}function de(){let e=k();if(!Z(e))return null;try{let t=JSON.parse(te(e,"utf8"));return t.version!==v||typeof t.simId!="string"||!t.simId.trim()||typeof t.updatedAt!="string"?(E(e,{force:!0}),null):{version:v,simId:t.simId.trim(),updatedAt:t.updatedAt}}catch{return E(e,{force:!0}),null}}function R(){return de()?.simId||null}function xe(e){let t=e.trim();if(!t)return;let r=k();ee(ie(r),{recursive:!0}),re(r,JSON.stringify({version:v,simId:t,updatedAt:new Date().toISOString()},null,2)+`
5
5
  `)}function J(){E(k(),{force:!0})}var h="http://localhost:5173/";import ue from"node:fs";import S from"node:path";import{WebSocket as D}from"ws";var C=null;function M(){return N().filter(e=>W(e))}function Y(e){let t=S.resolve(e);for(;;){if(ue.existsSync(S.join(t,".git")))return t;let r=S.dirname(t);if(r===t)return null;t=r}}function K(e,t){let r=S.relative(e,t);return r===""||r!==".."&&!r.startsWith(`..${S.sep}`)&&!S.isAbsolute(r)}function ae(){let e=M();if(e.length===0)return null;if(process.env.SOOTSIM_BRIDGE_PORT!==void 0||process.env.PORT_OFFSET!==void 0){let r=V({explicitPort:process.env.SOOTSIM_BRIDGE_PORT,portOffset:process.env.PORT_OFFSET}),n=e.find(o=>o.bridgePort===r);if(n)return n}let t=null;try{t=process.cwd()}catch{}if(t){let r=Y(t),n=e.filter(o=>{let s=Y(o.cwd);return r&&s?r===s:K(t,o.cwd)||K(o.cwd,t)});if(n.length>0)return n.find(o=>o.bridgePort===7668)??n[0]}return e.find(r=>r.bridgePort===7668)??e[0]}function me(){let e=F();if(C?.homeDir===e)return C.world;let t=fe();return C={homeDir:e,world:t},t}function fe(){let e=ae();if(e)return{source:"dev-bridge",bridgePort:e.bridgePort,shellBaseUrl:e.shellPort?`http://localhost:${e.shellPort}/`:h};let t=T();return t&&_(t)?{source:"daemon",bridgePort:t.bridgePort,shellBaseUrl:t.runtimePort>0?`http://localhost:${t.runtimePort}/`:h}:{source:"default",bridgePort:7668,shellBaseUrl:h}}function ge(e){let t=M().find(n=>n.bridgePort===e);if(t)return{source:"dev-bridge",shellBaseUrl:t.shellPort?`http://localhost:${t.shellPort}/`:h};let r=T();return r&&_(r)&&r.bridgePort===e?{source:"daemon",shellBaseUrl:r.runtimePort>0?`http://localhost:${r.runtimePort}/`:h}:null}function Fe(e){let t;try{let o=new URL(e);t=o.port?Number(o.port):o.protocol==="https:"?443:80}catch{return null}if(!Number.isFinite(t)||t<=0)return null;let r=M().find(o=>o.shellPort===t||o.runtimePort===t||o.bridgePort===t);if(r)return r.bridgePort;let n=T();return n&&_(n)&&(n.runtimePort===t||n.bridgePort===t)?n.bridgePort:null}function pe(){return me().bridgePort}function Ne(e,t){let r=ge(e),n=r?.source==="dev-bridge"?"dev bridge":r?.source==="daemon"?"daemon bridge":"bridge",o=r?.source==="dev-bridge"?`dev-bridges/${e}.json`:r?.source==="daemon"?"daemon.json":"no lockfile",s=t??r?.shellBaseUrl;process.stderr.write(` \u2192 ${n} :${e} (${s?`shell ${s}, `:""}${o})
6
6
  `)}var A=class extends Error{lock;constructor(t,r){super(t),this.name="BridgeSimLockedError",this.lock=r}};function he(e){return e==="flag"?"via --sim":e==="saved"?"saved via `rnxsim use`":"primary fallback \u2014 no sim pinned"}function We(e,t={}){let r=new Set,n=t.port??pe(),o=t.port!==void 0,s=t.commandTimeoutMs??15e3,u,a="none",I=new Set(t.stripBooleanFlags??[]),P=new Set(t.stripValueFlags??[]);for(let l=0;l<e.length;l++){let i=e[l];if(i==="--port"||i==="-p"){r.add(l),o=!0,l+1<e.length&&(r.add(l+1),n=Number(e[l+1])),l++;continue}if(i.startsWith("--port=")){r.add(l),o=!0,n=Number(i.slice(7));continue}if(i==="--timeout"){r.add(l),l+1<e.length&&(r.add(l+1),s=Number(e[l+1])),l++;continue}if(i==="--sim"||i==="--session"||i==="--tab"){r.add(l),l+1<e.length&&(r.add(l+1),u=e[l+1]?.trim()||void 0,a="flag"),l++;continue}let c=i.startsWith("--sim=")?i.slice(6):i.startsWith("--session=")?i.slice(10):i.startsWith("--tab=")?i.slice(6):void 0;if(c!==void 0){r.add(l),u=c.trim()||void 0,a="flag";continue}if(I.has(i)){r.add(l);continue}P.has(i)&&(r.add(l),l+1<e.length&&r.add(l+1),l++)}if(!u){let l=R();l&&(u=l.trim()||void 0,a="saved")}return{positional:e.filter((l,i)=>!r.has(i)),wsPort:n,explicitPort:o,simId:u,simIdSource:a,commandTimeoutMs:s}}function Se(e,t={}){let r=1,n=t.commandTimeoutMs??15e3,o=new Map,s=new D(`ws://localhost:${e}`),u=x(),a=new Promise((i,c)=>{s.on("open",()=>{try{s.send(JSON.stringify({type:"bridge:hello",id:0,cliIdentityKey:u.key,cliIdentitySource:u.source,cliLabel:t.cliLabel}))}catch{}i()}),s.on("error",d=>{let m=d.message?`: ${d.message}`:"";c(new Error(`could not connect to ws://localhost:${e}${m}`))})});a.catch(()=>{});let I=!1,P=!1;function l(i,c){if(P||process.env.SOOTSIM_QUIET_TARGET_NOTICE==="1"||i.startsWith("bridge:")||i==="focus"||i==="close")return;P=!0;let d=c??"primary",m=he(c?t.simIdSource:"none");process.stderr.write(` \u2192 ${d} (${m})
7
7
  `)}return s.on("message",i=>{let c;try{c=JSON.parse(i.toString())}catch{return}if(c.id===0)return;let d=o.get(c.id);d&&(o.delete(c.id),c._otherCliCount>0&&!I&&(I=!0,process.stderr.write(`
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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
  import{randomUUID as R}from"node:crypto";import r from"node:fs";import{homedir as O}from"node:os";import o from"node:path";var j="SOOTSIM_HOME",N="active",E="daemon.json",_="dev-bridges",w="config.json",b=3e4;function s(){let e=process.env[j];return e&&e.length>0?o.resolve(e):o.join(O(),".sootsim")}function F(){if(process.env.SOOTSIM_FORCE_DAEMON_INSTALL==="1")return!1;let e=process.env.SOOTSIM_DEV;if(e==="1"||e==="true")return!0;if(e==="0"||e==="false")return!1;let t=process.argv[1];if(!t)return!1;try{return r.realpathSync(t).includes(`${o.sep}packages${o.sep}sootsim${o.sep}`)}catch{return!1}}function I(){return process.env.SOOTSIM_FORCE_DAEMON_INSTALL==="1"?!1:process.env.IS_TAMAGUI_DEV==="1"}function Y(){return F()||I()}function d(){return o.join(s(),"runtimes")}function B(e){return o.join(d(),e)}function h(){return o.join(d(),N)}function v(){return o.join(s(),"electron")}function q(){return o.join(v(),"userData")}function z(e){return o.join(v(),e)}function $(){return o.join(s(),"profiles")}function Q(){return o.join(s(),"camera-fixtures")}function C(){return o.join(s(),"daemon-app")}function M(){return o.join(C(),"SootSim Daemon.app")}function Z(){return o.join(M(),"Contents","MacOS","sootsim-daemon")}function T(){return o.join(s(),"cache")}function a(){return o.join(s(),E)}function f(){return o.join(s(),_)}function D(e){if(!Number.isInteger(e)||e<=0)throw new Error(`invalid development bridge port: ${e}`);return o.join(f(),`${e}.json`)}function y(){return o.join(s(),w)}function S(){try{let e=r.readFileSync(y(),"utf8"),t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return{}}}function x(e){m();let t=S(),n={...t,...e};e.settings&&typeof e.settings=="object"&&(n.settings={...t.settings&&typeof t.settings=="object"?t.settings:{},...e.settings});let c=`${y()}.tmp`;return r.writeFileSync(c,`${JSON.stringify(n,null,2)}
@@ -1,5 +1,5 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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{l as n}from"./chunk-SF53CD7P.js";var i=[];for(let[t,e]of Object.entries(n))e.cliFlag&&i.push({name:`--${e.cliFlag}`,short:e.cliFlagShort?`-${e.cliFlagShort}`:void 0,key:t,type:e.type==="enum"?"string":e.type,description:e.description,options:e.options,default:e.default});var a=i;function g(){let t=[];for(let e of a){let s=e.short?`${e.short}, ${e.name}`:` ${e.name}`,o=e.options?` [${e.options.join("|")}]`:"",r=e.default!==void 0?` (default: ${e.default})`:"";t.push(` ${s.padEnd(24)}${e.description}${o}${r}`)}return t.join(`
4
+ import{l as n}from"./chunk-DECTRJSR.js";var i=[];for(let[t,e]of Object.entries(n))e.cliFlag&&i.push({name:`--${e.cliFlag}`,short:e.cliFlagShort?`-${e.cliFlagShort}`:void 0,key:t,type:e.type==="enum"?"string":e.type,description:e.description,options:e.options,default:e.default});var a=i;function g(){let t=[];for(let e of a){let s=e.short?`${e.short}, ${e.name}`:` ${e.name}`,o=e.options?` [${e.options.join("|")}]`:"",r=e.default!==void 0?` (default: ${e.default})`:"";t.push(` ${s.padEnd(24)}${e.description}${o}${r}`)}return t.join(`
5
5
  `)}export{g as a};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{m as a}from"./chunk-VOEHSEKD.js";import{q as l,s as i}from"./chunk-3CNTIEWQ.js";function c(r){if(!r||typeof r!="object")return!1;let t=Reflect.get(r,"strategy");return typeof Reflect.get(r,"ok")=="boolean"&&(t==="data"||t==="full")&&Array.isArray(Reflect.get(r,"cleared"))&&typeof Reflect.get(r,"relaunched")=="boolean"}function d(){console.log(`
4
+ import{m as a}from"./chunk-WL6KKN7Z.js";import{q as l,s as i}from"./chunk-HBW3S34I.js";function c(r){if(!r||typeof r!="object")return!1;let t=Reflect.get(r,"strategy");return typeof Reflect.get(r,"ok")=="boolean"&&(t==="data"||t==="full")&&Array.isArray(Reflect.get(r,"cleared"))&&typeof Reflect.get(r,"relaunched")=="boolean"}function d(){console.log(`
5
5
  rnxsim reset - clear the current guest app and relaunch it
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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
  function Q(t,e){let r=["--max-ms","--maxMs","--maxms","--max_ms"];for(let n of r){let o=t.indexOf(n);if(o>=0&&t[o+1]){let s=Number(t[o+1]);if(Number.isFinite(s))return Math.max(100,s)}}return e}var P=new Set(["tap","double-tap","tap-text","tap-id","long-press","touch"]);function N(t){return typeof t=="string"&&P.has(t)}async function M(t){return await t.send({type:"evaluate",code:"window.__sootsimEngineState?.inspectActive === true"})===!0}async function X(t,e){if(!N(e))return!1;try{return await M(t)}catch{return!1}}async function Z(t){let e=await t.send({type:"evaluate",code:"(async () => await window.__sootsimTest.getNodeCount())()"});return{nodes:typeof e=="number"?e:0}}async function ee(t,e=5,r){let n=r?.format?`, ${JSON.stringify(r)}`:"",o=await t.send({type:"evaluate",code:`(async () => await window.__sootsimTest.dumpTree(${e}${n}))()`});if(r?.format==="boxes"&&typeof o=="string")try{return{depth:e,tree:JSON.parse(o)}}catch{return{depth:e,tree:o}}return{depth:e,tree:o}}async function te(t){let e=await t.send({type:"evaluate",code:"window.location.href"});return{url:typeof e=="string"?e:""}}async function ne(t,e){let r=e.maxDepth??12,n=`(async () => {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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 n=Object.freeze({name:"rnx",packageName:"rnxsim",commandName:"rnxsim",domain:"rnxsim.com",origin:"https://rnxsim.com"});export{n as a};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.321 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.323 | (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 P,k as m,l as S,m as R,n as _,o as v}from"./chunk-SF53CD7P.js";var k="sootsim:settings",d=["productAnalytics","crashReports","colorScheme","reduceMotion","boldText","fontSize","largerAccessibilitySizes","a11yMode","a11yDepth","screenshotCanvas","screenshotBackground","screenshotText","screenshotPose","screenshotDynamicSize","alwaysShowLiveWebViews","showFrame","showMenuBar","showRail","solidWindow","ambientGlow","agentProvider"];function p(){if(typeof window>"u")return null;let e=window.sootsimElectron;return e&&typeof e=="object"?e:null}function l(e){let t={};for(let n of d){if(!(n in e))continue;let o=e[n],i=S[n];i.validate&&!i.validate(o)||i.options&&!i.options.includes(o)||(t[n]=o)}return t}function K(e){let t={};for(let n of d)t[n]=e[n];return t}function M(){if(typeof localStorage>"u")return{};try{let e=localStorage.getItem(k);return e?l(JSON.parse(e)):{}}catch{return{}}}function T(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(k,JSON.stringify(e))}catch{}}function x(){let t=p()?.sharedConfig?.settings;return!t||typeof t!="object"?{}:l(t)}function A(e){let t=p();if(t?.writeSharedConfig)try{t.writeSharedConfig({settings:e})}catch{}}async function L(e){let t=p();return t?.writeSharedConfig?(await t.writeSharedConfig({settings:e}),!0):!1}function b(){if(typeof window>"u")return null;let e=window.__sootsimSharedConfig;return e&&typeof e=="object"?e:null}function O(){let e=b()?.settings;return!e||typeof e!="object"?{}:l(e)}function B(e){if(!b())return;let t={settings:e};try{if(globalThis.__sootsimBridgeRequest?.writeSharedConfig?.(t))return}catch{}if(!(typeof fetch>"u"))try{fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0}).catch(()=>{})}catch{}}async function F(e){if(!b()||typeof fetch>"u")return!1;let t=await fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:e}),keepalive:!0});if(!t.ok)throw new Error(`shared settings reset failed with HTTP ${t.status}`);return await t.text(),!0}function D(){let e=M(),t=O(),n=x();return{...e,...t,...n}}function V(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),A(n),B(n)}async function I(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),!await L(n)&&await F(n)}function j(e){if(typeof window>"u")return()=>{};let t=r=>{if(!(r.key!==k||r.newValue==null))try{e(l(JSON.parse(r.newValue)))}catch{}};window.addEventListener("storage",t);let n=p(),o;n?.onSharedConfigChanged&&(o=n.onSharedConfigChanged(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))}));let a=globalThis.__sootsimBridgeRequest?.subscribeSharedConfig?.(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))});return()=>{window.removeEventListener("storage",t),o?.(),a?.()}}var N=_(),q=v(),y=D(),c=new Set,g={};for(let e of d)N[e]!==void 0&&(c.add(e),y[e]!==void 0&&(g[e]=y[e]),delete y[e]);var s={...q,...y},w=[],u=null;function h(){for(let e of w)e()}function E(){h(),V(s,g)}function C(e,t){let n=S[e];return n.validate&&!n.validate(t)||n.options&&!n.options.includes(t)||s[e]===t?!1:(s={...s,[e]:t},e==="deviceModel"&&(u=null),!0)}j(e=>{let t={...s},n=!1;for(let[o,i]of Object.entries(e)){let a=o;if(c.has(a)){g[a]=i;continue}t[a]!==i&&(t[a]=i,n=!0)}n&&(s=t,u=null,h())});var z={get(e){return s[e]},set(e,t){C(e,t)&&E()},setRuntime(e,t){c.has(e)||(c.add(e),d.includes(e)&&(g[e]=s[e])),C(e,t)&&h()},isRuntimeControlled(e){return c.has(e)},getAll(){return s},apply(e){let t=!1,n={...s};for(let[o,i]of Object.entries(e)){if(i===void 0)continue;let a=o,r=S[a];r&&(r.validate&&!r.validate(i)||r.options&&!r.options.includes(i)||n[a]!==i&&(n[a]=i,t=!0))}t&&(s=n,u=null,E())},applyRuntime(e){let t=!1;for(let n of Object.keys(e)){let o=e[n];o!==void 0&&(c.has(n)||(c.add(n),d.includes(n)&&(g[n]=s[n])),C(n,o)&&(t=!0))}t&&h()},reset(){s=v(),u=null,E()},async resetDeviceContent(){let e=m.filter(n=>!c.has(n)).map(n=>[n,R[n]]),t=e.some(([n,o])=>s[n]!==o);s={...s,...Object.fromEntries(e)};for(let n of m)c.has(n)&&(g[n]=R[n]);t&&h(),await I(s,g)},subscribe(e){return w.push(e),()=>{w=w.filter(t=>t!==e)}},getDeviceSpec(){return u||(u=P(s.deviceModel)),u},getA11yMode(){return s.a11yMode},setA11yMode(e){this.set("a11yMode",e)},getInspectMode(){return s.inspectMode},setInspectMode(e){this.set("inspectMode",e)}};export{z as a};
4
+ import{c as P,k as m,l as S,m as R,n as _,o as v}from"./chunk-DECTRJSR.js";var k="sootsim:settings",d=["productAnalytics","crashReports","colorScheme","reduceMotion","boldText","fontSize","largerAccessibilitySizes","a11yMode","a11yDepth","screenshotCanvas","screenshotBackground","screenshotText","screenshotPose","screenshotDynamicSize","alwaysShowLiveWebViews","showFrame","showMenuBar","showRail","solidWindow","ambientGlow","agentProvider"];function p(){if(typeof window>"u")return null;let e=window.sootsimElectron;return e&&typeof e=="object"?e:null}function l(e){let t={};for(let n of d){if(!(n in e))continue;let o=e[n],i=S[n];i.validate&&!i.validate(o)||i.options&&!i.options.includes(o)||(t[n]=o)}return t}function K(e){let t={};for(let n of d)t[n]=e[n];return t}function M(){if(typeof localStorage>"u")return{};try{let e=localStorage.getItem(k);return e?l(JSON.parse(e)):{}}catch{return{}}}function T(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(k,JSON.stringify(e))}catch{}}function x(){let t=p()?.sharedConfig?.settings;return!t||typeof t!="object"?{}:l(t)}function A(e){let t=p();if(t?.writeSharedConfig)try{t.writeSharedConfig({settings:e})}catch{}}async function L(e){let t=p();return t?.writeSharedConfig?(await t.writeSharedConfig({settings:e}),!0):!1}function b(){if(typeof window>"u")return null;let e=window.__sootsimSharedConfig;return e&&typeof e=="object"?e:null}function O(){let e=b()?.settings;return!e||typeof e!="object"?{}:l(e)}function B(e){if(!b())return;let t={settings:e};try{if(globalThis.__sootsimBridgeRequest?.writeSharedConfig?.(t))return}catch{}if(!(typeof fetch>"u"))try{fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0}).catch(()=>{})}catch{}}async function F(e){if(!b()||typeof fetch>"u")return!1;let t=await fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:e}),keepalive:!0});if(!t.ok)throw new Error(`shared settings reset failed with HTTP ${t.status}`);return await t.text(),!0}function D(){let e=M(),t=O(),n=x();return{...e,...t,...n}}function V(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),A(n),B(n)}async function I(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),!await L(n)&&await F(n)}function j(e){if(typeof window>"u")return()=>{};let t=r=>{if(!(r.key!==k||r.newValue==null))try{e(l(JSON.parse(r.newValue)))}catch{}};window.addEventListener("storage",t);let n=p(),o;n?.onSharedConfigChanged&&(o=n.onSharedConfigChanged(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))}));let a=globalThis.__sootsimBridgeRequest?.subscribeSharedConfig?.(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))});return()=>{window.removeEventListener("storage",t),o?.(),a?.()}}var N=_(),q=v(),y=D(),c=new Set,g={};for(let e of d)N[e]!==void 0&&(c.add(e),y[e]!==void 0&&(g[e]=y[e]),delete y[e]);var s={...q,...y},w=[],u=null;function h(){for(let e of w)e()}function E(){h(),V(s,g)}function C(e,t){let n=S[e];return n.validate&&!n.validate(t)||n.options&&!n.options.includes(t)||s[e]===t?!1:(s={...s,[e]:t},e==="deviceModel"&&(u=null),!0)}j(e=>{let t={...s},n=!1;for(let[o,i]of Object.entries(e)){let a=o;if(c.has(a)){g[a]=i;continue}t[a]!==i&&(t[a]=i,n=!0)}n&&(s=t,u=null,h())});var z={get(e){return s[e]},set(e,t){C(e,t)&&E()},setRuntime(e,t){c.has(e)||(c.add(e),d.includes(e)&&(g[e]=s[e])),C(e,t)&&h()},isRuntimeControlled(e){return c.has(e)},getAll(){return s},apply(e){let t=!1,n={...s};for(let[o,i]of Object.entries(e)){if(i===void 0)continue;let a=o,r=S[a];r&&(r.validate&&!r.validate(i)||r.options&&!r.options.includes(i)||n[a]!==i&&(n[a]=i,t=!0))}t&&(s=n,u=null,E())},applyRuntime(e){let t=!1;for(let n of Object.keys(e)){let o=e[n];o!==void 0&&(c.has(n)||(c.add(n),d.includes(n)&&(g[n]=s[n])),C(n,o)&&(t=!0))}t&&h()},reset(){s=v(),u=null,E()},async resetDeviceContent(){let e=m.filter(n=>!c.has(n)).map(n=>[n,R[n]]),t=e.some(([n,o])=>s[n]!==o);s={...s,...Object.fromEntries(e)};for(let n of m)c.has(n)&&(g[n]=R[n]);t&&h(),await I(s,g)},subscribe(e){return w.push(e),()=>{w=w.filter(t=>t!==e)}},getDeviceSpec(){return u||(u=P(s.deviceModel)),u},getA11yMode(){return s.a11yMode},setA11yMode(e){this.set("a11yMode",e)},getInspectMode(){return s.inspectMode},setInspectMode(e){this.set("inspectMode",e)}};export{z as a};