rnxsim 0.1.369 → 0.1.370
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/auth.ts +2 -1
- package/cli/bin.ts +283 -273
- package/cli/commands/app-fonts.ts +3 -2
- package/cli/commands/assert.ts +8 -7
- package/cli/commands/auth.ts +2 -1
- package/cli/commands/box/checkout-plane.ts +45 -16
- package/cli/commands/config.ts +2 -1
- package/cli/commands/control.ts +37 -33
- package/cli/commands/daemon.ts +22 -21
- package/cli/commands/debug.ts +17 -15
- package/cli/commands/detox.ts +5 -4
- package/cli/commands/device.ts +6 -5
- package/cli/commands/electron.ts +6 -5
- package/cli/commands/flow.ts +12 -11
- package/cli/commands/inspect/find.ts +2 -1
- package/cli/commands/inspect/keyboard.ts +2 -1
- package/cli/commands/inspect/sleep.ts +2 -1
- package/cli/commands/inspect/wait-event.ts +4 -3
- package/cli/commands/inspect/wait-idle.ts +2 -1
- package/cli/commands/inspect/wait-ready.ts +3 -2
- package/cli/commands/inspect/wait-selector.ts +4 -3
- package/cli/commands/inspect/wait.ts +2 -1
- package/cli/commands/inspect.ts +82 -80
- package/cli/commands/install-desktop.ts +5 -4
- package/cli/commands/login.ts +3 -2
- package/cli/commands/mode.ts +2 -1
- package/cli/commands/record.ts +38 -37
- package/cli/commands/runtime.ts +9 -8
- package/cli/commands/screenshot-layers.ts +4 -3
- package/cli/commands/screenshot-mode.ts +2 -1
- package/cli/commands/screenshot.ts +8 -7
- package/cli/commands/screenshots-capture.ts +2 -1
- package/cli/commands/serve.ts +5 -4
- package/cli/commands/shell-boolean-mode.ts +2 -1
- package/cli/commands/skills.ts +11 -10
- package/cli/commands/telemetry.ts +2 -1
- package/cli/commands/three-mode.ts +2 -1
- package/cli/commands/timeline.ts +4 -3
- package/cli/commands/upload.ts +14 -13
- package/cli/commands/what-happened.ts +2 -1
- package/cli/recording-access.ts +6 -5
- package/cli/run-rnx.ts +140 -0
- package/dist-cli/bin.js +6 -6
- package/dist-cli/chunks/{agent-OUUFWDLF.js → agent-3R4424LW.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-7BE7DR4R.js → agent-wrapper-4PPWZWSY.js} +2 -2
- package/dist-cli/chunks/app-fonts-KYXB6CXQ.js +4 -0
- package/dist-cli/chunks/{assert-I3CMRNS7.js → assert-7EZOWGYQ.js} +11 -11
- package/dist-cli/chunks/auth-L7M36H6C.js +12 -0
- package/dist-cli/chunks/{beta-BHSKY4K4.js → beta-FKAF6YWJ.js} +2 -2
- package/dist-cli/chunks/{box-3CVWXVTT.js → box-5Y5VBMHV.js} +342 -342
- package/dist-cli/chunks/{camera-MNK73TYV.js → camera-XHF2RPFG.js} +2 -2
- package/dist-cli/chunks/{chunk-NPVEBXU3.js → chunk-2FOGXVOK.js} +2 -2
- package/dist-cli/chunks/{chunk-UDXQCEJU.js → chunk-3BG6UCQY.js} +2 -2
- package/dist-cli/chunks/{chunk-V7I4CTAX.js → chunk-3SOPYG7S.js} +2 -2
- package/dist-cli/chunks/{chunk-QE5MC4V3.js → chunk-3UXXYJVD.js} +1 -1
- package/dist-cli/chunks/{chunk-EKAEEWC2.js → chunk-5BR33NAZ.js} +1 -1
- package/dist-cli/chunks/{chunk-FGGESBWD.js → chunk-5RKRVS5A.js} +2 -2
- package/dist-cli/chunks/{chunk-MXWME7ET.js → chunk-64JAEJ6N.js} +1 -1
- package/dist-cli/chunks/{chunk-AKJYEX54.js → chunk-6A6L3VJR.js} +2 -2
- package/dist-cli/chunks/chunk-6GPS7U4X.js +74 -0
- package/dist-cli/chunks/{chunk-OROUEG22.js → chunk-6S5LJV2O.js} +2 -2
- package/dist-cli/chunks/{chunk-ZW6JXEVX.js → chunk-6W4HIWC7.js} +2 -2
- package/dist-cli/chunks/{chunk-6BMM6OCW.js → chunk-72S5FCBY.js} +2 -2
- package/dist-cli/chunks/{chunk-TBK5UXW2.js → chunk-7C7TJYZ3.js} +2 -2
- package/dist-cli/chunks/{chunk-D6MGELKZ.js → chunk-AALKIAUZ.js} +1 -1
- package/dist-cli/chunks/{chunk-WUR4FXWT.js → chunk-ARMXC3C3.js} +25 -25
- package/dist-cli/chunks/chunk-AVJBT5LF.js +4 -0
- package/dist-cli/chunks/chunk-BMIJZNKD.js +28 -0
- package/dist-cli/chunks/{chunk-N5KDDGV6.js → chunk-C7BA5CCM.js} +2 -2
- package/dist-cli/chunks/{chunk-F4OTMARL.js → chunk-CMVRTZ5G.js} +2 -2
- package/dist-cli/chunks/chunk-D24EOJ4C.js +24 -0
- package/dist-cli/chunks/{chunk-A56GQVNF.js → chunk-D2GZASRV.js} +1 -1
- package/dist-cli/chunks/{chunk-IYPMULI7.js → chunk-DHYTRCIP.js} +2 -2
- package/dist-cli/chunks/{chunk-X3PEDNLV.js → chunk-DMHSD6YJ.js} +2 -2
- package/dist-cli/chunks/{chunk-YPBDPVLR.js → chunk-DUXHYPBP.js} +2 -2
- package/dist-cli/chunks/{chunk-4SCVGBOX.js → chunk-DXV37CJN.js} +1 -1
- package/dist-cli/chunks/{chunk-H2GB2PLY.js → chunk-EOIBLKZO.js} +2 -2
- package/dist-cli/chunks/{chunk-UQJY6O72.js → chunk-EQ3OE2AV.js} +1 -1
- package/dist-cli/chunks/{chunk-3454VMHD.js → chunk-EWSWOWXK.js} +2 -2
- package/dist-cli/chunks/{chunk-FHRG772G.js → chunk-FA75F34Z.js} +1 -1
- package/dist-cli/chunks/{chunk-LU3AHE6T.js → chunk-FK4JSTZ3.js} +2 -2
- package/dist-cli/chunks/{chunk-AJJCYLBC.js → chunk-GJRLPJQL.js} +2 -2
- package/dist-cli/chunks/{chunk-WGE2P25F.js → chunk-GRO74J2X.js} +1 -1
- package/dist-cli/chunks/chunk-H5X5FJ63.js +99 -0
- package/dist-cli/chunks/chunk-HEKHLQ3B.js +497 -0
- package/dist-cli/chunks/chunk-HQQTS2CB.js +30 -0
- package/dist-cli/chunks/{chunk-DKSZZABN.js → chunk-I52NT6VG.js} +1 -1
- package/dist-cli/chunks/{chunk-A72MIIJI.js → chunk-IDLFVRPN.js} +1 -1
- package/dist-cli/chunks/{chunk-6F3WOWFC.js → chunk-JZLDHPB7.js} +2 -2
- package/dist-cli/chunks/{chunk-ZNNE5MAV.js → chunk-LIMWG54N.js} +1 -1
- package/dist-cli/chunks/{chunk-TTUZ5MCK.js → chunk-LUOHRBJG.js} +1 -1
- package/dist-cli/chunks/{chunk-B5NW4TT3.js → chunk-LXPHL6FO.js} +2 -2
- package/dist-cli/chunks/{chunk-TAC4CEIX.js → chunk-MDCY532E.js} +2 -2
- package/dist-cli/chunks/{chunk-45X3D6CI.js → chunk-NJMU5BN6.js} +1 -1
- package/dist-cli/chunks/{chunk-2APXX4RN.js → chunk-NR2V2ONN.js} +2 -2
- package/dist-cli/chunks/{chunk-JH5KE2OI.js → chunk-NTC46LSA.js} +2 -2
- package/dist-cli/chunks/{chunk-RV76U3EI.js → chunk-O6QLKSAM.js} +10 -10
- package/dist-cli/chunks/{chunk-ZEF57HQO.js → chunk-OJZHECGH.js} +1 -1
- package/dist-cli/chunks/chunk-OTFTMGAL.js +7 -0
- package/dist-cli/chunks/{chunk-RYGQ6LZN.js → chunk-PAUEZO6F.js} +2 -2
- package/dist-cli/chunks/{chunk-CCI3DZKE.js → chunk-PIZXOXBL.js} +2 -2
- package/dist-cli/chunks/{chunk-JLOOLA47.js → chunk-PNOENVMJ.js} +1 -1
- package/dist-cli/chunks/{chunk-YLNSLMQM.js → chunk-Q4MRJ6PO.js} +2 -2
- package/dist-cli/chunks/{chunk-5QFJFASW.js → chunk-RRX52O37.js} +1 -1
- package/dist-cli/chunks/{chunk-FBMNYSSW.js → chunk-U63T6LIQ.js} +1 -1
- package/dist-cli/chunks/{chunk-2PVVIPQS.js → chunk-UFVAAWGZ.js} +1 -1
- package/dist-cli/chunks/{chunk-CZ2HCNRK.js → chunk-VVQCZ42C.js} +1 -1
- package/dist-cli/chunks/{chunk-USHV3QFZ.js → chunk-WFQHT4QD.js} +2 -2
- package/dist-cli/chunks/{chunk-DCPDMF27.js → chunk-WPV4H5S4.js} +2 -2
- package/dist-cli/chunks/{chunk-SSBZA5VZ.js → chunk-X6WQ4YWE.js} +1 -1
- package/dist-cli/chunks/{chunk-VGJLCFSC.js → chunk-YIZGNT7A.js} +1 -1
- package/dist-cli/chunks/{chunk-JXARZBWS.js → chunk-Z2VBSNFI.js} +1 -1
- package/dist-cli/chunks/{chunk-4G4VCT2M.js → chunk-Z3DENGXW.js} +2 -2
- package/dist-cli/chunks/{cleanup-H4XFRMZV.js → cleanup-MXMMJ7JW.js} +2 -2
- package/dist-cli/chunks/cli-version-MLS55UTY.js +4 -0
- package/dist-cli/chunks/{compat-NKGYERLN.js → compat-E6KE5KDI.js} +2 -2
- package/dist-cli/chunks/config-QSLLVZDS.js +13 -0
- package/dist-cli/chunks/{connect-WWWAVVCF.js → connect-QE4VU6GB.js} +2 -2
- package/dist-cli/chunks/control-XD5F6K5T.js +4 -0
- package/dist-cli/chunks/daemon-UN5SE2JO.js +4 -0
- package/dist-cli/chunks/{debug-RO6GLDIM.js → debug-5FG3MBJS.js} +20 -20
- package/dist-cli/chunks/desktop-5EZX7NX5.js +31 -0
- package/dist-cli/chunks/detox-WJGQP5TM.js +52 -0
- package/dist-cli/chunks/device-D7LKCAMS.js +18 -0
- package/dist-cli/chunks/{diagnose-HDRTUPDO.js → diagnose-A3W6ZTGA.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-QP2NYN43.js → disk-cleanup-BDRHX5ZG.js} +2 -2
- package/dist-cli/chunks/{do-chain-6LP6SV5J.js → do-chain-RUJNRPPF.js} +2 -2
- package/dist-cli/chunks/drivers-3NJ5RL6X.js +4 -0
- package/dist-cli/chunks/{env-4XD5D2G6.js → env-U67SQVTV.js} +2 -2
- package/dist-cli/chunks/{film-I5SIXLS5.js → film-XC6UAQ3V.js} +3 -3
- package/dist-cli/chunks/flow-FHZZD3P6.js +4 -0
- package/dist-cli/chunks/help-BYYDUSXF.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-LJV2S4M2.js → hidden-runtime-alias-7S2TNZXG.js} +2 -2
- package/dist-cli/chunks/{home-paths-RFI2QRC3.js → home-paths-LMO5LB4F.js} +2 -2
- package/dist-cli/chunks/inspect-RQCTWDCC.js +4 -0
- package/dist-cli/chunks/install-desktop-GOWXCQUE.js +4 -0
- package/dist-cli/chunks/login-JIU42S4C.js +26 -0
- package/dist-cli/chunks/{logout-DKXZZ6HU.js → logout-JTAWQXZO.js} +2 -2
- package/dist-cli/chunks/{maestro-WKGVVWRA.js → maestro-TYBQYOGB.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-KCK6RK2C.js → maestro-generate-YLAGWVKE.js} +3 -3
- package/dist-cli/chunks/mode-DV24ZRZ6.js +26 -0
- package/dist-cli/chunks/{optional-demo-registry-EUSKBIPP.js → optional-demo-registry-JZH66VIM.js} +2 -2
- package/dist-cli/chunks/{perf-IMZMA5MT.js → perf-LXXJ4EAX.js} +2 -2
- package/dist-cli/chunks/{permissions-SLWXTLH6.js → permissions-KAOVZUPW.js} +2 -2
- package/dist-cli/chunks/{platform-HQ735LAE.js → platform-KW35446W.js} +3 -3
- package/dist-cli/chunks/privacy-MIFE72CG.js +4 -0
- package/dist-cli/chunks/record-EK3ETFHZ.js +72 -0
- package/dist-cli/chunks/report-issue-NW5PCAZF.js +29 -0
- package/dist-cli/chunks/reset-RZ4O5AFJ.js +4 -0
- package/dist-cli/chunks/resolve-target-7R5BNYMM.js +4 -0
- package/dist-cli/chunks/runtime-MZHLSRS6.js +4 -0
- package/dist-cli/chunks/{screenshot-command-HAJB5FHK.js → screenshot-command-TQSPTFT2.js} +11 -11
- package/dist-cli/chunks/screenshot-layers-IZP3L3AQ.js +20 -0
- package/dist-cli/chunks/screenshots-capture-K7LJOVAE.js +42 -0
- package/dist-cli/chunks/{serve-TM46TKFW.js → serve-MMX4WXXG.js} +18 -18
- package/dist-cli/chunks/setup-YFP3KEQZ.js +4 -0
- package/dist-cli/chunks/{sim-client-LQUZSO45.js → sim-client-KLAYIFOC.js} +2 -2
- package/dist-cli/chunks/skills-N4D3POIS.js +50 -0
- package/dist-cli/chunks/{state-RUVM4Z4S.js → state-ES6TFQZF.js} +2 -2
- package/dist-cli/chunks/{storage-GQ33UTYN.js → storage-52DR5V2C.js} +2 -2
- package/dist-cli/chunks/store-HOL45WCI.js +4 -0
- package/dist-cli/chunks/telemetry-BV6OTYPF.js +4 -0
- package/dist-cli/chunks/timeline-NRVNB5JR.js +24 -0
- package/dist-cli/chunks/{upgrade-AZDZLUIT.js → upgrade-LNED5YQ2.js} +2 -2
- package/dist-cli/chunks/upload-RXKHFIBU.js +4 -0
- package/dist-cli/chunks/{version-N3ALB75G.js → version-VEF2DYGG.js} +2 -2
- package/dist-cli/chunks/{web-XPHFZATA.js → web-CGDE6S73.js} +2 -2
- package/dist-cli/chunks/welcome-FT2AMUWW.js +5 -0
- package/dist-cli/chunks/what-happened-FSIDWL32.js +25 -0
- package/dist-cli/chunks/{ws-bridge-RUXOYOU6.js → ws-bridge-QXFQLRE7.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +2 -1
- package/dist-lib/react-native-host-modules.mjs +2 -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 +79 -47
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/src/react-native-host-modules.ts +1 -0
- package/dist-cli/chunks/app-fonts-66V7TL26.js +0 -4
- package/dist-cli/chunks/auth-3FMWUVJH.js +0 -12
- package/dist-cli/chunks/chunk-3NLB5LCN.js +0 -28
- package/dist-cli/chunks/chunk-5RWUFIZW.js +0 -24
- package/dist-cli/chunks/chunk-COXCR6UU.js +0 -7
- package/dist-cli/chunks/chunk-ROISJKH3.js +0 -99
- package/dist-cli/chunks/chunk-SUHAD6N2.js +0 -30
- package/dist-cli/chunks/chunk-TIB3CTRX.js +0 -497
- package/dist-cli/chunks/chunk-YFZLDFZK.js +0 -74
- package/dist-cli/chunks/cli-version-MJWLDXBW.js +0 -4
- package/dist-cli/chunks/config-WK7467KI.js +0 -13
- package/dist-cli/chunks/control-ESI7IZNN.js +0 -4
- package/dist-cli/chunks/daemon-UCLO27YP.js +0 -4
- package/dist-cli/chunks/desktop-FF34Z5X4.js +0 -31
- package/dist-cli/chunks/detox-Q3CWY5UX.js +0 -52
- package/dist-cli/chunks/device-WN4ZWLES.js +0 -18
- package/dist-cli/chunks/drivers-OR2JPAXD.js +0 -4
- package/dist-cli/chunks/flow-4GWW5DYT.js +0 -4
- package/dist-cli/chunks/help-MIIWOT3C.js +0 -4
- package/dist-cli/chunks/inspect-3ZGNJENJ.js +0 -4
- package/dist-cli/chunks/install-desktop-BYOJVTLS.js +0 -4
- package/dist-cli/chunks/login-GNIFSAFE.js +0 -26
- package/dist-cli/chunks/mode-YVMX7OJY.js +0 -26
- package/dist-cli/chunks/privacy-EDC7PF7G.js +0 -4
- package/dist-cli/chunks/record-N4KTTVDI.js +0 -72
- package/dist-cli/chunks/report-issue-PP752HAD.js +0 -29
- package/dist-cli/chunks/reset-DRMKGVP4.js +0 -4
- package/dist-cli/chunks/resolve-target-7WWI32R3.js +0 -4
- package/dist-cli/chunks/runtime-EKJV2ZVI.js +0 -4
- package/dist-cli/chunks/screenshot-layers-GOCJVM2G.js +0 -20
- package/dist-cli/chunks/screenshots-capture-YYJLYA3V.js +0 -42
- package/dist-cli/chunks/setup-FVPVIYE4.js +0 -4
- package/dist-cli/chunks/skills-V5TE57FN.js +0 -50
- package/dist-cli/chunks/store-IKNBDDKM.js +0 -4
- package/dist-cli/chunks/telemetry-2ZVU6WLK.js +0 -4
- package/dist-cli/chunks/timeline-LP7DMJYT.js +0 -24
- package/dist-cli/chunks/upload-DFQK2Q7X.js +0 -4
- package/dist-cli/chunks/welcome-2NFYLWLJ.js +0 -5
- package/dist-cli/chunks/what-happened-EJ5PHKT7.js +0 -25
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{b as U}from"./chunk-SSBZA5VZ.js";import{a as M}from"./chunk-JH5KE2OI.js";import"./chunk-ZW6JXEVX.js";import"./chunk-FBMNYSSW.js";import{a as F}from"./chunk-MXWME7ET.js";import"./chunk-DKSZZABN.js";import{execSync as N}from"node:child_process";import{mkdirSync as O,mkdtempSync as E,rmSync as j,writeFileSync as G}from"node:fs";import{tmpdir as q}from"node:os";import{dirname as B,isAbsolute as L,join as I,resolve as z}from"node:path";import{chromium as W}from"playwright-core";var H=`
|
|
5
|
-
rnx screenshot appstore capture \u2014 headlessly capture + upload App Store slides
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx screenshot appstore capture --org <org> --repo <repo> [options]
|
|
9
|
-
|
|
10
|
-
what it does:
|
|
11
|
-
boots the org-mode build shell in headless GPU Chrome (authed via your
|
|
12
|
-
\`rnx login\` session), captures each slide through the live screenshot
|
|
13
|
-
composer so every slide gets editable layers (captureRef + cleanRef +
|
|
14
|
-
screenRef), and lets the shell auto-upload them to your org deck.
|
|
15
|
-
|
|
16
|
-
options:
|
|
17
|
-
--org <org> github org slug (required)
|
|
18
|
-
--repo <repo> repo name (required)
|
|
19
|
-
--branch <branch> build branch to boot (default: main)
|
|
20
|
-
--platform <p> ios | android (default: ios)
|
|
21
|
-
--slides <list> 1-based indices to capture, e.g. 1,3,5 (default: all)
|
|
22
|
-
--dry-run capture + report refs, do NOT upload (PUTs aborted)
|
|
23
|
-
--force allow overwriting a NON-EMPTY existing deck
|
|
24
|
-
--out <dir> also write composed App-Store PNGs locally
|
|
25
|
-
--shell-origin <url> origin serving /build (default: your session origin)
|
|
26
|
-
--api-origin <url> origin for deck/capture APIs (default: session origin)
|
|
27
|
-
--timeout <ms> per-step bridge timeout (default: 45000)
|
|
28
|
-
--json machine-readable summary
|
|
29
|
-
|
|
30
|
-
examples:
|
|
31
|
-
rnx screenshot appstore capture --org acme --repo my-app --dry-run
|
|
32
|
-
rnx screenshot appstore capture --org acme --repo my-app --branch main --force
|
|
33
|
-
`;function J(t){let e=a=>{let d=t.indexOf(a);return d>=0?t[d+1]:void 0},n=a=>t.includes(a),s=e("--slides"),i=s?s.split(",").map(a=>Number(a.trim())).filter(a=>Number.isInteger(a)&&a>0):null;return{org:e("--org")??"",repo:e("--repo")??"",branch:e("--branch")??"main",platform:e("--platform")??"ios",slides:i&&i.length?i:null,dryRun:n("--dry-run"),force:n("--force"),out:e("--out")??null,shellOrigin:e("--shell-origin")??null,apiOrigin:e("--api-origin")??null,timeoutMs:Number(e("--timeout")??"45000")||45e3,json:n("--json")}}function Y(){let t=M();if(t&&t.kind==="session")return{token:t.token,origin:t.origin};process.stderr.write(`
|
|
34
|
-
rnx screenshot appstore capture needs a logged-in session.
|
|
35
|
-
run \`rnx login\` first (the captured slides upload to that account).
|
|
36
|
-
|
|
37
|
-
`),process.exit(1)}function K(t){let e=t.replace(/^\[|\]$/g,"").toLowerCase();return e==="localhost"||e.endsWith(".localhost")||e==="::1"||/^127(?:\.\d{1,3}){3}$/.test(e)}function Q(t){let e=new URL(t);if(K(e.hostname)){let s=(Number(e.port)||3e3)-3e3;if(s>=0&&s<=1e3)return e.port=String(5173+s),e.origin}return e.hostname==="contrast.dev"||e.hostname.endsWith(".contrast.dev")?F.origin:t}function V(){try{return Number(N("sysctl -n vm.loadavg").toString().trim().split(/\s+/)[1])||0}catch{return 0}}async function X(t,e,n,s){let i=await fetch(`${t}/api/sootsim/screenshot-decks?org=${encodeURIComponent(n)}&repo=${encodeURIComponent(s)}`,{headers:{authorization:`Bearer ${e}`}});if(!i.ok)return[];let a=await i.json().catch(()=>null),d=[];for(let g of a?.decks??[])Array.isArray(g.config?.frames)&&d.push(...g.config.frames);return d}async function Z(t,e,n,s){let i=await fetch(`${t}/api/sootsim/screenshot-capture?ref=${encodeURIComponent(s)}&org=${encodeURIComponent(n)}`,{headers:{authorization:`Bearer ${e}`}});return i.ok?`data:image/png;base64,${Buffer.from(await i.arrayBuffer()).toString("base64")}`:null}async function _(t,e){let n=Date.now()+e;for(;Date.now()<n;){for(let s of t.frames())if(await s.evaluate(()=>!!globalThis.SootSim?.bridges?.screenshotControl).catch(()=>!1))return s;await t.waitForTimeout(250)}throw new Error("screenshot bridge never appeared \u2014 the build shell did not boot screenshot mode (check --branch/--platform has a ready build, and you are logged in)")}async function T(t){return t.evaluate(async()=>{let n=globalThis.SootSim?.bridges?.screenshotControl;if(!n)throw new Error("screenshotControl missing");return n.getState()})}async function ee(t){await t.evaluate(async()=>{let e=globalThis.SootSim?.bridges?.settings,n=Date.now()+3e3;for(;Date.now()<n;){if(e?.get?.()?.screenshotMode)return;await new Promise(s=>setTimeout(s,50))}e&&!e.get().screenshotMode&&(e.set("screenshotMode",!0),e.get().showFrame||e.set("showFrame",!0))})}async function te(t,e,n,s){await t.evaluate(async([i,a,d])=>{let g=globalThis.SootSim,h=g?.bridges?.screenshotControl;if(!h)throw new Error("screenshotControl missing");let w=b=>new Promise(u=>setTimeout(u,b));if(a){h.focusSlide(i);let b=Date.now()+3e4,u=g?.bridges?.threeMode;for(;Date.now()<b&&(u=g?.bridges?.threeMode,!(u?.setScreenImage&&u?.captureStage&&u?.getState?.()?.ready));)await w(150);await w(1e3);let c=a;u?.configure?.({colorway:c.colorway,background:c.background,...c.customGradient?{customGradient:c.customGradient}:{},setting:c.setting,focus:c.focus,environment:c.environmentActive?{pins:c.environmentPins??{},effects:c.environmentEffects??{}}:!1,pose:{phonePosition:c.phonePosition,phoneRotation:c.phoneRotation,cameraPosition:c.cameraPosition,target:c.target}}),await w(900),d&&u?.setScreenImage&&(u.setScreenImage(d),await w(1200))}await h.capture(i)},[e,n,s])}async function ge(t){if(t.includes("--help")||t.includes("-h"))return console.log(H),0;let e=J(t);if(!e.org||!e.repo)return process.stderr.write(` --org and --repo are required (see --help)
|
|
38
|
-
`),1;let{token:n,origin:s}=Y(),i=(e.apiOrigin??s).replace(/\/$/,""),a=(e.shellOrigin??Q(i)).replace(/\/$/,""),d=await X(i,n,e.org,e.repo);if(!e.dryRun&&!e.force&&d.length>0)return process.stderr.write(` refusing to overwrite the existing ${e.org}/${e.repo} deck (${d.length} slide(s)). re-run with --force to replace it, or --dry-run to preview.
|
|
39
|
-
`),1;let g=V(),h=Number(N("sysctl -n hw.ncpu").toString().trim())||8;if(g>h)return process.stderr.write(` load average ${g.toFixed(1)} exceeds ${h} cores \u2014 tear down other work first.
|
|
40
|
-
`),1;let w=`${a}/build/${encodeURIComponent(e.org)}/${encodeURIComponent(e.repo)}/${encodeURIComponent(e.branch)}?platform=${encodeURIComponent(e.platform)}&ssMode=1`,b=E(I(q(),"sootsim-capture-")),{browser:u,reapNow:c}=await U(o=>W.launchPersistentContext(b,o),{headless:!0,viewport:{width:393,height:852},deviceScaleFactor:3,args:["--hide-scrollbars"]});await u.addInitScript(o=>{try{localStorage.setItem("sootsim.session.token",o)}catch{}},n);let y=[],m=u.pages()[0]??await u.newPage();e.dryRun?await m.route(/\/api\/sootsim\/screenshot-(decks|capture)/,o=>o.request().method()==="PUT"?o.abort():o.continue()):m.on("response",o=>{let p=o.url();o.request().method()==="PUT"&&(p.includes("/api/sootsim/screenshot-decks")?y.push({kind:"deck",status:o.status()}):p.includes("/api/sootsim/screenshot-capture")&&y.push({kind:"capture",status:o.status()}))});let R=[];m.on("pageerror",o=>R.push(o.message));let A=m.waitForResponse(o=>o.url().includes("/api/sootsim/screenshot-decks")&&o.request().method()==="GET",{timeout:e.timeoutMs}).catch(()=>null);try{await m.goto(w,{waitUntil:"domcontentloaded",timeout:e.timeoutMs});let o=await _(m,e.timeoutMs);await ee(o),await A,await m.waitForTimeout(800);let p=await T(o);if(p.slides.length===0)return process.stderr.write(` the deck has no slides to capture \u2014 add slides in the composer first.
|
|
41
|
-
`),1;let $=e.slides?p.slides.filter(r=>e.slides.includes(r.index)):p.slides;console.log(` ${p.projectName} on ${p.deviceModel} \u2014 capturing ${$.length}/${p.slides.length} slide(s)${e.dryRun?" (dry-run, no upload)":""}`);for(let r of $)try{let l=d[r.index-1],f=l?.threeScene??null,C=f&&l?.screenRef?await Z(i,n,e.org,l.screenRef):null;await te(o,r.index,f,C),console.log(` \u2713 slide ${r.index} "${r.title.slice(0,40)}"`)}catch(l){console.log(` \u2717 slide ${r.index} "${r.title.slice(0,40)}" \u2014 ${l.message}`)}e.dryRun||await m.waitForTimeout(2500);let S=(await T(o)).slides.filter(r=>$.some(l=>l.id===r.id)),v=[];if(e.out){let r=L(e.out)?e.out:z(process.cwd(),e.out);for(let l of S){if(!l.captureRef)continue;let f=await o.evaluate(async k=>{let x=globalThis.SootSim?.bridges?.screenshotControl;if(!x)throw new Error("screenshotControl missing");return x.exportSlide(k)},l.index),C=f.dataUrl.match(/^data:[^;]+;base64,(.+)$/);if(C){let k=I(r,f.name);O(B(k),{recursive:!0}),G(k,Buffer.from(C[1],"base64")),v.push(k)}}}let P=S.filter(r=>r.captureRef&&r.cleanRef),D={org:e.org,repo:e.repo,branch:e.branch,dryRun:e.dryRun,slides:S.map(r=>({index:r.index,title:r.title,captureRef:!!r.captureRef,cleanRef:!!r.cleanRef,screenRef:!!r.screenRef,captureMode:r.captureMode})),editableCount:P.length,uploads:e.dryRun?"skipped (dry-run)":y,written:v,pageErrors:R.slice(0,5)};if(e.json)console.log(JSON.stringify(D,null,2));else{console.log(`
|
|
42
|
-
${P.length}/${S.length} slide(s) now have editable layers (captureRef + cleanRef)`);let r=S.filter(l=>l.captureRef&&!l.cleanRef);if(r.length&&console.log(` \u26A0 ${r.length} slide(s) baked a flat capture only (no cleanRef) \u2014 typically 3d slides whose scene didn't restore for a re-bake.`),!e.dryRun){let l=y.filter(f=>f.status>=200&&f.status<300).length;console.log(` uploads: ${l}/${y.length} PUT(s) succeeded`)}v.length&&console.log(` wrote ${v.length} local PNG(s) to ${e.out}`),R.length&&console.log(` \u26A0 ${R.length} page error(s) during capture`)}return 0}finally{await u.close().catch(()=>{}),c(),j(b,{recursive:!0,force:!0})}}export{ge as runScreenshotsCapture};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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-6BMM6OCW.js";import"./chunk-LU3AHE6T.js";import"./chunk-5RWUFIZW.js";import"./chunk-COXCR6UU.js";import"./chunk-OROUEG22.js";import"./chunk-QE5MC4V3.js";import"./chunk-X3PEDNLV.js";import"./chunk-RYGQ6LZN.js";import"./chunk-AKJYEX54.js";import"./chunk-UDXQCEJU.js";import"./chunk-EKAEEWC2.js";import"./chunk-2APXX4RN.js";import"./chunk-A56GQVNF.js";import"./chunk-D6MGELKZ.js";import"./chunk-3454VMHD.js";import"./chunk-JLOOLA47.js";import"./chunk-USHV3QFZ.js";import"./chunk-UQJY6O72.js";import"./chunk-YFZLDFZK.js";import"./chunk-FGGESBWD.js";import"./chunk-CCI3DZKE.js";import"./chunk-N5KDDGV6.js";import"./chunk-45X3D6CI.js";import"./chunk-6F3WOWFC.js";import"./chunk-F4OTMARL.js";import"./chunk-H2GB2PLY.js";import"./chunk-ZEF57HQO.js";import"./chunk-5QFJFASW.js";import"./chunk-FHRG772G.js";import"./chunk-IYPMULI7.js";import"./chunk-TBK5UXW2.js";import"./chunk-V7I4CTAX.js";import"./chunk-WGE2P25F.js";import"./chunk-A72MIIJI.js";import"./chunk-FBMNYSSW.js";import"./chunk-TAC4CEIX.js";import"./chunk-MXWME7ET.js";import"./chunk-DKSZZABN.js";export{a as runSetup};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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 as h}from"./chunk-MXWME7ET.js";import"./chunk-DKSZZABN.js";import*as l from"fs";import*as L from"os";import*as a from"path";import{fileURLToPath as x}from"url";function D(){try{let e=x(import.meta.resolve(`${h.packageName}/package.json`));return a.join(a.dirname(e),"skills")}catch{let e=a.dirname(x(import.meta.url));return a.resolve(e,"../../skills")}}var d=D(),j=new Set(["all","codex","claude"]);function S(){console.log(`rnx skill
|
|
5
|
-
|
|
6
|
-
install and inspect bundled rnx agent skills.
|
|
7
|
-
|
|
8
|
-
usage:
|
|
9
|
-
rnx skill install [all|codex|claude] [skill-name...]
|
|
10
|
-
rnx skill install --target <dir> [skill-name...]
|
|
11
|
-
rnx skill show [skill-name]
|
|
12
|
-
|
|
13
|
-
commands:
|
|
14
|
-
install install skills; no target means all supported local agents
|
|
15
|
-
show list bundled skills, or print one skill markdown
|
|
16
|
-
|
|
17
|
-
targets:
|
|
18
|
-
all Codex and Claude Code (default)
|
|
19
|
-
codex $CODEX_HOME/skills, or ~/.codex/skills
|
|
20
|
-
claude $CLAUDE_CONFIG_DIR/skills, or ~/.claude/skills
|
|
21
|
-
`)}function y(){console.log(`rnx skill install
|
|
22
|
-
|
|
23
|
-
install bundled rnx skills in the agent skill layout: <skill>/SKILL.md.
|
|
24
|
-
each skill directory is symlinked back to its source, so edits stay live
|
|
25
|
-
without a re-install. an existing install from an older CLI is upgraded in
|
|
26
|
-
place; an unrelated skill directory is left alone unless --force is passed.
|
|
27
|
-
|
|
28
|
-
usage:
|
|
29
|
-
rnx skill install [all|codex|claude] [skill-name...]
|
|
30
|
-
rnx skill install --target <dir> [skill-name...]
|
|
31
|
-
|
|
32
|
-
options:
|
|
33
|
-
--force, -f replace a conflicting existing skill with the symlink
|
|
34
|
-
|
|
35
|
-
examples:
|
|
36
|
-
rnx skill install
|
|
37
|
-
rnx skill install codex
|
|
38
|
-
rnx skill install codex rnx-debug
|
|
39
|
-
rnx skill install --force rnx-debug
|
|
40
|
-
`)}function g(e,n){let t=process.env[e]||a.join(L.homedir(),n);return a.join(t,"skills")}function k(){return[{label:"codex",dir:g("CODEX_HOME",".codex")},{label:"claude",dir:g("CLAUDE_CONFIG_DIR",".claude")}]}function v(e){if(e==="all")return k();if(e==="codex")return[{label:"codex",dir:g("CODEX_HOME",".codex")}];if(e==="claude")return[{label:"claude",dir:g("CLAUDE_CONFIG_DIR",".claude")}];console.error(` unknown skill install target: ${e}`),console.error(" expected all, codex, or claude"),process.exit(1)}function C(e){let n=e.match(/^---\n([\s\S]*?)\n---/);if(!n)return null;let t=n[1],s=I(t,"name");return s?{name:s,description:I(t,"description")||""}:null}function I(e,n){let t=e.split(`
|
|
41
|
-
`),s=`${n}:`;for(let i=0;i<t.length;i++){let r=t[i];if(!r.startsWith(s))continue;let o=r.slice(s.length).trim();if(o===">-"||o===">"||o==="|-"||o==="|"){let c=[];for(let u=i+1;u<t.length;u++){let f=t[u];if(/^[A-Za-z0-9_-]+:\s*/.test(f))break;if(f.trim()===""){c.push("");continue}if(!/^\s+/.test(f))break;c.push(f.trim())}return c.join(o.startsWith("|")?`
|
|
42
|
-
`:" ").trim()}return o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'")?o.slice(1,-1):o}return null}function p(){if(!l.existsSync(d))return[];let e=[];for(let n of l.readdirSync(d)){let t=a.join(d,n,"SKILL.md");if(!l.existsSync(t))continue;let s=C(l.readFileSync(t,"utf8"));s&&e.push({name:n,description:s.description})}return e.sort((n,t)=>n.name.localeCompare(t.name))}function b(e,n){if(n.length===0)return e;let t=e.filter(s=>n.some(i=>{let r=i.replace(/^sootsim-/,"").replace(/^rnx-/,"");return s.name.includes(i)||s.name.replace(/^rnx-/,"").includes(r)}));return t.length===0&&(console.error(` no skills matched: ${n.join(", ")}`),console.error(" available: "+e.map(s=>s.name).join(", ")),process.exit(1)),t}function m(e){try{return l.lstatSync(e)}catch{return null}}function E(e,n){let t=m(e);if(!t||!t.isSymbolicLink())return!1;try{return l.realpathSync(e)===l.realpathSync(n)}catch{return!1}}function $(e,n,t){if(e.isSymbolicLink()||!e.isDirectory())return!1;let s;try{s=l.readdirSync(n)}catch{return!1}if(s.length!==1||s[0]!=="SKILL.md")return!1;let i=a.join(n,"SKILL.md"),r=m(i);if(!r)return!1;if(r.isSymbolicLink())try{return l.readlinkSync(i).includes(`${a.sep}skills${a.sep}`)}catch{return!1}if(!r.isFile())return!1;try{return l.readFileSync(i).equals(l.readFileSync(a.join(t,"SKILL.md")))}catch{return!1}}function _(e,n,t){let s=a.join(d,e.name),i=a.join(n,e.name);l.mkdirSync(n,{recursive:!0});let r=m(i);return r?E(i,s)?"up-to-date":t||$(r,i,s)?(l.rmSync(i,{recursive:!0,force:!0}),l.symlinkSync(s,i),"replaced"):"conflict":(l.symlinkSync(s,i),"linked")}function N(){let e=p();if(e.length!==0)for(let n of k()){let t=a.resolve(n.dir);if(l.existsSync(a.dirname(t))){try{l.mkdirSync(t,{recursive:!0})}catch{continue}try{w(t)}catch{}for(let s of e)try{_(s,t,!1)}catch{}}}}var T=["sootsim-setup","sootsim-debug","sootsim-perf","sootsim-test","sootsim-visual"];function w(e){for(let n of T){let t=a.join(e,n),s=m(t);s&&(s.isSymbolicLink()||$(s,t,a.join(d,n)))&&l.rmSync(t,{recursive:!0,force:!0})}}function F(e){if(e.length===0){console.log(" no skills found");return}console.log(`
|
|
43
|
-
available skills:
|
|
44
|
-
`);for(let n of e)console.log(` ${n.name}`),console.log(` ${n.description}
|
|
45
|
-
`);console.log(" usage: rnx skill install [all|codex|claude] [skill-name...]"),console.log(` usage: rnx skill show [skill-name]
|
|
46
|
-
`)}function O(e){let n=null,t=!1,s=[];for(let i=0;i<e.length;i++){let r=e[i];if((r==="--help"||r==="-h")&&(y(),process.exit(0)),r==="--force"||r==="-f"){t=!0;continue}if(r==="--target"){let o=e[i+1];(!o||o.startsWith("-"))&&(console.error(" --target requires a directory"),process.exit(1)),n&&(console.error(" pass only one install target"),process.exit(1)),n=[{label:"target",dir:o}],i++;continue}if(r.startsWith("-")&&(console.error(` unknown option: ${r}`),y(),process.exit(1)),!n&&j.has(r)){n=v(r);continue}s.push(r)}return{targets:n??k(),filters:s,force:t}}async function A(e){let n=p();n.length===0&&(console.error(" no skills found in rnx package"),process.exit(1));let t=O(e),s=b(n,t.filters),i=t.targets.map(o=>({...o,dir:a.resolve(o.dir)}));for(let o of i)l.mkdirSync(o.dir,{recursive:!0}),l.statSync(o.dir).isDirectory()||(console.error(` target is not a directory: ${o.dir}`),process.exit(1)),w(o.dir);console.log(`
|
|
47
|
-
installing ${s.length} skill(s) to ${i.length} target(s)
|
|
48
|
-
`);let r=0;for(let o of i){console.log(` target ${o.label}: ${o.dir}`);for(let c of s){let u=a.join(o.dir,c.name),f=_(c,o.dir,t.force);f==="linked"?console.log(` linked ${c.name} -> ${u}`):f==="replaced"?console.log(` relinked ${c.name} -> ${u}`):f==="up-to-date"?console.log(` up to date ${c.name}`):(r++,console.log(` conflict ${c.name}: ${u} exists and is not this skill \u2014 pass --force to replace`))}console.log("")}r>0&&(console.error(` ${r} conflict(s); rerun with --force only if replacing them is intended.
|
|
49
|
-
`),process.exit(1)),console.log(` done. restart the agent session to load newly installed skills.
|
|
50
|
-
`)}function R(e){let n=p(),t=e.find(r=>!r.startsWith("-"));if(!t){F(n);return}let[s]=b(n,[t]),i=l.readFileSync(a.join(d,s.name,"SKILL.md"),"utf8");console.log(i)}async function G(e){let[n,...t]=e;if(!n||n==="--help"||n==="-h"){S();return}if(n==="install"){await A(t);return}if(n==="show"||n==="list"){R(t);return}console.error(` unknown skill command: ${n}`),S(),process.exit(1)}export{N as refreshInstalledSkills,G as runSkill};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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-3454VMHD.js";import"./chunk-F4OTMARL.js";import"./chunk-DKSZZABN.js";export{a as settingsStore};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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}from"./chunk-TBK5UXW2.js";import"./chunk-V7I4CTAX.js";import"./chunk-WGE2P25F.js";import"./chunk-A72MIIJI.js";import"./chunk-FBMNYSSW.js";import"./chunk-DKSZZABN.js";export{a as buildCliDiagnosticEvent,d as flushCliTelemetry,b as trackCliDiagnostic,c as trackCliError};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{t as m,v as d,y as i}from"./chunk-H2GB2PLY.js";import"./chunk-ZEF57HQO.js";import"./chunk-FBMNYSSW.js";import"./chunk-DKSZZABN.js";import{writeFileSync as g}from"fs";function u(){console.log(`
|
|
5
|
-
rnx timeline \u2014 control the semantic event timeline
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx timeline <subcommand> [args]
|
|
9
|
-
|
|
10
|
-
subcommands:
|
|
11
|
-
status show enabled kinds and ring sizes
|
|
12
|
-
start [kinds] enable kinds (csv); 'all' for every opt-in
|
|
13
|
-
stop [kinds] disable kinds (csv); 'all' for every kind
|
|
14
|
-
clear drop all events + cursors
|
|
15
|
-
dump <file> write current merged ring to JSON
|
|
16
|
-
|
|
17
|
-
note: cheap kinds (console, fetch, app-launch, keyboard, screen, alert,
|
|
18
|
-
toast, notification, route, shell, actionsheet, picker) record at all times.
|
|
19
|
-
start/stop enables opt-in kinds (react-commit, scroll, gesture, text-input,
|
|
20
|
-
layout, reanimated, animation).
|
|
21
|
-
|
|
22
|
-
read the timeline with: rnx what-happened
|
|
23
|
-
`)}async function h(n,p){let o=m(n,{port:p.port,stripBooleanFlags:["--json","--help","-h"]}),l=o.positional[0];(!l||n.includes("--help")||n.includes("-h"))&&(u(),process.exit(0));let r=n.includes("--json"),t=d(o),a=o.positional.slice(1),s=a[0]?a[0].split(",").map(e=>e.trim()).filter(Boolean):[];try{switch(l){case"status":{let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"start":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.enable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"stop":{s.length===0&&s.push("all"),await i(t,"SootSim.bridges.timeline.disable",...s);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,r?0:2));break}case"clear":{await i(t,"SootSim.bridges.timeline.clear"),console.log(" cleared");break}case"dump":{let e=a[0];e||(console.error(" usage: rnx timeline dump <file>"),process.exit(1));let c=await i(t,"SootSim.bridges.timeline.recent",{limit:1e6});g(e,JSON.stringify(c.events,null,2)+`
|
|
24
|
-
`),console.log(` wrote ${c.events.length} event(s) to ${e}`);break}default:console.error(` unknown subcommand: ${l}`),u(),process.exit(1)}}finally{t.close()}}export{h as runTimeline};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{e as a,f as b,g as c}from"./chunk-ROISJKH3.js";import"./chunk-JH5KE2OI.js";import"./chunk-ZW6JXEVX.js";import"./chunk-AKJYEX54.js";import"./chunk-UDXQCEJU.js";import"./chunk-JLOOLA47.js";import"./chunk-UQJY6O72.js";import"./chunk-H2GB2PLY.js";import"./chunk-ZEF57HQO.js";import"./chunk-FBMNYSSW.js";import"./chunk-MXWME7ET.js";import"./chunk-DKSZZABN.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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 as t}from"./chunk-6BMM6OCW.js";import"./chunk-LU3AHE6T.js";import"./chunk-5RWUFIZW.js";import{q as e}from"./chunk-COXCR6UU.js";import"./chunk-OROUEG22.js";import"./chunk-QE5MC4V3.js";import"./chunk-X3PEDNLV.js";import"./chunk-RYGQ6LZN.js";import"./chunk-AKJYEX54.js";import"./chunk-UDXQCEJU.js";import"./chunk-EKAEEWC2.js";import"./chunk-2APXX4RN.js";import"./chunk-A56GQVNF.js";import"./chunk-D6MGELKZ.js";import"./chunk-3454VMHD.js";import"./chunk-JLOOLA47.js";import"./chunk-USHV3QFZ.js";import"./chunk-UQJY6O72.js";import"./chunk-YFZLDFZK.js";import"./chunk-FGGESBWD.js";import"./chunk-CCI3DZKE.js";import"./chunk-N5KDDGV6.js";import"./chunk-45X3D6CI.js";import"./chunk-6F3WOWFC.js";import"./chunk-F4OTMARL.js";import"./chunk-H2GB2PLY.js";import"./chunk-ZEF57HQO.js";import"./chunk-5QFJFASW.js";import"./chunk-FHRG772G.js";import"./chunk-IYPMULI7.js";import"./chunk-TBK5UXW2.js";import{a as r}from"./chunk-V7I4CTAX.js";import{f as o}from"./chunk-WGE2P25F.js";import"./chunk-A72MIIJI.js";import{C as n}from"./chunk-FBMNYSSW.js";import"./chunk-TAC4CEIX.js";import"./chunk-MXWME7ET.js";import"./chunk-DKSZZABN.js";async function u(){return!n()&&r()?(await t([],{launchConnectRN:!0}),0):(o("Run any React Native app in a local simulator."),console.log(`
|
|
5
|
-
Opening ConnectRN`),await e(["ConnectRN","--no-describe","--quiet"]),0)}export{u as runWelcome};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.369 | (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 as F,B as T,D as y,O as A,P as b,Q as S}from"./chunk-D6MGELKZ.js";import{e as k,t as x,v as N}from"./chunk-H2GB2PLY.js";import"./chunk-ZEF57HQO.js";import"./chunk-FBMNYSSW.js";import"./chunk-DKSZZABN.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function _(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=x(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
|
|
5
|
-
rnx what-happened \u2014 show recent events from the semantic timeline
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx what-happened # since last CLI call
|
|
9
|
-
rnx what-happened --summary # one-line counts
|
|
10
|
-
rnx what-happened --all # full ring (ignore cursor)
|
|
11
|
-
rnx what-happened --since 5s # absolute window
|
|
12
|
-
rnx what-happened --kinds toast,fetch
|
|
13
|
-
rnx what-happened --noisy # include react-commit/layout/scroll
|
|
14
|
-
rnx what-happened --limit 50
|
|
15
|
-
rnx what-happened --json
|
|
16
|
-
rnx what-happened --no-advance # don't advance cursor after read
|
|
17
|
-
|
|
18
|
-
note: react-commit, layout, and scroll are opt-in/noisy events. enable them
|
|
19
|
-
with "rnx timeline start <kind>", then pass --noisy or include them in
|
|
20
|
-
--kinds to see them.
|
|
21
|
-
`),process.exit(0));let s=n.includes("--summary"),l=n.includes("--flow"),i=n.includes("--all"),c=n.includes("--json"),u=n.includes("--no-advance"),v=n.includes("--noisy"),{since:a}=O(n),{kinds:d}=B(n),{limit:C}=D(n),g=k(),$={limit:C??200,...d&&d.length?{kinds:d}:{},...a!==void 0?{since:a}:i?{}:{sinceCursor:g}},h=N(e);try{if(s){let r=await F(h,$);if(c)console.log(JSON.stringify(r));else{let m=i?"all time":a!==void 0?`last ${((Date.now()-a)/1e3).toFixed(1)}s`:"since last call";console.log(` ${m}: ${A(r)}`)}!u&&!i&&r.lastAt&&await y(h,g,r.lastAt);return}let o=await T(h,$),E=Array.isArray(d)&&d.some(r=>b.has(r)),I=!v&&!E,p=0;if(I){let r=o.events.filter(m=>b.has(m.kind)?(p+=1,!1):!0);o.events=r}if(c)console.log(JSON.stringify(l?_(o.events):o,null,2));else{if(o.events.length===0)p>0?console.log(` no non-noise events (${p} react-commit/layout/scroll hidden)`):console.log(i?" no events recorded":a!==void 0?" no events in window":" no new events since last call");else if(l){let r=o.events[0]?.t??null,m=_(o.events),w=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2014 flow view \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2014 flow view \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2014 flow view \u2500\u2500\u2500`;console.log(` ${w}`);for(let f of m){console.log(`
|
|
22
|
-
\u2500\u2500 ${f.label} (${f.events.length} event${f.events.length===1?"":"s"}) \u2500\u2500`);for(let M of f.events)console.log(S(M,r))}}else{let r=o.events[0]?.t??null,m=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2500\u2500\u2500`;console.log(` ${m}`);for(let w of o.events)console.log(S(w,r))}p>0&&o.events.length>0&&process.stderr.write(`
|
|
23
|
-
${p} high-frequency event(s) hidden (react-commit/layout/scroll)
|
|
24
|
-
rerun with --noisy or --kinds react-commit,layout,scroll to include them
|
|
25
|
-
`)}!u&&!i&&o.watermark>0&&await y(h,g,o.watermark)}finally{h.close()}}export{J as runWhatHappened};
|