rnxsim 0.1.367 → 0.1.368
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.
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-EKKIAKP5.js → agent-GXCQMYV4.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-MHLQUGA6.js → agent-wrapper-Y3PQAL6I.js} +2 -2
- package/dist-cli/chunks/{app-fonts-HN6ADRTQ.js → app-fonts-MDD3W4VN.js} +2 -2
- package/dist-cli/chunks/{assert-IMR6QCN6.js → assert-BSRQBRH7.js} +2 -2
- package/dist-cli/chunks/{auth-27LPMQNH.js → auth-SLPHDPCF.js} +2 -2
- package/dist-cli/chunks/{beta-6RXBB5AI.js → beta-R4IZ5SWO.js} +2 -2
- package/dist-cli/chunks/{box-DORLF3GP.js → box-2NQYYY3B.js} +2 -2
- package/dist-cli/chunks/{camera-2G7JZ5DL.js → camera-ER66WWAX.js} +2 -2
- package/dist-cli/chunks/{chunk-IPEURNLI.js → chunk-2YK5J2D2.js} +2 -2
- package/dist-cli/chunks/{chunk-AVOROGA3.js → chunk-3MPFC3DS.js} +1 -1
- package/dist-cli/chunks/{chunk-T6J4YP56.js → chunk-3S2J6IVC.js} +2 -2
- package/dist-cli/chunks/{chunk-SH5ETJKG.js → chunk-3XMEIZEV.js} +1 -1
- package/dist-cli/chunks/{chunk-SGGL3AFV.js → chunk-42TLK75A.js} +3 -3
- package/dist-cli/chunks/{chunk-HNT2OXPZ.js → chunk-4FLQYRGN.js} +1 -1
- package/dist-cli/chunks/{chunk-JPXQKLNH.js → chunk-4VA2ISWX.js} +1 -1
- package/dist-cli/chunks/{chunk-QXLLY4IM.js → chunk-57LITN73.js} +2 -2
- package/dist-cli/chunks/{chunk-LWOVKHRC.js → chunk-7B22IPSC.js} +2 -2
- package/dist-cli/chunks/{chunk-VB2YBH46.js → chunk-7V3S2DY2.js} +1 -1
- package/dist-cli/chunks/{chunk-URLVQHC3.js → chunk-AUPJX4KI.js} +1 -1
- package/dist-cli/chunks/{chunk-E33A4AIR.js → chunk-BWJOLJOK.js} +2 -2
- package/dist-cli/chunks/{chunk-RPNKKVBN.js → chunk-CKNNO6ZG.js} +3 -3
- package/dist-cli/chunks/{chunk-TWUE7WF5.js → chunk-DJSPNOF6.js} +2 -2
- package/dist-cli/chunks/{chunk-3VBVEDDA.js → chunk-E6XYIIJK.js} +1 -1
- package/dist-cli/chunks/{chunk-6SO6I3D5.js → chunk-ECXDCED5.js} +2 -2
- package/dist-cli/chunks/{chunk-IR44SFBA.js → chunk-EHA65UVJ.js} +2 -2
- package/dist-cli/chunks/{chunk-75EFOPXE.js → chunk-ESVUVW3R.js} +2 -2
- package/dist-cli/chunks/{chunk-PROKNJVY.js → chunk-FDAFSRQE.js} +2 -2
- package/dist-cli/chunks/{chunk-W5PATILQ.js → chunk-FSPZY4AI.js} +2 -2
- package/dist-cli/chunks/{chunk-YGQVQ2VG.js → chunk-FVODUDPS.js} +1 -1
- package/dist-cli/chunks/{chunk-VFU2SJ7M.js → chunk-GFWUIGGY.js} +2 -2
- package/dist-cli/chunks/{chunk-YINACV32.js → chunk-GS5VUDCF.js} +1 -1
- package/dist-cli/chunks/{chunk-BSEXEYNX.js → chunk-GXHCJRKE.js} +2 -2
- package/dist-cli/chunks/{chunk-N3BXQEUF.js → chunk-HKQXGCQT.js} +1 -1
- package/dist-cli/chunks/{chunk-MQN5DWTI.js → chunk-IXRVFQMT.js} +2 -2
- package/dist-cli/chunks/{chunk-EV4P5UBP.js → chunk-JFGW75UL.js} +2 -2
- package/dist-cli/chunks/{chunk-5DGMFUZG.js → chunk-JHYXRORU.js} +2 -2
- package/dist-cli/chunks/{chunk-YV7ERO2V.js → chunk-LAKWOJ5Y.js} +2 -2
- package/dist-cli/chunks/{chunk-VANZFTUE.js → chunk-LPAOOJIW.js} +1 -1
- package/dist-cli/chunks/{chunk-GMLOCV3E.js → chunk-M7COA4BE.js} +1 -1
- package/dist-cli/chunks/{chunk-XTRHQAOV.js → chunk-MCO7V4VN.js} +2 -2
- package/dist-cli/chunks/{chunk-KHX65HAU.js → chunk-MGOAQHMO.js} +1 -1
- package/dist-cli/chunks/{chunk-YBFB3RM7.js → chunk-NERY6HGZ.js} +2 -2
- package/dist-cli/chunks/{chunk-K3EC6JDE.js → chunk-NGWUGNPV.js} +2 -2
- package/dist-cli/chunks/{chunk-DNVABCEC.js → chunk-NPSPWMBO.js} +2 -2
- package/dist-cli/chunks/{chunk-3QZJLNYY.js → chunk-OXCDE3DD.js} +1 -1
- package/dist-cli/chunks/{chunk-GRN2FHVW.js → chunk-OZJMWTGA.js} +1 -1
- package/dist-cli/chunks/{chunk-RNQTOGM7.js → chunk-PNBQBBG5.js} +1 -1
- package/dist-cli/chunks/{chunk-G5IUIGGC.js → chunk-Q65KH25G.js} +1 -1
- package/dist-cli/chunks/{chunk-CM6ZKZW7.js → chunk-QKOY7UW5.js} +2 -2
- package/dist-cli/chunks/{chunk-XYRUQQUR.js → chunk-QMVBWZH2.js} +2 -2
- package/dist-cli/chunks/{chunk-WI5V4TYG.js → chunk-RRALQ4WM.js} +2 -2
- package/dist-cli/chunks/{chunk-EFMOXYDD.js → chunk-SHMLYTNH.js} +2 -2
- package/dist-cli/chunks/{chunk-AXMMLO7D.js → chunk-SSUPPM6K.js} +1 -1
- package/dist-cli/chunks/{chunk-XWUTJLBM.js → chunk-T2MGLXY5.js} +2 -2
- package/dist-cli/chunks/{chunk-4BWGLTKU.js → chunk-T4ZZ26A2.js} +2 -2
- package/dist-cli/chunks/{chunk-RZGHV2WI.js → chunk-TC6DNQL6.js} +2 -2
- package/dist-cli/chunks/{chunk-4XSNO374.js → chunk-TE645QCO.js} +1 -1
- package/dist-cli/chunks/{chunk-N5OSV26B.js → chunk-TOE5O6JE.js} +2 -2
- package/dist-cli/chunks/{chunk-AM2ODYAN.js → chunk-TPIPKXJL.js} +1 -1
- package/dist-cli/chunks/{chunk-HG6T4OOR.js → chunk-UBH2BWCY.js} +2 -2
- package/dist-cli/chunks/{chunk-PP2KNVXP.js → chunk-UXROQPIN.js} +3 -3
- package/dist-cli/chunks/{chunk-U44VEQRN.js → chunk-WF2CRNYF.js} +1 -1
- package/dist-cli/chunks/{chunk-JMSLXZFW.js → chunk-WFAFAGMG.js} +2 -2
- package/dist-cli/chunks/{chunk-HFFXPUEP.js → chunk-WJQB6AXZ.js} +1 -1
- package/dist-cli/chunks/{chunk-A5AJFVOF.js → chunk-WVVAYLWZ.js} +1 -1
- package/dist-cli/chunks/{chunk-PHNURIH3.js → chunk-WXRDFUR7.js} +2 -2
- package/dist-cli/chunks/{chunk-6DBS5EGX.js → chunk-X5MXQB3L.js} +2 -2
- package/dist-cli/chunks/{chunk-RSNLI2NH.js → chunk-YSHJ3LMQ.js} +2 -2
- package/dist-cli/chunks/{chunk-VUBJ6FXU.js → chunk-YYPTSF6W.js} +2 -2
- package/dist-cli/chunks/{cleanup-GVFHQ3KH.js → cleanup-WHGLBAJ2.js} +2 -2
- package/dist-cli/chunks/cli-version-DMXIXBIM.js +4 -0
- package/dist-cli/chunks/{compat-AYRTXYAM.js → compat-MGBKGYGQ.js} +2 -2
- package/dist-cli/chunks/{config-K7LOOV62.js → config-TRDOMP4T.js} +2 -2
- package/dist-cli/chunks/{connect-H3CNY4IO.js → connect-N4FV3DDV.js} +2 -2
- package/dist-cli/chunks/{control-SMHZ2CF5.js → control-5GRBZVYK.js} +2 -2
- package/dist-cli/chunks/daemon-MBT5E3ZC.js +4 -0
- package/dist-cli/chunks/{debug-ELGHG57T.js → debug-AHEK43AJ.js} +3 -3
- package/dist-cli/chunks/{desktop-4G7FK3MP.js → desktop-LDRIXOVV.js} +3 -3
- package/dist-cli/chunks/{detox-JKXGEJIZ.js → detox-6HAKYISO.js} +2 -2
- package/dist-cli/chunks/{device-IV3AR6KG.js → device-QM3S7OVU.js} +2 -2
- package/dist-cli/chunks/{diagnose-3ERGF7EW.js → diagnose-WDP3CVIX.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-ALFEVZ4B.js → disk-cleanup-JRT5MKFW.js} +2 -2
- package/dist-cli/chunks/{do-chain-K2B4OHM7.js → do-chain-7FDMO56C.js} +2 -2
- package/dist-cli/chunks/drivers-AJL2EVXH.js +4 -0
- package/dist-cli/chunks/{env-2KF6IYZE.js → env-YIBOMB24.js} +2 -2
- package/dist-cli/chunks/{film-UQXJFAD5.js → film-R3EQADMG.js} +3 -3
- package/dist-cli/chunks/flow-BDAA6BWL.js +4 -0
- package/dist-cli/chunks/help-5EJD6LJF.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-VJCWCFVO.js → hidden-runtime-alias-6M4UERRQ.js} +2 -2
- package/dist-cli/chunks/{home-paths-EGUZZ6J6.js → home-paths-QJNOHZJO.js} +2 -2
- package/dist-cli/chunks/inspect-S3LR3R2A.js +4 -0
- package/dist-cli/chunks/install-desktop-GXE6K7BJ.js +4 -0
- package/dist-cli/chunks/{login-6KQGD7HK.js → login-ISWDW4WU.js} +2 -2
- package/dist-cli/chunks/{logout-2FCOVLBC.js → logout-VNJX2IEW.js} +2 -2
- package/dist-cli/chunks/{maestro-HPSSEVJD.js → maestro-SQS2OS2D.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-KQQ6JHMR.js → maestro-generate-GWVPISG5.js} +3 -3
- package/dist-cli/chunks/{mode-SH7KRZET.js → mode-3URDGBZB.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-NAMCAVFX.js → optional-demo-registry-L3LRBQHG.js} +2 -2
- package/dist-cli/chunks/{perf-LWKAHXUL.js → perf-XLPC4UKR.js} +2 -2
- package/dist-cli/chunks/{permissions-EZTKWTXV.js → permissions-QRHWVMDP.js} +2 -2
- package/dist-cli/chunks/{platform-KSOJIVN5.js → platform-F47URZNB.js} +3 -3
- package/dist-cli/chunks/privacy-BF23T67T.js +4 -0
- package/dist-cli/chunks/{record-2IC7BAQN.js → record-2DN3OUE5.js} +3 -3
- package/dist-cli/chunks/{report-issue-MMX6HOQO.js → report-issue-D3BQPSLU.js} +2 -2
- package/dist-cli/chunks/reset-T5CNZ7D3.js +4 -0
- package/dist-cli/chunks/resolve-target-KAAS274S.js +4 -0
- package/dist-cli/chunks/runtime-AQJDBR3X.js +4 -0
- package/dist-cli/chunks/{screenshot-command-JYUXDVSA.js → screenshot-command-RK7IJHVK.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-OGRY6AA3.js → screenshot-layers-DP2QKSMN.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-QHDN65XS.js → screenshots-capture-MA7P3FUT.js} +2 -2
- package/dist-cli/chunks/{serve-W4BKAG4J.js → serve-UBXNGLNP.js} +2 -2
- package/dist-cli/chunks/setup-GH7OW4GC.js +4 -0
- package/dist-cli/chunks/{sim-client-UOQGFBPO.js → sim-client-VTKFEDJX.js} +2 -2
- package/dist-cli/chunks/{skills-OPPXOD63.js → skills-HPK25R4B.js} +2 -2
- package/dist-cli/chunks/{state-TDAN7BOM.js → state-273XJPUE.js} +2 -2
- package/dist-cli/chunks/{storage-CFB2YGLY.js → storage-RTDFWIY7.js} +2 -2
- package/dist-cli/chunks/store-DLKNNM4L.js +4 -0
- package/dist-cli/chunks/telemetry-7CWDXEOO.js +4 -0
- package/dist-cli/chunks/{timeline-ASOOVP4C.js → timeline-IF2PGK7C.js} +2 -2
- package/dist-cli/chunks/{upgrade-6MVJISHG.js → upgrade-R74NVHKG.js} +2 -2
- package/dist-cli/chunks/upload-3JFFVCZ4.js +4 -0
- package/dist-cli/chunks/{version-5GS7CWRL.js → version-RTFCYQZ7.js} +2 -2
- package/dist-cli/chunks/{web-QRRMYMV4.js → web-35SSKBRU.js} +2 -2
- package/dist-cli/chunks/welcome-N5V352SE.js +5 -0
- package/dist-cli/chunks/{what-happened-GAZJGKXX.js → what-happened-WXTP6EPR.js} +2 -2
- package/dist-cli/chunks/{ws-bridge-DIXUAPLQ.js → ws-bridge-JXQUAWFA.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/cli-version-DPX5MA2M.js +0 -4
- package/dist-cli/chunks/daemon-TEZUNI73.js +0 -4
- package/dist-cli/chunks/drivers-KJYXA3M3.js +0 -4
- package/dist-cli/chunks/flow-ASTUH56E.js +0 -4
- package/dist-cli/chunks/help-SNNYFELA.js +0 -4
- package/dist-cli/chunks/inspect-XANAADQT.js +0 -4
- package/dist-cli/chunks/install-desktop-JKQA7UY6.js +0 -4
- package/dist-cli/chunks/privacy-EJULWP7L.js +0 -4
- package/dist-cli/chunks/reset-PKFZA4NC.js +0 -4
- package/dist-cli/chunks/resolve-target-AFKU3BRE.js +0 -4
- package/dist-cli/chunks/runtime-XHWWPOIN.js +0 -4
- package/dist-cli/chunks/setup-WJPMPSAC.js +0 -4
- package/dist-cli/chunks/store-4TEED4ZU.js +0 -4
- package/dist-cli/chunks/telemetry-S6N7CV6G.js +0 -4
- package/dist-cli/chunks/upload-CBNIRFEW.js +0 -4
- package/dist-cli/chunks/welcome-33FXMAMB.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 F,b as h,e as f,f as W,g as B}from"./chunk-
|
|
4
|
+
import{a as F,b as h,e as f,f as W,g as B}from"./chunk-TE645QCO.js";import{b as l}from"./chunk-NGWUGNPV.js";import{b as P}from"./chunk-3XMEIZEV.js";import{E as y,G as D,d as T,e as u,h as v,k as I,l as R,o as O,p as $,r as M,s as A,x as N,z as _}from"./chunk-M7COA4BE.js";var o=class extends Error{constructor(e){super(e),this.name=new.target.name}},m=class extends o{},w=class extends o{status;constructor(e){super(`sim not ready: ${O(e)}`),this.status=e}},d=class extends o{outcome;constructor(e,t=null){super(e),this.outcome=t}},b=class extends o{},g=class extends o{result;constructor(e){let t=e.steps.find(n=>!n.ok),s=t?`${t.index} (${t.type})`:String(e.completed),r=t?.error??e.error;super(`perform failed at step ${s}${r?`: ${r}`:""}`),this.result=e}},x=class extends o{result;constructor(e){super(`reset (${e.strategy}) failed${e.error?`: ${e.error}`:""}`),this.result=e}};function U(i){return new Promise(e=>setTimeout(e,i))}function C(i){if(typeof i!="string"||!i.startsWith("data:image/png;base64,"))throw new o(`screenshot bridge returned a non-png payload: ${JSON.stringify(typeof i=="string"?i.slice(0,80):i)}`);let e=i.slice(22),t=atob(e),s=new Uint8Array(t.length);for(let r=0;r<t.length;r++)s[r]=t.charCodeAt(r);return{dataUrl:i,bytes:s}}var J=["bundle","demo","app","open","port","inspectOpen","appFonts","appSplash"];function K(i,e){let t=new URL(i);for(let a of J)t.searchParams.delete(a);let s=t.pathname.replace(/\/+$/,"")||"/",r=s==="/__soot"||s.startsWith("/__soot/")?"/__soot":"",n=String(e).trim();return/^\d+$/.test(n)?t.pathname=`${r}/rn/${n}`:(t.pathname=`${r}/rn`,t.searchParams.set("open",n)),t.toString()}function j(i){return typeof i=="object"&&"text"in i&&typeof i.text=="string"&&!("layout"in i)&&!("absolutePosition"in i)}var k=class{simId;bridge;closed=!1;constructor(e,t,s={}){this.bridge=e,this.simId=t}send(e,t){if(this.closed)return Promise.reject(new m("sim client is closed"));let s=e.simId===void 0?{...e,simId:this.simId}:e;return this.bridge.send(s,t)}listSims(){return this.bridge.listSims()}focusSim(e=this.simId){return this.bridge.focusSim(e)}closeSim(e=this.simId){return this.bridge.closeSim(e)}claim(e=this.simId,t){return this.bridge.claim(e,t)}close(){this.closed||(this.closed=!0,this.bridge.close())}async open(e,t={}){let r=(await this.listSims()).find(c=>c.id===this.simId);if(!r)throw new m(`sim ${this.simId} is no longer connected`);let n=r.url??r.origin;if(!n)throw new m(`sim ${this.simId} reported no URL to derive the shell from`);let a=K(n,e),p=new URL(a);await this.send({type:"evaluate",code:`window.location.href = ${JSON.stringify(a)}`});let L=Date.now()+(t.timeoutMs??3e4);for(;Date.now()<L;){await U(250);try{let{url:c}=await u(this),S=new URL(c);if(S.pathname===p.pathname&&S.searchParams.get("open")===p.searchParams.get("open"))return}catch{}}throw new m(`timed out waiting for sim ${this.simId} to load ${a}`)}openUrl(e){return P(this,e)}async waitReady(e={}){let t=await $(this,e.timeoutMs??2e4,{onProgress:e.onProgress});if(!t.ready)throw new w(t);return t}settle(e={}){return F({bridge:this,maxMs:e.maxMs??3e3,strict:e.strict})}async find(e){return(await this.findAll(e))[0]??null}async findAll(e){let t={testId:e.testId??null,role:e.role??null,type:e.type??null,text:e.text??null,pressable:e.pressable},s=await R(this,t);if(!s)throw new o("find() needs at least one of testId, text, role, type, or pressable");let{result:r}=s;return Array.isArray(r)?r:r?[r]:[]}async tree(e=5){let{tree:t}=await T(this,e);return Array.isArray(t)?t:[]}resolve(e){return this.send({type:"resolve",selector:e})}describe(e={}){return v(this,{describe:!0,verbose:e.verbose??!1,filter:e.filter??"",compact:!e.verbose,hideXy:!1,fullText:!0})}accessibilityTree(){return I(this)}async logs(e={}){return _(await N(this),e)}errors(e=20){return M(this,e)}warnings(e=20){return A(this,e)}keyboard(){return y(this)}shellState(e=0){return D(this,e)}async url(){let{url:e}=await u(this);return e}async screenshot(e={}){let t=await this.send({type:"screenshot",...e.layers?{layers:e.layers}:{},...e.crop?{crop:e.crop}:{}});return C(t)}async tap(e){if(typeof e=="string")return this.throwUnlessTapped(await B(this,e),e);if("testId"in e&&typeof e.testId=="string")return this.throwUnlessTapped(await f(this,e.testId),e.testId);if(j(e)){let{text:r,...n}=e;return this.throwUnlessTapped(await W(this,r,n),r)}if("testID"in e&&typeof e.testID=="string")return this.throwUnlessTapped(await f(this,e.testID),e.testID);let t=this.coordsForTapTarget(e),s=await this.send({type:"tap",x:t.x,y:t.y});if(!h(s))throw new d(`tap at ${t.x},${t.y} missed: ${JSON.stringify(s)}`)}async longPress(e,t={}){let s=await this.resolveCoords(e);if(!(await this.send({type:"longPress",x:s.x,y:s.y,durationMs:t.durationMs??600},{timeoutMs:(t.durationMs??600)+15e3}))?.ok)throw new d(`longPress at ${s.x},${s.y} missed`)}async type(e){await this.requireVisibleKeyboard("type"),await this.send({type:"keyboard",action:"type",text:e})}async press(e){await this.requireVisibleKeyboard("press"),await this.send({type:"keyboard",action:"press",text:e})}async dismissKeyboard(){await this.send({type:"keyboard",action:"dismiss"})}async perform(e,t){let s=[];for(let a of e){if(a.type!=="tapText"){s.push(a);continue}let p=await l(this,{mode:"text",value:a.text});if(!p)throw new d(`perform tapText: no node with text ${JSON.stringify(a.text)}`);s.push({type:"tap",x:p.x,y:p.y,target:{testID:p.testID??void 0,text:p.text??void 0,type:p.type??void 0}})}let r=t?.timeoutMs??3e4,n=await this.send({type:"perform",steps:s,...t?{performOptions:t}:{}},{timeoutMs:r+5e3});if(!n?.ok)throw new g(n);return n}state(e){return this.send({type:"state",...e?{stateOptions:e}:{}})}async reset(e){let t=await this.send({type:"reset",...e?{resetOptions:e}:{}},{timeoutMs:6e4});if(!t?.ok)throw new x(t);return t}throwUnlessTapped(e,t){if(!e.failure&&h(e.result))return;let s=e.failure==="not-found"?"no matching node":e.failure==="missed"?e.result?.reason??"press missed":e.payload?.ambiguous?`ambiguous: ${e.payload.total} matches`:e.result?.reason??e.payload?.error??"tap failed";throw new d(`tap ${JSON.stringify(t)} failed: ${s}`,e)}coordsForTapTarget(e){if(typeof e=="object"&&"x"in e&&"y"in e&&typeof e.x=="number"&&typeof e.y=="number")return{x:e.x,y:e.y};if(typeof e=="object"&&"absolutePosition"in e&&e.absolutePosition&&e.layout)return{x:e.absolutePosition.x+(e.layout.width??0)/2,y:e.absolutePosition.y+(e.layout.height??0)/2};throw new o("tap target needs coordinates, a testId, text, or a node from find()")}async resolveCoords(e){if(typeof e=="string"){let t=await l(this,{mode:"testid",value:e})??await l(this,{mode:"text",value:e});if(!t)throw new d(`no node matching ${JSON.stringify(e)}`);return t}if("testId"in e&&typeof e.testId=="string"){let t=await l(this,{mode:"testid",value:e.testId});if(!t)throw new d(`no node with testID ${JSON.stringify(e.testId)}`);return t}if("text"in e&&typeof e.text=="string"&&!("layout"in e)){let t=await l(this,{mode:"text",value:e.text});if(!t)throw new d(`no node with text ${JSON.stringify(e.text)}`);return t}return this.coordsForTapTarget(e)}async requireVisibleKeyboard(e){let t=Date.now()+1500;for(;;){let s=await y(this);if(!("error"in s)&&s.visible)return;if(Date.now()>=t)throw new b(`${e} requires the iOS keyboard to be visible \u2014 focus an input first (tap a TextInput)`);await U(150)}}};export{o as a,m as b,w as c,d,b as e,g as f,x as g,K as h,k as i};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 $}from"./chunk-
|
|
4
|
+
import{b as $}from"./chunk-MCO7V4VN.js";import{q as x}from"./chunk-T2MGLXY5.js";import{b as y,c as R,d as f,e as w,f as a}from"./chunk-3S2J6IVC.js";import{L as g,M as u,N as d,T as h,l as p}from"./chunk-E6XYIIJK.js";import O from"fs";import{WebSocket as E}from"ws";function C(t){if(!t||typeof t!="object")return!1;let e=Reflect.get(t,"sections");return typeof Reflect.get(t,"title")=="string"&&Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof Reflect.get(o,"title")=="string"&&Array.isArray(Reflect.get(o,"items"))&&Reflect.get(o,"items").every(n=>n&&typeof n=="object"&&typeof Reflect.get(n,"summary")=="string"&&typeof Reflect.get(n,"hash")=="string"))}async function b(t,e=fetch){try{let o=new URL(w);o.searchParams.set("version",t);let n=await e(o,{headers:{accept:"application/json"},signal:AbortSignal.timeout(5e3)});if(!n.ok)return null;let s=await n.json();if(!s||typeof s!="object")return null;let i=Reflect.get(s,"entries");return!Array.isArray(i)||!C(i[0])?null:i[0]}catch{return null}}function A(t,e){let o=[`what's new in rnx engine v${t}:`];if(!e||e.sections.length===0)o.push(" release notes are not available yet");else for(let n of e.sections){o.push(` ${n.title}:`);for(let s of n.items)o.push(` \u2022 ${s.summary}`)}return o.push(` full changelog: ${f}`),o.join(`
|
|
5
5
|
`)}async function Q(t,e={}){let[o,...n]=t;if(!o||o==="--help"||o==="-h"){S();return}switch(o){case"install":return L(n,e);case"list":return j(n);case"use":return T(n);case"remove":return D(n);case"which":return G();case"notes":return U(n);default:console.error(` unknown runtime subcommand: ${o}`),S(),process.exit(1)}}function S(){console.log(`
|
|
6
6
|
rnx runtime \u2014 manage engine runtimes under ~/.sootsim/runtimes/
|
|
7
7
|
|
|
@@ -27,4 +27,4 @@ examples:
|
|
|
27
27
|
rnx runtime install --channel beta
|
|
28
28
|
rnx runtime use 1.2.3
|
|
29
29
|
rnx runtime notes
|
|
30
|
-
`)}async function L(t,e){let{version:o,flags:n}=F(t),s=n.channel??e.channel??"stable",i=n.force===!0,l=n.setActive!==!1;g(),console.log("rnx runtime install"),console.log(` cdn: ${a.resolveCdnOrigin()}`);try{let r=await a.install({version:o,channel:s,force:i,setActive:l,protectVersions:h()});return console.log(` version: ${r.version} (channel: ${r.channel})`),r.installed?console.log(` installed ${r.version}`):console.log(` already installed at ${r.runtimeDir}`),l&&await k(r.version),r}catch(r){console.error(` ${I(r)}`),process.exit(1)}}async function k(t){d(t),console.log(` active: ${t}`),await _(t)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${t})`)}async function _(t){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-
|
|
30
|
+
`)}async function L(t,e){let{version:o,flags:n}=F(t),s=n.channel??e.channel??"stable",i=n.force===!0,l=n.setActive!==!1;g(),console.log("rnx runtime install"),console.log(` cdn: ${a.resolveCdnOrigin()}`);try{let r=await a.install({version:o,channel:s,force:i,setActive:l,protectVersions:h()});return console.log(` version: ${r.version} (channel: ${r.channel})`),r.installed?console.log(` installed ${r.version}`):console.log(` already installed at ${r.runtimeDir}`),l&&await k(r.version),r}catch(r){console.error(` ${I(r)}`),process.exit(1)}}async function k(t){d(t),console.log(` active: ${t}`),await _(t)||console.log(` (no daemon running \u2014 next sootsim/electron launch will pick up ${t})`)}async function _(t){let{isDaemonLockfileFresh:e,readDaemonLockfile:o}=await import("./home-paths-QJNOHZJO.js"),n=o();if(!e(n))return!1;let s=x();return new Promise(i=>{let l=!1,r=!1,m=N=>{l||(l=!0,i(N))},c=new E(`ws://127.0.0.1:${s}`,{handshakeTimeout:800}),v=setTimeout(()=>{try{c.close()}catch{}m(r)},1500);c.on("open",()=>{try{c.send(JSON.stringify({type:"runtime:use",version:t,id:0})),r=!0}catch{}setTimeout(()=>{try{c.close()}catch{}},100)}),c.on("close",()=>{clearTimeout(v),m(r)}),c.on("error",()=>{clearTimeout(v),m(!1)})})}async function j(t){g();let e=a.listInstalled(),o=u();if(console.log("installed:"),e.length===0)console.log(" (none)");else for(let n of e)console.log(` ${n===o?"*":" "} ${n}`);try{let n=await a.fetchManifest();console.log("available (latest per channel):");for(let[i,l]of Object.entries(n.channels))console.log(` ${i.padEnd(8)} ${l.latest}`);let s=Object.keys(n.versions).sort(y).reverse();if(s.length>1){console.log("hosted versions:");for(let i of s)console.log(` ${i}`)}}catch(n){console.log(`available: (could not fetch manifest: ${I(n)})`)}}async function T(t){let e=t[0];e||(console.error(" usage: rnx runtime use <version>"),process.exit(1));let o=a.listInstalled();o.includes(e)||(console.error(` version ${e} is not installed`),console.error(` installed: ${o.join(", ")||"(none)"}`),console.error(` run \`rnx runtime install ${e}\` first`),process.exit(1)),await k(e)}async function D(t){let e=t[0];e||(console.error(" usage: rnx runtime remove <version>"),process.exit(1)),u()===e&&(console.error(` cannot remove active runtime ${e}`),console.error(" switch with `rnx runtime use <other>` first, or install another version"),process.exit(1)),h().includes(e)&&(console.error(` cannot remove runtime ${e} while a project is using it`),process.exit(1));let n=p(e);if(!O.existsSync(n)){console.error(` ${e} is not installed`);return}O.rmSync(n,{recursive:!0,force:!0}),console.log(` removed ${e}`)}async function G(){let t=u();if(!t){console.log(" no active runtime");return}console.log(t)}async function U(t){t.length>0&&(console.error(" usage: rnx runtime notes"),process.exit(1));let{config:e}=await $(),o=e?.runtimeVersion??u();if(!o){console.log(" no active runtime"),console.log(` release notes: ${f}`);return}console.log(A(o,await b(o)))}function F(t){let e={},o=[];for(let n=0;n<t.length;n++){let s=t[n];if(s==="--channel"&&n+1<t.length){e.channel=t[n+1],n++;continue}if(s.startsWith("--channel=")){e.channel=s.slice(10);continue}if(s==="--force"){e.force=!0;continue}if(s==="--set-active=false"||s==="--no-set-active"){e.setActive=!1;continue}o.push(s)}return{version:o[0]??null,flags:e}}function I(t){return t instanceof Error?t.message:String(t)}export{b as a,A as b,Q as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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
4
|
import{existsSync as s}from"node:fs";import{basename as a,dirname as p,join as l}from"node:path";import{fileURLToPath as m,pathToFileURL as c}from"node:url";var u="packages/sootsim/scripts/demo-app-registry.ts",f=8;function A(o){let r=o;for(let e=0;e<f;e++){if(a(r)==="node_modules")return null;let n=l(r,u);if(s(n))return n;let i=p(r);if(i===r)return null;r=i}return null}var t=null;async function S(){if(t)return t;let o=A(p(m(import.meta.url)));if(!o)return t=[],t;try{let r=await import(c(o).href);t=Array.isArray(r.APPS)?r.APPS:[]}catch{t=[]}return t}function D(){return t??[]}function O(o){let r=t;return t=o,{restore:()=>{t=r}}}export{A as a,S as b,D as c,O as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 P,m,n as S,o as R,p as _,q as v}from"./chunk-
|
|
4
|
+
import{d as P,m,n as S,o as R,p as _,q as v}from"./chunk-EHA65UVJ.js";var k="sootsim:settings",d=["productAnalytics","crashReports","colorScheme","reduceMotion","boldText","fontSize","largerAccessibilitySizes","a11yMode","a11yDepth","screenshotCanvas","screenshotBackground","screenshotText","screenshotPose","screenshotDynamicSize","alwaysShowLiveWebViews","showFrame","showMenuBar","showRail","solidWindow","ambientGlow","agentProvider"];function p(){if(typeof window>"u")return null;let e=window.sootsimElectron;return e&&typeof e=="object"?e:null}function l(e){let t={};for(let n of d){if(!(n in e))continue;let o=e[n],i=S[n];i.validate&&!i.validate(o)||i.options&&!i.options.includes(o)||(t[n]=o)}return t}function K(e){let t={};for(let n of d)t[n]=e[n];return t}function M(){if(typeof localStorage>"u")return{};try{let e=localStorage.getItem(k);return e?l(JSON.parse(e)):{}}catch{return{}}}function T(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(k,JSON.stringify(e))}catch{}}function x(){let t=p()?.sharedConfig?.settings;return!t||typeof t!="object"?{}:l(t)}function A(e){let t=p();if(t?.writeSharedConfig)try{t.writeSharedConfig({settings:e})}catch{}}async function L(e){let t=p();return t?.writeSharedConfig?(await t.writeSharedConfig({settings:e}),!0):!1}function b(){if(typeof window>"u")return null;let e=window.__sootsimSharedConfig;return e&&typeof e=="object"?e:null}function O(){let e=b()?.settings;return!e||typeof e!="object"?{}:l(e)}function B(e){if(!b())return;let t={settings:e};try{if(globalThis.__sootsimBridgeRequest?.writeSharedConfig?.(t))return}catch{}if(!(typeof fetch>"u"))try{fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0}).catch(()=>{})}catch{}}async function F(e){if(!b()||typeof fetch>"u")return!1;let t=await fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({settings:e}),keepalive:!0});if(!t.ok)throw new Error(`shared settings reset failed with HTTP ${t.status}`);return await t.text(),!0}function D(){let e=M(),t=O(),n=x();return{...e,...t,...n}}function V(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),A(n),B(n)}async function I(e,t={}){let n=K(e);for(let o of d)t[o]!==void 0&&(n[o]=t[o]);T(n),!await L(n)&&await F(n)}function j(e){if(typeof window>"u")return()=>{};let t=r=>{if(!(r.key!==k||r.newValue==null))try{e(l(JSON.parse(r.newValue)))}catch{}};window.addEventListener("storage",t);let n=p(),o;n?.onSharedConfigChanged&&(o=n.onSharedConfigChanged(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))}));let a=globalThis.__sootsimBridgeRequest?.subscribeSharedConfig?.(r=>{let f=r?.settings;!f||typeof f!="object"||e(l(f))});return()=>{window.removeEventListener("storage",t),o?.(),a?.()}}var N=_(),q=v(),y=D(),c=new Set,g={};for(let e of d)N[e]!==void 0&&(c.add(e),y[e]!==void 0&&(g[e]=y[e]),delete y[e]);var s={...q,...y},w=[],u=null;function h(){for(let e of w)e()}function E(){h(),V(s,g)}function C(e,t){let n=S[e];return n.validate&&!n.validate(t)||n.options&&!n.options.includes(t)||s[e]===t?!1:(s={...s,[e]:t},e==="deviceModel"&&(u=null),!0)}j(e=>{let t={...s},n=!1;for(let[o,i]of Object.entries(e)){let a=o;if(c.has(a)){g[a]=i;continue}t[a]!==i&&(t[a]=i,n=!0)}n&&(s=t,u=null,h())});var z={get(e){return s[e]},set(e,t){C(e,t)&&E()},setRuntime(e,t){c.has(e)||(c.add(e),d.includes(e)&&(g[e]=s[e])),C(e,t)&&h()},isRuntimeControlled(e){return c.has(e)},getAll(){return s},apply(e){let t=!1,n={...s};for(let[o,i]of Object.entries(e)){if(i===void 0)continue;let a=o,r=S[a];r&&(r.validate&&!r.validate(i)||r.options&&!r.options.includes(i)||n[a]!==i&&(n[a]=i,t=!0))}t&&(s=n,u=null,E())},applyRuntime(e){let t=!1;for(let n of Object.keys(e)){let o=e[n];o!==void 0&&(c.has(n)||(c.add(n),d.includes(n)&&(g[n]=s[n])),C(n,o)&&(t=!0))}t&&h()},reset(){s=v(),u=null,E()},async resetDeviceContent(){let e=m.filter(n=>!c.has(n)).map(n=>[n,R[n]]),t=e.some(([n,o])=>s[n]!==o);s={...s,...Object.fromEntries(e)};for(let n of m)c.has(n)&&(g[n]=R[n]);t&&h(),await I(s,g)},subscribe(e){return w.push(e),()=>{w=w.filter(t=>t!==e)}},getDeviceSpec(){return u||(u=P(s.deviceModel)),u},getA11yMode(){return s.a11yMode},setA11yMode(e){this.set("a11yMode",e)},getInspectMode(){return s.inspectMode},setInspectMode(e){this.set("inspectMode",e)}};export{z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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
4
|
function t(_){return`(async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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
4
|
var n=Object.freeze({name:"rnx",packageName:"rnxsim",commandName:"rnx",domain:"rnxsim.com",origin:"https://rnxsim.com"});export{n as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{n}from"./chunk-
|
|
4
|
+
import{n}from"./chunk-T2MGLXY5.js";import{M as t,j as r}from"./chunk-E6XYIIJK.js";function l(){let e=t(),i=r()?n():null;return i?.source==="dev-bridge"?{primary:`engine dev source (:${i.bridgePort})`,installedRuntime:e?`installed runtime v${e}`:null,isDevBridge:!0}:{primary:e?`runtime v${e}`:"runtime not installed",installedRuntime:null,isDevBridge:!1}}export{l as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{t as j,v as A,y as K,z as v}from"./chunk-
|
|
4
|
+
import{t as j,v as A,y as K,z as v}from"./chunk-T2MGLXY5.js";import{createHash as Y}from"node:crypto";import{mkdirSync as L,readFileSync as W,readdirSync as Q,unlinkSync as X,writeFileSync as D}from"node:fs";import{dirname as q,extname as Z,resolve as B}from"node:path";function H(t){let e=t[0]?.toLowerCase()??"toggle";return e!=="on"&&e!=="off"&&e!=="toggle"&&(console.error(` unknown argument: "${e}" (expected on | off | toggle)`),process.exit(1)),e}async function U(t,e,n){let o=j(t,{port:e.port}),i=H(o.positional),u=A({...o,commandTimeoutMs:5e3});try{let a=!!(await K(u,"SootSim.bridges.settings.get"))?.[n.modeKey],m=i==="on"?!0:i==="off"?!1:!a;if(a===m)return console.log(` ${n.displayName}: already ${m?"on":"off"}`),{current:a,target:m,changed:!1};if(!await u.send({type:"evaluate",acquireLock:!0,code:`(async () => {
|
|
5
5
|
const modeKey = ${JSON.stringify(n.modeKey)}
|
|
6
6
|
const target = ${JSON.stringify(m)}
|
|
7
7
|
window.dispatchEvent(new CustomEvent('sootsim:shell-command', {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 as V}from"./chunk-
|
|
4
|
+
import{c as V}from"./chunk-BWJOLJOK.js";import{P as j,R as M,g as F,j as I,s as U,t as D,u as O}from"./chunk-E6XYIIJK.js";import{a as H}from"./chunk-ECXDCED5.js";import{a as k}from"./chunk-WVVAYLWZ.js";import{execFileSync as J,spawnSync as c}from"child_process";import{existsSync as s,mkdirSync as P,readFileSync as ae,realpathSync as le,rmSync as h,writeFileSync as X}from"fs";import{homedir as v}from"os";import{basename as ue,dirname as C,resolve as u,sep as Q}from"path";import{execFileSync as te}from"child_process";import{chmodSync as re,mkdirSync as A,rmSync as oe,writeFileSync as T}from"fs";import{dirname as _}from"path";var ne="dev.sootsim.daemon",Y="SootSim Daemon",G="0.1.36";function q(e,t,r){let n=D(),o=O(),a=_(_(o)),l=_(o),d=`${a}/Resources`;oe(n,{recursive:!0,force:!0}),A(U(),{recursive:!0}),A(l,{recursive:!0}),A(d,{recursive:!0}),T(`${a}/Info.plist`,se()),T(`${a}/PkgInfo`,"APPL????"),T(o,ie(e,t,r)),re(o,493);try{te("codesign",["--force","--sign","-","--deep",n],{stdio:"pipe"})}catch(i){let f=i instanceof Error?i.message:String(i);console.warn(` warning: ad-hoc codesign of ${n} failed: ${f}
|
|
5
5
|
the daemon will still run, but Login Items may show a generic name.`)}return{bundlePath:n,launcherPath:o}}function se(){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
6
6
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
7
7
|
<plist version="1.0">
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 q,b as G,c as Ne}from"./chunk-
|
|
4
|
+
import{a as q,b as G,c as Ne}from"./chunk-SHMLYTNH.js";import{c as _e,d as $e}from"./chunk-GXHCJRKE.js";import{p as Pe}from"./chunk-7B22IPSC.js";import{t as Ae,v as Ue,x}from"./chunk-T2MGLXY5.js";import{a as Ie}from"./chunk-WVVAYLWZ.js";import{createHash as wt}from"crypto";import{readFileSync as b}from"fs";import De from"path";import{gzipSync as me,gunzipSync as Mt}from"zlib";function Fe(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}import{brotliCompressSync as it,constants as at}from"node:zlib";var lt=9;function Le(e){return it(e,{params:{[at.BROTLI_PARAM_QUALITY]:lt}})}var le={initMs:3e4,putMs:12e4,finalizeMs:18e4};function ue(e,t){let r=new AbortController,s=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(s)}}async function ut(e){let t=ue(le.putMs,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let s=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${s.slice(0,200)}`)}}async function ct(e,t=8,r){let s=0,o=0,i=e.length;await Promise.all(Array.from({length:Math.min(t,i)},async()=>{for(;s<i;){let l=e[s++];await ut(l),o++,r?.(o,i)}}))}function dt(e,t,r,s){let o=[];o.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let i of e.files){let l=r.get(i.urlhash);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}e.events&&s?.eventsBytes&&o.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.timeline&&s?.timelineBytes&&o.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:s.timelineBytes}),e.flowVideo&&s?.videoBytes&&o.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&o.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes}),e.failureBundle&&s?.failureBundleBytes&&o.push({url:e.failureBundle.putUrl,contentType:e.failureBundle.contentType,bytes:s.failureBundleBytes});for(let i of e.snapshots??[]){let l=s?.snapshotBytes?.get(i.id);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}return o}function pt(e){return e.replace(/\/+$/,"")}var J=class extends Error{constructor(r,s,o,i=""){super(r);this.status=s;this.phase=o;this.responseText=i;this.name="PresignedUploadError"}};async function Ce(e){let t=pt(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-contrast-admin-upload-bypass"]=e.adminBypassToken);let s=ue(le.initMs,"init"),o;try{o=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!o.ok){let w=await o.text().catch(()=>"");throw new J(`init failed: ${o.status} ${w.slice(0,200)}`,o.status,"init",w)}let i=await o.json(),l=dt(i,e.bundleBytes,e.filesByHash,e.extras);await ct(l,e.concurrency??8,e.onPutProgress);let f=ue(le.finalizeMs,"finalize"),c;try{c=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:i.token}),signal:f.signal})}finally{f.cancel()}if(!c.ok){let w=await c.text().catch(()=>"");throw new J(`finalize failed: ${c.status} ${w.slice(0,200)}`,c.status,"finalize",w)}let h=await c.json();return{init:i,finalize:h}}function ft(e){return e!==null&&typeof e=="object"?e:null}function Oe(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ce(e){let t=ft(e);return t?t.schemaVersion===1&&Oe(t.t)!==void 0&&Oe(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function mt(e,t){let r=[];for(let s of e.split(`
|
|
5
5
|
`)){let o=s.trim();if(o)try{let i=JSON.parse(o);t(i)&&r.push(i)}catch{}}return r}function ze(e){return mt(e,ce)}import{execSync as gt}from"child_process";function pe(e){try{return gt(e,{stdio:["ignore","pipe","ignore"],timeout:3e3,encoding:"utf8"}).trim()||null}catch{return null}}function de(e){let t=e?.trim();return!t||!/^\d+$/.test(t)?null:Number(t)}function ht(){let e=pe("git remote get-url origin");if(!e)return null;let t=e.match(/github\.com[/:]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i);return t?{owner:t[1],repo:t[2]}:null}function fe(){let e=process.env.GITHUB_ACTIONS==="true",t=process.env.CONTRAST_BRANCH?.trim()||null,r=process.env.CONTRAST_SHA?.trim()||null,s=process.env.CONTRAST_PR_TITLE?.trim()||null,o=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim(),[i,l]=o.includes("/")?o.split("/",2):[null,null];if(e){let h=process.env.GITHUB_REF?.match(/^refs\/pull\/(\d+)\//)?.[1];return{owner:i,repo:l,branch:t||process.env.GITHUB_HEAD_REF?.trim()||process.env.GITHUB_REF_NAME?.trim()||null,commitSha:r||process.env.GITHUB_SHA?.trim()||null,githubUsername:process.env.GITHUB_ACTOR?.trim()||null,pullRequestNumber:de(process.env.CONTRAST_PR_NUMBER)??de(h),pullRequestTitle:s,githubRunId:process.env.GITHUB_RUN_ID?.trim()||null,source:"ci"}}let f=t??pe("git rev-parse --abbrev-ref HEAD"),c=i?null:ht();return{owner:i??c?.owner??null,repo:l??c?.repo??null,branch:f==="HEAD"?null:f,commitSha:r??pe("git rev-parse HEAD"),githubUsername:null,pullRequestNumber:de(process.env.CONTRAST_PR_NUMBER),pullRequestTitle:s,githubRunId:null,source:"cli"}}function Jt(e){if(e.length===0)return{stepCount:null,failedStepIndex:null};let t=e.find(r=>r.status==="failure");return{stepCount:e.length,failedStepIndex:t?t.stepIndex:null}}function Kt(e){return e.auth?e.uploadedShare?!0:e.auth.kind==="github"||process.env.GITHUB_ACTIONS==="true":!1}async function Vt(e){let t=e.auth??q();if(!t)return null;let r=fe(),s=e.owner??(t.kind==="github"?t.owner:null)??r.owner,o=e.repo??(t.kind==="github"?t.repo:null)??r.repo;try{let i=await fetch(`${e.origin.replace(/\/$/,"")}/api/sootsim/test-runs`,{method:"POST",headers:{"content-type":"application/json",authorization:G(t)},body:JSON.stringify({kind:e.kind,source:r.source,name:e.name??void 0,prompt:e.prompt??void 0,summary:e.summary??void 0,status:e.status,failureMessage:e.failureMessage??void 0,previewShareId:e.previewShareId??void 0,owner:s??void 0,repo:o??void 0,branch:r.branch??void 0,commitSha:r.commitSha??void 0,githubUsername:r.githubUsername??void 0,pullRequestNumber:r.pullRequestNumber??void 0,githubRunId:r.githubRunId??void 0,stepCount:e.stepCount??void 0,failedStepIndex:e.failedStepIndex??void 0,durationMs:e.durationMs??void 0,flowYamlSizeBytes:e.flowYamlSizeBytes??void 0})});if(!i.ok){let f=await i.text().catch(()=>"");return console.warn(` warn: run registration failed: /api/sootsim/test-runs ${i.status}${f?`: ${f.slice(0,200)}`:""}`),null}let l=await i.json();return l.run?.id?{id:l.run.id,previewUrl:l.run.previewUrl??null,traceUrl:l.run.traceUrl??null}:(console.warn(" warn: run registration returned no id"),null)}catch(i){return console.warn(` warn: run registration failed: ${i instanceof Error?i.message:String(i)}`),null}}function Tt(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}function St(e){let t=JSON.parse(b(e,"utf8"));if(!Array.isArray(t))throw new Error("snapshot manifest must be an array");let r=new Set;return t.map((s,o)=>{if(s===null||typeof s!="object")throw new Error(`snapshot manifest entry ${o} must be an object`);let i=Reflect.get(s,"id"),l=Reflect.get(s,"label"),f=Reflect.get(s,"path"),c=Reflect.get(s,"t");if(typeof i!="string"||!i||r.has(i))throw new Error(`snapshot manifest entry ${o} has an invalid or duplicate id`);if(typeof f!="string"||!f)throw new Error(`snapshot manifest entry ${o} has no PNG path`);if(typeof c!="number"||!Number.isFinite(c)||c<0)throw new Error(`snapshot manifest entry ${o} has an invalid capture time`);r.add(i);let h=b(f);return{meta:{id:i,label:typeof l=="string"&&l?l:i,kind:"interaction",t:Math.round(c),contentType:"image/png",sizeBytes:h.byteLength},bytes:h}})}var Je=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://contrast.dev",Ke=process.env.SOOTSIM_PREVIEW_ORIGIN||Ie.origin;async function vt(e){return e||(process.env.SOOTSIM_UPLOAD_ORIGIN?process.env.SOOTSIM_UPLOAD_ORIGIN:Je)}function $(e){return e.replace(/\/$/,"")}function xt(e){try{let r=new URL(e).hostname.replace(/^\[|\]$/g,"").toLowerCase();return r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r)}catch{return!1}}function Rt(e){try{let t=new URL(e).hostname.toLowerCase();return t==="contrast.dev"||t.endsWith(".contrast.dev")}catch{return!1}}function kt(e,t){return t?$(t):process.env.SOOTSIM_PREVIEW_ORIGIN?$(process.env.SOOTSIM_PREVIEW_ORIGIN):xt(e)?$(e):Rt(e)?$(Ke):$(e)}function Bt(){console.log(`
|
|
6
6
|
rnx record upload \u2014 publish the current recorded bundle as a /preview/<id> link
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 r,c as g,d as f,e as v}from"./chunk-
|
|
4
|
+
import{b as r,c as g,d as f,e as v}from"./chunk-NPSPWMBO.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";var $={"browser-cache":"browser caches","camera-fixture":"staged camera fixture videos",recording:"recordings and captured frames","runtime-archive":"downloaded runtime archives","runtime-version":"inactive runtime versions"};function y(s){let i=new Map;for(let o of s){let n=i.get(o.kind)??{bytes:0,count:0};n.bytes+=o.bytes,n.count++,i.set(o.kind,n)}return[...i].sort((o,n)=>n[1].bytes-o[1].bytes).map(([o,n])=>` ${$[o]}: ${r(n.bytes)} (${n.count} ${n.count===1?"item":"items"})`)}function h(){console.log(`
|
|
5
5
|
rnx cleanup \u2014 inspect and reclaim local rnx disk usage
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a}from"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as getCliVersion};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 a,g as i,i as d,j as r}from"./chunk-
|
|
4
|
+
import{d as a,g as i,i as d,j as r}from"./chunk-MGOAQHMO.js";import"./chunk-Q65KH25G.js";import{existsSync as m,readFileSync as k}from"node:fs";import{resolve as f}from"node:path";async function P(e){if(e.includes("--help")||e.includes("-h")){console.log(`
|
|
5
5
|
rnx compat \u2014 check package compatibility
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{F as t,G as r,z as s}from"./chunk-
|
|
4
|
+
import{F as t,G as r,z as s}from"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";function l(){let e=t(),n=e.configured&&e.productAnalytics;console.log(` bounded diagnostics are ${n?"ON":"OFF"}`),console.log(" permitted fields: package name/version/unsupported API or error class"),console.log(` config: ${s()}`);let o=process.env.DO_NOT_TRACK;(o==="1"||o==="true")&&console.log(` note: DO_NOT_TRACK=${o} is set \u2014 telemetry is off for this run`)}async function i(e){let n=e.find(o=>!o.startsWith("-"))?.toLowerCase();switch(n){case void 0:case"status":l();return;case"on":r({productAnalytics:!0,crashReports:!1}),console.log(" bounded diagnostics ON"),console.log(` config: ${s()}`);return;case"off":r({productAnalytics:!1,crashReports:!1}),console.log(" bounded diagnostics OFF"),console.log(` config: ${s()}`);return;default:console.error(` unknown telemetry action: ${n}`),console.error(" usage: rnx config telemetry [on|off|status]"),process.exit(1)}}function c(){console.log(`
|
|
5
5
|
rnx config \u2014 manage local CLI preferences
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 s,i as p}from"./chunk-
|
|
4
|
+
import{b as s,i as p}from"./chunk-UBH2BWCY.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import{g as f,n as a,u as d}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";function g(c,i,o){let e=c.filter(n=>n.readyState==="open");if(i){let n=e.find(r=>r.id===i);if(!n)throw new s(`no sim connected with id ${i} on bridge :${o}`+(e.length?` \u2014 connected: ${e.map(r=>r.id).join(", ")}`:" \u2014 no sims connected; open one with `rnx open <port>`"));return n}let t=f();if(t){let n=e.find(r=>r.id===t);if(n)return n}let m=e.find(n=>n.isPrimary)??e[0];if(!m)throw new s(`no sims connected on bridge :${o} \u2014 open one with \`rnx open <port>\``);return m}async function S(c={}){let i=c.port??a().bridgePort,o=c.timeoutMs??15e3,e=d(i,{commandTimeoutMs:o,cliLabel:"sdk"}),t;try{t=g(await e.listSims(),c.sim,i)}catch(n){if(e.close(),n instanceof s)throw n;let r=n instanceof Error?n.message:String(n);throw new s(`${r} \u2014 is the rnx daemon or dev shell running?`)}e.close();let m=d(i,{commandTimeoutMs:o,cliLabel:"sdk",simId:t.id,simIdSource:"flag"});return new p(m,t.id,{commandTimeoutMs:o})}export{S as connect};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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,k,l,m,n,o,p,q,r,s,t,u,v,w}from"./chunk-
|
|
4
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{d as applyRuntimeGenerationOrigin,h as buildOpenUrl,g as buildShellUrl,u as closeSimsBulk,b as ensureBridgeForOpen,v as planBulkCloseTargets,m as playwrightHostPidForSim,j as printConnectedSims,c as resolveBundleTarget,e as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,f as resolveShellBaseUrlForBridgePort,t as runClaimCommand,w as runCloseCommand,s as runFocusCommand,p as runLinkCommand,q as runOpenCommand,r as runUseCommand,n as signalDriverLaunchConnected,i as summarizeSimUrl,o as terminatePlaywrightHostsForSims,k as waitForSimMatch,l as waitForSimMatchOrHostExit};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a,b,c,d,e,f}from"./chunk-YSHJ3LMQ.js";import"./chunk-BWJOLJOK.js";import"./chunk-WXRDFUR7.js";import"./chunk-FSPZY4AI.js";import"./chunk-4VA2ISWX.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-SSUPPM6K.js";import"./chunk-E6XYIIJK.js";import"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,e as teardownDaemonService,d as teardownLegacyMacDaemonArtifacts,f as teardownSootsimHome};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{f as b,m as C}from"./chunk-
|
|
4
|
+
import{f as b,m as C}from"./chunk-RRALQ4WM.js";import{I as N,J as D,K as O,L as T,M as k}from"./chunk-M7COA4BE.js";import{t as A,v as _,x as S}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";var B=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],F="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function R(){console.log(`
|
|
5
5
|
rnx debug \u2014 drive __sootsimDebug from the terminal
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -181,7 +181,7 @@ examples:
|
|
|
181
181
|
} : null,
|
|
182
182
|
samples,
|
|
183
183
|
}
|
|
184
|
-
})()`}async function u(t,a){return S(t,a)}function z(t,a){let d=t.indexOf(a);if(d<0)return null;let m=Number(t[d+1]);return Number.isFinite(m)?m:null}async function J(t){await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'enable').then(() => 'enabled')"),await t.send({type:"screenshot"});let d=(await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'disable').then((s) => ({ imageAudit: s.imageAudit }))"))?.imageAudit;if(!d)throw new Error("compositor returned no image audit");return d}function E(t){return t===null?" - ":t.toFixed(3).padStart(6)}function V(t){let a=t.sourceUri??t.testID??`node ${t.nodeId}`;return a.length<=58?a:`...${a.slice(-55)}`}function W(t,a,d){let f=t.rows.filter(c=>c.shortfall!==null).filter(c=>c.shortfall<d);if(console.log(` ${t.rows.length} images drawn (${t.draws} draws), ${f.length} below ${d} of what their source could deliver`),console.log(` sampling: mipmapped ${t.samplingCounts.mipmapped} \xB7 cubic ${t.samplingCounts.cubic} \xB7 repeat ${t.samplingCounts.repeat} \xB7 none ${t.samplingCounts.none}`),a.length===0){console.log(" every image delivered its source resolution");return}console.log(""),console.log(" short eff decoded source needed(dev) dest(pt) dpr image");for(let c of a){let x=`${c.decoded.width}x${c.decoded.height}`.padEnd(11),r=(c.vector?"vector":c.intrinsic?`${c.intrinsic.width}x${c.intrinsic.height}`:"?").padEnd(11),w=`${Math.round(c.needed.width)}x${Math.round(c.needed.height)}`.padEnd(12),y=`${Math.round(c.destination.width)}x${Math.round(c.destination.height)}`.padEnd(9);console.log(` ${E(c.shortfall)} ${E(c.effective.width)} ${x} ${r} ${w} ${y} ${c.dpr.toFixed(1)} ${V(c)}`)}}async function X(t,a){let d=A(t,{port:a.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),m=d.positional;(!m[0]||t.includes("--help")||t.includes("-h"))&&(R(),process.exit(0));let c=d.wsPort,x=d.simId,r=!t.includes("--json"),w=x?` --sim ${x}`:"",y=m[0],l=m.slice(1);if(new Set(["state","js","perf","memory","sample-color"]).has(y)){let{runInspect:e}=await import("./inspect-
|
|
184
|
+
})()`}async function u(t,a){return S(t,a)}function z(t,a){let d=t.indexOf(a);if(d<0)return null;let m=Number(t[d+1]);return Number.isFinite(m)?m:null}async function J(t){await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'enable').then(() => 'enabled')"),await t.send({type:"screenshot"});let d=(await u(t,"window.__sootsimCompositor.getStats(false, false, undefined, 'disable').then((s) => ({ imageAudit: s.imageAudit }))"))?.imageAudit;if(!d)throw new Error("compositor returned no image audit");return d}function E(t){return t===null?" - ":t.toFixed(3).padStart(6)}function V(t){let a=t.sourceUri??t.testID??`node ${t.nodeId}`;return a.length<=58?a:`...${a.slice(-55)}`}function W(t,a,d){let f=t.rows.filter(c=>c.shortfall!==null).filter(c=>c.shortfall<d);if(console.log(` ${t.rows.length} images drawn (${t.draws} draws), ${f.length} below ${d} of what their source could deliver`),console.log(` sampling: mipmapped ${t.samplingCounts.mipmapped} \xB7 cubic ${t.samplingCounts.cubic} \xB7 repeat ${t.samplingCounts.repeat} \xB7 none ${t.samplingCounts.none}`),a.length===0){console.log(" every image delivered its source resolution");return}console.log(""),console.log(" short eff decoded source needed(dev) dest(pt) dpr image");for(let c of a){let x=`${c.decoded.width}x${c.decoded.height}`.padEnd(11),r=(c.vector?"vector":c.intrinsic?`${c.intrinsic.width}x${c.intrinsic.height}`:"?").padEnd(11),w=`${Math.round(c.needed.width)}x${Math.round(c.needed.height)}`.padEnd(12),y=`${Math.round(c.destination.width)}x${Math.round(c.destination.height)}`.padEnd(9);console.log(` ${E(c.shortfall)} ${E(c.effective.width)} ${x} ${r} ${w} ${y} ${c.dpr.toFixed(1)} ${V(c)}`)}}async function X(t,a){let d=A(t,{port:a.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),m=d.positional;(!m[0]||t.includes("--help")||t.includes("-h"))&&(R(),process.exit(0));let c=d.wsPort,x=d.simId,r=!t.includes("--json"),w=x?` --sim ${x}`:"",y=m[0],l=m.slice(1);if(new Set(["state","js","perf","memory","sample-color"]).has(y)){let{runInspect:e}=await import("./inspect-S3LR3R2A.js");await e(["debug",...t],{port:a.port,verbose:a.verbose});return}let o=_(d);try{switch(y){case"enable":{let e=I(l[0]);e.length===0&&(console.error(` usage: rnx debug enable <channel[,channel,...]>
|
|
185
185
|
known: ${B.join(", ")}`),process.exit(1));let s=await k(o,"enable",e);console.log(i({active:s},r));break}case"disable":{let e=I(l[0]),s=await k(o,"disable",e);console.log(i({active:s},r));break}case"toggle":{let e=l[0];e||(console.error(" usage: rnx debug toggle <channel>"),process.exit(1));let s=await u(o,`window.__sootsimDebug.toggle(${JSON.stringify(e)})`);console.log(i({[e]:s},r));break}case"status":{let e=await N(o);console.log(i(e,r));break}case"channels":{let e=await u(o,"window.__sootsimDebug.channels()");console.log(i(e,r));break}case"flags":{let e=await D(o);console.log(i(e,r));break}case"snapshot":{let e=l[0],s=e?`window.__sootsimDebug.snapshot(${JSON.stringify(e)})`:"window.__sootsimDebug.snapshot()",n=await u(o,`(() => { const s = ${s}; if (!s) return null; return { label: s.label, at: s.at, size: s.nodes.size }; })()`);console.log(i(n,r));break}case"snapshots":{let e=await u(o,"window.__sootsimDebug.snapshots()");console.log(i(e,r));break}case"diff":{let e=l[0],s=l[1];(!e||!s)&&(console.error(" usage: rnx debug diff <labelA> <labelB>"),process.exit(1));let n=`(() => {
|
|
186
186
|
const d = window.__sootsimDebug.diff(${JSON.stringify(e)}, ${JSON.stringify(s)});
|
|
187
187
|
if (!d) return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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"./chunk-
|
|
4
|
+
import"./chunk-GS5VUDCF.js";import{a as f}from"./chunk-OZJMWTGA.js";import{a as d}from"./chunk-2YK5J2D2.js";import{g as u}from"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import{a}from"./chunk-QMVBWZH2.js";import{c}from"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import{a as p}from"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import{i as l}from"./chunk-TPIPKXJL.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";function k(e){let t=e.indexOf("--port");if(t<0)return;let o=e[t+1],n=o?Number(o):Number.NaN;return(!Number.isInteger(n)||n<=0)&&(console.error(` invalid --port value: ${o||"(missing)"}`),process.exit(1)),n}async function v(e,t){let o=k(e)??t.port;return o?u(String(o)):void 0}async function m(e,t){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
5
5
|
rnx desktop \u2014 launch the desktop companion
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -16,7 +16,7 @@ examples:
|
|
|
16
16
|
rnx desktop
|
|
17
17
|
rnx desktop --port 5173
|
|
18
18
|
rnx desktop --profile qa
|
|
19
|
-
`),process.exit(0));let o=e.find((g,s)=>e[s-1]==="--profile"),n=e.includes("--ephemeral");o&&n&&(console.error(" rnx desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=o?c(o).id:void 0,r=p();if(!r){if(f(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run rnx desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-
|
|
19
|
+
`),process.exit(0));let o=e.find((g,s)=>e[s-1]==="--profile"),n=e.includes("--ephemeral");o&&n&&(console.error(" rnx desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=o?c(o).id:void 0,r=p();if(!r){if(f(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run rnx desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-GXE6K7BJ.js");await s(["--yes"]),r=p()}r||process.exit(1)}console.log(` launching ${r.path}`);let x=await v(e,t),i=await a.launch({url:x,device:t.device,profileId:h,ephemeralProfile:n});i.launched||(console.error(` ${i.message}`),process.exit(1)),console.log(` ${i.message}`)}function w(){console.log(`
|
|
20
20
|
rnx desktop \u2014 launch or install the desktop companion
|
|
21
21
|
|
|
22
22
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{f as J}from"./chunk-
|
|
4
|
+
import{f as J}from"./chunk-CKNNO6ZG.js";import"./chunk-OXCDE3DD.js";import"./chunk-T4ZZ26A2.js";import"./chunk-42TLK75A.js";import"./chunk-OZJMWTGA.js";import"./chunk-WJQB6AXZ.js";import"./chunk-FDAFSRQE.js";import{c as N,d as $,e as k}from"./chunk-YYPTSF6W.js";import{a as E}from"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-FSPZY4AI.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-FVODUDPS.js";import"./chunk-DJSPNOF6.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import{a as M}from"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";import{spawn as q}from"child_process";import{existsSync as g,mkdirSync as H,readFileSync as V,writeFileSync as y,unlinkSync as A}from"fs";import{createRequire as z}from"module";import{tmpdir as U}from"os";import{dirname as K,resolve as c,join as w,relative as Q}from"path";function X(){try{let t=import.meta.resolve(`${M.packageName}/detox`);return K(t.startsWith("file://")?t.slice(7):t)}catch{return c(import.meta.dirname,"..","..","detox")}}var Y=`
|
|
5
5
|
rnx detox \u2014 run detox-style tests against an rnx shell
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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"./chunk-
|
|
4
|
+
import"./chunk-7V3S2DY2.js";import"./chunk-WFAFAGMG.js";import"./chunk-LAKWOJ5Y.js";import{b as c,d as s,e as m}from"./chunk-EHA65UVJ.js";import{t as d,v as l,y as a}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";function h(){console.log(`
|
|
5
5
|
rnx device \u2014 inspect or change the live device preset for a sim
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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{e as v,t as E,v as x,y as b}from"./chunk-
|
|
4
|
+
import{e as v,t as E,v as x,y as b}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";function j(e){return e.ts??e.t??0}function W(e){return typeof e.message=="string"&&e.message.length>0?e.message:Array.isArray(e.args)?e.args.map(r=>typeof r=="string"?r:JSON.stringify(r)).join(" "):""}var B=new Set(["timeline","network","react","console","screen"]);function P(){console.log(`
|
|
5
5
|
rnx get diagnosis \u2014 compact "what just went wrong?" report
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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}from"./chunk-
|
|
4
|
+
import{a,b,c,d,e}from"./chunk-NPSPWMBO.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{e as applyAutomaticSootsimCleanup,d as applySootsimCleanup,b as formatSootsimBytes,a as isAutomaticSootsimCleanupComplete,c as planSootsimCleanup};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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"./chunk-
|
|
4
|
+
import"./chunk-Q65KH25G.js";var p=class extends Error{constructor(s){super(s),this.name="BridgeInputError"}};var k=new Set(["tap","tap-id","tap-text","double-tap","long-press","type","type-into","key","key-sequence","dismiss","scroll","drag","swipe","pinch","touch","sleep"]);function O(a){return a.includes("--then")}function o(a,s){throw new p(`do chain action ${a+1} has invalid arguments; usage: rnx do ${s}`)}function r(a,s,l){let n=Number(a);return(a===void 0||!Number.isFinite(n))&&o(s,l),n}function D(a){let s=[[]];for(let l of a){if(l!=="--then"){s[s.length-1].push(l);continue}if(s[s.length-1].length===0)throw new p("do chain contains an empty action");s.push([])}if(s.length<2)throw new p("do chain needs at least two actions separated by --then");if(s[s.length-1].length===0)throw new p("do chain cannot end with --then");return s.flatMap((l,n)=>{let[d,...t]=l;if(!d)throw new p("do chain contains an empty action");if(!k.has(d))throw new p(`do chain action ${n+1} cannot batch ${JSON.stringify(d)}; run it as a separate rnx do command`);switch(d){case"tap":return t.length===1&&!Number.isFinite(Number(t[0]))?[{type:"tapId",id:t[0]}]:(t.length!==2&&o(n,"tap <testid> | <x> <y>"),[{type:"tap",x:r(t[0],n,"tap <testid> | <x> <y>"),y:r(t[1],n,"tap <testid> | <x> <y>")}]);case"tap-id":return t.length!==1&&o(n,"tap-id <id>"),[{type:"tapId",id:t[0]}];case"tap-text":{let e=t.join(" ");return e||o(n,"tap-text <text>"),[{type:"tapText",text:e}]}case"double-tap":{let e="double-tap <testid> [gapMs] | <x> <y> [gapMs]";return t.length>0&&!Number.isFinite(Number(t[0]))?(t.length>2&&o(n,e),[{type:"targetedDoubleTap",id:t[0],gapMs:t.length===2?Math.max(0,Math.round(r(t[1],n,e))):80}]):((t.length<2||t.length>3)&&o(n,e),[{type:"doubleTap",x:r(t[0],n,e),y:r(t[1],n,e),gapMs:t.length===3?Math.max(0,Math.round(r(t[2],n,e))):80}])}case"long-press":{let e="long-press <testid> [durationMs] | <x> <y> [durationMs]";return t.length>0&&!Number.isFinite(Number(t[0]))?(t.length>2&&o(n,e),[{type:"targetedLongPress",id:t[0],durationMs:t.length===2?Math.max(0,Math.round(r(t[1],n,e))):600}]):((t.length<2||t.length>3)&&o(n,e),[{type:"longPress",x:r(t[0],n,e),y:r(t[1],n,e),durationMs:t.length===3?Math.max(0,Math.round(r(t[2],n,e))):600}])}case"type":{let e=t.join(" ");return e||o(n,"type <text>"),[{type:"type",text:e}]}case"type-into":{let e=t.slice(1).join(" ");return(!t[0]||!e)&&o(n,"type-into <id> <text>"),[{type:"tapId",id:t[0]},{type:"type",text:e}]}case"key":return t.length!==1&&o(n,"key <name>"),[{type:"key",key:t[0]}];case"key-sequence":return t.length===0&&o(n,"key-sequence <key> [<key> ...]"),t.map(e=>({type:"key",key:e}));case"dismiss":return t.length!==0&&o(n,"dismiss"),[{type:"dismissKeyboard"}];case"scroll":{let e="scroll <id> <x> <y>";return t.length!==3&&o(n,e),[{type:"scroll",id:t[0],x:r(t[1],n,e),y:r(t[2],n,e),animated:!1}]}case"drag":case"swipe":{let e=`${d} <x1> <y1> <x2> <y2> [steps] [stepMs]`;(t.length<4||t.length>6)&&o(n,e);let i=d==="swipe"?10:12,y=d==="swipe"?8:16;return[{type:"drag",fromX:r(t[0],n,e),fromY:r(t[1],n,e),toX:r(t[2],n,e),toY:r(t[3],n,e),steps:t.length>=5?Math.max(1,Math.round(r(t[4],n,e))):i,stepMs:t.length===6?Math.max(0,Math.round(r(t[5],n,e))):y}]}case"pinch":{let e="pinch <x1> <y1> <x2> <y2> <x1'> <y1'> <x2'> <y2'> [steps] [stepMs]";return(t.length<8||t.length>10)&&o(n,e),[{type:"pinch",fromX1:r(t[0],n,e),fromY1:r(t[1],n,e),fromX2:r(t[2],n,e),fromY2:r(t[3],n,e),toX1:r(t[4],n,e),toY1:r(t[5],n,e),toX2:r(t[6],n,e),toY2:r(t[7],n,e),steps:t.length>=9?Math.max(1,Math.round(r(t[8],n,e))):12,stepMs:t.length===10?Math.max(0,Math.round(r(t[9],n,e))):16}]}case"touch":{let e="touch <down|move|up|cancel> <x> <y> [pointerId]";(t.length<3||t.length>4)&&o(n,e);let i=t[0];i!=="down"&&i!=="move"&&i!=="up"&&i!=="cancel"&&o(n,e);let y=t.length===4?Math.max(1,Math.round(r(t[3],n,e))):999;return i==="cancel"?[{type:"touchCancel",pointerId:y}]:[{type:i==="down"?"touchDown":i==="move"?"touchMove":"touchUp",x:r(t[1],n,e),y:r(t[2],n,e),pointerId:y}]}case"sleep":{let e="sleep [seconds]";t.length>1&&o(n,e);let i=t.length===1?r(t[0],n,e):.5;return i<0&&o(n,e),[{type:"wait",ms:Math.round(i*1e3)}]}default:throw new p(`do chain action ${n+1} cannot batch ${JSON.stringify(d)}`)}})}async function Y(a,s={}){let[l,n,d,t,e]=await Promise.all([import("./connect-N4FV3DDV.js"),import("./sim-client-VTKFEDJX.js"),import("./ws-bridge-JXQUAWFA.js"),import("./env-YIBOMB24.js"),import("./resolve-target-KAAS274S.js")]),{connect:i}=l,{SimPerformError:y}=n,{checkSimHealth:M,parseBridgeCliArgs:S}=d,{isAgentEnv:$}=t,{resolveTargetCoords:x}=e,b=a.includes("--json"),I=a.includes("--no-wait")||process.env.SOOTSIM_NO_AUTO_WAIT==="1",m=S(a,{port:s.port,commandTimeoutMs:3e4,stripBooleanFlags:["--json","--no-wait"]});if(!Number.isFinite(m.commandTimeoutMs)||m.commandTimeoutMs<=0)return console.error(" do chain: --timeout must be a positive number"),1;let w;try{w=D(m.positional)}catch(u){return console.error(` do chain: ${u instanceof Error?u.message:u}`),1}let h=null;try{h=await i({port:m.wsPort,sim:m.simId,timeoutMs:m.commandTimeoutMs}),await M(h);let u=[];for(let c of w){if(c.type!=="targetedDoubleTap"&&c.type!=="targetedLongPress"){u.push(c);continue}let f=await x(h,{mode:"testid",value:c.id});if(!f)throw new p(`do chain could not find testID ${JSON.stringify(c.id)}`);u.push(c.type==="targetedDoubleTap"?{type:"doubleTap",x:f.x,y:f.y,gapMs:c.gapMs}:{type:"longPress",x:f.x,y:f.y,durationMs:c.durationMs})}let g=await h.perform(u,{timeoutMs:m.commandTimeoutMs});if(!I)try{let c=$()?400:200,f=await h.settle({maxMs:c});f.settled||process.stderr.write(` \u26A0 auto-wait timed out after ${f.elapsed??c}ms. next command may see mid-animation state. use \`rnx do settle\` for a longer wait.
|
|
5
5
|
`)}catch{}return console.log(b?JSON.stringify(g):` completed ${g.completed} batched ${g.completed===1?"step":"steps"} in ${g.durationMs}ms`),0}catch(u){return u instanceof y&&b?console.log(JSON.stringify(u.result)):console.error(` do chain failed: ${u instanceof Error?u.message:u}`),1}finally{h?.close()}}export{O as hasDoChain,D as parseDoChainActions,Y as runDoChain};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import"./chunk-GS5VUDCF.js";import{a,b,c,d,e,f,g}from"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-3MPFC3DS.js";import"./chunk-LPAOOJIW.js";import"./chunk-HKQXGCQT.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";export{c as ALL_DRIVERS,g as buildDriverListRows,a as electronDriver,d as getAllDrivers,e as getDriver,b as playwrightDriver,f as resolveDriver};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-AUPJX4KI.js";import"./chunk-Q65KH25G.js";export{a as isAgentEnv};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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 as R,d as L}from"./chunk-
|
|
4
|
+
import{c as R,d as L}from"./chunk-X5MXQB3L.js";import{t as x,v as A,z as b}from"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";import{spawnSync as T}from"node:child_process";import{existsSync as V,mkdirSync as W,unlinkSync as N,writeFileSync as E}from"node:fs";import{homedir as j}from"node:os";import{dirname as q,extname as H,join as K,resolve as I}from"node:path";var n=e=>new Promise(a=>setTimeout(a,e)),X=["--out","--fps","--script","--slow"],J=["--keep-three"],Q=["--background","--gradient","--gradient-angle","--colorway","--environment","--env-shape","--env-spread","--env-size","--env-color","--env-glow","--env-plastic","--room","--focus","--focus-amount","--focus-range"],Y=12e4,Z=16e6;function c(e,a){let s=e.indexOf(a);return s>=0?e[s+1]:void 0}async function r(e,a,s=3e4){return await e.send({type:"evaluate",code:a},{timeoutMs:s})}async function ae(e,a){if(e.length===0||e.includes("--help")||e.includes("-h"))return console.log(`
|
|
5
5
|
rnx film \u2014 record a flow flat, replay it on the 3d stage, save a clip
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -35,7 +35,7 @@ examples:
|
|
|
35
35
|
rnx film flows/swap.yaml --script hero-arc --background gradient-tide --out ~/Desktop/swap-3d.mp4
|
|
36
36
|
rnx film flows/login.yaml --colorway deep-blue --environment on --env-shape pane --room on
|
|
37
37
|
`),0;let s=e.find(d=>!d.startsWith("--")&&/\.ya?ml$/.test(d));if(!s||!V(I(s)))return console.error(` film: flow file not found: ${s??"(none given)"}`),1;let P=Number.parseInt(c(e,"--fps")??"30",10),h=c(e,"--script")??"hero-arc",z=e.includes("--keep-three"),v=s.replace(/^.*\//,"").replace(/\.ya?ml$/,""),O=c(e,"--out"),l=I(O??K(j(),"Desktop","sootsim-films",`${v}.webm`)),S=H(l).toLowerCase()===".mp4";if(S&&T("ffmpeg",["-version"]).status!==0)return console.error(" film: --out ends in .mp4 but ffmpeg is not installed"),console.error(" install ffmpeg or use a .webm output path"),1;let C=x(e,{port:a.port,stripValueFlags:[...X,...Q],stripBooleanFlags:J}),t=A({...C,commandTimeoutMs:6e4});try{let d=await r(t,`(() => { const s = window.SootSim?.bridges?.settings?.get?.() || {}
|
|
38
|
-
return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-
|
|
38
|
+
return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-BDAA6BWL.js"),m=[s],y=c(e,"--sim");y&&m.push("--sim",y);let k=c(e,"--slow");k&&m.push("--slow",k);let f=await G(m);await n(400);let u=Math.min(Date.now()-D,Y);if(await r(t,"window.SootSim?.bridges?.stopRecording?.()"),f!==0)return console.error(` film: flow failed (exit ${f}) \u2014 not filming a broken take`),f;let F=!1;for(let o=0;o<50;o++){await n(400);let i=await r(t,`(() => { const s = window.SootSim?.bridges?.getRecordingState?.()
|
|
39
39
|
return { state: s?.state, hasBlob: !!s?.lastVideoBlob } })()`);if(i?.state==="idle"&&i.hasBlob){F=!0;break}}if(!F)return console.error(" film: flow recording never produced a video blob"),1;console.log(` film: flow captured (${(u/1e3).toFixed(1)}s)`),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeMode', true)"),await R(t),await n(1400),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeRecordingEditor', true)");let _=!1;for(let o=0;o<60;o++)if(await n(250),await r(t,`(() => { const rs = window.SootSim?.replayStore
|
|
40
40
|
return rs?.value?.preview?.surface === 'video' && !!rs?.value?.preview?.flowVideoUrl })()`)){_=!0;break}if(!_)return console.error(" film: recording editor did not seed the replay store"),1;let p=L(e);delete p.script,p.resetPose=!0,await b(t,"SootSim.bridges.threeMode.configure",p),await n(2400),console.log(` film: filming the 3d stage (script: ${h})`);let M=await r(t,`(() => {
|
|
41
41
|
const c = window.SootSim?.bridges?.threeMode?.getCanvas?.()
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{c,d,e,f,g,h,i}from"./chunk-CKNNO6ZG.js";import"./chunk-OXCDE3DD.js";import"./chunk-T4ZZ26A2.js";import{a,b}from"./chunk-42TLK75A.js";import"./chunk-OZJMWTGA.js";import"./chunk-WJQB6AXZ.js";import"./chunk-FDAFSRQE.js";import"./chunk-YYPTSF6W.js";import"./chunk-SHMLYTNH.js";import"./chunk-TOE5O6JE.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-FSPZY4AI.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-FVODUDPS.js";import"./chunk-DJSPNOF6.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{f as discoverSootsimUrl,c as getLastFlowPreviewUploadResult,d as getLastFlowTraceSteps,h as hoistLeadingSimFlag,a as parseFlowFile,e as resolveAppFrontmatterTarget,g as runFlowPlayback,i as runMaestroAuthoring,b as validateFlowFile};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a,b,c}from"./chunk-BWJOLJOK.js";import"./chunk-WXRDFUR7.js";import"./chunk-FSPZY4AI.js";import"./chunk-4VA2ISWX.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-SSUPPM6K.js";import"./chunk-E6XYIIJK.js";import"./chunk-ECXDCED5.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
package/dist-cli/chunks/{hidden-runtime-alias-VJCWCFVO.js → hidden-runtime-alias-6M4UERRQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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"./chunk-
|
|
4
|
+
import"./chunk-DJSPNOF6.js";import{b as n}from"./chunk-SSUPPM6K.js";import"./chunk-Q65KH25G.js";var e=["do","get"];function i(t){if(t.command)return t;let o=t.commandArgs.find(r=>!r.startsWith("-"));if(!o)return t;for(let r of e)if(n(r,o))return{...t,command:r};return t}export{i as resolveHiddenRuntimeAlias};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.368 | (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,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-
|
|
4
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-E6XYIIJK.js";import"./chunk-Q65KH25G.js";export{b as ACTIVE_RUNTIME_FILE,e as CONFIG_FILE,f as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,d as DEV_BRIDGES_DIR,a as SOOTSIM_HOME_ENV,O as activeRuntimeDir,m as activeRuntimeFile,v as cacheDir,r as cameraFixturesDir,W as claimDaemonLockfile,z as configFilePath,K as consumeRuntimeUpgradeNotice,t as daemonAppBundlePath,s as daemonAppDir,u as daemonAppLauncherPath,w as daemonLockfilePath,y as devBridgeLockfilePath,x as devBridgesDir,n as electronDir,o as electronUserDataDir,p as electronVersionDir,L as ensureSootsimHome,R as isDaemonLockfileFresh,S as isDevBridgeLockfileFresh,i as isDevWorkstation,C as isOnboardingComplete,h as isSootsimDevCheckout,q as profilesDir,M as readActiveRuntime,P as readDaemonLockfile,Q as readDevBridgeLockfiles,T as readLiveRuntimeVersions,H as readOrCreateAnonymousId,F as readPrivacyPreferences,A as readSharedConfig,D as readSimulatorDriverPreference,X as removeDaemonLockfile,Y as removeDevBridgeLockfile,l as runtimeDir,I as runtimeUpgradeNoticePath,k as runtimesDir,j as shouldSkipPersistentDaemon,g as sootsimHomeDir,N as writeActiveRuntime,U as writeDaemonLockfile,V as writeDevBridgeLockfile,E as writeOnboardingPreferences,G as writePrivacyPreferences,J as writeRuntimeUpgradeNotice,B as writeSharedConfig};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.368 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{g as a,h as b}from"./chunk-42TLK75A.js";import"./chunk-OZJMWTGA.js";import"./chunk-WJQB6AXZ.js";import"./chunk-FDAFSRQE.js";import"./chunk-TE645QCO.js";import"./chunk-NGWUGNPV.js";import"./chunk-57LITN73.js";import"./chunk-JHYXRORU.js";import"./chunk-7V3S2DY2.js";import"./chunk-QMVBWZH2.js";import"./chunk-QKOY7UW5.js";import"./chunk-GXHCJRKE.js";import"./chunk-7B22IPSC.js";import"./chunk-3MPFC3DS.js";import"./chunk-RRALQ4WM.js";import"./chunk-3XMEIZEV.js";import"./chunk-M7COA4BE.js";import"./chunk-WFAFAGMG.js";import"./chunk-WF2CRNYF.js";import"./chunk-MCO7V4VN.js";import"./chunk-PNBQBBG5.js";import"./chunk-FSPZY4AI.js";import"./chunk-LAKWOJ5Y.js";import"./chunk-EHA65UVJ.js";import"./chunk-T2MGLXY5.js";import"./chunk-LPAOOJIW.js";import"./chunk-FVODUDPS.js";import"./chunk-DJSPNOF6.js";import"./chunk-SSUPPM6K.js";import"./chunk-HKQXGCQT.js";import"./chunk-3S2J6IVC.js";import"./chunk-AUPJX4KI.js";import"./chunk-E6XYIIJK.js";import"./chunk-WVVAYLWZ.js";import"./chunk-Q65KH25G.js";export{a as printShellPerfReport,b as runInspect};
|