peachsim 0.1.820 → 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 (80) hide show
  1. package/cli/commands/compat.ts +5 -1
  2. package/cli/commands/control.ts +9 -0
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/agent-identity.cjs +1 -1
  6. package/dist-lib/agent-sessions.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +1 -1
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cli-constants.cjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +4 -2
  28. package/dist-lib/detox/index.cjs +1 -1
  29. package/dist-lib/dev-bundle-resolution.cjs +37 -28
  30. package/dist-lib/expo-swift-bundle.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +1 -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 +4 -2
  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 +4 -2
  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 +49 -30
  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 +1 -1
  76. package/dist-lib/worklet-executable.cjs +1 -1
  77. package/dist-lib/worklet-executable.mjs +1 -1
  78. package/package.json +1 -1
  79. package/src/config.ts +10 -2
  80. 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}`,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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.820 | (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;
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (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.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.820 | (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.820 | (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/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (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;
@@ -26602,7 +26602,9 @@ function isPeachConfig(value) {
26602
26602
  "network",
26603
26603
  "settings",
26604
26604
  "initialState"
26605
- ].every((key2) => value[key2] === void 0 || isRecord(value[key2]));
26605
+ ].every((key2) => value[key2] === void 0 || isRecord(value[key2])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
26606
+ (entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
26607
+ ));
26606
26608
  }
26607
26609
  function readPeachBundleConfig(value) {
26608
26610
  if (value === void 0 || value === null) return null;
@@ -48624,10 +48626,11 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
48624
48626
  let body;
48625
48627
  const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
48626
48628
  headers: { "expo-platform": "ios" }
48627
- }).then(
48628
- async (res) => res.ok ? { ok: true, body: await res.text() } : null,
48629
- () => void 0
48630
- );
48629
+ }).then(async (res) => ({
48630
+ status: res.status,
48631
+ contentType: res.headers.get("content-type") || "",
48632
+ body: await res.text()
48633
+ })).catch(() => void 0);
48631
48634
  let probeDeadline;
48632
48635
  const answered = await Promise.race([
48633
48636
  pending,
@@ -48636,20 +48639,35 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
48636
48639
  })
48637
48640
  ]);
48638
48641
  clearTimeout(probeDeadline);
48639
- if (answered === "timeout" || answered === void 0) return { state: "no-answer" };
48640
- if (answered === null) return { state: "no-manifest" };
48642
+ if (answered === "timeout")
48643
+ throw new Error(
48644
+ `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.`
48645
+ );
48646
+ if (answered === void 0) return { state: "no-answer" };
48647
+ if (answered.status === 404 || answered.status === 405) return { state: "no-manifest" };
48648
+ if (answered.status < 200 || answered.status >= 300)
48649
+ throw new Error(
48650
+ `Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`
48651
+ );
48641
48652
  body = answered.body;
48642
48653
  if (!body.trim()) return { state: "no-answer" };
48643
48654
  let manifest;
48644
48655
  try {
48645
48656
  manifest = JSON.parse(body);
48646
48657
  } catch {
48658
+ if (answered.contentType.includes("json"))
48659
+ throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`);
48647
48660
  return { state: "no-manifest" };
48648
48661
  }
48649
- const client = manifest?.extra?.expoClient || manifest?.extra || {};
48650
- const rawLaunchUrl = typeof manifest?.launchAsset?.url === "string" ? manifest.launchAsset.url : void 0;
48662
+ if (!manifest || typeof manifest !== "object") return { state: "no-manifest" };
48663
+ const extra = "extra" in manifest ? manifest.extra : void 0;
48664
+ const expoClient = extra && typeof extra === "object" && "expoClient" in extra ? extra.expoClient : extra;
48665
+ const client = expoClient && typeof expoClient === "object" ? expoClient : {};
48666
+ const launchAsset = "launchAsset" in manifest ? manifest.launchAsset : void 0;
48667
+ const rawLaunchUrl = launchAsset && typeof launchAsset === "object" && "url" in launchAsset && typeof launchAsset.url === "string" ? launchAsset.url : void 0;
48651
48668
  const launchUrl2 = rawLaunchUrl ? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl) : void 0;
