rnxsim 0.1.335 → 0.1.337

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 (272) hide show
  1. package/README.md +104 -76
  2. package/cli/auth.ts +2 -2
  3. package/cli/bin.ts +7 -3
  4. package/cli/bridge-flow-runner.ts +2 -2
  5. package/cli/commands/agent-wrapper.ts +1 -1
  6. package/cli/commands/agent.ts +12 -12
  7. package/cli/commands/app-fonts.ts +1 -1
  8. package/cli/commands/assert.ts +7 -7
  9. package/cli/commands/auth.ts +4 -4
  10. package/cli/commands/camera.ts +13 -13
  11. package/cli/commands/cleanup.ts +6 -6
  12. package/cli/commands/compat.ts +4 -4
  13. package/cli/commands/config.ts +2 -2
  14. package/cli/commands/control.ts +37 -43
  15. package/cli/commands/cpu-profile.ts +2 -2
  16. package/cli/commands/daemon-mac-app.ts +2 -2
  17. package/cli/commands/daemon.ts +12 -12
  18. package/cli/commands/debug.ts +22 -22
  19. package/cli/commands/desktop.ts +3 -3
  20. package/cli/commands/detox.ts +17 -17
  21. package/cli/commands/device.ts +9 -9
  22. package/cli/commands/diagnose.ts +11 -11
  23. package/cli/commands/electron.ts +7 -7
  24. package/cli/commands/film.ts +6 -6
  25. package/cli/commands/inspect/core.ts +6 -7
  26. package/cli/commands/inspect/find.ts +2 -2
  27. package/cli/commands/inspect.ts +36 -36
  28. package/cli/commands/install-desktop.ts +8 -8
  29. package/cli/commands/login.ts +6 -6
  30. package/cli/commands/maestro-generate.ts +2 -2
  31. package/cli/commands/maestro.ts +23 -23
  32. package/cli/commands/mode.ts +4 -4
  33. package/cli/commands/no-bridge-hint.ts +9 -9
  34. package/cli/commands/perf.ts +11 -11
  35. package/cli/commands/permissions.ts +5 -5
  36. package/cli/commands/profile.ts +11 -11
  37. package/cli/commands/react.ts +15 -15
  38. package/cli/commands/record.ts +15 -15
  39. package/cli/commands/report-issue.ts +2 -2
  40. package/cli/commands/reset.ts +2 -2
  41. package/cli/commands/runtime.ts +18 -18
  42. package/cli/commands/screenshot-mode.ts +5 -5
  43. package/cli/commands/screenshot.ts +12 -12
  44. package/cli/commands/screenshots-capture.ts +7 -7
  45. package/cli/commands/screenshots.ts +6 -6
  46. package/cli/commands/serve.ts +6 -6
  47. package/cli/commands/setup.ts +13 -15
  48. package/cli/commands/skills.ts +14 -14
  49. package/cli/commands/slides.ts +19 -23
  50. package/cli/commands/state.ts +2 -2
  51. package/cli/commands/storage.ts +3 -3
  52. package/cli/commands/telemetry.ts +1 -1
  53. package/cli/commands/three-mode.ts +16 -16
  54. package/cli/commands/timeline.ts +4 -4
  55. package/cli/commands/upgrade.ts +1 -1
  56. package/cli/commands/upload.ts +11 -11
  57. package/cli/commands/version.ts +3 -5
  58. package/cli/commands/what-happened.ts +11 -11
  59. package/cli/drivers/electron.ts +3 -3
  60. package/cli/hints.ts +8 -8
  61. package/cli/recording-access.ts +1 -1
  62. package/cli/ws-bridge.ts +5 -5
  63. package/dist-cli/bin.js +5 -5
  64. package/dist-cli/chunks/{agent-XSJMAFVA.js → agent-QQ3RJNRY.js} +14 -14
  65. package/dist-cli/chunks/{agent-wrapper-NFLJ5K64.js → agent-wrapper-M6SQSMRY.js} +3 -3
  66. package/dist-cli/chunks/app-fonts-F6NDV3XC.js +4 -0
  67. package/dist-cli/chunks/{assert-ILAXIYB5.js → assert-5VB3KQNK.js} +12 -12
  68. package/dist-cli/chunks/auth-PFXODKFN.js +12 -0
  69. package/dist-cli/chunks/{beta-TDR6UKJU.js → beta-WUWYHT4F.js} +2 -2
  70. package/dist-cli/chunks/camera-V3MMTKP7.js +33 -0
  71. package/dist-cli/chunks/{chunk-INBPUR4T.js → chunk-2ANFH72P.js} +11 -11
  72. package/dist-cli/chunks/chunk-2GIA5T6B.js +74 -0
  73. package/dist-cli/chunks/{chunk-GP6QEBZA.js → chunk-4FRSEZ7Z.js} +1 -1
  74. package/dist-cli/chunks/{chunk-USGOQ3YJ.js → chunk-4GXBZHNA.js} +2 -2
  75. package/dist-cli/chunks/{chunk-R3CMECGC.js → chunk-4HESY5E7.js} +4 -4
  76. package/dist-cli/chunks/{chunk-WKT7YM5Q.js → chunk-4VJEXQGD.js} +1 -1
  77. package/dist-cli/chunks/{chunk-FE6ZHPKD.js → chunk-5LJNNHZH.js} +1 -1
  78. package/dist-cli/chunks/{chunk-I2HQB5NN.js → chunk-5QXGSTYI.js} +2 -2
  79. package/dist-cli/chunks/{chunk-FJSHIWAM.js → chunk-5SHAOQHJ.js} +2 -2
  80. package/dist-cli/chunks/{chunk-CGZWLSYD.js → chunk-5UPRBMIG.js} +1 -1
  81. package/dist-cli/chunks/{chunk-ZTM2MKNI.js → chunk-5ZEFRPCC.js} +1 -1
  82. package/dist-cli/chunks/{chunk-RTD3CPDQ.js → chunk-6ART4XVJ.js} +23 -23
  83. package/dist-cli/chunks/{chunk-MTD6IAEA.js → chunk-6CAUT2LH.js} +1 -1
  84. package/dist-cli/chunks/{chunk-ZYHCWCMM.js → chunk-7ATIH7OU.js} +1 -1
  85. package/dist-cli/chunks/{chunk-RVUGKXJD.js → chunk-7Q4QKHMA.js} +1 -1
  86. package/dist-cli/chunks/{chunk-MTNIDSOA.js → chunk-ABK2V2PR.js} +1 -1
  87. package/dist-cli/chunks/{chunk-TL4DNDDY.js → chunk-B53ILAHI.js} +2 -2
  88. package/dist-cli/chunks/{chunk-POC3QTA6.js → chunk-BSSVLFZR.js} +2 -2
  89. package/dist-cli/chunks/chunk-BVOBXTPN.js +30 -0
  90. package/dist-cli/chunks/{chunk-4KC35DMK.js → chunk-CPDEUWL5.js} +2 -2
  91. package/dist-cli/chunks/{chunk-HNQLZZJA.js → chunk-DINU267S.js} +2 -2
  92. package/dist-cli/chunks/{chunk-DCDKJ4NC.js → chunk-DQQ4CZVC.js} +2 -2
  93. package/dist-cli/chunks/{chunk-JWAY6DIH.js → chunk-EDWN2HOO.js} +18 -18
  94. package/dist-cli/chunks/{chunk-3CS4EUMG.js → chunk-EWVG4A3B.js} +2 -2
  95. package/dist-cli/chunks/{chunk-RTEJXUXN.js → chunk-F3NKCQHM.js} +6 -6
  96. package/dist-cli/chunks/{chunk-M7CBQ5I4.js → chunk-GEAGFYKP.js} +1 -1
  97. package/dist-cli/chunks/chunk-GGNH44PZ.js +5 -0
  98. package/dist-cli/chunks/{chunk-YSUIYK6B.js → chunk-HAHJJJUC.js} +2 -2
  99. package/dist-cli/chunks/chunk-HPJ5EKIZ.js +4 -0
  100. package/dist-cli/chunks/{chunk-IN2PZBQD.js → chunk-IBTHGFKE.js} +2 -2
  101. package/dist-cli/chunks/{chunk-ZZWO6Y7X.js → chunk-J6BYRRZQ.js} +2 -2
  102. package/dist-cli/chunks/{chunk-6Y3PVPTF.js → chunk-JK4OZ2TQ.js} +5 -5
  103. package/dist-cli/chunks/{chunk-PO3TOAED.js → chunk-KGQAO25M.js} +2 -2
  104. package/dist-cli/chunks/{chunk-J7XFINJG.js → chunk-L6UUIQE7.js} +2 -2
  105. package/dist-cli/chunks/{chunk-35XNGT5C.js → chunk-LXYLCETR.js} +1 -1
  106. package/dist-cli/chunks/{chunk-JWK5WD44.js → chunk-LZAL3DMP.js} +2 -2
  107. package/dist-cli/chunks/{chunk-3ZDOPKHE.js → chunk-M43UU7UG.js} +4 -4
  108. package/dist-cli/chunks/{chunk-ROPHZJ6P.js → chunk-M4LGUVBM.js} +2 -2
  109. package/dist-cli/chunks/{chunk-RELRA5VW.js → chunk-NCG6C5AH.js} +2 -2
  110. package/dist-cli/chunks/{chunk-42KDXJUD.js → chunk-NR5TSR2Y.js} +2 -2
  111. package/dist-cli/chunks/{chunk-R2UL5VFY.js → chunk-OCPWXT73.js} +3 -3
  112. package/dist-cli/chunks/{chunk-VV4MXLFR.js → chunk-ODKS6JUJ.js} +1 -1
  113. package/dist-cli/chunks/{chunk-F33DUJGG.js → chunk-R2WBREGQ.js} +1 -1
  114. package/dist-cli/chunks/chunk-RKY3ZNTA.js +5 -0
  115. package/dist-cli/chunks/{chunk-MGGRL2Z2.js → chunk-SW7BHOMO.js} +9 -9
  116. package/dist-cli/chunks/{chunk-GVKISFQ3.js → chunk-TJTLXG3R.js} +1 -1
  117. package/dist-cli/chunks/chunk-TNI4PW75.js +124 -0
  118. package/dist-cli/chunks/{chunk-CL3PREIE.js → chunk-UWEDNDND.js} +2 -2
  119. package/dist-cli/chunks/{chunk-IV36DY6M.js → chunk-WRID5SBV.js} +1 -1
  120. package/dist-cli/chunks/{chunk-42ALI64M.js → chunk-WUYI3XJ5.js} +2 -2
  121. package/dist-cli/chunks/{chunk-6VN5ULGQ.js → chunk-X7MHCEGG.js} +2 -2
  122. package/dist-cli/chunks/chunk-XIQFYLWD.js +15 -0
  123. package/dist-cli/chunks/{chunk-LCVUJCRJ.js → chunk-ZUK5ZQU7.js} +1 -1
  124. package/dist-cli/chunks/{cleanup-X6ZRPFDV.js → cleanup-6WBS3MUO.js} +10 -10
  125. package/dist-cli/chunks/cli-version-HUQCDGMA.js +4 -0
  126. package/dist-cli/chunks/{compat-VRXJ5J56.js → compat-2WOPKJYK.js} +9 -9
  127. package/dist-cli/chunks/{config-LHPPE4EP.js → config-FPD7WUYB.js} +5 -5
  128. package/dist-cli/chunks/{control-TVTNGSSF.js → control-B3XNER7I.js} +2 -2
  129. package/dist-cli/chunks/daemon-T4D4X2P5.js +4 -0
  130. package/dist-cli/chunks/{debug-EUHBBPGM.js → debug-LKV5CEAV.js} +17 -17
  131. package/dist-cli/chunks/desktop-EMDPOYQT.js +31 -0
  132. package/dist-cli/chunks/detox-4J4UTZE7.js +52 -0
  133. package/dist-cli/chunks/{device-PONITUZJ.js → device-PMZ7RPXQ.js} +11 -11
  134. package/dist-cli/chunks/{diagnose-2PN4K4L2.js → diagnose-MLEP727D.js} +12 -12
  135. package/dist-cli/chunks/{disk-cleanup-U2PQLOEW.js → disk-cleanup-CVEDIPEE.js} +2 -2
  136. package/dist-cli/chunks/drivers-NTUKJEL6.js +4 -0
  137. package/dist-cli/chunks/{film-XGZCFTQL.js → film-4RNECABF.js} +9 -9
  138. package/dist-cli/chunks/flow-5IOCAHVO.js +4 -0
  139. package/dist-cli/chunks/help-NUJUYEWP.js +4 -0
  140. package/dist-cli/chunks/{hidden-runtime-alias-I4MYF5CO.js → hidden-runtime-alias-YIF25W4F.js} +2 -2
  141. package/dist-cli/chunks/{home-paths-YRAPZ5LE.js → home-paths-WNJCCCCZ.js} +2 -2
  142. package/dist-cli/chunks/inspect-MFEIYUCN.js +4 -0
  143. package/dist-cli/chunks/install-desktop-NB65KI4D.js +4 -0
  144. package/dist-cli/chunks/{login-ZMAIAQ6F.js → login-VEHHGN42.js} +6 -6
  145. package/dist-cli/chunks/{logout-UQZ5JBJU.js → logout-VE7PNXL2.js} +2 -2
  146. package/dist-cli/chunks/{maestro-BQYKDUC4.js → maestro-ZXHTDEOI.js} +25 -25
  147. package/dist-cli/chunks/{maestro-generate-VQYMMQJ5.js → maestro-generate-TK33E2Z6.js} +3 -3
  148. package/dist-cli/chunks/mode-ZDKJ56NT.js +26 -0
  149. package/dist-cli/chunks/{optional-demo-registry-DUWHCLGD.js → optional-demo-registry-GBZ3WVDW.js} +2 -2
  150. package/dist-cli/chunks/{perf-7RAU7WRZ.js → perf-JXNZOUKW.js} +28 -28
  151. package/dist-cli/chunks/permissions-WQ62PW7Y.js +13 -0
  152. package/dist-cli/chunks/record-4S3ZMDIO.js +72 -0
  153. package/dist-cli/chunks/{report-issue-P376KFFU.js → report-issue-KKBADTWO.js} +4 -4
  154. package/dist-cli/chunks/reset-H5XIISJE.js +4 -0
  155. package/dist-cli/chunks/runtime-FK7EEMWA.js +4 -0
  156. package/dist-cli/chunks/{screenshot-command-NE7BKTQ2.js → screenshot-command-42U5MVQL.js} +34 -34
  157. package/dist-cli/chunks/{screenshot-layers-UE4R64PZ.js → screenshot-layers-4G42AHOX.js} +2 -2
  158. package/dist-cli/chunks/{screenshots-capture-ULXPLXMC.js → screenshots-capture-HMQ2OO3I.js} +11 -11
  159. package/dist-cli/chunks/{serve-P7BT4XHR.js → serve-S4V5EDW2.js} +16 -16
  160. package/dist-cli/chunks/setup-T43V7GA6.js +32 -0
  161. package/dist-cli/chunks/{skills-NTRYKJSF.js → skills-O426K26J.js} +16 -16
  162. package/dist-cli/chunks/{state-4D5YAM47.js → state-ZEEPDKJG.js} +5 -5
  163. package/dist-cli/chunks/storage-4GQLOFGG.js +37 -0
  164. package/dist-cli/chunks/store-RFMSNWLJ.js +4 -0
  165. package/dist-cli/chunks/telemetry-NFAAPSMN.js +4 -0
  166. package/dist-cli/chunks/{timeline-GZNFGD3Q.js → timeline-ONCYX7KW.js} +6 -6
  167. package/dist-cli/chunks/{upgrade-A46D6PEY.js → upgrade-A36T52AM.js} +2 -2
  168. package/dist-cli/chunks/upload-36O32DII.js +4 -0
  169. package/dist-cli/chunks/version-67HA253N.js +6 -0
  170. package/dist-cli/chunks/{web-H2IXO5SC.js → web-PWXQHQIE.js} +2 -2
  171. package/dist-cli/chunks/{what-happened-Z7UII5GH.js → what-happened-WNXE622R.js} +16 -16
  172. package/dist-lib/agent-daemon-client.cjs +5 -5
  173. package/dist-lib/agent-events.cjs +1 -1
  174. package/dist-lib/agent-identity.cjs +1 -1
  175. package/dist-lib/agent-sessions.cjs +4 -4
  176. package/dist-lib/attached-projects.cjs +1 -1
  177. package/dist-lib/auth/shared-session.cjs +1 -1
  178. package/dist-lib/backend-origin.cjs +1 -1
  179. package/dist-lib/beta.cjs +1 -1
  180. package/dist-lib/beta.mjs +1 -1
  181. package/dist-lib/bridge-constants.cjs +1 -1
  182. package/dist-lib/bridge-contract.cjs +1 -1
  183. package/dist-lib/cli-constants.cjs +1 -1
  184. package/dist-lib/config.cjs +1 -1
  185. package/dist-lib/detox/index.cjs +1 -1
  186. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  187. package/dist-lib/home-paths.cjs +1 -1
  188. package/dist-lib/host/bridge-host.cjs +7 -7
  189. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  190. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  191. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  192. package/dist-lib/host/websocket-proxy.cjs +1 -1
  193. package/dist-lib/index.cjs +248 -98
  194. package/dist-lib/jump-to-source-babel.cjs +1 -1
  195. package/dist-lib/menu.cjs +2 -2
  196. package/dist-lib/menu.mjs +2 -2
  197. package/dist-lib/metro-host-modules/react-dom.js +6 -0
  198. package/dist-lib/metro-host-modules/react-native-web.js +6 -0
  199. package/dist-lib/metro-host-modules/react-native.js +6 -0
  200. package/dist-lib/metro-host-modules/react.js +6 -0
  201. package/dist-lib/metro-host-modules/react__jsx-dev-runtime.js +6 -0
  202. package/dist-lib/metro-host-modules/react__jsx-runtime.js +6 -0
  203. package/dist-lib/metro-production-bundle.cjs +72 -0
  204. package/dist-lib/metro-production-bundle.mjs +44 -0
  205. package/dist-lib/metro.cjs +152 -8
  206. package/dist-lib/profiles.cjs +1 -1
  207. package/dist-lib/public-brand.cjs +2 -2
  208. package/dist-lib/react-native-host-modules.cjs +50 -0
  209. package/dist-lib/render-mode.cjs +1 -1
  210. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  211. package/dist-lib/sdk.cjs +6 -7
  212. package/dist-lib/sdk.mjs +6 -7
  213. package/dist-lib/skills.cjs +71 -77
  214. package/dist-lib/vite.cjs +104 -85
  215. package/package.json +15 -2
  216. package/scripts/preuninstall.cjs +1 -1
  217. package/skills/contrast/SKILL.md +67 -75
  218. package/skills/rnx-debug/SKILL.md +84 -84
  219. package/skills/rnx-perf/SKILL.md +8 -8
  220. package/skills/rnx-setup/SKILL.md +54 -54
  221. package/skills/rnx-test/SKILL.md +35 -35
  222. package/skills/rnx-visual/SKILL.md +18 -18
  223. package/src/agent-daemon-client.ts +2 -2
  224. package/src/agent-sessions.ts +2 -2
  225. package/src/connect.ts +6 -6
  226. package/src/disk-cleanup.ts +1 -1
  227. package/src/home-paths.ts +1 -1
  228. package/src/host/bridge-host.ts +6 -6
  229. package/src/index.ts +1 -1
  230. package/src/metro-host-modules/react-dom.js +6 -0
  231. package/src/metro-host-modules/react-native-web.js +6 -0
  232. package/src/metro-host-modules/react-native.js +6 -0
  233. package/src/metro-host-modules/react.js +6 -0
  234. package/src/metro-host-modules/react__jsx-dev-runtime.js +6 -0
  235. package/src/metro-host-modules/react__jsx-runtime.js +6 -0
  236. package/src/metro-plugin.ts +249 -10
  237. package/src/metro-production-bundle.ts +51 -0
  238. package/src/public-brand.ts +1 -1
  239. package/src/react-native-host-modules.ts +25 -0
  240. package/src/runtime-assets.ts +1 -1
  241. package/src/sim-client.ts +1 -1
  242. package/src/vite-plugin-one.ts +171 -145
  243. package/dist-cli/chunks/app-fonts-L3UXFYVE.js +0 -4
  244. package/dist-cli/chunks/auth-ISX2EUQL.js +0 -12
  245. package/dist-cli/chunks/camera-4SWTNJUA.js +0 -33
  246. package/dist-cli/chunks/chunk-BRHZEZKN.js +0 -124
  247. package/dist-cli/chunks/chunk-EJPYPJWP.js +0 -5
  248. package/dist-cli/chunks/chunk-KWCD5MOK.js +0 -15
  249. package/dist-cli/chunks/chunk-MJ7QGY7Z.js +0 -4
  250. package/dist-cli/chunks/chunk-RSA4XWHN.js +0 -5
  251. package/dist-cli/chunks/chunk-S3EIOAWZ.js +0 -74
  252. package/dist-cli/chunks/chunk-TYANJQLO.js +0 -30
  253. package/dist-cli/chunks/cli-version-NZUSWKZR.js +0 -4
  254. package/dist-cli/chunks/daemon-XUEC47EC.js +0 -4
  255. package/dist-cli/chunks/desktop-LLHMP4A3.js +0 -31
  256. package/dist-cli/chunks/detox-QLNWLXA4.js +0 -52
  257. package/dist-cli/chunks/drivers-7IU37M2E.js +0 -4
  258. package/dist-cli/chunks/flow-NZZLR4BN.js +0 -4
  259. package/dist-cli/chunks/help-D7URIJRD.js +0 -4
  260. package/dist-cli/chunks/inspect-TJYWKY56.js +0 -4
  261. package/dist-cli/chunks/install-desktop-LD3W5RS7.js +0 -4
  262. package/dist-cli/chunks/mode-ZQ6H7KWM.js +0 -26
  263. package/dist-cli/chunks/permissions-DRZ3HCFL.js +0 -13
  264. package/dist-cli/chunks/record-J5JAYW4Y.js +0 -72
  265. package/dist-cli/chunks/reset-KXYRDEFU.js +0 -4
  266. package/dist-cli/chunks/runtime-66CEPOG6.js +0 -4
  267. package/dist-cli/chunks/setup-QO5KZAX3.js +0 -32
  268. package/dist-cli/chunks/storage-X2K2MDPX.js +0 -37
  269. package/dist-cli/chunks/store-TUJPIRTT.js +0 -4
  270. package/dist-cli/chunks/telemetry-CF5DVEKI.js +0 -4
  271. package/dist-cli/chunks/upload-UIQJIBEZ.js +0 -4
  272. package/dist-cli/chunks/version-CMBB3FXL.js +0 -6
