rnxsim 0.1.359 → 0.1.360
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-2OLDRPK7.js → agent-5TDEJY2A.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-JYEYTVYG.js → agent-wrapper-GLYSHBEI.js} +2 -2
- package/dist-cli/chunks/{app-fonts-A6PV7ITD.js → app-fonts-NMEJ3OZP.js} +2 -2
- package/dist-cli/chunks/{assert-NNS2US2Q.js → assert-RBQTSVK7.js} +2 -2
- package/dist-cli/chunks/{auth-CUNDIZQU.js → auth-LGORS2S7.js} +2 -2
- package/dist-cli/chunks/{beta-J2SIJ57C.js → beta-M62QOEAS.js} +2 -2
- package/dist-cli/chunks/{camera-CTF4GWF7.js → camera-TFRUZ5V3.js} +2 -2
- package/dist-cli/chunks/{chunk-PBH62D5C.js → chunk-23P7Q7CA.js} +2 -2
- package/dist-cli/chunks/{chunk-YE7E2KI4.js → chunk-2N4DDS5L.js} +1 -1
- package/dist-cli/chunks/{chunk-VVOG3GVC.js → chunk-3NJNPLC4.js} +2 -2
- package/dist-cli/chunks/{chunk-LDUF6LSD.js → chunk-3QESF6O2.js} +2 -2
- package/dist-cli/chunks/{chunk-WHHTKMDZ.js → chunk-3QFEMDXJ.js} +1 -1
- package/dist-cli/chunks/{chunk-3MXSKSP7.js → chunk-3ZI56VTV.js} +2 -2
- package/dist-cli/chunks/{chunk-M2Z52IIK.js → chunk-46K7DG36.js} +1 -1
- package/dist-cli/chunks/{chunk-DNB7X3BQ.js → chunk-4AOLJEUK.js} +2 -2
- package/dist-cli/chunks/{chunk-CSP7NLAG.js → chunk-5JATVHNM.js} +1 -1
- package/dist-cli/chunks/{chunk-ZVYFM4Y6.js → chunk-64WWMVKU.js} +1 -1
- package/dist-cli/chunks/{chunk-NWFVIQPE.js → chunk-6CQWGATK.js} +2 -2
- package/dist-cli/chunks/{chunk-XQYMAKIU.js → chunk-6FHBFHN2.js} +1 -1
- package/dist-cli/chunks/{chunk-Q3XEBRDM.js → chunk-6FUFHTAZ.js} +2 -2
- package/dist-cli/chunks/{chunk-GLUCOQJB.js → chunk-6MIV6KTM.js} +2 -2
- package/dist-cli/chunks/{chunk-OQM7J6KR.js → chunk-6RDUEAX5.js} +1 -1
- package/dist-cli/chunks/{chunk-TU5EOYXI.js → chunk-76SYSBLR.js} +1 -1
- package/dist-cli/chunks/{chunk-DT3FRHDA.js → chunk-7B55WEZX.js} +2 -2
- package/dist-cli/chunks/{chunk-HXWL5B7M.js → chunk-7RQOXQJI.js} +2 -2
- package/dist-cli/chunks/{chunk-HC6VQGIX.js → chunk-BNT7EOTY.js} +1 -1
- package/dist-cli/chunks/{chunk-MES42ZO3.js → chunk-CTMZKSXE.js} +1 -1
- package/dist-cli/chunks/{chunk-3PAROK2M.js → chunk-CZ6CXMLY.js} +1 -1
- package/dist-cli/chunks/{chunk-5QDKV53T.js → chunk-D7PFB4GR.js} +2 -2
- package/dist-cli/chunks/{chunk-NYLWOLUC.js → chunk-ECZ362F5.js} +1 -1
- package/dist-cli/chunks/{chunk-46DL6HR2.js → chunk-F4V472HT.js} +2 -2
- package/dist-cli/chunks/{chunk-LWJH6K2B.js → chunk-FFJU4B4P.js} +3 -3
- package/dist-cli/chunks/{chunk-4ZF26NVW.js → chunk-FGYT7WZO.js} +2 -2
- package/dist-cli/chunks/{chunk-XDOHOD4W.js → chunk-FUWXX4L2.js} +2 -2
- package/dist-cli/chunks/{chunk-WW6FQK4I.js → chunk-FW433UQA.js} +1 -1
- package/dist-cli/chunks/{chunk-2WKY6CCY.js → chunk-GVZBI566.js} +2 -2
- package/dist-cli/chunks/{chunk-KHZ5NG5O.js → chunk-HB2FQ3AI.js} +1 -1
- package/dist-cli/chunks/{chunk-BGV2MCLH.js → chunk-JKCJ3OZ6.js} +2 -2
- package/dist-cli/chunks/{chunk-IKLQSEQU.js → chunk-KXL34ZEX.js} +1 -1
- package/dist-cli/chunks/{chunk-YXBT3O2F.js → chunk-LQDKWRKB.js} +2 -2
- package/dist-cli/chunks/{chunk-XTKDLWAP.js → chunk-LVZ5XNHR.js} +3 -3
- package/dist-cli/chunks/{chunk-XLGOZM36.js → chunk-M3VPZY4N.js} +2 -2
- package/dist-cli/chunks/{chunk-JS2WDKY7.js → chunk-M7YQTFX6.js} +2 -2
- package/dist-cli/chunks/{chunk-2O66Y22P.js → chunk-MNOYVAVM.js} +2 -2
- package/dist-cli/chunks/{chunk-LUB66YZR.js → chunk-N2VQYLIL.js} +1 -1
- package/dist-cli/chunks/{chunk-JEHTFFFP.js → chunk-OGJN774A.js} +2 -2
- package/dist-cli/chunks/chunk-OHQYXHAO.js +4 -0
- package/dist-cli/chunks/{chunk-KYO373ZG.js → chunk-OOHFSXDL.js} +2 -2
- package/dist-cli/chunks/{chunk-GTEEBJOJ.js → chunk-OYCL4URG.js} +2 -2
- package/dist-cli/chunks/{chunk-VTCTU53L.js → chunk-P4F464O6.js} +1 -1
- package/dist-cli/chunks/{chunk-GO53F6H2.js → chunk-P6G2K65M.js} +2 -2
- package/dist-cli/chunks/{chunk-AAEBP7DF.js → chunk-PYCGLDQT.js} +1 -1
- package/dist-cli/chunks/{chunk-D6HKRX7V.js → chunk-QII4N4MD.js} +2 -2
- package/dist-cli/chunks/{chunk-JSX2XL45.js → chunk-QNWJPLWS.js} +3 -3
- package/dist-cli/chunks/{chunk-OXXJMSAQ.js → chunk-RVOGX6P4.js} +2 -2
- package/dist-cli/chunks/{chunk-ZMGSV5IV.js → chunk-TG7JA5QU.js} +1 -1
- package/dist-cli/chunks/{chunk-WSU6MO4Z.js → chunk-TQ7LABWH.js} +2 -2
- package/dist-cli/chunks/{chunk-7SUBILRJ.js → chunk-UGCUH4IQ.js} +2 -2
- package/dist-cli/chunks/{chunk-ZTIJA6PC.js → chunk-VLU7O6US.js} +2 -2
- package/dist-cli/chunks/{chunk-BA7VFILM.js → chunk-XJZLPMI2.js} +2 -2
- package/dist-cli/chunks/{chunk-SKOK6GUT.js → chunk-XMGIQZEE.js} +1 -1
- package/dist-cli/chunks/{chunk-CAE4RZKE.js → chunk-XOH5H5ZP.js} +2 -2
- package/dist-cli/chunks/{chunk-DIITNK6X.js → chunk-ZJAMYSRD.js} +2 -2
- package/dist-cli/chunks/{cleanup-NBNQJPGU.js → cleanup-B5WZL54D.js} +2 -2
- package/dist-cli/chunks/cli-version-ISS4IQG2.js +4 -0
- package/dist-cli/chunks/{compat-EGAGIY3E.js → compat-5YQSEUI6.js} +2 -2
- package/dist-cli/chunks/{config-NOYCGPQC.js → config-2AN3444K.js} +2 -2
- package/dist-cli/chunks/{control-DHFXSAMN.js → control-GYPDUVBY.js} +2 -2
- package/dist-cli/chunks/daemon-KDBWK2JE.js +4 -0
- package/dist-cli/chunks/{debug-LSCLW7KC.js → debug-HGURP42M.js} +3 -3
- package/dist-cli/chunks/{desktop-H4LA2PKU.js → desktop-22U445SI.js} +3 -3
- package/dist-cli/chunks/{detox-PGJSG4CZ.js → detox-WWREZVE5.js} +2 -2
- package/dist-cli/chunks/{device-26FAJCPP.js → device-YGHZQXOL.js} +2 -2
- package/dist-cli/chunks/{diagnose-S2R3UV7P.js → diagnose-VGDPNJ3Y.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-PVFAS3R2.js → disk-cleanup-L4S6CWE2.js} +2 -2
- package/dist-cli/chunks/drivers-E57M2QHQ.js +4 -0
- package/dist-cli/chunks/{film-VTY47ROP.js → film-7XAWD7C2.js} +3 -3
- package/dist-cli/chunks/flow-7R3ZY5B2.js +4 -0
- package/dist-cli/chunks/help-K6YJPUPC.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-S7PUB7ML.js → hidden-runtime-alias-U6ZB5ZW2.js} +2 -2
- package/dist-cli/chunks/{home-paths-2NWZWMU6.js → home-paths-ZMH2LG4J.js} +2 -2
- package/dist-cli/chunks/inspect-DVSRZN4P.js +4 -0
- package/dist-cli/chunks/install-desktop-N5PAE4D5.js +4 -0
- package/dist-cli/chunks/{login-I3YPNEHQ.js → login-MZ2XGHAS.js} +2 -2
- package/dist-cli/chunks/{logout-THVVM3NR.js → logout-FZWUOHWI.js} +2 -2
- package/dist-cli/chunks/{maestro-WI2YQ5LS.js → maestro-DRZBFKBJ.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-QS4FX64N.js → maestro-generate-5O6GE5IK.js} +3 -3
- package/dist-cli/chunks/{mode-M2GKOTKA.js → mode-DQFQ6TJD.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-VPKSRPHJ.js → optional-demo-registry-6F3OIAKL.js} +2 -2
- package/dist-cli/chunks/{perf-Q6236DQX.js → perf-67FAFWU7.js} +2 -2
- package/dist-cli/chunks/{permissions-YQDXSLMZ.js → permissions-LAUXGMCQ.js} +2 -2
- package/dist-cli/chunks/privacy-2GDUL5WJ.js +4 -0
- package/dist-cli/chunks/{record-MHMBLPJY.js → record-IKQ7MRAP.js} +3 -3
- package/dist-cli/chunks/{report-issue-M63ZLR23.js → report-issue-56SCTEPF.js} +2 -2
- package/dist-cli/chunks/reset-SJ4R2OMK.js +4 -0
- package/dist-cli/chunks/runtime-LWKXO2WB.js +4 -0
- package/dist-cli/chunks/{screenshot-command-ICJUIKRS.js → screenshot-command-7ETXR4RZ.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-BOI22ZBB.js → screenshot-layers-5AWDI4KX.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-YXUJMC4I.js → screenshots-capture-E2UHDC4V.js} +2 -2
- package/dist-cli/chunks/{serve-HNQIF64A.js → serve-ZYNSOFT4.js} +2 -2
- package/dist-cli/chunks/setup-5U4NLERT.js +4 -0
- package/dist-cli/chunks/{skills-YLPH7UXU.js → skills-UWVWZPVJ.js} +2 -2
- package/dist-cli/chunks/{state-RPFSMKNO.js → state-CIJIGYAA.js} +2 -2
- package/dist-cli/chunks/{storage-HEKHKX2S.js → storage-6GNPMH52.js} +2 -2
- package/dist-cli/chunks/store-CR76UYXH.js +4 -0
- package/dist-cli/chunks/telemetry-2QZQH335.js +4 -0
- package/dist-cli/chunks/{timeline-EGLA5PM7.js → timeline-TTRS64D5.js} +2 -2
- package/dist-cli/chunks/{upgrade-PSQ4MO5U.js → upgrade-QGUEIM6V.js} +2 -2
- package/dist-cli/chunks/upload-7NOVXFG3.js +4 -0
- package/dist-cli/chunks/{version-ADGX3PLN.js → version-ZFCZ2OSY.js} +2 -2
- package/dist-cli/chunks/{web-DYLEECHV.js → web-NQN3KN7Z.js} +2 -2
- package/dist-cli/chunks/welcome-5WE3E5JT.js +5 -0
- package/dist-cli/chunks/{what-happened-PQOET72N.js → what-happened-B4ZXFJYH.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 +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/chunk-A7TFHJ5P.js +0 -4
- package/dist-cli/chunks/cli-version-STPU7MKT.js +0 -4
- package/dist-cli/chunks/daemon-3XA65GKT.js +0 -4
- package/dist-cli/chunks/drivers-EEQHVBC7.js +0 -4
- package/dist-cli/chunks/flow-CJK3RYA7.js +0 -4
- package/dist-cli/chunks/help-VVLWX5H4.js +0 -4
- package/dist-cli/chunks/inspect-RNLIE6VH.js +0 -4
- package/dist-cli/chunks/install-desktop-3XVFMWWO.js +0 -4
- package/dist-cli/chunks/privacy-7OSUYOKL.js +0 -4
- package/dist-cli/chunks/reset-VORCUAL4.js +0 -4
- package/dist-cli/chunks/runtime-W7IAAYKW.js +0 -4
- package/dist-cli/chunks/setup-FDEUIVIC.js +0 -4
- package/dist-cli/chunks/store-VEY246BW.js +0 -4
- package/dist-cli/chunks/telemetry-ZRB5HWKS.js +0 -4
- package/dist-cli/chunks/upload-S6EEXIQX.js +0 -4
- package/dist-cli/chunks/welcome-IH52G7MO.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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-7RQOXQJI.js";import{n as x}from"./chunk-3NJNPLC4.js";import{b as y,c as R,d as f,e as w,f as a}from"./chunk-VLU7O6US.js";import{L as g,M as u,N as d,T as h,l as p}from"./chunk-5JATVHNM.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-ZMH2LG4J.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,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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 $e}from"./chunk-
|
|
4
|
+
import{a as q,b as G,c as $e}from"./chunk-FGYT7WZO.js";import{c as _e,d as Pe}from"./chunk-3QESF6O2.js";import{o as Ue}from"./chunk-QII4N4MD.js";import{q as Ie,s as Ae,u as x}from"./chunk-3NJNPLC4.js";import{a as Be}from"./chunk-FW433UQA.js";import{createHash as bt}from"crypto";import{readFileSync as b}from"fs";import ze from"path";import{gzipSync as fe,gunzipSync as wt}from"zlib";function Ne(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 ot,constants as it}from"node:zlib";var at=9;function Fe(e){return ot(e,{params:{[it.BROTLI_PARAM_QUALITY]:at}})}function le(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 lt(e){let t=le(12e4,`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 ut(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 lt(l),o++,r?.(o,i)}}))}function ct(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 dt(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=dt(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=le(3e4,"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=ct(i,e.bundleBytes,e.filesByHash,e.extras);await ut(l,e.concurrency??8,e.onPutProgress);let f=le(3e4,"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 pt(e){return e!==null&&typeof e=="object"?e:null}function Le(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ue(e){let t=pt(e);return t?t.schemaVersion===1&&Le(t.t)!==void 0&&Le(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function ft(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 Oe(e){return ft(e,ue)}import{execSync as mt}from"child_process";function de(e){try{return mt(e,{stdio:["ignore","pipe","ignore"],timeout:3e3,encoding:"utf8"}).trim()||null}catch{return null}}function ce(e){let t=e?.trim();return!t||!/^\d+$/.test(t)?null:Number(t)}function gt(){let e=de("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 pe(){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:ce(process.env.CONTRAST_PR_NUMBER)??ce(h),pullRequestTitle:s,githubRunId:process.env.GITHUB_RUN_ID?.trim()||null,source:"ci"}}let f=t??de("git rev-parse --abbrev-ref HEAD"),c=i?null:gt();return{owner:i??c?.owner??null,repo:l??c?.repo??null,branch:f==="HEAD"?null:f,commitSha:r??de("git rev-parse HEAD"),githubUsername:null,pullRequestNumber:ce(process.env.CONTRAST_PR_NUMBER),pullRequestTitle:s,githubRunId:null,source:"cli"}}function Gt(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 Jt(e){return e.auth?e.uploadedShare?!0:e.auth.kind==="github"||process.env.GITHUB_ACTIONS==="true":!1}async function Kt(e){let t=e.auth??q();if(!t)return null;let r=pe(),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 Mt(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 Tt(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 Ge=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://contrast.dev",Je=process.env.SOOTSIM_PREVIEW_ORIGIN||Be.origin;async function St(e){return e||(process.env.SOOTSIM_UPLOAD_ORIGIN?process.env.SOOTSIM_UPLOAD_ORIGIN:Ge)}function $(e){return e.replace(/\/$/,"")}function vt(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 xt(e){try{let t=new URL(e).hostname.toLowerCase();return t==="contrast.dev"||t.endsWith(".contrast.dev")}catch{return!1}}function Rt(e,t){return t?$(t):process.env.SOOTSIM_PREVIEW_ORIGIN?$(process.env.SOOTSIM_PREVIEW_ORIGIN):vt(e)?$(e):xt(e)?$(Je):$(e)}function kt(){console.log(`
|
|
6
6
|
rnx record upload \u2014 publish the current recorded bundle as a /preview/<id> link
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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}from"./chunk-
|
|
4
|
+
import{a as r}from"./chunk-CZ6CXMLY.js";var i=[{title:"Overview",route:"/docs/rnx/cli"},...r.slice().sort((o,t)=>o.order-t.order).map(o=>({title:o.navTitle,route:`/docs/rnx/cli/${o.slug}`}))];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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{k as n}from"./chunk-
|
|
4
|
+
import{k as n}from"./chunk-3NJNPLC4.js";import{M as t,j as r}from"./chunk-5JATVHNM.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,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.360 | (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-RVOGX6P4.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-5JATVHNM.js";import{a as H}from"./chunk-6CQWGATK.js";import{a as k}from"./chunk-FW433UQA.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">
|