48652
- if (!launchUrl2 && !client.name) return { state: "no-manifest" };
48669
+ const name2 = "name" in client && typeof client.name === "string" ? client.name : void 0;
48670
+ if (!launchUrl2 && !name2) return { state: "no-manifest" };
48653
48671
  return {
48654
48672
  state: "resolved",
48655
48673
  bundle: {
@@ -48657,14 +48675,19 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
48657
48675
  launchUrl2 || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`
48658
48676
  ),
48659
48677
  port,
48660
- framework: inferManifestFramework(launchUrl2, client.sdkVersion),
48661
- projectName: client.name
48678
+ framework: inferManifestFramework(
48679
+ launchUrl2,
48680
+ "sdkVersion" in client ? client.sdkVersion : void 0
48681
+ ),
48682
+ projectName: name2
48662
48683
  }
48663
48684
  };
48664
48685
  }
48665
48686
  async function isPackagerRunning(normalizedBaseUrl) {
48666
48687
  try {
48667
- const res = await fetchDevProbe(`${normalizedBaseUrl}/status`);
48688
+ const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
48689
+ signal: AbortSignal.timeout(5e3)
48690
+ });
48668
48691
  if (!res.ok) return false;
48669
48692
  return (await res.text()).includes("packager-status:running");
48670
48693
  } catch {
@@ -48673,20 +48696,10 @@ async function isPackagerRunning(normalizedBaseUrl) {
48673
48696
  }
48674
48697
  async function probeBaseUrlBundleDirect(baseUrl, port) {
48675
48698
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
48676
- let manifest = await probeExpoManifest(normalizedBaseUrl, port);
48677
- let packagerConfirmed = false;
48678
- if (manifest.state === "no-answer") {
48679
- packagerConfirmed = await isPackagerRunning(normalizedBaseUrl);
48680
- if (!packagerConfirmed) return null;
48681
- const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS;
48682
- while (manifest.state === "no-answer" && Date.now() < deadline) {
48683
- await new Promise((resolve10) => setTimeout(resolve10, MANIFEST_BOOT_RETRY_MS));
48684
- manifest = await probeExpoManifest(normalizedBaseUrl, port);
48685
- }
48686
- }
48699
+ const manifest = await probeExpoManifest(normalizedBaseUrl, port);
48687
48700
  if (manifest.state === "resolved") return manifest.bundle;
48688
48701
  if (manifest.state === "no-answer") return null;
48689
- if (!packagerConfirmed && !await isPackagerRunning(normalizedBaseUrl)) return null;
48702
+ if (!await isPackagerRunning(normalizedBaseUrl)) return null;
48690
48703
  return {
48691
48704
  bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
48692
48705
  port,
@@ -48740,15 +48753,13 @@ async function resolveConnectionInput(input) {
48740
48753
  }
48741
48754
  return { bundleUrl: parsed.toString(), port, framework: "unknown" };
48742
48755
  }
48743
- var MANIFEST_PROBE_TIMEOUT_MS, MANIFEST_BOOT_BUDGET_MS, MANIFEST_BOOT_RETRY_MS;
48756
+ var MANIFEST_PROBE_TIMEOUT_MS;
48744
48757
  var init_dev_bundle_resolution = __esm({
48745
48758
  "src/dev-bundle-resolution.ts"() {
48746
48759
  "use strict";
48747
48760
  init_backend_origin();
48748
48761
  init_native_dev_bundle_url();
48749
- MANIFEST_PROBE_TIMEOUT_MS = 5e3;
48750
- MANIFEST_BOOT_BUDGET_MS = 3e4;
48751
- MANIFEST_BOOT_RETRY_MS = 1e3;
48762
+ MANIFEST_PROBE_TIMEOUT_MS = 3e4;
48752
48763
  }
48753
48764
  });
48754
48765
 
@@ -53484,6 +53495,7 @@ function localBasePort(target) {
53484
53495
  async function resolveConnectionInputForCli(target) {
53485
53496
  const normalized = normalizeKnownTarget(target);
53486
53497
  const registeredPort = /^\d+$/.test(normalized) ? Number(normalized) : localBasePort(normalized);
53498
+ console.log(` resolving native bundle for ${normalized} (manifest timeout: 30s)\u2026`);
53487
53499
  let lastError = null;
53488
53500
  for (let attempt = 0; attempt < DEV_BUNDLE_RESOLVE_ATTEMPTS; attempt++) {
53489
53501
  if (registeredPort && registeredPort > 0) {
@@ -54970,6 +54982,13 @@ async function runCloseCommand(args, opts = {}) {
54970
54982
  } catch (err) {
54971
54983
  rethrowIfExit(err);
54972
54984
  console.error(` close failed: ${err instanceof Error ? err.message : String(err)}`);
54985
+ const word = parsed.positional[0];
54986
+ if (word === "all" || word === "others") {
54987
+ console.error(
54988
+ ` to close ${word === "all" ? "every" : "every other"} sim: peach close --${word}`
54989
+ );
54990
+ rnxExit(1);
54991
+ }
54973
54992
  await printBridgeFailureDiagnostics(bridge, {
54974
54993
  errorsCommand: `peach get errors 5${simHint}`,
54975
54994
  warningsCommand: `peach get warnings 5${simHint}`,
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import { execFile as execFile2, execFileSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (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.820 | (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.820 | (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.820 | (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/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.820 | (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.820 | (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.820 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.820",
3
+ "version": "0.1.821",
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",
package/src/config.ts CHANGED
@@ -22,7 +22,8 @@ export type NativeModuleResolution = ModuleResolution | Record<string, any> // d
22
22
  // an app's own native view, keyed by its `requireNativeComponent` name or, for
23
23
  // an expo module view, `Module_View` (`Module` for a module's only view). the
24
24
  // file default-exports the component that renders in its place with its props.
25
- export type NativeViewResolution = { file: string }
25
+ // 'noop' explicitly renders nothing in either native view lookup path.
26
+ export type NativeViewResolution = 'noop' | { file: string }
26
27
 
27
28
  export interface PeachConfig<Settings extends Record<string, any> = Record<string, any>> {
28
29
  // host-only engine selection. omitted means the current stable runtime.
@@ -86,7 +87,14 @@ export function isPeachConfig(value: unknown): value is PeachConfig {
86
87
  'network',
87
88
  'settings',
88
89
  'initialState',
89
- ].every((key) => value[key] === undefined || isRecord(value[key]))
90
+ ].every((key) => value[key] === undefined || isRecord(value[key])) &&
91
+ (value.nativeViews === undefined ||
92
+ (isRecord(value.nativeViews) &&
93
+ Object.values(value.nativeViews).every(
94
+ (entry) =>
95
+ entry === 'noop' ||
96
+ (isRecord(entry) && typeof entry.file === 'string' && entry.file.length > 0),
97
+ )))
90
98
  )
91
99
  }
92
100
 
@@ -154,13 +154,10 @@ type ManifestProbe =
154
154
  | { state: 'no-manifest' }
155
155
  | { state: 'no-answer' }
156
156
 
157
- // a `/` that has not answered in this long is a server still coming up, not a
158
- // server telling us what it is. without it an unresponsive dev server hangs
159
- // the caller for as long as it feels like.
160
- const MANIFEST_PROBE_TIMEOUT_MS = 5_000
161
- // how long to keep asking a confirmed-running packager for its manifest.
162
- const MANIFEST_BOOT_BUDGET_MS = 30_000
163
- const MANIFEST_BOOT_RETRY_MS = 1_000
157
+ // keep the same request alive through cold config and fingerprint evaluation.
158
+ // discarding it after a short probe and starting another can never resolve a
159
+ // manifest whose response consistently takes longer than that probe.
160
+ const MANIFEST_PROBE_TIMEOUT_MS = 30_000
164
161
 
165
162
  async function probeExpoManifest(
166
163
  normalizedBaseUrl: string,
@@ -171,14 +168,17 @@ async function probeExpoManifest(
171
168
  // does the second: it tears down a dev server that is still assembling its
172
169
  // manifest, which fires "Cannot pipe to a closed or destroyed stream" into
173
170
  // One's manifest middleware and can exit the user's dev server. so nothing
174
- // here aborts. we race the probe against the budget, answer `no-answer` on
175
- // time, and let the request run itself out in the background, discarded.
171
+ // here aborts. wait on this one request until the startup deadline, then
172
+ // report a terminal timeout instead of restarting the same slow work.
176
173
  const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
177
174
  headers: { 'expo-platform': 'ios' },
178
- }).then(
179
- async (res) => (res.ok ? { ok: true as const, body: await res.text() } : null),
180
- () => undefined,
181
- )
175
+ })
176
+ .then(async (res) => ({
177
+ status: res.status,
178
+ contentType: res.headers.get('content-type') || '',
179
+ body: await res.text(),
180
+ }))
181
+ .catch(() => undefined)
182
182
  let probeDeadline: ReturnType<typeof setTimeout> | undefined
183
183
  const answered = await Promise.race([
184
184
  pending,
@@ -188,27 +188,49 @@ async function probeExpoManifest(
188
188
  ])
189
189
  // the race is settled, so drop the deadline rather than leaving it pending.
190
190
  clearTimeout(probeDeadline)
191
- if (answered === 'timeout' || answered === undefined) return { state: 'no-answer' }
192
- if (answered === null) return { state: 'no-manifest' }
191
+ if (answered === 'timeout')
192
+ throw new Error(
193
+ `Metro manifest request timed out after ${MANIFEST_PROBE_TIMEOUT_MS / 1000}s: ${normalizedBaseUrl}/. Wait for the dev server to finish starting or check its manifest endpoint.`,
194
+ )
195
+ if (answered === undefined) return { state: 'no-answer' }
196
+ if (answered.status === 404 || answered.status === 405) return { state: 'no-manifest' }
197
+ if (answered.status < 200 || answered.status >= 300)
198
+ throw new Error(
199
+ `Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`,
200
+ )
193
201
  body = answered.body
194
202
  if (!body.trim()) return { state: 'no-answer' }
195
203
 
196
- let manifest: any
204
+ let manifest: unknown
197
205
  try {
198
206
  manifest = JSON.parse(body)
199
207
  } catch {
208
+ if (answered.contentType.includes('json'))
209
+ throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`)
200
210
  // a page rather than a manifest — Metro's landing page, or an app's own
201
211
  // SSR html. that is a real answer: this server serves no manifest.
202
212
  return { state: 'no-manifest' }
203
213
  }
