rnxsim 0.1.376 → 0.1.377

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 (295) hide show
  1. package/README.md +28 -25
  2. package/cli/app-config.ts +9 -12
  3. package/cli/app-fonts.ts +3 -3
  4. package/cli/app-project.ts +8 -8
  5. package/cli/auth.ts +7 -9
  6. package/cli/bin.ts +16 -31
  7. package/cli/bridge-flow-runner.ts +3 -3
  8. package/cli/browser-backend.ts +44 -0
  9. package/cli/command-contract.ts +221 -0
  10. package/cli/command-registry.ts +291 -0
  11. package/cli/commands/agent-wrapper.ts +2 -2
  12. package/cli/commands/app-fonts.ts +2 -2
  13. package/cli/commands/assert.ts +3 -3
  14. package/cli/commands/auth.ts +1 -1
  15. package/cli/commands/box/cloud-box.ts +1 -1
  16. package/cli/commands/box/plane-share.ts +2 -2
  17. package/cli/commands/box.ts +4 -6
  18. package/cli/commands/compat.ts +1 -1
  19. package/cli/commands/config.ts +2 -2
  20. package/cli/commands/control.ts +29 -29
  21. package/cli/commands/cpu-profile.ts +7 -7
  22. package/cli/commands/daemon-mac-app.ts +7 -7
  23. package/cli/commands/daemon.ts +10 -10
  24. package/cli/commands/debug.ts +11 -11
  25. package/cli/commands/detox.ts +13 -13
  26. package/cli/commands/diagnose.ts +6 -6
  27. package/cli/commands/do-chain.ts +1 -2
  28. package/cli/commands/electron.ts +1 -3
  29. package/cli/commands/film.ts +3 -3
  30. package/cli/commands/flow.ts +43 -43
  31. package/cli/commands/inspect/count.ts +1 -1
  32. package/cli/commands/inspect/describe.ts +1 -1
  33. package/cli/commands/inspect/env.ts +2 -2
  34. package/cli/commands/inspect/get-layout.ts +1 -1
  35. package/cli/commands/inspect/keyboard.ts +1 -1
  36. package/cli/commands/inspect/list.ts +1 -1
  37. package/cli/commands/inspect/memory.ts +1 -1
  38. package/cli/commands/inspect/resolve-target.ts +1 -1
  39. package/cli/commands/inspect/screens.ts +1 -1
  40. package/cli/commands/inspect/tree.ts +1 -1
  41. package/cli/commands/inspect/url.ts +1 -1
  42. package/cli/commands/inspect/wait-event.ts +5 -5
  43. package/cli/commands/inspect.ts +34 -34
  44. package/cli/commands/install-desktop.ts +3 -3
  45. package/cli/commands/login.ts +6 -6
  46. package/cli/commands/maestro-generate.ts +5 -5
  47. package/cli/commands/maestro.ts +5 -5
  48. package/cli/commands/profile.ts +1 -1
  49. package/cli/commands/record.ts +9 -9
  50. package/cli/commands/runtime.ts +18 -18
  51. package/cli/commands/screenshot-command.ts +1 -1
  52. package/cli/commands/screenshot-layers.ts +5 -5
  53. package/cli/commands/screenshot-mode.ts +1 -1
  54. package/cli/commands/screenshot.ts +8 -8
  55. package/cli/commands/screenshots-capture.ts +5 -5
  56. package/cli/commands/serve.ts +3 -3
  57. package/cli/commands/setup.ts +20 -12
  58. package/cli/commands/skills.ts +5 -5
  59. package/cli/commands/slides.ts +1 -1
  60. package/cli/commands/telemetry.ts +1 -1
  61. package/cli/commands/three-mode.ts +1 -1
  62. package/cli/commands/timeline.ts +8 -8
  63. package/cli/commands/upgrade.ts +116 -131
  64. package/cli/commands/upload.ts +12 -12
  65. package/cli/commands/version.ts +7 -7
  66. package/cli/commands/what-happened.ts +9 -9
  67. package/cli/current-sim.ts +3 -3
  68. package/cli/desktop-companion.ts +1 -1
  69. package/cli/drivers/playwright.ts +9 -9
  70. package/cli/drivers/registry.ts +1 -1
  71. package/cli/drivers/types.ts +1 -1
  72. package/cli/flow-file.ts +2 -2
  73. package/cli/flow-session.ts +1 -1
  74. package/cli/help-core.ts +136 -0
  75. package/cli/help.ts +17 -53
  76. package/cli/hints.ts +5 -5
  77. package/cli/inspect-notice-state.ts +1 -1
  78. package/cli/maestro-js.ts +1 -1
  79. package/cli/outbound-endpoints.ts +23 -5
  80. package/cli/parse-args.ts +19 -66
  81. package/cli/recording-access.ts +1 -1
  82. package/cli/registry.ts +1 -0
  83. package/cli/run-registry.ts +1 -1
  84. package/cli/run-rnx-core.ts +148 -0
  85. package/cli/run-rnx.ts +6 -9
  86. package/cli/runtime-notes.ts +3 -3
  87. package/cli/standalone.ts +4 -0
  88. package/cli/ws-bridge.ts +8 -8
  89. package/detox/config-loader.ts +2 -2
  90. package/detox/index.ts +8 -8
  91. package/detox/jest-preset.cjs +1 -1
  92. package/detox/navigation.ts +2 -2
  93. package/dist-lib/agent-daemon-client.cjs +5 -5
  94. package/dist-lib/agent-events.cjs +1 -1
  95. package/dist-lib/agent-identity.cjs +2 -2
  96. package/dist-lib/agent-sessions.cjs +10 -10
  97. package/dist-lib/attached-projects.cjs +6 -6
  98. package/dist-lib/auth/shared-session.cjs +6 -6
  99. package/dist-lib/backend-origin.cjs +1 -1
  100. package/dist-lib/beta.cjs +1 -1
  101. package/dist-lib/beta.mjs +1 -1
  102. package/dist-lib/bridge-constants.cjs +1 -1
  103. package/dist-lib/bridge-contract-input.cjs +1 -1
  104. package/dist-lib/bridge-contract-input.mjs +1 -1
  105. package/dist-lib/bridge-contract.cjs +1 -1
  106. package/dist-lib/bridge-contract.mjs +1 -1
  107. package/dist-lib/cli-constants.cjs +1 -1
  108. package/dist-lib/config.cjs +25 -25
  109. package/dist-lib/detox/index.cjs +9 -9
  110. package/dist-lib/detox/jest-preset.cjs +1 -1
  111. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  112. package/dist-lib/home-paths.cjs +29 -29
  113. package/dist-lib/host/bridge-host.cjs +128 -49
  114. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  115. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  116. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  117. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  118. package/dist-lib/host/websocket-proxy.cjs +1 -1
  119. package/dist-lib/index.cjs +14 -14
  120. package/dist-lib/jump-to-source-babel.cjs +1 -1
  121. package/dist-lib/menu.cjs +1 -1
  122. package/dist-lib/menu.mjs +1 -1
  123. package/dist-lib/metro-production-bundle.cjs +1 -1
  124. package/dist-lib/metro-production-bundle.mjs +1 -1
  125. package/dist-lib/metro.cjs +8 -8
  126. package/dist-lib/profiles.cjs +12 -12
  127. package/dist-lib/public-brand.cjs +1 -1
  128. package/dist-lib/react-native-host-modules.cjs +1 -1
  129. package/dist-lib/react-native-host-modules.mjs +1 -1
  130. package/dist-lib/render-mode.cjs +1 -1
  131. package/dist-lib/scripts/dev-server-scanner.cjs +8 -8
  132. package/dist-lib/sdk.cjs +1 -1
  133. package/dist-lib/sdk.mjs +1 -1
  134. package/dist-lib/skills.cjs +262 -135
  135. package/dist-lib/vite.cjs +9 -9
  136. package/package.json +4 -11
  137. package/scripts/dev-server-scanner.ts +2 -2
  138. package/scripts/optional-demo-registry.ts +1 -1
  139. package/skills/contrast/SKILL.md +3 -3
  140. package/skills/rnx-debug/SKILL.md +1 -1
  141. package/skills/rnx-test/SKILL.md +2 -2
  142. package/src/agent-identity.ts +1 -1
  143. package/src/agent-sessions.ts +7 -5
  144. package/src/cli-version.ts +12 -4
  145. package/src/config.ts +26 -28
  146. package/src/disk-cleanup.ts +11 -11
  147. package/src/home-paths.ts +28 -28
  148. package/src/host/bridge-host.ts +16 -16
  149. package/src/metro-plugin.ts +2 -2
  150. package/src/profiles.ts +2 -2
  151. package/src/runtime-assets.ts +7 -7
  152. package/src/runtime-delivery.ts +13 -13
  153. package/src/screenshots/orchestrate.ts +1 -1
  154. package/src/screenshots/schema.ts +2 -2
  155. package/src/skills/builtin/a11y-review.ts +2 -2
  156. package/src/skills/builtin/compat-check.ts +2 -2
  157. package/src/skills/builtin/maestro-test.ts +2 -2
  158. package/src/skills/builtin/perf-profile.ts +2 -2
  159. package/src/skills/builtin/screenshot-all.ts +2 -2
  160. package/src/skills/builtin/visual-diff.ts +2 -2
  161. package/src/skills/registry.ts +8 -8
  162. package/src/skills/types.ts +1 -1
  163. package/src/vite-plugin-one.ts +3 -3
  164. package/src/vite-plugin.ts +15 -2
  165. package/dist-cli/bin.js +0 -15
  166. package/dist-cli/chunks/agent-H42FCKFF.js +0 -48
  167. package/dist-cli/chunks/agent-wrapper-BBZKTZS6.js +0 -17
  168. package/dist-cli/chunks/app-fonts-43VXIKF4.js +0 -4
  169. package/dist-cli/chunks/assert-IXOLVO5Z.js +0 -49
  170. package/dist-cli/chunks/auth-KFMFB6FU.js +0 -12
  171. package/dist-cli/chunks/beta-5AO3SJB7.js +0 -4
  172. package/dist-cli/chunks/box-ZHM66L6K.js +0 -1730
  173. package/dist-cli/chunks/camera-FNJVFCDQ.js +0 -33
  174. package/dist-cli/chunks/chunk-37MCSPTE.js +0 -71
  175. package/dist-cli/chunks/chunk-3PEMSUAQ.js +0 -30
  176. package/dist-cli/chunks/chunk-4TQ5HOK3.js +0 -7
  177. package/dist-cli/chunks/chunk-5YZYDEMI.js +0 -4
  178. package/dist-cli/chunks/chunk-6CV3R3XD.js +0 -15
  179. package/dist-cli/chunks/chunk-7LGK5XU6.js +0 -4
  180. package/dist-cli/chunks/chunk-7R2TK2NY.js +0 -4
  181. package/dist-cli/chunks/chunk-7VZZQQEE.js +0 -497
  182. package/dist-cli/chunks/chunk-AFOVILIL.js +0 -130
  183. package/dist-cli/chunks/chunk-BEU7CD7E.js +0 -9
  184. package/dist-cli/chunks/chunk-CE4JQJ6Y.js +0 -6
  185. package/dist-cli/chunks/chunk-CIE6CZXL.js +0 -142
  186. package/dist-cli/chunks/chunk-CSJ7L7ZL.js +0 -312
  187. package/dist-cli/chunks/chunk-CWCQP53A.js +0 -27
  188. package/dist-cli/chunks/chunk-DCS5FK5N.js +0 -7
  189. package/dist-cli/chunks/chunk-DEV3E3MV.js +0 -4
  190. package/dist-cli/chunks/chunk-DGJMIVZM.js +0 -5
  191. package/dist-cli/chunks/chunk-DGX3MN65.js +0 -5
  192. package/dist-cli/chunks/chunk-DNPQMTW5.js +0 -4
  193. package/dist-cli/chunks/chunk-DOVBJBVD.js +0 -5
  194. package/dist-cli/chunks/chunk-DPBJ3S3J.js +0 -3
  195. package/dist-cli/chunks/chunk-FVZBGPCU.js +0 -4
  196. package/dist-cli/chunks/chunk-GDKMOIUT.js +0 -4
  197. package/dist-cli/chunks/chunk-GIF2NJCS.js +0 -32
  198. package/dist-cli/chunks/chunk-GZE57ORL.js +0 -4
  199. package/dist-cli/chunks/chunk-H3U56DKI.js +0 -24
  200. package/dist-cli/chunks/chunk-HZLOYAPH.js +0 -4
  201. package/dist-cli/chunks/chunk-J2IKAEU2.js +0 -4
  202. package/dist-cli/chunks/chunk-JXAXYK7W.js +0 -11
  203. package/dist-cli/chunks/chunk-KJE2O2GK.js +0 -4
  204. package/dist-cli/chunks/chunk-KMNVDZZI.js +0 -423
  205. package/dist-cli/chunks/chunk-LC3QRIRB.js +0 -10
  206. package/dist-cli/chunks/chunk-LGFTAQYC.js +0 -4
  207. package/dist-cli/chunks/chunk-LQMUA5IY.js +0 -4
  208. package/dist-cli/chunks/chunk-MFIQTWC5.js +0 -4
  209. package/dist-cli/chunks/chunk-MGALNF2F.js +0 -7
  210. package/dist-cli/chunks/chunk-MLBZZHOY.js +0 -4
  211. package/dist-cli/chunks/chunk-NNRF7GIB.js +0 -107
  212. package/dist-cli/chunks/chunk-NORLYTTO.js +0 -7
  213. package/dist-cli/chunks/chunk-P6KVGV3H.js +0 -14
  214. package/dist-cli/chunks/chunk-PAJTUK33.js +0 -4
  215. package/dist-cli/chunks/chunk-QELIC5XP.js +0 -4
  216. package/dist-cli/chunks/chunk-QRDF33WD.js +0 -11
  217. package/dist-cli/chunks/chunk-R76BA7C7.js +0 -535
  218. package/dist-cli/chunks/chunk-RVEB4CZ2.js +0 -4
  219. package/dist-cli/chunks/chunk-SK4M7NXT.js +0 -5
  220. package/dist-cli/chunks/chunk-SKMG5DD7.js +0 -5
  221. package/dist-cli/chunks/chunk-TEESPOYR.js +0 -4
  222. package/dist-cli/chunks/chunk-TH2UFGVP.js +0 -4
  223. package/dist-cli/chunks/chunk-TLP3T3VO.js +0 -4
  224. package/dist-cli/chunks/chunk-TZUABDIJ.js +0 -38
  225. package/dist-cli/chunks/chunk-UB2W6OQM.js +0 -99
  226. package/dist-cli/chunks/chunk-UYVXALPB.js +0 -506
  227. package/dist-cli/chunks/chunk-VQDYFFIG.js +0 -5
  228. package/dist-cli/chunks/chunk-VWCNJPCJ.js +0 -5
  229. package/dist-cli/chunks/chunk-VZIK4WIS.js +0 -74
  230. package/dist-cli/chunks/chunk-W3FNXAQP.js +0 -4
  231. package/dist-cli/chunks/chunk-XCDNVNP3.js +0 -4
  232. package/dist-cli/chunks/chunk-XSVILA4Z.js +0 -4
  233. package/dist-cli/chunks/chunk-XUTJ7ZWD.js +0 -4
  234. package/dist-cli/chunks/chunk-YTXY3MHW.js +0 -4
  235. package/dist-cli/chunks/chunk-ZF7PVX44.js +0 -28
  236. package/dist-cli/chunks/chunk-ZSSG7OR7.js +0 -4
  237. package/dist-cli/chunks/cleanup-MLOK2OZA.js +0 -25
  238. package/dist-cli/chunks/cli-version-OBNR366V.js +0 -4
  239. package/dist-cli/chunks/compat-SHMFSKU7.js +0 -23
  240. package/dist-cli/chunks/config-TPEAEUJ2.js +0 -13
  241. package/dist-cli/chunks/connect-3LEXWTE5.js +0 -4
  242. package/dist-cli/chunks/control-Z3FWA6BO.js +0 -4
  243. package/dist-cli/chunks/daemon-RSVYSC65.js +0 -4
  244. package/dist-cli/chunks/debug-GUVAK2KR.js +0 -200
  245. package/dist-cli/chunks/desktop-OOP2PTKP.js +0 -31
  246. package/dist-cli/chunks/detox-C2ILVBEC.js +0 -52
  247. package/dist-cli/chunks/device-NXIQQJWR.js +0 -18
  248. package/dist-cli/chunks/diagnose-2JBGYE5L.js +0 -43
  249. package/dist-cli/chunks/disk-cleanup-VURWJYQV.js +0 -4
  250. package/dist-cli/chunks/do-chain-DJ4UQC7A.js +0 -5
  251. package/dist-cli/chunks/drivers-JMA2OIKU.js +0 -4
  252. package/dist-cli/chunks/env-KTNPKEZR.js +0 -4
  253. package/dist-cli/chunks/film-DCPS7EID.js +0 -74
  254. package/dist-cli/chunks/flow-4DZ7B2OA.js +0 -4
  255. package/dist-cli/chunks/help-34CJMQY2.js +0 -4
  256. package/dist-cli/chunks/hidden-runtime-alias-HHT2C7WE.js +0 -4
  257. package/dist-cli/chunks/home-paths-KTPGCPMS.js +0 -4
  258. package/dist-cli/chunks/inspect-JF5WYJRD.js +0 -4
  259. package/dist-cli/chunks/install-desktop-ZIC4CDXI.js +0 -4
  260. package/dist-cli/chunks/login-TTJAOI2Q.js +0 -26
  261. package/dist-cli/chunks/logout-ERAQ6SKW.js +0 -4
  262. package/dist-cli/chunks/maestro-W46QCF77.js +0 -108
  263. package/dist-cli/chunks/maestro-generate-VBLM3MTU.js +0 -36
  264. package/dist-cli/chunks/mode-ZEDZK7R7.js +0 -26
  265. package/dist-cli/chunks/optional-demo-registry-ZUTPSVYQ.js +0 -4
  266. package/dist-cli/chunks/perf-YVT2WXT4.js +0 -48
  267. package/dist-cli/chunks/permissions-L7VVDHFP.js +0 -13
  268. package/dist-cli/chunks/platform-7TJOU2FB.js +0 -6
  269. package/dist-cli/chunks/privacy-57UOTB5J.js +0 -4
  270. package/dist-cli/chunks/record-VXG37P7U.js +0 -72
  271. package/dist-cli/chunks/report-issue-WNNOBZHC.js +0 -29
  272. package/dist-cli/chunks/reset-H5NBFE5U.js +0 -4
  273. package/dist-cli/chunks/resolve-target-57TK5WLE.js +0 -4
  274. package/dist-cli/chunks/runtime-QU2NIF2K.js +0 -4
  275. package/dist-cli/chunks/screenshot-command-AN56TTG7.js +0 -159
  276. package/dist-cli/chunks/screenshot-layers-3W5R7DB2.js +0 -20
  277. package/dist-cli/chunks/screenshots-capture-6AWJY7XZ.js +0 -42
  278. package/dist-cli/chunks/serve-GLYO5Q7J.js +0 -56
  279. package/dist-cli/chunks/setup-UA2HLD7S.js +0 -4
  280. package/dist-cli/chunks/sim-client-5C2RDQQO.js +0 -4
  281. package/dist-cli/chunks/skills-EYXWBRNQ.js +0 -50
  282. package/dist-cli/chunks/state-REJ7W6K3.js +0 -14
  283. package/dist-cli/chunks/storage-CFMDHI3V.js +0 -37
  284. package/dist-cli/chunks/store-XMCUA45G.js +0 -4
  285. package/dist-cli/chunks/telemetry-FBL3NAKB.js +0 -4
  286. package/dist-cli/chunks/timeline-HMCHN5FO.js +0 -24
  287. package/dist-cli/chunks/upgrade-2QSPAA3P.js +0 -7
  288. package/dist-cli/chunks/upload-DUQBKZYV.js +0 -4
  289. package/dist-cli/chunks/version-IOA6QFGB.js +0 -6
  290. package/dist-cli/chunks/web-NCGUYVCJ.js +0 -4
  291. package/dist-cli/chunks/welcome-QYGSQCWQ.js +0 -5
  292. package/dist-cli/chunks/what-happened-YTOUK4LO.js +0 -25
  293. package/dist-cli/chunks/ws-bridge-OF4OZARG.js +0 -4
  294. package/scripts/postinstall.cjs +0 -3
  295. package/scripts/preuninstall.cjs +0 -118
