peachsim 0.1.690 → 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.
Files changed (78) hide show
  1. package/cli/cloud-client.ts +2 -1
  2. package/cli/commands/control.ts +6 -2
  3. package/cli/commands/flow.ts +2 -0
  4. package/cli/commands/inspect/list.ts +7 -2
  5. package/cli/commands/upload.ts +15 -1
  6. package/cli/flow-live-status.ts +6 -0
  7. package/dist-lib/agent-daemon-client.cjs +8 -1
  8. package/dist-lib/agent-events.cjs +1 -1
  9. package/dist-lib/agent-identity.cjs +1 -1
  10. package/dist-lib/agent-sessions.cjs +1 -1
  11. package/dist-lib/attached-projects.cjs +1 -1
  12. package/dist-lib/auth/shared-session.cjs +1 -1
  13. package/dist-lib/backend-origin.cjs +1 -1
  14. package/dist-lib/beta.cjs +1 -1
  15. package/dist-lib/beta.mjs +1 -1
  16. package/dist-lib/bridge-constants.cjs +11 -2
  17. package/dist-lib/bridge-contract-input.cjs +1 -1
  18. package/dist-lib/bridge-contract-input.mjs +1 -1
  19. package/dist-lib/bridge-contract.cjs +1 -1
  20. package/dist-lib/bridge-contract.mjs +1 -1
  21. package/dist-lib/capture-contract.cjs +1 -1
  22. package/dist-lib/capture-contract.mjs +1 -1
  23. package/dist-lib/cli-constants.cjs +1 -1
  24. package/dist-lib/cloud-contract.cjs +1 -1
  25. package/dist-lib/cloud-contract.mjs +1 -1
  26. package/dist-lib/cloud-test-args.cjs +1 -1
  27. package/dist-lib/cloud-test-args.mjs +1 -1
  28. package/dist-lib/cloud.cjs +1 -1
  29. package/dist-lib/cloud.mjs +1 -1
  30. package/dist-lib/config.cjs +1 -1
  31. package/dist-lib/detox/index.cjs +1 -1
  32. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +16 -1
  35. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +8 -1
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +1 -1
  51. package/dist-lib/native-app-identity.cjs +1 -1
  52. package/dist-lib/native-app-identity.mjs +1 -1
  53. package/dist-lib/native-firebase-metadata.cjs +1 -1
  54. package/dist-lib/native-firebase-metadata.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/react-native-host-modules.cjs +1 -1
  60. package/dist-lib/react-native-host-modules.mjs +1 -1
  61. package/dist-lib/render-mode.cjs +1 -1
  62. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  63. package/dist-lib/sdk.cjs +1 -1
  64. package/dist-lib/sdk.mjs +1 -1
  65. package/dist-lib/skills.cjs +24 -4
  66. package/dist-lib/swift-compile.cjs +1 -1
  67. package/dist-lib/swift-compile.mjs +1 -1
  68. package/dist-lib/swift-package.cjs +1 -1
  69. package/dist-lib/swift-package.mjs +1 -1
  70. package/dist-lib/swift-submit.cjs +1 -1
  71. package/dist-lib/swift-submit.mjs +1 -1
  72. package/dist-lib/swift-toolchain.cjs +1 -1
  73. package/dist-lib/swift.cjs +1 -1
  74. package/dist-lib/vite-swift.cjs +1 -1
  75. package/dist-lib/vite.cjs +8 -1
  76. package/package.json +1 -1
  77. package/src/bridge-constants.ts +6 -1
  78. package/src/simulator-route.ts +20 -0
@@ -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('/simulator', rnxPublicBrand.origin)
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
@@ -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('/sootsim/index.html') ||
360
- /^\/simulator(?:\/(?:rn(?:\/[^/]+)?|app\/[^/]+|dock\/[^/]+))?$/.test(pathname) ||
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/' ||
@@ -927,6 +927,7 @@ flow extension:
927
927
  if (previewOwner) uploadArgs.push('--owner', previewOwner)
928
928
  if (previewRepo) uploadArgs.push('--repo', previewRepo)
929
929
  uploadArgs.push('--run-scope', previewRunScope)
930
+ uploadArgs.push('--capture', 'run')
930
931
  if (previewBillingKind) {
931
932
  uploadArgs.push('--billing-kind', previewBillingKind)
932
933
  }
@@ -956,6 +957,7 @@ flow extension:
956
957
  }
957
958
  const { runUpload } = await import('./upload')
958
959
  lastPreviewUploadResult = await runUpload(uploadArgs, {})
960
+ await driver.liveStatus?.preview(lastPreviewUploadResult.previewUrl)
959
961
  } catch (err: any) {
960
962
  lastPreviewUploadError =
961
963
  err instanceof PeachExit && err.reason ? err.reason : String(err?.message || err)
@@ -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('/sootsim/index.html') ||
95
+ parsed.pathname.includes(PEACH_SIMULATOR_SHELL_FILE) ||
92
96
  parsed.pathname === '/sootsim/' ||
93
97
  parsed.pathname === '/sootsim' ||
94
- /^\/simulator(?:\/|$)/.test(parsed.pathname)
98
+ parsed.pathname === PEACH_SIMULATOR_PATH ||
99
+ parsed.pathname.startsWith(`${PEACH_SIMULATOR_PATH}/`)
95
100
  ) {
96
101
  return 'embedded peach'
97
102
  }