204
214
 
205
- const client = manifest?.extra?.expoClient || manifest?.extra || {}
215
+ if (!manifest || typeof manifest !== 'object') return { state: 'no-manifest' }
216
+ const extra = 'extra' in manifest ? manifest.extra : undefined
217
+ const expoClient =
218
+ extra && typeof extra === 'object' && 'expoClient' in extra ? extra.expoClient : extra
219
+ const client = expoClient && typeof expoClient === 'object' ? expoClient : {}
220
+ const launchAsset = 'launchAsset' in manifest ? manifest.launchAsset : undefined
206
221
  const rawLaunchUrl =
207
- typeof manifest?.launchAsset?.url === 'string' ? manifest.launchAsset.url : undefined
222
+ launchAsset &&
223
+ typeof launchAsset === 'object' &&
224
+ 'url' in launchAsset &&
225
+ typeof launchAsset.url === 'string'
226
+ ? launchAsset.url
227
+ : undefined
208
228
  const launchUrl = rawLaunchUrl
209
229
  ? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl)
210
230
  : undefined
211
- if (!launchUrl && !client.name) return { state: 'no-manifest' }
231
+ const name =
232
+ 'name' in client && typeof client.name === 'string' ? client.name : undefined
233
+ if (!launchUrl && !name) return { state: 'no-manifest' }
212
234
 
