rnxsim 0.1.312 → 0.1.313

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 (152) hide show
  1. package/dist-cli/bin.js +5 -5
  2. package/dist-cli/chunks/{agent-NXVDDCFG.js → agent-XZ2KTPCU.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-DXJCFKL3.js → agent-wrapper-JJYYW2WH.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-W5AJZQJF.js → app-fonts-IXRNQG6B.js} +2 -2
  5. package/dist-cli/chunks/{assert-3LOJEUDT.js → assert-54T5SK5F.js} +2 -2
  6. package/dist-cli/chunks/{auth-MFTYYPNX.js → auth-FI5UDI45.js} +2 -2
  7. package/dist-cli/chunks/{beta-GT3NN67B.js → beta-JV6UKADW.js} +2 -2
  8. package/dist-cli/chunks/{camera-6EAK7CUL.js → camera-VL73YIKP.js} +2 -2
  9. package/dist-cli/chunks/{chunk-ZMZTHU7V.js → chunk-2D2UPBBR.js} +1 -1
  10. package/dist-cli/chunks/{chunk-5OX7ANRA.js → chunk-2YR5BGA5.js} +2 -2
  11. package/dist-cli/chunks/{chunk-EUAVBTKU.js → chunk-3NV2NCNX.js} +2 -2
  12. package/dist-cli/chunks/{chunk-FTC4M26Q.js → chunk-46EUUFJ5.js} +1 -1
  13. package/dist-cli/chunks/{chunk-33FKQH54.js → chunk-4NPPOV2N.js} +2 -2
  14. package/dist-cli/chunks/{chunk-G74YIEVS.js → chunk-5DHC6KHQ.js} +1 -1
  15. package/dist-cli/chunks/{chunk-YRV7HR3P.js → chunk-5TEF3ET3.js} +2 -2
  16. package/dist-cli/chunks/{chunk-VUFRB347.js → chunk-5TPRP5QT.js} +1 -1
  17. package/dist-cli/chunks/{chunk-DM6KUAOZ.js → chunk-5YJCOWCH.js} +1 -1
  18. package/dist-cli/chunks/{chunk-SI3BUTQR.js → chunk-7GN3LVWB.js} +2 -2
  19. package/dist-cli/chunks/{chunk-MNGQ42QE.js → chunk-BBULZ7CG.js} +3 -3
  20. package/dist-cli/chunks/{chunk-Y2FSZSO7.js → chunk-BTWORNNG.js} +1 -1
  21. package/dist-cli/chunks/{chunk-2SA2VTGP.js → chunk-D4FFVGI5.js} +1 -1
  22. package/dist-cli/chunks/{chunk-T4FT6CM7.js → chunk-DCEMHR2Y.js} +2 -2
  23. package/dist-cli/chunks/{chunk-FWYYCUAZ.js → chunk-DZS6WPUI.js} +1 -1
  24. package/dist-cli/chunks/{chunk-37I5AIS7.js → chunk-F5ZRSS3C.js} +1 -1
  25. package/dist-cli/chunks/{chunk-66NF2KNG.js → chunk-FSUYIVJ6.js} +1 -1
  26. package/dist-cli/chunks/{chunk-AY47WKS5.js → chunk-G2WW6L2C.js} +2 -2
  27. package/dist-cli/chunks/{chunk-274UD5FD.js → chunk-GASE6UBA.js} +1 -1
  28. package/dist-cli/chunks/{chunk-Q3RGLERJ.js → chunk-GGRX24GF.js} +2 -2
  29. package/dist-cli/chunks/{chunk-TCWQJILS.js → chunk-HI5TFJWN.js} +2 -2
  30. package/dist-cli/chunks/{chunk-7VWOSTD5.js → chunk-IJ5CAZZC.js} +1 -1
  31. package/dist-cli/chunks/{chunk-N6A3SXMR.js → chunk-IJO63TDP.js} +2 -2
  32. package/dist-cli/chunks/{chunk-7INBNA3U.js → chunk-KTHV3RUS.js} +2 -2
  33. package/dist-cli/chunks/{chunk-NLEMQ4PY.js → chunk-LF2ZVT7O.js} +2 -2
  34. package/dist-cli/chunks/{chunk-XRGEEPJ5.js → chunk-MJRLLB4R.js} +2 -2
  35. package/dist-cli/chunks/{chunk-PEPUGJVI.js → chunk-NFK7T35W.js} +1 -1
  36. package/dist-cli/chunks/chunk-NMF2ZMZQ.js +15 -0
  37. package/dist-cli/chunks/{chunk-LDQ7HVCW.js → chunk-OHAZNXLK.js} +1 -1
  38. package/dist-cli/chunks/{chunk-NPVGMH2N.js → chunk-OVFJFXUD.js} +2 -2
  39. package/dist-cli/chunks/{chunk-BRIZOR4K.js → chunk-OZSSI4WN.js} +2 -2
  40. package/dist-cli/chunks/{chunk-WBT32R6N.js → chunk-QKDWYITG.js} +3 -3
  41. package/dist-cli/chunks/{chunk-L24Z3CRS.js → chunk-RSZWCKNT.js} +3 -3
  42. package/dist-cli/chunks/{chunk-B7KMNHX7.js → chunk-RTN5C5RL.js} +1 -1
  43. package/dist-cli/chunks/{chunk-KR5BGMBZ.js → chunk-TIVZIMMW.js} +2 -2
  44. package/dist-cli/chunks/{chunk-TBMVBI26.js → chunk-TZFFR3SD.js} +2 -2
  45. package/dist-cli/chunks/{chunk-TYE3WBSR.js → chunk-UC6U3MML.js} +2 -2
  46. package/dist-cli/chunks/{chunk-U4PN6JOT.js → chunk-VFCMSYZK.js} +2 -2
  47. package/dist-cli/chunks/{chunk-HG7ORJMT.js → chunk-VNQEB4L7.js} +2 -2
  48. package/dist-cli/chunks/{chunk-KZW5WBGU.js → chunk-VZXWHRUZ.js} +3 -3
  49. package/dist-cli/chunks/{chunk-OR3XTXEB.js → chunk-W6K4EFPH.js} +2 -2
  50. package/dist-cli/chunks/{chunk-BKNOLP3J.js → chunk-WEXDAC74.js} +2 -2
  51. package/dist-cli/chunks/{chunk-YZRFF4YA.js → chunk-WF3T4SVI.js} +2 -2
  52. package/dist-cli/chunks/{chunk-MENV7VLD.js → chunk-WINYQ44O.js} +1 -1
  53. package/dist-cli/chunks/{chunk-VZBLFMYC.js → chunk-WMIIKMGK.js} +2 -2
  54. package/dist-cli/chunks/{chunk-GZDHEONW.js → chunk-WUSWBCWA.js} +3 -3
  55. package/dist-cli/chunks/{chunk-JG6S4RSH.js → chunk-WWZIXIRD.js} +1 -1
  56. package/dist-cli/chunks/{chunk-TGQNQ6XT.js → chunk-XEVZYVIW.js} +1 -1
  57. package/dist-cli/chunks/{chunk-3D57IBPC.js → chunk-YDGQTMQL.js} +1 -1
  58. package/dist-cli/chunks/{chunk-4BXCZHAU.js → chunk-YIFT42WN.js} +2 -2
  59. package/dist-cli/chunks/chunk-ZMJD5GEC.js +125 -0
  60. package/dist-cli/chunks/{cleanup-H3GWQB63.js → cleanup-P27PA6JI.js} +2 -2
  61. package/dist-cli/chunks/cli-version-WWLPBDQ7.js +4 -0
  62. package/dist-cli/chunks/{compat-5WG2XJV7.js → compat-ZD65FED3.js} +2 -2
  63. package/dist-cli/chunks/{config-ANMBVVLL.js → config-XMJRNM2A.js} +2 -2
  64. package/dist-cli/chunks/{control-NSGNQFJG.js → control-KMIQT3QP.js} +2 -2
  65. package/dist-cli/chunks/daemon-G2ME7NLB.js +4 -0
  66. package/dist-cli/chunks/{debug-CHV2O2KF.js → debug-PT4HOP7N.js} +3 -3
  67. package/dist-cli/chunks/{desktop-FIPIK4CH.js → desktop-S3FG72AK.js} +3 -3
  68. package/dist-cli/chunks/{detox-CVUJP7K6.js → detox-B3D4IFCN.js} +2 -2
  69. package/dist-cli/chunks/{device-6WCUM4W6.js → device-XBNDSB2R.js} +2 -2
  70. package/dist-cli/chunks/{diagnose-I6EMWEII.js → diagnose-HMQXJE5N.js} +2 -2
  71. package/dist-cli/chunks/{disk-cleanup-P27CYFTN.js → disk-cleanup-BLCZ5BSZ.js} +2 -2
  72. package/dist-cli/chunks/drivers-LDECZGP2.js +4 -0
  73. package/dist-cli/chunks/{film-UOQFFYNF.js → film-BJGTBYZB.js} +3 -3
  74. package/dist-cli/chunks/flow-UEQNVTU7.js +4 -0
  75. package/dist-cli/chunks/help-T5FYSVGB.js +4 -0
  76. package/dist-cli/chunks/{hidden-runtime-alias-NJYFSJKZ.js → hidden-runtime-alias-ANOYADHM.js} +2 -2
  77. package/dist-cli/chunks/{home-paths-XOV44JEF.js → home-paths-GT3LFNOR.js} +2 -2
  78. package/dist-cli/chunks/inspect-ZA6XF5LD.js +4 -0
  79. package/dist-cli/chunks/install-desktop-TIMUDHPL.js +4 -0
  80. package/dist-cli/chunks/{login-BPFQENCX.js → login-FJ737MWG.js} +4 -4
  81. package/dist-cli/chunks/{logout-5A45ZGY7.js → logout-ZCNMMHMY.js} +2 -2
  82. package/dist-cli/chunks/{maestro-E4CSDMLM.js → maestro-SZTNKLDF.js} +3 -3
  83. package/dist-cli/chunks/{maestro-generate-CKMOJQX2.js → maestro-generate-DCFAIZ4H.js} +3 -3
  84. package/dist-cli/chunks/{mode-SZYNMIQF.js → mode-GRMQCRXR.js} +2 -2
  85. package/dist-cli/chunks/{optional-demo-registry-FRH4SFVG.js → optional-demo-registry-W36EWFFB.js} +2 -2
  86. package/dist-cli/chunks/{perf-VXU2XJAX.js → perf-QYBAAUZG.js} +2 -2
  87. package/dist-cli/chunks/{permissions-IRIAOVND.js → permissions-3QCQ6VF4.js} +2 -2
  88. package/dist-cli/chunks/{record-RY7FPLLH.js → record-QPPC2S4E.js} +3 -3
  89. package/dist-cli/chunks/{report-issue-KNWXOE53.js → report-issue-7NMFP4HK.js} +2 -2
  90. package/dist-cli/chunks/runtime-XOAXMSTU.js +4 -0
  91. package/dist-cli/chunks/{screenshot-command-QLALR6GY.js → screenshot-command-67AECJFB.js} +3 -3
  92. package/dist-cli/chunks/{screenshot-layers-OQFMFVRL.js → screenshot-layers-ASWBYPJL.js} +2 -2
  93. package/dist-cli/chunks/{screenshots-capture-6TSRJFGB.js → screenshots-capture-PXA3HFQK.js} +2 -2
  94. package/dist-cli/chunks/{serve-F54J2NQO.js → serve-BI2NBAXG.js} +2 -2
  95. package/dist-cli/chunks/{setup-7V6UKX4U.js → setup-7DWPMRSB.js} +2 -2
  96. package/dist-cli/chunks/{skills-QQBOSETH.js → skills-S3Y22TUA.js} +2 -2
  97. package/dist-cli/chunks/{storage-TAPMKK5O.js → storage-XUIMJWAJ.js} +2 -2
  98. package/dist-cli/chunks/store-JTHEJLAZ.js +4 -0
  99. package/dist-cli/chunks/telemetry-ZYJGD2DB.js +4 -0
  100. package/dist-cli/chunks/{timeline-IAM564NA.js → timeline-TMPLQPSP.js} +2 -2
  101. package/dist-cli/chunks/{upgrade-CD55QXIX.js → upgrade-7HDSIM7K.js} +2 -2
  102. package/dist-cli/chunks/upload-GMSZPWM6.js +4 -0
  103. package/dist-cli/chunks/{version-3DYJ5AS3.js → version-HOCHZ37L.js} +2 -2
  104. package/dist-cli/chunks/{web-6NW6YLPI.js → web-DG3WBYD3.js} +2 -2
  105. package/dist-cli/chunks/{what-happened-CZZDOOVG.js → what-happened-XFVUTZR7.js} +2 -2
  106. package/dist-lib/agent-daemon-client.cjs +1 -1
  107. package/dist-lib/agent-events.cjs +1 -1
  108. package/dist-lib/agent-identity.cjs +1 -1
  109. package/dist-lib/agent-sessions.cjs +1 -1
  110. package/dist-lib/attached-projects.cjs +1 -1
  111. package/dist-lib/auth/shared-session.cjs +1 -1
  112. package/dist-lib/backend-origin.cjs +1 -1
  113. package/dist-lib/beta.cjs +1 -1
  114. package/dist-lib/beta.mjs +1 -1
  115. package/dist-lib/bridge-constants.cjs +1 -1
  116. package/dist-lib/cli-constants.cjs +1 -1
  117. package/dist-lib/config.cjs +1 -1
  118. package/dist-lib/detox/index.cjs +1 -1
  119. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  120. package/dist-lib/home-paths.cjs +1 -1
  121. package/dist-lib/host/bridge-host.cjs +1 -1
  122. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  123. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  124. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  125. package/dist-lib/host/websocket-proxy.cjs +1 -1
  126. package/dist-lib/index.cjs +1 -1
  127. package/dist-lib/jump-to-source-babel.cjs +1 -1
  128. package/dist-lib/menu.cjs +1 -1
  129. package/dist-lib/menu.mjs +1 -1
  130. package/dist-lib/metro.cjs +1 -1
  131. package/dist-lib/profiles.cjs +1 -1
  132. package/dist-lib/public-brand.cjs +1 -1
  133. package/dist-lib/render-mode.cjs +1 -1
  134. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  135. package/dist-lib/sdk.cjs +1 -1
  136. package/dist-lib/sdk.mjs +1 -1
  137. package/dist-lib/skills.cjs +15 -4
  138. package/dist-lib/vite.cjs +1 -1
  139. package/package.json +1 -1
  140. package/dist-cli/chunks/chunk-6UKJB2VC.js +0 -125
  141. package/dist-cli/chunks/chunk-HMDOLCKG.js +0 -15
  142. package/dist-cli/chunks/cli-version-3QPAJ3LC.js +0 -4
  143. package/dist-cli/chunks/daemon-JHF4BJ3U.js +0 -4
  144. package/dist-cli/chunks/drivers-HQ6AKZT6.js +0 -4
  145. package/dist-cli/chunks/flow-N27MRRNL.js +0 -4
  146. package/dist-cli/chunks/help-SF6FEGEE.js +0 -4
  147. package/dist-cli/chunks/inspect-CWFRFQTY.js +0 -4
  148. package/dist-cli/chunks/install-desktop-KLQDNXZQ.js +0 -4
  149. package/dist-cli/chunks/runtime-AR3GJTGK.js +0 -4
  150. package/dist-cli/chunks/store-7NX3S43H.js +0 -4
  151. package/dist-cli/chunks/telemetry-E7BUK6RA.js +0 -4
  152. package/dist-cli/chunks/upload-GZ6LIMYM.js +0 -4
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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 Se,c as J,d as ye,e as V,f as ve,h as be,i as P,j as we,k as Ae,l as ke,m as Te,q as Ce,t as k,u as Ie,v as Ee,w as Pe,x as Re}from"./chunk-TBMVBI26.js";import"./chunk-DM6KUAOZ.js";import{e as ge}from"./chunk-NPVGMH2N.js";import"./chunk-BKNOLP3J.js";import{a as ue,b as pe,d as me,e as L,f as he}from"./chunk-SI3BUTQR.js";import{d as fe}from"./chunk-T4FT6CM7.js";import{g as _}from"./chunk-YZRFF4YA.js";import"./chunk-FWYYCUAZ.js";import"./chunk-3D57IBPC.js";import"./chunk-7INBNA3U.js";import{a as F,b as G,c as oe,d as ae}from"./chunk-N6A3SXMR.js";import"./chunk-TCWQJILS.js";import{f as O}from"./chunk-U4PN6JOT.js";import{c as de,d as le}from"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import{E as Y,G as x,H as j,I as Z,J as Q,K as ee,M as te,P as ie,Q as re,R as ne,S as $,T as se,g as q,h as z,y as W,z as X}from"./chunk-66NF2KNG.js";import{a as ce}from"./chunk-EUAVBTKU.js";import"./chunk-ZMZTHU7V.js";import"./chunk-MENV7VLD.js";import{spawn as yt}from"child_process";import C from"fs";import{createServer as vt}from"http";import b from"path";import{WebSocket as g,WebSocketServer as bt}from"ws";import Oe from"node:fs";import B from"node:path";import{spawn as Ke}from"node:child_process";function Ge(o){return typeof o.text=="string"?o.text.trim():""}function qe(o){let e=o?.trim();return e||"tm"}async function xe(o){let e=o.sessionId.trim();if(!G(e))throw new Error(`invalid Team Machine session id: ${e||"<empty>"}`);let t=Ge(o.prompt);if(!t)throw new Error("prompt text is empty");let i=qe(o.command),s=o.timeoutMs??15e3;await new Promise((n,c)=>{let r=Ke(i,["send",e,t],{stdio:["ignore","ignore","pipe"],env:process.env}),a="",d=setTimeout(()=>{try{r.kill("SIGTERM")}catch{}c(new Error(`tm send timed out after ${Math.round(s/1e3)}s`))},s);r.stderr?.setEncoding("utf8"),r.stderr?.on("data",l=>{a.length<4e3&&(a+=String(l))}),r.on("error",l=>{clearTimeout(d),c(l)}),r.on("exit",(l,u)=>{if(clearTimeout(d),l===0){n();return}let p=a.trim();c(new Error(p||`tm send exited with ${u?`signal ${u}`:`code ${l??"unknown"}`}`))})})}var M=1,ze=25;function Xe(){return[Number(process.env.VITE_PORT_WEB||process.env.PORT||3e3),Number(process.env.VITE_PORT_ZERO||7849),Number(process.env.VITE_PORT_R2||9500)].filter(o=>Number.isFinite(o)&&o>0)}var D=class{subscriptions=new Map;sessionsBySocket=new Map;allSockets=new Set;pendingPromptEchoes=new Map;pendingTurns=new Map;pendingSessionStates=new Map;pendingSessionPatches=new Map;sessionStatusPersistTimer=null;opts;constructor(e={}){this.opts=e}registerSocket(e){this.allSockets.add(e)}unregisterSocket(e){let t=this.sessionsBySocket.get(e);if(t){for(let i of t)this.decrementSubscription(i);this.sessionsBySocket.delete(e)}this.allSockets.delete(e)}async handleMessage(e,t){let i=t?.type;if(typeof i!="string"||!i.startsWith("agent:"))return!1;let s=t.id;try{let n=await this.dispatch(e,i,t);this.respond(e,s,n)}catch(n){n instanceof k?this.respondError(e,s,n.message,n.code):this.respondError(e,s,n instanceof Error?n.message:String(n))}return!0}async seedOnBoot(){try{await Te()}catch(e){process.stderr.write(`[sootsim-agent] seedFromDemoAppRegistry failed: ${e instanceof Error?e.message:String(e)}
4
+ import{b as Se,c as J,d as ye,e as V,f as ve,h as be,i as P,j as we,k as Ae,l as ke,m as Te,q as Ce,t as k,u as Ie,v as Ee,w as Pe,x as Re}from"./chunk-TZFFR3SD.js";import"./chunk-5YJCOWCH.js";import{e as ge}from"./chunk-OVFJFXUD.js";import"./chunk-WEXDAC74.js";import{a as ue,b as pe,d as me,e as L,f as he}from"./chunk-7GN3LVWB.js";import{d as fe}from"./chunk-DCEMHR2Y.js";import{g as _}from"./chunk-WF3T4SVI.js";import"./chunk-DZS6WPUI.js";import"./chunk-YDGQTMQL.js";import"./chunk-KTHV3RUS.js";import{a as F,b as G,c as oe,d as ae}from"./chunk-IJO63TDP.js";import"./chunk-HI5TFJWN.js";import{f as O}from"./chunk-VFCMSYZK.js";import{c as de,d as le}from"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import{E as Y,G as x,H as j,I as Z,J as Q,K as ee,M as te,P as ie,Q as re,R as ne,S as $,T as se,g as q,h as z,y as W,z as X}from"./chunk-FSUYIVJ6.js";import{a as ce}from"./chunk-3NV2NCNX.js";import"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";import{spawn as yt}from"child_process";import C from"fs";import{createServer as vt}from"http";import b from"path";import{WebSocket as g,WebSocketServer as bt}from"ws";import Oe from"node:fs";import B from"node:path";import{spawn as Ke}from"node:child_process";function Ge(o){return typeof o.text=="string"?o.text.trim():""}function qe(o){let e=o?.trim();return e||"tm"}async function xe(o){let e=o.sessionId.trim();if(!G(e))throw new Error(`invalid Team Machine session id: ${e||"<empty>"}`);let t=Ge(o.prompt);if(!t)throw new Error("prompt text is empty");let i=qe(o.command),s=o.timeoutMs??15e3;await new Promise((n,c)=>{let r=Ke(i,["send",e,t],{stdio:["ignore","ignore","pipe"],env:process.env}),a="",d=setTimeout(()=>{try{r.kill("SIGTERM")}catch{}c(new Error(`tm send timed out after ${Math.round(s/1e3)}s`))},s);r.stderr?.setEncoding("utf8"),r.stderr?.on("data",l=>{a.length<4e3&&(a+=String(l))}),r.on("error",l=>{clearTimeout(d),c(l)}),r.on("exit",(l,u)=>{if(clearTimeout(d),l===0){n();return}let p=a.trim();c(new Error(p||`tm send exited with ${u?`signal ${u}`:`code ${l??"unknown"}`}`))})})}var M=1,ze=25;function Xe(){return[Number(process.env.VITE_PORT_WEB||process.env.PORT||3e3),Number(process.env.VITE_PORT_ZERO||7849),Number(process.env.VITE_PORT_R2||9500)].filter(o=>Number.isFinite(o)&&o>0)}var D=class{subscriptions=new Map;sessionsBySocket=new Map;allSockets=new Set;pendingPromptEchoes=new Map;pendingTurns=new Map;pendingSessionStates=new Map;pendingSessionPatches=new Map;sessionStatusPersistTimer=null;opts;constructor(e={}){this.opts=e}registerSocket(e){this.allSockets.add(e)}unregisterSocket(e){let t=this.sessionsBySocket.get(e);if(t){for(let i of t)this.decrementSubscription(i);this.sessionsBySocket.delete(e)}this.allSockets.delete(e)}async handleMessage(e,t){let i=t?.type;if(typeof i!="string"||!i.startsWith("agent:"))return!1;let s=t.id;try{let n=await this.dispatch(e,i,t);this.respond(e,s,n)}catch(n){n instanceof k?this.respondError(e,s,n.message,n.code):this.respondError(e,s,n instanceof Error?n.message:String(n))}return!0}async seedOnBoot(){try{await Te()}catch(e){process.stderr.write(`[sootsim-agent] seedFromDemoAppRegistry failed: ${e instanceof Error?e.message:String(e)}
5
5
  `)}}close(){this.sessionStatusPersistTimer&&(clearTimeout(this.sessionStatusPersistTimer),this.sessionStatusPersistTimer=null),this.flushSessionStatuses();for(let e of this.subscriptions.values())try{e.unsubscribe()}catch{}this.subscriptions.clear(),this.sessionsBySocket.clear(),this.allSockets.clear()}async dispatch(e,t,i){switch(t){case"agent:list-projects":return V();case"agent:upsert-project":return J(i.input??{});case"agent:delete-project":return be(String(i.projectId)),{ok:!0};case"agent:auto-attach-for-url":return this.autoAttachForUrl(i.input??{});case"agent:list-sessions":return we(i.projectId?String(i.projectId):void 0);case"agent:start-session":return this.doStartSession(i.input??{});case"agent:send-claimed-prompt":return this.sendClaimedPrompt(i);case"agent:send-prompt":{let n=String(i.sessionId),c=P(n);if(!c)throw new k("NO_SESSION",`no session: ${n}`);let r=this.normalizePromptEnvelope(i);return await Ee(n,r),this.notePromptAccepted(n,r,c.status==="working")}case"agent:end-session":this.dropSessionFanout(String(i.sessionId)),await Pe(String(i.sessionId));let s=P(String(i.sessionId));return s&&this.broadcastSessionStatus(s),{ok:!0};case"agent:get-transcript":return this.getTranscript(String(i.sessionId));case"agent:get-paths":return this.getPaths();case"agent:subscribe-events":return this.subscribeSocket(e,String(i.sessionId));case"agent:unsubscribe-events":return this.unsubscribeSocket(e,String(i.sessionId));default:throw new k("UNKNOWN_AGENT_MSG",`unknown agent message: ${t}`)}}async sendClaimedPrompt(e){let t=typeof e.simId=="string"?e.simId.trim():"";if(!t)throw new k("NO_SIM","agent:send-claimed-prompt requires simId");let i=this.opts.resolveCliLease?.(t)??null;if(!i||i.kind!=="cli"||i.expiresAt<=Date.now())throw new k("NO_CLAIM",`sim ${t} has no active CLI claim`);let s=F(i.cliIdentityKey);if(!s)throw new k("UNSUPPORTED_CLAIM",`sim ${t} is claimed by a CLI identity that is not promptable`);return await xe({sessionId:s,prompt:this.normalizePromptEnvelope(e)}),{ok:!0,routed:"team-machine",sessionId:s}}async doStartSession(e){if(!ye(e.projectId))throw new k("NO_PROJECT",`no project: ${e.projectId}`);let i=await Ie(e);return this.broadcastSessionStatus(i.session),i}async autoAttachForUrl(e){let t=e.bundleUrl??"",i=(()=>{try{return new URL(t).port||null}catch{return null}})();if(!i)return{project:null};let s=this.opts.getExcludePorts?.()??Xe(),c=(await _({excludePorts:s})).find(l=>String(l.port)===i);if(!c||!c.cwd)return{project:null};let r=V().find(l=>l.cwd===c.cwd)??null,a=Array.from(new Set([...r?.knownBundleUrls??[],c.bundleUrl,t]));return{project:J({cwd:c.cwd,name:c.projectName??B.basename(c.cwd),preferredProvider:e.provider??r?.preferredProvider,sourceRoots:r?.sourceRoots??[c.cwd],knownBundleUrls:a,framework:r?.framework??Ye(c.framework),bundleId:c.bundleId??r?.bundleId})}}getTranscript(e){let t=Ce(e);return Oe.existsSync(t)?Oe.readFileSync(t,"utf8"):{error:"transcript not found",code:"NO_TRANSCRIPT"}}getPaths(){let e=Se();return{userDataDir:e,storeFile:B.join(e,"attached-projects.json"),sessionsDir:B.join(e,"sessions"),transcriptsDir:B.join(e,"transcripts")}}subscribeSocket(e,t){let i=this.sessionsBySocket.get(e);if(i||(i=new Set,this.sessionsBySocket.set(e,i)),i.has(t))return{ok:!0,refCount:this.subscriptions.get(t)?.refCount??1};i.add(t);let s=this.subscriptions.get(t);if(s)return s.refCount++,{ok:!0,refCount:s.refCount};let n=Re(t,c=>{let r=this.coalescePromptEcho(t,c);if(r&&(this.applySessionEvent(t,r),this.fanOutEvent(t,r)),c.type==="turn-completed"){let a=P(t);if(a)try{ve(a.projectId,{usd:c.costUsd,ts:c.ts})}catch(d){process.stderr.write(`[sootsim-agent] recordTurnTelemetry failed: ${d instanceof Error?d.message:String(d)}