@@ -12,6 +12,7 @@ import { gzipSync, gunzipSync } from 'zlib'
12
12
  import { shouldCompress } from 'peach-engine/preview/compress'
13
13
  import { brotliBundle } from 'peach-engine/preview/compress-node'
14
14
  import {
15
+ canonicalPublicPreviewOrigin,
15
16
  runPresignedUpload,
16
17
  type InitRequestBody,
17
18
  } from 'peach-engine/preview/presigned-upload'
@@ -190,6 +191,8 @@ options:
190
191
  (error.json, describe.json, a11y.txt, tree.txt,
191
192
  console.json, screenshot.png). uploaded with the share
192
193
  so failed CI runs are debuggable from the dashboard
194
+ --capture <kind> recording (default) opens as the minimal video/live
195
+ player; run opens with the flow trace dock
193
196
  --owner <org> associate a session upload with a linked org repo
194
197
  --repo <repo> repo name for --owner; the signed-in user must belong
195
198
  to the local/org team that owns the link
@@ -464,6 +467,11 @@ export async function runUpload(
464
467
  extractStringFlag(mutableArgs, '--recording-started-at-ms'),
465
468
  '--recording-started-at-ms',
466
469
  )
470
+ const captureRaw = extractStringFlag(mutableArgs, '--capture')
471
+ if (captureRaw !== undefined && captureRaw !== 'recording' && captureRaw !== 'run') {
472
+ throw new Error(`--capture must be recording or run, got ${captureRaw}`)
473
+ }
474
+ const capture = captureRaw
467
475
  const owner = extractStringFlag(mutableArgs, '--owner')
468
476
  const repo = extractStringFlag(mutableArgs, '--repo')
469
477
  const billingKind = extractStringFlag(mutableArgs, '--billing-kind')
@@ -498,6 +506,11 @@ export async function runUpload(
498
506
  const assetsOnly = extractBoolFlag(mutableArgs, '--assets-only')
499
507
 
500
508
  const parsed = parseBridgeCliArgs(mutableArgs, {
509
+ // an upload asks the sim for a whole bundle snapshot, which is not an
510
+ // interactive command the 15s default is sized for: a large bundle or a
511
+ // loaded machine loses the whole upload after the run is already over.
512
+ // an explicit --timeout still wins.
513
+ commandTimeoutMs: 120_000,
501
514
  stripBooleanFlags: [],
502
515
  stripValueFlags: [],
503
516
  })
@@ -1070,6 +1083,7 @@ export async function runUpload(
1070
1083
  traceFrameStats: frameStatsMeta(traceFrameStats),
1071
1084
  recordedDurationMs,
1072
1085
  recordingStartedAtMs,
1086
+ capture,
1073
1087
  failureBundle: failureBundleGz
1074
1088
  ? { sizeBytes: failureBundleGz.byteLength, encoding: 'gzip' }
1075
1089
  : undefined,
@@ -1186,7 +1200,7 @@ export async function runUpload(
1186
1200
  rnxExit(1, message)
1187
1201
  }
1188
1202
 
1189
- const previewUrl = `${publicOrigin}${finalize.url}`
1203
+ const previewUrl = `${canonicalPublicPreviewOrigin(publicOrigin)}${finalize.url}`
1190
1204
  console.log(`\n stored ${finalize.filesStored ?? 0} extra files`)
1191
1205
  console.log(` preview: ${previewUrl}`)
1192
1206
 
@@ -163,6 +163,12 @@ export class FlowLiveStatusReporter {
163
163
  await this.push({ phase: 'end', state })
164
164
  }
165
165
 
166
+ // the finished run's cloud trace url, once --preview has uploaded it. the
167
+ // devtools test pane's Open Trace button opens it.
168
+ async preview(previewUrl: string): Promise<void> {
169
+ await this.push({ phase: 'preview', previewUrl })
170
+ }
171
+
166
172
  // park while the devtools pause toggle is on. checked between top-level
167
173
  // steps only, so a pause never interrupts a step mid-gesture.
168
174
  async waitWhilePaused(): Promise<void> {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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 && /^\/(?:simulator|sootsim)(?:\/|$)/.test(hrefUrl.pathname);
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 20 * 1024 * 1024;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_NATIVE_USER_AGENT_HEADER = "x-sootsim-native-user-agent";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/metro-production-bundle.ts
4
4
  var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-app-identity.ts
4
4
  var NATIVE_APP_IDENTITY_PREFIX = "globalThis.__sootsimNativeAppIdentity=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/native-firebase-metadata.ts
4
4
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plistModule from "@expo/plist";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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);
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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 && /^\/(?:simulator|sootsim)(?:\/|$)/.test(hrefUrl.pathname);
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("/sootsim/index.html") || /^\/simulator(?:\/(?:rn(?:\/[^/]+)?|app\/[^/]+|dock\/[^/]+))?$/.test(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);
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import { execFile as execFile2 } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.694 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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.690 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.690",
3
+ "version": "0.1.694",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -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 && /^\/(?:simulator|sootsim)(?:\/|$)/.test(hrefUrl.pathname)
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
+ }