peachsim 0.1.819 → 0.1.821

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 (83) hide show
  1. package/cli/commands/compat.ts +5 -1
  2. package/cli/commands/control.ts +9 -0
  3. package/cli/commands/inspect/core.ts +13 -0
  4. package/cli/commands/screenshot-layers.ts +2 -2
  5. package/cli/commands/screenshot.ts +4 -3
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/agent-identity.cjs +1 -1
  9. package/dist-lib/agent-sessions.cjs +1 -1
  10. package/dist-lib/attached-projects.cjs +1 -1
  11. package/dist-lib/auth/shared-session.cjs +1 -1
  12. package/dist-lib/backend-origin.cjs +1 -1
  13. package/dist-lib/beta.cjs +1 -1
  14. package/dist-lib/beta.mjs +1 -1
  15. package/dist-lib/bridge-constants.cjs +1 -1
  16. package/dist-lib/bridge-contract-input.cjs +1 -1
  17. package/dist-lib/bridge-contract-input.mjs +1 -1
  18. package/dist-lib/bridge-contract.cjs +1 -1
  19. package/dist-lib/bridge-contract.mjs +1 -1
  20. package/dist-lib/bundle-channel.cjs +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 +4 -2
  31. package/dist-lib/detox/index.cjs +3 -1
  32. package/dist-lib/dev-bundle-resolution.cjs +37 -28
  33. package/dist-lib/expo-swift-bundle.cjs +1 -1
  34. package/dist-lib/expo-swift-metadata.cjs +1 -1
  35. package/dist-lib/expo-swift-metadata.mjs +1 -1
  36. package/dist-lib/home-paths.cjs +1 -1
  37. package/dist-lib/host/bridge-host.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  39. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  40. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  41. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  42. package/dist-lib/host/websocket-proxy.cjs +1 -1
  43. package/dist-lib/index.cjs +4 -2
  44. package/dist-lib/jump-to-source-babel.cjs +1 -1
  45. package/dist-lib/jump-to-source-native.cjs +1 -1
  46. package/dist-lib/kotlin-host.cjs +1 -1
  47. package/dist-lib/menu.cjs +1 -1
  48. package/dist-lib/menu.mjs +1 -1
  49. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  50. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  51. package/dist-lib/metro-production-bundle.cjs +1 -1
  52. package/dist-lib/metro-production-bundle.mjs +1 -1
  53. package/dist-lib/metro.cjs +4 -2
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/render-mode.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +8 -1
  67. package/dist-lib/sdk.mjs +7 -1
  68. package/dist-lib/skills.cjs +49 -30
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +1 -1
  78. package/dist-lib/vite.cjs +1 -1
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/package.json +1 -1
  82. package/src/config.ts +10 -2
  83. package/src/dev-bundle-resolution.ts +51 -39