@@ -1,74 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as H,d as V}from"./chunk-RELRA5VW.js";import{c as G}from"./chunk-HNQLZZJA.js";import{M,O as j,g as O,j as A,s as U,t as D,u as F}from"./chunk-GP6QEBZA.js";import{a as Y}from"./chunk-IN2PZBQD.js";import{a as k}from"./chunk-CL3PREIE.js";import{execFileSync as ee,spawnSync as c}from"child_process";import{existsSync as s,mkdirSync as P,readFileSync as ue,realpathSync as pe,rmSync as h,writeFileSync as X}from"fs";import{homedir as v}from"os";import{basename as de,dirname as C,resolve as u,sep as Q}from"path";import{execFileSync as oe}from"child_process";import{chmodSync as ne,mkdirSync as I,rmSync as se,writeFileSync as N}from"fs";import{dirname as T}from"path";var ie="dev.sootsim.daemon",q="SootSim Daemon",W="0.1.36";function K(e,t,r){let n=D(),o=F(),a=T(T(o)),l=T(o),p=`${a}/Resources`;se(n,{recursive:!0,force:!0}),I(U(),{recursive:!0}),I(l,{recursive:!0}),I(p,{recursive:!0}),N(`${a}/Info.plist`,ae()),N(`${a}/PkgInfo`,"APPL????"),N(o,ce(e,t,r)),ne(o,493);try{oe("codesign",["--force","--sign","-","--deep",n],{stdio:"pipe"})}catch(i){let f=i instanceof Error?i.message:String(i);console.warn(` warning: ad-hoc codesign of ${n} failed: ${f}
5
- the daemon will still run, but Login Items may show a generic name.`)}return{bundlePath:n,launcherPath:o}}function ae(){return`<?xml version="1.0" encoding="UTF-8"?>
6
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
7
- <plist version="1.0">
8
- <dict>
9
- <key>CFBundleDevelopmentRegion</key><string>en</string>
10
- <key>CFBundleDisplayName</key><string>${q}</string>
11
- <key>CFBundleExecutable</key><string>sootsim-daemon</string>
12
- <key>CFBundleIdentifier</key><string>${ie}</string>
13
- <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
14
- <key>CFBundleName</key><string>${q}</string>
15
- <key>CFBundlePackageType</key><string>APPL</string>
16
- <key>CFBundleShortVersionString</key><string>${W}</string>
17
- <key>CFBundleSignature</key><string>????</string>
18
- <key>CFBundleVersion</key><string>${W}</string>
19
- <key>LSBackgroundOnly</key><true/>
20
- <key>LSUIElement</key><true/>
21
- <key>LSMinimumSystemVersion</key><string>13.0</string>
22
- <key>NSHumanReadableCopyright</key><string>Tamagui LLC</string>
23
- </dict>
24
- </plist>
25
- `}function ce(e,t,r){let o=[e.executable,...e.prefixArgs,"serve","--quiet","--port",String(t)].map(_).join(" "),a=_(r.stdout),l=_(r.stderr);return`#!/bin/sh
26
- # SootSim Daemon launcher \u2014 auto-generated by 'rnxsim setup'.
27
- # launchd spawns this; we exec the real rnxsim invocation in place so
28
- # launchd tracks the daemon process, not the shell wrapper.
29
- #
30
- # stdout: ${r.stdout}
31
- # stderr: ${r.stderr}
32
- # a missing or broken executable can make launchd retry forever. truncate a
33
- # retry log before it passes 10 MiB so that failure stays bounded on disk.
34
- for log_path in ${a} ${l}; do
35
- if [ -f "$log_path" ]; then
36
- log_bytes=$(wc -c < "$log_path" 2>/dev/null || echo 0)
37
- if [ "$log_bytes" -gt 10485760 ]; then
38
- : > "$log_path"
39
- fi
40
- fi
41
- done
42
- exec ${o}
43
- `}function _(e){return`'${e.replace(/'/g,"'\\''")}'`}var te=60,y="dev.sootsim.daemon",B="dev.sootsim.server",g="sootsim-daemon",m=u(v(),"Library/Logs/sootsim"),L=u(v(),".local/state/sootsim");async function Xe(e,t={}){let[r,...n]=e,o=t.port??7668;if(!r||r==="--help"||r==="-h"){z();return}new Set(["install","uninstall","restart","start","stop","logs"]).has(r)&&H({event:`daemon_${r}`,properties:{platform:process.platform,subsource:"daemon"}});try{switch(r){case"install":return await we({port:o,force:n.includes("--force")});case"uninstall":return await Le();case"status":return await Pe();case"restart":return await Ee();case"start":return await Ae();case"stop":return await Ie();case"logs":return await Ne(n);default:console.error(` unknown daemon subcommand: ${r}`),z(),process.exit(1)}}finally{await V()}}function z(){G("daemon")}function ge(){let e=me();if(e)return e;let t=ye();return{executable:process.execPath,prefixArgs:[t]}}function me(){if(!fe())return null;let e=he();if(!e)return null;let t=Y(),r=t==="0.0.0"?k.packageName:`${k.packageName}@${t}`;return{executable:process.execPath,prefixArgs:[e,"exec","--yes","--package",r,"--",k.commandName]}}function fe(){let e=process.argv[1];return process.env.npm_command==="exec"?!0:e?E(e).includes(`${Q}_npx${Q}`):!1}function he(){try{let t=ee("which",["npm"],{encoding:"utf8"}).trim();if(t&&s(t))return J(t)}catch{}let e=process.env.npm_execpath;return e&&s(e)?J(e):null}function J(e){let t=E(e);if(de(t)==="npx-cli.js"){let r=u(C(t),"npm-cli.js");if(s(r))return r}return t}function ye(){try{let t=ee("which",[k.commandName],{encoding:"utf8"}).trim();if(t&&s(t))return E(t)}catch{}let e=process.argv[1];if(e&&s(e))return E(e);throw new Error(`could not locate the ${k.commandName} binary`)}function E(e){try{return pe(e)}catch{return e}}function $e(e,t){P(m,{recursive:!0});let r=u(m,"bridge.out.log"),n=u(m,"bridge.err.log"),{launcherPath:o}=K(e,t,{stdout:r,stderr:n}),a=` <string>${xe(o)}</string>`;return`<?xml version="1.0" encoding="UTF-8"?>
44
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
45
- <plist version="1.0">
46
- <dict>
47
- <key>Label</key><string>${y}</string>
48
- <key>ProgramArguments</key>
49
- <array>
50
- ${a}
51
- </array>
52
- <key>RunAtLoad</key><true/>
53
- <key>KeepAlive</key><true/>
54
- <key>ThrottleInterval</key><integer>${te}</integer>
55
- <key>ProcessType</key><string>Background</string>
56
- <key>StandardOutPath</key><string>${r}</string>
57
- <key>StandardErrorPath</key><string>${n}</string>
58
- </dict>
59
- </plist>
60
- `}function be(e,t){return P(L,{recursive:!0}),`[Unit]
61
- Description=rnx bridge daemon
62
- After=default.target
63
-
64
- [Service]
65
- Type=simple
66
- ExecStart=${[e.executable,...e.prefixArgs].map(ke).join(" ")} serve --quiet --port ${t}
67
- Restart=always
68
- RestartSec=${te}
69
-
70
- [Install]
71
- WantedBy=default.target
72
- `}function xe(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function ke(e){return/[^\w@%+=:,./-]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`:e}function $(){return u(v(),"Library/LaunchAgents",`${y}.plist`)}function ve(e=v()){return u(e,"Library/LaunchAgents",`${B}.plist`)}function b(){return u(v(),".config/systemd/user",`${g}.service`)}function Qe(){if(A())return{supported:!1,installed:!1};if(process.platform==="darwin"){let e=$();return{supported:!0,installed:s(e),path:e}}if(process.platform==="linux"){let e=b();return{supported:!0,installed:s(e),path:e}}return{supported:!1,installed:!1}}async function we({port:e,force:t}){if(A())throw new Error("background daemon setup is unavailable in this environment");let r=ge();if(console.log(` binary: ${[r.executable,...r.prefixArgs].join(" ")}`),console.log(` port: ${e}`),process.platform==="darwin"){re().missing||console.log(` removed legacy ${B} service`);let o=$();if(s(o)&&!t){console.log(` already installed at ${o}`),console.log(" pass --force to overwrite, or use 'rnxsim daemon restart' to reload");return}P(C(o),{recursive:!0}),X(o,$e(r,e)),console.log(` wrote ${o}`);let a=`gui/${process.getuid()}`,l=`${a}/${y}`,p=()=>{let d=c("launchctl",["bootstrap",a,o],{stdio:"pipe",encoding:"utf8"}),S=(d.stderr||d.stdout||"").trim();if(d.status!==0)return{ok:!1,reason:`bootstrap exit ${d.status}${S?`: ${S}`:""}`};let R=c("launchctl",["print",l],{encoding:"utf8"});return R.status!==0?{ok:!1,reason:`bootstrap returned 0 but service not registered (print exit ${R.status})`}:{ok:!0}},i=p();if(!i.ok){let d=i.reason;if(c("launchctl",["bootout",l],{stdio:"ignore"}),i=p(),!i.ok)throw new Error(`launchctl bootstrap failed: ${i.reason}`+(d!==i.reason?` (initial: ${d})`:"")+" \u2014 try `rnxsim daemon uninstall` then retry, or reboot if launchd state is stuck.")}let f=Date.now()+4e3,x,w;for(;Date.now()<f;){let d=c("launchctl",["print",l],{encoding:"utf8"});if(d.status===0&&(x=d.stdout?.match(/state\s*=\s*(\w+)/)?.[1],w=d.stdout?.match(/pid\s*=\s*(\d+)/)?.[1],x==="running"||w))break;await new Promise(S=>setTimeout(S,150))}if(x!=="running"&&!w)throw new Error(`daemon registered but did not reach running state within 4s (last state: ${x||"unknown"}). check ${u(m,"bridge.err.log")} \u2014 typically a stale runtime or a port already bound by another process.`);console.log(` registered (state: ${x||"unknown"}${w?`, pid ${w}`:""}, log: ${u(m,"bridge.err.log")})`);return}if(process.platform==="linux"){let n=b();if(s(n)&&!t){console.log(` already installed at ${n}`),console.log(" pass --force to overwrite, or use 'rnxsim daemon restart' to reload");return}P(C(n),{recursive:!0}),X(n,be(r,e)),console.log(` wrote ${n}`);let o=c("systemctl",["--user","daemon-reload"],{stdio:"pipe",encoding:"utf8"});if(o.status!==0){let i=(o.stderr||o.stdout||"").trim();throw new Error(`systemctl daemon-reload failed${i?`: ${i}`:""}`)}let a=c("systemctl",["--user","enable","--now",g],{stdio:"pipe",encoding:"utf8"});if(a.status!==0){let i=(a.stderr||a.stdout||"").trim();throw new Error(`systemctl enable --now failed${i?`: ${i}`:""} \u2014 try \`rnxsim daemon uninstall\` then retry.`)}let p=(c("systemctl",["--user","is-active",g],{encoding:"utf8"}).stdout||"").trim()||"unknown";console.log(` registered (state: ${p}, journalctl --user -u ${g} to tail logs)`);try{let i=process.env.USER||process.env.LOGNAME||"";if(i){let f=c("loginctl",["show-user",i,"--property=Linger","--value"],{encoding:"utf8"});!((f.stdout||"").trim().toLowerCase()==="yes")&&f.status===0&&console.log(` note: linger is not enabled for "${i}". the daemon will exit at logout.
73
- enable persistence with: sudo loginctl enable-linger ${i}`)}}catch{}return}console.error(` background daemon is not supported on ${process.platform}`),console.error(" run 'rnxsim serve' in a persistent shell instead"),process.exit(1)}function re(e={}){let t=e.userHome??v(),r=ve(t),n=u(t,"Library/Logs/sootsim"),o=[];if(s(r)){let a=`${e.launchTarget??`gui/${process.getuid?.()??0}`}/${B}`;(e.bootout??(p=>{c("launchctl",["bootout",p],{stdio:"ignore"})}))(a),h(r,{force:!0}),o.push(r)}for(let a of["server.err.log","server.out.log"]){let l=u(n,a);s(l)&&(h(l,{force:!0}),o.push(l))}return{removed:o,missing:o.length===0}}function Se(){let e=[];if(process.platform==="darwin"){let t=re();e.push(...t.removed);let r=$();s(r)&&(c("launchctl",["bootout",`gui/${process.getuid()}/${y}`],{stdio:"ignore"}),h(r,{force:!0}),e.push(r));let n=D();return s(n)&&(h(n,{recursive:!0,force:!0}),e.push(n)),s(m)&&(h(m,{recursive:!0,force:!0}),e.push(m)),{removed:e,missing:e.length===0}}if(process.platform==="linux"){let t=b();return s(t)&&(c("systemctl",["--user","disable","--now",g],{stdio:"ignore"}),h(t,{force:!0}),c("systemctl",["--user","daemon-reload"],{stdio:"ignore"}),c("systemctl",["--user","reset-failed",g],{stdio:"ignore"}),e.push(t)),s(L)&&(h(L,{recursive:!0,force:!0}),e.push(L)),{removed:e,missing:e.length===0}}return{removed:e,missing:!0}}function De(){let e=[],t=O();return s(t)&&(h(t,{recursive:!0,force:!0}),e.push(t)),{removed:e,missing:e.length===0}}async function Le(){let e=Se();for(let r of e.removed)console.log(` removed ${r}`);let t=De();for(let r of t.removed)console.log(` removed ${r}`);e.missing&&t.missing&&console.log(" not installed")}function Z(){let e=M();if(j(e)){console.log(` bridge: responding on port ${e.bridgePort} (pid ${e.pid})`);return}console.log(e?" bridge: NOT responding \u2014 stale lockfile; check `rnxsim daemon logs`":" bridge: NOT responding \u2014 no lockfile; check `rnxsim daemon logs`")}async function Pe(){if(process.platform==="darwin"){let e=$();if(!s(e)){console.log(" installed: no");return}console.log(` installed: yes (${e})`);let t=Te(e);t&&console.log(` binary: ${t}`);let r=c("launchctl",["print",`gui/${process.getuid()}/${y}`],{encoding:"utf8"});if(r.status===0){let n=r.stdout.match(/state\s*=\s*(\w+)/)?.[1],o=r.stdout.match(/pid\s*=\s*(\d+)/)?.[1];console.log(` state: ${n||"unknown"}${o?` (pid ${o})`:""}`)}else console.log(" state: not running");Z();return}if(process.platform==="linux"){let e=b();if(!s(e)){console.log(" installed: no");return}console.log(` installed: yes (${e})`);let t=c("systemctl",["--user","is-active",g],{encoding:"utf8"});console.log(` state: ${t.stdout.trim()||"unknown"}`),Z();return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function Ee(){if(process.platform==="darwin"){let e=$();s(e)||(console.error(" daemon not registered \u2014 run `rnxsim setup`"),process.exit(1));let t=c("launchctl",["kickstart","-k",`gui/${process.getuid()}/${y}`],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` kickstart failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}if(process.platform==="linux"){let e=b();s(e)||(console.error(" daemon not registered \u2014 run `rnxsim setup`"),process.exit(1));let t=c("systemctl",["--user","restart",g],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` restart failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function Ae(){if(process.platform==="darwin"){let e=$();s(e)||(console.error(" daemon not registered \u2014 run `rnxsim setup`"),process.exit(1));let t=c("launchctl",["kickstart",`gui/${process.getuid()}/${y}`],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` start failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" started");return}if(process.platform==="linux"){let e=b();s(e)||(console.error(" daemon not registered \u2014 run `rnxsim setup`"),process.exit(1));let t=c("systemctl",["--user","start",g],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` start failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" started");return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function Ie(){if(process.platform==="darwin"){let e=$();s(e)||(console.error(" daemon not registered \u2014 nothing to stop"),process.exit(1));let t=c("launchctl",["bootout",`gui/${process.getuid()}/${y}`],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` stop failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" stopped");return}if(process.platform==="linux"){let e=b();s(e)||(console.error(" daemon not registered \u2014 nothing to stop"),process.exit(1));let t=c("systemctl",["--user","stop",g],{stdio:"pipe",encoding:"utf8"});t.status!==0&&(console.error(` stop failed: ${t.stderr?.trim()}`),process.exit(1)),console.log(" stopped");return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function Ne(e){let t=e.find(o=>/^-n\d+$|^--lines=\d+$|^\d+$/.test(o)),r=t?Number(t.replace(/\D/g,"")):200,n=e.includes("-f")||e.includes("--follow");if(process.platform==="darwin"){let o=u(m,"bridge.out.log"),a=u(m,"bridge.err.log"),l=[o,a].filter(i=>s(i));l.length===0&&(console.error(` no daemon logs yet at ${m} \u2014 run \`rnxsim setup\` to install the daemon`),process.exit(1));let p=n?["-n",String(r),"-F",...l]:["-n",String(r),...l];c("tail",p,{stdio:"inherit"});return}if(process.platform==="linux"){let o=`${g}.service`,a=["--user","-u",o,"-n",String(r),"--no-pager"],l=c("journalctl",n?[...a,"-f"]:a,{encoding:"utf8",stdio:n?"inherit":"pipe"});if(n)return;let p=`${l.stdout||""}${l.stderr||""}`,i=/insufficient permissions|No journal files were opened/i.test(p);if(l.status===0&&!i){process.stdout.write(l.stdout||"");return}let f=c("journalctl",[`_SYSTEMD_USER_UNIT=${o}`,"-n",String(r),"--no-pager"],{encoding:"utf8"});if(f.status===0&&(f.stdout||"").trim()){process.stdout.write(f.stdout);return}console.error(` could not read --user journal for ${o} (this user isn't in the systemd-journal group yet).
74
- run: sudo journalctl _SYSTEMD_USER_UNIT=${o} -n ${r} --no-pager`),process.exit(1)}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}function Te(e){try{return ue(e,"utf8").match(/<array>\s*<string>([^<]+)<\/string>/)?.[1]||null}catch{return null}}export{Xe as a,Qe as b,we as c,re as d,Se as e,De as f};
@@ -1,30 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{b as $}from"./chunk-YSUIYK6B.js";import{b as y,c as R,d as m,e as w,f as a}from"./chunk-3CS4EUMG.js";import{n as x}from"./chunk-RTEJXUXN.js";import{I as g,J as u,K as d,Q as h,l as p}from"./chunk-GP6QEBZA.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
- `)}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
- rnxsim runtime \u2014 manage engine runtimes under ~/.sootsim/runtimes/
7
-
8
- usage:
9
- rnxsim runtime install [version] install a version (default: channel latest)
10
- rnxsim runtime list show installed + available versions
11
- rnxsim runtime use <version> switch active runtime
12
- rnxsim runtime remove <version> delete an installed runtime
13
- rnxsim runtime which print active runtime version
14
- rnxsim runtime notes print repo or default engine release notes
15
-
16
- flags:
17
- --channel <name> channel to resolve 'latest' from (default: stable)
18
- --force reinstall even if the version is already on disk
19
- --set-active=false do not switch active runtime after install
20
-
21
- environment:
22
- SOOTSIM_CDN_ORIGIN override the CDN base URL (default: ${R})
23
-
24
- examples:
25
- rnxsim runtime install
26
- rnxsim runtime install 1.2.3
27
- rnxsim runtime install --channel beta
28
- rnxsim runtime use 1.2.3
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-YRAPZ5LE.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,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-IN2PZBQD.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.js";export{a as getCliVersion};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-S3EIOAWZ.js";import"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import"./chunk-HNQLZZJA.js";import"./chunk-USGOQ3YJ.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import"./chunk-GP6QEBZA.js";import"./chunk-IN2PZBQD.js";import"./chunk-CL3PREIE.js";import"./chunk-VV4MXLFR.js";import"./chunk-MTNIDSOA.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,e as teardownDaemonService,d as teardownLegacyMacDaemonArtifacts,f as teardownSootsimHome};
@@ -1,31 +0,0 @@
1
- /*! rnx v0.1.335 | (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 as d}from"./chunk-MGGRL2Z2.js";import"./chunk-MTD6IAEA.js";import{a as u}from"./chunk-MJ7QGY7Z.js";import{h as m}from"./chunk-KWCD5MOK.js";import"./chunk-4KC35DMK.js";import"./chunk-ZTM2MKNI.js";import"./chunk-YSUIYK6B.js";import{a}from"./chunk-PO3TOAED.js";import{a as p}from"./chunk-IV36DY6M.js";import{c}from"./chunk-42ALI64M.js";import"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-DCDKJ4NC.js";import{a as l}from"./chunk-CGZWLSYD.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-ZYHCWCMM.js";import"./chunk-M7CBQ5I4.js";import"./chunk-3CS4EUMG.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.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
- rnxsim desktop \u2014 launch the desktop companion
6
-
7
- usage:
8
- rnxsim desktop [options]
9
-
10
- options:
11
- --port <number> connect to running dev server on this port
12
- --profile <id> launch with an isolated persistent storage profile
13
- --ephemeral launch with a temporary isolated storage profile
14
-
15
- examples:
16
- rnxsim desktop
17
- rnxsim desktop --port 5173
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-LD3W5RS7.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
- rnxsim desktop \u2014 launch or install the desktop companion
21
-
22
- usage:
23
- rnxsim desktop [options]
24
- rnxsim desktop install [options]
25
-
26
- options:
27
- --port <number> connect to a running dev server on this port
28
- --profile <id> launch with an isolated persistent storage profile
29
- --ephemeral launch with a temporary isolated storage profile
30
- -y, --yes install without prompting
31
- `)}async function T(e,t){if(e.includes("--help")||e.includes("-h")){w();return}let o=e.find(n=>!n.startsWith("-"));if(o==="install"){let n=e.indexOf(o);await d([...e.slice(0,n),...e.slice(n+1)]);return}await f(e,t)}export{T as runDesktop};
@@ -1,52 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{f as N}from"./chunk-R3CMECGC.js";import"./chunk-FE6ZHPKD.js";import"./chunk-R2UL5VFY.js";import"./chunk-JWAY6DIH.js";import"./chunk-MJ7QGY7Z.js";import"./chunk-RVUGKXJD.js";import"./chunk-I2HQB5NN.js";import"./chunk-KWCD5MOK.js";import"./chunk-4KC35DMK.js";import"./chunk-ZTM2MKNI.js";import"./chunk-YSUIYK6B.js";import"./chunk-PO3TOAED.js";import"./chunk-IV36DY6M.js";import"./chunk-42ALI64M.js";import{c as F,d as $,e as E}from"./chunk-INBPUR4T.js";import{a as M}from"./chunk-FJSHIWAM.js";import"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-DCDKJ4NC.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-ZYHCWCMM.js";import"./chunk-WKT7YM5Q.js";import"./chunk-J7XFINJG.js";import"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import"./chunk-M7CBQ5I4.js";import"./chunk-3CS4EUMG.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import"./chunk-GP6QEBZA.js";import{a as R}from"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.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
- rnxsim detox \u2014 run detox-style tests against an rnx shell
6
-
7
- usage:
8
- rnxsim detox [testFiles...] run all tests under e2e/, test/e2e/, or detox/
9
- rnxsim detox --config <path> use a specific jest config
10
- rnxsim detox init scaffold sootsim-detox.config.cjs + sample test
11
- rnxsim detox --watch jest watch mode
12
- rnxsim detox --headed keep the rnx shell window visible
13
- rnxsim detox -t <pattern> pass a jest --testNamePattern
14
- rnxsim detox --no-launch skip auto-launching an rnx shell
15
-
16
- rnxsim detox auto-launches an rnx shell if none is running on the
17
- expected port. disable with --no-launch if you're managing the shell yourself.
18
- `;async function ae(t,o={}){if((t.includes("--help")||t.includes("-h"))&&(console.log(z),process.exit(0)),t[0]==="init")return Y();let i=e=>{let s=t.indexOf(e);return s>=0?t[s+1]:void 0},n=e=>t.includes(e),u=n("--watch"),m=n("--headed"),d=n("--no-launch"),T=i("--config"),f=o.port||Number(process.env.SOOTSIM_PORT)||5173,A=t.filter((e,s)=>{if(e.startsWith("--")||e==="-t"||e==="-h")return!1;let r=t[s-1];return!(r==="--config"||r==="-t"||r==="--testNamePattern"||r==="--grep"||r==="--maxWorkers"||r==="--shard")}),L=t.flatMap((e,s)=>e==="--runInBand"||e.startsWith("--maxWorkers=")||e.startsWith("--shard=")?[e]:(e==="--maxWorkers"||e==="--shard")&&t[s+1]?[e,t[s+1]]:[]),O=["e2e","test/e2e","detox"],c=process.env.SOOTSIM_TEST_DIR?a(process.cwd(),process.env.SOOTSIM_TEST_DIR):null;if(!c)for(let e of O){let s=a(process.cwd(),e);if(g(s)){c=s;break}}c||(console.error(` error: no detox tests found. expected one of: ${O.join(", ")}
19
- run 'rnxsim detox init' to scaffold a starter suite.`),process.exit(1)),d||await X(f);let l=["jest"],x=T||Q(["sootsim-detox.config.cjs","jest.config.cjs","jest.config.js"]),p=null;if(x)l.push("--config",a(process.cwd(),x));else{let e=a(V(),"jest-preset.cjs");p=J(k(),`sootsim-detox-${process.pid}.config.cjs`);let s={rootDir:c,roots:["<rootDir>"],testMatch:["<rootDir>/**/*.test.ts","<rootDir>/**/*.test.js"]};y(p,`module.exports = { ...require(${JSON.stringify(e)}), ...${JSON.stringify(s)} }
20
- `),l.push("--config",p)}u&&l.push("--watch");let I=i("-t")||i("--testNamePattern")||i("--grep");I&&l.push("-t",I);let j=M(),b=!u&&F({uploadedShare:!1,auth:j}),h=process.env.SOOTSIM_JEST_OUTPUT_FILE||null;process.env.SOOTSIM_JEST_JSON==="1"&&l.push("--json"),process.env.SOOTSIM_JEST_OUTPUT_FILE?l.push("--outputFile",process.env.SOOTSIM_JEST_OUTPUT_FILE):b&&(h=J(k(),`sootsim-detox-results-${process.pid}.json`),l.push("--json","--outputFile",h)),l.push(...L),l.push(...A),console.log(" rnxsim detox"),console.log(` test dir: ${c}`),console.log(` port: ${f}${m?" (headed)":""}`),x&&console.log(` config: ${x}`);let S=G("npx",l,{cwd:process.cwd(),stdio:"inherit",env:{...process.env,SOOTSIM_TEST_DIR:c,SOOTSIM_PORT:String(f),SOOTSIM_HEADED:m?"1":"",SOOTSIM_URL:process.env.SOOTSIM_URL||`http://localhost:${f}`}}),v=e=>()=>{S.kill(e)},_=v("SIGTERM"),D=v("SIGINT");process.on("SIGTERM",_),process.on("SIGINT",D);let W=Date.now(),w=await new Promise((e,s)=>{S.once("error",s),S.once("exit",(r,P)=>{if(P){console.error(` error: jest terminated by ${P}`),e(1);return}e(r??1)})});if(process.off("SIGTERM",_),process.off("SIGINT",D),p)try{U(p)}catch{}if(b){let e=h?K(h):null,s=await E(),r=await $({origin:s,kind:"detox",name:H(process.cwd(),c)||"e2e",status:w===0?"passed":"failed",summary:e?`${e.numPassedTests}/${e.numTotalTests} tests passed`:null,failureMessage:w===0?null:e?.firstFailure??null,stepCount:e?.numTotalTests??null,failedStepIndex:e?.firstFailedIndex??null,durationMs:Date.now()-W,auth:j});r&&console.log(` run: ${r.id}`)}process.exit(w)}function K(t){try{let o=JSON.parse(C(t,"utf8")),i=null,n=null,u=0;for(let m of o.testResults??[])for(let d of m.testResults??[]){if(n==null&&d.status==="failed"){n=u;let T=d.failureMessages?.[0]?.split(`
21
- `)[0];i=[d.fullName,T].filter(Boolean).join(": ")||null}u+=1}return typeof o.numTotalTests!="number"?null:{numTotalTests:o.numTotalTests,numPassedTests:o.numPassedTests??0,firstFailure:i,firstFailedIndex:n}}catch{return null}finally{if(!process.env.SOOTSIM_JEST_OUTPUT_FILE)try{U(t)}catch{}}}function Q(t){for(let o of t)if(g(a(process.cwd(),o)))return o;return null}async function X(t){await N()||console.warn(` warn: no rnx shell reachable on :${t}. start your app, then run \`rnxsim open <app-port>\`
22
- or pass --no-launch if you're managing the shell yourself.`)}function Y(){let t=process.cwd(),o=a(t,"sootsim-detox.config.cjs");g(o)?console.log(` skip: ${o} already exists`):(y(o,`// rnxsim detox jest config.
23
- // extends the sootsim preset, which rewrites \`import ... from 'detox'\`
24
- // to the sootsim driver and keeps your jest transforms intact.
25
-
26
- /** @type {import('@jest/types').Config.InitialOptions} */
27
- module.exports = {
28
- preset: 'rnxsim/detox/jest-preset',
29
- rootDir: __dirname,
30
- testMatch: ['<rootDir>/e2e/**/*.test.ts', '<rootDir>/e2e/**/*.test.js'],
31
- }
32
- `),console.log(` created ${o}`));let i=a(t,"e2e"),n=a(i,"example.test.ts");g(n)?console.log(` skip: ${n} already exists`):(B(i,{recursive:!0}),y(n,`// sample rnxsim detox test. resolve \`detox\` via the jest preset in
33
- // sootsim-detox.config.cjs \u2014 no extra imports required.
34
-
35
- import { by, device, element, expect, waitFor } from 'detox'
36
-
37
- describe('example', () => {
38
- beforeAll(async () => {
39
- await device.launchApp()
40
- })
41
-
42
- it('shows the welcome text', async () => {
43
- await waitFor(element(by.text('Welcome'))).toBeVisible().withTimeout(5000)
44
- })
45
-
46
- it('taps a button by id', async () => {
47
- await element(by.id('start-button')).tap()
48
- await expect(element(by.id('home-screen'))).toBeVisible()
49
- })
50
- })
51
- `),console.log(` created ${n}`)),console.log(`
52
- next:`),console.log(" rnxsim detox # run the sample"),console.log(" rnxsim detox --watch"),process.exit(0)}export{ae as runDetox};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-MTD6IAEA.js";import{a,b,c,d,e,f,g}from"./chunk-PO3TOAED.js";import"./chunk-IV36DY6M.js";import"./chunk-42ALI64M.js";import"./chunk-M7CBQ5I4.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.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,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-R3CMECGC.js";import"./chunk-FE6ZHPKD.js";import"./chunk-R2UL5VFY.js";import{b as a,c as b}from"./chunk-JWAY6DIH.js";import"./chunk-MJ7QGY7Z.js";import"./chunk-RVUGKXJD.js";import"./chunk-I2HQB5NN.js";import"./chunk-KWCD5MOK.js";import"./chunk-4KC35DMK.js";import"./chunk-ZTM2MKNI.js";import"./chunk-YSUIYK6B.js";import"./chunk-PO3TOAED.js";import"./chunk-IV36DY6M.js";import"./chunk-42ALI64M.js";import"./chunk-INBPUR4T.js";import"./chunk-FJSHIWAM.js";import"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-DCDKJ4NC.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-ZYHCWCMM.js";import"./chunk-WKT7YM5Q.js";import"./chunk-J7XFINJG.js";import"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import"./chunk-M7CBQ5I4.js";import"./chunk-3CS4EUMG.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.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};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-HNQLZZJA.js";import"./chunk-USGOQ3YJ.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import"./chunk-GP6QEBZA.js";import"./chunk-IN2PZBQD.js";import"./chunk-CL3PREIE.js";import"./chunk-VV4MXLFR.js";import"./chunk-MTNIDSOA.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-JWAY6DIH.js";import"./chunk-MJ7QGY7Z.js";import"./chunk-RVUGKXJD.js";import"./chunk-I2HQB5NN.js";import"./chunk-KWCD5MOK.js";import"./chunk-4KC35DMK.js";import"./chunk-ZTM2MKNI.js";import"./chunk-YSUIYK6B.js";import"./chunk-PO3TOAED.js";import"./chunk-IV36DY6M.js";import"./chunk-42ALI64M.js";import"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-DCDKJ4NC.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-ZYHCWCMM.js";import"./chunk-WKT7YM5Q.js";import"./chunk-J7XFINJG.js";import"./chunk-M7CBQ5I4.js";import"./chunk-3CS4EUMG.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.js";export{a as printShellPerfReport,b as runInspect};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-MGGRL2Z2.js";import"./chunk-IV36DY6M.js";import"./chunk-CGZWLSYD.js";import"./chunk-MTNIDSOA.js";export{a as runInstallDesktop};
@@ -1,26 +0,0 @@
1
- /*! rnx v0.1.335 | (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 as s,b as r}from"./chunk-RTD3CPDQ.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.js";async function i(e,o){(e.includes("--help")||e.includes("-h"))&&(console.log(`
5
- rnxsim mode screenshot \u2014 toggle the screenshot-mode chrome overlay
6
-
7
- usage:
8
- rnxsim mode screenshot [on|off|toggle]
9
-
10
- arguments:
11
- on enable screenshot mode (enables showFrame if needed)
12
- off disable screenshot mode
13
- toggle flip the current state (default)
14
-
15
- examples:
16
- rnxsim mode screenshot
17
- rnxsim mode screenshot on
18
- rnxsim mode screenshot off
19
- `),process.exit(0)),await s(e,o,{modeKey:"screenshotMode",displayName:"screenshot-mode",actionId:"toggle-screenshot-mode"})}var m=new Set(["--sim","--port","-p"]),c=new Set(["screenshot","three"]);function d(e){for(let o=0;o<e.length;o++){let n=e[o];if(n.startsWith("-")){m.has(n)&&o++;continue}return c.has(n)?{name:n,index:o}:null}return null}function h(e,o){return[...e.slice(0,o),...e.slice(o+1)]}function l(){console.log(`
20
- rnxsim mode \u2014 toggle live display modes
21
-
22
- usage:
23
- rnxsim mode screenshot [on|off|toggle]
24
- rnxsim mode three [on|off|toggle]
25
- rnxsim mode three configure [options]
26
- `)}async function g(e,o){if(e.includes("--help")||e.includes("-h")){l();return}let n=d(e);n||(l(),process.exit(1));let t=h(e,n.index);if(n.name==="screenshot"){await i(t,o);return}await r(t,o)}export{g as runMode};
@@ -1,13 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{q as h,s as w,v as l,w as u}from"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.js";var A=["not-determined","restricted","denied","authorized","limited","provisional","ephemeral","unavailable"],E=["app-tracking-transparency","bluetooth","calendars","camera","contacts","face-id","local-network","location-always","location-when-in-use","media-library","microphone","motion","notifications","photo-library","photo-library-add-only","reminders","siri","speech-recognition"];function b(){console.log(`
5
- rnxsim permissions \u2014 inspect and change simulated operating-system permissions
6
-
7
- usage:
8
- rnxsim permissions list [--json]
9
- rnxsim permissions get <app-id> [--json]
10
- rnxsim permissions set <app-id> <kind> <status> [--once] [--accuracy full|reduced] [--json]
11
- rnxsim permissions reset <app-id> [kind] [--json]
12
- `)}function S(n,i){console.log(i?JSON.stringify(n,null,2):n)}function $(n,i){let s=n.indexOf(i);return s>=0?n[s+1]:void 0}function P(n){return E.find(i=>i===n)??null}function j(n){return A.find(i=>i===n)??null}function x(n,i,s){switch(n){case"authorized":return{status:n,...i?{authorizationScope:"once"}:null,...s?{locationAccuracy:s}:null};case"not-determined":case"restricted":case"denied":case"limited":case"provisional":case"ephemeral":case"unavailable":return{status:n}}}async function B(n,i){if(n.includes("--help")||n.includes("-h"))return b(),0;let s=h(n,{port:i.port,stripBooleanFlags:["--json","--once"],stripValueFlags:["--accuracy"]}),[e,o,r,f]=s.positional;if(!e)return b(),1;let c=n.includes("--json"),t=w(s);try{if(e==="list"){let p=await l(t,"SootSim.bridges.test.permissionListApps");return S(c?p:p.map(m=>`${m.appId} ${m.displayName}`).join(`
13
- `),c),0}if(!o)throw new Error(`${e} requires an app id`);if(e==="get"){let p=await l(t,"SootSim.bridges.test.permissionGetAppSettings",o);return S(p,c),0}if(e==="reset"){if(r){let m=P(r);if(!m)throw new Error(`unknown permission kind: ${r}`);await u(t,"SootSim.bridges.test.permissionSetAppPermission",o,m,{status:"not-determined"})}else await u(t,"SootSim.bridges.test.permissionResetApp",o);let p=await l(t,"SootSim.bridges.test.permissionGetAppSettings",o);return S(p,c),0}if(e!=="set")throw new Error(`unknown permissions command: ${e}`);if(!r||!f)throw new Error("set requires an app id, permission kind, and status");let a=P(r);if(!a)throw new Error(`unknown permission kind: ${r}`);let g=j(f);if(!g)throw new Error(`unknown permission status: ${f}`);let d=$(n,"--accuracy"),y=d==="full"||d==="reduced"?d:void 0;if(d&&!y)throw new Error(`unknown location accuracy: ${d}`);let k=await u(t,"SootSim.bridges.test.permissionSetAppPermission",o,a,x(g,n.includes("--once"),y));return S(k,c),0}catch(a){return console.error(` permissions failed: ${a instanceof Error?a.message:a}`),1}finally{t.close()}}export{B as runPermissions};
@@ -1,72 +0,0 @@
1
- /*! rnx v0.1.335 | (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 as W}from"./chunk-R2UL5VFY.js";import{a as oe}from"./chunk-INBPUR4T.js";import{a as Z,c as ee}from"./chunk-FJSHIWAM.js";import{d as Y}from"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-ZYHCWCMM.js";import"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import{e as X,q as v,s as y,t as Q}from"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.js";import{existsSync as he,mkdirSync as E,readdirSync as be,readFileSync as ve,rmSync as q,writeFileSync as I}from"fs";import{homedir as ye,tmpdir as Se}from"os";import{dirname as z,extname as re,join as F,resolve as $e}from"path";var J=24e4,Re=9e4,xe=3e4;async function D(e,r,o,i){let t=Math.max(2e4,i+xe);try{return await e.send({type:"evaluate",code:r},{timeoutMs:t})}catch(n){let s=n instanceof Error?n.message:String(n);/^command timed out after \d+s$/.test(s)&&(console.error(` ${o} stalled \u2014 the render host did not finish within ${Math.round(t/1e3)}s; it is likely contended or wedged.
5
- the capture lock auto-releases, so simply retry the recording.
6
- if it persists, recover the sim with \`rnxsim close --sim <id>\`.`),process.exit(1)),/render host not available|already streaming|already recording|lock already held/i.test(s)&&(console.error(` ${o} failed: ${s}
7
- a prior recording was abandoned and its capture is still
8
- releasing. the lock self-heals in ~${Math.round((i+2e4)/1e3)}s \u2014 retry then, or recover now with
9
- \`rnxsim close --sim <id>\` and reopen the sim.`),process.exit(1)),console.error(` ${o} failed: ${s}`),process.exit(1)}}var _e=new Set(["--sim","--port","-p","--mode","--duration","--fps","--format","--output","-o","--frames","--max-width","--origin","--owner","--repo"]),ke=new Set(["start","stop","cancel","status","prelude-start","upload"]);function Oe(e){for(let r=0;r<e.length;r++){let o=e[r];if(o.startsWith("-")){_e.has(o)&&r++;continue}return ke.has(o)?{name:o,index:r}:null}return null}function te(e){let r=u(e,"--owner")?.trim(),o=u(e,"--repo")?.trim();return(r&&!o||!r&&o)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),r&&o?{owner:r,repo:o}:null}async function He(e,r){let o=Oe(e);if(o){let d=[...e.slice(0,o.index),...e.slice(o.index+1)];if(o.name==="start"){await Te(d,r);return}if(o.name==="prelude-start"){await Ie(d,r);return}if(o.name==="upload"){let{runUpload:S}=await import("./upload-UIQJIBEZ.js");await S(d,r);return}if(o.name==="stop"){await Pe(d,r);return}if(o.name==="cancel"){await Ne(d,r);return}await Ae(d,r);return}let i=v(e,{port:r.port,stripBooleanFlags:["--no-shell","--shell-only","--open","--lockstep"],stripValueFlags:["--mode","--duration","--fps","--format","--output","--frames","--max-width","--origin","--owner","--repo"]}),t=se(u(e,"--mode")),n=e.includes("--shell-only")?"shell":e.includes("--no-shell")?"tenant":void 0,s=u(e,"--format");s&&!["webm","mp4","gif","png"].includes(s)&&(console.error(` invalid --format "${s}" \u2014 expected webm | mp4 | gif | png`),process.exit(1));let c=u(e,"--output"),a=Number(u(e,"--duration")??"10");(!Number.isFinite(a)||a<=0)&&(console.error(` invalid --duration "${u(e,"--duration")}" \u2014 expected a positive number of seconds`),process.exit(1));let l=600;a>l&&(console.error(` invalid --duration "${u(e,"--duration")}" \u2014 exceeds the ${l}s (10m) maximum`),process.exit(1));let m=Number(u(e,"--fps")??"30"),p=u(e,"--frames");if(p!==void 0){let d=Number(p);(!Number.isInteger(d)||d<=0)&&(console.error(` invalid --frames "${p}" \u2014 expected a positive integer count`),process.exit(1))}let _=e.includes("--open"),k=u(e,"--max-width")?Number(u(e,"--max-width")):void 0;e.includes("--lockstep")&&(console.error(" --lockstep works with `record start` / `record stop` (stateful mode) \u2014 atomic --duration is wall-clock and cannot bound a virtual-time capture"),process.exit(1));let w=Math.max(100,Math.round(a*1e3)),K=u(e,"--origin"),fe=te(e);if(t==="live"||t==="combined"){c&&console.log(` note: --output is ignored for --mode ${t} \u2014 the recording uploads to /preview/<id>`),n&&t==="live"&&console.log(` note: --${n==="shell"?"shell-only":"no-shell"} is ignored for --mode live \u2014 live recordings capture events only, no video`),await W("record",{originOverride:K,allowGitHubAuth:!0});let d=y({...i,commandTimeoutMs:6e4});try{await H(d),await de(d,t),t==="combined"&&await B(d),await ce(d,K,fe);let S=await le(d,t,t==="combined"?n:void 0);S.ok||(console.error(` start failed: recording store refused to start (${t})`+(S.error?`: ${S.error}`:"")),process.exit(1)),console.log(` recording ${t} for ${a}s`),await new Promise(f=>setTimeout(f,w)),await ue(d);let O=await me(d);pe(O,_,t)}finally{d.close()}return}let A=p?Number(p):null,R=Be(s,c,A);_&&console.log(" note: --open is ignored for local-file capture \u2014 it applies to --mode live/combined");let b=y({...i,commandTimeoutMs:6e4});try{if(await ne(b),await B(b),R==="png"){let x=A??10,h=T(c,`sootsim-frames-${C()}`);c&&re(c)&&console.log(` note: --frames writes multiple pngs, so --output "${c}" is a directory \u2014 frame-NNN.png files land inside it`),E(h,{recursive:!0});for(let g of be(h))/^frame-\d+\.png$/.test(g)&&q(F(h,g),{force:!0});console.log(` sampling ${x} frames over ${a}s \u2192 ${h}`);let $=await b.send({type:"evaluate",code:`window.__sootsimRecorder.startFrameCapture({ count: ${x}, durationMs: ${w}${n?`, layers: ${JSON.stringify(n)}`:""} })`});(!$.ok||!$.requestId)&&(console.error(` frame capture start failed: ${$.error??"unknown error"}`),process.exit(1)),await new Promise(g=>setTimeout(g,w));let ge=Date.now()+Math.max(5e3,w),N=null;for(;;){let g=await b.send({type:"evaluate",code:`window.__sootsimRecorder.getFrameCaptureResult(${$.requestId})`});if(g||(console.error(" frame capture result missing"),process.exit(1)),g.done){g.ok||(console.error(` frame capture failed: ${g.error??"unknown error"}`),process.exit(1)),N=g.frames??[];break}Date.now()>=ge&&(console.error(" frame capture timed out"),process.exit(1)),await new Promise(P=>setTimeout(P,100))}N.forEach((g,P)=>{let we=`${h}/frame-${String(P+1).padStart(3,"0")}.png`;I(we,Buffer.from(g.data,"base64"))}),console.log(` saved ${N.length} frames`);return}if(R==="gif"){let x=A??Math.max(10,Math.round(a*m/3)),h=T(c,`sootsim-${C()}.gif`);E(z(h),{recursive:!0}),console.log(` encoding gif: ${x} frames over ${a}s \u2192 ${h}`);let $=await D(b,`window.__sootsimRecorder.captureGif({ frames: ${x}, durationMs: ${w}${k?`, maxWidth: ${k}`:""}${n?`, layers: ${JSON.stringify(n)}`:""} })`,"gif encode",w);$||(console.error(" gif capture returned no frames"),process.exit(1)),I(h,Buffer.from($.data,"base64")),console.log(` saved: ${h} (${L($.size)})`);return}let d=T(c,`sootsim-${C()}.${R}`);E(z(d),{recursive:!0});let S={format:R,fps:m,durationMs:w};n&&(S.layers=n);let O=await D(b,`window.__sootsimRecorder.start(${JSON.stringify(S)})`,`${R} start`,w);O.ok||(console.error(` start failed: ${O.error??"unknown error"}`),/render host not available|already streaming|already recording|lock already held/i.test(O.error??"")&&console.error(" a prior recording was abandoned and its capture is still\n releasing. retry in ~20s, or recover now with\n `rnxsim close --sim <id>` then reopen the sim."),process.exit(1)),console.log(` recording ${R} for ${a}s \u2192 ${d}`),await new Promise(x=>setTimeout(x,w));let f=await D(b,"window.__sootsimRecorder.stop()",`${R} encode/flush`,w);f.ok||(console.error(` stop failed: ${f.error??"unknown error"}`),process.exit(1)),f.size||(console.error(" recorder returned an empty blob \u2014 nothing written"),process.exit(1)),await ie(b,d),console.log(` saved: ${d} (${L(f.size)})`),f.durationMs&&f.frameCount!==void 0&&console.log(` source frames: ${f.frameCount} over ${(f.durationMs/1e3).toFixed(2)}s (${(f.frameCount/(f.durationMs/1e3)).toFixed(1)}fps)`)}finally{b.close()}}var Me=6e3;async function V(e,r){try{return await e.send({type:"evaluate",code:r},{timeoutMs:Me})}catch(o){let i=o instanceof Error?o.message:String(o);throw/^command timed out after \d+s$/.test(i)&&(console.error(" sim did not respond \u2014 it is connected to the bridge but has not\n loaded an app (or its page is unresponsive). run `rnxsim list`\n and target a sim with a loaded app via --sim <id>."),process.exit(1)),o}}async function ne(e){await V(e,'typeof window.__sootsimRecorder !== "undefined"')||(console.error(" window.__sootsimRecorder missing \u2014 is rnx engine running in this sim?"),process.exit(1))}async function B(e){let{hidden:r}=await Q(e);r&&(console.error(` refusing to record: the rnx tab is hidden, so frame capture
10
- would be throttled to ~1fps and produce a frozen-looking file.
11
- bring the chrome window to the foreground (un-minimize / switch to
12
- its tab) or run the recording in headless playwright, then retry.`),process.exit(1))}async function ie(e,r){let o=[],i=0;for(;;){let t=await e.send({type:"evaluate",code:`window.__sootsimRecorder.getBlobBase64({ offset: ${i}, chunk: 2097152 })`});if(!t)throw new Error("no blob available on recorder");if(o.push(Buffer.from(t.data,"base64")),i=t.offset,t.done)break}I(r,Buffer.concat(o))}function u(e,r){let o=e.indexOf(r);if(!(o<0||o===e.length-1))return e[o+1]}function Ee(e){if(!e)return;let r=re(e).toLowerCase().replace(/^\./,"");if(r==="webm"||r==="mp4"||r==="gif")return r;if(r==="png")return"png"}function Be(e,r,o){return e||(o!=null?"png":Ee(r)??"webm")}function C(){return new Date().toISOString().replace(/[:T]/g,"-").replace(/\..+/,"")}function Ue(){let e=F(ye(),".sootsim","recordings");return E(e,{recursive:!0}),e}function T(e,r){return e?$e(process.cwd(),e):F(Ue(),r)}function L(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(2)}MB`}function se(e){if(!e)return"video";if(e==="video"||e==="live"||e==="combined")return e;console.error(` invalid --mode "${e}" \u2014 expected video | live | combined`),process.exit(1)}function G(){return F(Se(),`sootsim-recording-${X()}.json`)}function U(){let e=G();if(!he(e))return null;try{return{mode:"video",...JSON.parse(ve(e,"utf8"))}}catch{return q(e,{force:!0}),null}}function Ce(e){I(G(),JSON.stringify(e,null,2))}function M(){q(G(),{force:!0})}function j(e,r){e&&r.simId&&e!==r.simId&&console.log(` note: the tracked recording session is on sim ${r.simId}, not the
13
- requested sim ${e}. record state is global (not per-sim);
14
- this command acts on that session regardless of --sim.`)}async function Te(e,r){let o=U();o&&(console.error(` recording already in progress (started ${o.startedAt}, sim ${o.simId??"?"}). run \`rnxsim record stop\` first, or \`rnxsim record cancel\` to discard.`),process.exit(1));let i=v(e,{port:r.port,stripBooleanFlags:["--no-shell","--shell-only","--lockstep"],stripValueFlags:["--mode","--fps","--format","--max-width","--origin","--owner","--repo"]}),t=se(u(e,"--mode")),n=e.includes("--shell-only")?"shell":e.includes("--no-shell")?"tenant":void 0,s=u(e,"--format"),c=s==="mp4"?"mp4":"webm";s&&c!==s&&(console.error(` record start only supports webm or mp4 (got: ${s}). for gif/png use atomic mode: rnxsim record --format ${s} --duration <s>`),process.exit(1));let a=Number(u(e,"--fps")??"30"),l=te(e),m=y({...i,commandTimeoutMs:t==="live"||t==="combined"?Re:15e3});try{if(t==="live"||t==="combined"){n&&t==="live"&&console.log(` note: --${n==="shell"?"shell-only":"no-shell"} is ignored for --mode live \u2014 live recordings capture events only, no video`),await W("record",{originOverride:u(e,"--origin"),allowGitHubAuth:!0}),await H(m),await de(m,t),t==="combined"&&await B(m),await ce(m,u(e,"--origin"),l);let p=await le(m,t,t==="combined"?n:void 0);p.ok||(console.error(` start failed: recording store refused to start (${t})`+(p.error?`: ${p.error}`:"")),process.exit(1))}else{await ne(m),await B(m);let p=e.includes("--lockstep");p&&c!=="mp4"&&(console.error(" --lockstep requires --format mp4 (webm is realtime-clocked)"),process.exit(1));let _={format:c,fps:a};n&&(_.layers=n),p&&(_.lockstep=!0);let k=await m.send({type:"evaluate",code:`window.__sootsimRecorder.start(${JSON.stringify(_)})`});k.ok||(console.error(` start failed: ${k.error??"unknown error"}`),process.exit(1))}Ce({simId:i.simId??null,mode:t,format:c,fps:a,layers:n,startedAt:new Date().toISOString()}),console.log(t==="video"?` recording ${c} @ ${a}fps${n?` (${n})`:""} \u2014 run \`rnxsim record stop --output <path>\` when done`:` recording ${t} \u2014 run \`rnxsim record stop\` when done (add --open to launch the preview URL)`)}finally{m.close()}}async function Ie(e,r){let o=U();o&&(console.error(` recording already in progress (started ${o.startedAt}, sim ${o.simId??"?"}). run \`rnxsim record stop\` first, or \`rnxsim record cancel\` to discard.`),process.exit(1));let i=v(e,{port:r.port,stripBooleanFlags:[],stripValueFlags:["--origin"]}),t=y({...i,commandTimeoutMs:15e3});try{if(await H(t),await B(t),!await t.send({type:"evaluate",code:`(() => {
15
- const start = window.SootSim?.bridges?.startRecordingPrelude
16
- if (typeof start !== 'function') return false
17
- return Promise.resolve(start()).then((value) => value === true)
18
- })()`})){let s=await t.send({type:"evaluate",code:`(() => {
19
- const getError = window.SootSim?.bridges?.getRecordingStartError
20
- return typeof getError === 'function' ? getError() : null
21
- })()`}).catch(()=>null);console.error(` prelude start failed: recording store refused to start${typeof s=="string"&&s?` (${s})`:""}`),process.exit(1)}console.log(" recording preview prelude \u2014 run `rnxsim record start --mode combined` when the visible proof segment is ready")}finally{t.close()}}async function ae(e){try{let r=await e.send({type:"evaluate",code:`(() => {
22
- const store = window.SootSim?.bridges?.getRecordingState?.();
23
- const headless = window.__sootsimRecorder?.state?.();
24
- const eventRecorder = window.SootSim?.bridges?.eventRecorder ?? window.__sootsimEventRecorder;
25
- const eventRecording =
26
- typeof eventRecorder?.isRecording === 'function'
27
- ? eventRecorder.isRecording() === true
28
- : false;
29
- return { store: store ? store.state : undefined, headless, eventRecording };
30
- })()`});return r?r.store==="recording"||r.headless==="recording"?"recording":r.store==="processing"?"processing":r.eventRecording?"prelude":r.store==="idle"||r.headless==="idle"?"idle":null:null}catch{return null}}async function Fe(e){let r=await e.send({type:"evaluate",code:`(() => {
31
- const store = window.SootSim?.bridges?.getRecordingState?.();
32
- const eventRecorder = window.SootSim?.bridges?.eventRecorder ?? window.__sootsimEventRecorder;
33
- const hadStoreRecording = store && store.state !== 'idle';
34
- const hadEventRecording =
35
- typeof eventRecorder?.isRecording === 'function'
36
- ? eventRecorder.isRecording() === true
37
- : false;
38
- const cancel = window.SootSim?.bridges?.cancelRecording;
39
- if (typeof cancel === 'function') cancel();
40
- return Boolean(hadStoreRecording || hadEventRecording);
41
- })()`}).catch(()=>!1),o=await e.send({type:"evaluate",code:`(async () => {
42
- const r = window.__sootsimRecorder;
43
- if (r && typeof r.forceRelease === 'function') return await r.forceRelease();
44
- return false;
45
- })()`}).catch(()=>!1);return{store:r,headless:o}}async function Ae(e,r){let o=U();if(o){j(v(e,{port:r.port}).simId,o),o.mode==="video"?console.log(` recording ${o.mode} (${o.format} @ ${o.fps}fps) on sim ${o.simId??"?"} since ${o.startedAt}`):console.log(` recording ${o.mode} on sim ${o.simId??"?"} since ${o.startedAt}`);return}let i=v(e,{port:r.port}),t=y({...i,commandTimeoutMs:8e3});try{let n=await ae(t);if(n==="recording"||n==="processing"||n==="prelude"){if(n==="prelude"){console.log(" a recording preview prelude is active. hidden setup is being\n captured for the next live/combined preview recording. finish\n it with `rnxsim record start --mode combined`, or discard it\n with `rnxsim record cancel`.");return}console.log(` a recording is in progress (engine state: ${n}), but not via
46
- \`record start\` \u2014 it was started by an atomic \`record --duration\`
47
- run or the in-browser record button, which own their own lifecycle.
48
- if that controlling run is still alive it will finish on its own
49
- (atomic \`--mode video/gif/png\` writes a local file from that
50
- process; live/combined upload to /preview/<id>). if the run was
51
- killed, the recording is abandoned and will NOT finish \u2014 reclaim
52
- it now with \`rnxsim record cancel\`, or it auto-reclaims when the
53
- abandoned capture's deadline lapses.`)}else console.log(" no recording in progress")}finally{t.close()}}async function Ne(e,r){let o=U();if(!o){let s=v(e,{port:r.port}),c=y({...s,commandTimeoutMs:8e3});try{let a=await ae(c);if(a==="recording"||a==="processing"||a==="prelude"){let l=await Fe(c);l.store&&a==="prelude"?console.log(" recording preview prelude cancelled"):l.store||l.headless?console.log(" reclaimed an abandoned recording (started by an atomic\n `record --duration` run or the record button whose owner is\n gone). the recorder is idle again \u2014 live/combined can start."):console.log(" a recording is in progress and still owned by a live atomic\n `record --duration` run or the in-browser record button \u2014 it\n will finish on its own and nothing was reclaimed.")}else console.log(" no recording in progress")}finally{c.close()}return}let i=v(e,{port:r.port});j(i.simId,o);let t=o.simId??i.simId??void 0,n=y({...i,simId:t,commandTimeoutMs:15e3});try{o.mode==="live"||o.mode==="combined"?await n.send({type:"evaluate",code:"void window.SootSim?.bridges?.cancelRecording?.()"}):await n.send({type:"evaluate",code:"window.__sootsimRecorder.stop()"})}catch{}finally{M(),n.close()}console.log(" recording cancelled")}async function Pe(e,r){let o=U();o||(console.error(" no recording in progress. start one with `rnxsim record start`."),process.exit(1));let i=v(e,{port:r.port,stripBooleanFlags:["--open"],stripValueFlags:["--output"]});j(i.simId,o);let t=o.simId??i.simId??void 0,n=e.includes("--open"),s=y({...i,simId:t,commandTimeoutMs:o.mode==="live"||o.mode==="combined"?J:6e4});try{if(o.mode==="live"||o.mode==="combined"){await ue(s);let m=await me(s);M(),pe(m,n,o.mode);return}let c=u(e,"--output"),a=T(c,`sootsim-${C()}.${o.format}`);E(z(a),{recursive:!0});let l=await s.send({type:"evaluate",code:"window.__sootsimRecorder.stop()"});l.ok||(console.error(` stop failed: ${l.error??"unknown error"}`),M(),process.exit(1)),l.size||(console.error(" recorder returned an empty blob \u2014 nothing written"),M(),process.exit(1)),await ie(s,a),M(),console.log(` saved: ${a} (${L(l.size)})`),l.durationMs&&l.frameCount!==void 0&&console.log(` source frames: ${l.frameCount} over ${(l.durationMs/1e3).toFixed(2)}s (${(l.frameCount/(l.durationMs/1e3)).toFixed(1)}fps)`)}finally{s.close()}}async function H(e){await V(e,'typeof window.SootSim?.bridges?.startRecording === "function" && typeof window.SootSim?.bridges?.stopRecording === "function"')||(console.error(" SootSim.bridges.startRecording missing \u2014 is rnx engine running in this sim?"),process.exit(1))}async function de(e,r){await V(e,`(() => {
54
- const fn = window.__sootsimCaptureBundle
55
- if (typeof fn !== 'function') return false
56
- const snap = fn()
57
- return !!(snap && snap.bundleUrl)
58
- })()`)||(console.error(` --mode ${r} needs a guest app bundle to upload to /preview/<id>,
59
- but this sim has no bundle loaded (a built-in shell screen like
60
- photos/settings/home has none). open a metro/guest app first, or
61
- use \`--mode video\` for a local screen recording with no upload.`),process.exit(1))}async function ce(e,r,o){let i=Z();if(!i)return;let t=i.kind==="api-key"?i.secret:i.token,n=oe(),s={branch:n.branch??void 0,commitSha:n.commitSha??void 0,githubUsername:n.githubUsername??void 0,pullRequestNumber:n.pullRequestNumber??void 0,pullRequestTitle:n.pullRequestTitle??void 0},c=i.kind==="github"?{...ee(i),owner:o?.owner,repo:o?.repo,...s}:o?{owner:o.owner,repo:o.repo,...s}:null,a=r?r.replace(/\/$/,""):null;await e.send({type:"evaluate",code:`(() => {
62
- const set = window.SootSim && window.SootSim.bridges && window.SootSim.bridges.setSession
63
- if (typeof set !== 'function') return false
64
- set({ token: ${JSON.stringify(t)}, user: null })
65
- window.__sootsimPreviewUploadIdentity = ${JSON.stringify(c)}
66
- window.__sootsimPreviewUseInjectedBearer = true
67
- ${a?`window.__sootsimUploadOrigin = ${JSON.stringify(a)}`:"delete window.__sootsimUploadOrigin"}
68
- return true
69
- })()`})||(console.error(" SootSim.bridges.setSession missing \u2014 this sim is running an engine\n build without CLI-injected preview auth. reload the sim or open a\n fresh one (`rnxsim open --new`); if it persists, update rnx."),process.exit(1))}async function le(e,r,o){let i=o?JSON.stringify(o):"undefined";return await e.send({type:"evaluate",code:`window.SootSim.bridges.startRecording(${JSON.stringify(r)}, ${i}, { skipEntitlement: true })`})===!0?{ok:!0,error:null}:{ok:!1,error:await e.send({type:"evaluate",code:"(window.SootSim?.bridges?.getRecordingStartError?.() ?? null)"}).catch(()=>null)??null}}async function ue(e){await e.send({type:"evaluate",code:"void window.SootSim.bridges.stopRecording()"})}async function me(e){let r=Date.now()+J;for(;Date.now()<r;){let o=await e.send({type:"evaluate",code:"(() => { const s = window.SootSim?.bridges?.getRecordingState?.(); return s ? { state: s.state, lastUpload: s.lastUpload, uploadError: s.uploadError } : null })()"});if(o&&o.state==="idle"){if(o.uploadError)return{uploadError:o.uploadError};if(o.lastUpload?.previewUrl)return{previewUrl:o.lastUpload.previewUrl,eventCount:o.lastUpload.eventCount}}await new Promise(i=>setTimeout(i,300))}return{uploadError:`upload did not settle within ${J/1e3}s`}}function pe(e,r,o){e.uploadError&&(console.error(` upload failed: ${e.uploadError}`),process.exit(1)),e.previewUrl||(console.error(" upload returned no preview URL"),process.exit(1)),console.log(` preview: ${e.previewUrl}`),console.log(` note: this URL is content-addressed \u2014 re-recording the same bundle
70
- replaces this capture at the same /preview/<id>.`),(o==="live"||o==="combined")&&typeof e.eventCount=="number"&&console.log(` captured ${e.eventCount} event${e.eventCount===1?"":"s"}`),(o==="live"||o==="combined")&&e.eventCount===0&&console.log(o==="combined"?` note: this combined recording captured no events \u2014 the Live tab has
71
- nothing to replay. Video will play the captured screen recording.`:` note: this live recording captured no events \u2014 the preview has nothing
72
- to replay and will boot a fresh interactive session instead.`),r&&Y(e.previewUrl)}export{Ee as extToFormat,Be as resolveFormat,He as runRecord,u as valueOf};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-6Y3PVPTF.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.js";export{a as runReset};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as a}from"./chunk-TYANJQLO.js";import"./chunk-YSUIYK6B.js";import"./chunk-35XNGT5C.js";import"./chunk-3CS4EUMG.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.js";export{a as runRuntime};
@@ -1,32 +0,0 @@
1
- /*! rnx v0.1.335 | (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 as d}from"./chunk-CGZWLSYD.js";import{d as V,f as q,g as J,i as F,j as B}from"./chunk-LCVUJCRJ.js";import{b as x,c as L}from"./chunk-S3EIOAWZ.js";import{c as k}from"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import{f as y}from"./chunk-3CS4EUMG.js";import"./chunk-HNQLZZJA.js";import"./chunk-USGOQ3YJ.js";import"./chunk-EJPYPJWP.js";import"./chunk-POC3QTA6.js";import"./chunk-RSA4XWHN.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-BRHZEZKN.js";import{C as R,D as C,J as w,M as N,O as I,l as v}from"./chunk-GP6QEBZA.js";import{a as T}from"./chunk-IN2PZBQD.js";import{a as s}from"./chunk-CL3PREIE.js";import"./chunk-VV4MXLFR.js";import"./chunk-MTNIDSOA.js";import $ from"node:fs";import z from"node:os";import P from"node:path";import{spawn as re}from"node:child_process";import l from"node:fs";import a from"node:path";function Y(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"package.json")))return n;let r=a.dirname(n);if(r===n)return null;n=r}}function j(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"bun.lock"))||l.existsSync(a.join(n,"bun.lockb")))return"bun";if(l.existsSync(a.join(n,"pnpm-lock.yaml")))return"pnpm";if(l.existsSync(a.join(n,"package-lock.json")))return"npm";let r=a.dirname(n);if(r===n)return"npm";n=r}}function H(e){let n=a.resolve(e.appDir),r=te(a.join(n,"package.json")),t=`${s.commandName} open`,o=r.scripts?.[s.commandName];if(o&&o!==t)throw new Error(`package.json already defines scripts.${s.commandName} as ${JSON.stringify(o)}; resolve that conflict before setup`);let i=j(n),c=[];return r.devDependencies?.[s.packageName]!==e.cliVersion&&c.push(oe(i,e.cliVersion)),o!==t&&c.push(ae(i)),{appDir:n,packageManager:i,operations:c}}async function U(e,n){for(let r of e.operations)n.dryRun||await se(r,e.appDir,n.json)}function O(e){return e.operations.map(n=>`${n.command} ${n.args.map(ie).join(" ")}`)}function te(e){let n;try{n=JSON.parse(l.readFileSync(e,"utf8"))}catch(o){let i=o instanceof Error?o.message:String(o);throw new Error(`could not read ${e}: ${i}`)}if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`${e} must contain a JSON object`);let r=W(Reflect.get(n,"scripts")),t=W(Reflect.get(n,"devDependencies"));return{...r?{scripts:r}:{},...t?{devDependencies:t}:{}}}function W(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let n=Object.entries(e).filter(r=>typeof r[1]=="string");return Object.fromEntries(n)}function oe(e,n){let r=`${s.packageName}@${n}`;switch(e){case"bun":return{command:"bun",args:["add","--dev","--exact",r],description:`install ${r} as an exact dev dependency`};case"pnpm":return{command:"pnpm",args:["add","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`};case"npm":return{command:"npm",args:["install","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`}}}function ie(e){return/^[a-zA-Z0-9_./@=-]+$/.test(e)?e:JSON.stringify(e)}function se(e,n,r){return new Promise((t,o)=>{let i=re(e.command,e.args,{cwd:n,stdio:r?["ignore",2,"inherit"]:"inherit"});i.once("error",o),i.once("exit",c=>{c===0?t():o(new Error(`${e.command} exited with code ${c??"unknown"}`))})})}function ae(e){return{command:e,args:e==="bun"?["pm","pkg","set",`scripts.${s.commandName}=${s.commandName} open`]:["pkg","set",`scripts.${s.commandName}=${s.commandName} open`],description:`add the \`${s.commandName}\` package script`}}async function Ye(e){if(e.includes("--help")||e.includes("-h")){je();return}let n=ue(e),r="decisions";try{let t=Y(n.appDir),o=x(),i=R(),c=await le(n,o),X=await de(n,t),g=await K(n,"productAnalytics",i.productAnalytics,i.configured),S=await K(n,"crashReports",i.crashReports,i.configured),ee=await y.fetchManifest(),f=y.resolveVersion(ee,{channel:"stable"}).version,A=T();if(A==="0.0.0")throw new Error("could not resolve the installed rnxsim CLI version");let p=null;X&&t&&(p=H({appDir:t,cliVersion:A})),he(n),be(n,o,c,f),ve(n,t,p),Re(n,g,S),r="runtime";let M=!1;if(!n.dryRun){let E=w();M=(await y.install({version:f,channel:"stable",setActive:!0,protectVersions:E?[E]:[]})).installed}r="repository",p&&await U(p,{dryRun:n.dryRun,json:n.json}),r="service";let h=o.installed;c&&!o.installed&&!n.dryRun&&(await L({port:7668,force:!1}),h=!0),r="privacy",n.dryRun||C({productAnalytics:g,crashReports:S}),r="compatibility";let u=t?me(t):null,b=await fe(n,u);b&&u&&t&&!n.dryRun&&await ye(t,u),we(n,u,b);let _={runtimeVersion:f,serviceInstalled:h,repositoryPrepared:p!==null,compatibilityShared:b&&!n.dryRun},ne=Se(f);n.json?console.log(JSON.stringify({..._,runtimeInstalled:n.dryRun?!1:M,dryRun:n.dryRun,cache:ne,repositoryOperations:p?O(p):[]},null,2)):ke(p);let m=u?q(u):null;return k({event:"cli_setup_completed",properties:{service_installed:h,repository_prepared:p!==null,product_analytics:g,crash_reports:S,compat_supported:m?.supported??0,compat_partial:m?.partial??0,compat_unsupported:m?.unsupported??0,compat_not_yet_verified:m?.notYetVerified??0,from_welcome:n.fromWelcome,ci:n.ci,dry_run:n.dryRun}}),_}catch(t){let o=xe(t);throw k({event:"cli_setup_failed",properties:{stage:r,message:o}}),t}}function pe(){let e=x(),n=N(),r=w();return{daemonSupported:e.supported,daemonInstalled:e.installed,daemonRunning:!!(n&&I(n)),runtimeInstalled:!!(r&&$.existsSync(v(r))),privacyConfigured:R().configured}}function He(e=pe()){return!e.runtimeInstalled||!e.privacyConfigured}function ue(e){let n=e.indexOf("--app"),r=n>=0?e[n+1]:void 0;if(n>=0&&(!r||r.startsWith("-")))throw new Error("--app requires a directory");let t=G(e,"--service","--no-service"),o=G(e,"--repo","--no-repo");return{appDir:P.resolve(r??process.cwd()),ci:e.includes("--ci"),dryRun:e.includes("--dry-run"),fromWelcome:e.includes("--from-welcome"),json:e.includes("--json"),yes:e.includes("--yes")||e.includes("-y"),service:t,repository:o,productAnalytics:Z(e,"--analytics"),crashReports:Z(e,"--crash-reports"),shareCompatibility:e.includes("--share-compat")}}function G(e,n,r){if(e.includes(n)&&e.includes(r))throw new Error(`${n} and ${r} cannot be used together`);if(e.includes(n))return!0;if(e.includes(r))return!1}function Z(e,n){let r=e.find(i=>i.startsWith(`${n}=`)),t=e.indexOf(n),o=r?.slice(n.length+1)??(t>=0?e[t+1]:void 0);if(o!==void 0){if(o==="on"||o==="yes"||o==="true")return!0;if(o==="off"||o==="no"||o==="false")return!1;throw new Error(`${n} must be on or off`)}}async function le(e,n){if(e.ci){if(e.service===!0)throw new Error("--ci cannot install a machine service");return!1}return n.supported?n.installed&&e.service===void 0?!0:e.service!==void 0?e.service:e.yes?!0:(D(e,"--service or --no-service"),d("Install the background service and shared managed runtime?",!0)):!1}async function de(e,n){if(!n){if(e.repository===!0)throw new Error("--repo requires a package.json");return!1}return e.repository!==void 0?e.repository:e.yes?!0:(D(e,"--repo or --no-repo"),d(`Prepare ${n} for reproducible rnx runs?`,!0))}async function K(e,n,r,t){let o=n==="productAnalytics"?e.productAnalytics:e.crashReports;return o!==void 0?o:t?r:e.yes?!0:(D(e,n==="productAnalytics"?"--analytics on|off":"--crash-reports on|off"),d(n==="productAnalytics"?"Share bounded product analytics?":"Send bounded crash reports?",!0))}async function fe(e,n){return n?e.shareCompatibility?!0:e.yes||!process.stdin.isTTY?!1:d("Share dependency names, requested versions, framework, and this compatibility result?",!1):!1}function D(e,n){if(!(process.stdin.isTTY&&!e.ci))throw new Error(`non-interactive setup requires ${n}, or --yes to accept defaults`)}function me(e){let n=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!n||typeof n!="object")throw new Error("package.json must contain an object");return V(n)}async function ye(e,n){let r=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!r||typeof r!="object")throw new Error("package.json must be an object");let t=await fetch("https://contrast.dev/api/scan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(ge(r,n)),signal:AbortSignal.timeout(1e4)});if(!t.ok)throw new Error(`compatibility sharing failed with HTTP ${t.status}`)}function ge(e,n){return{dependencies:Q(Reflect.get(e,"dependencies")),devDependencies:Q(Reflect.get(e,"devDependencies")),framework:n.framework,result:{framework:n.framework,rnVersion:n.rnVersion,packages:n.packages.slice(0,200)},source:"desktop",shared:!0}}function Q(e){if(!e||typeof e!="object")return{};let n={};for(let[r,t]of Object.entries(e).slice(0,200))typeof t=="string"&&(n[r.slice(0,160)]=t.slice(0,80));return n}function Se(e){let n=z.platform(),r=z.arch();return{path:v(e),key:`sootsim-runtime-${n}-${r}-${e}`,inputs:{platform:n,arch:r,runtimeVersion:e}}}function he(e){e.json||console.log(`
5
- ${e.fromWelcome?"welcome to rnx":"rnxsim setup"}`)}function be(e,n,r,t){e.json||(console.log(`
6
- 1. machine`),console.log(` stable runtime: ${t}`),console.log(` background service: ${n.supported?r?"install":"skip":"unsupported on this platform"}`))}function ve(e,n,r){if(!e.json){if(console.log(`
7
- 2. repository`),!n){console.log(" no package.json found; repository preparation skipped");return}if(!r){console.log(` skipped for ${n}`);return}console.log(` package manager: ${j(n)}`);for(let t of O(r))console.log(` ${e.dryRun?"would run":"run"}: ${t}`)}}function Re(e,n,r){e.json||(console.log(`
8
- 3. privacy`),console.log(` product analytics: ${n?"on":"off"}`),console.log(" command, feature, version, platform, and bounded performance events"),console.log(` crash reports: ${r?"on":"off"}`),console.log(" error type, message, stack, runtime version, platform, and bounded dependency summary"),console.log(" source files, environment values, terminal output, app data, screenshots, and recordings are not included"))}function we(e,n,r){if(!e.json){if(console.log(`
9
- 4. compatibility`),!n){console.log(" no package.json found; run `rnxsim compat` inside an app later");return}console.log(` ${J(n)}`);for(let t of F(n))console.log(` ${t}`);console.log(` ${B}`),console.log(` dependency sharing: ${r?"yes":"no"}`)}}function ke(e){if(console.log(`
10
- 5. ready`),e){let n=e.packageManager==="bun"?"bun run sootsim":`${e.packageManager} run rnxsim`;console.log(` start your app normally, then ${n} -- <port>`)}else console.log(" start your app normally, then rnxsim open <port>");console.log(" useful next commands: rnxsim describe; rnxsim get errors; rnxsim compat"),console.log(" install agent skills with `rnxsim skill install`, then start a new session"),console.log(" if a concrete rnx seam is missing or broken, preview `rnxsim report-issue` and confirm separately")}function xe(e){return(e instanceof Error?e.message:String(e)).replace(/(?:\/?[\w.-]+)+/g,"<path>").slice(0,240)}function je(){console.log(`
11
- rnxsim setup \u2014 configure a machine and optionally prepare the current repository
12
-
13
- usage:
14
- rnxsim setup
15
- rnxsim setup --yes
16
- rnxsim setup --ci --yes --json
17
- rnxsim setup --dry-run --yes
18
-
19
- decisions:
20
- --service | --no-service
21
- --repo | --no-repo
22
- --analytics on|off
23
- --crash-reports on|off
24
- --share-compat
25
-
26
- automation:
27
- --yes accept defaults; compatibility sharing still defaults off
28
- --ci never prompt or install a background service
29
- --json emit runtime/cache metadata as JSON
30
- --dry-run print exact repository operations without changing the machine
31
- --app DIR use DIR as the repository search start
32
- `)}export{ge as buildCompatibilitySharePayload,pe as readMachineSetupStatus,Ye as runSetup,He as shouldRunSetupForBareCommand};
@@ -1,37 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{b as s,c as l,d as c,e as a,f}from"./chunk-42ALI64M.js";import{a as t}from"./chunk-6Y3PVPTF.js";import"./chunk-ROPHZJ6P.js";import"./chunk-3ZDOPKHE.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.js";function p(){console.log(`
5
- rnxsim storage profile \u2014 manage isolated storage profiles
6
-
7
- usage:
8
- rnxsim storage profile list
9
- rnxsim storage profile create <id>
10
- rnxsim storage profile clear <id>
11
- rnxsim storage profile delete <id>
12
-
13
- profiles isolate cookies, localStorage, IndexedDB, cache, permissions, and
14
- service workers in Electron and Playwright launches. Plain browser-tab launches
15
- cannot honor profiles and will fail clearly if a profile is requested.
16
-
17
- examples:
18
- rnxsim storage profile list
19
- rnxsim storage profile create qa
20
- rnxsim open 8081 --profile qa
21
- rnxsim open 8081 --profile qa --driver playwright
22
- rnxsim storage profile clear qa
23
- rnxsim storage profile delete qa
24
- `)}async function d(r,i){if(r.includes("--help")||r.includes("-h"))return p(),0;let o=r[0]??"list";try{switch(o){case"list":{let e=s();for(let n of e)console.log(` ${n.id}`);return 0}case"create":{let e=r[1];if(!e)return console.error(" profile create expects <id>"),1;let n=c(e);return console.log(` created profile: ${n.id}`),0}case"ensure":{let e=r[1];if(!e)return console.error(" profile ensure expects <id>"),1;let n=l(e);return console.log(` profile: ${n.id}`),0}case"clear":{let e=r[1];return e?(l(e),f(e),console.log(` cleared profile: ${e}`),0):(console.error(" profile clear expects <id>"),1)}case"delete":{let e=r[1];if(!e)return console.error(" profile delete expects <id>"),1;let n=a(e);return console.log(` deleted profile: ${n.id}`),0}default:return console.error(` unknown profile command: ${o}`),p(),1}}catch(e){return console.error(` profile failed: ${e instanceof Error?e.message:String(e)}`),1}}var m=new Set(["--sim","--port","-p"]),g=new Set(["profile","clear"]);function x(r){for(let i=0;i<r.length;i++){let o=r[i];if(o.startsWith("-")){m.has(o)&&i++;continue}return g.has(o)?{name:o,index:i}:null}return null}function u(){console.log(`
25
- rnxsim storage \u2014 manage sim and app storage
26
-
27
- usage:
28
- rnxsim storage profile <subcommand>
29
- rnxsim storage clear [--full] [--sim <id>] [--json]
30
-
31
- subcommands:
32
- profile list
33
- profile create <id>
34
- profile clear <id>
35
- profile delete <id>
36
- clear clear the current guest app data and relaunch it
37
- `)}async function w(r,i){if(r.includes("--help")||r.includes("-h"))return u(),0;let o=x(r);return o?.name==="profile"?d([...r.slice(0,o.index),...r.slice(o.index+1)],i):o?.name==="clear"?t([...r.slice(0,o.index),...r.slice(o.index+1)],i):(console.error(` unknown storage command: ${o?.name??"(missing)"}`),u(),1)}export{w as runStorage};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (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-DCDKJ4NC.js";import"./chunk-RSA4XWHN.js";import"./chunk-MTNIDSOA.js";export{a as settingsStore};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{c as a,d as b}from"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import"./chunk-GP6QEBZA.js";import"./chunk-MTNIDSOA.js";export{b as flushCliTelemetry,a as trackCliEvent};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.335 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{e as a,f as b,g as c}from"./chunk-INBPUR4T.js";import"./chunk-FJSHIWAM.js";import"./chunk-JWK5WD44.js";import"./chunk-6VN5ULGQ.js";import"./chunk-35XNGT5C.js";import"./chunk-ZYHCWCMM.js";import"./chunk-RELRA5VW.js";import"./chunk-ZZWO6Y7X.js";import"./chunk-RTEJXUXN.js";import"./chunk-GVKISFQ3.js";import"./chunk-GP6QEBZA.js";import"./chunk-CL3PREIE.js";import"./chunk-MTNIDSOA.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};