rnxsim 0.1.370 → 0.1.371

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 (203) hide show
  1. package/cli/commands/box/checkout-plane.ts +65 -14
  2. package/cli/commands/box/cloud-box.ts +294 -0
  3. package/cli/commands/box/plane-share.ts +208 -0
  4. package/cli/commands/box/rnx-command.ts +2 -2
  5. package/cli/commands/box/search-command.ts +157 -0
  6. package/cli/commands/box.ts +269 -13
  7. package/cli/commands/control.ts +6 -1
  8. package/cli/outbound-endpoints.ts +37 -1
  9. package/dist-cli/bin.js +5 -5
  10. package/dist-cli/chunks/{agent-3R4424LW.js → agent-W2D2V7WF.js} +2 -2
  11. package/dist-cli/chunks/{agent-wrapper-4PPWZWSY.js → agent-wrapper-GVNM2Z4S.js} +2 -2
  12. package/dist-cli/chunks/{app-fonts-KYXB6CXQ.js → app-fonts-J6R4TTXD.js} +2 -2
  13. package/dist-cli/chunks/{assert-7EZOWGYQ.js → assert-YN6U4ZTB.js} +2 -2
  14. package/dist-cli/chunks/{auth-L7M36H6C.js → auth-XGYZAK2P.js} +2 -2
  15. package/dist-cli/chunks/{beta-FKAF6YWJ.js → beta-WRDMHHWJ.js} +2 -2
  16. package/dist-cli/chunks/{box-5Y5VBMHV.js → box-ML5TFUQW.js} +617 -596
  17. package/dist-cli/chunks/{camera-XHF2RPFG.js → camera-OBEI4FZA.js} +2 -2
  18. package/dist-cli/chunks/{chunk-Z2VBSNFI.js → chunk-2FIT64GR.js} +1 -1
  19. package/dist-cli/chunks/{chunk-PAUEZO6F.js → chunk-2LH4DYPM.js} +2 -2
  20. package/dist-cli/chunks/{chunk-H5X5FJ63.js → chunk-2QW3JH6T.js} +2 -2
  21. package/dist-cli/chunks/{chunk-NR2V2ONN.js → chunk-2W4YBCPX.js} +2 -2
  22. package/dist-cli/chunks/{chunk-DMHSD6YJ.js → chunk-42YOIDLR.js} +2 -2
  23. package/dist-cli/chunks/{chunk-72S5FCBY.js → chunk-47MSXLWK.js} +2 -2
  24. package/dist-cli/chunks/{chunk-6GPS7U4X.js → chunk-4OLUFHEZ.js} +2 -2
  25. package/dist-cli/chunks/{chunk-ARMXC3C3.js → chunk-5PPVVGLH.js} +3 -3
  26. package/dist-cli/chunks/{chunk-6A6L3VJR.js → chunk-6AZKZ5AJ.js} +2 -2
  27. package/dist-cli/chunks/{chunk-UFVAAWGZ.js → chunk-6FPXLSBJ.js} +1 -1
  28. package/dist-cli/chunks/{chunk-PIZXOXBL.js → chunk-763GBI7G.js} +2 -2
  29. package/dist-cli/chunks/{chunk-VVQCZ42C.js → chunk-7ASCDKA3.js} +1 -1
  30. package/dist-cli/chunks/{chunk-LIMWG54N.js → chunk-7Q4WHJDH.js} +1 -1
  31. package/dist-cli/chunks/{chunk-DHYTRCIP.js → chunk-7TWD4P6J.js} +2 -2
  32. package/dist-cli/chunks/{chunk-NJMU5BN6.js → chunk-7YB46LGI.js} +1 -1
  33. package/dist-cli/chunks/{chunk-EWSWOWXK.js → chunk-ADJSGO55.js} +2 -2
  34. package/dist-cli/chunks/{chunk-CMVRTZ5G.js → chunk-AGZZWLEL.js} +2 -2
  35. package/dist-cli/chunks/{chunk-3BG6UCQY.js → chunk-AVIH3TAZ.js} +11 -11
  36. package/dist-cli/chunks/{chunk-WPV4H5S4.js → chunk-B26ZJUQA.js} +2 -2
  37. package/dist-cli/chunks/{chunk-AALKIAUZ.js → chunk-BNS5LNEU.js} +1 -1
  38. package/dist-cli/chunks/{chunk-FA75F34Z.js → chunk-CJQXP4XM.js} +1 -1
  39. package/dist-cli/chunks/{chunk-6S5LJV2O.js → chunk-DP6RGTNN.js} +2 -2
  40. package/dist-cli/chunks/{chunk-3SOPYG7S.js → chunk-DYFOLOYL.js} +2 -2
  41. package/dist-cli/chunks/{chunk-AVJBT5LF.js → chunk-ERBGQEJ5.js} +1 -1
  42. package/dist-cli/chunks/{chunk-EOIBLKZO.js → chunk-ESWSXF55.js} +2 -2
  43. package/dist-cli/chunks/{chunk-5RKRVS5A.js → chunk-FLNGSIBL.js} +2 -2
  44. package/dist-cli/chunks/{chunk-DXV37CJN.js → chunk-GQGS7TRK.js} +1 -1
  45. package/dist-cli/chunks/{chunk-GRO74J2X.js → chunk-H4DU457S.js} +1 -1
  46. package/dist-cli/chunks/{chunk-7C7TJYZ3.js → chunk-HFY35VAG.js} +2 -2
  47. package/dist-cli/chunks/{chunk-PNOENVMJ.js → chunk-HV3WOWQM.js} +1 -1
  48. package/dist-cli/chunks/{chunk-O6QLKSAM.js → chunk-HZ365EMS.js} +2 -2
  49. package/dist-cli/chunks/chunk-IPNDXGVA.js +11 -0
  50. package/dist-cli/chunks/{chunk-MDCY532E.js → chunk-IX7Z6ZVJ.js} +2 -2
  51. package/dist-cli/chunks/{chunk-EQ3OE2AV.js → chunk-IYU2EOIU.js} +1 -1
  52. package/dist-cli/chunks/{chunk-HQQTS2CB.js → chunk-J6A5W2DI.js} +3 -3
  53. package/dist-cli/chunks/{chunk-BMIJZNKD.js → chunk-JKRMBNPO.js} +2 -2
  54. package/dist-cli/chunks/{chunk-YIZGNT7A.js → chunk-JUTLQ3GX.js} +1 -1
  55. package/dist-cli/chunks/{chunk-RRX52O37.js → chunk-KHGXEU4L.js} +1 -1
  56. package/dist-cli/chunks/{chunk-D2GZASRV.js → chunk-KL34TRNW.js} +1 -1
  57. package/dist-cli/chunks/chunk-LFANRLWK.js +7 -0
  58. package/dist-cli/chunks/{chunk-2FOGXVOK.js → chunk-MOIQZVRU.js} +2 -2
  59. package/dist-cli/chunks/{chunk-HEKHLQ3B.js → chunk-MW4E5EED.js} +3 -3
  60. package/dist-cli/chunks/{chunk-GJRLPJQL.js → chunk-N3LAMTGS.js} +2 -2
  61. package/dist-cli/chunks/{chunk-3UXXYJVD.js → chunk-NQ4CI2VI.js} +1 -1
  62. package/dist-cli/chunks/{chunk-JZLDHPB7.js → chunk-OF3U4SZO.js} +2 -2
  63. package/dist-cli/chunks/{chunk-I52NT6VG.js → chunk-OF5OBB67.js} +1 -1
  64. package/dist-cli/chunks/{chunk-64JAEJ6N.js → chunk-OQPZOEEP.js} +1 -1
  65. package/dist-cli/chunks/{chunk-X6WQ4YWE.js → chunk-OWDJQWJ7.js} +1 -1
  66. package/dist-cli/chunks/{chunk-Q4MRJ6PO.js → chunk-PTWMX4AA.js} +2 -2
  67. package/dist-cli/chunks/{chunk-LUOHRBJG.js → chunk-RYJTPZCX.js} +1 -1
  68. package/dist-cli/chunks/{chunk-IDLFVRPN.js → chunk-S3AH2O67.js} +1 -1
  69. package/dist-cli/chunks/{chunk-6W4HIWC7.js → chunk-SH2HXHR2.js} +2 -2
  70. package/dist-cli/chunks/{chunk-5BR33NAZ.js → chunk-SHLJYXIN.js} +1 -1
  71. package/dist-cli/chunks/{chunk-Z3DENGXW.js → chunk-TL22EBF5.js} +2 -2
  72. package/dist-cli/chunks/{chunk-FK4JSTZ3.js → chunk-TWNLRDIH.js} +2 -2
  73. package/dist-cli/chunks/{chunk-LXPHL6FO.js → chunk-UHYAY3RU.js} +2 -2
  74. package/dist-cli/chunks/{chunk-C7BA5CCM.js → chunk-UPMR6Y5P.js} +2 -2
  75. package/dist-cli/chunks/{chunk-D24EOJ4C.js → chunk-VEFSHPSU.js} +2 -2
  76. package/dist-cli/chunks/{chunk-DUXHYPBP.js → chunk-WCB5XPCH.js} +2 -2
  77. package/dist-cli/chunks/{chunk-WFQHT4QD.js → chunk-WHZE63R2.js} +2 -2
  78. package/dist-cli/chunks/{chunk-OJZHECGH.js → chunk-WLRIPAGJ.js} +1 -1
  79. package/dist-cli/chunks/{chunk-U63T6LIQ.js → chunk-Y7SKGRAV.js} +1 -1
  80. package/dist-cli/chunks/chunk-Z6CQDU74.js +4 -0
  81. package/dist-cli/chunks/{cleanup-MXMMJ7JW.js → cleanup-PTJBMC34.js} +2 -2
  82. package/dist-cli/chunks/cli-version-6ZBD6GKP.js +4 -0
  83. package/dist-cli/chunks/{compat-E6KE5KDI.js → compat-FJ2HWRAG.js} +2 -2
  84. package/dist-cli/chunks/{config-QSLLVZDS.js → config-PYGH7JPN.js} +2 -2
  85. package/dist-cli/chunks/{connect-QE4VU6GB.js → connect-AJV4PZA4.js} +2 -2
  86. package/dist-cli/chunks/control-667PAYX4.js +4 -0
  87. package/dist-cli/chunks/daemon-EIBOHZYQ.js +4 -0
  88. package/dist-cli/chunks/{debug-5FG3MBJS.js → debug-XF2XUDHN.js} +3 -3
  89. package/dist-cli/chunks/{desktop-5EZX7NX5.js → desktop-HEZYNFYW.js} +3 -3
  90. package/dist-cli/chunks/{detox-WJGQP5TM.js → detox-JCFZJRNE.js} +2 -2
  91. package/dist-cli/chunks/{device-D7LKCAMS.js → device-KGUVZHFW.js} +2 -2
  92. package/dist-cli/chunks/{diagnose-A3W6ZTGA.js → diagnose-KVJQ3TOI.js} +2 -2
  93. package/dist-cli/chunks/{disk-cleanup-BDRHX5ZG.js → disk-cleanup-7HQXJFUX.js} +2 -2
  94. package/dist-cli/chunks/{do-chain-RUJNRPPF.js → do-chain-3FYJNA2N.js} +2 -2
  95. package/dist-cli/chunks/drivers-5S6M5TJB.js +4 -0
  96. package/dist-cli/chunks/{env-U67SQVTV.js → env-BX6S2SOM.js} +2 -2
  97. package/dist-cli/chunks/{film-XC6UAQ3V.js → film-2WZUVYFA.js} +3 -3
  98. package/dist-cli/chunks/flow-6BZSWNHG.js +4 -0
  99. package/dist-cli/chunks/help-OGJBD4NP.js +4 -0
  100. package/dist-cli/chunks/{hidden-runtime-alias-7S2TNZXG.js → hidden-runtime-alias-PGF55OFH.js} +2 -2
  101. package/dist-cli/chunks/{home-paths-LMO5LB4F.js → home-paths-EGRMTSGE.js} +2 -2
  102. package/dist-cli/chunks/inspect-MZVDGAN4.js +4 -0
  103. package/dist-cli/chunks/install-desktop-QB76DNZF.js +4 -0
  104. package/dist-cli/chunks/{login-JIU42S4C.js → login-HRFPYPZ3.js} +2 -2
  105. package/dist-cli/chunks/{logout-JTAWQXZO.js → logout-LRH5HZGP.js} +2 -2
  106. package/dist-cli/chunks/{maestro-TYBQYOGB.js → maestro-S53T4PPE.js} +3 -3
  107. package/dist-cli/chunks/{maestro-generate-YLAGWVKE.js → maestro-generate-YKIVKOB3.js} +3 -3
  108. package/dist-cli/chunks/{mode-DV24ZRZ6.js → mode-47JKNUNS.js} +2 -2
  109. package/dist-cli/chunks/{optional-demo-registry-JZH66VIM.js → optional-demo-registry-ARZSPS5Y.js} +2 -2
  110. package/dist-cli/chunks/{perf-LXXJ4EAX.js → perf-J73OKB4T.js} +2 -2
  111. package/dist-cli/chunks/{permissions-KAOVZUPW.js → permissions-L3FPI56H.js} +2 -2
  112. package/dist-cli/chunks/{platform-KW35446W.js → platform-YAROAHRM.js} +3 -3
  113. package/dist-cli/chunks/privacy-JZQCXHKN.js +4 -0
  114. package/dist-cli/chunks/{record-EK3ETFHZ.js → record-QAQMGYOO.js} +3 -3
  115. package/dist-cli/chunks/{report-issue-NW5PCAZF.js → report-issue-4FVZCAFQ.js} +2 -2
  116. package/dist-cli/chunks/reset-NYFUFZCG.js +4 -0
  117. package/dist-cli/chunks/resolve-target-SP22ZGFZ.js +4 -0
  118. package/dist-cli/chunks/runtime-WTS2QMXZ.js +4 -0
  119. package/dist-cli/chunks/{screenshot-command-TQSPTFT2.js → screenshot-command-Q5MGGEWY.js} +3 -3
  120. package/dist-cli/chunks/{screenshot-layers-IZP3L3AQ.js → screenshot-layers-4JW7DRL7.js} +2 -2
  121. package/dist-cli/chunks/{screenshots-capture-K7LJOVAE.js → screenshots-capture-X5PMO44E.js} +2 -2
  122. package/dist-cli/chunks/{serve-MMX4WXXG.js → serve-3JWJ45J3.js} +19 -19
  123. package/dist-cli/chunks/setup-USPDJESI.js +4 -0
  124. package/dist-cli/chunks/{sim-client-KLAYIFOC.js → sim-client-RL6DGOJE.js} +2 -2
  125. package/dist-cli/chunks/{skills-N4D3POIS.js → skills-QNO6GDJB.js} +2 -2
  126. package/dist-cli/chunks/{state-ES6TFQZF.js → state-OGUCSUC3.js} +2 -2
  127. package/dist-cli/chunks/{storage-52DR5V2C.js → storage-TG7KFQZ3.js} +2 -2
  128. package/dist-cli/chunks/store-ZYMQW2LN.js +4 -0
  129. package/dist-cli/chunks/telemetry-7CSLUUIW.js +4 -0
  130. package/dist-cli/chunks/{timeline-NRVNB5JR.js → timeline-R4G5P335.js} +2 -2
  131. package/dist-cli/chunks/{upgrade-LNED5YQ2.js → upgrade-RDTXJ6O3.js} +2 -2
  132. package/dist-cli/chunks/upload-PLF2DPMS.js +4 -0
  133. package/dist-cli/chunks/{version-VEF2DYGG.js → version-GU2NUZDS.js} +2 -2
  134. package/dist-cli/chunks/{web-CGDE6S73.js → web-7PUVG3GE.js} +2 -2
  135. package/dist-cli/chunks/welcome-4GGUV7FY.js +5 -0
  136. package/dist-cli/chunks/{what-happened-FSIDWL32.js → what-happened-OHAAX6F6.js} +2 -2
  137. package/dist-cli/chunks/{ws-bridge-QXFQLRE7.js → ws-bridge-Z3O35MNF.js} +2 -2
  138. package/dist-lib/agent-daemon-client.cjs +1 -1
  139. package/dist-lib/agent-events.cjs +1 -1
  140. package/dist-lib/agent-identity.cjs +1 -1
  141. package/dist-lib/agent-sessions.cjs +1 -1
  142. package/dist-lib/attached-projects.cjs +1 -1
  143. package/dist-lib/auth/shared-session.cjs +1 -1
  144. package/dist-lib/backend-origin.cjs +1 -1
  145. package/dist-lib/beta.cjs +1 -1
  146. package/dist-lib/beta.mjs +1 -1
  147. package/dist-lib/bridge-constants.cjs +1 -1
  148. package/dist-lib/bridge-contract-input.cjs +1 -1
  149. package/dist-lib/bridge-contract-input.mjs +1 -1
  150. package/dist-lib/bridge-contract.cjs +1 -1
  151. package/dist-lib/bridge-contract.mjs +1 -1
  152. package/dist-lib/cli-constants.cjs +1 -1
  153. package/dist-lib/config.cjs +1 -1
  154. package/dist-lib/detox/index.cjs +1 -1
  155. package/dist-lib/dev-bundle-resolution.cjs +69 -34
  156. package/dist-lib/home-paths.cjs +1 -1
  157. package/dist-lib/host/bridge-host.cjs +430 -106
  158. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  159. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  160. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  161. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  162. package/dist-lib/host/websocket-proxy.cjs +1 -1
  163. package/dist-lib/index.cjs +1 -1
  164. package/dist-lib/jump-to-source-babel.cjs +1 -1
  165. package/dist-lib/menu.cjs +1 -1
  166. package/dist-lib/menu.mjs +1 -1
  167. package/dist-lib/metro-production-bundle.cjs +1 -1
  168. package/dist-lib/metro-production-bundle.mjs +1 -1
  169. package/dist-lib/metro.cjs +1 -1
  170. package/dist-lib/profiles.cjs +1 -1
  171. package/dist-lib/public-brand.cjs +1 -1
  172. package/dist-lib/react-native-host-modules.cjs +1 -1
  173. package/dist-lib/react-native-host-modules.mjs +1 -1
  174. package/dist-lib/render-mode.cjs +1 -1
  175. package/dist-lib/scripts/dev-server-scanner.cjs +149 -93
  176. package/dist-lib/sdk.cjs +1 -1
  177. package/dist-lib/sdk.mjs +1 -1
  178. package/dist-lib/skills.cjs +679 -307
  179. package/dist-lib/vite.cjs +1 -1
  180. package/package.json +1 -1
  181. package/scripts/dev-server-scanner.ts +275 -92
  182. package/src/dev-bundle-resolution.ts +123 -40
  183. package/src/host/bridge-host.ts +11 -0
  184. package/src/host/plane-host.ts +203 -0
  185. package/dist-cli/chunks/chunk-NTC46LSA.js +0 -4
  186. package/dist-cli/chunks/chunk-OTFTMGAL.js +0 -7
  187. package/dist-cli/chunks/cli-version-MLS55UTY.js +0 -4
  188. package/dist-cli/chunks/control-XD5F6K5T.js +0 -4
  189. package/dist-cli/chunks/daemon-UN5SE2JO.js +0 -4
  190. package/dist-cli/chunks/drivers-3NJ5RL6X.js +0 -4
  191. package/dist-cli/chunks/flow-FHZZD3P6.js +0 -4
  192. package/dist-cli/chunks/help-BYYDUSXF.js +0 -4
  193. package/dist-cli/chunks/inspect-RQCTWDCC.js +0 -4
  194. package/dist-cli/chunks/install-desktop-GOWXCQUE.js +0 -4
  195. package/dist-cli/chunks/privacy-MIFE72CG.js +0 -4
  196. package/dist-cli/chunks/reset-RZ4O5AFJ.js +0 -4
  197. package/dist-cli/chunks/resolve-target-7R5BNYMM.js +0 -4
  198. package/dist-cli/chunks/runtime-MZHLSRS6.js +0 -4
  199. package/dist-cli/chunks/setup-YFP3KEQZ.js +0 -4
  200. package/dist-cli/chunks/store-HOL45WCI.js +0 -4
  201. package/dist-cli/chunks/telemetry-BV6OTYPF.js +0 -4
  202. package/dist-cli/chunks/upload-RXKHFIBU.js +0 -4
  203. package/dist-cli/chunks/welcome-FT2AMUWW.js +0 -5
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-Z3DENGXW.js";import"./chunk-DXV37CJN.js";import{c as $}from"./chunk-5RKRVS5A.js";import"./chunk-PIZXOXBL.js";import"./chunk-C7BA5CCM.js";import"./chunk-NJMU5BN6.js";import"./chunk-JZLDHPB7.js";import"./chunk-CMVRTZ5G.js";import"./chunk-EOIBLKZO.js";import"./chunk-OJZHECGH.js";import"./chunk-RRX52O37.js";import{j as y}from"./chunk-U63T6LIQ.js";import"./chunk-MDCY532E.js";import"./chunk-64JAEJ6N.js";import"./chunk-I52NT6VG.js";import w from"node:fs";import d from"node:path";import{spawn as _}from"node:child_process";import F from"node:net";import{WebSocket as R}from"ws";var c=class extends Error{code;constructor(e,t){super(e),this.name="AgentDaemonError",this.code=t}},f=class{ws;port;commandTimeoutMs;ready;closed=!1;nextId=1;pending=new Map;eventListeners=new Set;statusListeners=new Set;disconnectListeners=new Set;constructor(e={}){this.port=e.port??7668,this.commandTimeoutMs=e.commandTimeoutMs??15e3,this.ws=new R(`ws://localhost:${this.port}`),this.ready=new Promise((t,r)=>{let s=()=>{this.ws.off("error",o),t()},o=i=>{this.ws.off("open",s),r(new c(`could not connect to rnx daemon on port ${this.port}: ${i.message}`,"NO_DAEMON"))};this.ws.once("open",s),this.ws.once("error",o)}),this.ws.on("message",t=>this.handleMessage(t)),this.ws.on("close",()=>this.handleClose()),this.ws.on("error",()=>{})}async waitReady(){return this.ready}async listProjects(){return this.send("agent:list-projects")}async upsertProject(e){return this.send("agent:upsert-project",{input:e})}async deleteProject(e){return this.send("agent:delete-project",{projectId:e})}async autoAttachForUrl(e){return this.send("agent:auto-attach-for-url",{input:e})}async listSessions(e){return this.send("agent:list-sessions",{projectId:e})}async startSession(e){return this.send("agent:start-session",{input:e})}async sendPrompt(e,t){return this.send("agent:send-prompt",{sessionId:e,prompt:t})}async sendClaimedPrompt(e,t){return this.send("agent:send-claimed-prompt",{simId:e,prompt:t})}async endSession(e){return this.send("agent:end-session",{sessionId:e})}async getTranscript(e){return this.send("agent:get-transcript",{sessionId:e})}async getPaths(){return this.send("agent:get-paths")}async subscribeEvents(e){return this.send("agent:subscribe-events",{sessionId:e})}async unsubscribeEvents(e){return this.send("agent:unsubscribe-events",{sessionId:e})}onAgentEvent(e){return this.eventListeners.add(e),()=>this.eventListeners.delete(e)}onSessionStatusChange(e){return this.statusListeners.add(e),()=>this.statusListeners.delete(e)}onDisconnect(e){return this.disconnectListeners.add(e),()=>this.disconnectListeners.delete(e)}close(){if(!this.closed){this.closed=!0;try{this.ws.close()}catch{}}}async send(e,t={}){if(await this.ready,this.closed||this.ws.readyState!==R.OPEN)throw new c("daemon connection is closed","NO_DAEMON");let r=this.nextId++;return new Promise((s,o)=>{let i=setTimeout(()=>{this.pending.delete(r),o(new c(`${e} timed out after ${Math.round(this.commandTimeoutMs/1e3)}s`,"TIMEOUT"))},this.commandTimeoutMs);this.pending.set(r,{resolve:s,reject:o,timer:i});try{this.ws.send(JSON.stringify({id:r,type:e,...t}))}catch(a){clearTimeout(i),this.pending.delete(r),o(a instanceof Error?a:new Error(String(a)))}})}handleMessage(e){let t;try{t=JSON.parse(String(e))}catch{return}if(!t||typeof t!="object")return;if(t.type==="agent:event"){for(let s of this.eventListeners)try{s({sessionId:t.sessionId,event:t.event})}catch{}return}if(t.type==="agent:session-status"){for(let s of this.statusListeners)try{s(t.session)}catch{}return}if(typeof t.id!="number")return;let r=this.pending.get(t.id);r&&(this.pending.delete(t.id),clearTimeout(r.timer),t.error?r.reject(new c(t.error,t.code)):r.resolve(t.result))}handleClose(){if(!this.closed){this.closed=!0;for(let[,e]of this.pending)clearTimeout(e.timer),e.reject(new c("daemon disconnected","DISCONNECT"));this.pending.clear();for(let e of this.disconnectListeners)try{e()}catch{}}}};function M(n=7668,e=400){return new Promise(t=>{let r=new F.Socket,s=!1,o=i=>{s||(s=!0,r.destroy(),t(i))};r.setTimeout(e),r.once("connect",()=>o(!0)),r.once("timeout",()=>o(!1)),r.once("error",()=>o(!1)),r.connect(n,"127.0.0.1")})}async function B(n={}){let e=n.port??7668;if(await M(e))return{alreadyRunning:!0};if(y())throw new c(`no rnx bridge on port ${e}. run \`rnx daemon install\` to enable the faster background service, or \`rnx serve\` in another shell.`,"DEV_HOST_REFUSED");let{cmd:t,prefixArgs:r}=C(),s=[...r,"serve","--quiet"];e!==7668&&s.push("--port",String(e));let o=_(t,s,{detached:!0,stdio:"ignore",env:process.env,cwd:process.cwd()});o.unref();let i=Date.now()+(n.startupTimeoutMs??5e3);for(;Date.now()<i;){if(await M(e))return{alreadyRunning:!1,pid:o.pid};await new Promise(a=>setTimeout(a,100))}throw new c(`spawned rnx daemon on port ${e} but it did not come up in time. run \`rnx serve\` manually to diagnose.`,"SPAWN_TIMEOUT")}async function h(n={}){await B({port:n.port,startupTimeoutMs:n.startupTimeoutMs});let e=new f(n);try{await e.waitReady()}catch(t){throw e.close(),t}return e}async function ge(n){let[e,...t]=n;try{switch(e){case void 0:case"--help":case"-h":case"help":return L(),0;case"attach":return await W(t);case"projects":return await J();case"project":return await V(t);case"sessions":return await H(t);case"start":return await G(t);case"prompt":return await q(t);case"watch":return await K(t);case"transcript":return await z(t);case"end":return await Q(t);case"paths":return await Y();default:return process.stderr.write(`unknown agent subcommand: ${e}
4
+ import{a as b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-TL22EBF5.js";import"./chunk-GQGS7TRK.js";import{c as $}from"./chunk-FLNGSIBL.js";import"./chunk-763GBI7G.js";import"./chunk-UPMR6Y5P.js";import"./chunk-7YB46LGI.js";import"./chunk-OF3U4SZO.js";import"./chunk-AGZZWLEL.js";import"./chunk-ESWSXF55.js";import"./chunk-WLRIPAGJ.js";import"./chunk-KHGXEU4L.js";import{j as y}from"./chunk-Y7SKGRAV.js";import"./chunk-IX7Z6ZVJ.js";import"./chunk-OQPZOEEP.js";import"./chunk-OF5OBB67.js";import w from"node:fs";import d from"node:path";import{spawn as _}from"node:child_process";import F from"node:net";import{WebSocket as R}from"ws";var c=class extends Error{code;constructor(e,t){super(e),this.name="AgentDaemonError",this.code=t}},f=class{ws;port;commandTimeoutMs;ready;closed=!1;nextId=1;pending=new Map;eventListeners=new Set;statusListeners=new Set;disconnectListeners=new Set;constructor(e={}){this.port=e.port??7668,this.commandTimeoutMs=e.commandTimeoutMs??15e3,this.ws=new R(`ws://localhost:${this.port}`),this.ready=new Promise((t,r)=>{let s=()=>{this.ws.off("error",o),t()},o=i=>{this.ws.off("open",s),r(new c(`could not connect to rnx daemon on port ${this.port}: ${i.message}`,"NO_DAEMON"))};this.ws.once("open",s),this.ws.once("error",o)}),this.ws.on("message",t=>this.handleMessage(t)),this.ws.on("close",()=>this.handleClose()),this.ws.on("error",()=>{})}async waitReady(){return this.ready}async listProjects(){return this.send("agent:list-projects")}async upsertProject(e){return this.send("agent:upsert-project",{input:e})}async deleteProject(e){return this.send("agent:delete-project",{projectId:e})}async autoAttachForUrl(e){return this.send("agent:auto-attach-for-url",{input:e})}async listSessions(e){return this.send("agent:list-sessions",{projectId:e})}async startSession(e){return this.send("agent:start-session",{input:e})}async sendPrompt(e,t){return this.send("agent:send-prompt",{sessionId:e,prompt:t})}async sendClaimedPrompt(e,t){return this.send("agent:send-claimed-prompt",{simId:e,prompt:t})}async endSession(e){return this.send("agent:end-session",{sessionId:e})}async getTranscript(e){return this.send("agent:get-transcript",{sessionId:e})}async getPaths(){return this.send("agent:get-paths")}async subscribeEvents(e){return this.send("agent:subscribe-events",{sessionId:e})}async unsubscribeEvents(e){return this.send("agent:unsubscribe-events",{sessionId:e})}onAgentEvent(e){return this.eventListeners.add(e),()=>this.eventListeners.delete(e)}onSessionStatusChange(e){return this.statusListeners.add(e),()=>this.statusListeners.delete(e)}onDisconnect(e){return this.disconnectListeners.add(e),()=>this.disconnectListeners.delete(e)}close(){if(!this.closed){this.closed=!0;try{this.ws.close()}catch{}}}async send(e,t={}){if(await this.ready,this.closed||this.ws.readyState!==R.OPEN)throw new c("daemon connection is closed","NO_DAEMON");let r=this.nextId++;return new Promise((s,o)=>{let i=setTimeout(()=>{this.pending.delete(r),o(new c(`${e} timed out after ${Math.round(this.commandTimeoutMs/1e3)}s`,"TIMEOUT"))},this.commandTimeoutMs);this.pending.set(r,{resolve:s,reject:o,timer:i});try{this.ws.send(JSON.stringify({id:r,type:e,...t}))}catch(a){clearTimeout(i),this.pending.delete(r),o(a instanceof Error?a:new Error(String(a)))}})}handleMessage(e){let t;try{t=JSON.parse(String(e))}catch{return}if(!t||typeof t!="object")return;if(t.type==="agent:event"){for(let s of this.eventListeners)try{s({sessionId:t.sessionId,event:t.event})}catch{}return}if(t.type==="agent:session-status"){for(let s of this.statusListeners)try{s(t.session)}catch{}return}if(typeof t.id!="number")return;let r=this.pending.get(t.id);r&&(this.pending.delete(t.id),clearTimeout(r.timer),t.error?r.reject(new c(t.error,t.code)):r.resolve(t.result))}handleClose(){if(!this.closed){this.closed=!0;for(let[,e]of this.pending)clearTimeout(e.timer),e.reject(new c("daemon disconnected","DISCONNECT"));this.pending.clear();for(let e of this.disconnectListeners)try{e()}catch{}}}};function M(n=7668,e=400){return new Promise(t=>{let r=new F.Socket,s=!1,o=i=>{s||(s=!0,r.destroy(),t(i))};r.setTimeout(e),r.once("connect",()=>o(!0)),r.once("timeout",()=>o(!1)),r.once("error",()=>o(!1)),r.connect(n,"127.0.0.1")})}async function B(n={}){let e=n.port??7668;if(await M(e))return{alreadyRunning:!0};if(y())throw new c(`no rnx bridge on port ${e}. run \`rnx daemon install\` to enable the faster background service, or \`rnx serve\` in another shell.`,"DEV_HOST_REFUSED");let{cmd:t,prefixArgs:r}=C(),s=[...r,"serve","--quiet"];e!==7668&&s.push("--port",String(e));let o=_(t,s,{detached:!0,stdio:"ignore",env:process.env,cwd:process.cwd()});o.unref();let i=Date.now()+(n.startupTimeoutMs??5e3);for(;Date.now()<i;){if(await M(e))return{alreadyRunning:!1,pid:o.pid};await new Promise(a=>setTimeout(a,100))}throw new c(`spawned rnx daemon on port ${e} but it did not come up in time. run \`rnx serve\` manually to diagnose.`,"SPAWN_TIMEOUT")}async function h(n={}){await B({port:n.port,startupTimeoutMs:n.startupTimeoutMs});let e=new f(n);try{await e.waitReady()}catch(t){throw e.close(),t}return e}async function ge(n){let[e,...t]=n;try{switch(e){case void 0:case"--help":case"-h":case"help":return L(),0;case"attach":return await W(t);case"projects":return await J();case"project":return await V(t);case"sessions":return await H(t);case"start":return await G(t);case"prompt":return await q(t);case"watch":return await K(t);case"transcript":return await z(t);case"end":return await Q(t);case"paths":return await Y();default:return process.stderr.write(`unknown agent subcommand: ${e}
5
5
  `),L(),2}}catch(r){if(r instanceof c)return process.stderr.write(`${r.message}
6
6
  `),1;throw r}}async function v(n){let e=await h({clientLabel:"sootsim-agent-cli"});try{return await n(e)}finally{e.close()}}function L(){$("agent")}function P(n,e){let t={},r=[];for(let s=0;s<n.length;s++){let o=n[s],i=e[o];i==="value"?(t[o]=n[s+1]??"",s++):i==="bool"?t[o]=!0:r.push(o)}return{flags:t,positional:r}}function U(n,e="codex"){return n==="codex"||n==="claude"?n:e}async function W(n){let{flags:e,positional:t}=P(n,{"--name":"value","--provider":"value"}),r=t[0];if(!r)return process.stderr.write(`usage: rnx agent attach <dir> [--name X] [--provider codex|claude]
7
7
  `),2;let s=d.resolve(r);if(!w.existsSync(s))return process.stderr.write(`directory does not exist: ${s}
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{b as M}from"./chunk-DXV37CJN.js";import"./chunk-I52NT6VG.js";import{execFile as G,spawn as q}from"node:child_process";import{randomUUID as X}from"node:crypto";import{constants as R,createReadStream as Y,createWriteStream as j,existsSync as C,openSync as J}from"node:fs";import V from"node:fs/promises";import z from"node:path";import K from"node:readline";import{promisify as Q}from"node:util";import{spawn as H}from"node:child_process";import L from"node:readline";var b=class extends Error{code;data;constructor(t,r,m){super(t),this.name="CodexRpcError",this.code=r,this.data=m}};function W(d){let t=H(d.bin,["app-server"],{cwd:d.cwd,env:{...process.env,...d.env},stdio:["pipe","pipe","pipe"]}),r=new Map,m=new Map,u=1,f=!1,a=new Promise(s=>{t.on("exit",(o,e)=>{f=!0;let p=new Error(`codex app-server exited (code=${o}, signal=${e??""})`);for(let{reject:y}of r.values())y(p);r.clear(),s({code:o,signal:e})})});L.createInterface({input:t.stdout,crlfDelay:1/0}).on("line",s=>{let o=s.trim();if(!o)return;let e;try{e=JSON.parse(o)}catch{return}if(e.id!=null&&(e.result!==void 0||e.error!==void 0)){let p=typeof e.id=="string"?Number(e.id):e.id,y=p!=null?r.get(p):void 0;if(!y)return;r.delete(p),e.error?y.reject(new b(e.error.message,e.error.code,e.error.data)):y.resolve(e.result);return}if(e.method){let p=m.get(e.method);if(!p)return;for(let y of p)try{y(e.params)}catch(l){console.error(`[codex-client] handler for "${e.method}" threw:`,l instanceof Error?l.stack??l.message:l)}}}),t.stderr.setEncoding("utf8"),t.stderr.on("data",s=>{let o=m.get("__stderr__");if(o)for(let e of o)try{e({text:s})}catch{}});function n(s){if(!f)try{t.stdin.write(JSON.stringify(s)+`
4
+ import{b as M}from"./chunk-GQGS7TRK.js";import"./chunk-OF5OBB67.js";import{execFile as G,spawn as q}from"node:child_process";import{randomUUID as X}from"node:crypto";import{constants as R,createReadStream as Y,createWriteStream as j,existsSync as C,openSync as J}from"node:fs";import V from"node:fs/promises";import z from"node:path";import K from"node:readline";import{promisify as Q}from"node:util";import{spawn as H}from"node:child_process";import L from"node:readline";var b=class extends Error{code;data;constructor(t,r,m){super(t),this.name="CodexRpcError",this.code=r,this.data=m}};function W(d){let t=H(d.bin,["app-server"],{cwd:d.cwd,env:{...process.env,...d.env},stdio:["pipe","pipe","pipe"]}),r=new Map,m=new Map,u=1,f=!1,a=new Promise(s=>{t.on("exit",(o,e)=>{f=!0;let p=new Error(`codex app-server exited (code=${o}, signal=${e??""})`);for(let{reject:y}of r.values())y(p);r.clear(),s({code:o,signal:e})})});L.createInterface({input:t.stdout,crlfDelay:1/0}).on("line",s=>{let o=s.trim();if(!o)return;let e;try{e=JSON.parse(o)}catch{return}if(e.id!=null&&(e.result!==void 0||e.error!==void 0)){let p=typeof e.id=="string"?Number(e.id):e.id,y=p!=null?r.get(p):void 0;if(!y)return;r.delete(p),e.error?y.reject(new b(e.error.message,e.error.code,e.error.data)):y.resolve(e.result);return}if(e.method){let p=m.get(e.method);if(!p)return;for(let y of p)try{y(e.params)}catch(l){console.error(`[codex-client] handler for "${e.method}" threw:`,l instanceof Error?l.stack??l.message:l)}}}),t.stderr.setEncoding("utf8"),t.stderr.on("data",s=>{let o=m.get("__stderr__");if(o)for(let e of o)try{e({text:s})}catch{}});function n(s){if(!f)try{t.stdin.write(JSON.stringify(s)+`
5
5
  `)}catch{}}return{exited:a,on(s,o){let e=m.get(s);return e||(e=new Set,m.set(s,e)),e.add(o),()=>{e?.delete(o)}},request(s,o){if(f)return Promise.reject(new Error(`codex app-server closed; cannot call ${s}`));let e=u++;return new Promise((p,y)=>{r.set(e,{resolve:l=>p(l),reject:y,method:s}),n({jsonrpc:"2.0",id:e,method:s,params:o})})},notify(s,o){n({jsonrpc:"2.0",method:s,params:o})},async shutdown(s=1500){if(f)return;try{t.stdin.end()}catch{}let o=setTimeout(()=>{if(!f)try{t.kill("SIGTERM")}catch{}},s);try{await a}finally{clearTimeout(o)}},kill(s="SIGTERM"){if(!f)try{t.kill(s)}catch{}}}}var O="never",F="danger-full-access",Z={type:"dangerFullAccess"},D="fast",ee="medium",te=Q(G);async function ne(d,t){let r=t||d;if(r.includes("/")||r.includes("\\"))return C(r)?{ok:!0,path:r}:{ok:!1,message:`agent binary not found at path: ${r}`};try{let{stdout:m}=await te("which",[r],{timeout:1500}),u=m.trim();return u?{ok:!0,path:u}:{ok:!1,message:`${r} not found on PATH`}}catch{return{ok:!1,message:`${r} not found on PATH. install the ${d} CLI and retry, or pass --${d}-bin /path/to/${d} to agent start.`}}}function re(d){let t={"--session-id":"sessionId","--project-id":"projectId","--provider":"provider","--cwd":"cwd","--prompt-in":"promptIn","--events-out":"eventsOut","--transcript":"transcript","--codex-bin":"codexBin","--claude-bin":"claudeBin","--claude-session-uuid":"claudeSessionUuid"},r={};for(let m=0;m<d.length;m++){let u=d[m];if(u==="--fresh-thread"){r.freshThread=!0;continue}let f=t[u];f&&(r[f]=d[m+1],m++)}return r}async function Ie(d){let t=re(d);if(!t.sessionId||!t.projectId||!t.provider||!t.cwd||!t.promptIn||!t.eventsOut)return process.stderr.write(`usage: rnx agent-wrapper --session-id <id> --project-id <id>
6
6
  --provider codex|claude --cwd <path>
7
7
  --prompt-in <fifo> --events-out <fifo>
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{p as g}from"./chunk-3BG6UCQY.js";import"./chunk-PNOENVMJ.js";import"./chunk-EQ3OE2AV.js";import{c as f}from"./chunk-AVJBT5LF.js";import"./chunk-I52NT6VG.js";import{existsSync as d,mkdirSync as y,readFileSync as m,writeFileSync as u}from"node:fs";import{join as w}from"node:path";import{gzipSync as x}from"node:zlib";function l(t,e){let r=t.indexOf(`--${e}`);if(r!==-1&&r+1<t.length)return t[r+1];let s=t.find(i=>i.startsWith(`--${e}=`));return s?s.slice(e.length+3):void 0}async function S(t){let e=l(t,"wire")||"",r=l(t,"out-dir"),s=l(t,"manifest");if((!r||!s)&&(console.error(" usage: rnx app-fonts stage --wire <wire> --out-dir <dir> --manifest <path>"),f(1)),!e.trim()){console.log("no app fonts declared \u2014 nothing to stage");return}y(r,{recursive:!0});let i=await g(e,{onStaged:({url:n,byteLength:o})=>console.log(` staged app font: ${n} (${(o/1024).toFixed(1)} KiB)`),onError:(n,o)=>console.error(` warning: failed to fetch app font ${n}: ${o instanceof Error?o.message:o}`)}),a=[];for(let n of i){let o=x(n.bytes);u(w(r,n.urlhash),o),a.push({url:n.url,urlhash:n.urlhash,contentType:n.contentType,encoding:"gzip",sizeBytes:o.length,rawBytes:n.bytes.byteLength})}let c=[];if(d(s))try{let n=JSON.parse(m(s,"utf8"));Array.isArray(n)&&(c=n)}catch{}let h=new Set(c.map(n=>n.urlhash)),p=[...c,...a.filter(n=>!h.has(n.urlhash))];u(s,JSON.stringify(p)),console.log(`staged ${a.length} app font(s); manifest now has ${p.length} file(s)`)}async function B(t){let e=t[0];if(e==="stage"){await S(t.slice(1));return}console.error(` unknown app-fonts subcommand: ${e??"(none)"}`),console.error(" available: stage"),f(1)}export{B as runAppFonts};
4
+ import{p as g}from"./chunk-AVIH3TAZ.js";import"./chunk-HV3WOWQM.js";import"./chunk-IYU2EOIU.js";import{c as f}from"./chunk-ERBGQEJ5.js";import"./chunk-OF5OBB67.js";import{existsSync as d,mkdirSync as y,readFileSync as m,writeFileSync as u}from"node:fs";import{join as w}from"node:path";import{gzipSync as x}from"node:zlib";function l(t,e){let r=t.indexOf(`--${e}`);if(r!==-1&&r+1<t.length)return t[r+1];let s=t.find(i=>i.startsWith(`--${e}=`));return s?s.slice(e.length+3):void 0}async function S(t){let e=l(t,"wire")||"",r=l(t,"out-dir"),s=l(t,"manifest");if((!r||!s)&&(console.error(" usage: rnx app-fonts stage --wire <wire> --out-dir <dir> --manifest <path>"),f(1)),!e.trim()){console.log("no app fonts declared \u2014 nothing to stage");return}y(r,{recursive:!0});let i=await g(e,{onStaged:({url:n,byteLength:o})=>console.log(` staged app font: ${n} (${(o/1024).toFixed(1)} KiB)`),onError:(n,o)=>console.error(` warning: failed to fetch app font ${n}: ${o instanceof Error?o.message:o}`)}),a=[];for(let n of i){let o=x(n.bytes);u(w(r,n.urlhash),o),a.push({url:n.url,urlhash:n.urlhash,contentType:n.contentType,encoding:"gzip",sizeBytes:o.length,rawBytes:n.bytes.byteLength})}let c=[];if(d(s))try{let n=JSON.parse(m(s,"utf8"));Array.isArray(n)&&(c=n)}catch{}let h=new Set(c.map(n=>n.urlhash)),p=[...c,...a.filter(n=>!h.has(n.urlhash))];u(s,JSON.stringify(p)),console.log(`staged ${a.length} app font(s); manifest now has ${p.length} file(s)`)}async function B(t){let e=t[0];if(e==="stage"){await S(t.slice(1));return}console.error(` unknown app-fonts subcommand: ${e??"(none)"}`),console.error(" available: stage"),f(1)}export{B as runAppFonts};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{c}from"./chunk-AVJBT5LF.js";import"./chunk-I52NT6VG.js";import{spawn as S}from"child_process";var k=new Set(["describe","find","list","network","logs","count","tree","url","a11y","node","layout","keyboard","errors","warnings","requests","animations","animation","state","sample-color"]),q=new Set(["--exists","--empty","--negate","--quiet","--allow-timeout","!"]),P=new Set(["--count","--count-at-least","--count-at-most","--contains","--not-contains","--matches","--not-matches","--equals","--jq","--has-path","--within"]),j=new Set(["--path-equals"]);function N(s){let r=[],u=[],n=0,e=!1,t=!1,i=!1;for(let o=0;o<s.length;o++){let a=s[o];if(a==="--within"){let l=Number(s[o+1]);if(!Number.isFinite(l)||l<0)return{error:`--within requires a non-negative number, got: ${s[o+1]}`};n=l,o++;continue}if(a==="--negate"||a==="!"){e=!0;continue}if(a==="--quiet"){t=!0;continue}if(a==="--allow-timeout"){i=!0;continue}if(q.has(a)){u.push({kind:a,args:[]});continue}if(P.has(a)){let l=s[o+1];if(l==null)return{error:`${a} requires a value`};u.push({kind:a,args:[l]}),o++;continue}if(j.has(a)){let l=s[o+1],p=s[o+2];if(l==null||p==null)return{error:`${a} requires <path> <value>`};u.push({kind:a,args:[l,p]}),o+=2;continue}r.push(a)}return r.length===0?{error:"assert requires a verb (e.g. find, describe, get errors)"}:{verbArgs:r,predicates:u,withinMs:n,negate:e,quiet:t,allowTimeout:i}}function R(s){return s[0]==="get"||s[0]==="debug"?k.has(s[1])?s[1]:null:s[0]==="do"||s[0]==="wait"?null:k.has(s[0])?s[0]:null}async function A(s){let u=[process.argv[1],...s,"--json"];return new Promise(n=>{let e=S(process.execPath,u,{stdio:["ignore","pipe","pipe"],env:process.env}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",o=>{n({ok:!1,payload:null,reason:`spawn failed: ${o.message}`})}),e.on("close",o=>{if(o!==0){let a=i.trim().split(`
4
+ import{c}from"./chunk-ERBGQEJ5.js";import"./chunk-OF5OBB67.js";import{spawn as S}from"child_process";var k=new Set(["describe","find","list","network","logs","count","tree","url","a11y","node","layout","keyboard","errors","warnings","requests","animations","animation","state","sample-color"]),q=new Set(["--exists","--empty","--negate","--quiet","--allow-timeout","!"]),P=new Set(["--count","--count-at-least","--count-at-most","--contains","--not-contains","--matches","--not-matches","--equals","--jq","--has-path","--within"]),j=new Set(["--path-equals"]);function N(s){let r=[],u=[],n=0,e=!1,t=!1,i=!1;for(let o=0;o<s.length;o++){let a=s[o];if(a==="--within"){let l=Number(s[o+1]);if(!Number.isFinite(l)||l<0)return{error:`--within requires a non-negative number, got: ${s[o+1]}`};n=l,o++;continue}if(a==="--negate"||a==="!"){e=!0;continue}if(a==="--quiet"){t=!0;continue}if(a==="--allow-timeout"){i=!0;continue}if(q.has(a)){u.push({kind:a,args:[]});continue}if(P.has(a)){let l=s[o+1];if(l==null)return{error:`${a} requires a value`};u.push({kind:a,args:[l]}),o++;continue}if(j.has(a)){let l=s[o+1],p=s[o+2];if(l==null||p==null)return{error:`${a} requires <path> <value>`};u.push({kind:a,args:[l,p]}),o+=2;continue}r.push(a)}return r.length===0?{error:"assert requires a verb (e.g. find, describe, get errors)"}:{verbArgs:r,predicates:u,withinMs:n,negate:e,quiet:t,allowTimeout:i}}function R(s){return s[0]==="get"||s[0]==="debug"?k.has(s[1])?s[1]:null:s[0]==="do"||s[0]==="wait"?null:k.has(s[0])?s[0]:null}async function A(s){let u=[process.argv[1],...s,"--json"];return new Promise(n=>{let e=S(process.execPath,u,{stdio:["ignore","pipe","pipe"],env:process.env}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",o=>{n({ok:!1,payload:null,reason:`spawn failed: ${o.message}`})}),e.on("close",o=>{if(o!==0){let a=i.trim().split(`
5
5
  `).slice(-2).join(" | ").slice(0,200);n({ok:!1,payload:null,reason:`verb exited ${o}${a?`: ${a}`:""}`});return}if(!t.trim()){n({ok:!1,payload:null,reason:"verb produced no output"});return}try{let a=JSON.parse(t);n({ok:!0,payload:a})}catch{n({ok:!1,payload:null,reason:`verb output was not valid json: ${t.slice(0,120)}`})}})})}function v(s,r){let u=r.split(".").filter(e=>e.length>0),n=s;for(let e of u){if(n==null)return{found:!1};if(Array.isArray(n)){let t=Number(e);if(!Number.isInteger(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}if(typeof n=="object"){let t=n;if(!(e in t))return{found:!1};n=t[e];continue}return{found:!1}}return{found:!0,value:n}}function g(s){return Array.isArray(s)?s.length:s&&typeof s=="object"?Object.keys(s).length:null}async function O(s,r){let{kind:u,args:n}=s;switch(u){case"--exists":return r==null?{ok:!1,reason:"payload is null"}:g(r)===0?{ok:!1,reason:"payload is empty"}:{ok:!0,reason:"exists"};case"--empty":{if(r==null)return{ok:!0,reason:"payload is null"};let e=g(r);return e===0?{ok:!0,reason:"payload is empty"}:{ok:!1,reason:`payload has ${e} item(s)`}}case"--count":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:`payload not countable (${typeof r})`}:{ok:t===e,reason:`count=${t}, want=${e}`}}case"--count-at-least":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t>=e,reason:`count=${t}, want>=${e}`}}case"--count-at-most":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t<=e,reason:`count=${t}, want<=${e}`}}case"--contains":{let e=n[0],t=JSON.stringify(r);return{ok:t.includes(e),reason:t.includes(e)?`contains "${e}"`:`missing "${e}"`}}case"--not-contains":{let e=n[0],t=JSON.stringify(r);return{ok:!t.includes(e),reason:t.includes(e)?`unexpected "${e}"`:`not contains "${e}"`}}case"--matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=e.test(t);return{ok:i,reason:i?`matches /${n[0]}/`:`no match for /${n[0]}/`}}case"--not-matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=!e.test(t);return{ok:i,reason:i?`not matches /${n[0]}/`:`unexpected /${n[0]}/`}}case"--equals":{let e=n[0],t=typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r);return{ok:t===e,reason:`got=${JSON.stringify(t)}, want=${JSON.stringify(e)}`}}case"--has-path":{let e=v(r,n[0]);return{ok:e.found,reason:e.found?`path ${n[0]} present`:`path ${n[0]} missing`}}case"--path-equals":{let[e,t]=n,i=v(r,e);if(!i.found)return{ok:!1,reason:`path ${e} missing`};let o=typeof i.value=="string"||typeof i.value=="number"||typeof i.value=="boolean"?String(i.value):JSON.stringify(i.value);return{ok:o===t,reason:`${e}=${o}, want=${t}`}}case"--jq":{let e=n[0];try{let i=(await E(e,r)).trim();return{ok:i.length>0&&i!=="null"&&i!=="false"&&i!=='""',reason:`jq: ${i.slice(0,120)}`}}catch(t){throw new Error(`jq evaluation failed: ${t.message}`)}}default:return{ok:!1,reason:`unknown predicate ${u}`}}}function E(s,r){return new Promise((u,n)=>{let e=S("jq",[s],{stdio:["pipe","pipe","pipe"]}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",n),e.on("close",o=>{if(o!==0){n(new Error(i.trim()||`jq exited ${o}`));return}u(t)}),e.stdin.end(JSON.stringify(r))})}async function L(s){(s[0]==="--help"||s[0]==="-h"||s.length===0)&&(J(),c(s.length===0?2:0));let r=N(s);"error"in r&&(process.stderr.write(` assert: ${r.error}
6
6
  `),c(2));let{verbArgs:u,predicates:n,withinMs:e,negate:t,quiet:i,allowTimeout:o}=r;R(u)||(process.stderr.write(` assert: unknown or non-read verb: ${u.join(" ")}
7
7
  supported: ${Array.from(k).sort().join(", ")}
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a as i}from"./chunk-NTC46LSA.js";import{d as t}from"./chunk-6W4HIWC7.js";import{c as r}from"./chunk-AVJBT5LF.js";import"./chunk-U63T6LIQ.js";import"./chunk-I52NT6VG.js";function s(){console.log(`
4
+ import{a as i}from"./chunk-IPNDXGVA.js";import{d as t}from"./chunk-SH2HXHR2.js";import{c as r}from"./chunk-ERBGQEJ5.js";import"./chunk-Y7SKGRAV.js";import"./chunk-OF5OBB67.js";function s(){console.log(`
5
5
  rnx auth \u2014 inspect CLI auth
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.370 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.371 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  import { createRequire as __sootsimCreateRequire } from 'node:module'
3
3
  var require = __sootsimCreateRequire(import.meta.url)
4
- import{a,b,c,d}from"./chunk-NJMU5BN6.js";import"./chunk-I52NT6VG.js";export{d as BETA_ASK_HEADLINE,b as BETA_LABEL,c as BETA_TAGLINE,a as IS_BETA};
4
+ import{a,b,c,d}from"./chunk-7YB46LGI.js";import"./chunk-OF5OBB67.js";export{d as BETA_ASK_HEADLINE,b as BETA_LABEL,c as BETA_TAGLINE,a as IS_BETA};