rnxsim 0.1.368 → 0.1.370

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 (256) hide show
  1. package/cli/auth.ts +2 -1
  2. package/cli/bin.ts +283 -273
  3. package/cli/commands/app-fonts.ts +3 -2
  4. package/cli/commands/assert.ts +8 -7
  5. package/cli/commands/auth.ts +2 -1
  6. package/cli/commands/box/checkout-plane.ts +49 -16
  7. package/cli/commands/compat.ts +93 -4
  8. package/cli/commands/config.ts +2 -1
  9. package/cli/commands/control.ts +37 -33
  10. package/cli/commands/daemon.ts +22 -21
  11. package/cli/commands/debug.ts +17 -15
  12. package/cli/commands/detect.ts +11 -7
  13. package/cli/commands/detox.ts +5 -4
  14. package/cli/commands/device.ts +6 -5
  15. package/cli/commands/electron.ts +6 -5
  16. package/cli/commands/flow.ts +12 -11
  17. package/cli/commands/inspect/find.ts +2 -1
  18. package/cli/commands/inspect/keyboard.ts +2 -1
  19. package/cli/commands/inspect/sleep.ts +2 -1
  20. package/cli/commands/inspect/wait-event.ts +4 -3
  21. package/cli/commands/inspect/wait-idle.ts +2 -1
  22. package/cli/commands/inspect/wait-ready.ts +3 -2
  23. package/cli/commands/inspect/wait-selector.ts +4 -3
  24. package/cli/commands/inspect/wait.ts +2 -1
  25. package/cli/commands/inspect.ts +82 -80
  26. package/cli/commands/install-desktop.ts +5 -4
  27. package/cli/commands/login.ts +3 -2
  28. package/cli/commands/mode.ts +2 -1
  29. package/cli/commands/record.ts +38 -37
  30. package/cli/commands/runtime.ts +9 -8
  31. package/cli/commands/screenshot-layers.ts +4 -3
  32. package/cli/commands/screenshot-mode.ts +2 -1
  33. package/cli/commands/screenshot.ts +8 -7
  34. package/cli/commands/screenshots-capture.ts +2 -1
  35. package/cli/commands/serve.ts +5 -4
  36. package/cli/commands/shell-boolean-mode.ts +2 -1
  37. package/cli/commands/skills.ts +11 -10
  38. package/cli/commands/telemetry.ts +2 -1
  39. package/cli/commands/three-mode.ts +2 -1
  40. package/cli/commands/timeline.ts +4 -3
  41. package/cli/commands/upload.ts +14 -13
  42. package/cli/commands/what-happened.ts +2 -1
  43. package/cli/recording-access.ts +6 -5
  44. package/cli/run-rnx.ts +140 -0
  45. package/dist-cli/bin.js +6 -6
  46. package/dist-cli/chunks/{agent-GXCQMYV4.js → agent-3R4424LW.js} +2 -2
  47. package/dist-cli/chunks/{agent-wrapper-Y3PQAL6I.js → agent-wrapper-4PPWZWSY.js} +2 -2
  48. package/dist-cli/chunks/app-fonts-KYXB6CXQ.js +4 -0
  49. package/dist-cli/chunks/{assert-BSRQBRH7.js → assert-7EZOWGYQ.js} +11 -11
  50. package/dist-cli/chunks/auth-L7M36H6C.js +12 -0
  51. package/dist-cli/chunks/{beta-R4IZ5SWO.js → beta-FKAF6YWJ.js} +2 -2
  52. package/dist-cli/chunks/{box-2NQYYY3B.js → box-5Y5VBMHV.js} +62 -62
  53. package/dist-cli/chunks/{camera-ER66WWAX.js → camera-XHF2RPFG.js} +2 -2
  54. package/dist-cli/chunks/{chunk-UBH2BWCY.js → chunk-2FOGXVOK.js} +2 -2
  55. package/dist-cli/chunks/{chunk-7B22IPSC.js → chunk-3BG6UCQY.js} +2 -2
  56. package/dist-cli/chunks/{chunk-IXRVFQMT.js → chunk-3SOPYG7S.js} +2 -2
  57. package/dist-cli/chunks/{chunk-7V3S2DY2.js → chunk-3UXXYJVD.js} +1 -1
  58. package/dist-cli/chunks/{chunk-3MPFC3DS.js → chunk-5BR33NAZ.js} +1 -1
  59. package/dist-cli/chunks/{chunk-BWJOLJOK.js → chunk-5RKRVS5A.js} +2 -2
  60. package/dist-cli/chunks/{chunk-WVVAYLWZ.js → chunk-64JAEJ6N.js} +1 -1
  61. package/dist-cli/chunks/{chunk-GXHCJRKE.js → chunk-6A6L3VJR.js} +2 -2
  62. package/dist-cli/chunks/chunk-6GPS7U4X.js +74 -0
  63. package/dist-cli/chunks/{chunk-JHYXRORU.js → chunk-6S5LJV2O.js} +2 -2
  64. package/dist-cli/chunks/{chunk-TOE5O6JE.js → chunk-6W4HIWC7.js} +2 -2
  65. package/dist-cli/chunks/{chunk-ESVUVW3R.js → chunk-72S5FCBY.js} +2 -2
  66. package/dist-cli/chunks/{chunk-TC6DNQL6.js → chunk-7C7TJYZ3.js} +2 -2
  67. package/dist-cli/chunks/{chunk-M7COA4BE.js → chunk-AALKIAUZ.js} +1 -1
  68. package/dist-cli/chunks/{chunk-CKNNO6ZG.js → chunk-ARMXC3C3.js} +25 -25
  69. package/dist-cli/chunks/chunk-AVJBT5LF.js +4 -0
  70. package/dist-cli/chunks/chunk-BMIJZNKD.js +28 -0
  71. package/dist-cli/chunks/{chunk-FSPZY4AI.js → chunk-C7BA5CCM.js} +2 -2
  72. package/dist-cli/chunks/{chunk-EHA65UVJ.js → chunk-CMVRTZ5G.js} +2 -2
  73. package/dist-cli/chunks/chunk-D24EOJ4C.js +24 -0
  74. package/dist-cli/chunks/{chunk-3XMEIZEV.js → chunk-D2GZASRV.js} +1 -1
  75. package/dist-cli/chunks/{chunk-3S2J6IVC.js → chunk-DHYTRCIP.js} +2 -2
  76. package/dist-cli/chunks/{chunk-QMVBWZH2.js → chunk-DMHSD6YJ.js} +2 -2
  77. package/dist-cli/chunks/{chunk-NGWUGNPV.js → chunk-DUXHYPBP.js} +2 -2
  78. package/dist-cli/chunks/{chunk-4FLQYRGN.js → chunk-DXV37CJN.js} +1 -1
  79. package/dist-cli/chunks/{chunk-T2MGLXY5.js → chunk-EOIBLKZO.js} +2 -2
  80. package/dist-cli/chunks/{chunk-PNBQBBG5.js → chunk-EQ3OE2AV.js} +1 -1
  81. package/dist-cli/chunks/{chunk-WFAFAGMG.js → chunk-EWSWOWXK.js} +2 -2
  82. package/dist-cli/chunks/{chunk-HKQXGCQT.js → chunk-FA75F34Z.js} +1 -1
  83. package/dist-cli/chunks/{chunk-NERY6HGZ.js → chunk-FK4JSTZ3.js} +2 -2
  84. package/dist-cli/chunks/{chunk-NPSPWMBO.js → chunk-GJRLPJQL.js} +2 -2
  85. package/dist-cli/chunks/{chunk-TPIPKXJL.js → chunk-GRO74J2X.js} +1 -1
  86. package/dist-cli/chunks/chunk-H5X5FJ63.js +99 -0
  87. package/dist-cli/chunks/chunk-HEKHLQ3B.js +497 -0
  88. package/dist-cli/chunks/chunk-HQQTS2CB.js +30 -0
  89. package/dist-cli/chunks/{chunk-Q65KH25G.js → chunk-I52NT6VG.js} +1 -1
  90. package/dist-cli/chunks/{chunk-AUPJX4KI.js → chunk-IDLFVRPN.js} +1 -1
  91. package/dist-cli/chunks/{chunk-LAKWOJ5Y.js → chunk-JZLDHPB7.js} +2 -2
  92. package/dist-cli/chunks/{chunk-WJQB6AXZ.js → chunk-LIMWG54N.js} +1 -1
  93. package/dist-cli/chunks/{chunk-TE645QCO.js → chunk-LUOHRBJG.js} +1 -1
  94. package/dist-cli/chunks/{chunk-DJSPNOF6.js → chunk-LXPHL6FO.js} +2 -2
  95. package/dist-cli/chunks/{chunk-ECXDCED5.js → chunk-MDCY532E.js} +2 -2
  96. package/dist-cli/chunks/{chunk-4VA2ISWX.js → chunk-NJMU5BN6.js} +1 -1
  97. package/dist-cli/chunks/{chunk-RRALQ4WM.js → chunk-NR2V2ONN.js} +2 -2
  98. package/dist-cli/chunks/{chunk-SHMLYTNH.js → chunk-NTC46LSA.js} +2 -2
  99. package/dist-cli/chunks/{chunk-X5MXQB3L.js → chunk-O6QLKSAM.js} +10 -10
  100. package/dist-cli/chunks/{chunk-LPAOOJIW.js → chunk-OJZHECGH.js} +1 -1
  101. package/dist-cli/chunks/chunk-OTFTMGAL.js +7 -0
  102. package/dist-cli/chunks/{chunk-QKOY7UW5.js → chunk-PAUEZO6F.js} +2 -2
  103. package/dist-cli/chunks/{chunk-WXRDFUR7.js → chunk-PIZXOXBL.js} +2 -2
  104. package/dist-cli/chunks/{chunk-WF2CRNYF.js → chunk-PNOENVMJ.js} +1 -1
  105. package/dist-cli/chunks/{chunk-FDAFSRQE.js → chunk-Q4MRJ6PO.js} +2 -2
  106. package/dist-cli/chunks/{chunk-SSUPPM6K.js → chunk-RRX52O37.js} +1 -1
  107. package/dist-cli/chunks/{chunk-E6XYIIJK.js → chunk-U63T6LIQ.js} +1 -1
  108. package/dist-cli/chunks/{chunk-OZJMWTGA.js → chunk-UFVAAWGZ.js} +1 -1
  109. package/dist-cli/chunks/{chunk-GS5VUDCF.js → chunk-VVQCZ42C.js} +1 -1
  110. package/dist-cli/chunks/{chunk-MCO7V4VN.js → chunk-WFQHT4QD.js} +2 -2
  111. package/dist-cli/chunks/{chunk-JFGW75UL.js → chunk-WPV4H5S4.js} +2 -2
  112. package/dist-cli/chunks/{chunk-OXCDE3DD.js → chunk-X6WQ4YWE.js} +1 -1
  113. package/dist-cli/chunks/{chunk-FVODUDPS.js → chunk-YIZGNT7A.js} +1 -1
  114. package/dist-cli/chunks/{chunk-MGOAQHMO.js → chunk-Z2VBSNFI.js} +2 -2
  115. package/dist-cli/chunks/{chunk-GFWUIGGY.js → chunk-Z3DENGXW.js} +2 -2
  116. package/dist-cli/chunks/{cleanup-WHGLBAJ2.js → cleanup-MXMMJ7JW.js} +2 -2
  117. package/dist-cli/chunks/cli-version-MLS55UTY.js +4 -0
  118. package/dist-cli/chunks/compat-E6KE5KDI.js +23 -0
  119. package/dist-cli/chunks/config-QSLLVZDS.js +13 -0
  120. package/dist-cli/chunks/{connect-N4FV3DDV.js → connect-QE4VU6GB.js} +2 -2
  121. package/dist-cli/chunks/control-XD5F6K5T.js +4 -0
  122. package/dist-cli/chunks/daemon-UN5SE2JO.js +4 -0
  123. package/dist-cli/chunks/{debug-AHEK43AJ.js → debug-5FG3MBJS.js} +20 -20
  124. package/dist-cli/chunks/desktop-5EZX7NX5.js +31 -0
  125. package/dist-cli/chunks/detox-WJGQP5TM.js +52 -0
  126. package/dist-cli/chunks/device-D7LKCAMS.js +18 -0
  127. package/dist-cli/chunks/{diagnose-WDP3CVIX.js → diagnose-A3W6ZTGA.js} +2 -2
  128. package/dist-cli/chunks/{disk-cleanup-JRT5MKFW.js → disk-cleanup-BDRHX5ZG.js} +2 -2
  129. package/dist-cli/chunks/{do-chain-7FDMO56C.js → do-chain-RUJNRPPF.js} +2 -2
  130. package/dist-cli/chunks/drivers-3NJ5RL6X.js +4 -0
  131. package/dist-cli/chunks/{env-YIBOMB24.js → env-U67SQVTV.js} +2 -2
  132. package/dist-cli/chunks/{film-R3EQADMG.js → film-XC6UAQ3V.js} +3 -3
  133. package/dist-cli/chunks/flow-FHZZD3P6.js +4 -0
  134. package/dist-cli/chunks/help-BYYDUSXF.js +4 -0
  135. package/dist-cli/chunks/{hidden-runtime-alias-6M4UERRQ.js → hidden-runtime-alias-7S2TNZXG.js} +2 -2
  136. package/dist-cli/chunks/{home-paths-QJNOHZJO.js → home-paths-LMO5LB4F.js} +2 -2
  137. package/dist-cli/chunks/inspect-RQCTWDCC.js +4 -0
  138. package/dist-cli/chunks/install-desktop-GOWXCQUE.js +4 -0
  139. package/dist-cli/chunks/login-JIU42S4C.js +26 -0
  140. package/dist-cli/chunks/{logout-VNJX2IEW.js → logout-JTAWQXZO.js} +2 -2
  141. package/dist-cli/chunks/{maestro-SQS2OS2D.js → maestro-TYBQYOGB.js} +3 -3
  142. package/dist-cli/chunks/{maestro-generate-GWVPISG5.js → maestro-generate-YLAGWVKE.js} +3 -3
  143. package/dist-cli/chunks/mode-DV24ZRZ6.js +26 -0
  144. package/dist-cli/chunks/{optional-demo-registry-L3LRBQHG.js → optional-demo-registry-JZH66VIM.js} +2 -2
  145. package/dist-cli/chunks/{perf-XLPC4UKR.js → perf-LXXJ4EAX.js} +2 -2
  146. package/dist-cli/chunks/{permissions-QRHWVMDP.js → permissions-KAOVZUPW.js} +2 -2
  147. package/dist-cli/chunks/{platform-F47URZNB.js → platform-KW35446W.js} +3 -3
  148. package/dist-cli/chunks/privacy-MIFE72CG.js +4 -0
  149. package/dist-cli/chunks/record-EK3ETFHZ.js +72 -0
  150. package/dist-cli/chunks/report-issue-NW5PCAZF.js +29 -0
  151. package/dist-cli/chunks/reset-RZ4O5AFJ.js +4 -0
  152. package/dist-cli/chunks/resolve-target-7R5BNYMM.js +4 -0
  153. package/dist-cli/chunks/runtime-MZHLSRS6.js +4 -0
  154. package/dist-cli/chunks/{screenshot-command-RK7IJHVK.js → screenshot-command-TQSPTFT2.js} +11 -11
  155. package/dist-cli/chunks/screenshot-layers-IZP3L3AQ.js +20 -0
  156. package/dist-cli/chunks/screenshots-capture-K7LJOVAE.js +42 -0
  157. package/dist-cli/chunks/{serve-UBXNGLNP.js → serve-MMX4WXXG.js} +18 -18
  158. package/dist-cli/chunks/setup-YFP3KEQZ.js +4 -0
  159. package/dist-cli/chunks/{sim-client-VTKFEDJX.js → sim-client-KLAYIFOC.js} +2 -2
  160. package/dist-cli/chunks/skills-N4D3POIS.js +50 -0
  161. package/dist-cli/chunks/{state-273XJPUE.js → state-ES6TFQZF.js} +2 -2
  162. package/dist-cli/chunks/{storage-RTDFWIY7.js → storage-52DR5V2C.js} +2 -2
  163. package/dist-cli/chunks/store-HOL45WCI.js +4 -0
  164. package/dist-cli/chunks/telemetry-BV6OTYPF.js +4 -0
  165. package/dist-cli/chunks/timeline-NRVNB5JR.js +24 -0
  166. package/dist-cli/chunks/{upgrade-R74NVHKG.js → upgrade-LNED5YQ2.js} +2 -2
  167. package/dist-cli/chunks/upload-RXKHFIBU.js +4 -0
  168. package/dist-cli/chunks/{version-RTFCYQZ7.js → version-VEF2DYGG.js} +2 -2
  169. package/dist-cli/chunks/{web-35SSKBRU.js → web-CGDE6S73.js} +2 -2
  170. package/dist-cli/chunks/welcome-FT2AMUWW.js +5 -0
  171. package/dist-cli/chunks/what-happened-FSIDWL32.js +25 -0
  172. package/dist-cli/chunks/{ws-bridge-JXQUAWFA.js → ws-bridge-QXFQLRE7.js} +2 -2
  173. package/dist-lib/agent-daemon-client.cjs +1 -1
  174. package/dist-lib/agent-events.cjs +1 -1
  175. package/dist-lib/agent-identity.cjs +1 -1
  176. package/dist-lib/agent-sessions.cjs +1 -1
  177. package/dist-lib/attached-projects.cjs +1 -1
  178. package/dist-lib/auth/shared-session.cjs +1 -1
  179. package/dist-lib/backend-origin.cjs +1 -1
  180. package/dist-lib/beta.cjs +1 -1
  181. package/dist-lib/beta.mjs +1 -1
  182. package/dist-lib/bridge-constants.cjs +1 -1
  183. package/dist-lib/bridge-contract-input.cjs +1 -1
  184. package/dist-lib/bridge-contract-input.mjs +1 -1
  185. package/dist-lib/bridge-contract.cjs +1 -1
  186. package/dist-lib/bridge-contract.mjs +1 -1
  187. package/dist-lib/cli-constants.cjs +1 -1
  188. package/dist-lib/config.cjs +1 -1
  189. package/dist-lib/detox/index.cjs +1 -1
  190. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  191. package/dist-lib/home-paths.cjs +1 -1
  192. package/dist-lib/host/bridge-host.cjs +1 -1
  193. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  194. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  195. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  196. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  197. package/dist-lib/host/websocket-proxy.cjs +1 -1
  198. package/dist-lib/index.cjs +1 -1
  199. package/dist-lib/jump-to-source-babel.cjs +1 -1
  200. package/dist-lib/menu.cjs +1 -1
  201. package/dist-lib/menu.mjs +1 -1
  202. package/dist-lib/metro-production-bundle.cjs +1 -1
  203. package/dist-lib/metro-production-bundle.mjs +1 -1
  204. package/dist-lib/metro.cjs +1 -1
  205. package/dist-lib/profiles.cjs +1 -1
  206. package/dist-lib/public-brand.cjs +1 -1
  207. package/dist-lib/react-native-host-modules.cjs +2 -1
  208. package/dist-lib/react-native-host-modules.mjs +2 -1
  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 +1 -1
  212. package/dist-lib/sdk.mjs +1 -1
  213. package/dist-lib/skills.cjs +560 -48
  214. package/dist-lib/vite.cjs +1 -1
  215. package/package.json +1 -1
  216. package/src/react-native-host-modules.ts +1 -0
  217. package/dist-cli/chunks/app-fonts-MDD3W4VN.js +0 -4
  218. package/dist-cli/chunks/auth-SLPHDPCF.js +0 -12
  219. package/dist-cli/chunks/chunk-2YK5J2D2.js +0 -24
  220. package/dist-cli/chunks/chunk-42TLK75A.js +0 -497
  221. package/dist-cli/chunks/chunk-57LITN73.js +0 -7
  222. package/dist-cli/chunks/chunk-T4ZZ26A2.js +0 -28
  223. package/dist-cli/chunks/chunk-UXROQPIN.js +0 -30
  224. package/dist-cli/chunks/chunk-YSHJ3LMQ.js +0 -74
  225. package/dist-cli/chunks/chunk-YYPTSF6W.js +0 -99
  226. package/dist-cli/chunks/cli-version-DMXIXBIM.js +0 -4
  227. package/dist-cli/chunks/compat-MGBKGYGQ.js +0 -20
  228. package/dist-cli/chunks/config-TRDOMP4T.js +0 -13
  229. package/dist-cli/chunks/control-5GRBZVYK.js +0 -4
  230. package/dist-cli/chunks/daemon-MBT5E3ZC.js +0 -4
  231. package/dist-cli/chunks/desktop-LDRIXOVV.js +0 -31
  232. package/dist-cli/chunks/detox-6HAKYISO.js +0 -52
  233. package/dist-cli/chunks/device-QM3S7OVU.js +0 -18
  234. package/dist-cli/chunks/drivers-AJL2EVXH.js +0 -4
  235. package/dist-cli/chunks/flow-BDAA6BWL.js +0 -4
  236. package/dist-cli/chunks/help-5EJD6LJF.js +0 -4
  237. package/dist-cli/chunks/inspect-S3LR3R2A.js +0 -4
  238. package/dist-cli/chunks/install-desktop-GXE6K7BJ.js +0 -4
  239. package/dist-cli/chunks/login-ISWDW4WU.js +0 -26
  240. package/dist-cli/chunks/mode-3URDGBZB.js +0 -26
  241. package/dist-cli/chunks/privacy-BF23T67T.js +0 -4
  242. package/dist-cli/chunks/record-2DN3OUE5.js +0 -72
  243. package/dist-cli/chunks/report-issue-D3BQPSLU.js +0 -29
  244. package/dist-cli/chunks/reset-T5CNZ7D3.js +0 -4
  245. package/dist-cli/chunks/resolve-target-KAAS274S.js +0 -4
  246. package/dist-cli/chunks/runtime-AQJDBR3X.js +0 -4
  247. package/dist-cli/chunks/screenshot-layers-DP2QKSMN.js +0 -20
  248. package/dist-cli/chunks/screenshots-capture-MA7P3FUT.js +0 -42
  249. package/dist-cli/chunks/setup-GH7OW4GC.js +0 -4
  250. package/dist-cli/chunks/skills-HPK25R4B.js +0 -50
  251. package/dist-cli/chunks/store-DLKNNM4L.js +0 -4
  252. package/dist-cli/chunks/telemetry-7CWDXEOO.js +0 -4
  253. package/dist-cli/chunks/timeline-IF2PGK7C.js +0 -24
  254. package/dist-cli/chunks/upload-3JFFVCZ4.js +0 -4
  255. package/dist-cli/chunks/welcome-N5V352SE.js +0 -5
  256. package/dist-cli/chunks/what-happened-WXTP6EPR.js +0 -25
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-GS5VUDCF.js";import{a,b,c,d,e,f,g}from"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-3MPFC3DS.js";import"./chunk-LPAOOJIW.js";import"./chunk-HKQXGCQT.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.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.368 | (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-CKNNO6ZG.js";import"./chunk-OXCDE3DD.js";import"./chunk-T4ZZ26A2.js";import{a,b}from"./chunk-42TLK75A.js";import"./chunk-OZJMWTGA.js";import"./chunk-WJQB6AXZ.js";import"./chunk-FDAFSRQE.js";import"./chunk-YYPTSF6W.js";import"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-FSPZY4AI.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-FVODUDPS.js";import"./chunk-DJSPNOF6.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.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.368 | (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-BWJOLJOK.js";import"./chunk-WXRDFUR7.js";import"./chunk-FSPZY4AI.js";import"./chunk-4VA2ISWX.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-SSUPPM6K.js";import"./chunk-E6XYIIJK.js";import"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{g as a,h as b}from"./chunk-42TLK75A.js";import"./chunk-OZJMWTGA.js";import"./chunk-WJQB6AXZ.js";import"./chunk-FDAFSRQE.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-FSPZY4AI.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-FVODUDPS.js";import"./chunk-DJSPNOF6.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as printShellPerfReport,b as runInspect};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-2YK5J2D2.js";import"./chunk-3MPFC3DS.js";import"./chunk-TPIPKXJL.js";import"./chunk-Q65KH25G.js";export{a as runInstallDesktop};
@@ -1,26 +0,0 @@
1
- /*! rnx v0.1.368 | (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 p,d as k}from"./chunk-TOE5O6JE.js";import"./chunk-E6XYIIJK.js";import{a as b}from"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";import{exec as x}from"node:child_process";import{randomBytes as T}from"node:crypto";import R from"node:http";var w=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev";function L(t){return t||(process.env.SOOTSIM_AUTH_ORIGIN?process.env.SOOTSIM_AUTH_ORIGIN:process.env.SOOTSIM_UPLOAD_ORIGIN?process.env.SOOTSIM_UPLOAD_ORIGIN:w)}function _(){console.log(`
5
- rnx login \u2014 sign in so uploads can attach to your account
6
-
7
- usage:
8
- rnx login [--origin <url>]
9
-
10
- options:
11
- --origin <url> auth host (default: ${w})
12
- override with SOOTSIM_AUTH_ORIGIN env var
13
- -h, --help
14
- `)}function P(t,e){let r=t.findIndex(g=>g===e);if(r<0)return;let l=t[r+1];return t.splice(r,2),l}function U(t){let e=process.platform==="darwin"?`open "${t}"`:process.platform==="win32"?`start "" "${t}"`:`xdg-open "${t}"`;x(e,r=>{r&&(console.log(" could not open browser automatically."),console.log(` open this URL manually:
15
- ${t}
16
- `))})}function d(t){return`<!doctype html>
17
- <html>
18
- <body style="font-family:system-ui;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;height:100vh;margin:0">
19
- <div style="max-width:480px;text-align:center">
20
- <h1 style="font-size:28px;margin:0 0 12px">${b.name}</h1>
21
- <p style="color:#ccc">${t}</p>
22
- </div>
23
- </body>
24
- </html>`}async function A(t){try{let e=await fetch(`${t.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(e.status===403)return{ok:!1,error:"local dev-login unavailable"};if(!e.ok){let l=await e.text().catch(()=>"");return{ok:!1,error:`dev-login ${e.status}: ${l}`}}let r=await e.json();return r.token?{ok:!0,token:r.token,userId:r.user?.id,email:r.email}:{ok:!1,error:"dev-login response missing token"}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"dev-login fetch failed"}}}function M(t){try{let e=new URL(t).hostname.replace(/^\[|\]$/g,"").toLowerCase();return!!(e==="localhost"||/^127(?:\.\d{1,3}){3}$/.test(e)||e==="::1"||e==="0.0.0.0"||e.endsWith(".local")||e.endsWith(".localhost")||e==="host.containers.internal"||e==="host.docker.internal"||e==="host.orb.internal"||e==="host.lima.internal"||e==="fd07:b51a:cc66:f0::fe"||e==="192.168.5.2"||/^192\.168\.(?:64|139)\.1$/.test(e))}catch{return!1}}async function C(t){(t.includes("--help")||t.includes("-h"))&&(_(),process.exit(0));let e=[...t],r=L(P(e,"--origin"));if(M(r)){console.log(` detected local origin (${r}) \u2014 signing in as dev user`);let o=await A(r);if(o.ok){p({token:o.token,user:o.userId?{id:o.userId,email:o.email}:null,origin:r,source:"cli"});let u=await k(r),f=u?.user?.email||o.email||u?.user?.id||o.userId;console.log(` signed in${f?` as ${f}`:""} (dev)`);return}console.log(` dev-login not available (${o.error}); falling back to browser`)}let l=T(16).toString("hex"),g=300*1e3,s=await new Promise(o=>{let u,f=!1,c=a=>{f||(f=!0,clearTimeout(u),o(a),m.close())},m=R.createServer((a,n)=>{try{let i=new URL(a.url||"/","http://127.0.0.1"),O=i.searchParams.get("state"),y=i.searchParams.get("token"),S=i.searchParams.get("email")||void 0,$=i.searchParams.get("userId")||void 0,h=i.searchParams.get("error");if(O!==l){n.statusCode=404,n.end("not found");return}if(n.setHeader("content-type","text/html; charset=utf-8"),h){n.end(d(`sign-in failed: ${h}`)),c({ok:!1,error:h});return}if(!y){n.end(d("missing token. close this tab and retry `rnx login`.")),c({ok:!1,error:"missing token"});return}n.end(d("sign-in complete. you can return to the terminal.")),c({ok:!0,token:y,email:S,userId:$})}catch(i){n.statusCode=500,n.end(d("sign-in callback failed. retry `rnx login`.")),c({ok:!1,error:i instanceof Error?i.message:"callback failed"})}});u=setTimeout(()=>{c({ok:!1,error:"timed out waiting for the browser sign-in (5 minutes). rerun `rnx login` and complete the github authorize screen if it appears."})},g),m.listen(0,"127.0.0.1",()=>{let a=m.address();if(!a||typeof a=="string"){c({ok:!1,error:"failed to bind callback server"});return}let n=new URL(`${r.replace(/\/$/,"")}/auth/sootsim-cli`);n.searchParams.set("state",l),n.searchParams.set("port",String(a.port)),n.searchParams.set("contrast",r),console.log(" opening browser for rnx login..."),console.log(" first time here? github will show an authorize screen. approve it to continue."),console.log(" waiting up to 5 minutes for the browser (ctrl+c to cancel)"),console.log(` if nothing opens, visit:
25
- ${n.toString()}
26
- `),U(n.toString())})});s.ok||(console.error(` login failed: ${s.error}`),process.exit(1)),p({token:s.token,user:s.userId?{id:s.userId,email:s.email}:null,origin:r,source:"cli"});let I=await k(r),v=I?.user?.email||s.email||I?.user?.id||s.userId;console.log(` signed in${v?` as ${v}`:""}`)}export{C as runLogin};
@@ -1,26 +0,0 @@
1
- /*! rnx v0.1.368 | (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 r,b as s}from"./chunk-X5MXQB3L.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";async function i(e,o){(e.includes("--help")||e.includes("-h"))&&(console.log(`
5
- rnx mode screenshot \u2014 toggle the screenshot-mode chrome overlay
6
-
7
- usage:
8
- rnx 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
- rnx mode screenshot
17
- rnx mode screenshot on
18
- rnx mode screenshot off
19
- `),process.exit(0)),await r(e,o,{modeKey:"screenshotMode",displayName:"screenshot-mode",actionId:"toggle-screenshot-mode"})}var c=new Set(["--sim","--port","-p"]),d=new Set(["screenshot","three"]);function m(e){for(let o=0;o<e.length;o++){let n=e[o];if(n.startsWith("-")){c.has(n)&&o++;continue}return d.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
- rnx mode \u2014 toggle live display modes
21
-
22
- usage:
23
- rnx mode screenshot [on|off|toggle]
24
- rnx mode three [on|off|toggle]
25
- rnx mode three configure [options]
26
- `)}async function g(e,o){if(e.includes("--help")||e.includes("-h")){l();return}let n=m(e);n||(l(),process.exit(1));let t=h(e,n.index);if(n.name==="screenshot"){await i(t,o);return}await s(t,o)}export{g as runMode};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-IXRVFQMT.js";import"./chunk-TPIPKXJL.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";export{a as canPromptForPrivacyChoice,b as diagnosticsAllowedForCurrentProcess,c as ensurePrivacyChoice};
@@ -1,72 +0,0 @@
1
- /*! rnx v0.1.368 | (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-T4ZZ26A2.js";import{a as oe}from"./chunk-YYPTSF6W.js";import{a as Z,c as ee}from"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import{d as Y}from"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-WF2CRNYF.js";import"./chunk-PNBQBBG5.js";import{e as X,t as v,v as y,w as Q}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.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 \`rnx 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
- \`rnx 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-3JFFVCZ4.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 `rnx 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 `rnx 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 \`rnx record stop\` first, or \`rnx 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: rnx 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 \`rnx record stop --output <path>\` when done`:` recording ${t} \u2014 run \`rnx 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 \`rnx record stop\` first, or \`rnx 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 `rnx 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 `rnx record start --mode combined`, or discard it\n with `rnx 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 \`rnx 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 `rnx 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 (`rnx 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,29 +0,0 @@
1
- /*! rnx v0.1.368 | (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 m,b as f}from"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import{i as l}from"./chunk-TPIPKXJL.js";import{M as p}from"./chunk-E6XYIIJK.js";import{a as d}from"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";import{existsSync as h,readFileSync as w}from"node:fs";import{resolve as b}from"node:path";var R="https://contrast.dev",g=8e3;function v(){return{request:(t,e)=>fetch(t,e),confirmSubmission:l,isInteractive:process.stdin.isTTY===!0,now:()=>new Date,stdout:t=>process.stdout.write(t),stderr:t=>process.stderr.write(t)}}function I(t,e){let n=t.indexOf(e);if(n===-1)return null;let r=t[n+1];if(!r||r.startsWith("-"))throw new Error(`${e} requires a value`);return r}function D(t,e=process.cwd()){let n=I(t,"--app"),r=new Set,s=t.indexOf("--app");s!==-1&&(r.add(s),r.add(s+1));let a=[];for(let c=0;c<t.length;c+=1){if(r.has(c))continue;let u=t[c];if(!(u==="--yes"||u==="-y"||u==="--dry-run")){if(u.startsWith("-"))throw new Error(`unknown flag: ${u}`);a.push(u)}}let i=a.join(" ").trim();if(!i)throw new Error("describe the missing or broken compatibility behavior");if(i.length>g)throw new Error(`description is too long (maximum ${g} characters)`);return{appDir:b(e,n??"."),description:i,dryRun:t.includes("--dry-run"),yes:t.includes("--yes")||t.includes("-y")}}function y(t){if(!t||typeof t!="object")return;let e={};for(let n of Object.keys(t)){let r=Object.getOwnPropertyDescriptor(t,n)?.value;typeof r=="string"&&(e[n]=r)}return e}function O(t){let e=b(t,"package.json");if(!h(e))return null;let n;try{n=JSON.parse(w(e,"utf8"))}catch{throw new Error(`could not parse ${e}`)}if(!n||typeof n!="object")throw new Error(`${e} must contain a JSON object`);let r=Object.getOwnPropertyDescriptor(n,"name")?.value,s=Object.getOwnPropertyDescriptor(n,"dependencies")?.value,a=Object.getOwnPropertyDescriptor(n,"devDependencies")?.value,i=y(s),c=y(a);return{...typeof r=="string"?{name:r}:{},...i?{dependencies:i}:{},...c?{devDependencies:c}:{}}}async function S(t,e=new Date){let n=O(t.appDir),r=n?(await import("./web-35SSKBRU.js")).scanDeps(n):null,s=d(),a=p();return{note:t.description,timestamp:e.toISOString(),sootsim_version:a,cli_version:s,bundle:{activeApp:r&&r.projectName!=="unknown"?{appName:r.projectName}:null,reportSource:"cli",runtimeVersion:a,cliVersion:s,platform:process.platform,arch:process.arch,compatibility:r}}}function $(){let t=m(),e=t?.kind==="session"?t.origin.replace(/\/+$/,""):R,n=t&&t.kind!=="github"?f(t):null;return{url:`${e}/api/sootsim/report-issue`,authorization:n}}function k(t){if(!t)return"no package.json found; no compatibility scan attached";let e=t.packages.filter(n=>n.status!=="full"&&n.status!=="not-relevant").length;return`${t.packages.length} React Native ecosystem packages, ${e} needing attention`}function P(t){if(!t||typeof t!="object")return null;let e=Object.getOwnPropertyDescriptor(t,"id")?.value;return typeof e=="string"&&e?e:null}async function V(t,e=v()){let n;try{n=D(t)}catch(o){return e.stderr(` ${o instanceof Error?o.message:String(o)}
5
- usage: rnx report-issue [--app <dir>] [--dry-run] [--yes] "<description>"
6
- `),1}if(!h(n.appDir))return e.stderr(` directory not found: ${n.appDir}
7
- `),1;let r;try{r=await S(n,e.now())}catch(o){return e.stderr(` could not prepare the issue report: ${o instanceof Error?o.message:String(o)}
8
- `),1}if(e.stdout(`
9
- rnx issue report preview
10
-
11
- description: ${r.note}
12
- compatibility: ${k(r.bundle.compatibility)}
13
- environment: CLI ${r.bundle.cliVersion}, runtime ${r.bundle.runtimeVersion??"not installed"}, ${r.bundle.platform}/${r.bundle.arch}
14
-
15
- Includes only the description, compatibility scan, and the version/platform details above.
16
- It does not include source files, environment variables, terminal output, logs, screenshots, or app data.
17
- `),n.dryRun)return e.stdout(`
18
- dry run: nothing was sent.
19
- `),0;if(!n.yes){if(!e.isInteractive)return e.stderr(`
20
- not sent: ask the user for explicit approval, then rerun with --yes.
21
- `),2;if(!await e.confirmSubmission("send this compatibility report to the rnx team?",!1))return e.stdout(`
22
- not sent.
23
- `),2}let s=$(),a={"content-type":"application/json"};s.authorization&&(a.authorization=s.authorization);let i;try{i=await e.request(s.url,{method:"POST",headers:a,body:JSON.stringify(r),signal:AbortSignal.timeout(15e3)})}catch(o){return e.stderr(` report failed: ${o instanceof Error?o.message:String(o)}
24
- `),1}if(!i.ok){let o=(await i.text().catch(()=>"")).slice(0,240);return e.stderr(` report failed: ${i.status} ${i.statusText}${o?` \u2014 ${o}`:""}
25
- `),1}let c=await i.json().catch(()=>null),u=P(c);return e.stdout(u?`
26
- sent. Report id: ${u}
27
- `:`
28
- sent. Thank you.
29
- `),0}export{S as createReportIssuePayload,D as parseReportIssueOptions,V as runReportIssue};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-JFGW75UL.js";import"./chunk-RRALQ4WM.js";import"./chunk-M7COA4BE.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";export{a as runReset};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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}from"./chunk-NGWUGNPV.js";import"./chunk-M7COA4BE.js";import"./chunk-Q65KH25G.js";export{a as readTargetFlag,b as resolveTargetCoords};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-UXROQPIN.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-3S2J6IVC.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as runRuntime};
@@ -1,20 +0,0 @@
1
- /*! rnx v0.1.368 | (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}from"./chunk-WJQB6AXZ.js";import"./chunk-7V3S2DY2.js";import{o as b,p as I}from"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-LAKWOJ5Y.js";import{b as m}from"./chunk-EHA65UVJ.js";import{t as y,v,y as w}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";import{mkdirSync as B,writeFileSync as R}from"fs";import{resolve as f}from"path";async function L(s,$){(s.includes("--help")||s.includes("-h"))&&(console.log(`
5
- sootsim screenshot layers \u2014 export a screen as engine-isolated layers
6
-
7
- usage:
8
- sootsim screenshot layers --ids <testID,testID,...> [--out-dir <dir>]
9
-
10
- options:
11
- --ids <list> comma-separated testIDs of the subtrees to isolate
12
- --out-dir <dir> output directory (default: /tmp/sootsim-layers)
13
-
14
- output:
15
- full.png the normal frame
16
- base.png the frame re-rendered with every listed subtree hidden
17
- layer-<id>.png each subtree rendered alone on a transparent frame
18
- manifest.json device metrics + logical rect per layer
19
- `),process.exit(0));let u=s.find((r,n)=>s[n-1]==="--ids");u||(console.error(" --ids is required (comma-separated testIDs)"),process.exit(1));let i=u.split(",").map(r=>r.trim()).filter(Boolean);i.length===0&&(console.error(" --ids resolved to an empty list"),process.exit(1));let D=s.find((r,n)=>s[n-1]==="--out-dir"),c=f(process.cwd(),D??"/tmp/sootsim-layers"),M=y(s,{port:$.port,stripValueFlags:["--ids","--out-dir"]}),o=v({...M,commandTimeoutMs:45e3});try{let r=await I(o,9e4);if(!r.ready)throw new Error(`app not ready to capture after ${Math.round(r.elapsedMs/1e3)}s (${b(r)})`);let n={};for(let e of i){let t=await o.send({type:"evaluate",code:S({id:e})});if(!t)throw new Error(`no node with testID "${e}"`);n[e]=t}B(c,{recursive:!0});let l=(e,t)=>{if(typeof t!="string"||!t.startsWith("data:image/png;base64,"))throw new Error(`capture for ${e} returned no image data`);let h=f(c,e);R(h,Buffer.from(t.slice(22),"base64")),console.log(` saved: ${h}`)};l("full.png",await o.send({type:"screenshot"})),l("base.png",await o.send({type:"screenshot",captureFilter:{hideTestIds:i}}));for(let e of i)l(`layer-${e}.png`,await o.send({type:"screenshot",captureFilter:{soloTestId:e,hideTestIds:i.filter(t=>t!==e)}}));let p=await w(o,"SootSim.bridges.settings.get")??{deviceModel:null},a=typeof p.deviceModel=="string"&&p.deviceModel in m?p.deviceModel:null,d=a?m[a]:null,x={device:d?{model:a,width:d.width,height:d.height,scale:d.scale}:{model:a},layers:i.map(e=>({testId:e,rect:n[e]}))},g=f(c,"manifest.json");R(g,`${JSON.stringify(x,null,2)}
20
- `),console.log(` saved: ${g}`)}finally{o.close()}}export{L as runScreenshotLayers};
@@ -1,42 +0,0 @@
1
- /*! rnx v0.1.368 | (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 U}from"./chunk-OXCDE3DD.js";import{a as M}from"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import"./chunk-E6XYIIJK.js";import{a as F}from"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";import{execSync as N}from"node:child_process";import{mkdirSync as O,mkdtempSync as E,rmSync as j,writeFileSync as G}from"node:fs";import{tmpdir as q}from"node:os";import{dirname as B,isAbsolute as L,join as I,resolve as z}from"node:path";import{chromium as W}from"playwright-core";var H=`
5
- rnx screenshot appstore capture \u2014 headlessly capture + upload App Store slides
6
-
7
- usage:
8
- rnx screenshot appstore capture --org <org> --repo <repo> [options]
9
-
10
- what it does:
11
- boots the org-mode build shell in headless GPU Chrome (authed via your
12
- \`rnx login\` session), captures each slide through the live screenshot
13
- composer so every slide gets editable layers (captureRef + cleanRef +
14
- screenRef), and lets the shell auto-upload them to your org deck.
15
-
16
- options:
17
- --org <org> github org slug (required)
18
- --repo <repo> repo name (required)
19
- --branch <branch> build branch to boot (default: main)
20
- --platform <p> ios | android (default: ios)
21
- --slides <list> 1-based indices to capture, e.g. 1,3,5 (default: all)
22
- --dry-run capture + report refs, do NOT upload (PUTs aborted)
23
- --force allow overwriting a NON-EMPTY existing deck
24
- --out <dir> also write composed App-Store PNGs locally
25
- --shell-origin <url> origin serving /build (default: your session origin)
26
- --api-origin <url> origin for deck/capture APIs (default: session origin)
27
- --timeout <ms> per-step bridge timeout (default: 45000)
28
- --json machine-readable summary
29
-
30
- examples:
31
- rnx screenshot appstore capture --org acme --repo my-app --dry-run
32
- rnx screenshot appstore capture --org acme --repo my-app --branch main --force
33
- `;function J(t){let e=a=>{let d=t.indexOf(a);return d>=0?t[d+1]:void 0},n=a=>t.includes(a),s=e("--slides"),i=s?s.split(",").map(a=>Number(a.trim())).filter(a=>Number.isInteger(a)&&a>0):null;return{org:e("--org")??"",repo:e("--repo")??"",branch:e("--branch")??"main",platform:e("--platform")??"ios",slides:i&&i.length?i:null,dryRun:n("--dry-run"),force:n("--force"),out:e("--out")??null,shellOrigin:e("--shell-origin")??null,apiOrigin:e("--api-origin")??null,timeoutMs:Number(e("--timeout")??"45000")||45e3,json:n("--json")}}function Y(){let t=M();if(t&&t.kind==="session")return{token:t.token,origin:t.origin};process.stderr.write(`
34
- rnx screenshot appstore capture needs a logged-in session.
35
- run \`rnx login\` first (the captured slides upload to that account).
36
-
37
- `),process.exit(1)}function K(t){let e=t.replace(/^\[|\]$/g,"").toLowerCase();return e==="localhost"||e.endsWith(".localhost")||e==="::1"||/^127(?:\.\d{1,3}){3}$/.test(e)}function Q(t){let e=new URL(t);if(K(e.hostname)){let s=(Number(e.port)||3e3)-3e3;if(s>=0&&s<=1e3)return e.port=String(5173+s),e.origin}return e.hostname==="contrast.dev"||e.hostname.endsWith(".contrast.dev")?F.origin:t}function V(){try{return Number(N("sysctl -n vm.loadavg").toString().trim().split(/\s+/)[1])||0}catch{return 0}}async function X(t,e,n,s){let i=await fetch(`${t}/api/sootsim/screenshot-decks?org=${encodeURIComponent(n)}&repo=${encodeURIComponent(s)}`,{headers:{authorization:`Bearer ${e}`}});if(!i.ok)return[];let a=await i.json().catch(()=>null),d=[];for(let g of a?.decks??[])Array.isArray(g.config?.frames)&&d.push(...g.config.frames);return d}async function Z(t,e,n,s){let i=await fetch(`${t}/api/sootsim/screenshot-capture?ref=${encodeURIComponent(s)}&org=${encodeURIComponent(n)}`,{headers:{authorization:`Bearer ${e}`}});return i.ok?`data:image/png;base64,${Buffer.from(await i.arrayBuffer()).toString("base64")}`:null}async function _(t,e){let n=Date.now()+e;for(;Date.now()<n;){for(let s of t.frames())if(await s.evaluate(()=>!!globalThis.SootSim?.bridges?.screenshotControl).catch(()=>!1))return s;await t.waitForTimeout(250)}throw new Error("screenshot bridge never appeared \u2014 the build shell did not boot screenshot mode (check --branch/--platform has a ready build, and you are logged in)")}async function T(t){return t.evaluate(async()=>{let n=globalThis.SootSim?.bridges?.screenshotControl;if(!n)throw new Error("screenshotControl missing");return n.getState()})}async function ee(t){await t.evaluate(async()=>{let e=globalThis.SootSim?.bridges?.settings,n=Date.now()+3e3;for(;Date.now()<n;){if(e?.get?.()?.screenshotMode)return;await new Promise(s=>setTimeout(s,50))}e&&!e.get().screenshotMode&&(e.set("screenshotMode",!0),e.get().showFrame||e.set("showFrame",!0))})}async function te(t,e,n,s){await t.evaluate(async([i,a,d])=>{let g=globalThis.SootSim,h=g?.bridges?.screenshotControl;if(!h)throw new Error("screenshotControl missing");let w=b=>new Promise(u=>setTimeout(u,b));if(a){h.focusSlide(i);let b=Date.now()+3e4,u=g?.bridges?.threeMode;for(;Date.now()<b&&(u=g?.bridges?.threeMode,!(u?.setScreenImage&&u?.captureStage&&u?.getState?.()?.ready));)await w(150);await w(1e3);let c=a;u?.configure?.({colorway:c.colorway,background:c.background,...c.customGradient?{customGradient:c.customGradient}:{},setting:c.setting,focus:c.focus,environment:c.environmentActive?{pins:c.environmentPins??{},effects:c.environmentEffects??{}}:!1,pose:{phonePosition:c.phonePosition,phoneRotation:c.phoneRotation,cameraPosition:c.cameraPosition,target:c.target}}),await w(900),d&&u?.setScreenImage&&(u.setScreenImage(d),await w(1200))}await h.capture(i)},[e,n,s])}async function ge(t){if(t.includes("--help")||t.includes("-h"))return console.log(H),0;let e=J(t);if(!e.org||!e.repo)return process.stderr.write(` --org and --repo are required (see --help)
38
- `),1;let{token:n,origin:s}=Y(),i=(e.apiOrigin??s).replace(/\/$/,""),a=(e.shellOrigin??Q(i)).replace(/\/$/,""),d=await X(i,n,e.org,e.repo);if(!e.dryRun&&!e.force&&d.length>0)return process.stderr.write(` refusing to overwrite the existing ${e.org}/${e.repo} deck (${d.length} slide(s)). re-run with --force to replace it, or --dry-run to preview.
39
- `),1;let g=V(),h=Number(N("sysctl -n hw.ncpu").toString().trim())||8;if(g>h)return process.stderr.write(` load average ${g.toFixed(1)} exceeds ${h} cores \u2014 tear down other work first.
40
- `),1;let w=`${a}/build/${encodeURIComponent(e.org)}/${encodeURIComponent(e.repo)}/${encodeURIComponent(e.branch)}?platform=${encodeURIComponent(e.platform)}&ssMode=1`,b=E(I(q(),"sootsim-capture-")),{browser:u,reapNow:c}=await U(o=>W.launchPersistentContext(b,o),{headless:!0,viewport:{width:393,height:852},deviceScaleFactor:3,args:["--hide-scrollbars"]});await u.addInitScript(o=>{try{localStorage.setItem("sootsim.session.token",o)}catch{}},n);let y=[],m=u.pages()[0]??await u.newPage();e.dryRun?await m.route(/\/api\/sootsim\/screenshot-(decks|capture)/,o=>o.request().method()==="PUT"?o.abort():o.continue()):m.on("response",o=>{let p=o.url();o.request().method()==="PUT"&&(p.includes("/api/sootsim/screenshot-decks")?y.push({kind:"deck",status:o.status()}):p.includes("/api/sootsim/screenshot-capture")&&y.push({kind:"capture",status:o.status()}))});let R=[];m.on("pageerror",o=>R.push(o.message));let A=m.waitForResponse(o=>o.url().includes("/api/sootsim/screenshot-decks")&&o.request().method()==="GET",{timeout:e.timeoutMs}).catch(()=>null);try{await m.goto(w,{waitUntil:"domcontentloaded",timeout:e.timeoutMs});let o=await _(m,e.timeoutMs);await ee(o),await A,await m.waitForTimeout(800);let p=await T(o);if(p.slides.length===0)return process.stderr.write(` the deck has no slides to capture \u2014 add slides in the composer first.
41
- `),1;let $=e.slides?p.slides.filter(r=>e.slides.includes(r.index)):p.slides;console.log(` ${p.projectName} on ${p.deviceModel} \u2014 capturing ${$.length}/${p.slides.length} slide(s)${e.dryRun?" (dry-run, no upload)":""}`);for(let r of $)try{let l=d[r.index-1],f=l?.threeScene??null,C=f&&l?.screenRef?await Z(i,n,e.org,l.screenRef):null;await te(o,r.index,f,C),console.log(` \u2713 slide ${r.index} "${r.title.slice(0,40)}"`)}catch(l){console.log(` \u2717 slide ${r.index} "${r.title.slice(0,40)}" \u2014 ${l.message}`)}e.dryRun||await m.waitForTimeout(2500);let S=(await T(o)).slides.filter(r=>$.some(l=>l.id===r.id)),v=[];if(e.out){let r=L(e.out)?e.out:z(process.cwd(),e.out);for(let l of S){if(!l.captureRef)continue;let f=await o.evaluate(async k=>{let x=globalThis.SootSim?.bridges?.screenshotControl;if(!x)throw new Error("screenshotControl missing");return x.exportSlide(k)},l.index),C=f.dataUrl.match(/^data:[^;]+;base64,(.+)$/);if(C){let k=I(r,f.name);O(B(k),{recursive:!0}),G(k,Buffer.from(C[1],"base64")),v.push(k)}}}let P=S.filter(r=>r.captureRef&&r.cleanRef),D={org:e.org,repo:e.repo,branch:e.branch,dryRun:e.dryRun,slides:S.map(r=>({index:r.index,title:r.title,captureRef:!!r.captureRef,cleanRef:!!r.cleanRef,screenRef:!!r.screenRef,captureMode:r.captureMode})),editableCount:P.length,uploads:e.dryRun?"skipped (dry-run)":y,written:v,pageErrors:R.slice(0,5)};if(e.json)console.log(JSON.stringify(D,null,2));else{console.log(`
42
- ${P.length}/${S.length} slide(s) now have editable layers (captureRef + cleanRef)`);let r=S.filter(l=>l.captureRef&&!l.cleanRef);if(r.length&&console.log(` \u26A0 ${r.length} slide(s) baked a flat capture only (no cleanRef) \u2014 typically 3d slides whose scene didn't restore for a re-bake.`),!e.dryRun){let l=y.filter(f=>f.status>=200&&f.status<300).length;console.log(` uploads: ${l}/${y.length} PUT(s) succeeded`)}v.length&&console.log(` wrote ${v.length} local PNG(s) to ${e.out}`),R.length&&console.log(` \u26A0 ${R.length} page error(s) during capture`)}return 0}finally{await u.close().catch(()=>{}),c(),j(b,{recursive:!0,force:!0})}}export{ge as runScreenshotsCapture};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-ESVUVW3R.js";import"./chunk-NERY6HGZ.js";import"./chunk-2YK5J2D2.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-YSHJ3LMQ.js";import"./chunk-BWJOLJOK.js";import"./chunk-WXRDFUR7.js";import"./chunk-FSPZY4AI.js";import"./chunk-4VA2ISWX.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-TC6DNQL6.js";import"./chunk-IXRVFQMT.js";import"./chunk-TPIPKXJL.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as runSetup};
@@ -1,50 +0,0 @@
1
- /*! rnx v0.1.368 | (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 h}from"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnx skill
5
-
6
- install and inspect bundled rnx agent skills.
7
-
8
- usage:
9
- rnx skill install [all|codex|claude] [skill-name...]
10
- rnx skill install --target <dir> [skill-name...]
11
- rnx skill show [skill-name]
12
-
13
- commands:
14
- install install skills; no target means all supported local agents
15
- show list bundled skills, or print one skill markdown
16
-
17
- targets:
18
- all Codex and Claude Code (default)
19
- codex $CODEX_HOME/skills, or ~/.codex/skills
20
- claude $CLAUDE_CONFIG_DIR/skills, or ~/.claude/skills
21
- `)}function y(){console.log(`rnx skill install
22
-
23
- install bundled rnx skills in the agent skill layout: <skill>/SKILL.md.
24
- each skill directory is symlinked back to its source, so edits stay live
25
- without a re-install. an existing install from an older CLI is upgraded in
26
- place; an unrelated skill directory is left alone unless --force is passed.
27
-
28
- usage:
29
- rnx skill install [all|codex|claude] [skill-name...]
30
- rnx skill install --target <dir> [skill-name...]
31
-
32
- options:
33
- --force, -f replace a conflicting existing skill with the symlink
34
-
35
- examples:
36
- rnx skill install
37
- rnx skill install codex
38
- rnx skill install codex rnx-debug
39
- rnx skill install --force rnx-debug
40
- `)}function g(e,n){let t=process.env[e]||a.join(L.homedir(),n);return a.join(t,"skills")}function k(){return[{label:"codex",dir:g("CODEX_HOME",".codex")},{label:"claude",dir:g("CLAUDE_CONFIG_DIR",".claude")}]}function v(e){if(e==="all")return k();if(e==="codex")return[{label:"codex",dir:g("CODEX_HOME",".codex")}];if(e==="claude")return[{label:"claude",dir:g("CLAUDE_CONFIG_DIR",".claude")}];console.error(` unknown skill install target: ${e}`),console.error(" expected all, codex, or claude"),process.exit(1)}function C(e){let n=e.match(/^---\n([\s\S]*?)\n---/);if(!n)return null;let t=n[1],s=I(t,"name");return s?{name:s,description:I(t,"description")||""}:null}function I(e,n){let t=e.split(`
41
- `),s=`${n}:`;for(let i=0;i<t.length;i++){let r=t[i];if(!r.startsWith(s))continue;let o=r.slice(s.length).trim();if(o===">-"||o===">"||o==="|-"||o==="|"){let c=[];for(let u=i+1;u<t.length;u++){let f=t[u];if(/^[A-Za-z0-9_-]+:\s*/.test(f))break;if(f.trim()===""){c.push("");continue}if(!/^\s+/.test(f))break;c.push(f.trim())}return c.join(o.startsWith("|")?`
42
- `:" ").trim()}return o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'")?o.slice(1,-1):o}return null}function p(){if(!l.existsSync(d))return[];let e=[];for(let n of l.readdirSync(d)){let t=a.join(d,n,"SKILL.md");if(!l.existsSync(t))continue;let s=C(l.readFileSync(t,"utf8"));s&&e.push({name:n,description:s.description})}return e.sort((n,t)=>n.name.localeCompare(t.name))}function b(e,n){if(n.length===0)return e;let t=e.filter(s=>n.some(i=>{let r=i.replace(/^sootsim-/,"").replace(/^rnx-/,"");return s.name.includes(i)||s.name.replace(/^rnx-/,"").includes(r)}));return t.length===0&&(console.error(` no skills matched: ${n.join(", ")}`),console.error(" available: "+e.map(s=>s.name).join(", ")),process.exit(1)),t}function m(e){try{return l.lstatSync(e)}catch{return null}}function E(e,n){let t=m(e);if(!t||!t.isSymbolicLink())return!1;try{return l.realpathSync(e)===l.realpathSync(n)}catch{return!1}}function $(e,n,t){if(e.isSymbolicLink()||!e.isDirectory())return!1;let s;try{s=l.readdirSync(n)}catch{return!1}if(s.length!==1||s[0]!=="SKILL.md")return!1;let i=a.join(n,"SKILL.md"),r=m(i);if(!r)return!1;if(r.isSymbolicLink())try{return l.readlinkSync(i).includes(`${a.sep}skills${a.sep}`)}catch{return!1}if(!r.isFile())return!1;try{return l.readFileSync(i).equals(l.readFileSync(a.join(t,"SKILL.md")))}catch{return!1}}function _(e,n,t){let s=a.join(d,e.name),i=a.join(n,e.name);l.mkdirSync(n,{recursive:!0});let r=m(i);return r?E(i,s)?"up-to-date":t||$(r,i,s)?(l.rmSync(i,{recursive:!0,force:!0}),l.symlinkSync(s,i),"replaced"):"conflict":(l.symlinkSync(s,i),"linked")}function N(){let e=p();if(e.length!==0)for(let n of k()){let t=a.resolve(n.dir);if(l.existsSync(a.dirname(t))){try{l.mkdirSync(t,{recursive:!0})}catch{continue}try{w(t)}catch{}for(let s of e)try{_(s,t,!1)}catch{}}}}var T=["sootsim-setup","sootsim-debug","sootsim-perf","sootsim-test","sootsim-visual"];function w(e){for(let n of T){let t=a.join(e,n),s=m(t);s&&(s.isSymbolicLink()||$(s,t,a.join(d,n)))&&l.rmSync(t,{recursive:!0,force:!0})}}function F(e){if(e.length===0){console.log(" no skills found");return}console.log(`
43
- available skills:
44
- `);for(let n of e)console.log(` ${n.name}`),console.log(` ${n.description}
45
- `);console.log(" usage: rnx skill install [all|codex|claude] [skill-name...]"),console.log(` usage: rnx skill show [skill-name]
46
- `)}function O(e){let n=null,t=!1,s=[];for(let i=0;i<e.length;i++){let r=e[i];if((r==="--help"||r==="-h")&&(y(),process.exit(0)),r==="--force"||r==="-f"){t=!0;continue}if(r==="--target"){let o=e[i+1];(!o||o.startsWith("-"))&&(console.error(" --target requires a directory"),process.exit(1)),n&&(console.error(" pass only one install target"),process.exit(1)),n=[{label:"target",dir:o}],i++;continue}if(r.startsWith("-")&&(console.error(` unknown option: ${r}`),y(),process.exit(1)),!n&&j.has(r)){n=v(r);continue}s.push(r)}return{targets:n??k(),filters:s,force:t}}async function A(e){let n=p();n.length===0&&(console.error(" no skills found in rnx package"),process.exit(1));let t=O(e),s=b(n,t.filters),i=t.targets.map(o=>({...o,dir:a.resolve(o.dir)}));for(let o of i)l.mkdirSync(o.dir,{recursive:!0}),l.statSync(o.dir).isDirectory()||(console.error(` target is not a directory: ${o.dir}`),process.exit(1)),w(o.dir);console.log(`
47
- installing ${s.length} skill(s) to ${i.length} target(s)
48
- `);let r=0;for(let o of i){console.log(` target ${o.label}: ${o.dir}`);for(let c of s){let u=a.join(o.dir,c.name),f=_(c,o.dir,t.force);f==="linked"?console.log(` linked ${c.name} -> ${u}`):f==="replaced"?console.log(` relinked ${c.name} -> ${u}`):f==="up-to-date"?console.log(` up to date ${c.name}`):(r++,console.log(` conflict ${c.name}: ${u} exists and is not this skill \u2014 pass --force to replace`))}console.log("")}r>0&&(console.error(` ${r} conflict(s); rerun with --force only if replacing them is intended.
49
- `),process.exit(1)),console.log(` done. restart the agent session to load newly installed skills.
50
- `)}function R(e){let n=p(),t=e.find(r=>!r.startsWith("-"));if(!t){F(n);return}let[s]=b(n,[t]),i=l.readFileSync(a.join(d,s.name,"SKILL.md"),"utf8");console.log(i)}async function G(e){let[n,...t]=e;if(!n||n==="--help"||n==="-h"){S();return}if(n==="install"){await A(t);return}if(n==="show"||n==="list"){R(t);return}console.error(` unknown skill command: ${n}`),S(),process.exit(1)}export{N as refreshInstalledSkills,G as runSkill};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-WFAFAGMG.js";import"./chunk-EHA65UVJ.js";import"./chunk-Q65KH25G.js";export{a as settingsStore};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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}from"./chunk-TC6DNQL6.js";import"./chunk-IXRVFQMT.js";import"./chunk-TPIPKXJL.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";export{a as buildCliDiagnosticEvent,d as flushCliTelemetry,b as trackCliDiagnostic,c as trackCliError};
@@ -1,24 +0,0 @@
1
- /*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{t as m,v as d,y as i}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";import{writeFileSync as g}from"fs";function u(){console.log(`
5
- rnx timeline \u2014 control the semantic event timeline
6
-
7
- usage:
8
- rnx timeline <subcommand> [args]
9
-
10
- subcommands:
11
- status show enabled kinds and ring sizes
12
- start [kinds] enable kinds (csv); 'all' for every opt-in
13
- stop [kinds] disable kinds (csv); 'all' for every kind
14
- clear drop all events + cursors
15
- dump <file> write current merged ring to JSON
16
-
17
- note: cheap kinds (console, fetch, app-launch, keyboard, screen, alert,
18
- toast, notification, route, shell, actionsheet, picker) record at all times.
19
- start/stop enables opt-in kinds (react-commit, scroll, gesture, text-input,
20
- layout, reanimated, animation).
21
-
22
- read the timeline with: rnx what-happened
23
- `)}async function h(n,p){let o=m(n,{port:p.port,stripBooleanFlags:["--json","--help","-h"]}),l=o.positional[0];(!l||n.includes("--help")||n.includes("-h"))&&(u(),process.exit(0));let r=n.includes("--json"),t=d(o),a=o.positional.slice(1),s=a[0]?a[0].split(",").map(e=>e.trim()).filter(Boolean):[];try{switch(l){case"status":{let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"start":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.enable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"stop":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.disable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"clear":{await i(t,"SootSim.bridges.timeline.clear"),console.log(" cleared");break}case"dump":{let e=a[0];e||(console.error(" usage: rnx timeline dump <file>"),process.exit(1));let c=await i(t,"SootSim.bridges.timeline.recent",{limit:1e6});g(e,JSON.stringify(c.events,null,2)+`
24
- `),console.log(` wrote ${c.events.length} event(s) to ${e}`);break}default:console.error(` unknown subcommand: ${l}`),u(),process.exit(1)}}finally{t.close()}}export{h as runTimeline};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.368 | (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-YYPTSF6W.js";import"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-WF2CRNYF.js";import"./chunk-PNBQBBG5.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
@@ -1,5 +0,0 @@
1
- /*! rnx v0.1.368 | (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 t}from"./chunk-ESVUVW3R.js";import"./chunk-NERY6HGZ.js";import"./chunk-2YK5J2D2.js";import{q as e}from"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-YSHJ3LMQ.js";import"./chunk-BWJOLJOK.js";import"./chunk-WXRDFUR7.js";import"./chunk-FSPZY4AI.js";import"./chunk-4VA2ISWX.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-TC6DNQL6.js";import{a as r}from"./chunk-IXRVFQMT.js";import{f as o}from"./chunk-TPIPKXJL.js";import"./chunk-AUPJX4KI.js";import{C as n}from"./chunk-E6XYIIJK.js";import"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";async function u(){return!n()&&r()?(await t([],{launchConnectRN:!0}),0):(o("Run any React Native app in a local simulator."),console.log(`
5
- Opening ConnectRN`),await e(["ConnectRN","--no-describe","--quiet"]),0)}export{u as runWelcome};
@@ -1,25 +0,0 @@
1
- /*! rnx v0.1.368 | (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 F,B as T,D as y,O as A,P as b,Q as S}from"./chunk-M7COA4BE.js";import{e as k,t as x,v as N}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=x(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
5
- rnx what-happened \u2014 show recent events from the semantic timeline
6
-
7
- usage:
8
- rnx what-happened # since last CLI call
9
- rnx what-happened --summary # one-line counts
10
- rnx what-happened --all # full ring (ignore cursor)
11
- rnx what-happened --since 5s # absolute window
12
- rnx what-happened --kinds toast,fetch
13
- rnx what-happened --noisy # include react-commit/layout/scroll
14
- rnx what-happened --limit 50
15
- rnx what-happened --json
16
- rnx what-happened --no-advance # don't advance cursor after read
17
-
18
- note: react-commit, layout, and scroll are opt-in/noisy events. enable them
19
- with "rnx timeline start <kind>", then pass --noisy or include them in
20
- --kinds to see them.
21
- `),process.exit(0));let s=n.includes("--summary"),l=n.includes("--flow"),i=n.includes("--all"),c=n.includes("--json"),u=n.includes("--no-advance"),v=n.includes("--noisy"),{since:a}=O(n),{kinds:d}=B(n),{limit:C}=D(n),g=k(),$={limit:C??200,...d&&d.length?{kinds:d}:{},...a!==void 0?{since:a}:i?{}:{sinceCursor:g}},h=N(e);try{if(s){let r=await F(h,$);if(c)console.log(JSON.stringify(r));else{let m=i?"all time":a!==void 0?`last ${((Date.now()-a)/1e3).toFixed(1)}s`:"since last call";console.log(` ${m}: ${A(r)}`)}!u&&!i&&r.lastAt&&await y(h,g,r.lastAt);return}let o=await T(h,$),E=Array.isArray(d)&&d.some(r=>b.has(r)),I=!v&&!E,p=0;if(I){let r=o.events.filter(m=>b.has(m.kind)?(p+=1,!1):!0);o.events=r}if(c)console.log(JSON.stringify(l?_(o.events):o,null,2));else{if(o.events.length===0)p>0?console.log(` no non-noise events (${p} react-commit/layout/scroll hidden)`):console.log(i?" no events recorded":a!==void 0?" no events in window":" no new events since last call");else if(l){let r=o.events[0]?.t??null,m=_(o.events),w=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2014 flow view \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2014 flow view \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2014 flow view \u2500\u2500\u2500`;console.log(` ${w}`);for(let f of m){console.log(`
22
- \u2500\u2500 ${f.label} (${f.events.length} event${f.events.length===1?"":"s"}) \u2500\u2500`);for(let M of f.events)console.log(S(M,r))}}else{let r=o.events[0]?.t??null,m=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2500\u2500\u2500`;console.log(` ${m}`);for(let w of o.events)console.log(S(w,r))}p>0&&o.events.length>0&&process.stderr.write(`
23
- ${p} high-frequency event(s) hidden (react-commit/layout/scroll)
24
- rerun with --noisy or --kinds react-commit,layout,scroll to include them
25
- `)}!u&&!i&&o.watermark>0&&await y(h,g,o.watermark)}finally{h.close()}}export{J as runWhatHappened};