rnxsim 0.1.375 → 0.1.377
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/README.md +28 -25
- package/cli/app-config.ts +9 -12
- package/cli/app-fonts.ts +3 -3
- package/cli/app-project.ts +8 -8
- package/cli/auth.ts +7 -9
- package/cli/bin.ts +16 -31
- package/cli/bridge-flow-runner.ts +3 -3
- package/cli/browser-backend.ts +44 -0
- package/cli/command-contract.ts +221 -0
- package/cli/command-registry.ts +291 -0
- package/cli/commands/agent-wrapper.ts +2 -2
- package/cli/commands/app-fonts.ts +2 -2
- package/cli/commands/assert.ts +3 -3
- package/cli/commands/auth.ts +1 -1
- package/cli/commands/box/cloud-box.ts +1 -1
- package/cli/commands/box/plane-share.ts +2 -2
- package/cli/commands/box.ts +4 -6
- package/cli/commands/compat.ts +1 -1
- package/cli/commands/config.ts +2 -2
- package/cli/commands/control.ts +42 -28
- package/cli/commands/cpu-profile.ts +7 -7
- package/cli/commands/daemon-mac-app.ts +7 -7
- package/cli/commands/daemon.ts +10 -10
- package/cli/commands/debug.ts +11 -11
- package/cli/commands/detox.ts +13 -13
- package/cli/commands/diagnose.ts +6 -6
- package/cli/commands/do-chain.ts +1 -2
- package/cli/commands/electron.ts +1 -3
- package/cli/commands/film.ts +3 -3
- package/cli/commands/flow.ts +43 -43
- package/cli/commands/inspect/count.ts +1 -1
- package/cli/commands/inspect/describe.ts +1 -1
- package/cli/commands/inspect/env.ts +2 -2
- package/cli/commands/inspect/get-layout.ts +1 -1
- package/cli/commands/inspect/keyboard.ts +1 -1
- package/cli/commands/inspect/list.ts +1 -1
- package/cli/commands/inspect/memory.ts +1 -1
- package/cli/commands/inspect/resolve-target.ts +1 -1
- package/cli/commands/inspect/screens.ts +1 -1
- package/cli/commands/inspect/tree.ts +1 -1
- package/cli/commands/inspect/url.ts +1 -1
- package/cli/commands/inspect/wait-event.ts +5 -5
- package/cli/commands/inspect.ts +34 -34
- package/cli/commands/install-desktop.ts +3 -3
- package/cli/commands/login.ts +6 -6
- package/cli/commands/maestro-generate.ts +5 -5
- package/cli/commands/maestro.ts +5 -5
- package/cli/commands/profile.ts +1 -1
- package/cli/commands/record.ts +9 -9
- package/cli/commands/runtime.ts +18 -18
- package/cli/commands/screenshot-command.ts +1 -1
- package/cli/commands/screenshot-layers.ts +5 -5
- package/cli/commands/screenshot-mode.ts +1 -1
- package/cli/commands/screenshot.ts +8 -8
- package/cli/commands/screenshots-capture.ts +5 -5
- package/cli/commands/serve.ts +3 -3
- package/cli/commands/setup.ts +20 -12
- package/cli/commands/skills.ts +5 -5
- package/cli/commands/slides.ts +1 -1
- package/cli/commands/telemetry.ts +1 -1
- package/cli/commands/three-mode.ts +1 -1
- package/cli/commands/timeline.ts +8 -8
- package/cli/commands/upgrade.ts +116 -131
- package/cli/commands/upload.ts +12 -12
- package/cli/commands/version.ts +7 -7
- package/cli/commands/what-happened.ts +9 -9
- package/cli/current-sim.ts +3 -3
- package/cli/desktop-companion.ts +1 -1
- package/cli/drivers/playwright.ts +9 -9
- package/cli/drivers/registry.ts +1 -1
- package/cli/drivers/types.ts +1 -1
- package/cli/flow-file.ts +2 -2
- package/cli/flow-session.ts +1 -1
- package/cli/help-core.ts +136 -0
- package/cli/help.ts +17 -53
- package/cli/hints.ts +5 -5
- package/cli/inspect-notice-state.ts +1 -1
- package/cli/maestro-js.ts +1 -1
- package/cli/outbound-endpoints.ts +23 -5
- package/cli/parse-args.ts +19 -66
- package/cli/recording-access.ts +1 -1
- package/cli/registry.ts +1 -0
- package/cli/run-registry.ts +1 -1
- package/cli/run-rnx-core.ts +148 -0
- package/cli/run-rnx.ts +6 -9
- package/cli/runtime-notes.ts +3 -3
- package/cli/standalone.ts +4 -0
- package/cli/ws-bridge.ts +8 -8
- package/detox/config-loader.ts +2 -2
- package/detox/index.ts +8 -8
- package/detox/jest-preset.cjs +1 -1
- package/detox/navigation.ts +2 -2
- package/dist-lib/agent-daemon-client.cjs +5 -5
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +2 -2
- package/dist-lib/agent-sessions.cjs +10 -10
- package/dist-lib/attached-projects.cjs +6 -6
- package/dist-lib/auth/shared-session.cjs +6 -6
- 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 +25 -25
- package/dist-lib/detox/index.cjs +9 -9
- package/dist-lib/detox/jest-preset.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +29 -29
- package/dist-lib/host/bridge-host.cjs +274 -181
- 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 +14 -14
- 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 +8 -8
- package/dist-lib/profiles.cjs +12 -12
- 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 +25 -11
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +470 -322
- package/dist-lib/vite.cjs +9 -9
- package/package.json +4 -11
- package/scripts/dev-server-scanner.ts +25 -7
- package/scripts/optional-demo-registry.ts +1 -1
- package/skills/contrast/SKILL.md +3 -3
- package/skills/rnx-debug/SKILL.md +1 -1
- package/skills/rnx-test/SKILL.md +2 -2
- package/src/agent-identity.ts +1 -1
- package/src/agent-sessions.ts +7 -5
- package/src/cli-version.ts +12 -4
- package/src/config.ts +26 -28
- package/src/disk-cleanup.ts +11 -11
- package/src/home-paths.ts +28 -28
- package/src/host/bridge-host.ts +16 -16
- package/src/metro-plugin.ts +2 -2
- package/src/profiles.ts +2 -2
- package/src/runtime-assets.ts +7 -7
- package/src/runtime-delivery.ts +13 -13
- package/src/screenshots/orchestrate.ts +1 -1
- package/src/screenshots/schema.ts +2 -2
- package/src/skills/builtin/a11y-review.ts +2 -2
- package/src/skills/builtin/compat-check.ts +2 -2
- package/src/skills/builtin/maestro-test.ts +2 -2
- package/src/skills/builtin/perf-profile.ts +2 -2
- package/src/skills/builtin/screenshot-all.ts +2 -2
- package/src/skills/builtin/visual-diff.ts +2 -2
- package/src/skills/registry.ts +8 -8
- package/src/skills/types.ts +1 -1
- package/src/vite-plugin-one.ts +3 -3
- package/src/vite-plugin.ts +15 -2
- package/dist-cli/bin.js +0 -15
- package/dist-cli/chunks/agent-JJN7U6FR.js +0 -48
- package/dist-cli/chunks/agent-wrapper-AVVUJ3WF.js +0 -17
- package/dist-cli/chunks/app-fonts-QJ22CNAZ.js +0 -4
- package/dist-cli/chunks/assert-PZZKIY3K.js +0 -49
- package/dist-cli/chunks/auth-5AVDJO33.js +0 -12
- package/dist-cli/chunks/beta-PFRGP266.js +0 -4
- package/dist-cli/chunks/box-ILC2O7ZO.js +0 -1730
- package/dist-cli/chunks/camera-J3V62PP7.js +0 -33
- package/dist-cli/chunks/chunk-25KRGDZT.js +0 -4
- package/dist-cli/chunks/chunk-2BRBFLWA.js +0 -38
- package/dist-cli/chunks/chunk-2GXNAZHB.js +0 -74
- package/dist-cli/chunks/chunk-2IUMRRYV.js +0 -7
- package/dist-cli/chunks/chunk-4ALPWIMP.js +0 -10
- package/dist-cli/chunks/chunk-4CEZZKRY.js +0 -4
- package/dist-cli/chunks/chunk-4EUKOIAV.js +0 -4
- package/dist-cli/chunks/chunk-4IKE4YUS.js +0 -32
- package/dist-cli/chunks/chunk-4ZXR2M3D.js +0 -4
- package/dist-cli/chunks/chunk-5CGJFU27.js +0 -7
- package/dist-cli/chunks/chunk-5HHWECGT.js +0 -4
- package/dist-cli/chunks/chunk-5PZVYF42.js +0 -312
- package/dist-cli/chunks/chunk-7NCPUZ52.js +0 -27
- package/dist-cli/chunks/chunk-7OSIJCBR.js +0 -107
- package/dist-cli/chunks/chunk-AQ5TMOAI.js +0 -4
- package/dist-cli/chunks/chunk-BQCEI37V.js +0 -5
- package/dist-cli/chunks/chunk-C6B5FOP3.js +0 -4
- package/dist-cli/chunks/chunk-CCMZSHJB.js +0 -71
- package/dist-cli/chunks/chunk-CX7VCKAT.js +0 -14
- package/dist-cli/chunks/chunk-DQUPSAHE.js +0 -4
- package/dist-cli/chunks/chunk-DSD2UBZI.js +0 -4
- package/dist-cli/chunks/chunk-EWPAI4MO.js +0 -7
- package/dist-cli/chunks/chunk-EZXV6U2N.js +0 -497
- package/dist-cli/chunks/chunk-F5F7FIPM.js +0 -6
- package/dist-cli/chunks/chunk-FUTYK55H.js +0 -30
- package/dist-cli/chunks/chunk-FW6AN7I2.js +0 -3
- package/dist-cli/chunks/chunk-FZDRA7Z4.js +0 -4
- package/dist-cli/chunks/chunk-GDLE4NIV.js +0 -4
- package/dist-cli/chunks/chunk-GEX7RVHY.js +0 -5
- package/dist-cli/chunks/chunk-H4MYYOYJ.js +0 -5
- package/dist-cli/chunks/chunk-HEV7BAPE.js +0 -11
- package/dist-cli/chunks/chunk-HNDWYCND.js +0 -506
- package/dist-cli/chunks/chunk-HNPHODBD.js +0 -4
- package/dist-cli/chunks/chunk-HWDVC6YA.js +0 -11
- package/dist-cli/chunks/chunk-JOHJZUGG.js +0 -4
- package/dist-cli/chunks/chunk-JWUDT4QK.js +0 -5
- package/dist-cli/chunks/chunk-K7QQWKGE.js +0 -4
- package/dist-cli/chunks/chunk-LAOKTKT4.js +0 -4
- package/dist-cli/chunks/chunk-LD7I266X.js +0 -24
- package/dist-cli/chunks/chunk-LMHBU5LZ.js +0 -4
- package/dist-cli/chunks/chunk-LSOGXSDV.js +0 -535
- package/dist-cli/chunks/chunk-MP2GPO4T.js +0 -4
- package/dist-cli/chunks/chunk-MXJ2UWRV.js +0 -4
- package/dist-cli/chunks/chunk-OJNKRIZF.js +0 -15
- package/dist-cli/chunks/chunk-PBOWUNXO.js +0 -4
- package/dist-cli/chunks/chunk-PNRJFHX4.js +0 -4
- package/dist-cli/chunks/chunk-QJQOK34O.js +0 -28
- package/dist-cli/chunks/chunk-RLCQLMFF.js +0 -142
- package/dist-cli/chunks/chunk-S65CK3RI.js +0 -9
- package/dist-cli/chunks/chunk-SWBUNMQS.js +0 -4
- package/dist-cli/chunks/chunk-SXBFGGAM.js +0 -4
- package/dist-cli/chunks/chunk-T4ISWS5H.js +0 -4
- package/dist-cli/chunks/chunk-TPPVAA7Z.js +0 -5
- package/dist-cli/chunks/chunk-USM3P74H.js +0 -4
- package/dist-cli/chunks/chunk-V4EJJHF5.js +0 -4
- package/dist-cli/chunks/chunk-V7RGRZOL.js +0 -423
- package/dist-cli/chunks/chunk-XUBV77WH.js +0 -130
- package/dist-cli/chunks/chunk-XYSDYGKC.js +0 -4
- package/dist-cli/chunks/chunk-YNHRSDVG.js +0 -5
- package/dist-cli/chunks/chunk-YX52RJKO.js +0 -4
- package/dist-cli/chunks/chunk-Z5O5H4O7.js +0 -99
- package/dist-cli/chunks/chunk-Z6LOIW46.js +0 -7
- package/dist-cli/chunks/chunk-ZXFVBYJY.js +0 -5
- package/dist-cli/chunks/cleanup-KPUW4SFK.js +0 -25
- package/dist-cli/chunks/cli-version-APGT6GAT.js +0 -4
- package/dist-cli/chunks/compat-XXRFD2TW.js +0 -23
- package/dist-cli/chunks/config-DDMFDQ7F.js +0 -13
- package/dist-cli/chunks/connect-IPG47YXM.js +0 -4
- package/dist-cli/chunks/control-O22Z3UJ5.js +0 -4
- package/dist-cli/chunks/daemon-PADUIMJV.js +0 -4
- package/dist-cli/chunks/debug-MYIP46TM.js +0 -200
- package/dist-cli/chunks/desktop-ENFFBQAA.js +0 -31
- package/dist-cli/chunks/detox-J5WVK6OH.js +0 -52
- package/dist-cli/chunks/device-RAVQVL75.js +0 -18
- package/dist-cli/chunks/diagnose-PJMPXKJY.js +0 -43
- package/dist-cli/chunks/disk-cleanup-YLAY445J.js +0 -4
- package/dist-cli/chunks/do-chain-UBE7GIOU.js +0 -5
- package/dist-cli/chunks/drivers-ZFNX3T5Z.js +0 -4
- package/dist-cli/chunks/env-Y5XJSNRD.js +0 -4
- package/dist-cli/chunks/film-W3V6VURB.js +0 -74
- package/dist-cli/chunks/flow-VMLI7BYM.js +0 -4
- package/dist-cli/chunks/help-PKZCWHJJ.js +0 -4
- package/dist-cli/chunks/hidden-runtime-alias-S5DJ7EDF.js +0 -4
- package/dist-cli/chunks/home-paths-5O4IZPYV.js +0 -4
- package/dist-cli/chunks/inspect-LT4MXK37.js +0 -4
- package/dist-cli/chunks/install-desktop-EXCFMXFS.js +0 -4
- package/dist-cli/chunks/login-V6TZ54ZH.js +0 -26
- package/dist-cli/chunks/logout-SPMLFWYA.js +0 -4
- package/dist-cli/chunks/maestro-5ISTBAZE.js +0 -108
- package/dist-cli/chunks/maestro-generate-WUI64NHR.js +0 -36
- package/dist-cli/chunks/mode-QPNBYXUF.js +0 -26
- package/dist-cli/chunks/optional-demo-registry-CBSYF4CG.js +0 -4
- package/dist-cli/chunks/perf-T6N5PVYV.js +0 -48
- package/dist-cli/chunks/permissions-YZ7RRSZJ.js +0 -13
- package/dist-cli/chunks/platform-XDQAA72X.js +0 -6
- package/dist-cli/chunks/privacy-54FIGXLT.js +0 -4
- package/dist-cli/chunks/record-QGYXRUKP.js +0 -72
- package/dist-cli/chunks/report-issue-VUUTGX7V.js +0 -29
- package/dist-cli/chunks/reset-CGO52KBW.js +0 -4
- package/dist-cli/chunks/resolve-target-NNQCALDM.js +0 -4
- package/dist-cli/chunks/runtime-4EP6YJVL.js +0 -4
- package/dist-cli/chunks/screenshot-command-NZCMSJ4P.js +0 -159
- package/dist-cli/chunks/screenshot-layers-VMTQ6XIU.js +0 -20
- package/dist-cli/chunks/screenshots-capture-K3MWIDBK.js +0 -42
- package/dist-cli/chunks/serve-QJRIB2BV.js +0 -56
- package/dist-cli/chunks/setup-6XXEJQVF.js +0 -4
- package/dist-cli/chunks/sim-client-5YUVL45C.js +0 -4
- package/dist-cli/chunks/skills-T3CS7CXK.js +0 -50
- package/dist-cli/chunks/state-AJC3VK3G.js +0 -14
- package/dist-cli/chunks/storage-KVGZKC3Y.js +0 -37
- package/dist-cli/chunks/store-AWUMOQUH.js +0 -4
- package/dist-cli/chunks/telemetry-W5ZDGWK6.js +0 -4
- package/dist-cli/chunks/timeline-DXDCAZUA.js +0 -24
- package/dist-cli/chunks/upgrade-SRPTJACU.js +0 -7
- package/dist-cli/chunks/upload-ZDV4BFED.js +0 -4
- package/dist-cli/chunks/version-SOLPSBMG.js +0 -6
- package/dist-cli/chunks/web-RT75LD7A.js +0 -4
- package/dist-cli/chunks/welcome-IJ55EC7U.js +0 -5
- package/dist-cli/chunks/what-happened-CEIWJIWK.js +0 -25
- package/dist-cli/chunks/ws-bridge-YK5R3HOI.js +0 -4
- package/scripts/postinstall.cjs +0 -3
- package/scripts/preuninstall.cjs +0 -118
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
4
|
var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -212,7 +212,7 @@ function tryBuildDarwinCommFfi() {
|
|
|
212
212
|
var CURRENT_SIM_VERSION = 1;
|
|
213
213
|
var CURRENT_SIM_PATH_ENV = "SOOTSIM_CLI_CURRENT_SIM_PATH";
|
|
214
214
|
var IDENTITY_ENV_VARS = [
|
|
215
|
-
"
|
|
215
|
+
"RNX_CLI_IDENTITY",
|
|
216
216
|
// explicit override — fastest path, skips all pid lookups
|
|
217
217
|
"TM_SESSION",
|
|
218
218
|
// Team Machine session id; routes prompt-bar followups back to this agent
|
|
@@ -280,7 +280,7 @@ function getCurrentSimPath() {
|
|
|
280
280
|
return (0, import_path.resolve)(process.env[CURRENT_SIM_PATH_ENV]);
|
|
281
281
|
}
|
|
282
282
|
const key = getCliIdentityKey();
|
|
283
|
-
return (0, import_path.join)((0, import_os.tmpdir)(), `
|
|
283
|
+
return (0, import_path.join)((0, import_os.tmpdir)(), `rnx-current-sim-${key}.json`);
|
|
284
284
|
}
|
|
285
285
|
function readCurrentSim() {
|
|
286
286
|
const filepath = getCurrentSimPath();
|
|
@@ -343,18 +343,18 @@ var DEFAULT_SOOTSIM_SHELL_URL = "http://localhost:5173/";
|
|
|
343
343
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
344
344
|
var import_node_os = require("node:os");
|
|
345
345
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
346
|
-
var
|
|
346
|
+
var RNX_HOME_ENV = "RNX_HOME";
|
|
347
347
|
var ACTIVE_RUNTIME_FILE = "active";
|
|
348
348
|
var DAEMON_LOCKFILE = "daemon.json";
|
|
349
349
|
var DEV_BRIDGES_DIR = "dev-bridges";
|
|
350
350
|
var DAEMON_HEARTBEAT_STALE_MS = 3e4;
|
|
351
|
-
function
|
|
352
|
-
const override = process.env[
|
|
351
|
+
function rnxHomeDir() {
|
|
352
|
+
const override = process.env[RNX_HOME_ENV];
|
|
353
353
|
if (override && override.length > 0) return import_node_path.default.resolve(override);
|
|
354
|
-
return import_node_path.default.join((0, import_node_os.homedir)(), ".
|
|
354
|
+
return import_node_path.default.join((0, import_node_os.homedir)(), ".rnx");
|
|
355
355
|
}
|
|
356
356
|
function runtimesDir() {
|
|
357
|
-
return import_node_path.default.join(
|
|
357
|
+
return import_node_path.default.join(rnxHomeDir(), "runtimes");
|
|
358
358
|
}
|
|
359
359
|
function runtimeDir(version) {
|
|
360
360
|
return import_node_path.default.join(runtimesDir(), version);
|
|
@@ -363,10 +363,10 @@ function activeRuntimeFile() {
|
|
|
363
363
|
return import_node_path.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
|
|
364
364
|
}
|
|
365
365
|
function daemonLockfilePath() {
|
|
366
|
-
return import_node_path.default.join(
|
|
366
|
+
return import_node_path.default.join(rnxHomeDir(), DAEMON_LOCKFILE);
|
|
367
367
|
}
|
|
368
368
|
function devBridgesDir() {
|
|
369
|
-
return import_node_path.default.join(
|
|
369
|
+
return import_node_path.default.join(rnxHomeDir(), DEV_BRIDGES_DIR);
|
|
370
370
|
}
|
|
371
371
|
function readActiveRuntime() {
|
|
372
372
|
try {
|
|
@@ -511,7 +511,7 @@ function resolveDefaultDevBridgeLockfile() {
|
|
|
511
511
|
return lockfiles.find((lockfile) => lockfile.bridgePort === DEFAULT_SOOTSIM_BRIDGE_PORT) ?? lockfiles[0];
|
|
512
512
|
}
|
|
513
513
|
function resolveBridgeWorld() {
|
|
514
|
-
const homeDir =
|
|
514
|
+
const homeDir = rnxHomeDir();
|
|
515
515
|
if (resolvedWorld?.homeDir === homeDir) return resolvedWorld.world;
|
|
516
516
|
const world = resolveBridgeWorldFresh();
|
|
517
517
|
resolvedWorld = { homeDir, world };
|
|
@@ -2934,7 +2934,7 @@ function findMonorepoRoot() {
|
|
|
2934
2934
|
return null;
|
|
2935
2935
|
}
|
|
2936
2936
|
function resolveDevCheckoutRuntimeRoot() {
|
|
2937
|
-
if (process.env.
|
|
2937
|
+
if (process.env.RNX_HOME && readActiveRuntime()) return null;
|
|
2938
2938
|
const root = findMonorepoRoot();
|
|
2939
2939
|
if (!root) return null;
|
|
2940
2940
|
const devBuild = import_path2.default.join(root, "public/sootsim");
|
|
@@ -3171,7 +3171,7 @@ function rnxPlugin(options = {}) {
|
|
|
3171
3171
|
const port = configuredPort;
|
|
3172
3172
|
const sootsimUrl = `http://localhost:${port}${prefix2}/`;
|
|
3173
3173
|
console.log(`[rnx] serving at ${sootsimUrl}`);
|
|
3174
|
-
if (appName && !process.env.CI && !process.env.
|
|
3174
|
+
if (appName && !process.env.CI && !process.env.RNX_NO_OPEN) {
|
|
3175
3175
|
server.httpServer?.once("listening", () => {
|
|
3176
3176
|
const openPort = listeningPort();
|
|
3177
3177
|
launchRnxDesktop(
|
|
@@ -3427,7 +3427,7 @@ function withRNX(config, options = {}) {
|
|
|
3427
3427
|
return server;
|
|
3428
3428
|
}
|
|
3429
3429
|
};
|
|
3430
|
-
if (appName && !process.env.CI && !process.env.
|
|
3430
|
+
if (appName && !process.env.CI && !process.env.RNX_NO_OPEN) {
|
|
3431
3431
|
void openRnxDesktopWhenMetroIsReady({
|
|
3432
3432
|
port,
|
|
3433
3433
|
bundleUrl: resolveRnxDesktopLaunchTarget(port, bundleUrl),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -442,15 +442,15 @@ function isValidRuntimeVersion(value) {
|
|
|
442
442
|
var import_node_fs2 = __toESM(require("node:fs"), 1);
|
|
443
443
|
var import_node_os = require("node:os");
|
|
444
444
|
var import_node_path3 = __toESM(require("node:path"), 1);
|
|
445
|
-
var
|
|
445
|
+
var RNX_HOME_ENV = "RNX_HOME";
|
|
446
446
|
var ACTIVE_RUNTIME_FILE = "active";
|
|
447
|
-
function
|
|
448
|
-
const override = process.env[
|
|
447
|
+
function rnxHomeDir() {
|
|
448
|
+
const override = process.env[RNX_HOME_ENV];
|
|
449
449
|
if (override && override.length > 0) return import_node_path3.default.resolve(override);
|
|
450
|
-
return import_node_path3.default.join((0, import_node_os.homedir)(), ".
|
|
450
|
+
return import_node_path3.default.join((0, import_node_os.homedir)(), ".rnx");
|
|
451
451
|
}
|
|
452
452
|
function runtimesDir() {
|
|
453
|
-
return import_node_path3.default.join(
|
|
453
|
+
return import_node_path3.default.join(rnxHomeDir(), "runtimes");
|
|
454
454
|
}
|
|
455
455
|
function runtimeDir(version) {
|
|
456
456
|
return import_node_path3.default.join(runtimesDir(), version);
|
|
@@ -485,7 +485,7 @@ function findMonorepoRoot() {
|
|
|
485
485
|
return null;
|
|
486
486
|
}
|
|
487
487
|
function resolveDevCheckoutRuntimeRoot() {
|
|
488
|
-
if (process.env.
|
|
488
|
+
if (process.env.RNX_HOME && readActiveRuntime()) return null;
|
|
489
489
|
const root = findMonorepoRoot();
|
|
490
490
|
if (!root) return null;
|
|
491
491
|
const devBuild = import_path.default.join(root, "public/sootsim");
|
|
@@ -832,7 +832,7 @@ function withRNX(config, options = {}) {
|
|
|
832
832
|
return server;
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
|
-
if (appName && !process.env.CI && !process.env.
|
|
835
|
+
if (appName && !process.env.CI && !process.env.RNX_NO_OPEN) {
|
|
836
836
|
void openRnxDesktopWhenMetroIsReady({
|
|
837
837
|
port,
|
|
838
838
|
bundleUrl: resolveRnxDesktopLaunchTarget(port, bundleUrl),
|
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -55,29 +55,29 @@ var import_path = __toESM(require("path"), 1);
|
|
|
55
55
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
56
56
|
var import_node_os = require("node:os");
|
|
57
57
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
58
|
-
var
|
|
59
|
-
function
|
|
60
|
-
const override = process.env[
|
|
58
|
+
var RNX_HOME_ENV = "RNX_HOME";
|
|
59
|
+
function rnxHomeDir() {
|
|
60
|
+
const override = process.env[RNX_HOME_ENV];
|
|
61
61
|
if (override && override.length > 0) return import_node_path.default.resolve(override);
|
|
62
|
-
return import_node_path.default.join((0, import_node_os.homedir)(), ".
|
|
62
|
+
return import_node_path.default.join((0, import_node_os.homedir)(), ".rnx");
|
|
63
63
|
}
|
|
64
64
|
function runtimesDir() {
|
|
65
|
-
return import_node_path.default.join(
|
|
65
|
+
return import_node_path.default.join(rnxHomeDir(), "runtimes");
|
|
66
66
|
}
|
|
67
67
|
function electronDir() {
|
|
68
|
-
return import_node_path.default.join(
|
|
68
|
+
return import_node_path.default.join(rnxHomeDir(), "electron");
|
|
69
69
|
}
|
|
70
70
|
function electronUserDataDir() {
|
|
71
71
|
return import_node_path.default.join(electronDir(), "userData");
|
|
72
72
|
}
|
|
73
73
|
function profilesDir() {
|
|
74
|
-
return import_node_path.default.join(
|
|
74
|
+
return import_node_path.default.join(rnxHomeDir(), "profiles");
|
|
75
75
|
}
|
|
76
76
|
function cacheDir() {
|
|
77
|
-
return import_node_path.default.join(
|
|
77
|
+
return import_node_path.default.join(rnxHomeDir(), "cache");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
import_node_fs.default.mkdirSync(
|
|
79
|
+
function ensureRnxHome() {
|
|
80
|
+
import_node_fs.default.mkdirSync(rnxHomeDir(), { recursive: true });
|
|
81
81
|
import_node_fs.default.mkdirSync(runtimesDir(), { recursive: true });
|
|
82
82
|
import_node_fs.default.mkdirSync(electronDir(), { recursive: true });
|
|
83
83
|
import_node_fs.default.mkdirSync(profilesDir(), { recursive: true });
|
|
@@ -160,7 +160,7 @@ function withDefault(index) {
|
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
function writeIndex(index) {
|
|
163
|
-
|
|
163
|
+
ensureRnxHome();
|
|
164
164
|
const next = withDefault(index);
|
|
165
165
|
const tmp = `${profileIndexPath()}.tmp`;
|
|
166
166
|
import_fs.default.writeFileSync(tmp, `${JSON.stringify(next, null, 2)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -52,6 +52,7 @@ var import_child_process = require("child_process");
|
|
|
52
52
|
var import_promises2 = require("fs/promises");
|
|
53
53
|
var import_http = __toESM(require("http"), 1);
|
|
54
54
|
var import_net = __toESM(require("net"), 1);
|
|
55
|
+
var import_node_fs2 = require("node:fs");
|
|
55
56
|
var import_node_path3 = require("node:path");
|
|
56
57
|
|
|
57
58
|
// src/backend-origin.ts
|
|
@@ -70,20 +71,20 @@ function isLoopbackHost(hostname) {
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
// src/config.ts
|
|
73
|
-
var
|
|
74
|
+
var RNX_CONFIG_QUERY_PARAM = "rnxConfig";
|
|
74
75
|
function hasOwnKeys(value) {
|
|
75
76
|
return !!value && Object.keys(value).length > 0;
|
|
76
77
|
}
|
|
77
|
-
function
|
|
78
|
+
function hasRNXConfig(config) {
|
|
78
79
|
if (!config) return false;
|
|
79
80
|
return typeof config.runtimeVersion === "string" && config.runtimeVersion.length > 0 || hasOwnKeys(config.modules) || hasOwnKeys(config.turboModules) || hasOwnKeys(config.nativeModules) || hasOwnKeys(config.env) || hasOwnKeys(config.network?.remap) || hasOwnKeys(config.settings) || hasOwnKeys(config.initialState);
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
+
function applyRNXConfigToUrl(url, config) {
|
|
82
83
|
const parsed = new URL(url);
|
|
83
|
-
if (
|
|
84
|
-
parsed.searchParams.set(
|
|
84
|
+
if (hasRNXConfig(config)) {
|
|
85
|
+
parsed.searchParams.set(RNX_CONFIG_QUERY_PARAM, JSON.stringify(config));
|
|
85
86
|
} else {
|
|
86
|
-
parsed.searchParams.delete(
|
|
87
|
+
parsed.searchParams.delete(RNX_CONFIG_QUERY_PARAM);
|
|
87
88
|
}
|
|
88
89
|
return parsed.toString();
|
|
89
90
|
}
|
|
@@ -792,10 +793,23 @@ function makeResult(hostname, port, framework, owner) {
|
|
|
792
793
|
};
|
|
793
794
|
}
|
|
794
795
|
function withRuntimeConfig(port, bundleUrl, projectCwd) {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
796
|
+
let physicalProjectCwd;
|
|
797
|
+
if (projectCwd) {
|
|
798
|
+
try {
|
|
799
|
+
physicalProjectCwd = (0, import_node_fs2.realpathSync)((0, import_node_path3.resolve)(projectCwd));
|
|
800
|
+
} catch {
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
const knownApps = physicalProjectCwd ? optionalDemoAppsSync().filter((app) => {
|
|
804
|
+
try {
|
|
805
|
+
return (0, import_node_fs2.realpathSync)((0, import_node_path3.resolve)(app.dir)) === physicalProjectCwd;
|
|
806
|
+
} catch {
|
|
807
|
+
return false;
|
|
808
|
+
}
|
|
809
|
+
}) : [];
|
|
810
|
+
const exactKnownApps = knownApps.filter((app) => app.preferredPort === port);
|
|
811
|
+
const knownApp = exactKnownApps.length === 1 ? exactKnownApps[0] : exactKnownApps.length === 0 && knownApps.length === 1 ? knownApps[0] : void 0;
|
|
812
|
+
const configured = knownApp?.runtimeConfig ? applyRNXConfigToUrl(bundleUrl, knownApp.runtimeConfig) : bundleUrl;
|
|
799
813
|
return normalizeNativeDevBundleUrl(configured);
|
|
800
814
|
}
|
|
801
815
|
function isDirectOneBundleUrl(bundleUrl) {
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.377 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|