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
package/dist-lib/home-paths.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;
|
|
@@ -37,7 +37,7 @@ __export(home_paths_exports, {
|
|
|
37
37
|
DAEMON_HEARTBEAT_STALE_MS: () => DAEMON_HEARTBEAT_STALE_MS,
|
|
38
38
|
DAEMON_LOCKFILE: () => DAEMON_LOCKFILE,
|
|
39
39
|
DEV_BRIDGES_DIR: () => DEV_BRIDGES_DIR,
|
|
40
|
-
|
|
40
|
+
RNX_HOME_ENV: () => RNX_HOME_ENV,
|
|
41
41
|
activeRuntimeDir: () => activeRuntimeDir,
|
|
42
42
|
activeRuntimeFile: () => activeRuntimeFile,
|
|
43
43
|
cacheDir: () => cacheDir,
|
|
@@ -54,7 +54,7 @@ __export(home_paths_exports, {
|
|
|
54
54
|
electronDir: () => electronDir,
|
|
55
55
|
electronUserDataDir: () => electronUserDataDir,
|
|
56
56
|
electronVersionDir: () => electronVersionDir,
|
|
57
|
-
|
|
57
|
+
ensureRnxHome: () => ensureRnxHome,
|
|
58
58
|
isDaemonLockfileFresh: () => isDaemonLockfileFresh,
|
|
59
59
|
isDevBridgeLockfileFresh: () => isDevBridgeLockfileFresh,
|
|
60
60
|
isDevWorkstation: () => isDevWorkstation,
|
|
@@ -71,11 +71,11 @@ __export(home_paths_exports, {
|
|
|
71
71
|
readSimulatorDriverPreference: () => readSimulatorDriverPreference,
|
|
72
72
|
removeDaemonLockfile: () => removeDaemonLockfile,
|
|
73
73
|
removeDevBridgeLockfile: () => removeDevBridgeLockfile,
|
|
74
|
+
rnxHomeDir: () => rnxHomeDir,
|
|
74
75
|
runtimeDir: () => runtimeDir,
|
|
75
76
|
runtimeUpgradeNoticePath: () => runtimeUpgradeNoticePath,
|
|
76
77
|
runtimesDir: () => runtimesDir,
|
|
77
78
|
shouldSkipPersistentDaemon: () => shouldSkipPersistentDaemon,
|
|
78
|
-
sootsimHomeDir: () => sootsimHomeDir,
|
|
79
79
|
writeActiveRuntime: () => writeActiveRuntime,
|
|
80
80
|
writeDaemonLockfile: () => writeDaemonLockfile,
|
|
81
81
|
writeDevBridgeLockfile: () => writeDevBridgeLockfile,
|
|
@@ -89,16 +89,16 @@ var import_node_crypto = require("node:crypto");
|
|
|
89
89
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
90
90
|
var import_node_os = require("node:os");
|
|
91
91
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
92
|
-
var
|
|
92
|
+
var RNX_HOME_ENV = "RNX_HOME";
|
|
93
93
|
var ACTIVE_RUNTIME_FILE = "active";
|
|
94
94
|
var DAEMON_LOCKFILE = "daemon.json";
|
|
95
95
|
var DEV_BRIDGES_DIR = "dev-bridges";
|
|
96
96
|
var CONFIG_FILE = "config.json";
|
|
97
97
|
var DAEMON_HEARTBEAT_STALE_MS = 3e4;
|
|
98
|
-
function
|
|
99
|
-
const override = process.env[
|
|
98
|
+
function rnxHomeDir() {
|
|
99
|
+
const override = process.env[RNX_HOME_ENV];
|
|
100
100
|
if (override && override.length > 0) return import_node_path.default.resolve(override);
|
|
101
|
-
return import_node_path.default.join((0, import_node_os.homedir)(), ".
|
|
101
|
+
return import_node_path.default.join((0, import_node_os.homedir)(), ".rnx");
|
|
102
102
|
}
|
|
103
103
|
function isSootsimDevCheckout() {
|
|
104
104
|
if (process.env.SOOTSIM_FORCE_DAEMON_INSTALL === "1") return false;
|
|
@@ -122,7 +122,7 @@ function shouldSkipPersistentDaemon() {
|
|
|
122
122
|
return isSootsimDevCheckout() || isDevWorkstation();
|
|
123
123
|
}
|
|
124
124
|
function runtimesDir() {
|
|
125
|
-
return import_node_path.default.join(
|
|
125
|
+
return import_node_path.default.join(rnxHomeDir(), "runtimes");
|
|
126
126
|
}
|
|
127
127
|
function runtimeDir(version) {
|
|
128
128
|
return import_node_path.default.join(runtimesDir(), version);
|
|
@@ -131,7 +131,7 @@ function activeRuntimeFile() {
|
|
|
131
131
|
return import_node_path.default.join(runtimesDir(), ACTIVE_RUNTIME_FILE);
|
|
132
132
|
}
|
|
133
133
|
function electronDir() {
|
|
134
|
-
return import_node_path.default.join(
|
|
134
|
+
return import_node_path.default.join(rnxHomeDir(), "electron");
|
|
135
135
|
}
|
|
136
136
|
function electronUserDataDir() {
|
|
137
137
|
return import_node_path.default.join(electronDir(), "userData");
|
|
@@ -140,28 +140,28 @@ function electronVersionDir(version) {
|
|
|
140
140
|
return import_node_path.default.join(electronDir(), version);
|
|
141
141
|
}
|
|
142
142
|
function profilesDir() {
|
|
143
|
-
return import_node_path.default.join(
|
|
143
|
+
return import_node_path.default.join(rnxHomeDir(), "profiles");
|
|
144
144
|
}
|
|
145
145
|
function cameraFixturesDir() {
|
|
146
|
-
return import_node_path.default.join(
|
|
146
|
+
return import_node_path.default.join(rnxHomeDir(), "camera-fixtures");
|
|
147
147
|
}
|
|
148
148
|
function daemonAppDir() {
|
|
149
|
-
return import_node_path.default.join(
|
|
149
|
+
return import_node_path.default.join(rnxHomeDir(), "daemon-app");
|
|
150
150
|
}
|
|
151
151
|
function daemonAppBundlePath() {
|
|
152
|
-
return import_node_path.default.join(daemonAppDir(), "
|
|
152
|
+
return import_node_path.default.join(daemonAppDir(), "RNX Daemon.app");
|
|
153
153
|
}
|
|
154
154
|
function daemonAppLauncherPath() {
|
|
155
|
-
return import_node_path.default.join(daemonAppBundlePath(), "Contents", "MacOS", "
|
|
155
|
+
return import_node_path.default.join(daemonAppBundlePath(), "Contents", "MacOS", "rnx-daemon");
|
|
156
156
|
}
|
|
157
157
|
function cacheDir() {
|
|
158
|
-
return import_node_path.default.join(
|
|
158
|
+
return import_node_path.default.join(rnxHomeDir(), "cache");
|
|
159
159
|
}
|
|
160
160
|
function daemonLockfilePath() {
|
|
161
|
-
return import_node_path.default.join(
|
|
161
|
+
return import_node_path.default.join(rnxHomeDir(), DAEMON_LOCKFILE);
|
|
162
162
|
}
|
|
163
163
|
function devBridgesDir() {
|
|
164
|
-
return import_node_path.default.join(
|
|
164
|
+
return import_node_path.default.join(rnxHomeDir(), DEV_BRIDGES_DIR);
|
|
165
165
|
}
|
|
166
166
|
function devBridgeLockfilePath(bridgePort) {
|
|
167
167
|
if (!Number.isInteger(bridgePort) || bridgePort <= 0) {
|
|
@@ -170,7 +170,7 @@ function devBridgeLockfilePath(bridgePort) {
|
|
|
170
170
|
return import_node_path.default.join(devBridgesDir(), `${bridgePort}.json`);
|
|
171
171
|
}
|
|
172
172
|
function configFilePath() {
|
|
173
|
-
return import_node_path.default.join(
|
|
173
|
+
return import_node_path.default.join(rnxHomeDir(), CONFIG_FILE);
|
|
174
174
|
}
|
|
175
175
|
function readSharedConfig() {
|
|
176
176
|
try {
|
|
@@ -182,7 +182,7 @@ function readSharedConfig() {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function writeSharedConfig(patch) {
|
|
185
|
-
|
|
185
|
+
ensureRnxHome();
|
|
186
186
|
const current = readSharedConfig();
|
|
187
187
|
const next = { ...current, ...patch };
|
|
188
188
|
if (patch.settings && typeof patch.settings === "object") {
|
|
@@ -237,10 +237,10 @@ function readOrCreateAnonymousId() {
|
|
|
237
237
|
return created;
|
|
238
238
|
}
|
|
239
239
|
function runtimeUpgradeNoticePath() {
|
|
240
|
-
return import_node_path.default.join(
|
|
240
|
+
return import_node_path.default.join(rnxHomeDir(), "runtime-upgraded.json");
|
|
241
241
|
}
|
|
242
242
|
function writeRuntimeUpgradeNotice(notice) {
|
|
243
|
-
|
|
243
|
+
ensureRnxHome();
|
|
244
244
|
const tmp = `${runtimeUpgradeNoticePath()}.tmp`;
|
|
245
245
|
import_node_fs.default.writeFileSync(tmp, `${JSON.stringify(notice)}
|
|
246
246
|
`, "utf8");
|
|
@@ -261,8 +261,8 @@ function consumeRuntimeUpgradeNotice() {
|
|
|
261
261
|
return null;
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
import_node_fs.default.mkdirSync(
|
|
264
|
+
function ensureRnxHome() {
|
|
265
|
+
import_node_fs.default.mkdirSync(rnxHomeDir(), { recursive: true });
|
|
266
266
|
import_node_fs.default.mkdirSync(runtimesDir(), { recursive: true });
|
|
267
267
|
import_node_fs.default.mkdirSync(electronDir(), { recursive: true });
|
|
268
268
|
import_node_fs.default.mkdirSync(profilesDir(), { recursive: true });
|
|
@@ -387,7 +387,7 @@ function readLiveRuntimeVersions() {
|
|
|
387
387
|
return [...versions].sort();
|
|
388
388
|
}
|
|
389
389
|
function writeDaemonLockfile(data) {
|
|
390
|
-
|
|
390
|
+
ensureRnxHome();
|
|
391
391
|
const lockfilePath = daemonLockfilePath();
|
|
392
392
|
const existing = readDaemonLockfile();
|
|
393
393
|
if (!existing) {
|
|
@@ -517,7 +517,7 @@ function releaseDaemonClaim(owner) {
|
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
function claimDaemonLockfile(data) {
|
|
520
|
-
|
|
520
|
+
ensureRnxHome();
|
|
521
521
|
if (!acquireDaemonClaim(data)) return false;
|
|
522
522
|
try {
|
|
523
523
|
const existing = readDaemonLockfile();
|
|
@@ -565,7 +565,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
565
565
|
DAEMON_HEARTBEAT_STALE_MS,
|
|
566
566
|
DAEMON_LOCKFILE,
|
|
567
567
|
DEV_BRIDGES_DIR,
|
|
568
|
-
|
|
568
|
+
RNX_HOME_ENV,
|
|
569
569
|
activeRuntimeDir,
|
|
570
570
|
activeRuntimeFile,
|
|
571
571
|
cacheDir,
|
|
@@ -582,7 +582,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
582
582
|
electronDir,
|
|
583
583
|
electronUserDataDir,
|
|
584
584
|
electronVersionDir,
|
|
585
|
-
|
|
585
|
+
ensureRnxHome,
|
|
586
586
|
isDaemonLockfileFresh,
|
|
587
587
|
isDevBridgeLockfileFresh,
|
|
588
588
|
isDevWorkstation,
|
|
@@ -599,11 +599,11 @@ function removeDevBridgeLockfile(owner) {
|
|
|
599
599
|
readSimulatorDriverPreference,
|
|
600
600
|
removeDaemonLockfile,
|
|
601
601
|
removeDevBridgeLockfile,
|
|
602
|
+
rnxHomeDir,
|
|
602
603
|
runtimeDir,
|
|
603
604
|
runtimeUpgradeNoticePath,
|
|
604
605
|
runtimesDir,
|
|
605
606
|
shouldSkipPersistentDaemon,
|
|
606
|
-
sootsimHomeDir,
|
|
607
607
|
writeActiveRuntime,
|
|
608
608
|
writeDaemonLockfile,
|
|
609
609
|
writeDevBridgeLockfile,
|