peachsim 0.1.691 → 0.1.694
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/cloud-client.ts +2 -1
- package/cli/commands/control.ts +6 -2
- package/cli/commands/inspect/list.ts +7 -2
- package/dist-lib/agent-daemon-client.cjs +8 -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 +11 -2
- 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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +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 +16 -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 +8 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.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/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +24 -4
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +8 -1
- package/package.json +1 -1
- package/src/bridge-constants.ts +6 -1
- package/src/simulator-route.ts +20 -0
package/cli/cloud-client.ts
CHANGED
|
@@ -45,6 +45,7 @@ import {
|
|
|
45
45
|
type RNXMetroModuleIdentityMetadata,
|
|
46
46
|
} from '../src/metro-production-bundle.ts'
|
|
47
47
|
import { rnxPublicBrand } from '../src/public-brand.ts'
|
|
48
|
+
import { PEACH_SIMULATOR_PATH } from '../src/simulator-route'
|
|
48
49
|
import { CHOOSE_ACCOUNT_HINT, resolveCliAuth } from './auth.ts'
|
|
49
50
|
import {
|
|
50
51
|
createCloudSession,
|
|
@@ -1683,7 +1684,7 @@ export async function requestBoxWatchUrl(options: {
|
|
|
1683
1684
|
throw new Error('box display-grant returned unreadable JSON')
|
|
1684
1685
|
}
|
|
1685
1686
|
const grant = readBoxDisplayGrant(parsed)
|
|
1686
|
-
const watch = new URL(
|
|
1687
|
+
const watch = new URL(PEACH_SIMULATOR_PATH, rnxPublicBrand.origin)
|
|
1687
1688
|
// the shell boots its stage at its own default device, while the box page
|
|
1688
1689
|
// hosts its simulator at the grant's device profile. without ?device= the
|
|
1689
1690
|
// tenant refuses the host hello on dimensions and paints nothing — the
|
package/cli/commands/control.ts
CHANGED
|
@@ -45,6 +45,10 @@ import {
|
|
|
45
45
|
runtimeVersionHostname,
|
|
46
46
|
} from '../../src/runtime-assets'
|
|
47
47
|
import { rnxRuntime } from '../../src/runtime-delivery'
|
|
48
|
+
import {
|
|
49
|
+
PEACH_SIMULATOR_SHELL_FILE,
|
|
50
|
+
isPeachSimulatorDocumentPath,
|
|
51
|
+
} from '../../src/simulator-route'
|
|
48
52
|
import { sleep } from '../../src/sleep'
|
|
49
53
|
import { discoverAppCatalog } from '../app-catalog'
|
|
50
54
|
import { loadRNXAppConfig } from '../app-config'
|
|
@@ -356,8 +360,8 @@ function looksLikeSootsimUrl(target: string): boolean {
|
|
|
356
360
|
url.searchParams.has('port') ||
|
|
357
361
|
url.searchParams.has('bundle') ||
|
|
358
362
|
url.searchParams.has('demo') ||
|
|
359
|
-
url.pathname.includes(
|
|
360
|
-
|
|
363
|
+
url.pathname.includes(PEACH_SIMULATOR_SHELL_FILE) ||
|
|
364
|
+
isPeachSimulatorDocumentPath(pathname) ||
|
|
361
365
|
pathname === '/sootsim' ||
|
|
362
366
|
url.pathname === '/__soot' ||
|
|
363
367
|
url.pathname === '/__soot/' ||
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// `peach list` — connected sims, with the active one marked.
|
|
2
2
|
|
|
3
3
|
import { resolveDevCheckoutRuntimeRoot } from '../../../src/runtime-assets'
|
|
4
|
+
import {
|
|
5
|
+
PEACH_SIMULATOR_PATH,
|
|
6
|
+
PEACH_SIMULATOR_SHELL_FILE,
|
|
7
|
+
} from '../../../src/simulator-route'
|
|
4
8
|
import { type BridgeSimInfo, formatLockOwner, type WsBridge } from '../../ws-bridge'
|
|
5
9
|
import { printJson, wantsJson } from './shared'
|
|
6
10
|
|
|
@@ -88,10 +92,11 @@ function summarizeSimUrl(url: string | undefined): string | null {
|
|
|
88
92
|
return `demo ${parsed.searchParams.get('demo') || 'default'}`
|
|
89
93
|
}
|
|
90
94
|
if (
|
|
91
|
-
parsed.pathname.includes(
|
|
95
|
+
parsed.pathname.includes(PEACH_SIMULATOR_SHELL_FILE) ||
|
|
92
96
|
parsed.pathname === '/sootsim/' ||
|
|
93
97
|
parsed.pathname === '/sootsim' ||
|
|
94
|
-
|
|
98
|
+
parsed.pathname === PEACH_SIMULATOR_PATH ||
|
|
99
|
+
parsed.pathname.startsWith(`${PEACH_SIMULATOR_PATH}/`)
|
|
95
100
|
) {
|
|
96
101
|
return 'embedded peach'
|
|
97
102
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
|
@@ -215,9 +215,16 @@ function fileFromImportMeta() {
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
// src/simulator-route.ts
|
|
219
|
+
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
220
|
+
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
221
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
222
|
+
);
|
|
223
|
+
|
|
218
224
|
// src/bridge-constants.ts
|
|
219
225
|
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
220
226
|
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
227
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
221
228
|
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
222
229
|
|
|
223
230
|
// src/agent-daemon-client.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
|
@@ -36,6 +36,14 @@ __export(bridge_constants_exports, {
|
|
|
36
36
|
resolveSootsimWebSocketProxyUrl: () => resolveSootsimWebSocketProxyUrl
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(bridge_constants_exports);
|
|
39
|
+
|
|
40
|
+
// src/simulator-route.ts
|
|
41
|
+
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
42
|
+
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
43
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
// src/bridge-constants.ts
|
|
39
47
|
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
40
48
|
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
41
49
|
function parsePort(value) {
|
|
@@ -64,6 +72,7 @@ function resolveSootsimBridgePortForHttpPort(input) {
|
|
|
64
72
|
const portOffset = httpPort === null ? 0 : Math.max(0, httpPort - input.baseHttpPort);
|
|
65
73
|
return resolveSootsimBridgePort({ portOffset });
|
|
66
74
|
}
|
|
75
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
67
76
|
var CONTRAST_DEV_HTTP_BASE_PORT = 3e3;
|
|
68
77
|
var SOOTSIM_SITE_DEV_HTTP_BASE_PORT = 3001;
|
|
69
78
|
var SOOTSIM_SHELL_DEV_HTTP_BASE_PORT = 5173;
|
|
@@ -100,7 +109,7 @@ function resolveSootsimBridgePortForRuntimeLocation(input = {}) {
|
|
|
100
109
|
const hrefUrl = parseHrefUrl(input.href);
|
|
101
110
|
const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port);
|
|
102
111
|
if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT;
|
|
103
|
-
const hostedShell = hrefUrl &&
|
|
112
|
+
const hostedShell = hrefUrl && HOSTED_SHELL_PATH.test(hrefUrl.pathname);
|
|
104
113
|
if (hostedShell && (hrefUrl.searchParams.has("embed") || hrefUrl.searchParams.has("nativePreview"))) {
|
|
105
114
|
return resolveSootsimBridgePortForHttpPort({
|
|
106
115
|
httpPort,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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;
|
|
@@ -492,6 +492,18 @@ var init_home_paths = __esm({
|
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
494
|
|
|
495
|
+
// src/simulator-route.ts
|
|
496
|
+
var PEACH_SIMULATOR_PATH, SIMULATOR_DOCUMENT_PATH;
|
|
497
|
+
var init_simulator_route = __esm({
|
|
498
|
+
"src/simulator-route.ts"() {
|
|
499
|
+
"use strict";
|
|
500
|
+
PEACH_SIMULATOR_PATH = "/simulator";
|
|
501
|
+
SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
502
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
503
|
+
);
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
|
|
495
507
|
// src/public-brand.ts
|
|
496
508
|
var name, peachPublicBrand, rnxPublicBrand;
|
|
497
509
|
var init_public_brand = __esm({
|
|
@@ -4635,6 +4647,7 @@ var init_cloud_client = __esm({
|
|
|
4635
4647
|
init_is_record();
|
|
4636
4648
|
init_metro_production_bundle();
|
|
4637
4649
|
init_public_brand();
|
|
4650
|
+
init_simulator_route();
|
|
4638
4651
|
init_auth();
|
|
4639
4652
|
init_cloud_session();
|
|
4640
4653
|
init_detect();
|
|
@@ -6031,8 +6044,10 @@ function automaticPeachUpdatesEnabled(env = process.env) {
|
|
|
6031
6044
|
init_backend_origin();
|
|
6032
6045
|
|
|
6033
6046
|
// src/bridge-constants.ts
|
|
6047
|
+
init_simulator_route();
|
|
6034
6048
|
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
6035
6049
|
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
6050
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
6036
6051
|
var SOOTSIM_BRIDGE_SIM_CLOSE_CODE = 4001;
|
|
6037
6052
|
var SOOTSIM_BRIDGE_SIM_CLOSE_REASON = "sootsim close";
|
|
6038
6053
|
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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;
|
|
@@ -176,6 +176,12 @@ var peachPublicBrand = Object.freeze({
|
|
|
176
176
|
});
|
|
177
177
|
var rnxPublicBrand = peachPublicBrand;
|
|
178
178
|
|
|
179
|
+
// src/simulator-route.ts
|
|
180
|
+
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
181
|
+
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
182
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
183
|
+
);
|
|
184
|
+
|
|
179
185
|
// src/home-paths.ts
|
|
180
186
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
181
187
|
var import_node_os = require("node:os");
|
|
@@ -979,6 +985,7 @@ function resolveSootsimBridgePort(input = {}) {
|
|
|
979
985
|
if (explicitPort !== null) return explicitPort;
|
|
980
986
|
return DEFAULT_SOOTSIM_BRIDGE_PORT + parsePortOffset(input.portOffset);
|
|
981
987
|
}
|
|
988
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
982
989
|
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
983
990
|
|
|
984
991
|
// src/cli-constants.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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.694 | (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;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
|
@@ -18915,6 +18915,22 @@ var init_sleep = __esm({
|
|
|
18915
18915
|
}
|
|
18916
18916
|
});
|
|
18917
18917
|
|
|
18918
|
+
// src/simulator-route.ts
|
|
18919
|
+
function isPeachSimulatorDocumentPath(pathname) {
|
|
18920
|
+
return SIMULATOR_DOCUMENT_PATH.test(pathname);
|
|
18921
|
+
}
|
|
18922
|
+
var PEACH_SIMULATOR_PATH, PEACH_SIMULATOR_SHELL_FILE, SIMULATOR_DOCUMENT_PATH;
|
|
18923
|
+
var init_simulator_route = __esm({
|
|
18924
|
+
"src/simulator-route.ts"() {
|
|
18925
|
+
"use strict";
|
|
18926
|
+
PEACH_SIMULATOR_PATH = "/simulator";
|
|
18927
|
+
PEACH_SIMULATOR_SHELL_FILE = "/sootsim/index.html";
|
|
18928
|
+
SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
18929
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
18930
|
+
);
|
|
18931
|
+
}
|
|
18932
|
+
});
|
|
18933
|
+
|
|
18918
18934
|
// src/bridge-constants.ts
|
|
18919
18935
|
var bridge_constants_exports = {};
|
|
18920
18936
|
__export(bridge_constants_exports, {
|
|
@@ -18985,7 +19001,7 @@ function resolveSootsimBridgePortForRuntimeLocation(input = {}) {
|
|
|
18985
19001
|
const hrefUrl = parseHrefUrl(input.href);
|
|
18986
19002
|
const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port);
|
|
18987
19003
|
if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT;
|
|
18988
|
-
const hostedShell = hrefUrl &&
|
|
19004
|
+
const hostedShell = hrefUrl && HOSTED_SHELL_PATH.test(hrefUrl.pathname);
|
|
18989
19005
|
if (hostedShell && (hrefUrl.searchParams.has("embed") || hrefUrl.searchParams.has("nativePreview"))) {
|
|
18990
19006
|
return resolveSootsimBridgePortForHttpPort({
|
|
18991
19007
|
httpPort,
|
|
@@ -19030,12 +19046,14 @@ function resolveSootsimBridgeWebSocketUrl(input) {
|
|
|
19030
19046
|
function isSootsimBridgeHealth(value, expectedPort) {
|
|
19031
19047
|
return typeof value === "object" && value !== null && Reflect.get(value, "ok") === true && Reflect.get(value, "bridgePort") === expectedPort;
|
|
19032
19048
|
}
|
|
19033
|
-
var DEFAULT_SOOTSIM_BRIDGE_PORT, DEFAULT_SOOTSIM_BRIDGE_URL, CONTRAST_DEV_HTTP_BASE_PORT, SOOTSIM_SITE_DEV_HTTP_BASE_PORT, SOOTSIM_SHELL_DEV_HTTP_BASE_PORT, LOCAL_DEV_HTTP_BASE_PORTS, MAX_LOCAL_DEV_PORT_OFFSET, SOOTSIM_BRIDGE_SIM_CLOSE_CODE, SOOTSIM_BRIDGE_SIM_CLOSE_REASON, AUTOMATION_SIM_IDLE_REAP_TTL_MS;
|
|
19049
|
+
var DEFAULT_SOOTSIM_BRIDGE_PORT, DEFAULT_SOOTSIM_BRIDGE_URL, HOSTED_SHELL_PATH, CONTRAST_DEV_HTTP_BASE_PORT, SOOTSIM_SITE_DEV_HTTP_BASE_PORT, SOOTSIM_SHELL_DEV_HTTP_BASE_PORT, LOCAL_DEV_HTTP_BASE_PORTS, MAX_LOCAL_DEV_PORT_OFFSET, SOOTSIM_BRIDGE_SIM_CLOSE_CODE, SOOTSIM_BRIDGE_SIM_CLOSE_REASON, AUTOMATION_SIM_IDLE_REAP_TTL_MS;
|
|
19034
19050
|
var init_bridge_constants = __esm({
|
|
19035
19051
|
"src/bridge-constants.ts"() {
|
|
19036
19052
|
"use strict";
|
|
19053
|
+
init_simulator_route();
|
|
19037
19054
|
DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
19038
19055
|
DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
19056
|
+
HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
19039
19057
|
CONTRAST_DEV_HTTP_BASE_PORT = 3e3;
|
|
19040
19058
|
SOOTSIM_SITE_DEV_HTTP_BASE_PORT = 3001;
|
|
19041
19059
|
SOOTSIM_SHELL_DEV_HTTP_BASE_PORT = 5173;
|
|
@@ -31496,6 +31514,7 @@ var init_cloud_client = __esm({
|
|
|
31496
31514
|
init_is_record();
|
|
31497
31515
|
init_metro_production_bundle();
|
|
31498
31516
|
init_public_brand();
|
|
31517
|
+
init_simulator_route();
|
|
31499
31518
|
init_auth();
|
|
31500
31519
|
init_cloud_session();
|
|
31501
31520
|
init_detect();
|
|
@@ -39501,7 +39520,7 @@ function looksLikeSootsimUrl(target) {
|
|
|
39501
39520
|
try {
|
|
39502
39521
|
const url = new URL(target);
|
|
39503
39522
|
const pathname = url.pathname.replace(/\/+$/, "") || "/";
|
|
39504
|
-
return url.searchParams.has("open") || url.searchParams.has("port") || url.searchParams.has("bundle") || url.searchParams.has("demo") || url.pathname.includes(
|
|
39523
|
+
return url.searchParams.has("open") || url.searchParams.has("port") || url.searchParams.has("bundle") || url.searchParams.has("demo") || url.pathname.includes(PEACH_SIMULATOR_SHELL_FILE) || isPeachSimulatorDocumentPath(pathname) || pathname === "/sootsim" || url.pathname === "/__soot" || url.pathname === "/__soot/" || pathname === "/rn" || /^\/rn\/[^/]+$/i.test(pathname) || /^\/app\/[^/]+$/i.test(pathname) || pathname === "/__soot/rn" || /^\/__soot\/rn\/[^/]+$/i.test(pathname) || /^\/__soot\/app\/[^/]+$/i.test(pathname);
|
|
39505
39524
|
} catch {
|
|
39506
39525
|
return false;
|
|
39507
39526
|
}
|
|
@@ -41038,6 +41057,7 @@ var init_control = __esm({
|
|
|
41038
41057
|
init_public_brand();
|
|
41039
41058
|
init_runtime_assets();
|
|
41040
41059
|
init_runtime_delivery();
|
|
41060
|
+
init_simulator_route();
|
|
41041
41061
|
init_sleep();
|
|
41042
41062
|
init_app_catalog();
|
|
41043
41063
|
init_app_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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.694 | (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.694 | (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.694 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.694 | (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;
|
|
@@ -44,9 +44,16 @@ var import_path2 = __toESM(require("path"), 1);
|
|
|
44
44
|
var import_vxrn = require("vxrn");
|
|
45
45
|
var import_ws = require("ws");
|
|
46
46
|
|
|
47
|
+
// src/simulator-route.ts
|
|
48
|
+
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
49
|
+
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
50
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
51
|
+
);
|
|
52
|
+
|
|
47
53
|
// src/bridge-constants.ts
|
|
48
54
|
var DEFAULT_SOOTSIM_BRIDGE_PORT = 7668;
|
|
49
55
|
var DEFAULT_SOOTSIM_BRIDGE_URL = `http://localhost:${DEFAULT_SOOTSIM_BRIDGE_PORT}/`;
|
|
56
|
+
var HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`);
|
|
50
57
|
var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
51
58
|
|
|
52
59
|
// src/dev-server-open.ts
|
package/package.json
CHANGED
package/src/bridge-constants.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PEACH_SIMULATOR_PATH } from './simulator-route'
|
|
2
|
+
|
|
1
3
|
// canonical bridge port for sootsim's WebSocket connection between the CLI
|
|
2
4
|
// and the running engine. matches main — kept in a single module so CLI,
|
|
3
5
|
// dev plugin, and runtime agree on the same value.
|
|
@@ -43,6 +45,9 @@ export function resolveSootsimBridgePortForHttpPort(input: {
|
|
|
43
45
|
return resolveSootsimBridgePort({ portOffset })
|
|
44
46
|
}
|
|
45
47
|
|
|
48
|
+
// the simulator route and the retained /sootsim mount it replaced.
|
|
49
|
+
const HOSTED_SHELL_PATH = new RegExp(`^(?:${PEACH_SIMULATOR_PATH}|/sootsim)(?:/|$)`)
|
|
50
|
+
|
|
46
51
|
const CONTRAST_DEV_HTTP_BASE_PORT = 3000
|
|
47
52
|
const SOOTSIM_SITE_DEV_HTTP_BASE_PORT = 3001
|
|
48
53
|
const SOOTSIM_SHELL_DEV_HTTP_BASE_PORT = 5173
|
|
@@ -97,7 +102,7 @@ export function resolveSootsimBridgePortForRuntimeLocation(
|
|
|
97
102
|
const hrefUrl = parseHrefUrl(input.href)
|
|
98
103
|
const httpPort = parsePort(input.httpPort) ?? parsePort(hrefUrl?.port)
|
|
99
104
|
if (httpPort === null) return DEFAULT_SOOTSIM_BRIDGE_PORT
|
|
100
|
-
const hostedShell = hrefUrl &&
|
|
105
|
+
const hostedShell = hrefUrl && HOSTED_SHELL_PATH.test(hrefUrl.pathname)
|
|
101
106
|
if (
|
|
102
107
|
hostedShell &&
|
|
103
108
|
(hrefUrl.searchParams.has('embed') || hrefUrl.searchParams.has('nativePreview'))
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// the simulator shell document's public route on every origin that serves it
|
|
2
|
+
// (contrast, peachsim.com, peach cloud). it lives in peachsim because that
|
|
3
|
+
// package publishes its source, so its own files may import nothing private;
|
|
4
|
+
// repo code imports it through `@peach/globals/simulator-route`, which bun
|
|
5
|
+
// resolves to source. `peach-embed-url/route-from-owner` rejects the path
|
|
6
|
+
// spelled anywhere else, so moving the route can never strand a caller.
|
|
7
|
+
export const PEACH_SIMULATOR_PATH = '/simulator'
|
|
8
|
+
|
|
9
|
+
// the built shell file the route is rewritten to, which was also the public
|
|
10
|
+
// url before the route existed. cached parents and open tabs still load it.
|
|
11
|
+
export const PEACH_SIMULATOR_SHELL_FILE = '/sootsim/index.html'
|
|
12
|
+
|
|
13
|
+
const SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
14
|
+
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
/** the route and the shell's deep links under it: `/rn`, `/rn/<id>`, `/app/<slug>`, `/dock/<id>`. */
|
|
18
|
+
export function isPeachSimulatorDocumentPath(pathname: string): boolean {
|
|
19
|
+
return SIMULATOR_DOCUMENT_PATH.test(pathname)
|
|
20
|
+
}
|