6
6
  `)}}});return this.subscriptions.set(t,{unsubscribe:n,refCount:1}),{ok:!0,refCount:1}}unsubscribeSocket(e,t){let i=this.sessionsBySocket.get(e);return!i||!i.has(t)?{ok:!0,refCount:0}:(i.delete(t),this.decrementSubscription(t))}decrementSubscription(e){let t=this.subscriptions.get(e);if(!t)return{ok:!0,refCount:0};if(t.refCount--,t.refCount<=0){try{t.unsubscribe()}catch{}return this.subscriptions.delete(e),{ok:!0,refCount:0}}return{ok:!0,refCount:t.refCount}}dropSessionFanout(e){let t=this.subscriptions.get(e);if(t){try{t.unsubscribe()}catch{}this.subscriptions.delete(e)}for(let i of this.sessionsBySocket.values())i.delete(e);this.clearPromptTracking(e)}normalizePromptEnvelope(e){if(e?.prompt&&typeof e.prompt=="object"){let t=e.prompt;return{text:String(t.text??""),...typeof t.displayText=="string"?{displayText:t.displayText}:{},...typeof t.inspectSummary=="string"?{inspectSummary:t.inspectSummary}:{},...typeof t.inspectTrace=="string"?{inspectTrace:t.inspectTrace}:{}}}return{text:String(e?.text??""),...typeof e?.displayText=="string"?{displayText:e.displayText}:{},...typeof e?.inspectSummary=="string"?{inspectSummary:e.inspectSummary}:{},...typeof e?.inspectTrace=="string"?{inspectTrace:e.inspectTrace}:{}}}notePromptAccepted(e,t,i){let s=Date.now(),n=this.pendingPromptEchoes.get(e)??[];n.push({sentAt:s}),this.pendingPromptEchoes.set(e,n);let c=Math.max(this.pendingTurns.get(e)??0,i?1:0)+1;this.pendingTurns.set(e,c);let r=t.displayText??t.text;return this.patchSession(e,{lastPrompt:r,status:"working",needsAttention:!1}),this.fanOutEvent(e,{type:"prompt-received",text:r,...t.inspectSummary?{inspectSummary:t.inspectSummary}:{},...t.inspectTrace?{inspectTrace:t.inspectTrace}:{},ts:s}),{ok:!0,queued:c>1,pendingTurns:c,queueDepth:Math.max(0,c-1)}}applySessionEvent(e,t){switch(t.type){case"prompt-received":case"turn-started":this.patchSession(e,{status:"working",needsAttention:!1});return;case"turn-completed":{let i=this.consumeSettledTurn(e);this.patchSession(e,{status:i>0?"working":"idle",needsAttention:!1,lastTurnFiles:t.filesTouched,currentlyEditing:void 0});return}case"approval-needed":this.patchSession(e,{status:"needs-attention",needsAttention:!0});return;case"error":{let i=this.consumeSettledTurn(e);this.patchSession(e,{status:i>0?"working":"needs-attention",needsAttention:i<=0,currentlyEditing:void 0});return}case"exited":this.clearPromptTracking(e),this.patchSession(e,{status:"ended",needsAttention:!1,wrapperPid:void 0,currentlyEditing:void 0});return;case"ready":case"turn-reasoning":case"turn-message":case"turn-plan":case"tool-call":case"file-edited":case"file-diff-delta":return}}patchSession(e,t){let i=this.pendingSessionStates.get(e)??P(e);if(!i)return;let s=Ae(i,t);this.pendingSessionStates.set(e,s),this.pendingSessionPatches.set(e,{...this.pendingSessionPatches.get(e),...t}),this.broadcastSessionStatus(s),!this.sessionStatusPersistTimer&&(this.sessionStatusPersistTimer=setTimeout(()=>{this.sessionStatusPersistTimer=null,this.flushSessionStatuses()},ze))}flushSessionStatuses(){if(this.pendingSessionPatches.size===0)return;let e=this.pendingSessionStates,t=this.pendingSessionPatches;this.pendingSessionStates=new Map,this.pendingSessionPatches=new Map;try{ke([...t].map(([i,s])=>({id:i,patch:s})))}catch(i){for(let[s,n]of e)this.pendingSessionStates.has(s)||this.pendingSessionStates.set(s,n);for(let[s,n]of t)this.pendingSessionPatches.set(s,{...n,...this.pendingSessionPatches.get(s)});process.stderr.write(`[sootsim-agent] session status persistence failed: ${i instanceof Error?i.message:String(i)}