@@ -211,7 +211,11 @@ async function scanLocalNative(
211
211
  ): Promise<LocalNative[]> {
212
212
  const { config } = await resolveRNXAppConfig(appDir)
213
213
  const answered = {
214
- module: new Set(Object.keys({ ...config?.turboModules, ...config?.nativeModules })),
214
+ module: new Set(
215
+ Object.entries({ ...config?.turboModules, ...config?.nativeModules })
216
+ .filter(([, resolution]) => resolution !== false)
217
+ .map(([name]) => name),
218
+ ),
215
219
  view: new Set(Object.keys(config?.nativeViews ?? {})),
216
220
  }
217
221
  const expoModuleDirs: string[] = []
@@ -465,6 +465,7 @@ async function resolveConnectionInputForCli(target: string): Promise<ResolvedDev
465
465
  ? Number(normalized)
466
466
  : localBasePort(normalized)
467
467
 
468
+ console.log(` resolving native bundle for ${normalized} (manifest timeout: 30s)…`)
468
469
  let lastError: Error | null = null
469
470
  for (let attempt = 0; attempt < DEV_BUNDLE_RESOLVE_ATTEMPTS; attempt++) {
470
471
  if (registeredPort && registeredPort > 0) {
@@ -2504,6 +2505,14 @@ export async function runCloseCommand(args: string[], opts: ControlCommandOption
2504
2505
  } catch (err) {
2505
2506
  rethrowIfExit(err)
2506
2507
  console.error(` close failed: ${err instanceof Error ? err.message : String(err)}`)
2508
+ // `all` and `others` are flags, never sim ids.
2509
+ const word = parsed.positional[0]
2510
+ if (word === 'all' || word === 'others') {
2511
+ console.error(
2512
+ ` to close ${word === 'all' ? 'every' : 'every other'} sim: peach close --${word}`,
2513
+ )
2514
+ rnxExit(1)
2515
+ }
2507
2516
  await printBridgeFailureDiagnostics(bridge, {
2508
2517
  errorsCommand: `peach get errors 5${simHint}`,
2509
2518
  warningsCommand: `peach get warnings 5${simHint}`,
@@ -1255,6 +1255,19 @@ export async function inspectWaitReady(
1255
1255
  return status
1256
1256
  }
1257
1257
 
1258
+ // readiness for a capture: a capture records the screen as it is now, so an
1259
+ // app showing content answers from one probe, and only a booting, loading or
1260
+ // reloading app waits for the stable ready state. waiting out the stability
1261
+ // window on a settled app delayed every screenshot by most of a second.
1262
+ export async function inspectCaptureReady(
1263
+ bridge: InspectBridge,
1264
+ timeoutMs: number,
1265
+ ): Promise<WaitReadyStatus> {
1266
+ const snapshot = await inspectReadySnapshot(bridge, 0)
1267
+ if (snapshot.ready) return snapshot
1268
+ return inspectWaitReady(bridge, timeoutMs)
1269
+ }
1270
+
1258
1271
  // how long one snapshot request may take to cross the bridge and read once
1259
1272
  const READY_SNAPSHOT_SEND_TIMEOUT_MS = 2_000
1260
1273
 
@@ -13,7 +13,7 @@ import { devices } from 'peach-engine/settings/devices'
13
13
  import { buildResolveRectEval, type SampleRect } from '../browser-evals'
14
14
  import { rnxExit } from '../run-rnx'
15
15
  import { callInBridge, createBridgeFromParsed, parseBridgeCliArgs } from '../ws-bridge'
16
- import { inspectWaitReady, waitReadyReason } from './inspect/core'
16
+ import { inspectCaptureReady, waitReadyReason } from './inspect/core'
17
17
 
18
18
  interface ScreenshotLayersOptions {
19
19
  port?: number
@@ -66,7 +66,7 @@ output:
66
66
  })
67
67
  const bridge = createBridgeFromParsed({ ...parsed, commandTimeoutMs: 45000 })
68
68
  try {
69
- const readiness = await inspectWaitReady(bridge, 90_000)
69
+ const readiness = await inspectCaptureReady(bridge, 90_000)
70
70
  if (!readiness.ready) {
71
71
  throw new Error(
72
72
  `app not ready to capture after ${Math.round(readiness.elapsedMs / 1000)}s ` +
@@ -22,7 +22,7 @@ import {
22
22
  createBridgeFromParsed,
23
23
  parseBridgeCliArgs,
24
24
  } from '../ws-bridge'
25
- import { inspectWaitReady, waitReadyReason } from './inspect/core'
25
+ import { inspectCaptureReady, waitReadyReason } from './inspect/core'
26
26
 
27
27
  interface ScreenshotOptions {
28
28
  port?: number
@@ -243,10 +243,11 @@ async function captureViaBridge(
243
243
  // login screen. gate on the same probe `wait ready` uses, on this very
244
244
  // connection, so the capture only ever fires on real painted content; a
245
245
  // genuinely-stuck app yields no image (run.sh treats that as no thumbnail,
246
- // which beats a boot-card thumbnail). already-ready apps clear in <1s.
246
+ // which beats a boot-card thumbnail). an app already showing content
247
+ // answers from one probe, so the capture is of the screen as it is now.
247
248
  if (!allowLoading) {
248
249
  const readyMaxMs = Number(process.env.CONTRAST_SCREENSHOT_READY_MAX_MS) || 90_000
249
- const readiness = await inspectWaitReady(bridge, readyMaxMs)
250
+ const readiness = await inspectCaptureReady(bridge, readyMaxMs)
250
251
  // "don't baseline this" is not "don't capture this". a boot/loading card
251
252
  // is transient and capturing it produces a thumbnail that lies. a crashed
252
253
  // app is the opposite: the red box IS the evidence a boot-failure report
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -74,7 +74,9 @@ function isPeachConfig(value) {
74
74
  "network",
75
75
  "settings",
76
76
  "initialState"
77
- ].every((key) => value[key] === void 0 || isRecord(value[key]));
77
+ ].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
78
+ (entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
79
+ ));
78
80
  }
79
81
  var BUNDLE_CONFIG_PREFIX = "globalThis.__peachBundleConfig=";
80
82
  var PEACH_CONFIGURED_FILES_HOOK = "__peachInstallConfiguredFiles";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2478,6 +2478,7 @@ async function automateWebViewFrames(context, names, helpers) {
2478
2478
  });
2479
2479
  };
2480
2480
  context.on("request", (request) => {
2481
+ if (request.serviceWorker()) return;
2481
2482
  if (!request.isNavigationRequest() || request.redirectedFrom()) return;
2482
2483
  if (!helpers.isAppScheme(request.url())) return;
2483
2484
  const frame = request.frame();
@@ -2504,6 +2505,7 @@ async function automateWebViewFrames(context, names, helpers) {
2504
2505
  };
2505
2506
  context.on("response", (response) => {
2506
2507
  const request = response.request();
2508
+ if (request.serviceWorker()) return;
2507
2509
  const frame = request.frame();
2508
2510
  if (request.isNavigationRequest()) return;
2509
2511
  if (frame.parentFrame() !== frame.page().mainFrame()) return;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -158,17 +158,16 @@ async function resolvePortViaServerScan(port) {
158
158
  return null;
159
159
  }
160
160
  }
161
- var MANIFEST_PROBE_TIMEOUT_MS = 5e3;
162
- var MANIFEST_BOOT_BUDGET_MS = 3e4;
163
- var MANIFEST_BOOT_RETRY_MS = 1e3;
161
+ var MANIFEST_PROBE_TIMEOUT_MS = 3e4;
164
162
  async function probeExpoManifest(normalizedBaseUrl, port) {
165
163
  let body;
166
164
  const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
167
165
  headers: { "expo-platform": "ios" }
168
- }).then(
169
- async (res) => res.ok ? { ok: true, body: await res.text() } : null,
170
- () => void 0
171
- );
166
+ }).then(async (res) => ({
167
+ status: res.status,
168
+ contentType: res.headers.get("content-type") || "",
169
+ body: await res.text()
170
+ })).catch(() => void 0);
172
171
  let probeDeadline;
173
172
  const answered = await Promise.race([
174
173
  pending,
@@ -177,20 +176,35 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
177
176
  })
178
177
  ]);
179
178
  clearTimeout(probeDeadline);
180
- if (answered === "timeout" || answered === void 0) return { state: "no-answer" };
181
- if (answered === null) return { state: "no-manifest" };
179
+ if (answered === "timeout")
180
+ throw new Error(
181
+ `Metro manifest request timed out after ${MANIFEST_PROBE_TIMEOUT_MS / 1e3}s: ${normalizedBaseUrl}/. Wait for the dev server to finish starting or check its manifest endpoint.`
182
+ );
183
+ if (answered === void 0) return { state: "no-answer" };
184
+ if (answered.status === 404 || answered.status === 405) return { state: "no-manifest" };
185
+ if (answered.status < 200 || answered.status >= 300)
186
+ throw new Error(
187
+ `Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`
188
+ );
182
189
  body = answered.body;
183
190
  if (!body.trim()) return { state: "no-answer" };
184
191
  let manifest;
185
192
  try {
186
193
  manifest = JSON.parse(body);
187
194
  } catch {
195
+ if (answered.contentType.includes("json"))
196
+ throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`);
188
197
  return { state: "no-manifest" };
189
198
  }
190
- const client = manifest?.extra?.expoClient || manifest?.extra || {};
191
- const rawLaunchUrl = typeof manifest?.launchAsset?.url === "string" ? manifest.launchAsset.url : void 0;
199
+ if (!manifest || typeof manifest !== "object") return { state: "no-manifest" };
200
+ const extra = "extra" in manifest ? manifest.extra : void 0;
201
+ const expoClient = extra && typeof extra === "object" && "expoClient" in extra ? extra.expoClient : extra;
202
+ const client = expoClient && typeof expoClient === "object" ? expoClient : {};
203
+ const launchAsset = "launchAsset" in manifest ? manifest.launchAsset : void 0;
204
+ const rawLaunchUrl = launchAsset && typeof launchAsset === "object" && "url" in launchAsset && typeof launchAsset.url === "string" ? launchAsset.url : void 0;
192
205
  const launchUrl = rawLaunchUrl ? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl) : void 0;
193
- if (!launchUrl && !client.name) return { state: "no-manifest" };
206
+ const name = "name" in client && typeof client.name === "string" ? client.name : void 0;
207
+ if (!launchUrl && !name) return { state: "no-manifest" };
194
208
  return {
195
209
  state: "resolved",
196
210
  bundle: {
@@ -198,14 +212,19 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
198
212
  launchUrl || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`
199
213
  ),
200
214
  port,
201
- framework: inferManifestFramework(launchUrl, client.sdkVersion),
202
- projectName: client.name
215
+ framework: inferManifestFramework(
216
+ launchUrl,
217
+ "sdkVersion" in client ? client.sdkVersion : void 0
218
+ ),
219
+ projectName: name
203
220
  }
204
221
  };
205
222
  }
206
223
  async function isPackagerRunning(normalizedBaseUrl) {
207
224
  try {
208
- const res = await fetchDevProbe(`${normalizedBaseUrl}/status`);
225
+ const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
226
+ signal: AbortSignal.timeout(5e3)
227
+ });
209
228
  if (!res.ok) return false;
210
229
  return (await res.text()).includes("packager-status:running");
211
230
  } catch {
@@ -214,20 +233,10 @@ async function isPackagerRunning(normalizedBaseUrl) {
214
233
  }
215
234
  async function probeBaseUrlBundleDirect(baseUrl, port) {
216
235
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
217
- let manifest = await probeExpoManifest(normalizedBaseUrl, port);
218
- let packagerConfirmed = false;
219
- if (manifest.state === "no-answer") {
220
- packagerConfirmed = await isPackagerRunning(normalizedBaseUrl);
221
- if (!packagerConfirmed) return null;
222
- const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS;
223
- while (manifest.state === "no-answer" && Date.now() < deadline) {
224
- await new Promise((resolve) => setTimeout(resolve, MANIFEST_BOOT_RETRY_MS));
225
- manifest = await probeExpoManifest(normalizedBaseUrl, port);
226
- }
227
- }
236
+ const manifest = await probeExpoManifest(normalizedBaseUrl, port);
228
237
  if (manifest.state === "resolved") return manifest.bundle;
229
238
  if (manifest.state === "no-answer") return null;
230
- if (!packagerConfirmed && !await isPackagerRunning(normalizedBaseUrl)) return null;
239
+ if (!await isPackagerRunning(normalizedBaseUrl)) return null;
231
240
  return {
232
241
  bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
233
242
  port,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/expoSwiftContract.ts
4
4
  function record(value) {
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2011,7 +2011,9 @@ function isPeachConfig(value) {
2011
2011
  "network",
2012
2012
  "settings",
2013
2013
  "initialState"
2014
- ].every((key) => value[key] === void 0 || isRecord(value[key]));
2014
+ ].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
2015
+ (entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
2016
+ ));
2015
2017
  }
2016
2018
  function readPeachBundleConfig(value) {
2017
2019
  if (value === void 0 || value === null) return null;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } 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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.819 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1994,7 +1994,9 @@ function isPeachConfig(value) {
1994
1994
  "network",
1995
1995
  "settings",
1996
1996
  "initialState"
1997
- ].every((key) => value[key] === void 0 || isRecord2(value[key]));
1997
+ ].every((key) => value[key] === void 0 || isRecord2(value[key])) && (value.nativeViews === void 0 || isRecord2(value.nativeViews) && Object.values(value.nativeViews).every(
1998
+ (entry) => entry === "noop" || isRecord2(entry) && typeof entry.file === "string" && entry.file.length > 0
1999
+ ));
1998
2000
  }
1999
2001
  function readPeachBundleConfig(value) {
2000
2002
  if (value === void 0 || value === null) return null;