213
235
  return {
214
236
  state: 'resolved',
@@ -217,15 +239,20 @@ async function probeExpoManifest(
217
239
  launchUrl || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
218
240
  ),
219
241
  port,
220
- framework: inferManifestFramework(launchUrl, client.sdkVersion),
221
- projectName: client.name,
242
+ framework: inferManifestFramework(
243
+ launchUrl,
244
+ 'sdkVersion' in client ? client.sdkVersion : undefined,
245
+ ),
246
+ projectName: name,
222
247
  },
223
248
  }
224
249
  }
225
250
 
226
251
  async function isPackagerRunning(normalizedBaseUrl: string): Promise<boolean> {
227
252
  try {
228
- const res = await fetchDevProbe(`${normalizedBaseUrl}/status`)
253
+ const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
254
+ signal: AbortSignal.timeout(5_000),
255
+ })
229
256
  if (!res.ok) return false
230
257
  return (await res.text()).includes('packager-status:running')
231
258
  } catch {
@@ -239,22 +266,7 @@ async function probeBaseUrlBundleDirect(
239
266
  ): Promise<ResolvedDevBundle | null> {
240
267
  const normalizedBaseUrl = baseUrl.replace(/\/+$/, '')
241
268
 
242
- let manifest = await probeExpoManifest(normalizedBaseUrl, port)
243
- let packagerConfirmed = false
244
-
245
- // nothing answered `/`. that is either a closed address — the other loopback
246
- // family, a dead port — or a packager whose manifest middleware has not come
247
- // up yet. `/status` separates them, and only the second is worth waiting on.
248
- if (manifest.state === 'no-answer') {
249
- packagerConfirmed = await isPackagerRunning(normalizedBaseUrl)
250
- if (!packagerConfirmed) return null
251
- const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS
252
- while (manifest.state === 'no-answer' && Date.now() < deadline) {
253
- await new Promise((resolve) => setTimeout(resolve, MANIFEST_BOOT_RETRY_MS))
254
- manifest = await probeExpoManifest(normalizedBaseUrl, port)
255
- }
256
- }
257
-
269
+ const manifest = await probeExpoManifest(normalizedBaseUrl, port)
258
270
  if (manifest.state === 'resolved') return manifest.bundle
259
271
  // a server that never says what it is gets no guessed entry point.
260
272
  if (manifest.state === 'no-answer') return null
@@ -271,7 +283,7 @@ async function probeBaseUrlBundleDirect(
271
283
  // the Expo manifest probe above already returns the correct launchAsset.url
272
284
  // for One apps (which serve the Expo manifest format via vxrn), so we
273
285
  // drop the bespoke One probe entirely.
274
- if (!packagerConfirmed && !(await isPackagerRunning(normalizedBaseUrl))) return null
286
+ if (!(await isPackagerRunning(normalizedBaseUrl))) return null
275
287
  return {
276
288
  bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
277
289
  port,