7
7
  `)}}coalescePromptEcho(e,t){if(t.type!=="prompt-received")return t;let i=this.pendingPromptEchoes.get(e);if(!i||i.length===0)return t;for(;i.length>0&&Date.now()-i[0].sentAt>15e3;)i.shift();return i.length===0?(this.pendingPromptEchoes.delete(e),t):(i.shift(),i.length===0?this.pendingPromptEchoes.delete(e):this.pendingPromptEchoes.set(e,i),null)}consumeSettledTurn(e){let t=Math.max(0,(this.pendingTurns.get(e)??1)-1);return t>0?this.pendingTurns.set(e,t):this.pendingTurns.delete(e),t}clearPromptTracking(e){this.pendingPromptEchoes.delete(e),this.pendingTurns.delete(e)}fanOutEvent(e,t){let i=JSON.stringify({type:"agent:event",sessionId:e,event:t});for(let[s,n]of this.sessionsBySocket)if(n.has(e)&&s.readyState===M)try{s.send(i)}catch{}}broadcastSessionStatus(e){let t=JSON.stringify({type:"agent:session-status",session:e});for(let i of this.allSockets)if(i.readyState===M)try{i.send(t)}catch{}}respond(e,t,i){if(e.readyState===M)try{e.send(JSON.stringify({id:t,result:i}))}catch{}}respondError(e,t,i,s){if(e.readyState===M)try{e.send(JSON.stringify({id:t,error:i,...s?{code:s}:{}}))}catch{}}};function Ye(o){return o==="expo"?"expo":o==="one"||o==="vxrn"?"one":"unknown"}import Le from"http";import Be from"https";import{finished as et,pipeline as tt}from"stream/promises";var K="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36",Ze=[{hostSuffix:"uniswap.org",headers:{origin:"https://app.uniswap.org",referer:"https://app.uniswap.org/"},suppressBrowserUserAgent:!0}];function Qe(o){let e=o.toLowerCase();for(let t of Ze)if(e===t.hostSuffix||e.endsWith(`.${t.hostSuffix}`))return t}function _e(o){let e=Qe(o.hostname);return{"accept-encoding":"identity",...e?.suppressBrowserUserAgent?{}:{"user-agent":K},...e?.headers}}var it=new Set(["host","origin","referer","user-agent","accept-encoding","cookie","connection","keep-alive","transfer-encoding","upgrade","content-length","sec-fetch-site","sec-fetch-mode","sec-fetch-dest","sec-ch-ua","sec-ch-ua-mobile","sec-ch-ua-platform"]),rt={"access-control-allow-origin":"*","access-control-allow-methods":"GET,POST,PUT,DELETE,PATCH,OPTIONS","access-control-allow-headers":"*","access-control-expose-headers":"*","access-control-max-age":"3600"},nt=new Set(["host","origin","referer","sec-fetch-site","sec-fetch-mode","sec-fetch-dest"]);function Me(o){return o.protocol!=="https:"?{}:ue(o.hostname)?{rejectUnauthorized:!1}:{}}function R(o){for(let[e,t]of Object.entries(rt))o.setHeader(e,t)}function st(o,e){let t=[],i=e;i?.code&&t.push(i.code),i?.message&&t.push(i.message),i?.cause?.code&&t.push(i.cause.code),i?.cause?.message&&t.push(i.cause.message);let n=[...new Set(t.filter(Boolean))].join(" | ")||String(e);return o.includes("stored-in-.env.local")?`${n} | upstream url still contains placeholder env values`:n}function ot(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(it.has(i.toLowerCase())||(t[i]=Array.isArray(s)?s.join(", "):s));return Object.assign(t,e?_e(e):{"user-agent":K}),t}function at(o,e){let t={};for(let[i,s]of Object.entries(o))s&&(nt.has(i.toLowerCase())||(t[i]=s));return t.host=e.host,t.origin=e.origin,t.referer=`${e.origin}/`,t}function De(o){return o?.startsWith("/__fetch-proxy?")||o?.startsWith("/__proxy?")||!1}function Ne(o){return o?!!(o.startsWith("/__app-api?")||o.startsWith("/__app-api/")):!1}async function He(o,e){if(o.method==="OPTIONS"){R(e),e.writeHead(204),e.end();return}let i=new URLSearchParams((o.url||"").split("?")[1]||"").get("url");if(!i){R(e),e.writeHead(400,{"Content-Type":"text/plain"}),e.end("missing url param");return}let s;try{s=new URL(i)}catch{R(e),e.writeHead(400,{"Content-Type":"text/plain"}),e.end("invalid url param");return}let n;if(o.method!=="GET"&&o.method!=="HEAD"){let a=[];for await(let d of o)a.push(Buffer.isBuffer(d)?d:Buffer.from(d));a.length>0&&(n=Buffer.concat(a))}let c=o.method||"GET",r=async(a,d,l,u)=>{let p=a.protocol==="https:"?Be:Le,m=ot(o.headers,a);a.origin!==s.origin&&(delete m.authorization,delete m["proxy-authorization"]),d==="GET"||d==="HEAD"?(delete m["content-length"],delete m["content-type"]):l&&(m["content-length"]=String(l.byteLength));let y=await new Promise((w,A)=>{let S=p.request({hostname:a.hostname,port:a.port||(a.protocol==="https:"?443:80),path:a.pathname+a.search,method:d,headers:m,...Me(a)},w),I=()=>S.destroy(new Error("fetch proxy client disconnected"));o.once("aborted",I),S.once("close",()=>o.off("aborted",I)),S.once("error",A),l===void 0?S.end():S.end(l)}),f=y.statusCode??502,h=y.headers.location;if(h&&(f===301||f===302||f===303||f===307||f===308)){if(u>=10)throw y.destroy(),new Error("too many redirects");let w=(f===301||f===302)&&d==="POST"||f===303&&d!=="GET"&&d!=="HEAD",A=new URL(h,a);y.resume(),await et(y),await r(A,w?"GET":d,w?void 0:l,u+1);return}for(let[w,A]of Object.entries(y.headers)){let S=w.toLowerCase();A===void 0||S==="set-cookie"||S==="connection"||S==="keep-alive"||S==="proxy-authenticate"||S==="proxy-authorization"||S==="te"||S==="trailer"||S==="transfer-encoding"||S==="upgrade"||S.startsWith("access-control-")||e.setHeader(w,A)}R(e);let v=y.headers["set-cookie"]??[];v.length>0&&e.setHeader("x-sootsim-set-cookie",(Array.isArray(v)?v:[v]).join(", ")),e.statusCode=f,await tt(y,e)};try{await r(s,c,n,0)}catch(a){if(e.headersSent){e.destroy(a instanceof Error?a:new Error(String(a)));return}R(e),e.writeHead(502,{"Content-Type":"text/plain"}),e.end(`fetch proxy error: ${st(s.href,a)}`)}}function Ue(o,e){let t=o.url||"",i="",s="";if(t.startsWith("/__app-api?")){let d=new URL(t,"http://sootsim.local");i=d.searchParams.get("path")||"",s=d.searchParams.get("origin")?.trim()||""}else if(t.startsWith("/__app-api/"))i=t.slice(10);else return!1;if(!s)return e.writeHead(400,{"Content-Type":"text/plain"}),e.end("app-api: missing origin query param"),!0;if(o.method==="OPTIONS")return e.writeHead(204,{"Access-Control-Allow-Origin":o.headers.origin||"*","Access-Control-Allow-Methods":"GET,POST,PUT,PATCH,DELETE,OPTIONS","Access-Control-Allow-Headers":o.headers["access-control-request-headers"]||"*","Access-Control-Allow-Credentials":"true","Access-Control-Max-Age":"86400"}),e.end(),!0;let n;try{n=new URL(i,s)}catch{return e.writeHead(400,{"Content-Type":"text/plain"}),e.end("app-api: invalid origin or path"),!0}let c=n.protocol==="https:"?Be:Le,r=at(o.headers,n),a=c.request({hostname:n.hostname,port:n.port||(n.protocol==="https:"?443:80),path:n.pathname+n.search,method:o.method,headers:r,...Me(n)},d=>{let l=Object.keys(d.headers).filter(u=>{let p=u.toLowerCase();return!p.startsWith("access-control-")&&p!=="set-cookie"}).join(", ");e.writeHead(d.statusCode??502,{...d.headers,"access-control-allow-origin":o.headers.origin||"*","access-control-allow-credentials":"true","access-control-expose-headers":l}),d.pipe(e)});return a.on("error",d=>{e.statusCode=502,e.end(`app proxy error: ${d.message}`)}),o.pipe(a),!0}import{WebSocket as T,WebSocketServer as ct}from"ws";var dt="/__websocket-proxy",lt=new Set(["host","connection","upgrade","transfer-encoding","content-length","sec-websocket-accept","sec-websocket-extensions","sec-websocket-key","sec-websocket-protocol","sec-websocket-version"]);function E(o,e,t){try{o.write(`HTTP/1.1 ${e} ${t}\r
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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 d}from"./chunk-VUFRB347.js";import{d as V,f as q,g as J,i as F,j as B}from"./chunk-JG6S4RSH.js";import{b as x,c as L}from"./chunk-YRV7HR3P.js";import{c as k}from"./chunk-N6A3SXMR.js";import"./chunk-TCWQJILS.js";import{f as y}from"./chunk-U4PN6JOT.js";import"./chunk-VZBLFMYC.js";import"./chunk-KR5BGMBZ.js";import"./chunk-HG7ORJMT.js";import"./chunk-TYE3WBSR.js";import"./chunk-5OX7ANRA.js";import"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import"./chunk-6UKJB2VC.js";import{A as R,B as C,H as w,K as N,M as I,l as v}from"./chunk-66NF2KNG.js";import{a as T}from"./chunk-EUAVBTKU.js";import{a as s}from"./chunk-ZMZTHU7V.js";import"./chunk-FTC4M26Q.js";import"./chunk-MENV7VLD.js";import $ from"node:fs";import z from"node:os";import P from"node:path";import{spawn as re}from"node:child_process";import l from"node:fs";import a from"node:path";function Y(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"package.json")))return n;let r=a.dirname(n);if(r===n)return null;n=r}}function j(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"bun.lock"))||l.existsSync(a.join(n,"bun.lockb")))return"bun";if(l.existsSync(a.join(n,"pnpm-lock.yaml")))return"pnpm";if(l.existsSync(a.join(n,"package-lock.json")))return"npm";let r=a.dirname(n);if(r===n)return"npm";n=r}}function H(e){let n=a.resolve(e.appDir),r=te(a.join(n,"package.json")),t=`${s.commandName} open`,o=r.scripts?.[s.commandName];if(o&&o!==t)throw new Error(`package.json already defines scripts.${s.commandName} as ${JSON.stringify(o)}; resolve that conflict before setup`);let i=j(n),c=[];return r.devDependencies?.[s.packageName]!==e.cliVersion&&c.push(oe(i,e.cliVersion)),o!==t&&c.push(ae(i)),{appDir:n,packageManager:i,operations:c}}async function U(e,n){for(let r of e.operations)n.dryRun||await se(r,e.appDir,n.json)}function O(e){return e.operations.map(n=>`${n.command} ${n.args.map(ie).join(" ")}`)}function te(e){let n;try{n=JSON.parse(l.readFileSync(e,"utf8"))}catch(o){let i=o instanceof Error?o.message:String(o);throw new Error(`could not read ${e}: ${i}`)}if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`${e} must contain a JSON object`);let r=W(Reflect.get(n,"scripts")),t=W(Reflect.get(n,"devDependencies"));return{...r?{scripts:r}:{},...t?{devDependencies:t}:{}}}function W(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let n=Object.entries(e).filter(r=>typeof r[1]=="string");return Object.fromEntries(n)}function oe(e,n){let r=`${s.packageName}@${n}`;switch(e){case"bun":return{command:"bun",args:["add","--dev","--exact",r],description:`install ${r} as an exact dev dependency`};case"pnpm":return{command:"pnpm",args:["add","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`};case"npm":return{command:"npm",args:["install","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`}}}function ie(e){return/^[a-zA-Z0-9_./@=-]+$/.test(e)?e:JSON.stringify(e)}function se(e,n,r){return new Promise((t,o)=>{let i=re(e.command,e.args,{cwd:n,stdio:r?["ignore",2,"inherit"]:"inherit"});i.once("error",o),i.once("exit",c=>{c===0?t():o(new Error(`${e.command} exited with code ${c??"unknown"}`))})})}function ae(e){return{command:e,args:e==="bun"?["pm","pkg","set",`scripts.${s.commandName}=${s.commandName} open`]:["pkg","set",`scripts.${s.commandName}=${s.commandName} open`],description:`add the \`${s.commandName}\` package script`}}async function Ye(e){if(e.includes("--help")||e.includes("-h")){je();return}let n=ue(e),r="decisions";try{let t=Y(n.appDir),o=x(),i=R(),c=await le(n,o),X=await de(n,t),g=await K(n,"productAnalytics",i.productAnalytics,i.configured),S=await K(n,"crashReports",i.crashReports,i.configured),ee=await y.fetchManifest(),f=y.resolveVersion(ee,{channel:"stable"}).version,A=T();if(A==="0.0.0")throw new Error("could not resolve the installed rnxsim CLI version");let p=null;X&&t&&(p=H({appDir:t,cliVersion:A})),he(n),be(n,o,c,f),ve(n,t,p),Re(n,g,S),r="runtime";let M=!1;if(!n.dryRun){let E=w();M=(await y.install({version:f,channel:"stable",setActive:!0,protectVersions:E?[E]:[]})).installed}r="repository",p&&await U(p,{dryRun:n.dryRun,json:n.json}),r="service";let h=o.installed;c&&!o.installed&&!n.dryRun&&(await L({port:7668,force:!1}),h=!0),r="privacy",n.dryRun||C({productAnalytics:g,crashReports:S}),r="compatibility";let u=t?me(t):null,b=await fe(n,u);b&&u&&t&&!n.dryRun&&await ye(t,u),we(n,u,b);let _={runtimeVersion:f,serviceInstalled:h,repositoryPrepared:p!==null,compatibilityShared:b&&!n.dryRun},ne=Se(f);n.json?console.log(JSON.stringify({..._,runtimeInstalled:n.dryRun?!1:M,dryRun:n.dryRun,cache:ne,repositoryOperations:p?O(p):[]},null,2)):ke(p);let m=u?q(u):null;return k({event:"cli_setup_completed",properties:{service_installed:h,repository_prepared:p!==null,product_analytics:g,crash_reports:S,compat_supported:m?.supported??0,compat_partial:m?.partial??0,compat_unsupported:m?.unsupported??0,compat_not_yet_verified:m?.notYetVerified??0,from_welcome:n.fromWelcome,ci:n.ci,dry_run:n.dryRun}}),_}catch(t){let o=xe(t);throw k({event:"cli_setup_failed",properties:{stage:r,message:o}}),t}}function pe(){let e=x(),n=N(),r=w();return{daemonSupported:e.supported,daemonInstalled:e.installed,daemonRunning:!!(n&&I(n)),runtimeInstalled:!!(r&&$.existsSync(v(r))),privacyConfigured:R().configured}}function He(e=pe()){return!e.runtimeInstalled||!e.privacyConfigured}function ue(e){let n=e.indexOf("--app"),r=n>=0?e[n+1]:void 0;if(n>=0&&(!r||r.startsWith("-")))throw new Error("--app requires a directory");let t=G(e,"--service","--no-service"),o=G(e,"--repo","--no-repo");return{appDir:P.resolve(r??process.cwd()),ci:e.includes("--ci"),dryRun:e.includes("--dry-run"),fromWelcome:e.includes("--from-welcome"),json:e.includes("--json"),yes:e.includes("--yes")||e.includes("-y"),service:t,repository:o,productAnalytics:Z(e,"--analytics"),crashReports:Z(e,"--crash-reports"),shareCompatibility:e.includes("--share-compat")}}function G(e,n,r){if(e.includes(n)&&e.includes(r))throw new Error(`${n} and ${r} cannot be used together`);if(e.includes(n))return!0;if(e.includes(r))return!1}function Z(e,n){let r=e.find(i=>i.startsWith(`${n}=`)),t=e.indexOf(n),o=r?.slice(n.length+1)??(t>=0?e[t+1]:void 0);if(o!==void 0){if(o==="on"||o==="yes"||o==="true")return!0;if(o==="off"||o==="no"||o==="false")return!1;throw new Error(`${n} must be on or off`)}}async function le(e,n){if(e.ci){if(e.service===!0)throw new Error("--ci cannot install a machine service");return!1}return n.supported?n.installed&&e.service===void 0?!0:e.service!==void 0?e.service:e.yes?!0:(D(e,"--service or --no-service"),d("Install the background service and shared managed runtime?",!0)):!1}async function de(e,n){if(!n){if(e.repository===!0)throw new Error("--repo requires a package.json");return!1}return e.repository!==void 0?e.repository:e.yes?!0:(D(e,"--repo or --no-repo"),d(`Prepare ${n} for reproducible rnx runs?`,!0))}async function K(e,n,r,t){let o=n==="productAnalytics"?e.productAnalytics:e.crashReports;return o!==void 0?o:t?r:e.yes?!0:(D(e,n==="productAnalytics"?"--analytics on|off":"--crash-reports on|off"),d(n==="productAnalytics"?"Share bounded product analytics?":"Send bounded crash reports?",!0))}async function fe(e,n){return n?e.shareCompatibility?!0:e.yes||!process.stdin.isTTY?!1:d("Share dependency names, requested versions, framework, and this compatibility result?",!1):!1}function D(e,n){if(!(process.stdin.isTTY&&!e.ci))throw new Error(`non-interactive setup requires ${n}, or --yes to accept defaults`)}function me(e){let n=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!n||typeof n!="object")throw new Error("package.json must contain an object");return V(n)}async function ye(e,n){let r=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!r||typeof r!="object")throw new Error("package.json must be an object");let t=await fetch("https://contrast.dev/api/scan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(ge(r,n)),signal:AbortSignal.timeout(1e4)});if(!t.ok)throw new Error(`compatibility sharing failed with HTTP ${t.status}`)}function ge(e,n){return{dependencies:Q(Reflect.get(e,"dependencies")),devDependencies:Q(Reflect.get(e,"devDependencies")),framework:n.framework,result:{framework:n.framework,rnVersion:n.rnVersion,packages:n.packages.slice(0,200)},source:"desktop",shared:!0}}function Q(e){if(!e||typeof e!="object")return{};let n={};for(let[r,t]of Object.entries(e).slice(0,200))typeof t=="string"&&(n[r.slice(0,160)]=t.slice(0,80));return n}function Se(e){let n=z.platform(),r=z.arch();return{path:v(e),key:`sootsim-runtime-${n}-${r}-${e}`,inputs:{platform:n,arch:r,runtimeVersion:e}}}function he(e){e.json||console.log(`
4
+ import{a as d}from"./chunk-5TPRP5QT.js";import{d as V,f as q,g as J,i as F,j as B}from"./chunk-WWZIXIRD.js";import{b as x,c as L}from"./chunk-5TEF3ET3.js";import{c as k}from"./chunk-IJO63TDP.js";import"./chunk-HI5TFJWN.js";import{f as y}from"./chunk-VFCMSYZK.js";import"./chunk-WMIIKMGK.js";import"./chunk-TIVZIMMW.js";import"./chunk-VNQEB4L7.js";import"./chunk-UC6U3MML.js";import"./chunk-2YR5BGA5.js";import"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import"./chunk-ZMJD5GEC.js";import{A as R,B as C,H as w,K as N,M as I,l as v}from"./chunk-FSUYIVJ6.js";import{a as T}from"./chunk-3NV2NCNX.js";import{a as s}from"./chunk-2D2UPBBR.js";import"./chunk-46EUUFJ5.js";import"./chunk-WINYQ44O.js";import $ from"node:fs";import z from"node:os";import P from"node:path";import{spawn as re}from"node:child_process";import l from"node:fs";import a from"node:path";function Y(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"package.json")))return n;let r=a.dirname(n);if(r===n)return null;n=r}}function j(e){let n=a.resolve(e);for(;;){if(l.existsSync(a.join(n,"bun.lock"))||l.existsSync(a.join(n,"bun.lockb")))return"bun";if(l.existsSync(a.join(n,"pnpm-lock.yaml")))return"pnpm";if(l.existsSync(a.join(n,"package-lock.json")))return"npm";let r=a.dirname(n);if(r===n)return"npm";n=r}}function H(e){let n=a.resolve(e.appDir),r=te(a.join(n,"package.json")),t=`${s.commandName} open`,o=r.scripts?.[s.commandName];if(o&&o!==t)throw new Error(`package.json already defines scripts.${s.commandName} as ${JSON.stringify(o)}; resolve that conflict before setup`);let i=j(n),c=[];return r.devDependencies?.[s.packageName]!==e.cliVersion&&c.push(oe(i,e.cliVersion)),o!==t&&c.push(ae(i)),{appDir:n,packageManager:i,operations:c}}async function U(e,n){for(let r of e.operations)n.dryRun||await se(r,e.appDir,n.json)}function O(e){return e.operations.map(n=>`${n.command} ${n.args.map(ie).join(" ")}`)}function te(e){let n;try{n=JSON.parse(l.readFileSync(e,"utf8"))}catch(o){let i=o instanceof Error?o.message:String(o);throw new Error(`could not read ${e}: ${i}`)}if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`${e} must contain a JSON object`);let r=W(Reflect.get(n,"scripts")),t=W(Reflect.get(n,"devDependencies"));return{...r?{scripts:r}:{},...t?{devDependencies:t}:{}}}function W(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let n=Object.entries(e).filter(r=>typeof r[1]=="string");return Object.fromEntries(n)}function oe(e,n){let r=`${s.packageName}@${n}`;switch(e){case"bun":return{command:"bun",args:["add","--dev","--exact",r],description:`install ${r} as an exact dev dependency`};case"pnpm":return{command:"pnpm",args:["add","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`};case"npm":return{command:"npm",args:["install","--save-dev","--save-exact",r],description:`install ${r} as an exact dev dependency`}}}function ie(e){return/^[a-zA-Z0-9_./@=-]+$/.test(e)?e:JSON.stringify(e)}function se(e,n,r){return new Promise((t,o)=>{let i=re(e.command,e.args,{cwd:n,stdio:r?["ignore",2,"inherit"]:"inherit"});i.once("error",o),i.once("exit",c=>{c===0?t():o(new Error(`${e.command} exited with code ${c??"unknown"}`))})})}function ae(e){return{command:e,args:e==="bun"?["pm","pkg","set",`scripts.${s.commandName}=${s.commandName} open`]:["pkg","set",`scripts.${s.commandName}=${s.commandName} open`],description:`add the \`${s.commandName}\` package script`}}async function Ye(e){if(e.includes("--help")||e.includes("-h")){je();return}let n=ue(e),r="decisions";try{let t=Y(n.appDir),o=x(),i=R(),c=await le(n,o),X=await de(n,t),g=await K(n,"productAnalytics",i.productAnalytics,i.configured),S=await K(n,"crashReports",i.crashReports,i.configured),ee=await y.fetchManifest(),f=y.resolveVersion(ee,{channel:"stable"}).version,A=T();if(A==="0.0.0")throw new Error("could not resolve the installed rnxsim CLI version");let p=null;X&&t&&(p=H({appDir:t,cliVersion:A})),he(n),be(n,o,c,f),ve(n,t,p),Re(n,g,S),r="runtime";let M=!1;if(!n.dryRun){let E=w();M=(await y.install({version:f,channel:"stable",setActive:!0,protectVersions:E?[E]:[]})).installed}r="repository",p&&await U(p,{dryRun:n.dryRun,json:n.json}),r="service";let h=o.installed;c&&!o.installed&&!n.dryRun&&(await L({port:7668,force:!1}),h=!0),r="privacy",n.dryRun||C({productAnalytics:g,crashReports:S}),r="compatibility";let u=t?me(t):null,b=await fe(n,u);b&&u&&t&&!n.dryRun&&await ye(t,u),we(n,u,b);let _={runtimeVersion:f,serviceInstalled:h,repositoryPrepared:p!==null,compatibilityShared:b&&!n.dryRun},ne=Se(f);n.json?console.log(JSON.stringify({..._,runtimeInstalled:n.dryRun?!1:M,dryRun:n.dryRun,cache:ne,repositoryOperations:p?O(p):[]},null,2)):ke(p);let m=u?q(u):null;return k({event:"cli_setup_completed",properties:{service_installed:h,repository_prepared:p!==null,product_analytics:g,crash_reports:S,compat_supported:m?.supported??0,compat_partial:m?.partial??0,compat_unsupported:m?.unsupported??0,compat_not_yet_verified:m?.notYetVerified??0,from_welcome:n.fromWelcome,ci:n.ci,dry_run:n.dryRun}}),_}catch(t){let o=xe(t);throw k({event:"cli_setup_failed",properties:{stage:r,message:o}}),t}}function pe(){let e=x(),n=N(),r=w();return{daemonSupported:e.supported,daemonInstalled:e.installed,daemonRunning:!!(n&&I(n)),runtimeInstalled:!!(r&&$.existsSync(v(r))),privacyConfigured:R().configured}}function He(e=pe()){return!e.runtimeInstalled||!e.privacyConfigured}function ue(e){let n=e.indexOf("--app"),r=n>=0?e[n+1]:void 0;if(n>=0&&(!r||r.startsWith("-")))throw new Error("--app requires a directory");let t=G(e,"--service","--no-service"),o=G(e,"--repo","--no-repo");return{appDir:P.resolve(r??process.cwd()),ci:e.includes("--ci"),dryRun:e.includes("--dry-run"),fromWelcome:e.includes("--from-welcome"),json:e.includes("--json"),yes:e.includes("--yes")||e.includes("-y"),service:t,repository:o,productAnalytics:Z(e,"--analytics"),crashReports:Z(e,"--crash-reports"),shareCompatibility:e.includes("--share-compat")}}function G(e,n,r){if(e.includes(n)&&e.includes(r))throw new Error(`${n} and ${r} cannot be used together`);if(e.includes(n))return!0;if(e.includes(r))return!1}function Z(e,n){let r=e.find(i=>i.startsWith(`${n}=`)),t=e.indexOf(n),o=r?.slice(n.length+1)??(t>=0?e[t+1]:void 0);if(o!==void 0){if(o==="on"||o==="yes"||o==="true")return!0;if(o==="off"||o==="no"||o==="false")return!1;throw new Error(`${n} must be on or off`)}}async function le(e,n){if(e.ci){if(e.service===!0)throw new Error("--ci cannot install a machine service");return!1}return n.supported?n.installed&&e.service===void 0?!0:e.service!==void 0?e.service:e.yes?!0:(D(e,"--service or --no-service"),d("Install the background service and shared managed runtime?",!0)):!1}async function de(e,n){if(!n){if(e.repository===!0)throw new Error("--repo requires a package.json");return!1}return e.repository!==void 0?e.repository:e.yes?!0:(D(e,"--repo or --no-repo"),d(`Prepare ${n} for reproducible rnx runs?`,!0))}async function K(e,n,r,t){let o=n==="productAnalytics"?e.productAnalytics:e.crashReports;return o!==void 0?o:t?r:e.yes?!0:(D(e,n==="productAnalytics"?"--analytics on|off":"--crash-reports on|off"),d(n==="productAnalytics"?"Share bounded product analytics?":"Send bounded crash reports?",!0))}async function fe(e,n){return n?e.shareCompatibility?!0:e.yes||!process.stdin.isTTY?!1:d("Share dependency names, requested versions, framework, and this compatibility result?",!1):!1}function D(e,n){if(!(process.stdin.isTTY&&!e.ci))throw new Error(`non-interactive setup requires ${n}, or --yes to accept defaults`)}function me(e){let n=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!n||typeof n!="object")throw new Error("package.json must contain an object");return V(n)}async function ye(e,n){let r=JSON.parse($.readFileSync(P.join(e,"package.json"),"utf8"));if(!r||typeof r!="object")throw new Error("package.json must be an object");let t=await fetch("https://contrast.dev/api/scan",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(ge(r,n)),signal:AbortSignal.timeout(1e4)});if(!t.ok)throw new Error(`compatibility sharing failed with HTTP ${t.status}`)}function ge(e,n){return{dependencies:Q(Reflect.get(e,"dependencies")),devDependencies:Q(Reflect.get(e,"devDependencies")),framework:n.framework,result:{framework:n.framework,rnVersion:n.rnVersion,packages:n.packages.slice(0,200)},source:"desktop",shared:!0}}function Q(e){if(!e||typeof e!="object")return{};let n={};for(let[r,t]of Object.entries(e).slice(0,200))typeof t=="string"&&(n[r.slice(0,160)]=t.slice(0,80));return n}function Se(e){let n=z.platform(),r=z.arch();return{path:v(e),key:`sootsim-runtime-${n}-${r}-${e}`,inputs:{platform:n,arch:r,runtimeVersion:e}}}function he(e){e.json||console.log(`
5
5
  ${e.fromWelcome?"welcome to rnx":"rnxsim setup"}`)}function be(e,n,r,t){e.json||(console.log(`
6
6
  1. machine`),console.log(` stable runtime: ${t}`),console.log(` background service: ${n.supported?r?"install":"skip":"unsupported on this platform"}`))}function ve(e,n,r){if(!e.json){if(console.log(`
7
7
  2. repository`),!n){console.log(" no package.json found; repository preparation skipped");return}if(!r){console.log(` skipped for ${n}`);return}console.log(` package manager: ${j(n)}`);for(let t of O(r))console.log(` ${e.dryRun?"would run":"run"}: ${t}`)}}function Re(e,n,r){e.json||(console.log(`
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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 h}from"./chunk-ZMZTHU7V.js";import"./chunk-MENV7VLD.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnxsim skill
4
+ import{a as h}from"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnxsim skill
5
5
 
6
6
  install and inspect bundled rnx agent skills.
7
7
 
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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{j as f}from"./chunk-KZW5WBGU.js";import"./chunk-LDQ7HVCW.js";import"./chunk-Q3RGLERJ.js";import"./chunk-Y2FSZSO7.js";import"./chunk-HMDOLCKG.js";import"./chunk-SI3BUTQR.js";import"./chunk-274UD5FD.js";import"./chunk-XRGEEPJ5.js";import"./chunk-TGQNQ6XT.js";import{a as s,b as l,c as t,d as c,e as a}from"./chunk-GZDHEONW.js";import"./chunk-G74YIEVS.js";import"./chunk-T4FT6CM7.js";import"./chunk-YZRFF4YA.js";import"./chunk-4BXCZHAU.js";import"./chunk-FWYYCUAZ.js";import"./chunk-AY47WKS5.js";import"./chunk-3D57IBPC.js";import"./chunk-7INBNA3U.js";import"./chunk-PEPUGJVI.js";import"./chunk-B7KMNHX7.js";import"./chunk-U4PN6JOT.js";import"./chunk-HG7ORJMT.js";import"./chunk-TYE3WBSR.js";import"./chunk-5OX7ANRA.js";import"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import"./chunk-6UKJB2VC.js";import"./chunk-66NF2KNG.js";import"./chunk-ZMZTHU7V.js";import"./chunk-MENV7VLD.js";function p(){console.log(`
4
+ import{j as f}from"./chunk-VZXWHRUZ.js";import"./chunk-OHAZNXLK.js";import"./chunk-GGRX24GF.js";import"./chunk-BTWORNNG.js";import"./chunk-NMF2ZMZQ.js";import"./chunk-7GN3LVWB.js";import"./chunk-GASE6UBA.js";import"./chunk-MJRLLB4R.js";import"./chunk-XEVZYVIW.js";import{a as s,b as l,c as t,d as c,e as a}from"./chunk-WUSWBCWA.js";import"./chunk-5DHC6KHQ.js";import"./chunk-DCEMHR2Y.js";import"./chunk-WF3T4SVI.js";import"./chunk-YIFT42WN.js";import"./chunk-DZS6WPUI.js";import"./chunk-G2WW6L2C.js";import"./chunk-YDGQTMQL.js";import"./chunk-KTHV3RUS.js";import"./chunk-NFK7T35W.js";import"./chunk-RTN5C5RL.js";import"./chunk-VFCMSYZK.js";import"./chunk-VNQEB4L7.js";import"./chunk-UC6U3MML.js";import"./chunk-2YR5BGA5.js";import"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import"./chunk-ZMJD5GEC.js";import"./chunk-FSUYIVJ6.js";import"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";function p(){console.log(`
5
5
  rnxsim storage profile \u2014 manage isolated storage profiles
6
6
 
7
7
  usage:
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.313 | (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-YIFT42WN.js";import"./chunk-2YR5BGA5.js";import"./chunk-WINYQ44O.js";export{a as settingsStore};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{c as a,d as b}from"./chunk-IJO63TDP.js";import"./chunk-HI5TFJWN.js";import"./chunk-FSUYIVJ6.js";import"./chunk-WINYQ44O.js";export{b as flushCliTelemetry,a as trackCliEvent};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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{h as m,j as d,m as i}from"./chunk-7INBNA3U.js";import"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import"./chunk-66NF2KNG.js";import"./chunk-MENV7VLD.js";import{writeFileSync as g}from"fs";function u(){console.log(`
4
+ import{h as m,j as d,m as i}from"./chunk-KTHV3RUS.js";import"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import"./chunk-FSUYIVJ6.js";import"./chunk-WINYQ44O.js";import{writeFileSync as g}from"fs";function u(){console.log(`
5
5
  rnxsim timeline \u2014 control the semantic event timeline
6
6
 
7
7
  usage:
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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 h,b as v,c as $}from"./chunk-L24Z3CRS.js";import{b as p}from"./chunk-AY47WKS5.js";import"./chunk-3D57IBPC.js";import"./chunk-7INBNA3U.js";import{b as g}from"./chunk-U4PN6JOT.js";import"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import{H as a,g as m,h as u,l as d}from"./chunk-66NF2KNG.js";import{a as f}from"./chunk-EUAVBTKU.js";import"./chunk-ZMZTHU7V.js";import"./chunk-MENV7VLD.js";import{spawn as y}from"node:child_process";import x from"node:fs";import R from"node:os";import s from"node:path";var b="https://registry.npmjs.org/rnxsim/latest";async function W(t){let n=t.indexOf("--channel"),e=n>=0&&t[n+1]?t[n+1]:void 0;console.log(`rnxsim upgrade
4
+ import{a as h,b as v,c as $}from"./chunk-RSZWCKNT.js";import{b as p}from"./chunk-G2WW6L2C.js";import"./chunk-YDGQTMQL.js";import"./chunk-KTHV3RUS.js";import{b as g}from"./chunk-VFCMSYZK.js";import"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import{H as a,g as m,h as u,l as d}from"./chunk-FSUYIVJ6.js";import{a as f}from"./chunk-3NV2NCNX.js";import"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";import{spawn as y}from"node:child_process";import x from"node:fs";import R from"node:os";import s from"node:path";var b="https://registry.npmjs.org/rnxsim/latest";async function W(t){let n=t.indexOf("--channel"),e=n>=0&&t[n+1]?t[n+1]:void 0;console.log(`rnxsim upgrade
5
5
  `),console.log("runtime:");let o=a(),{config:l}=await p(),r=l?.runtimeVersion,c=r?x.existsSync(s.join(d(r),"index.html")):!1;r&&console.log(` project config: v${r}`);let i=(r&&c?null:await $(["install",...r?[r,"--set-active=false"]:[],...e?["--channel",e]:[]],{}))?.version??r??a();i&&console.log(r?c?` result: v${i} already installed for this project`:` result: not installed \u2192 v${i} for this project`:o&&o!==i?` result: v${o} \u2192 v${i}`:o?` result: v${i} already current`:` result: not installed \u2192 v${i}`);let k=i?await h(i):null;console.log(`
6
6
  cli:`),await j(),i&&console.log(`
7
7
  ${v(i,k)}`)}function w(){if(u())return{kind:"dev"};let t=process.argv[1]??"";try{t=x.realpathSync(t)}catch{}let n=s.sep;if(t.includes(`${n}_npx${n}`)||t.includes(`${n}.bunx${n}`))return{kind:"npx"};if(t.includes(`${n}.bun${n}`))return{kind:"global",command:"bun",args:["add","-g","rnxsim@latest"]};if(t.includes(`${n}pnpm${n}`))return{kind:"global",command:"pnpm",args:["add","-g","rnxsim@latest"]};let e=s.join(m(),"cli");if(t.startsWith(`${e}${n}`))return{kind:"global",command:"npm",args:["i","-g","--prefix",e,"rnxsim@latest"]};let o=s.resolve(process.env.SOOTSIM_CLI_PREFIX||s.join(R.homedir(),".local"));return t.startsWith(`${o}${n}`)?{kind:"global",command:"npm",args:["i","-g","--prefix",o,"rnxsim@latest"]}:{kind:"global",command:"npm",args:["i","-g","rnxsim@latest"]}}async function j(){let t=f(),n=await C();if(!n){console.log(` v${t} \u2014 couldn't reach the npm registry, skipped`);return}if(g(n,t)<=0){console.log(` v${t} (latest)`);return}let e=w();if(console.log(` v${t} \u2192 v${n}`),e.kind==="dev"){console.log(" running from the Contrast dev checkout \u2014 pull instead of upgrading");return}if(e.kind==="npx"){console.log(" running from the npx cache \u2014 get the latest with:"),console.log(" npx rnxsim@latest");return}let o=`${e.command} ${e.args.join(" ")}`;console.log(` updating global install (${o})\u2026`),await S(e.command,e.args)?console.log(` updated to v${n}`):(console.log(" update failed \u2014 run it yourself:"),console.log(` ${o}`))}function S(t,n){return new Promise(e=>{let o=y(t,n,{stdio:"inherit"});o.on("error",()=>e(!1)),o.on("exit",l=>e(l===0))})}async function C(){try{let t=await fetch(b,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!t.ok)return null;let n=await t.json();return typeof n.version=="string"&&n.version?n.version:null}catch{return null}}export{W as runUpgrade};
@@ -0,0 +1,4 @@
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import { createRequire as __sootsimCreateRequire } from 'node:module'
3
+ var require = __sootsimCreateRequire(import.meta.url)
4
+ import{e as a,f as b,g as c}from"./chunk-OVFJFXUD.js";import"./chunk-WEXDAC74.js";import"./chunk-DCEMHR2Y.js";import"./chunk-WF3T4SVI.js";import"./chunk-DZS6WPUI.js";import"./chunk-YDGQTMQL.js";import"./chunk-KTHV3RUS.js";import"./chunk-IJO63TDP.js";import"./chunk-HI5TFJWN.js";import"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import"./chunk-FSUYIVJ6.js";import"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
@@ -1,6 +1,6 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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 a}from"./chunk-AY47WKS5.js";import"./chunk-3D57IBPC.js";import{d as s,f as t}from"./chunk-U4PN6JOT.js";import{a as m}from"./chunk-KR5BGMBZ.js";import{l as r}from"./chunk-66NF2KNG.js";import{a as l}from"./chunk-EUAVBTKU.js";import"./chunk-ZMZTHU7V.js";import"./chunk-MENV7VLD.js";import g from"node:fs";import d from"node:path";async function R($){let{IS_BETA:c,BETA_LABEL:u}=await import("./beta-GT3NN67B.js"),f=c?` \xB7 ${u}`:"";console.log(`rnxsim v${l()}${f}`);let o=m(),n=t.resolveChannel();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${n}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `rnxsim runtime install`"):console.log(`${o.primary} \xB7 ${n}`);let{config:i}=await a();if(i?.runtimeVersion){let p=g.existsSync(d.join(r(i.runtimeVersion),"index.html"));console.log(`project runtime v${i.runtimeVersion} \xB7 configured \xB7 ${p?"installed":"installs on open"}`)}let e=await t.checkUpToDate({channel:n});e.outdated&&e.latest&&console.log(`
4
+ import{b as a}from"./chunk-G2WW6L2C.js";import"./chunk-YDGQTMQL.js";import{d as s,f as t}from"./chunk-VFCMSYZK.js";import{a as m}from"./chunk-TIVZIMMW.js";import{l as r}from"./chunk-FSUYIVJ6.js";import{a as l}from"./chunk-3NV2NCNX.js";import"./chunk-2D2UPBBR.js";import"./chunk-WINYQ44O.js";import g from"node:fs";import d from"node:path";async function R($){let{IS_BETA:c,BETA_LABEL:u}=await import("./beta-JV6UKADW.js"),f=c?` \xB7 ${u}`:"";console.log(`rnxsim v${l()}${f}`);let o=m(),n=t.resolveChannel();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${n}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `rnxsim runtime install`"):console.log(`${o.primary} \xB7 ${n}`);let{config:i}=await a();if(i?.runtimeVersion){let p=g.existsSync(d.join(r(i.runtimeVersion),"index.html"));console.log(`project runtime v${i.runtimeVersion} \xB7 configured \xB7 ${p?"installed":"installs on open"}`)}let e=await t.checkUpToDate({channel:n});e.outdated&&e.latest&&console.log(`
5
5
  \u2191 default runtime v${e.latest} available; run \`rnxsim upgrade\``),console.log(`
6
6
  what's new: ${s}`)}export{R as runVersion};
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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,e,f,g,h,i,j}from"./chunk-JG6S4RSH.js";import"./chunk-MENV7VLD.js";export{b as COMPAT_CATEGORIES,j as COMPAT_RESULT_CAVEAT,c as POLYFILL_REGISTRY,a as UNSUPPORTABLE,f as countScanResults,i as formatDetailedScanLines,h as formatPackageStatus,g as formatScanCounts,d as scanDeps,e as scanDepsWithData};
4
+ import{a,b,c,d,e,f,g,h,i,j}from"./chunk-WWZIXIRD.js";import"./chunk-WINYQ44O.js";export{b as COMPAT_CATEGORIES,j as COMPAT_RESULT_CAVEAT,c as POLYFILL_REGISTRY,a as UNSUPPORTABLE,f as countScanResults,i as formatDetailedScanLines,h as formatPackageStatus,g as formatScanCounts,d as scanDeps,e as scanDepsWithData};
@@ -1,7 +1,7 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (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{D as x,E as N,G as y,R as F,S as b,T as S}from"./chunk-TGQNQ6XT.js";import{h as T,j as A}from"./chunk-7INBNA3U.js";import{f as k}from"./chunk-33FKQH54.js";import"./chunk-7VWOSTD5.js";import"./chunk-66NF2KNG.js";import"./chunk-MENV7VLD.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=T(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
4
+ import{D as x,E as N,G as y,R as F,S as b,T as S}from"./chunk-XEVZYVIW.js";import{h as T,j as A}from"./chunk-KTHV3RUS.js";import{f as k}from"./chunk-4NPPOV2N.js";import"./chunk-IJ5CAZZC.js";import"./chunk-FSUYIVJ6.js";import"./chunk-WINYQ44O.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=T(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
5
5
  rnxsim what-happened \u2014 show recent events from the semantic timeline
6
6
 
7
7
  usage:
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "rnx";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // cli/commands/inspect/core.ts
4
4
  function resolveMaxMsFlag(args, fallbackMs) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -17901,7 +17901,10 @@ async function launch2(opts) {
17901
17901
  SOOTSIM_PW_HEADLESS: opts.headless ?? true ? "1" : "0",
17902
17902
  SOOTSIM_PW_USERDATADIR: resolveUserDataDir(opts),
17903
17903
  SOOTSIM_PW_CDP_PORT: opts.cdpPort ? String(opts.cdpPort) : "",
17904
- SOOTSIM_PW_VIEWPORT: opts.viewport ? `${opts.viewport.width}x${opts.viewport.height}` : "",
17904
+ // when the caller passed no viewport, leave the inherited
17905
+ // SOOTSIM_PW_VIEWPORT (from playwrightEnv) alone instead of
17906
+ // clobbering it with '' — the driver reads it as its own default.
17907
+ ...opts.viewport ? { SOOTSIM_PW_VIEWPORT: `${opts.viewport.width}x${opts.viewport.height}` } : {},
17905
17908
  SOOTSIM_PW_CONNECTED_ACK_FILE: connectAckFile,
17906
17909
  SOOTSIM_PW_CONNECT_TIMEOUT_MS: String(opts.connectTimeoutMs ?? 12e4),
17907
17910
  SOOTSIM_PW_OWNER_PID: String(ownerPid)
@@ -19793,7 +19796,8 @@ async function runOpenCommand(args, opts = {}) {
19793
19796
  "--driver",
19794
19797
  "--profile",
19795
19798
  "--cdp-port",
19796
- "--device"
19799
+ "--device",
19800
+ "--viewport"
19797
19801
  ]
19798
19802
  });
19799
19803
  const requestedProfileId = args.find((_, i) => args[i - 1] === "--profile");
@@ -19900,6 +19904,13 @@ async function runOpenCommand(args, opts = {}) {
19900
19904
  process.exit(1);
19901
19905
  }
19902
19906
  const deviceSpec = deviceArg ? import_settings.devices[deviceArg] : void 0;
19907
+ const viewportArg = args.find((_, i) => args[i - 1] === "--viewport");
19908
+ const viewportMatch = viewportArg ? /^(\d+)x(\d+)$/.exec(viewportArg) : null;
19909
+ if (viewportArg && !viewportMatch) {
19910
+ console.error(` rnxsim open: --viewport must be <width>x<height>, got "${viewportArg}"`);
19911
+ process.exit(1);
19912
+ }
19913
+ const explicitViewport = viewportMatch ? { width: Number(viewportMatch[1]), height: Number(viewportMatch[2]) } : void 0;
19903
19914
  const buildShellUrlOpts = {
19904
19915
  hot: hotMode,
19905
19916
  device: deviceArg,
@@ -20048,7 +20059,7 @@ async function runOpenCommand(args, opts = {}) {
20048
20059
  cdpPort,
20049
20060
  device: deviceArg,
20050
20061
  ownerPid,
20051
- viewport: deviceSpec ? { width: deviceSpec.width + 120, height: deviceSpec.height + 60 } : void 0,
20062
+ viewport: explicitViewport ?? (deviceSpec ? { width: deviceSpec.width + 120, height: deviceSpec.height + 60 } : void 0),
20052
20063
  connectTimeoutMs: connectWait.hostTimeoutMs
20053
20064
  });
20054
20065
  if (!result.launched) {
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.312 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.313 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rnxsim",
3
- "version": "0.1.312",
3
+ "version": "0.1.313",
4
4
  "description": "rnxsim CLI, Vite and Metro plugins, and agent skills for driving React Native apps in the browser.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "MIT",