@@ -1,5 +0,0 @@
1
- /*! rnx v0.1.376 | (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-ZSSG7OR7.js";var p=class extends Error{constructor(s){super(s),this.name="BridgeInputError"}};var k=new Set(["tap","tap-id","tap-text","double-tap","long-press","type","type-into","key","key-sequence","dismiss","scroll","drag","swipe","pinch","touch","sleep"]);function O(a){return a.includes("--then")}function o(a,s){throw new p(`do chain action ${a+1} has invalid arguments; usage: rnx do ${s}`)}function r(a,s,l){let n=Number(a);return(a===void 0||!Number.isFinite(n))&&o(s,l),n}function D(a){let s=[[]];for(let l of a){if(l!=="--then"){s[s.length-1].push(l);continue}if(s[s.length-1].length===0)throw new p("do chain contains an empty action");s.push([])}if(s.length<2)throw new p("do chain needs at least two actions separated by --then");if(s[s.length-1].length===0)throw new p("do chain cannot end with --then");return s.flatMap((l,n)=>{let[d,...t]=l;if(!d)throw new p("do chain contains an empty action");if(!k.has(d))throw new p(`do chain action ${n+1} cannot batch ${JSON.stringify(d)}; run it as a separate rnx do command`);switch(d){case"tap":return t.length===1&&!Number.isFinite(Number(t[0]))?[{type:"tapId",id:t[0]}]:(t.length!==2&&o(n,"tap <testid> | <x> <y>"),[{type:"tap",x:r(t[0],n,"tap <testid> | <x> <y>"),y:r(t[1],n,"tap <testid> | <x> <y>")}]);case"tap-id":return t.length!==1&&o(n,"tap-id <id>"),[{type:"tapId",id:t[0]}];case"tap-text":{let e=t.join(" ");return e||o(n,"tap-text <text>"),[{type:"tapText",text:e}]}case"double-tap":{let e="double-tap <testid> [gapMs] | <x> <y> [gapMs]";return t.length>0&&!Number.isFinite(Number(t[0]))?(t.length>2&&o(n,e),[{type:"targetedDoubleTap",id:t[0],gapMs:t.length===2?Math.max(0,Math.round(r(t[1],n,e))):80}]):((t.length<2||t.length>3)&&o(n,e),[{type:"doubleTap",x:r(t[0],n,e),y:r(t[1],n,e),gapMs:t.length===3?Math.max(0,Math.round(r(t[2],n,e))):80}])}case"long-press":{let e="long-press <testid> [durationMs] | <x> <y> [durationMs]";return t.length>0&&!Number.isFinite(Number(t[0]))?(t.length>2&&o(n,e),[{type:"targetedLongPress",id:t[0],durationMs:t.length===2?Math.max(0,Math.round(r(t[1],n,e))):600}]):((t.length<2||t.length>3)&&o(n,e),[{type:"longPress",x:r(t[0],n,e),y:r(t[1],n,e),durationMs:t.length===3?Math.max(0,Math.round(r(t[2],n,e))):600}])}case"type":{let e=t.join(" ");return e||o(n,"type <text>"),[{type:"type",text:e}]}case"type-into":{let e=t.slice(1).join(" ");return(!t[0]||!e)&&o(n,"type-into <id> <text>"),[{type:"tapId",id:t[0]},{type:"type",text:e}]}case"key":return t.length!==1&&o(n,"key <name>"),[{type:"key",key:t[0]}];case"key-sequence":return t.length===0&&o(n,"key-sequence <key> [<key> ...]"),t.map(e=>({type:"key",key:e}));case"dismiss":return t.length!==0&&o(n,"dismiss"),[{type:"dismissKeyboard"}];case"scroll":{let e="scroll <id> <x> <y>";return t.length!==3&&o(n,e),[{type:"scroll",id:t[0],x:r(t[1],n,e),y:r(t[2],n,e),animated:!1}]}case"drag":case"swipe":{let e=`${d} <x1> <y1> <x2> <y2> [steps] [stepMs]`;(t.length<4||t.length>6)&&o(n,e);let i=d==="swipe"?10:12,y=d==="swipe"?8:16;return[{type:"drag",fromX:r(t[0],n,e),fromY:r(t[1],n,e),toX:r(t[2],n,e),toY:r(t[3],n,e),steps:t.length>=5?Math.max(1,Math.round(r(t[4],n,e))):i,stepMs:t.length===6?Math.max(0,Math.round(r(t[5],n,e))):y}]}case"pinch":{let e="pinch <x1> <y1> <x2> <y2> <x1'> <y1'> <x2'> <y2'> [steps] [stepMs]";return(t.length<8||t.length>10)&&o(n,e),[{type:"pinch",fromX1:r(t[0],n,e),fromY1:r(t[1],n,e),fromX2:r(t[2],n,e),fromY2:r(t[3],n,e),toX1:r(t[4],n,e),toY1:r(t[5],n,e),toX2:r(t[6],n,e),toY2:r(t[7],n,e),steps:t.length>=9?Math.max(1,Math.round(r(t[8],n,e))):12,stepMs:t.length===10?Math.max(0,Math.round(r(t[9],n,e))):16}]}case"touch":{let e="touch <down|move|up|cancel> <x> <y> [pointerId]";(t.length<3||t.length>4)&&o(n,e);let i=t[0];i!=="down"&&i!=="move"&&i!=="up"&&i!=="cancel"&&o(n,e);let y=t.length===4?Math.max(1,Math.round(r(t[3],n,e))):999;return i==="cancel"?[{type:"touchCancel",pointerId:y}]:[{type:i==="down"?"touchDown":i==="move"?"touchMove":"touchUp",x:r(t[1],n,e),y:r(t[2],n,e),pointerId:y}]}case"sleep":{let e="sleep [seconds]";t.length>1&&o(n,e);let i=t.length===1?r(t[0],n,e):.5;return i<0&&o(n,e),[{type:"wait",ms:Math.round(i*1e3)}]}default:throw new p(`do chain action ${n+1} cannot batch ${JSON.stringify(d)}`)}})}async function Y(a,s={}){let[l,n,d,t,e]=await Promise.all([import("./connect-3LEXWTE5.js"),import("./sim-client-5C2RDQQO.js"),import("./ws-bridge-OF4OZARG.js"),import("./env-KTNPKEZR.js"),import("./resolve-target-57TK5WLE.js")]),{connect:i}=l,{SimPerformError:y}=n,{checkSimHealth:M,parseBridgeCliArgs:S}=d,{isAgentEnv:$}=t,{resolveTargetCoords:x}=e,b=a.includes("--json"),I=a.includes("--no-wait")||process.env.SOOTSIM_NO_AUTO_WAIT==="1",m=S(a,{port:s.port,commandTimeoutMs:3e4,stripBooleanFlags:["--json","--no-wait"]});if(!Number.isFinite(m.commandTimeoutMs)||m.commandTimeoutMs<=0)return console.error(" do chain: --timeout must be a positive number"),1;let w;try{w=D(m.positional)}catch(u){return console.error(` do chain: ${u instanceof Error?u.message:u}`),1}let h=null;try{h=await i({port:m.wsPort,sim:m.simId,timeoutMs:m.commandTimeoutMs}),await M(h);let u=[];for(let c of w){if(c.type!=="targetedDoubleTap"&&c.type!=="targetedLongPress"){u.push(c);continue}let f=await x(h,{mode:"testid",value:c.id});if(!f)throw new p(`do chain could not find testID ${JSON.stringify(c.id)}`);u.push(c.type==="targetedDoubleTap"?{type:"doubleTap",x:f.x,y:f.y,gapMs:c.gapMs}:{type:"longPress",x:f.x,y:f.y,durationMs:c.durationMs})}let g=await h.perform(u,{timeoutMs:m.commandTimeoutMs});if(!I)try{let c=$()?400:200,f=await h.settle({maxMs:c});f.settled||process.stderr.write(` \u26A0 auto-wait timed out after ${f.elapsed??c}ms. next command may see mid-animation state. use \`rnx do settle\` for a longer wait.
5
- `)}catch{}return console.log(b?JSON.stringify(g):` completed ${g.completed} batched ${g.completed===1?"step":"steps"} in ${g.durationMs}ms`),0}catch(u){return u instanceof y&&b?console.log(JSON.stringify(u.result)):console.error(` do chain failed: ${u instanceof Error?u.message:u}`),1}finally{h?.close()}}export{O as hasDoChain,D as parseDoChainActions,Y as runDoChain};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-DPBJ3S3J.js";import{a,b,c,d,e,f,g}from"./chunk-UYVXALPB.js";import"./chunk-VWCNJPCJ.js";import"./chunk-DCS5FK5N.js";import"./chunk-DGX3MN65.js";import"./chunk-7R2TK2NY.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.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.376 | (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-W3FNXAQP.js";import"./chunk-ZSSG7OR7.js";export{a as isAgentEnv};
@@ -1,74 +0,0 @@
1
- /*! rnx v0.1.376 | (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 R,d as L}from"./chunk-NNRF7GIB.js";import{t as x,v as A,z as b}from"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-TH2UFGVP.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.js";import{spawnSync as T}from"node:child_process";import{existsSync as V,mkdirSync as W,unlinkSync as N,writeFileSync as E}from"node:fs";import{homedir as j}from"node:os";import{dirname as q,extname as H,join as K,resolve as I}from"node:path";var n=e=>new Promise(a=>setTimeout(a,e)),X=["--out","--fps","--script","--slow"],J=["--keep-three"],Q=["--background","--gradient","--gradient-angle","--colorway","--environment","--env-shape","--env-spread","--env-size","--env-color","--env-glow","--env-plastic","--room","--focus","--focus-amount","--focus-range"],Y=12e4,Z=16e6;function c(e,a){let s=e.indexOf(a);return s>=0?e[s+1]:void 0}async function r(e,a,s=3e4){return await e.send({type:"evaluate",code:a},{timeoutMs:s})}async function ae(e,a){if(e.length===0||e.includes("--help")||e.includes("-h"))return console.log(`
5
- rnx film \u2014 record a flow flat, replay it on the 3d stage, save a clip
6
-
7
- usage:
8
- rnx film <flow.yaml> [options]
9
-
10
- how it works:
11
- 1. the flow runs at full speed on the flat canvas while the engine
12
- recording store captures the device screen
13
- 2. 3d mode + the recording editor come up and play that capture back on
14
- the phone screen while a camera script animates
15
- 3. the WebGL stage canvas is recorded and saved
16
-
17
- options:
18
- --out <path> output file (.webm, or .mp4 when ffmpeg is
19
- installed). default: ~/Desktop/sootsim-films/<flow>.webm
20
- --script <id> camera script to animate during playback
21
- (default: hero-arc)
22
- --fps <n> stage capture framerate (default: 30)
23
- --slow <ms> per-step delay forwarded to the flow runner
24
- --keep-three leave 3d mode + the recording editor on afterwards
25
- --sim <id> target a specific connected sim
26
-
27
- stage decor (same flags as \`rnx mode three configure\`):
28
- --background <id> \xB7 --gradient <stops> \xB7 --gradient-angle <deg>
29
- --colorway <id> \xB7 --room on|off \xB7 --focus on|off \xB7 --focus-amount <id>
30
- --focus-range <id> \xB7 --environment on|off \xB7 --env-shape/spread/size/color
31
- --env-glow on|off \xB7 --env-plastic on|off
32
-
33
- examples:
34
- rnx film flows/feed-scroll.yaml
35
- rnx film flows/swap.yaml --script hero-arc --background gradient-tide --out ~/Desktop/swap-3d.mp4
36
- rnx film flows/login.yaml --colorway deep-blue --environment on --env-shape pane --room on
37
- `),0;let s=e.find(d=>!d.startsWith("--")&&/\.ya?ml$/.test(d));if(!s||!V(I(s)))return console.error(` film: flow file not found: ${s??"(none given)"}`),1;let P=Number.parseInt(c(e,"--fps")??"30",10),h=c(e,"--script")??"hero-arc",z=e.includes("--keep-three"),v=s.replace(/^.*\//,"").replace(/\.ya?ml$/,""),O=c(e,"--out"),l=I(O??K(j(),"Desktop","sootsim-films",`${v}.webm`)),S=H(l).toLowerCase()===".mp4";if(S&&T("ffmpeg",["-version"]).status!==0)return console.error(" film: --out ends in .mp4 but ffmpeg is not installed"),console.error(" install ffmpeg or use a .webm output path"),1;let C=x(e,{port:a.port,stripValueFlags:[...X,...Q],stripBooleanFlags:J}),t=A({...C,commandTimeoutMs:6e4});try{let d=await r(t,`(() => { const s = window.SootSim?.bridges?.settings?.get?.() || {}
38
- return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-4DZ7B2OA.js"),m=[s],y=c(e,"--sim");y&&m.push("--sim",y);let k=c(e,"--slow");k&&m.push("--slow",k);let f=await G(m);await n(400);let u=Math.min(Date.now()-D,Y);if(await r(t,"window.SootSim?.bridges?.stopRecording?.()"),f!==0)return console.error(` film: flow failed (exit ${f}) \u2014 not filming a broken take`),f;let F=!1;for(let o=0;o<50;o++){await n(400);let i=await r(t,`(() => { const s = window.SootSim?.bridges?.getRecordingState?.()
39
- return { state: s?.state, hasBlob: !!s?.lastVideoBlob } })()`);if(i?.state==="idle"&&i.hasBlob){F=!0;break}}if(!F)return console.error(" film: flow recording never produced a video blob"),1;console.log(` film: flow captured (${(u/1e3).toFixed(1)}s)`),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeMode', true)"),await R(t),await n(1400),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeRecordingEditor', true)");let _=!1;for(let o=0;o<60;o++)if(await n(250),await r(t,`(() => { const rs = window.SootSim?.replayStore
40
- return rs?.value?.preview?.surface === 'video' && !!rs?.value?.preview?.flowVideoUrl })()`)){_=!0;break}if(!_)return console.error(" film: recording editor did not seed the replay store"),1;let p=L(e);delete p.script,p.resetPose=!0,await b(t,"SootSim.bridges.threeMode.configure",p),await n(2400),console.log(` film: filming the 3d stage (script: ${h})`);let M=await r(t,`(() => {
41
- const c = window.SootSim?.bridges?.threeMode?.getCanvas?.()
42
- if (!c || !c.captureStream) return { ok: false, error: 'no stage canvas' }
43
- let mime = 'video/webm;codecs=vp9'
44
- if (!('MediaRecorder' in window) || !MediaRecorder.isTypeSupported(mime)) mime = 'video/webm'
45
- const stream = c.captureStream(${P})
46
- const mr = new MediaRecorder(stream, { mimeType: mime, videoBitsPerSecond: ${Z} })
47
- const st = { mr, chunks: [], b64: null }
48
- mr.ondataavailable = (e) => { if (e.data && e.data.size) st.chunks.push(e.data) }
49
- mr.onstop = () => {
50
- const blob = new Blob(st.chunks, { type: 'video/webm' })
51
- const fr = new FileReader()
52
- fr.onload = () => { st.b64 = String(fr.result).split(',')[1] || '' }
53
- fr.readAsDataURL(blob)
54
- }
55
- window.__sootsimFilm = st
56
- mr.start(200)
57
- return { ok: true }
58
- })()`);if(!M?.ok)return console.error(` film: stage capture failed: ${M?.error??"unknown"}`),1;await r(t,`((dur) => {
59
- const rs = window.SootSim?.replayStore
60
- if (!rs) return false
61
- const probed = rs.value?.playback?.durationMs
62
- const total = probed && probed > 500 ? probed : dur
63
- const start = performance.now()
64
- const tick = () => {
65
- const t = performance.now() - start
66
- rs.emit({ ...rs.value, playback: { ...rs.value.playback, playing: true, scrubbing: false, currentTimeMs: Math.min(t, total) } })
67
- if (t < total) requestAnimationFrame(tick)
68
- }
69
- requestAnimationFrame(tick)
70
- return true
71
- })(${u})`),await b(t,"SootSim.bridges.threeMode.configure",{script:{id:h,progress:1,animate:!0,slow:!0}}),await n(u+700),await r(t,"(() => { const s = window.__sootsimFilm; if (s?.mr?.state === 'recording') s.mr.stop(); return true })()");let w=0;for(let o=0;o<60;o++){await n(500);let i=await r(t,"(() => { const s = window.__sootsimFilm; return { ready: !!(s && s.b64), size: s && s.b64 ? s.b64.length : 0 } })()");if(i?.ready&&i.size>0){w=i.size;break}}if(!w)return console.error(" film: stage recording never finished encoding"),1;let B=24e5,$="";for(let o=0;o<w;o+=B){let i=await r(t,`(() => ({ data: window.__sootsimFilm.b64.substr(${o}, ${B}) }))()`);$+=i.data}await r(t,"(() => { try { delete window.__sootsimFilm } catch {} return true })()");let g=Buffer.from($,"base64");if(W(q(l),{recursive:!0}),S){let o=`${l}.tmp.webm`;E(o,g);let i=T("ffmpeg",["-y","-i",o,"-c:v","libx264","-vf","scale=trunc(iw/2)*2:trunc(ih/2)*2","-pix_fmt","yuv420p","-movflags","+faststart",l],{stdio:["ignore","ignore","pipe"]});if(i.status!==0){let U=String(i.stderr??"").split(`
72
- `).filter(Boolean).slice(-4).join(`
73
- `);return console.error(` film: ffmpeg transcode failed:
74
- ${U}`),console.error(` film: source kept at ${o}`),1}N(o)}else E(l,g);return z||(d?.editor||await r(t,"window.SootSim?.bridges?.settings?.set?.('threeRecordingEditor', false)"),d?.threeMode||await r(t,"window.SootSim?.bridges?.settings?.set?.('threeMode', false)")),console.log(` film: saved ${l} (${(g.length/1e6).toFixed(1)}MB source)`),0}finally{t.close()}}export{ae as runFilm};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-R76BA7C7.js";import"./chunk-SK4M7NXT.js";import"./chunk-ZF7PVX44.js";import{a,b}from"./chunk-7VZZQQEE.js";import"./chunk-DEV3E3MV.js";import"./chunk-37MCSPTE.js";import"./chunk-CIE6CZXL.js";import"./chunk-UB2W6OQM.js";import"./chunk-JXAXYK7W.js";import"./chunk-SKMG5DD7.js";import"./chunk-KMNVDZZI.js";import"./chunk-YTXY3MHW.js";import"./chunk-4TQ5HOK3.js";import"./chunk-KJE2O2GK.js";import"./chunk-GDKMOIUT.js";import"./chunk-UYVXALPB.js";import"./chunk-VWCNJPCJ.js";import"./chunk-XUTJ7ZWD.js";import"./chunk-P6KVGV3H.js";import"./chunk-DCS5FK5N.js";import"./chunk-TZUABDIJ.js";import"./chunk-QELIC5XP.js";import"./chunk-CSJ7L7ZL.js";import"./chunk-DNPQMTW5.js";import"./chunk-TLP3T3VO.js";import"./chunk-FVZBGPCU.js";import"./chunk-GZE57ORL.js";import"./chunk-VQDYFFIG.js";import"./chunk-DOVBJBVD.js";import"./chunk-DGJMIVZM.js";import"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-LQMUA5IY.js";import"./chunk-TH2UFGVP.js";import"./chunk-HZLOYAPH.js";import"./chunk-AFOVILIL.js";import"./chunk-7R2TK2NY.js";import"./chunk-CE4JQJ6Y.js";import"./chunk-W3FNXAQP.js";import"./chunk-QRDF33WD.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.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.376 | (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-LC3QRIRB.js";import"./chunk-MLBZZHOY.js";import"./chunk-VQDYFFIG.js";import"./chunk-TEESPOYR.js";import"./chunk-DOVBJBVD.js";import"./chunk-DGJMIVZM.js";import"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-AFOVILIL.js";import"./chunk-QRDF33WD.js";import"./chunk-XSVILA4Z.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-HZLOYAPH.js";import{b as n}from"./chunk-AFOVILIL.js";import"./chunk-ZSSG7OR7.js";var e=["do","get"];function i(t){if(t.command)return t;let o=t.commandArgs.find(r=>!r.startsWith("-"));if(!o)return t;for(let r of e)if(n(r,o))return{...t,command:r};return t}export{i as resolveHiddenRuntimeAlias};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.js";export{b as ACTIVE_RUNTIME_FILE,e as CONFIG_FILE,f as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,d as DEV_BRIDGES_DIR,a as SOOTSIM_HOME_ENV,O as activeRuntimeDir,m as activeRuntimeFile,v as cacheDir,r as cameraFixturesDir,W as claimDaemonLockfile,z as configFilePath,K as consumeRuntimeUpgradeNotice,t as daemonAppBundlePath,s as daemonAppDir,u as daemonAppLauncherPath,w as daemonLockfilePath,y as devBridgeLockfilePath,x as devBridgesDir,n as electronDir,o as electronUserDataDir,p as electronVersionDir,L as ensureSootsimHome,R as isDaemonLockfileFresh,S as isDevBridgeLockfileFresh,i as isDevWorkstation,C as isOnboardingComplete,h as isSootsimDevCheckout,q as profilesDir,M as readActiveRuntime,P as readDaemonLockfile,Q as readDevBridgeLockfiles,T as readLiveRuntimeVersions,H as readOrCreateAnonymousId,F as readPrivacyPreferences,A as readSharedConfig,D as readSimulatorDriverPreference,X as removeDaemonLockfile,Y as removeDevBridgeLockfile,l as runtimeDir,I as runtimeUpgradeNoticePath,k as runtimesDir,j as shouldSkipPersistentDaemon,g as sootsimHomeDir,N as writeActiveRuntime,U as writeDaemonLockfile,V as writeDevBridgeLockfile,E as writeOnboardingPreferences,G as writePrivacyPreferences,J as writeRuntimeUpgradeNotice,B as writeSharedConfig};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-7VZZQQEE.js";import"./chunk-DEV3E3MV.js";import"./chunk-37MCSPTE.js";import"./chunk-CIE6CZXL.js";import"./chunk-KMNVDZZI.js";import"./chunk-YTXY3MHW.js";import"./chunk-4TQ5HOK3.js";import"./chunk-KJE2O2GK.js";import"./chunk-GDKMOIUT.js";import"./chunk-UYVXALPB.js";import"./chunk-VWCNJPCJ.js";import"./chunk-XUTJ7ZWD.js";import"./chunk-P6KVGV3H.js";import"./chunk-DCS5FK5N.js";import"./chunk-TZUABDIJ.js";import"./chunk-QELIC5XP.js";import"./chunk-CSJ7L7ZL.js";import"./chunk-DNPQMTW5.js";import"./chunk-TLP3T3VO.js";import"./chunk-FVZBGPCU.js";import"./chunk-GZE57ORL.js";import"./chunk-VQDYFFIG.js";import"./chunk-DOVBJBVD.js";import"./chunk-DGJMIVZM.js";import"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-LQMUA5IY.js";import"./chunk-TH2UFGVP.js";import"./chunk-HZLOYAPH.js";import"./chunk-AFOVILIL.js";import"./chunk-7R2TK2NY.js";import"./chunk-CE4JQJ6Y.js";import"./chunk-W3FNXAQP.js";import"./chunk-QRDF33WD.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";export{a as printShellPerfReport,b as runInspect};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-H3U56DKI.js";import"./chunk-DCS5FK5N.js";import"./chunk-TH2UFGVP.js";import"./chunk-BEU7CD7E.js";import"./chunk-ZSSG7OR7.js";export{a as runInstallDesktop};
@@ -1,26 +0,0 @@
1
- /*! rnx v0.1.376 | (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 k,d as I}from"./chunk-SKMG5DD7.js";import{c as p}from"./chunk-TH2UFGVP.js";import"./chunk-QRDF33WD.js";import{a as w}from"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";import{exec as T}from"node:child_process";import{randomBytes as R}from"node:crypto";import L from"node:http";var O=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev";function _(t){return t||(process.env.SOOTSIM_AUTH_ORIGIN?process.env.SOOTSIM_AUTH_ORIGIN:process.env.SOOTSIM_UPLOAD_ORIGIN?process.env.SOOTSIM_UPLOAD_ORIGIN:O)}function P(){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: ${O})
12
- override with SOOTSIM_AUTH_ORIGIN env var
13
- -h, --help
14
- `)}function U(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 A(t){let e=process.platform==="darwin"?`open "${t}"`:process.platform==="win32"?`start "" "${t}"`:`xdg-open "${t}"`;T(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">${w.name}</h1>
21
- <p style="color:#ccc">${t}</p>
22
- </div>
23
- </body>
24
- </html>`}async function M(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 G(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 B(t){(t.includes("--help")||t.includes("-h"))&&(P(),p(0));let e=[...t],r=_(U(e,"--origin"));if(G(r)){console.log(` detected local origin (${r}) \u2014 signing in as dev user`);let o=await M(r);if(o.ok){k({token:o.token,user:o.userId?{id:o.userId,email:o.email}:null,origin:r,source:"cli"});let u=await I(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=R(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=L.createServer((a,n)=>{try{let i=new URL(a.url||"/","http://127.0.0.1"),S=i.searchParams.get("state"),b=i.searchParams.get("token"),$=i.searchParams.get("email")||void 0,x=i.searchParams.get("userId")||void 0,h=i.searchParams.get("error");if(S!==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(!b){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:b,email:$,userId:x})}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
- `),A(n.toString())})});s.ok||(console.error(` login failed: ${s.error}`),p(1)),k({token:s.token,user:s.userId?{id:s.userId,email:s.email}:null,origin:r,source:"cli"});let v=await I(r),y=v?.user?.email||s.email||v?.user?.id||s.userId;console.log(` signed in${y?` as ${y}`:""}`)}export{B as runLogin};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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 e,c as t}from"./chunk-SKMG5DD7.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.js";async function r(){let o=e();if(!o?.token){console.log(" not signed in");return}try{await fetch(`${o.origin.replace(/\/$/,"")}/api/auth/sign-out`,{method:"POST",headers:{authorization:`Bearer ${o.token}`}})}catch{}t(),console.log(" signed out")}export{r as runLogout};
@@ -1,108 +0,0 @@
1
- /*! rnx v0.1.376 | (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 E,d as O,g as L,h as R,i as U}from"./chunk-R76BA7C7.js";import"./chunk-SK4M7NXT.js";import"./chunk-ZF7PVX44.js";import{a as A}from"./chunk-7VZZQQEE.js";import"./chunk-DEV3E3MV.js";import"./chunk-37MCSPTE.js";import{a as S}from"./chunk-CIE6CZXL.js";import{b as $,c as F,d as M,e as T}from"./chunk-UB2W6OQM.js";import{a as k}from"./chunk-JXAXYK7W.js";import"./chunk-SKMG5DD7.js";import"./chunk-KMNVDZZI.js";import"./chunk-YTXY3MHW.js";import"./chunk-4TQ5HOK3.js";import"./chunk-KJE2O2GK.js";import"./chunk-GDKMOIUT.js";import"./chunk-UYVXALPB.js";import"./chunk-VWCNJPCJ.js";import"./chunk-XUTJ7ZWD.js";import"./chunk-P6KVGV3H.js";import"./chunk-DCS5FK5N.js";import"./chunk-TZUABDIJ.js";import"./chunk-QELIC5XP.js";import"./chunk-CSJ7L7ZL.js";import"./chunk-DNPQMTW5.js";import"./chunk-TLP3T3VO.js";import"./chunk-FVZBGPCU.js";import"./chunk-GZE57ORL.js";import"./chunk-VQDYFFIG.js";import"./chunk-DOVBJBVD.js";import"./chunk-DGJMIVZM.js";import"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-LQMUA5IY.js";import"./chunk-TH2UFGVP.js";import"./chunk-HZLOYAPH.js";import"./chunk-AFOVILIL.js";import"./chunk-7R2TK2NY.js";import"./chunk-CE4JQJ6Y.js";import"./chunk-W3FNXAQP.js";import"./chunk-QRDF33WD.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";import*as n from"fs";import*as a from"path";var I=[".maestro","maestro"];function W(){console.log(`
5
- rnx maestro \u2014 author and run Maestro YAML flows against rnx
6
-
7
- usage:
8
- rnx maestro # discover .maestro/ or maestro/ in cwd, run all
9
- rnx maestro test <flow-or-dir> # mirrors "maestro test"
10
- rnx maestro test .maestro/ # every *.yaml / *.yml in a directory
11
- rnx maestro generate "<goal>" # generate, run, and upload a Maestro flow
12
- rnx maestro start|keep|end # author a flow from live CLI actions
13
- rnx maestro validate <flow> # validate a Maestro YAML file
14
- rnx maestro init # scaffold .maestro/login.yaml
15
- rnx maestro --list-compat # print supported/unsupported verbs
16
-
17
- options:
18
- --env KEY=VALUE set env vars for \${KEY} interpolation (repeatable)
19
- --continuous re-run the flow on file changes (alias for --watch)
20
- --format <fmt> accepted for maestro cli compat (not used)
21
- --new force a fresh browser window for this run
22
- --headed force a fresh, VISIBLE window (implies --new,
23
- overrides --headless) \u2014 watch the flow run live
24
- --record record a webm while the flow runs
25
- --preview record events+video, upload, and print /preview/<id>
26
- --preview-open open the uploaded preview link after a successful run
27
- --preview-origin <url> upload target for --preview
28
- --preview-public-origin <url>
29
- public link origin for --preview
30
- --slow <ms> delay between steps for natural pacing
31
-
32
- examples:
33
- rnx maestro test .maestro/login.yaml
34
- rnx maestro test .maestro/
35
- rnx maestro generate "log in and verify the welcome screen"
36
- rnx maestro start
37
- rnx maestro end --output .maestro/login.yaml --validate
38
- rnx maestro --env USERNAME=alice test .maestro/login.yaml
39
- rnx maestro init
40
- `)}function D(){console.log(`
41
- rnx maestro \u2014 compatibility matrix
42
-
43
- supported verbs:
44
- launchApp (including arguments), stopApp, clearState, clearKeychain (warn-only),
45
- tapOn, tapAtCoords, longPressOn,
46
- inputText, pressKey, dispatchKey, hideKeyboard, eraseText,
47
- assertVisible, assertNotVisible, assertTreeContains,
48
- waitFor, extendedWaitUntil, waitForAnimationToEnd,
49
- scroll, scrollUntilVisible, scrollTo, swipe, pinch,
50
- takeScreenshot, dumpTree, back,
51
- repeat (times), runFlow (file / inline commands / env / when),
52
- runScript (maestro JS: http, json(), output, env vars, console.log),
53
- evalScript, copyTextFrom (\${maestro.copiedText}), openLink,
54
- when: (visible / notVisible / platform / true),
55
- optional:, label:, onFlowStart, onFlowComplete,
56
- \${...} JS-expression interpolation at step execution time
57
- (env vars as globals, output.*, maestro.*, \${EXPR || 'default'}).
58
-
59
- workspace mode (directory runs):
60
- config.yaml / config.yml discovery, flows: inclusion globs,
61
- includeTags / excludeTags against flow frontmatter tags.
62
-
63
- launch behavior:
64
- launchApp.arguments: a JSON object available before guest app entry through
65
- react-native-launch-arguments and NativeModules.SettingsManager.settings.
66
- stopApp: keeps the guest stopped until launchApp or openLink starts it.
67
- openLink: replaces the guest, then delivers the URL to the new tenant.
68
-
69
- partial:
70
- clearKeychain \u2014 warn-only, rnx has no keychain surface.
71
- when.platform \u2014 rnx reports iOS for this runner.
72
- openLink: app routing works; no OS-level Safari fallback.
73
- launchApp.resetRuntime \u2014 sootsim-only extension for recorded benchmarks:
74
- keep tenant storage/auth, but soft-reload the guest app inside launchApp.
75
- takeScreenshot \u2014 maestro string form works unchanged; rnx also accepts
76
- { path, withFrame } for framed export.
77
- env \u2014 rnx seeds the JS env from the full shell environment, not just
78
- MAESTRO_* (so \${SOOTSIM_*} credentials resolve); a bare \${NAME} that is
79
- undefined fails the step loudly instead of typing "undefined".
80
-
81
- not yet implemented (will throw "unsupported maestro verb"):
82
- travel, setLocation, setAirplaneMode, killApp, faker,
83
- addMedia, startRecording, stopRecording (use --record flag),
84
- repeat.while (only repeat.times is supported).
85
- `)}function j(r){return r.startsWith("-")}function N(r){let s=[];for(let e=0;e<r.length;e++){if(r[e]==="--env"||r[e]==="-e"){let t=r[e+1];if(!t||!t.includes("="))throw new Error(`--env expects KEY=VALUE (got ${JSON.stringify(t??"")})`);let i=t.indexOf("="),c=t.slice(0,i),f=t.slice(i+1);process.env[c]=f,e+=1;continue}s.push(r[e])}return s}function J(r){let s=[];for(let e=0;e<r.length;e++){let t=r[e];if(t==="--format"||t==="--output"||t==="--device"||t==="-d"){e+=1;continue}if(t==="--continuous"){console.warn(" warn: --continuous is not yet implemented in rnx \u2014 running once");continue}s.push(t)}return s}function P(r){for(let s of I){let e=a.join(r,s);if(n.existsSync(e)&&n.statSync(e).isDirectory())return e}return null}function Y(r){let s=n.statSync(r);if(s.isFile())return[r];if(!s.isDirectory())throw new Error(`not a file or directory: ${r}`);let e={},t=["config.yaml","config.yml"].map(l=>a.join(r,l)).find(l=>n.existsSync(l));if(t){let l=S.parse(n.readFileSync(t,"utf8"));l&&typeof l=="object"&&(e=l)}let i=Array.isArray(e.flows)&&e.flows.length>0?e.flows:["*"],c=l=>{let p=a.basename(l);return!(p.startsWith(".")||!p.endsWith(".yaml")&&!p.endsWith(".yml")||p==="config.yaml"||p==="config.yml")},f=new Set;for(let l of i)for(let p of n.globSync(l,{cwd:r})){if(!c(p))continue;let d=a.join(r,p);n.existsSync(d)&&n.statSync(d).isFile()&&f.add(d)}let m=[...f].sort(),y=Array.isArray(e.includeTags)?e.includeTags:[],w=Array.isArray(e.excludeTags)?e.excludeTags:[];return(y.length>0||w.length>0)&&(m=m.filter(l=>{let{frontmatter:p}=A(n.readFileSync(l,"utf8")),d=Array.isArray(p.tags)?p.tags:[];return!(y.length>0&&!d.some(h=>y.includes(h))||d.some(h=>w.includes(h)))})),m}async function _(r){let s=a.join(r,".maestro");n.mkdirSync(s,{recursive:!0});let e=a.join(s,"login.yaml");return n.existsSync(e)?(console.error(` error: ${e} already exists`),1):(n.writeFileSync(e,`# rnx maestro starter flow \u2014 drop-in compatible with the maestro cli.
86
- # run: rnx maestro test .maestro/login.yaml
87
- appId: com.example.app
88
- ---
89
- - launchApp
90
- - tapOn:
91
- id: "email"
92
- - inputText: "user@example.com"
93
- - tapOn:
94
- id: "password"
95
- - inputText: "secret123"
96
- - tapOn: "Sign in"
97
- - assertVisible: "Welcome"
98
- `,"utf8"),console.log(` + wrote ${e}`),console.log(" next: rnx maestro test .maestro/login.yaml"),0)}async function Q(r,s={}){if(r.includes("--help")||r.includes("-h"))return W(),0;if(r.includes("--list-compat"))return D(),0;let e;try{e=N(r)}catch(o){return console.error(` error: ${o.message}`),1}e=R(e);let t=process.cwd(),i=e[0];if(i==="init")return _(t);if(i==="generate"){let{runMaestroGenerate:o}=await import("./maestro-generate-VBLM3MTU.js");return o(e.slice(1))}if(i==="start"||i==="keep"||i==="good"||i==="end"||i==="validate")return U(e);e=J(e);let c=null,f;if(i==="test"){let o=e.slice(1).find(u=>!j(u));o?(c=a.resolve(t,o),f=e.slice(1).filter(u=>u!==o)):(c=P(t),f=e.slice(1))}else i&&!j(i)?(c=a.resolve(t,i),f=e.slice(1)):(c=P(t),f=e);if(!c)return console.error(`
99
- error: no maestro flows found.
100
- expected one of: ${I.map(o=>`./${o}/`).join(", ")}
101
- or pass a flow explicitly: rnx maestro test path/to/flow.yaml
102
- or scaffold a starter flow: rnx maestro init
103
- `),1;if(!n.existsSync(c))return console.error(` error: ${c} not found`),1;let m;try{m=Y(c)}catch(o){return console.error(` error: ${o.message}`),1}if(m.length===0)return console.error(` error: no *.yaml or *.yml files found in ${c}`),1;console.log(`
104
- rnx maestro \u2014 ${m.length} flow${m.length===1?"":"s"}
105
- root: ${a.relative(t,c)||"."}
106
- `);let y=k(),w=o=>{let u=f.indexOf(o);return u>=0?f[u+1]:void 0},l=null,p=()=>l??=T(w("--preview-origin")??w("--origin")),d=0,h=[];for(let o of m){console.log(`
107
- \u25B6 ${a.relative(t,o)}`);let u=[o,...f];s.port&&u.push("--port",String(s.port));let g=0,V=Date.now();try{g=await L(u)}catch(x){console.error(` x ${x.message}`),g=1}h.push({file:o,exit:g}),g!==0&&d===0&&(d=g);let b=E();if(F({uploadedShare:!!b,auth:y})){let x=O(),C=x.find(K=>K.status==="failure"),v=await M({origin:await p(),kind:"maestro",name:a.relative(t,o),status:g===0?"passed":"failed",failureMessage:g===0?null:C?.error??"flow playback failed",previewShareId:b?.shareId??null,owner:w("--owner")??null,repo:w("--repo")??null,durationMs:Date.now()-V,...$(x),auth:y});v&&console.log(` run: ${v.id}${v.traceUrl?` \xB7 replay: ${v.traceUrl}`:""}`)}}if(m.length>1){console.log(`
108
- maestro summary:`);for(let u of h){let g=u.exit===0?"pass":"fail";console.log(` ${g} ${a.relative(t,u.file)}`)}let o=h.filter(u=>u.exit===0).length;console.log(` ${o}/${h.length} passed`)}return d}export{Y as collectFlowFiles,Q as runMaestro};
@@ -1,36 +0,0 @@
1
- /*! rnx v0.1.376 | (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 x}from"./chunk-CIE6CZXL.js";import{b as A,d as E,e as O}from"./chunk-UB2W6OQM.js";import{a as S,b as T}from"./chunk-JXAXYK7W.js";import"./chunk-SKMG5DD7.js";import"./chunk-XUTJ7ZWD.js";import"./chunk-P6KVGV3H.js";import{h as v}from"./chunk-CSJ7L7ZL.js";import"./chunk-TLP3T3VO.js";import"./chunk-GZE57ORL.js";import{t as y,v as b}from"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-TH2UFGVP.js";import"./chunk-QRDF33WD.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";import{mkdtempSync as B,writeFileSync as C}from"fs";import{tmpdir as N}from"os";import{join as _}from"path";var j=process.env.SOOTSIM_TEST_MODEL||"deepseek-v4-flash",P=18e3,V=18e4;function f(e,t){let r=e.indexOf(t);return r>=0?e[r+1]:void 0}function J(e,t){for(let r of t){let o=f(e,r);if(o)return o}}var M=new Set(["--origin","--preview-origin","--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]);function G(e){for(let t=0;t<e.length;t++){let r=e[t];if(r){if(M.has(r)){t+=1;continue}if(!r.startsWith("-"))return{prompt:r,index:t}}}return null}function H(e,t){return e.filter((r,o)=>o!==t)}async function Y(e,t){let r=H(e,t),o=y(r,{stripBooleanFlags:["--new","--headless","--headed","--electron","--preview-open"],stripValueFlags:[...M]}),i=b(o);try{let n=await v(i,{describe:!0,verbose:!1,filter:"",compact:!0,hideXy:!0}),s=[typeof n.nodeCount=="number"?`nodes: ${n.nodeCount}`:"",n.tree||""].filter(Boolean).join(`
5
- `);return s.length>P?s.slice(0,P)+`
6
- [tree truncated]`:s}finally{i.close()}}var K=`
7
- You write Maestro-compatible rnx YAML flows from a user's plain-language test goal.
8
- Return only JSON, no markdown, with this exact shape:
9
- {"summary":"short human-readable result goal","steps":[{"waitFor":{"text":"...","timeout":10000}}]}
10
-
11
- Use only these flow commands:
12
- - waitFor: { "text"?: string, "id"?: string, "timeout"?: number }
13
- - assertVisible: string or { "text"?: string, "id"?: string }
14
- - assertNotVisible: string or { "text"?: string, "id"?: string }
15
- - tapOn: string or { "text"?: string, "id"?: string, "index"?: number }
16
- - inputText: string
17
- - pressKey: string
18
- - hideKeyboard: true
19
- - swipe: { "direction": "UP" | "DOWN" | "LEFT" | "RIGHT", "duration"?: number }
20
- - waitForAnimationToEnd: true
21
- - takeScreenshot: "label"
22
-
23
- Prefer ids/testIDs from the tree. Prefer visible text when no id exists.
24
- Do not invent app-specific data that is not visible. Keep the flow short.
25
- End with an assertion or wait that proves the user's goal.
26
- `.trim();function X(e,t){return`
27
- User goal:
28
- ${e}
29
-
30
- Current rnx visible tree:
31
- ${t||"[no tree available]"}
32
-
33
- Generate the shortest replayable flow that verifies the goal from this current state.
34
- `.trim()}async function z(e){let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/llm`,{method:"POST",headers:{"content-type":"application/json",authorization:e.authHeader},body:JSON.stringify({modelId:j,context:{systemPrompt:K,messages:[{role:"user",content:X(e.prompt,e.describe),timestamp:Date.now()}]},options:{maxTokens:1800,temperature:.2},threadId:null}),signal:AbortSignal.timeout(V)});if(!t.ok||!t.body){let a=await t.text().catch(()=>"");throw new Error(`/api/llm ${t.status}${a?`: ${a}`:""}`)}let r=t.body.getReader(),o=new TextDecoder,i=[],n="",c=a=>{let l=a.trim();if(!l)return;let u=JSON.parse(l);if(u.type==="text_delta"&&u.delta)i.push(u.delta);else if(u.type==="error")throw new Error(u.errorMessage||"llm error")};for(;;){let{value:a,done:l}=await r.read();if(l)break;n+=o.decode(a,{stream:!0});let u;for(;(u=n.indexOf(`
35
- `))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function W(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function F(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=W(e);if(!F(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"rnx generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!F(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:x.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: rnx maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=S();if(!i||i.kind==="github")return console.error(' rnx maestro generate "<goal>" needs a login or RNX_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await O(J(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await z({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=B(_(N(),"sootsim-maestro-generate-")),p=_(u,"flow.yaml");C(p,l.yamlText),console.log(` flow: ${p}`);let k=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:D,getLastFlowTraceSteps:L}=await import("./flow-4DZ7B2OA.js"),$=Q(e,o,p,c),w=await I($),m=D(),h=L(),R=h.find(U=>U.status==="failure"),g=w===0?"passed":"failed",d=await E({origin:c,kind:"maestro",prompt:r,summary:l.summary,status:g,failureMessage:g==="failed"?R?.error??"flow playback failed":null,previewShareId:m?.shareId??null,owner:f(e,"--owner")??null,repo:f(e,"--repo")??null,durationMs:Date.now()-k,flowYamlSizeBytes:Buffer.byteLength(l.yamlText,"utf8"),...A(h),auth:i});return console.log(`
36
- result: ${g}`),d&&console.log(` run: ${d.id}`),m?.previewUrl&&console.log(` preview: ${m.previewUrl}`),d?.traceUrl&&console.log(` replay: ${d.traceUrl}`),w}export{le as runMaestroGenerate};
@@ -1,26 +0,0 @@
1
- /*! rnx v0.1.376 | (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 i}from"./chunk-NNRF7GIB.js";import"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import{c as t}from"./chunk-TH2UFGVP.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.js";async function l(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
- `),t(0)),await s(e,o,{modeKey:"screenshotMode",displayName:"screenshot-mode",actionId:"toggle-screenshot-mode"})}var d=new Set(["--sim","--port","-p"]),m=new Set(["screenshot","three"]);function h(e){for(let o=0;o<e.length;o++){let n=e[o];if(n.startsWith("-")){d.has(n)&&o++;continue}return m.has(n)?{name:n,index:o}:null}return null}function u(e,o){return[...e.slice(0,o),...e.slice(o+1)]}function c(){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 S(e,o){if(e.includes("--help")||e.includes("-h")){c();return}let n=h(e);n||(c(),t(1));let r=u(e,n.index);if(n.name==="screenshot"){await l(r,o);return}await i(r,o)}export{S as runMode};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-TLP3T3VO.js";import"./chunk-ZSSG7OR7.js";export{d as __withOptionalDemoAppsForTests,a as findInternalDemoRegistry,b as loadOptionalDemoApps,c as optionalDemoAppsSync};
@@ -1,48 +0,0 @@
1
- /*! rnx v0.1.376 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import { createRequire as __sootsimCreateRequire } from 'node:module'
3
- var require = __sootsimCreateRequire(import.meta.url)
4
- import{h as N}from"./chunk-7VZZQQEE.js";import"./chunk-DEV3E3MV.js";import"./chunk-37MCSPTE.js";import"./chunk-CIE6CZXL.js";import"./chunk-KMNVDZZI.js";import"./chunk-YTXY3MHW.js";import"./chunk-4TQ5HOK3.js";import"./chunk-KJE2O2GK.js";import"./chunk-GDKMOIUT.js";import"./chunk-UYVXALPB.js";import"./chunk-VWCNJPCJ.js";import"./chunk-XUTJ7ZWD.js";import"./chunk-P6KVGV3H.js";import"./chunk-DCS5FK5N.js";import"./chunk-TZUABDIJ.js";import"./chunk-QELIC5XP.js";import"./chunk-CSJ7L7ZL.js";import"./chunk-DNPQMTW5.js";import"./chunk-TLP3T3VO.js";import"./chunk-FVZBGPCU.js";import"./chunk-GZE57ORL.js";import"./chunk-VQDYFFIG.js";import"./chunk-DOVBJBVD.js";import"./chunk-DGJMIVZM.js";import{t as P,v as R,y as d,z as x}from"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-LQMUA5IY.js";import"./chunk-TH2UFGVP.js";import"./chunk-HZLOYAPH.js";import"./chunk-AFOVILIL.js";import"./chunk-7R2TK2NY.js";import"./chunk-CE4JQJ6Y.js";import"./chunk-W3FNXAQP.js";import"./chunk-QRDF33WD.js";import"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";import{mkdirSync as D,writeFileSync as W}from"fs";import{dirname as A,resolve as J}from"path";import{WebSocket as B}from"ws";var C=e=>new Promise(o=>setTimeout(o,e)),S=class{ws;nextId=1;pending=new Map;listeners=new Set;ready;constructor(o){this.ws=new B(o,{maxPayload:1<<28}),this.ready=new Promise((r,n)=>{this.ws.once("open",()=>r()),this.ws.once("error",n)}),this.ws.on("message",r=>{let n=JSON.parse(r.toString());if(n.id&&this.pending.has(n.id)){let{res:t,rej:s}=this.pending.get(n.id);this.pending.delete(n.id),n.error?s(new Error(JSON.stringify(n.error))):t(n.result)}else if(n.method)for(let t of this.listeners)t(n.method,n.params)})}waitOpen(){return this.ready}on(o){this.listeners.add(o)}send(o,r={},n){let t=this.nextId++;return new Promise((s,a)=>{this.pending.set(t,{res:s,rej:a}),this.ws.send(JSON.stringify({id:t,method:o,params:r,...n?{sessionId:n}:{}}))})}close(){try{this.ws.close()}catch{}}};async function O(e,o){let r=Number(h(e,"--duration")??"5");if(!Number.isFinite(r)||r<=0)return console.error(" --duration must be a positive number (seconds)"),1;let n=Number(h(e,"--sample-interval")??"0.1"),t=Number(h(e,"--cdp-port")??process.env.SOOTSIM_CDP_PORT??"9222"),s=h(e,"--match")??"/rn/",a=h(e,"--output")??h(e,"-o"),i=J(process.cwd(),a??"/tmp/sootsim.cpuprofile"),l=[];try{l=await(await fetch(`http://localhost:${t}/json/list`)).json()}catch{return E(t),1}let f=l.find(m=>m.type==="page"&&m.url.includes(s));if(!f)return console.error(` no page target matching "${s}" on CDP :${t}`),console.error(` open targets: ${l.map(m=>m.url).join(", ")||"(none)"}`),1;let u=new S(f.webSocketDebuggerUrl);await u.waitOpen();try{let m=new Map;if(u.on((c,p)=>{c==="Target.attachedToTarget"&&p.targetInfo?.type==="worker"&&m.set(p.sessionId,p.targetInfo.url),c==="Target.detachedFromTarget"&&m.delete(p.sessionId)}),await u.send("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!1,flatten:!0}),await C(500),m.size===0)return console.error(" no worker targets attached \u2014 is the app loaded in this tab?"),1;for(let c of m.keys())await u.send("Profiler.enable",{},c),await u.send("Profiler.setSamplingInterval",{interval:n*1e3},c),await u.send("Profiler.start",{},c);console.log(` recording ${r}s across ${m.size} worker(s) \u2014 interact now\u2026`),await C(r*1e3);let b=[];for(let[c,p]of m){let{profile:y}=await u.send("Profiler.stop",{},c);b.push({url:p,profile:y})}return b.sort((c,p)=>p.profile.samples.length-c.profile.samples.length),D(A(i),{recursive:!0}),b.forEach((c,p)=>{let y=p===0?i:i.replace(/(\.[^.]+)?$/,`.worker${p}$1`);if(W(y,JSON.stringify(c.profile)),console.log(` ${v(c.url)}: ${c.profile.samples.length} samples \u2192 ${y}`),o.verbose&&c.profile.samples.length>0)for(let $ of U(c.profile,12))console.log(` ${$.pct.toFixed(1).padStart(5)}% ${$.name} ${$.url}`)}),console.log(" open in chrome devtools \u2192 Performance \u2192 Load profile to inspect."),0}finally{u.close()}}function E(e){console.error(` perf cpu needs a CDP-enabled browser on :${e}.`),console.error(" the tenant worker can't be profiled via the JS Self-Profiler API (F28),"),console.error(" so the sim must expose Chrome remote debugging. easiest path \u2014"),console.error(" open the sim with a CDP port (it stays driveable over the bridge,"),console.error(" so you can scroll/navigate while profiling):"),console.error(""),console.error(` rnx open <metro-port> --new --driver playwright --cdp-port ${e}`),console.error(` rnx perf cpu --cdp-port ${e} --match <metro-port>`),console.error(""),console.error(" or launch a standalone CDP Chrome (not bridge-driveable):"),console.error(""),console.error(' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \\'),console.error(` --remote-debugging-port=${e} --user-data-dir=/tmp/sootsim-cdp \\`),console.error(" --no-sandbox --disable-gpu-sandbox \\"),console.error(" --use-gl=angle --use-angle=metal \\"),console.error(' "http://localhost:5173/rn/<metro-port>" &'),console.error(""),console.error(" override the port with --cdp-port or $SOOTSIM_CDP_PORT.")}function v(e){return e?e.replace(/^https?:\/\/[^/]+/,"").replace(/\?.*$/,"").slice(-50):"(native)"}function U(e,o){let r=e.samples.length||1,n=new Map;for(let t of e.nodes){let s=t.callFrame,a=`${s.functionName||"(anonymous)"}@${v(s.url)}:${s.lineNumber}`,i=n.get(a)??{self:0,name:s.functionName||"(anonymous)",url:`${v(s.url)}:${s.lineNumber}`};i.self+=t.hitCount??0,n.set(a,i)}return[...n.values()].map(t=>({...t,pct:t.self/r*100})).sort((t,s)=>s.self-t.self).slice(0,o)}function h(e,o){let r=e.indexOf(o);if(!(r<0||r===e.length-1))return e[r+1]}function j(){console.log(`
5
- rnx perf react \u2014 inspect React component render cost in the tenant worker
6
-
7
- usage:
8
- rnx perf react profile start [--include-props] [--max-commits N]
9
- rnx perf react profile stop
10
- rnx perf react summary [--limit 10] [--json]
11
- rnx perf react slow [--limit 5] [--json]
12
- rnx perf react rerenders [--limit 5] [--json]
13
- rnx perf react tree [--depth 3] [--find <name>] [--json]
14
- rnx perf react why <fiber-id> [--json]
15
-
16
- \`react summary\` is the demo-friendly shortcut: it runs both slow and
17
- rerenders in one round-trip, prints them as a single table per side,
18
- and surfaces the duration-zero warning prominently when the bundle is
19
- running without React profiler timers.
20
-
21
- examples:
22
- rnx perf react profile start
23
- rnx do tap-text Inbox
24
- rnx perf react profile stop
25
- rnx perf react summary --limit 10
26
- rnx perf react slow --limit 10
27
- rnx perf react rerenders --json
28
- `)}function F(e,o){let r=e.indexOf(o);if(r>=0&&r+1<e.length)return e[r+1];let n=`${o}=`,t=e.find(s=>s.startsWith(n));return t?t.slice(n.length):void 0}function w(e,o,r){let n=F(e,o);if(n===void 0)return r;let t=Number(n);return Number.isFinite(t)&&t>0?Math.round(t):r}function M(e,o){let r=e.map((t,s)=>Math.max(t.length,...o.map(a=>a[s]?.length??0))),n=t=>t.map((s,a)=>s.padEnd(r[a])).join(" ").trimEnd();return[n(e),n(e.map(t=>"-".repeat(t.length))),...o.map(n)].map(t=>` ${t}`).join(`
29
- `)}function g(e){console.log(JSON.stringify(e,null,2))}function T(e){e.error&&console.error(` warning: ${e.error}`),e.durationWarning&&console.error(` warning: ${e.durationWarning}`);let o=e.rows??[];if(o.length===0){console.log(` no React render samples yet (${e.commits??0} commit(s))`);return}console.log(M(["component","total","avg","commits","slowest"],o.map(r=>[r.displayName,`${r.totalMs.toFixed(2)}ms`,`${r.avgMs.toFixed(2)}ms`,String(r.commitCount),`#${r.slowestCommit} ${r.slowestMs.toFixed(2)}ms`])))}function k(e){e.error&&console.error(` warning: ${e.error}`);let o=e.rows??[];if(o.length===0){console.log(` no React render samples yet (${e.commits??0} commit(s))`);return}console.log(M(["component","renders","causes"],o.map(r=>{let n=Object.entries(r.causes??{}).filter(([,t])=>t>0).sort((t,s)=>s[1]-t[1]).slice(0,4).map(([t,s])=>`${t}:${s}`).join(", ");return[r.displayName,String(r.renders??r.count),n||"-"]})))}function _(e){e.error&&console.error(` warning: ${e.error}`);let o=e.rows??[];if(o.length===0){console.log(` no React tree data yet (${e.roots??0} root(s))`);return}for(let r of o){let n=" ".repeat(r.depth);console.log(` ${n}@${r.id} ${r.displayName} [${r.kind}] children=${r.childCount}`)}}function z(e){if(e.error){console.error(` ${e.error}`);return}let o=e.sample;if(!o){console.log(" no sample");return}if(console.log(` @${o.fiberId} ${o.displayName}`),console.log(` duration: ${Number(o.actualDuration??0).toFixed(2)}ms`),console.log(` causes: ${(o.causes??[]).join(", ")||"-"}`),o.propDiffs?.length){console.log(" props:");for(let r of o.propDiffs){let n="old"in r||"new"in r?` ${JSON.stringify(r.old)} \u2192 ${JSON.stringify(r.new)}`:"";console.log(` ${r.key}${n}`)}}o.parentChain?.length&&console.log(` parents: ${o.parentChain.join(" \u2190 ")}`)}async function I(e,o){let r=P(e,{port:o.port,stripBooleanFlags:["--json","--include-props","--help","-h"],stripValueFlags:["--limit","--depth","--find","--max-commits"]});if(e.includes("--help")||e.includes("-h"))return j(),0;let[n,t]=r.positional,s=e.includes("--json"),a=R(r);try{if(n==="profile"&&t==="start"){let i=await x(a,"SootSim.bridges.reactProfile.start",{includeProps:e.includes("--include-props"),maxCommits:w(e,"--max-commits",2e3)});return s?g(i):console.log(" React profile started"),0}if(n==="profile"&&t==="stop"){let i=await x(a,"SootSim.bridges.reactProfile.stop");return s?g(i):(console.log(` React profile stopped (${i.commits??0} commit(s))`),i.error&&console.error(` warning: ${i.error}`)),i.error?1:0}if(n==="summary"){let i=w(e,"--limit",10),[l,f]=await Promise.all([d(a,"SootSim.bridges.reactProfile.slow",{limit:i}),d(a,"SootSim.bridges.reactProfile.rerenders",{limit:i})]);if(s)return g({commits:l.commits??f.commits??0,slow:l,rerenders:f}),0;let u=l.commits??f.commits??0;console.log(` React profile summary (${u} commit(s)):`),l.error&&console.error(` warning: ${l.error}`),l.durationWarning&&console.error(` warning: ${l.durationWarning}`),f.error&&console.error(` warning: ${f.error}`),console.log(`
30
- slowest renders:`),T(l),console.log(`
31
- most rerenders:`),k(f);let m=l.rows?.[0];return(l.rows&&l.rows.length>0?l.rows.every(c=>c.totalMs<=0&&c.slowestMs<=0):!1)&&!l.durationWarning&&console.error(`
32
- warning: every commit reports actualDuration=0ms \u2014 the React profiler timer is disabled in this bundle (rerender counts are still accurate; ${m?.displayName?`top-listed: ${m.displayName}`:"no slow signal"}).`),0}if(n==="slow"){let i=await d(a,"SootSim.bridges.reactProfile.slow",{limit:w(e,"--limit",10)});return s?g(i):T(i),0}if(n==="rerenders"){let i=await d(a,"SootSim.bridges.reactProfile.rerenders",{limit:w(e,"--limit",10)});return s?g(i):k(i),0}if(n==="tree"){let i=await d(a,"SootSim.bridges.reactProfile.tree",{depth:w(e,"--depth",3),find:F(e,"--find")});return s?g(i):_(i),0}if(n==="why"){let i=Number(t);if(!Number.isFinite(i)||i<=0)return console.error(" usage: rnx perf react why <fiber-id>"),1;let l=await d(a,"SootSim.bridges.reactProfile.why",Math.round(i));return s?g(l):z(l),l.error?1:0}return j(),n?1:0}finally{a.close()}}var G=new Set(["--sim","--port","-p"]),L=new Set(["cpu","react","shell","scroll"]);function H(e){for(let o=0;o<e.length;o++){let r=e[o];if(r.startsWith("-")){G.has(r)&&o++;continue}return L.has(r)?{name:r,index:o}:null}return null}function V(e,o){return[...e.slice(0,o),...e.slice(o+1)]}function Z(){console.log(`
33
- rnx perf \u2014 performance profiling tools
34
-
35
- usage:
36
- rnx perf cpu [options]
37
- rnx perf react <subcommand> [options]
38
- rnx perf shell <start|stop|transition> [options]
39
- rnx perf scroll <start|stop> [options]
40
-
41
- examples:
42
- rnx perf cpu --duration 5 --output /tmp/trace.cpuprofile
43
- rnx perf react summary --limit 10
44
- rnx perf shell start
45
- rnx perf shell stop --json
46
- rnx perf scroll start
47
- rnx perf scroll stop --json
48
- `)}async function te(e,o){let r=H(e);if(!r)return Z(),e.includes("--help")||e.includes("-h")?0:1;let n=V(e,r.index);if(r.name==="cpu")return O(n,o);if(r.name==="react")return I(n,o);let t=n.includes("--help")||n.includes("-h")?[]:n;return await N(["debug","perf",...t],{...o,internalPerfCommand:r.name==="scroll"?"scroll":"shell"}),typeof process.exitCode=="number"?process.exitCode:0}export{te as runPerf};
@@ -1,13 +0,0 @@
1
- /*! rnx v0.1.376 | (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 h,v as w,y as m,z as u}from"./chunk-CWCQP53A.js";import"./chunk-DGX3MN65.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.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
- rnx permissions \u2014 inspect and change simulated operating-system permissions
6
-
7
- usage:
8
- rnx permissions list [--json]
9
- rnx permissions get <app-id> [--json]
10
- rnx permissions set <app-id> <kind> <status> [--once] [--accuracy full|reduced] [--json]
11
- rnx permissions reset <app-id> [kind] [--json]
12
- `)}function S(n,i){console.log(i?JSON.stringify(n,null,2):n)}function $(n,i){let e=n.indexOf(i);return e>=0?n[e+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,e){switch(n){case"authorized":return{status:n,...i?{authorizationScope:"once"}:null,...e?{locationAccuracy:e}: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 e=h(n,{port:i.port,stripBooleanFlags:["--json","--once"],stripValueFlags:["--accuracy"]}),[s,o,r,f]=e.positional;if(!s)return b(),1;let c=n.includes("--json"),t=w(e);try{if(s==="list"){let p=await m(t,"SootSim.bridges.test.permissionListApps");return S(c?p:p.map(l=>`${l.appId} ${l.displayName}`).join(`
13
- `),c),0}if(!o)throw new Error(`${s} requires an app id`);if(s==="get"){let p=await m(t,"SootSim.bridges.test.permissionGetAppSettings",o);return S(p,c),0}if(s==="reset"){if(r){let l=P(r);if(!l)throw new Error(`unknown permission kind: ${r}`);await u(t,"SootSim.bridges.test.permissionSetAppPermission",o,l,{status:"not-determined"})}else await u(t,"SootSim.bridges.test.permissionResetApp",o);let p=await m(t,"SootSim.bridges.test.permissionGetAppSettings",o);return S(p,c),0}if(s!=="set")throw new Error(`unknown permissions command: ${s}`);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,6 +0,0 @@
1
- /*! rnx v0.1.376 | (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-GDKMOIUT.js";import{a as d}from"./chunk-DNPQMTW5.js";import"./chunk-DOVBJBVD.js";import{b as m,c as s,e as u,f as t}from"./chunk-DGJMIVZM.js";import{a as o}from"./chunk-5YZYDEMI.js";import"./chunk-ZSSG7OR7.js";var l={ios:"iOS",android:"Android"};function f(e){return e in m}async function M(e,r,a={}){let n=r.find((i,c)=>r[c-1]==="--device");if(n!==void 0){if(!f(n))return console.error(` ${o.commandName} ${e}: unknown device "${n}"
5
- run \`${o.commandName} device list\` to see valid models`),1;let i=t(n);if(i!==e)return console.error(` ${o.commandName} ${e}: --device ${n} is ${l[i]}, not ${l[e]}.
6
- pick one of: ${u().filter(c=>t(c)===e).join(", ")}`),1}else{let i=d.get("deviceModel");t(i)!==e&&d.apply({deviceModel:s[e]})}let{runOpenCommand:v}=await import("./control-Z3FWA6BO.js");return v(r,{port:a.port})}export{M as runPlatformCommand};
@@ -1,4 +0,0 @@
1
- /*! rnx v0.1.376 | (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-7LGK5XU6.js";import"./chunk-BEU7CD7E.js";import"./chunk-W3FNXAQP.js";import"./chunk-QRDF33WD.js";import"./chunk-ZSSG7OR7.js";export{a as canPromptForPrivacyChoice,b as diagnosticsAllowedForCurrentProcess,c as ensurePrivacyChoice};