rnxsim 0.1.360 → 0.1.361
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/cli/bridge-flow-runner.ts +11 -19
- package/cli/commands/maestro.ts +1 -2
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-5TDEJY2A.js → agent-PE4FUR3F.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-GLYSHBEI.js → agent-wrapper-2DFZKYFA.js} +2 -2
- package/dist-cli/chunks/{app-fonts-NMEJ3OZP.js → app-fonts-IHMQALV3.js} +2 -2
- package/dist-cli/chunks/{assert-RBQTSVK7.js → assert-BYMM43UD.js} +2 -2
- package/dist-cli/chunks/{auth-LGORS2S7.js → auth-VBFSMZ3V.js} +2 -2
- package/dist-cli/chunks/{beta-M62QOEAS.js → beta-NU3ESDII.js} +2 -2
- package/dist-cli/chunks/{camera-TFRUZ5V3.js → camera-6GNRDABG.js} +2 -2
- package/dist-cli/chunks/{chunk-FFJU4B4P.js → chunk-2G6JWRZ3.js} +3 -3
- package/dist-cli/chunks/{chunk-P6G2K65M.js → chunk-37Z6QOGY.js} +2 -2
- package/dist-cli/chunks/{chunk-GVZBI566.js → chunk-3FZV36RQ.js} +2 -2
- package/dist-cli/chunks/{chunk-BNT7EOTY.js → chunk-3JTUEUEQ.js} +1 -1
- package/dist-cli/chunks/{chunk-PYCGLDQT.js → chunk-3KEAKMUN.js} +1 -1
- package/dist-cli/chunks/{chunk-XJZLPMI2.js → chunk-3Q4V37DB.js} +2 -2
- package/dist-cli/chunks/{chunk-KXL34ZEX.js → chunk-3ZVQFBLZ.js} +1 -1
- package/dist-cli/chunks/{chunk-VLU7O6US.js → chunk-4BNQLDNR.js} +2 -2
- package/dist-cli/chunks/{chunk-6MIV6KTM.js → chunk-4DRB3VDK.js} +2 -2
- package/dist-cli/chunks/{chunk-HB2FQ3AI.js → chunk-4LJ2VGCC.js} +1 -1
- package/dist-cli/chunks/{chunk-3QESF6O2.js → chunk-5RZ7UZAP.js} +2 -2
- package/dist-cli/chunks/{chunk-LVZ5XNHR.js → chunk-5SSNVYQL.js} +3 -3
- package/dist-cli/chunks/{chunk-JKCJ3OZ6.js → chunk-645WC3JJ.js} +2 -2
- package/dist-cli/chunks/{chunk-2N4DDS5L.js → chunk-6BJ2QYH3.js} +1 -1
- package/dist-cli/chunks/{chunk-TQ7LABWH.js → chunk-6MENEVJS.js} +2 -2
- package/dist-cli/chunks/{chunk-7RQOXQJI.js → chunk-6XVKJVOI.js} +2 -2
- package/dist-cli/chunks/{chunk-D7PFB4GR.js → chunk-7XYZ5QH4.js} +2 -2
- package/dist-cli/chunks/{chunk-CTMZKSXE.js → chunk-A37NXF3Z.js} +1 -1
- package/dist-cli/chunks/{chunk-6FHBFHN2.js → chunk-B7JKDRC5.js} +1 -1
- package/dist-cli/chunks/{chunk-LQDKWRKB.js → chunk-BD3V6HEX.js} +2 -2
- package/dist-cli/chunks/{chunk-CZ6CXMLY.js → chunk-BHEY33C2.js} +1 -1
- package/dist-cli/chunks/{chunk-23P7Q7CA.js → chunk-DHA2XVOG.js} +2 -2
- package/dist-cli/chunks/{chunk-FW433UQA.js → chunk-DR2HRF43.js} +1 -1
- package/dist-cli/chunks/{chunk-RVOGX6P4.js → chunk-DZBC7ACF.js} +2 -2
- package/dist-cli/chunks/{chunk-3NJNPLC4.js → chunk-E4QTH57Q.js} +2 -2
- package/dist-cli/chunks/{chunk-FUWXX4L2.js → chunk-EKOIWHTM.js} +2 -2
- package/dist-cli/chunks/{chunk-MNOYVAVM.js → chunk-EMDBHHL3.js} +2 -2
- package/dist-cli/chunks/{chunk-3QFEMDXJ.js → chunk-EUND2TS4.js} +1 -1
- package/dist-cli/chunks/{chunk-6RDUEAX5.js → chunk-EZS7IFYP.js} +1 -1
- package/dist-cli/chunks/{chunk-OGJN774A.js → chunk-FB222OKQ.js} +2 -2
- package/dist-cli/chunks/{chunk-46K7DG36.js → chunk-FXYFWGUF.js} +1 -1
- package/dist-cli/chunks/{chunk-76SYSBLR.js → chunk-FZWAUWMR.js} +1 -1
- package/dist-cli/chunks/{chunk-F4V472HT.js → chunk-G5JQXBCM.js} +2 -2
- package/dist-cli/chunks/{chunk-OYCL4URG.js → chunk-IQ4TP2J2.js} +2 -2
- package/dist-cli/chunks/{chunk-4AOLJEUK.js → chunk-IYJVOL5E.js} +2 -2
- package/dist-cli/chunks/{chunk-OOHFSXDL.js → chunk-MCZMW53D.js} +2 -2
- package/dist-cli/chunks/{chunk-5JATVHNM.js → chunk-MKN3NYBZ.js} +1 -1
- package/dist-cli/chunks/{chunk-TG7JA5QU.js → chunk-MPYUIK6F.js} +1 -1
- package/dist-cli/chunks/{chunk-XMGIQZEE.js → chunk-NPCWXSGY.js} +1 -1
- package/dist-cli/chunks/{chunk-M3VPZY4N.js → chunk-OULABB5B.js} +2 -2
- package/dist-cli/chunks/{chunk-XOH5H5ZP.js → chunk-P3Q6BOWW.js} +2 -2
- package/dist-cli/chunks/{chunk-6FUFHTAZ.js → chunk-QHD5HLWW.js} +2 -2
- package/dist-cli/chunks/{chunk-QNWJPLWS.js → chunk-QN4YLR7W.js} +4 -4
- package/dist-cli/chunks/{chunk-ECZ362F5.js → chunk-QT2FDZ2X.js} +1 -1
- package/dist-cli/chunks/{chunk-3ZI56VTV.js → chunk-SS2QGS3S.js} +2 -2
- package/dist-cli/chunks/{chunk-6CQWGATK.js → chunk-SSQIJN43.js} +2 -2
- package/dist-cli/chunks/{chunk-QII4N4MD.js → chunk-UTUGLOQA.js} +2 -2
- package/dist-cli/chunks/{chunk-M7YQTFX6.js → chunk-UTVDJF5N.js} +2 -2
- package/dist-cli/chunks/{chunk-7B55WEZX.js → chunk-VT5CCVFB.js} +2 -2
- package/dist-cli/chunks/{chunk-UGCUH4IQ.js → chunk-WMIFCBK4.js} +2 -2
- package/dist-cli/chunks/{chunk-P4F464O6.js → chunk-XV7FXZ4J.js} +1 -1
- package/dist-cli/chunks/{chunk-64WWMVKU.js → chunk-XYDJGXWM.js} +1 -1
- package/dist-cli/chunks/{chunk-ZJAMYSRD.js → chunk-YIYZDGH7.js} +2 -2
- package/dist-cli/chunks/chunk-YJ7WD23N.js +4 -0
- package/dist-cli/chunks/{chunk-N2VQYLIL.js → chunk-YMVZ7QGW.js} +1 -1
- package/dist-cli/chunks/{chunk-FGYT7WZO.js → chunk-Z6IYPETC.js} +2 -2
- package/dist-cli/chunks/{cleanup-B5WZL54D.js → cleanup-PWY4YBY5.js} +2 -2
- package/dist-cli/chunks/cli-version-Q4342OQF.js +4 -0
- package/dist-cli/chunks/{compat-5YQSEUI6.js → compat-DNE5AOTG.js} +2 -2
- package/dist-cli/chunks/{config-2AN3444K.js → config-J7THVY4X.js} +2 -2
- package/dist-cli/chunks/{control-GYPDUVBY.js → control-MTBC3TR5.js} +2 -2
- package/dist-cli/chunks/daemon-QFFOUSVW.js +4 -0
- package/dist-cli/chunks/{debug-HGURP42M.js → debug-VKPEE53D.js} +3 -3
- package/dist-cli/chunks/{desktop-22U445SI.js → desktop-42TETCYN.js} +3 -3
- package/dist-cli/chunks/{detox-WWREZVE5.js → detox-XEKO6RN7.js} +2 -2
- package/dist-cli/chunks/{device-YGHZQXOL.js → device-SPLLD5HY.js} +2 -2
- package/dist-cli/chunks/{diagnose-VGDPNJ3Y.js → diagnose-YC55JQWA.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-L4S6CWE2.js → disk-cleanup-ANWR5MX4.js} +2 -2
- package/dist-cli/chunks/drivers-L3TDG54O.js +4 -0
- package/dist-cli/chunks/{film-7XAWD7C2.js → film-PFFOI46T.js} +3 -3
- package/dist-cli/chunks/flow-5LUJSZST.js +4 -0
- package/dist-cli/chunks/help-HNTYXYDE.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-U6ZB5ZW2.js → hidden-runtime-alias-PSRXTEK3.js} +2 -2
- package/dist-cli/chunks/{home-paths-ZMH2LG4J.js → home-paths-K3YTHQCN.js} +2 -2
- package/dist-cli/chunks/inspect-KMVSWO4V.js +4 -0
- package/dist-cli/chunks/install-desktop-KKJJL3M7.js +4 -0
- package/dist-cli/chunks/{login-MZ2XGHAS.js → login-VCFZ6CP6.js} +2 -2
- package/dist-cli/chunks/{logout-FZWUOHWI.js → logout-SZZKCKUT.js} +2 -2
- package/dist-cli/chunks/{maestro-DRZBFKBJ.js → maestro-SKBMS6OP.js} +6 -7
- package/dist-cli/chunks/{maestro-generate-5O6GE5IK.js → maestro-generate-2LQYCR32.js} +3 -3
- package/dist-cli/chunks/{mode-DQFQ6TJD.js → mode-W4YK7PNM.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-6F3OIAKL.js → optional-demo-registry-TJ7YL2W5.js} +2 -2
- package/dist-cli/chunks/{perf-67FAFWU7.js → perf-EWLQQOMQ.js} +2 -2
- package/dist-cli/chunks/{permissions-LAUXGMCQ.js → permissions-F3M7BXNG.js} +2 -2
- package/dist-cli/chunks/privacy-MIYPUFXK.js +4 -0
- package/dist-cli/chunks/{record-IKQ7MRAP.js → record-TU6UZ6BP.js} +3 -3
- package/dist-cli/chunks/{report-issue-56SCTEPF.js → report-issue-5WFJDQ3G.js} +2 -2
- package/dist-cli/chunks/reset-ZYWPYHYY.js +4 -0
- package/dist-cli/chunks/runtime-NQW7OGBL.js +4 -0
- package/dist-cli/chunks/{screenshot-command-7ETXR4RZ.js → screenshot-command-UCZGPK5X.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-5AWDI4KX.js → screenshot-layers-S45FLMJO.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-E2UHDC4V.js → screenshots-capture-MJBSRTTC.js} +2 -2
- package/dist-cli/chunks/{serve-ZYNSOFT4.js → serve-MYU6276M.js} +2 -2
- package/dist-cli/chunks/setup-6AGOWG4T.js +4 -0
- package/dist-cli/chunks/{skills-UWVWZPVJ.js → skills-TAO6VMZT.js} +2 -2
- package/dist-cli/chunks/{state-CIJIGYAA.js → state-D3C6E7BF.js} +2 -2
- package/dist-cli/chunks/{storage-6GNPMH52.js → storage-6DGLTAB3.js} +2 -2
- package/dist-cli/chunks/store-GCWVZJNA.js +4 -0
- package/dist-cli/chunks/telemetry-H2C2VENG.js +4 -0
- package/dist-cli/chunks/{timeline-TTRS64D5.js → timeline-YLNDGMIP.js} +2 -2
- package/dist-cli/chunks/{upgrade-QGUEIM6V.js → upgrade-A22Q6HOL.js} +2 -2
- package/dist-cli/chunks/upload-MRKKWNG2.js +4 -0
- package/dist-cli/chunks/{version-ZFCZ2OSY.js → version-UIGNPZQH.js} +2 -2
- package/dist-cli/chunks/{web-NQN3KN7Z.js → web-B3WLYIR5.js} +2 -2
- package/dist-cli/chunks/welcome-SFV4KGBU.js +5 -0
- package/dist-cli/chunks/{what-happened-B4ZXFJYH.js → what-happened-FFWBBG4Y.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.cjs +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 +15 -23
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/rnx-test/SKILL.md +2 -2
- package/dist-cli/chunks/chunk-OHQYXHAO.js +0 -4
- package/dist-cli/chunks/cli-version-ISS4IQG2.js +0 -4
- package/dist-cli/chunks/daemon-KDBWK2JE.js +0 -4
- package/dist-cli/chunks/drivers-E57M2QHQ.js +0 -4
- package/dist-cli/chunks/flow-7R3ZY5B2.js +0 -4
- package/dist-cli/chunks/help-K6YJPUPC.js +0 -4
- package/dist-cli/chunks/inspect-DVSRZN4P.js +0 -4
- package/dist-cli/chunks/install-desktop-N5PAE4D5.js +0 -4
- package/dist-cli/chunks/privacy-2GDUL5WJ.js +0 -4
- package/dist-cli/chunks/reset-SJ4R2OMK.js +0 -4
- package/dist-cli/chunks/runtime-LWKXO2WB.js +0 -4
- package/dist-cli/chunks/setup-5U4NLERT.js +0 -4
- package/dist-cli/chunks/store-CR76UYXH.js +0 -4
- package/dist-cli/chunks/telemetry-2QZQH335.js +0 -4
- package/dist-cli/chunks/upload-7NOVXFG3.js +0 -4
- package/dist-cli/chunks/welcome-5WE3E5JT.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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{execFileSync as S,execSync as x}from"node:child_process";var g=new WeakMap,l=new Set,b=!1;function f(){return{platform:process.platform,env:process.env}}function A(e){return S("/bin/ps",["-p",String(e),"-o","command="],{encoding:"utf8"}).trim()}function w(e=f()){return e.platform==="linux"&&e.env.GITHUB_ACTIONS==="true"&&e.env.RUNNER_OS==="Linux"}function L(e){let r=String(e);return/^--disable-gpu(?:=.*)?$/i.test(r)||/^--enable-unsafe-swiftshader(?:=.*)?$/i.test(r)||/^--use-angle=(?:swiftshader|swiftshader-webgl)$/i.test(r)||/^--use-gl=swiftshader$/i.test(r)}function I(e){return e.match(/(?:^|\s)(--disable-gpu(?:=[^\s]+)?|--enable-unsafe-swiftshader(?:=[^\s]+)?|--use-angle=(?:swiftshader|swiftshader-webgl)|--use-gl=swiftshader)(?=\s|$)/i)?.[1]??null}function k(e){return e==="darwin"?"metal":e==="linux"?"vulkan":"default"}function y(e,r=f()){if(w(r))return;let n=I(e);if(n)throw new Error(`[reap-browser] refused software-rendering Chrome process argument ${n}`);let o=k(r.platform),t=e.split(/\s+/);if(!t.includes(`--use-angle=${o}`)||!t.includes("--enable-gpu"))throw new Error(`[reap-browser] Chrome process did not retain the required ${o} GPU arguments`);if(r.platform==="darwin"&&e.includes("/Applications/Google Chrome.app/"))throw new Error("[reap-browser] refused the user's installed Google Chrome; use Playwright channel chromium")}function E(e){if(!e||typeof e!="object")return[];let n=e.gpu;if(!n||typeof n!="object")return[];let o=n,t=[],a=o.auxAttributes;if(a&&typeof a=="object")for(let s of Object.values(a))typeof s=="string"&&t.push(s);let i=o.devices;if(Array.isArray(i)){for(let s of i)if(!(!s||typeof s!="object"))for(let u of Object.values(s))typeof u=="string"&&t.push(u)}return t}function B(e){if(!e||typeof e!="object")return null;let r=e;if(!Array.isArray(r.processInfo))return null;for(let n of r.processInfo){if(!n||typeof n!="object")continue;let o=n;if(o.type==="browser"&&typeof o.id=="number"&&Number.isInteger(o.id)&&o.id>0)return o.id}return null}function G(e,r=f()){if(w(r))return;let o=E(e).join(" | ");if(!o||/swiftshader|llvmpipe|software rasterizer/i.test(o))throw new Error(`[reap-browser] Chrome reported a software renderer${o?`: ${o}`:""}`);if(r.platform==="darwin"&&!/metal/i.test(o))throw new Error(`[reap-browser] Chrome did not report an ANGLE Metal renderer: ${o}`)}function p(e){if(e&&typeof e=="object"){let n=g.get(e);if(n!==void 0)return n}let r=e;if(r&&typeof r.process=="function")try{let n=r.process();if(n&&typeof n.pid=="number"&&n.pid>0)return n.pid}catch{}if(r&&typeof r.browser=="function")try{let n=r.browser();if(n)return p(n)}catch{}return null}function h(e){let r=[];try{r=x(`pgrep -P ${e} || true`).toString().split(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as i}from"./chunk-
|
|
4
|
+
import{a as i}from"./chunk-645WC3JJ.js";var c=["ghs_","ghp_","gho_","ghu_","github_pat_"];function p(n){return!!(n&&n.length>=20&&c.some(e=>n.startsWith(e)))}function a(){let n=process.env.CONTRAST_INSTALLATION_TOKEN?.trim(),e=process.env.GITHUB_TOKEN?.trim(),t=n||e;if(!p(t))return null;let r=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim();if(!r)return null;let[o,s]=r.includes("/")?r.split("/",2):[null,null],u=(process.env.CONTRAST_REPO_ID||process.env.GITHUB_REPOSITORY_ID||"").trim(),l=(process.env.CONTRAST_INSTALLATION_ID||process.env.GITHUB_APP_INSTALLATION_ID||"").trim();return{kind:"github",token:t,repoId:r,repositoryId:u||null,owner:o||null,repo:s||null,installationId:l||null,source:n?"contrast-runner":"github-actions"}}function d(n){return n.startsWith("sk_rnx_")||n.startsWith("sk_sootsim_")}function I(){for(let n of["RNX_API_KEY","SOOTSIM_API_KEY"]){let e=process.env[n]?.trim();if(e&&d(e))return{secret:e,envName:n}}return null}function _(){let n=I();if(n)return{kind:"api-key",secret:n.secret,source:"env",envName:n.envName};let e=a();if(e)return e;let t=i();return t?.token?{kind:"session",token:t.token,origin:t.origin}:null}function A(n){return n.kind==="api-key"?`Bearer ${n.secret}`:`Bearer ${n.token}`}function h(n){return!n||n.kind!=="github"?null:{repoId:n.repoId,owner:n.owner??void 0,repo:n.repo??void 0,installationId:n.installationId}}export{_ as a,A as b,h as c};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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-3Q4V37DB.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.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.361 | (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-SSQIJN43.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";export{a as getCliVersion};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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-YJ7WD23N.js";import"./chunk-MPYUIK6F.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.361 | (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-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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.361 | (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}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}from"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";export{e as applyRuntimeGenerationOrigin,i as buildOpenUrl,h as buildShellUrl,v as closeSimsBulk,c as ensureBridgeForOpen,b as normalizeDeepLinkTarget,w as planBulkCloseTargets,n as playwrightHostPidForSim,k as printConnectedSims,d as resolveBundleTarget,f as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,g as resolveShellBaseUrlForBridgePort,u as runClaimCommand,x as runCloseCommand,t as runFocusCommand,q as runLinkCommand,r as runOpenCommand,s as runUseCommand,o as signalDriverLaunchConnected,j as summarizeSimUrl,p as terminatePlaywrightHostsForSims,l as waitForSimMatch,m as waitForSimMatchOrHostExit};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.361 | (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-FB222OKQ.js";import"./chunk-DZBC7ACF.js";import"./chunk-EMDBHHL3.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-BHEY33C2.js";import"./chunk-MKN3NYBZ.js";import"./chunk-SSQIJN43.js";import"./chunk-DR2HRF43.js";import"./chunk-FXYFWGUF.js";import"./chunk-MPYUIK6F.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.361 | (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-P3Q6BOWW.js";import{L as N,M as D,N as O,O as T,P as k}from"./chunk-3JTUEUEQ.js";import{q as A,s as _,u as S}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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-KMVSWO4V.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.361 | (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-QT2FDZ2X.js";import{a as f}from"./chunk-3KEAKMUN.js";import{h as u}from"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import{a}from"./chunk-DHA2XVOG.js";import{c}from"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import{a as d}from"./chunk-VT5CCVFB.js";import{a as p}from"./chunk-NPCWXSGY.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import{i as l}from"./chunk-4LJ2VGCC.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.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-KKJJL3M7.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.361 | (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 N}from"./chunk-
|
|
4
|
+
import{f as N}from"./chunk-QN4YLR7W.js";import"./chunk-YMVZ7QGW.js";import"./chunk-6MENEVJS.js";import{c as F,d as $,e as E}from"./chunk-OULABB5B.js";import{a as M}from"./chunk-Z6IYPETC.js";import"./chunk-645WC3JJ.js";import"./chunk-2G6JWRZ3.js";import"./chunk-3KEAKMUN.js";import"./chunk-XYDJGXWM.js";import"./chunk-SS2QGS3S.js";import"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-XV7FXZ4J.js";import"./chunk-UTVDJF5N.js";import"./chunk-BHEY33C2.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import{a as R}from"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";import{spawn as G}from"child_process";import{existsSync as g,mkdirSync as B,readFileSync as C,writeFileSync as y,unlinkSync as U}from"fs";import{tmpdir as k}from"os";import{dirname as q,resolve as a,join as J,relative as H}from"path";function V(){try{let t=import.meta.resolve(`${R.packageName}/detox`);return q(t.startsWith("file://")?t.slice(7):t)}catch{return a(import.meta.dirname,"..","..","detox")}}var z=`
|
|
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.361 | (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-FZWAUWMR.js";import"./chunk-QHD5HLWW.js";import"./chunk-BD3V6HEX.js";import{b as c,c as s,d as m}from"./chunk-IYJVOL5E.js";import{q as d,s as l,v as a}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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.361 | (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,q as E,s as x,v as b}from"./chunk-
|
|
4
|
+
import{e as v,q as E,s as x,v as b}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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.361 | (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-3Q4V37DB.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";export{e as applyAutomaticSootsimCleanup,d as applySootsimCleanup,b as formatSootsimBytes,a as isAutomaticSootsimCleanupComplete,c as planSootsimCleanup};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.361 | (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-QT2FDZ2X.js";import{a,b,c,d,e,f,g}from"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-B7JKDRC5.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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-7XYZ5QH4.js";import{q as x,s as A,w as b}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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-5LUJSZST.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.361 | (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-QN4YLR7W.js";import"./chunk-YMVZ7QGW.js";import"./chunk-6MENEVJS.js";import"./chunk-OULABB5B.js";import"./chunk-Z6IYPETC.js";import"./chunk-645WC3JJ.js";import{a,b}from"./chunk-2G6JWRZ3.js";import"./chunk-3KEAKMUN.js";import"./chunk-XYDJGXWM.js";import"./chunk-SS2QGS3S.js";import"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-XV7FXZ4J.js";import"./chunk-UTVDJF5N.js";import"./chunk-BHEY33C2.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.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.361 | (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-DZBC7ACF.js";import"./chunk-EMDBHHL3.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-BHEY33C2.js";import"./chunk-MKN3NYBZ.js";import"./chunk-SSQIJN43.js";import"./chunk-DR2HRF43.js";import"./chunk-FXYFWGUF.js";import"./chunk-MPYUIK6F.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
package/dist-cli/chunks/{hidden-runtime-alias-U6ZB5ZW2.js → hidden-runtime-alias-PSRXTEK3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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-UTVDJF5N.js";import{b as n}from"./chunk-BHEY33C2.js";import"./chunk-MPYUIK6F.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.361 | (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-MKN3NYBZ.js";import"./chunk-MPYUIK6F.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.361 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{h as a,i as b}from"./chunk-2G6JWRZ3.js";import"./chunk-3KEAKMUN.js";import"./chunk-XYDJGXWM.js";import"./chunk-SS2QGS3S.js";import"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-XV7FXZ4J.js";import"./chunk-UTVDJF5N.js";import"./chunk-BHEY33C2.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";export{a as printShellPerfReport,b as runInspect};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.361 | (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-VT5CCVFB.js";import"./chunk-NPCWXSGY.js";import"./chunk-4LJ2VGCC.js";import"./chunk-MPYUIK6F.js";export{a as runInstallDesktop};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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 p,d as k}from"./chunk-
|
|
4
|
+
import{b as p,d as k}from"./chunk-645WC3JJ.js";import"./chunk-MKN3NYBZ.js";import{a as b}from"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";import{exec as x}from"node:child_process";import{randomBytes as T}from"node:crypto";import R from"node:http";var w=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev";function L(t){return t||(process.env.SOOTSIM_AUTH_ORIGIN?process.env.SOOTSIM_AUTH_ORIGIN:process.env.SOOTSIM_UPLOAD_ORIGIN?process.env.SOOTSIM_UPLOAD_ORIGIN:w)}function _(){console.log(`
|
|
5
5
|
rnx login \u2014 sign in so uploads can attach to your account
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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 e,c as t}from"./chunk-
|
|
4
|
+
import{a as e,c as t}from"./chunk-645WC3JJ.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.js";async function r(){let o=e();if(!o?.token){console.log(" not signed in");return}try{await fetch(`${o.origin.replace(/\/$/,"")}/api/auth/sign-out`,{method:"POST",headers:{authorization:`Bearer ${o.token}`}})}catch{}t(),console.log(" signed out")}export{r as runLogout};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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 E,d as O,g as L,h as R,i as U}from"./chunk-
|
|
4
|
+
import{c as E,d as O,g as L,h as R,i as U}from"./chunk-QN4YLR7W.js";import"./chunk-YMVZ7QGW.js";import"./chunk-6MENEVJS.js";import{b as $,c as F,d as M,e as T}from"./chunk-OULABB5B.js";import{a as k}from"./chunk-Z6IYPETC.js";import"./chunk-645WC3JJ.js";import{a as A}from"./chunk-2G6JWRZ3.js";import"./chunk-3KEAKMUN.js";import"./chunk-XYDJGXWM.js";import{a as S}from"./chunk-SS2QGS3S.js";import"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-XV7FXZ4J.js";import"./chunk-UTVDJF5N.js";import"./chunk-BHEY33C2.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";import*as n from"fs";import*as a from"path";var I=[".maestro","maestro"];function W(){console.log(`
|
|
5
5
|
rnx maestro \u2014 author and run Maestro YAML flows against rnx
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -64,8 +64,7 @@ launch behavior:
|
|
|
64
64
|
launchApp.arguments: a JSON object available before guest app entry through
|
|
65
65
|
react-native-launch-arguments and NativeModules.SettingsManager.settings.
|
|
66
66
|
stopApp: keeps the guest stopped until launchApp or openLink starts it.
|
|
67
|
-
openLink:
|
|
68
|
-
receives the URL through React Native Linking.
|
|
67
|
+
openLink: replaces the guest, then delivers the URL to the new tenant.
|
|
69
68
|
|
|
70
69
|
partial:
|
|
71
70
|
clearKeychain \u2014 warn-only, rnx has no keychain surface.
|
|
@@ -83,7 +82,7 @@ not yet implemented (will throw "unsupported maestro verb"):
|
|
|
83
82
|
travel, setLocation, setAirplaneMode, killApp, faker,
|
|
84
83
|
addMedia, startRecording, stopRecording (use --record flag),
|
|
85
84
|
repeat.while (only repeat.times is supported).
|
|
86
|
-
`)}function j(r){return r.startsWith("-")}function N(r){let s=[];for(let e=0;e<r.length;e++){if(r[e]==="--env"||r[e]==="-e"){let t=r[e+1];if(!t||!t.includes("="))throw new Error(`--env expects KEY=VALUE (got ${JSON.stringify(t??"")})`);let i=t.indexOf("="),c=t.slice(0,i),f=t.slice(i+1);process.env[c]=f,e+=1;continue}s.push(r[e])}return s}function J(r){let s=[];for(let e=0;e<r.length;e++){let t=r[e];if(t==="--format"||t==="--output"||t==="--device"||t==="-d"){e+=1;continue}if(t==="--continuous"){console.warn(" warn: --continuous is not yet implemented in rnx \u2014 running once");continue}s.push(t)}return s}function P(r){for(let s of I){let e=a.join(r,s);if(n.existsSync(e)&&n.statSync(e).isDirectory())return e}return null}function Y(r){let s=n.statSync(r);if(s.isFile())return[r];if(!s.isDirectory())throw new Error(`not a file or directory: ${r}`);let e={},t=["config.yaml","config.yml"].map(l=>a.join(r,l)).find(l=>n.existsSync(l));if(t){let l=S.parse(n.readFileSync(t,"utf8"));l&&typeof l=="object"&&(e=l)}let i=Array.isArray(e.flows)&&e.flows.length>0?e.flows:["*"],c=l=>{let p=a.basename(l);return!(p.startsWith(".")||!p.endsWith(".yaml")&&!p.endsWith(".yml")||p==="config.yaml"||p==="config.yml")},f=new Set;for(let l of i)for(let p of n.globSync(l,{cwd:r})){if(!c(p))continue;let d=a.join(r,p);n.existsSync(d)&&n.statSync(d).isFile()&&f.add(d)}let m=[...f].sort(),y=Array.isArray(e.includeTags)?e.includeTags:[],w=Array.isArray(e.excludeTags)?e.excludeTags:[];return(y.length>0||w.length>0)&&(m=m.filter(l=>{let{frontmatter:p}=
|
|
85
|
+
`)}function j(r){return r.startsWith("-")}function N(r){let s=[];for(let e=0;e<r.length;e++){if(r[e]==="--env"||r[e]==="-e"){let t=r[e+1];if(!t||!t.includes("="))throw new Error(`--env expects KEY=VALUE (got ${JSON.stringify(t??"")})`);let i=t.indexOf("="),c=t.slice(0,i),f=t.slice(i+1);process.env[c]=f,e+=1;continue}s.push(r[e])}return s}function J(r){let s=[];for(let e=0;e<r.length;e++){let t=r[e];if(t==="--format"||t==="--output"||t==="--device"||t==="-d"){e+=1;continue}if(t==="--continuous"){console.warn(" warn: --continuous is not yet implemented in rnx \u2014 running once");continue}s.push(t)}return s}function P(r){for(let s of I){let e=a.join(r,s);if(n.existsSync(e)&&n.statSync(e).isDirectory())return e}return null}function Y(r){let s=n.statSync(r);if(s.isFile())return[r];if(!s.isDirectory())throw new Error(`not a file or directory: ${r}`);let e={},t=["config.yaml","config.yml"].map(l=>a.join(r,l)).find(l=>n.existsSync(l));if(t){let l=S.parse(n.readFileSync(t,"utf8"));l&&typeof l=="object"&&(e=l)}let i=Array.isArray(e.flows)&&e.flows.length>0?e.flows:["*"],c=l=>{let p=a.basename(l);return!(p.startsWith(".")||!p.endsWith(".yaml")&&!p.endsWith(".yml")||p==="config.yaml"||p==="config.yml")},f=new Set;for(let l of i)for(let p of n.globSync(l,{cwd:r})){if(!c(p))continue;let d=a.join(r,p);n.existsSync(d)&&n.statSync(d).isFile()&&f.add(d)}let m=[...f].sort(),y=Array.isArray(e.includeTags)?e.includeTags:[],w=Array.isArray(e.excludeTags)?e.excludeTags:[];return(y.length>0||w.length>0)&&(m=m.filter(l=>{let{frontmatter:p}=A(n.readFileSync(l,"utf8")),d=Array.isArray(p.tags)?p.tags:[];return!(y.length>0&&!d.some(h=>y.includes(h))||d.some(h=>w.includes(h)))})),m}async function _(r){let s=a.join(r,".maestro");n.mkdirSync(s,{recursive:!0});let e=a.join(s,"login.yaml");return n.existsSync(e)?(console.error(` error: ${e} already exists`),1):(n.writeFileSync(e,`# rnx maestro starter flow \u2014 drop-in compatible with the maestro cli.
|
|
87
86
|
# run: rnx maestro test .maestro/login.yaml
|
|
88
87
|
appId: com.example.app
|
|
89
88
|
---
|
|
@@ -96,7 +95,7 @@ appId: com.example.app
|
|
|
96
95
|
- inputText: "secret123"
|
|
97
96
|
- tapOn: "Sign in"
|
|
98
97
|
- assertVisible: "Welcome"
|
|
99
|
-
`,"utf8"),console.log(` + wrote ${e}`),console.log(" next: rnx maestro test .maestro/login.yaml"),0)}async function Q(r,s={}){if(r.includes("--help")||r.includes("-h"))return W(),0;if(r.includes("--list-compat"))return D(),0;let e;try{e=N(r)}catch(o){return console.error(` error: ${o.message}`),1}e=R(e);let t=process.cwd(),i=e[0];if(i==="init")return _(t);if(i==="generate"){let{runMaestroGenerate:o}=await import("./maestro-generate-
|
|
98
|
+
`,"utf8"),console.log(` + wrote ${e}`),console.log(" next: rnx maestro test .maestro/login.yaml"),0)}async function Q(r,s={}){if(r.includes("--help")||r.includes("-h"))return W(),0;if(r.includes("--list-compat"))return D(),0;let e;try{e=N(r)}catch(o){return console.error(` error: ${o.message}`),1}e=R(e);let t=process.cwd(),i=e[0];if(i==="init")return _(t);if(i==="generate"){let{runMaestroGenerate:o}=await import("./maestro-generate-2LQYCR32.js");return o(e.slice(1))}if(i==="start"||i==="keep"||i==="good"||i==="end"||i==="validate")return U(e);e=J(e);let c=null,f;if(i==="test"){let o=e.slice(1).find(u=>!j(u));o?(c=a.resolve(t,o),f=e.slice(1).filter(u=>u!==o)):(c=P(t),f=e.slice(1))}else i&&!j(i)?(c=a.resolve(t,i),f=e.slice(1)):(c=P(t),f=e);if(!c)return console.error(`
|
|
100
99
|
error: no maestro flows found.
|
|
101
100
|
expected one of: ${I.map(o=>`./${o}/`).join(", ")}
|
|
102
101
|
or pass a flow explicitly: rnx maestro test path/to/flow.yaml
|
|
@@ -104,6 +103,6 @@ appId: com.example.app
|
|
|
104
103
|
`),1;if(!n.existsSync(c))return console.error(` error: ${c} not found`),1;let m;try{m=Y(c)}catch(o){return console.error(` error: ${o.message}`),1}if(m.length===0)return console.error(` error: no *.yaml or *.yml files found in ${c}`),1;console.log(`
|
|
105
104
|
rnx maestro \u2014 ${m.length} flow${m.length===1?"":"s"}
|
|
106
105
|
root: ${a.relative(t,c)||"."}
|
|
107
|
-
`);let y=
|
|
106
|
+
`);let y=k(),w=o=>{let u=f.indexOf(o);return u>=0?f[u+1]:void 0},l=null,p=()=>l??=T(w("--preview-origin")??w("--origin")),d=0,h=[];for(let o of m){console.log(`
|
|
108
107
|
\u25B6 ${a.relative(t,o)}`);let u=[o,...f];s.port&&u.push("--port",String(s.port));let g=0,V=Date.now();try{g=await L(u)}catch(x){console.error(` x ${x.message}`),g=1}h.push({file:o,exit:g}),g!==0&&d===0&&(d=g);let b=E();if(F({uploadedShare:!!b,auth:y})){let x=O(),C=x.find(K=>K.status==="failure"),v=await M({origin:await p(),kind:"maestro",name:a.relative(t,o),status:g===0?"passed":"failed",failureMessage:g===0?null:C?.error??"flow playback failed",previewShareId:b?.shareId??null,owner:w("--owner")??null,repo:w("--repo")??null,durationMs:Date.now()-V,...$(x),auth:y});v&&console.log(` run: ${v.id}${v.traceUrl?` \xB7 replay: ${v.traceUrl}`:""}`)}}if(m.length>1){console.log(`
|
|
109
108
|
maestro summary:`);for(let u of h){let g=u.exit===0?"pass":"fail";console.log(` ${g} ${a.relative(t,u.file)}`)}let o=h.filter(u=>u.exit===0).length;console.log(` ${o}/${h.length} passed`)}return d}export{Y as collectFlowFiles,Q as runMaestro};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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 O,d as A,e as E}from"./chunk-
|
|
4
|
+
import{b as O,d as A,e as E}from"./chunk-OULABB5B.js";import{a as S,b as T}from"./chunk-Z6IYPETC.js";import"./chunk-645WC3JJ.js";import{a as x}from"./chunk-SS2QGS3S.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import{f as v}from"./chunk-3JTUEUEQ.js";import"./chunk-EUND2TS4.js";import"./chunk-A37NXF3Z.js";import{q as y,s as b}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";import{mkdtempSync as B,writeFileSync as N}from"fs";import{tmpdir as C}from"os";import{join as k}from"path";var J=process.env.SOOTSIM_TEST_MODEL||"deepseek-v4-flash",_=18e3,j=18e4;function f(e,t){let r=e.indexOf(t);return r>=0?e[r+1]:void 0}function V(e,t){for(let r of t){let o=f(e,r);if(o)return o}}var F=new Set(["--origin","--preview-origin","--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]);function G(e){for(let t=0;t<e.length;t++){let r=e[t];if(r){if(F.has(r)){t+=1;continue}if(!r.startsWith("-"))return{prompt:r,index:t}}}return null}function H(e,t){return e.filter((r,o)=>o!==t)}async function Y(e,t){let r=H(e,t),o=y(r,{stripBooleanFlags:["--new","--headless","--headed","--electron","--preview-open"],stripValueFlags:[...F]}),i=b(o);try{let n=await v(i,{describe:!0,verbose:!1,filter:"",compact:!0,hideXy:!0}),s=[n.shell?`shell: ${JSON.stringify(n.shell)}`:"",n.keyboard?`keyboard: ${JSON.stringify(n.keyboard)}`:"",typeof n.nodeCount=="number"?`nodes: ${n.nodeCount}`:"",n.tree||""].filter(Boolean).join(`
|
|
5
5
|
`);return s.length>_?s.slice(0,_)+`
|
|
6
6
|
[tree truncated]`:s}finally{i.close()}}var K=`
|
|
7
7
|
You write Maestro-compatible rnx YAML flows from a user's plain-language test goal.
|
|
@@ -32,5 +32,5 @@ ${t||"[no tree available]"}
|
|
|
32
32
|
|
|
33
33
|
Generate the shortest replayable flow that verifies the goal from this current state.
|
|
34
34
|
`.trim()}async function z(e){let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/llm`,{method:"POST",headers:{"content-type":"application/json",authorization:e.authHeader},body:JSON.stringify({modelId:J,context:{systemPrompt:K,messages:[{role:"user",content:X(e.prompt,e.describe),timestamp:Date.now()}]},options:{maxTokens:1800,temperature:.2},threadId:null}),signal:AbortSignal.timeout(j)});if(!t.ok||!t.body){let a=await t.text().catch(()=>"");throw new Error(`/api/llm ${t.status}${a?`: ${a}`:""}`)}let r=t.body.getReader(),o=new TextDecoder,i=[],n="",c=a=>{let l=a.trim();if(!l)return;let u=JSON.parse(l);if(u.type==="text_delta"&&u.delta)i.push(u.delta);else if(u.type==="error")throw new Error(u.errorMessage||"llm error")};for(;;){let{value:a,done:l}=await r.read();if(l)break;n+=o.decode(a,{stream:!0});let u;for(;(u=n.indexOf(`
|
|
35
|
-
`))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function W(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function P(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=W(e);if(!P(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"rnx generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!P(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:x.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: rnx maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=S();if(!i||i.kind==="github")return console.error(' rnx maestro generate "<goal>" needs a login or RNX_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await z({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=B(k(C(),"sootsim-maestro-generate-")),p=k(u,"flow.yaml");N(p,l.yamlText),console.log(` flow: ${p}`);let M=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-
|
|
35
|
+
`))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function W(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function P(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=W(e);if(!P(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"rnx generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!P(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:x.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: rnx maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=S();if(!i||i.kind==="github")return console.error(' rnx maestro generate "<goal>" needs a login or RNX_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await z({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=B(k(C(),"sootsim-maestro-generate-")),p=k(u,"flow.yaml");N(p,l.yamlText),console.log(` flow: ${p}`);let M=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-5LUJSZST.js"),L=Q(e,o,p,c),w=await I(L),m=$(),h=D(),R=h.find(U=>U.status==="failure"),g=w===0?"passed":"failed",d=await A({origin:c,kind:"maestro",prompt:r,summary:l.summary,status:g,failureMessage:g==="failed"?R?.error??"flow playback failed":null,previewShareId:m?.shareId??null,owner:f(e,"--owner")??null,repo:f(e,"--repo")??null,durationMs:Date.now()-M,flowYamlSizeBytes:Buffer.byteLength(l.yamlText,"utf8"),...O(h),auth:i});return console.log(`
|
|
36
36
|
result: ${g}`),d&&console.log(` run: ${d.id}`),m?.previewUrl&&console.log(` preview: ${m.previewUrl}`),d?.traceUrl&&console.log(` replay: ${d.traceUrl}`),w}export{le as runMaestroGenerate};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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 r,b as s}from"./chunk-
|
|
4
|
+
import{a as r,b as s}from"./chunk-7XYZ5QH4.js";import"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.js";async function i(e,o){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
5
5
|
rnx mode screenshot \u2014 toggle the screenshot-mode chrome overlay
|
|
6
6
|
|
|
7
7
|
usage:
|
package/dist-cli/chunks/{optional-demo-registry-6F3OIAKL.js → optional-demo-registry-TJ7YL2W5.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a,b,c,d}from"./chunk-
|
|
4
|
+
import{a,b,c,d}from"./chunk-EUND2TS4.js";import"./chunk-MPYUIK6F.js";export{d as __withOptionalDemoAppsForTests,a as findInternalDemoRegistry,b as loadOptionalDemoApps,c as optionalDemoAppsSync};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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{i as N}from"./chunk-
|
|
4
|
+
import{i as N}from"./chunk-2G6JWRZ3.js";import"./chunk-3KEAKMUN.js";import"./chunk-XYDJGXWM.js";import"./chunk-SS2QGS3S.js";import"./chunk-IQ4TP2J2.js";import"./chunk-WMIFCBK4.js";import"./chunk-FZWAUWMR.js";import"./chunk-5RZ7UZAP.js";import"./chunk-UTUGLOQA.js";import"./chunk-P3Q6BOWW.js";import"./chunk-3JTUEUEQ.js";import"./chunk-DHA2XVOG.js";import"./chunk-G5JQXBCM.js";import"./chunk-QHD5HLWW.js";import"./chunk-EUND2TS4.js";import"./chunk-6XVKJVOI.js";import"./chunk-A37NXF3Z.js";import"./chunk-YIYZDGH7.js";import"./chunk-BD3V6HEX.js";import"./chunk-IYJVOL5E.js";import{q as P,s as R,v as d,w as x}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-NPCWXSGY.js";import"./chunk-XV7FXZ4J.js";import"./chunk-UTVDJF5N.js";import"./chunk-BHEY33C2.js";import"./chunk-B7JKDRC5.js";import"./chunk-4BNQLDNR.js";import"./chunk-EZS7IFYP.js";import"./chunk-MKN3NYBZ.js";import"./chunk-DR2HRF43.js";import"./chunk-MPYUIK6F.js";import{mkdirSync as D,writeFileSync as W}from"fs";import{dirname as A,resolve as J}from"path";import{WebSocket as B}from"ws";var C=e=>new Promise(o=>setTimeout(o,e)),S=class{ws;nextId=1;pending=new Map;listeners=new Set;ready;constructor(o){this.ws=new B(o,{maxPayload:1<<28}),this.ready=new Promise((r,n)=>{this.ws.once("open",()=>r()),this.ws.once("error",n)}),this.ws.on("message",r=>{let n=JSON.parse(r.toString());if(n.id&&this.pending.has(n.id)){let{res:t,rej:s}=this.pending.get(n.id);this.pending.delete(n.id),n.error?s(new Error(JSON.stringify(n.error))):t(n.result)}else if(n.method)for(let t of this.listeners)t(n.method,n.params)})}waitOpen(){return this.ready}on(o){this.listeners.add(o)}send(o,r={},n){let t=this.nextId++;return new Promise((s,a)=>{this.pending.set(t,{res:s,rej:a}),this.ws.send(JSON.stringify({id:t,method:o,params:r,...n?{sessionId:n}:{}}))})}close(){try{this.ws.close()}catch{}}};async function O(e,o){let r=Number(h(e,"--duration")??"5");if(!Number.isFinite(r)||r<=0)return console.error(" --duration must be a positive number (seconds)"),1;let n=Number(h(e,"--sample-interval")??"0.1"),t=Number(h(e,"--cdp-port")??process.env.SOOTSIM_CDP_PORT??"9222"),s=h(e,"--match")??"/rn/",a=h(e,"--output")??h(e,"-o"),i=J(process.cwd(),a??"/tmp/sootsim.cpuprofile"),l=[];try{l=await(await fetch(`http://localhost:${t}/json/list`)).json()}catch{return E(t),1}let f=l.find(m=>m.type==="page"&&m.url.includes(s));if(!f)return console.error(` no page target matching "${s}" on CDP :${t}`),console.error(` open targets: ${l.map(m=>m.url).join(", ")||"(none)"}`),1;let u=new S(f.webSocketDebuggerUrl);await u.waitOpen();try{let m=new Map;if(u.on((c,p)=>{c==="Target.attachedToTarget"&&p.targetInfo?.type==="worker"&&m.set(p.sessionId,p.targetInfo.url),c==="Target.detachedFromTarget"&&m.delete(p.sessionId)}),await u.send("Target.setAutoAttach",{autoAttach:!0,waitForDebuggerOnStart:!1,flatten:!0}),await C(500),m.size===0)return console.error(" no worker targets attached \u2014 is the app loaded in this tab?"),1;for(let c of m.keys())await u.send("Profiler.enable",{},c),await u.send("Profiler.setSamplingInterval",{interval:n*1e3},c),await u.send("Profiler.start",{},c);console.log(` recording ${r}s across ${m.size} worker(s) \u2014 interact now\u2026`),await C(r*1e3);let b=[];for(let[c,p]of m){let{profile:y}=await u.send("Profiler.stop",{},c);b.push({url:p,profile:y})}return b.sort((c,p)=>p.profile.samples.length-c.profile.samples.length),D(A(i),{recursive:!0}),b.forEach((c,p)=>{let y=p===0?i:i.replace(/(\.[^.]+)?$/,`.worker${p}$1`);if(W(y,JSON.stringify(c.profile)),console.log(` ${v(c.url)}: ${c.profile.samples.length} samples \u2192 ${y}`),o.verbose&&c.profile.samples.length>0)for(let $ of U(c.profile,12))console.log(` ${$.pct.toFixed(1).padStart(5)}% ${$.name} ${$.url}`)}),console.log(" open in chrome devtools \u2192 Performance \u2192 Load profile to inspect."),0}finally{u.close()}}function E(e){console.error(` perf cpu needs a CDP-enabled browser on :${e}.`),console.error(" the tenant worker can't be profiled via the JS Self-Profiler API (F28),"),console.error(" so the sim must expose Chrome remote debugging. easiest path \u2014"),console.error(" open the sim with a CDP port (it stays driveable over the bridge,"),console.error(" so you can scroll/navigate while profiling):"),console.error(""),console.error(` rnx open <metro-port> --new --driver playwright --cdp-port ${e}`),console.error(` rnx perf cpu --cdp-port ${e} --match <metro-port>`),console.error(""),console.error(" or launch a standalone CDP Chrome (not bridge-driveable):"),console.error(""),console.error(' "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \\'),console.error(` --remote-debugging-port=${e} --user-data-dir=/tmp/sootsim-cdp \\`),console.error(" --no-sandbox --disable-gpu-sandbox \\"),console.error(" --use-gl=angle --use-angle=metal \\"),console.error(' "http://localhost:5173/rn/<metro-port>" &'),console.error(""),console.error(" override the port with --cdp-port or $SOOTSIM_CDP_PORT.")}function v(e){return e?e.replace(/^https?:\/\/[^/]+/,"").replace(/\?.*$/,"").slice(-50):"(native)"}function U(e,o){let r=e.samples.length||1,n=new Map;for(let t of e.nodes){let s=t.callFrame,a=`${s.functionName||"(anonymous)"}@${v(s.url)}:${s.lineNumber}`,i=n.get(a)??{self:0,name:s.functionName||"(anonymous)",url:`${v(s.url)}:${s.lineNumber}`};i.self+=t.hitCount??0,n.set(a,i)}return[...n.values()].map(t=>({...t,pct:t.self/r*100})).sort((t,s)=>s.self-t.self).slice(0,o)}function h(e,o){let r=e.indexOf(o);if(!(r<0||r===e.length-1))return e[r+1]}function j(){console.log(`
|
|
5
5
|
rnx perf react \u2014 inspect React component render cost in the tenant worker
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.361 | (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{q as h,s as w,v as m,w as u}from"./chunk-
|
|
4
|
+
import{q as h,s as w,v as m,w as u}from"./chunk-E4QTH57Q.js";import"./chunk-6BJ2QYH3.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.js";var A=["not-determined","restricted","denied","authorized","limited","provisional","ephemeral","unavailable"],E=["app-tracking-transparency","bluetooth","calendars","camera","contacts","face-id","local-network","location-always","location-when-in-use","media-library","microphone","motion","notifications","photo-library","photo-library-add-only","reminders","siri","speech-recognition"];function b(){console.log(`
|
|
5
5
|
rnx permissions \u2014 inspect and change simulated operating-system permissions
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! rnx v0.1.361 | (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-3FZV36RQ.js";import"./chunk-EZS7IFYP.js";import"./chunk-4LJ2VGCC.js";import"./chunk-MKN3NYBZ.js";import"./chunk-MPYUIK6F.js";export{a as canPromptForPrivacyChoice,b as diagnosticsAllowedForCurrentProcess,c as ensurePrivacyChoice};
|