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
@@ -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/native-app-identity.ts
4
4
  var NATIVE_APP_IDENTITY_PREFIX = "globalThis.__sootsimNativeAppIdentity=";
@@ -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/native-firebase-metadata.ts
4
4
  var PREFIX = "globalThis.__peachNativeFirebaseConfig=";
@@ -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
 
3
3
  // src/plist.ts
4
4
  import plist from "plist";
@@ -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
 
3
3
  // src/react-native-host-modules.ts
4
4
  var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
@@ -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;
package/dist-lib/sdk.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;
@@ -50,6 +50,7 @@ __export(sdk_exports, {
50
50
  formatTimelineSummary: () => formatTimelineSummary,
51
51
  getShellState: () => getShellState,
52
52
  inspectAccessibilityTree: () => inspectAccessibilityTree,
53
+ inspectCaptureReady: () => inspectCaptureReady,
53
54
  inspectDebugFind: () => inspectDebugFind,
54
55
  inspectDebugFlags: () => inspectDebugFlags,
55
56
  inspectDebugRecent: () => inspectDebugRecent,
@@ -864,6 +865,11 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
864
865
  if (!status.ready && options.onProgress) options.onProgress(status);
865
866
  return status;
866
867
  }
868
+ async function inspectCaptureReady(bridge, timeoutMs) {
869
+ const snapshot = await inspectReadySnapshot(bridge, 0);
870
+ if (snapshot.ready) return snapshot;
871
+ return inspectWaitReady(bridge, timeoutMs);
872
+ }
867
873
  var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
868
874
  async function inspectReadySnapshot(bridge, budgetMs, simId) {
869
875
  const deadline = Date.now() + budgetMs;
@@ -2667,6 +2673,7 @@ var SimClient = class {
2667
2673
  formatTimelineSummary,
2668
2674
  getShellState,
2669
2675
  inspectAccessibilityTree,
2676
+ inspectCaptureReady,
2670
2677
  inspectDebugFind,
2671
2678
  inspectDebugFlags,
2672
2679
  inspectDebugRecent,
package/dist-lib/sdk.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
  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);
@@ -761,6 +761,11 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
761
761
  if (!status.ready && options.onProgress) options.onProgress(status);
762
762
  return status;
763
763
  }
764
+ async function inspectCaptureReady(bridge, timeoutMs) {
765
+ const snapshot = await inspectReadySnapshot(bridge, 0);
766
+ if (snapshot.ready) return snapshot;
767
+ return inspectWaitReady(bridge, timeoutMs);
768
+ }
764
769
  var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
765
770
  async function inspectReadySnapshot(bridge, budgetMs, simId) {
766
771
  const deadline = Date.now() + budgetMs;
@@ -2563,6 +2568,7 @@ export {
2563
2568
  formatTimelineSummary,
2564
2569
  getShellState,
2565
2570
  inspectAccessibilityTree,
2571
+ inspectCaptureReady,
2566
2572
  inspectDebugFind,
2567
2573
  inspectDebugFlags,
2568
2574
  inspectDebugRecent,
@@ -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;
@@ -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.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
 
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.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/swift-package.ts
4
4
  function isSwiftManifestFile(file) {
@@ -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/swift-submit.ts
4
4
  var SWIFT_COMPILE_PATH = "/api/swift-compile";
@@ -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;
package/dist-lib/vite.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 __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/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.819",
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,