peachsim 0.1.2129 → 0.1.2155

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 (146) hide show
  1. package/README.md +1 -1
  2. package/cli/app-fonts.ts +1 -1
  3. package/cli/app-stubs.ts +1 -1
  4. package/cli/cli-release-origin.ts +1 -0
  5. package/cli/cli-update.ts +1 -1
  6. package/cli/cloud-box-artifact.ts +1 -1
  7. package/cli/cloud-test-tunnel.ts +1 -1
  8. package/cli/commands/compat.ts +1 -1
  9. package/cli/commands/control.ts +2 -0
  10. package/cli/commands/coverage.ts +1 -1
  11. package/cli/commands/flow.ts +8 -1
  12. package/cli/commands/inspect/core.ts +25 -4
  13. package/cli/commands/package.ts +21 -12
  14. package/cli/commands/shell-url.ts +8 -3
  15. package/cli/commands/upgrade.ts +1 -1
  16. package/cli/drivers/linux-browser-libs.ts +1 -1
  17. package/cli/outbound-endpoints.ts +4 -0
  18. package/cli/remote-project-bundle.ts +2 -2
  19. package/detox/index.ts +12 -5
  20. package/dist-lib/agent-daemon-client.cjs +1 -1
  21. package/dist-lib/agent-events.cjs +1 -1
  22. package/dist-lib/attached-projects.cjs +1 -1
  23. package/dist-lib/auth/shared-session.cjs +1 -1
  24. package/dist-lib/backend-origin.cjs +1 -1
  25. package/dist-lib/beta.cjs +1 -1
  26. package/dist-lib/beta.mjs +1 -1
  27. package/dist-lib/bridge-constants.cjs +1 -1
  28. package/dist-lib/bridge-contract-input.cjs +1 -1
  29. package/dist-lib/bridge-contract-input.mjs +1 -1
  30. package/dist-lib/bridge-contract.cjs +1 -1
  31. package/dist-lib/bridge-contract.mjs +1 -1
  32. package/dist-lib/bundle-channel.cjs +1795 -1801
  33. package/dist-lib/capture-contract.cjs +1 -1
  34. package/dist-lib/capture-contract.mjs +1 -1
  35. package/dist-lib/cloud-contract.cjs +1 -1
  36. package/dist-lib/cloud-contract.mjs +1 -1
  37. package/dist-lib/cloud-test-args.cjs +1 -1
  38. package/dist-lib/cloud-test-args.mjs +1 -1
  39. package/dist-lib/cloud.cjs +1 -1
  40. package/dist-lib/cloud.mjs +1 -1
  41. package/dist-lib/config.cjs +2 -2
  42. package/dist-lib/config.mjs +2 -2
  43. package/dist-lib/detox/index.cjs +31 -8
  44. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  45. package/dist-lib/expo-swift-bundle.cjs +41 -33
  46. package/dist-lib/expo-swift-metadata.cjs +10 -2
  47. package/dist-lib/expo-swift-metadata.mjs +9 -2
  48. package/dist-lib/home-paths.cjs +1 -1
  49. package/dist-lib/host/bridge-host.cjs +276 -243
  50. package/dist-lib/host/fetch-proxy-handler.cjs +459 -484
  51. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  52. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  53. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  54. package/dist-lib/host/websocket-proxy.cjs +1 -1
  55. package/dist-lib/index.cjs +266 -266
  56. package/dist-lib/jump-to-source-babel.cjs +1 -1
  57. package/dist-lib/jump-to-source-native.cjs +1 -1
  58. package/dist-lib/kotlin-host.cjs +1 -1
  59. package/dist-lib/menu.cjs +1 -1
  60. package/dist-lib/menu.mjs +1 -1
  61. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  62. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  63. package/dist-lib/metro-production-bundle.cjs +2 -2
  64. package/dist-lib/metro-production-bundle.mjs +2 -2
  65. package/dist-lib/metro.cjs +320 -336
  66. package/dist-lib/native-app-identity-project.cjs +134 -159
  67. package/dist-lib/native-app-identity-project.mjs +428 -459
  68. package/dist-lib/native-app-identity.cjs +18 -18
  69. package/dist-lib/native-app-identity.mjs +18 -18
  70. package/dist-lib/native-firebase-metadata.cjs +2 -2
  71. package/dist-lib/native-firebase-metadata.mjs +2 -2
  72. package/dist-lib/pdfium-raster.cjs +1 -1
  73. package/dist-lib/pdfium-raster.mjs +1 -1
  74. package/dist-lib/plist.cjs +1 -1
  75. package/dist-lib/plist.mjs +1 -1
  76. package/dist-lib/profiles.cjs +1 -1
  77. package/dist-lib/public-brand.cjs +1 -1
  78. package/dist-lib/public-origins-lib-esm.json +32 -36
  79. package/dist-lib/public-origins-lib.json +135 -161
  80. package/dist-lib/react-native-host-modules.cjs +1 -1
  81. package/dist-lib/react-native-host-modules.mjs +1 -1
  82. package/dist-lib/reap-browser.cjs +1 -1
  83. package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
  84. package/dist-lib/sdk.cjs +20 -2
  85. package/dist-lib/sdk.mjs +20 -2
  86. package/dist-lib/skills.cjs +587 -531
  87. package/dist-lib/swift-compile.cjs +23 -8
  88. package/dist-lib/swift-compile.mjs +23 -8
  89. package/dist-lib/swift-package.cjs +1 -1
  90. package/dist-lib/swift-package.mjs +1 -1
  91. package/dist-lib/swift-submit.cjs +1 -1
  92. package/dist-lib/swift-submit.mjs +1 -1
  93. package/dist-lib/swift-toolchain.cjs +1 -1
  94. package/dist-lib/swift.cjs +1 -1
  95. package/dist-lib/vite-swift.cjs +41 -39
  96. package/dist-lib/vite.cjs +745 -768
  97. package/dist-lib/worklet-executable.cjs +1 -1
  98. package/dist-lib/worklet-executable.mjs +1 -1
  99. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +1 -1
  100. package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +1 -1
  101. package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +1 -1
  102. package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +2 -0
  103. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +1 -1
  104. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -1
  105. package/dist-types/packages/peach-engine/src/render-worker/one-native-contentContract.d.ts +1 -1
  106. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -2
  107. package/dist-types/packages/peach-engine/src/render-worker/worklet-serialize.d.ts +1 -1
  108. package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +1 -1
  109. package/dist-types/packages/peach-globals/src/globalsContract.d.ts +1 -1
  110. package/dist-types/packages/peach-globals/src/package-versions.d.ts +16 -0
  111. package/package.json +1 -1
  112. package/runtime-companion.json +1 -1
  113. package/src/androidAutolinkingContract.ts +1 -1
  114. package/src/androidRootModuleContract.ts +1 -1
  115. package/src/bundle-channel.mjs +1 -1
  116. package/src/config.ts +1 -1
  117. package/src/configured-bundle-producer.ts +1 -1
  118. package/src/expo-swift-host.ts +34 -4
  119. package/src/expoKotlinContract.ts +4 -1
  120. package/src/expoSwiftContract.ts +18 -4
  121. package/src/guest-bundle.ts +1 -1
  122. package/src/host/dev-server-package-versions.ts +1 -1
  123. package/src/host/fetch-proxy-handler.ts +1 -1
  124. package/src/installed-native-build-options.ts +2 -2
  125. package/src/installed-package-versions.ts +7 -7
  126. package/src/metro-plugin.ts +1 -1
  127. package/src/metro-production-bundle.ts +1 -1
  128. package/src/native-app-identity.ts +1 -1
  129. package/src/native-firebase-metadata.ts +1 -1
  130. package/src/nitro-adapter.lock.json +244 -244
  131. package/src/nitro-superset.lock.json +4 -4
  132. package/src/nitroContract.ts +1 -1
  133. package/src/oneSdkContract.ts +1 -1
  134. package/src/react-native-coverage/capability-reference-resolution.ts +4 -4
  135. package/src/storageSnapshotContract.ts +2 -2
  136. package/src/swift-compile.ts +24 -7
  137. package/src/swift-coverage/source.ts +1 -1
  138. package/src/swift-distribution.lock.json +8 -8
  139. package/src/turbo-runtime.lock.json +18 -18
  140. package/src/vite-plugin-one.ts +4 -4
  141. package/src/vite-plugin.ts +6 -6
  142. package/src/bundleGlobalFooter.ts +0 -137
  143. package/src/packageVersionsContract.ts +0 -131
  144. /package/dist-types/packages/{peach-compat/src/stubs → peach-engine/src/guest}/native-evaluation-lease.d.ts +0 -0
  145. /package/dist-types/packages/{peach-compat → peach-globals}/src/secure-item-store.d.ts +0 -0
  146. /package/dist-types/packages/{peach-compat/src/stubs → peach-kit/src}/ring-mode-state.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (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
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -45,7 +45,7 @@ function isValidRuntimeVersion(value) {
45
45
  return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
46
46
  }
47
47
 
48
- // src/bundleGlobalFooter.ts
48
+ // ../peach-globals/src/bundle-global-footer.ts
49
49
  function findBundleFooter(source, prefix) {
50
50
  let end = source.length;
51
51
  while (end > 0) {
@@ -1,11 +1,11 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
5
5
  return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
6
6
  }
7
7
 
8
- // src/bundleGlobalFooter.ts
8
+ // ../peach-globals/src/bundle-global-footer.ts
9
9
  function findBundleFooter(source, prefix) {
10
10
  let end = source.length;
11
11
  while (end > 0) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1353,6 +1353,14 @@ function scoreLayoutTextContrast(input) {
1353
1353
  }
1354
1354
  }
1355
1355
  } else if (opaqueBackground) {
1356
+ if (input.declaredColor && ratioOf(input.declaredColor, opaqueBackground) >= 1.5) {
1357
+ return {
1358
+ ratio: null,
1359
+ required,
1360
+ background: hex(opaqueBackground),
1361
+ reason: "covered or clipped here; measure it where it is visible"
1362
+ };
1363
+ }
1356
1364
  consider(opaqueBackground, opaqueBackground);
1357
1365
  }
1358
1366
  if (!bestForeground || !bestBackground || !Number.isFinite(bestRatio)) {
@@ -1568,6 +1576,15 @@ function layoutGetNativeEval(opts = {}) {
1568
1576
  }
1569
1577
  const normal = await capture(false)
1570
1578
  const background = await capture(true)
1579
+ const colorProbe = document.createElement('canvas').getContext('2d')
1580
+ const rgbOf = (color) => {
1581
+ if (!colorProbe || !color) return undefined
1582
+ colorProbe.clearRect(0, 0, 1, 1)
1583
+ colorProbe.fillStyle = color
1584
+ colorProbe.fillRect(0, 0, 1, 1)
1585
+ const pixel = colorProbe.getImageData(0, 0, 1, 1).data
1586
+ return pixel[3] === 255 ? [pixel[0], pixel[1], pixel[2]] : undefined
1587
+ }
1571
1588
  for (const element of textElements) {
1572
1589
  element.contrast = scoreContrast({
1573
1590
  normal,
@@ -1575,6 +1592,7 @@ function layoutGetNativeEval(opts = {}) {
1575
1592
  box: element.box,
1576
1593
  fontSize: element.fontSize,
1577
1594
  fontWeight: element.fontWeight,
1595
+ declaredColor: rgbOf(element.color),
1578
1596
  })
1579
1597
  }
1580
1598
  return elements
@@ -2417,7 +2435,7 @@ var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
2417
2435
  // cli/cloud-client.ts
2418
2436
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2419
2437
 
2420
- // src/bundleGlobalFooter.ts
2438
+ // ../peach-globals/src/bundle-global-footer.ts
2421
2439
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2422
2440
 
2423
2441
  // src/cli-runtime.ts
@@ -2495,7 +2513,7 @@ function isValidRuntimeVersion(value) {
2495
2513
  }
2496
2514
 
2497
2515
  // runtime-companion.json
2498
- var runtime_companion_default = { abi: 1, sha256: "f7706b4e73d50be69c751cedbeb231d7415918cc515ce5c6ba6594c1fb6fb915", file: "node/cli-f7706b4e73d50be69c751cedbeb231d7415918cc515ce5c6ba6594c1fb6fb915.cjs" };
2516
+ var runtime_companion_default = { abi: 1, sha256: "9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a", file: "node/cli-9b370a218cb12559cba2bb30e1e33d168ccd0f310e473c5428133b85938be20a.cjs" };
2499
2517
 
2500
2518
  // src/answeredNativePackages.ts
2501
2519
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -9500,8 +9518,10 @@ async function dispatchStatusBarOverride(config) {
9500
9518
  }
9501
9519
  async function dispatchDeviceOrientation(orientation) {
9502
9520
  const page = getPage();
9521
+ const captureToken = Reflect.get(page, "__sootsimCaptureToken");
9503
9522
  await page.evaluate(
9504
- ({ eventType, next, landscapeSide }) => {
9523
+ ({ eventType, next, landscapeSide, token }) => {
9524
+ if (token) window.__sootsimAnchorTimedInput?.(token);
9505
9525
  window.dispatchEvent(
9506
9526
  new CustomEvent(eventType, {
9507
9527
  detail: { type: "set-device-orientation", orientation: next, landscapeSide }
@@ -9511,7 +9531,8 @@ async function dispatchDeviceOrientation(orientation) {
9511
9531
  {
9512
9532
  eventType: SOOTSIM_SHELL_COMMAND_NAME,
9513
9533
  next: orientation,
9514
- landscapeSide: DETOX_PLATFORM === "ios" ? "right" : "left"
9534
+ landscapeSide: DETOX_PLATFORM === "ios" ? "right" : "left",
9535
+ token: captureToken
9515
9536
  }
9516
9537
  );
9517
9538
  await page.waitForFunction(
@@ -9526,13 +9547,15 @@ async function dispatchDeviceOrientation(orientation) {
9526
9547
  }
9527
9548
  async function dispatchDevicePosture(rest) {
9528
9549
  const page = getPage();
9550
+ const captureToken = Reflect.get(page, "__sootsimCaptureToken");
9529
9551
  await page.evaluate(
9530
- ({ eventType, rest: rest2 }) => {
9552
+ ({ eventType, rest: rest2, token }) => {
9553
+ if (token) window.__sootsimAnchorTimedInput?.(token);
9531
9554
  window.dispatchEvent(
9532
9555
  new CustomEvent(eventType, { detail: { type: "fold-to-rest", rest: rest2 } })
9533
9556
  );
9534
9557
  },
9535
- { eventType: SOOTSIM_SHELL_COMMAND_NAME, rest }
9558
+ { eventType: SOOTSIM_SHELL_COMMAND_NAME, rest, token: captureToken }
9536
9559
  );
9537
9560
  await page.waitForFunction(
9538
9561
  (rest2) => {
@@ -11834,7 +11857,7 @@ var device = {
11834
11857
  },
11835
11858
  Math.max(
11836
11859
  0,
11837
- captureAnchorPerformanceMs + stage.offsetMs - performance.now()
11860
+ captureAnchorPerformanceMs + (stage.nativeActualMs ?? stage.offsetMs) - performance.now()
11838
11861
  )
11839
11862
  );
11840
11863
  })
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "783c20faf3235e3fc1846b056d788f29d9bfdfc946822b62acf722341b3a10fd", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -1227,7 +1227,7 @@ function isValidRuntimeVersion(value) {
1227
1227
  return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
1228
1228
  }
1229
1229
 
1230
- // src/bundleGlobalFooter.ts
1230
+ // ../peach-globals/src/bundle-global-footer.ts
1231
1231
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1232
1232
  function findBundleFooter(source, prefix) {
1233
1233
  let end = source.length;
@@ -1502,7 +1502,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1502
1502
  var import_node_fs9 = require("node:fs");
1503
1503
  var import_node_path8 = require("node:path");
1504
1504
 
1505
- // ../peach-compat/src/version-range.ts
1505
+ // ../peach-globals/src/guest-modules/version-range.ts
1506
1506
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
1507
1507
  var ANY_BOUNDS = {
1508
1508
  lower: null,
@@ -9549,19 +9549,9 @@ var import_node_child_process10 = require("node:child_process");
9549
9549
  var import_node_fs25 = require("node:fs");
9550
9550
  var import_node_path21 = require("node:path");
9551
9551
 
9552
- // cli/cli-update.ts
9552
+ // cli/cli-release-origin.ts
9553
9553
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
9554
-
9555
- // src/automatic-update-policy.ts
9556
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
9557
-
9558
- // cli/commands/inspect/env.ts
9559
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
9560
-
9561
- // cli/cli-update.ts
9562
9554
  var DEFAULT_CLI_RELEASE_ORIGIN = "https://r2.rnxsim.com/rnx-cli";
9563
- var CLI_UPDATE_CHECK_INTERVAL_MS = 20 * 60 * 60 * 1e3;
9564
- var CLI_UPDATE_NOTIFICATION_COOLDOWN_MS = 7 * 24 * 60 * 60 * 1e3;
9565
9555
 
9566
9556
  // cli/drivers/linux-browser-libs.lock.json
9567
9557
  var linux_browser_libs_lock_default = {
@@ -21365,7 +21355,7 @@ var import_node_zlib2 = require("node:zlib");
21365
21355
  // ../sootsim-swift/src/icuData.ts
21366
21356
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21367
21357
 
21368
- // ../peach-compat/src/stubs/wasm-memory.ts
21358
+ // ../peach-kit/src/wasm-memory.ts
21369
21359
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
21370
21360
 
21371
21361
  // ../sootsim-swift/src/icuData.ts
@@ -23001,7 +22991,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
23001
22991
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
23002
22992
  var MULTI_MANIFEST_VERSION = 68;
23003
22993
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
23004
- var compilerSourceDigest = true ? "843f17528adac933fd6c87617d5563cab5006f5a85cd541b2bc4f09a4c3fbb91" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22994
+ var compilerSourceDigest = true ? "91c8105b0a382e74c2395d36f69294e1ec6afa3aa0b66c61b6b11e63e0dbe5d7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
23005
22995
  function swiftArtifactHash(input, release, moduleRoot) {
23006
22996
  const hash = (0, import_node_crypto19.createHash)("sha256");
23007
22997
  hash.update(`swift-compile
@@ -23445,10 +23435,10 @@ function emitSwiftPackageManifest(args) {
23445
23435
  ` dependencies: ${JSON.stringify(native.mixed ? [] : [name3])},`,
23446
23436
  ` path: ${JSON.stringify(group.path)},`,
23447
23437
  ` sources: ${JSON.stringify(group.sources)},`,
23448
- ' publicHeadersPath: "include",',
23438
+ ` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
23449
23439
  ` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(cFlagArray([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
23450
23440
  ...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
23451
- ` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), ...group.cxxFlags]))})]),`
23441
+ ` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
23452
23442
  ] : [" ),"]
23453
23443
  ]) : [];
23454
23444
  }),
@@ -25622,6 +25612,12 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
25622
25612
  }
25623
25613
  } : {}
25624
25614
  });
25615
+ if (late.length > 0)
25616
+ files2.set(
25617
+ import_node_path45.default.join(layout2.root, target.path, "PeachSwiftImplementation/module.modulemap"),
25618
+ `module ${swiftTargetModuleName(`${target.name}SwiftImplementation`)} { export * }
25619
+ `
25620
+ );
25625
25621
  if (late.length === 0 || entries.some(
25626
25622
  ([file, contents]) => file.endsWith("/module.modulemap") && moduleMapName(contents) === swiftTargetModuleName(target.name)
25627
25623
  ))
@@ -26791,6 +26787,7 @@ async function withSwiftFrameworkSlot(frameworkKey, moduleRoot, signal, work) {
26791
26787
  function mirrorTree2(source, target, skip) {
26792
26788
  (0, import_node_fs48.mkdirSync)(target, { recursive: true });
26793
26789
  const wanted = /* @__PURE__ */ new Set();
26790
+ let restructured = false;
26794
26791
  for (const entry of (0, import_node_fs48.readdirSync)(source, { withFileTypes: true })) {
26795
26792
  if (entry.name === skip) continue;
26796
26793
  wanted.add(entry.name);
@@ -26802,9 +26799,10 @@ function mirrorTree2(source, target, skip) {
26802
26799
  } catch (error) {
26803
26800
  if (!vanished(error)) throw error;
26804
26801
  }
26802
+ if (!existing) restructured = true;
26805
26803
  if (entry.isDirectory()) {
26806
26804
  if (existing && !existing.isDirectory()) (0, import_node_fs48.rmSync)(to, { force: true });
26807
- mirrorTree2(from, to);
26805
+ if (mirrorTree2(from, to)) restructured = true;
26808
26806
  } else if (entry.isSymbolicLink()) {
26809
26807
  const link = (0, import_node_fs48.readlinkSync)(from);
26810
26808
  if (existing?.isSymbolicLink() && (0, import_node_fs48.readlinkSync)(to) === link) continue;
@@ -26822,8 +26820,11 @@ function mirrorTree2(source, target, skip) {
26822
26820
  }
26823
26821
  }
26824
26822
  for (const name3 of (0, import_node_fs48.readdirSync)(target))
26825
- if (!wanted.has(name3) && name3 !== skip)
26823
+ if (!wanted.has(name3) && name3 !== skip) {
26826
26824
  (0, import_node_fs48.rmSync)(import_node_path45.default.join(target, name3), { recursive: true, force: true });
26825
+ restructured = true;
26826
+ }
26827
+ return restructured;
26827
26828
  }
26828
26829
  function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
26829
26830
  if (!slot) return moduleRoot;
@@ -26831,11 +26832,15 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
26831
26832
  const stagedModule = import_node_path45.default.join(staged, "packages", import_node_path45.default.basename(moduleRoot));
26832
26833
  if (swiftFrameworkSlotKey(slot) !== frameworkKey) {
26833
26834
  (0, import_node_fs48.rmSync)(import_node_path45.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true });
26834
- mirrorTree2(moduleRoot, stagedModule, ".build");
26835
- mirrorTree2(
26835
+ const moduleRestructured = mirrorTree2(moduleRoot, stagedModule, ".build");
26836
+ const sdkRestructured = mirrorTree2(
26836
26837
  swiftSharedSdkRoot(moduleRoot, false),
26837
26838
  import_node_path45.default.join(staged, "packages/peachsim/sdk/ios")
26838
26839
  );
26840
+ if (moduleRestructured || sdkRestructured) {
26841
+ (0, import_node_fs48.rmSync)(import_node_path45.default.join(slot, "release.yaml"), { force: true });
26842
+ (0, import_node_fs48.rmSync)(import_node_path45.default.join(slot, "release", "description.json"), { force: true });
26843
+ }
26839
26844
  for (const file of swiftModuleInputFiles(moduleRoot)) {
26840
26845
  if (!file.startsWith("../")) continue;
26841
26846
  const from = import_node_path45.default.resolve(moduleRoot, file);
@@ -32149,7 +32154,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
32149
32154
  return hash.digest("hex");
32150
32155
  }
32151
32156
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
32152
- var STANDIN_SOURCE_DIGEST = true ? "0c02f4d1d8fbb6e01168d4930669f6554949b4c953e0e96f7579b16189390d62" : standinSourceDigest();
32157
+ var STANDIN_SOURCE_DIGEST = true ? "b907e67a4a7c7d3e52e4ce9d48391c83bd5c6b4d3689f58b96f42435e285522e" : standinSourceDigest();
32153
32158
 
32154
32159
  // src/expoSwiftContract.ts
32155
32160
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -32480,7 +32485,7 @@ async function packageTreeDigest(root) {
32480
32485
  // src/expo-native-prebuilt.ts
32481
32486
  var EXPO_NATIVE_ENTRY_NAME = "ios";
32482
32487
  function expoNativeCompilerDigestValue() {
32483
- return true ? "5ebe166304c3e1a48f9ca9c829026a1104dff2c6149cd29a8ac20e572298f3ae" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32488
+ return true ? "3ad8e9564c2e4ad56f525aa8580a8bb435f7a21639a9703bf730e812478f0b00" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32484
32489
  }
32485
32490
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
32486
32491
  function readSources(value) {
@@ -47410,18 +47415,19 @@ ${source}` : source;
47410
47415
  }
47411
47416
  for (const unit2 of units) unit2.nativeFiles = { ...unit2.nativeFiles, ...support };
47412
47417
  }
47413
- async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
47418
+ async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget, metadataOnly = false) {
47414
47419
  if (traceStore.getStore())
47415
47420
  return collectExpoSwiftSourcesUncached(
47416
47421
  appRoot,
47417
47422
  signal,
47418
47423
  installedWorkspace,
47419
47424
  prepareNative,
47420
- iosTarget
47425
+ iosTarget,
47426
+ metadataOnly
47421
47427
  );
47422
47428
  signal?.throwIfAborted();
47423
47429
  installSwiftInputTrace();
47424
- const key2 = await discoveryKey(appRoot, installedWorkspace, prepareNative, iosTarget);
47430
+ const key2 = `${await discoveryKey(appRoot, installedWorkspace, prepareNative, iosTarget)}\0${metadataOnly}`;
47425
47431
  const cached2 = discoveryCache.get(key2);
47426
47432
  if (cached2 && await witnessMatches(cached2.witness)) {
47427
47433
  signal?.throwIfAborted();
@@ -47435,14 +47441,15 @@ async function collectExpoSwiftSources(appRoot, signal, installedWorkspace, prep
47435
47441
  signal,
47436
47442
  installedWorkspace,
47437
47443
  prepareNative,
47438
- iosTarget
47444
+ iosTarget,
47445
+ metadataOnly
47439
47446
  )
47440
47447
  );
47441
47448
  if (witness.marks.size > 0 && await witnessMatches(witness))
47442
47449
  discoveryCache.set(key2, { witness, units: cloneUnits(units) });
47443
47450
  return cloneUnits(units);
47444
47451
  }
47445
- async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget) {
47452
+ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspace, prepareNative = false, iosTarget, metadataOnly = false) {
47446
47453
  const started = performance.now();
47447
47454
  const report = (message) => console.error(`[expo-swift ${Math.round(performance.now() - started)}ms] ${message}`);
47448
47455
  signal?.throwIfAborted();
@@ -47597,7 +47604,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47597
47604
  const answered2 = canonical.split(import_node_path80.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
47598
47605
  if (answered2) {
47599
47606
  answeredInstalled = true;
47600
- if (installed || prepareNative) {
47607
+ if (installed || prepareNative || metadataOnly) {
47601
47608
  processed.add(packageName);
47602
47609
  continue;
47603
47610
  }
@@ -47629,7 +47636,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
47629
47636
  const deferredToWorkspace = prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0;
47630
47637
  const dependencyOnly = answered2 || (!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0;
47631
47638
  if (dependencyOnly) {
47632
- if (installed || prepareNative || !Array.isArray(namespaces)) {
47639
+ if (installed || prepareNative || metadataOnly || !Array.isArray(namespaces)) {
47633
47640
  processed.add(packageName);
47634
47641
  continue;
47635
47642
  }
@@ -47811,7 +47818,7 @@ ${import_node_fs82.default.readFileSync(source, "utf8")}`;
47811
47818
  } else {
47812
47819
  walk3(ios);
47813
47820
  walkFrameworks(canonical);
47814
- if (nativeSources.size > 0 && !prepareNative)
47821
+ if (nativeSources.size > 0 && !prepareNative && !metadataOnly)
47815
47822
  report(
47816
47823
  `${packageName}: ${namespace} has Objective-C or C sources (${[...nativeSources].sort()[0]}), which compile only from a CocoaPods workspace a Mac prepares; compiling its Swift alone`
47817
47824
  );
@@ -48001,6 +48008,7 @@ ${import_node_fs82.default.readFileSync(file, "utf8")}`;
48001
48008
  }
48002
48009
  }
48003
48010
  if (units.length === 0) return answeredInstalled ? [] : null;
48011
+ if (metadataOnly) return units;
48004
48012
  if (installed)
48005
48013
  enrichInstalledUnits(
48006
48014
  units,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -24,12 +24,13 @@ var expoSwiftContract_exports = {};
24
24
  __export(expoSwiftContract_exports, {
25
25
  insertExpoSwiftFooter: () => insertExpoSwiftFooter,
26
26
  isExpoSwiftCompilationResult: () => isExpoSwiftCompilationResult,
27
+ readExpoSwiftDiscovery: () => readExpoSwiftDiscovery,
27
28
  readExpoSwiftFooter: () => readExpoSwiftFooter,
28
29
  readExpoSwiftMetadata: () => readExpoSwiftMetadata
29
30
  });
30
31
  module.exports = __toCommonJS(expoSwiftContract_exports);
31
32
 
32
- // src/bundleGlobalFooter.ts
33
+ // ../peach-globals/src/bundle-global-footer.ts
33
34
  function findBundleFooter(source, prefix) {
34
35
  let end = source.length;
35
36
  while (end > 0) {
@@ -190,6 +191,12 @@ function isSwiftResourcePath(value) {
190
191
  function strings(value) {
191
192
  return Array.isArray(value) && value.every((item) => typeof item === "string");
192
193
  }
194
+ function readExpoSwiftDiscovery(value) {
195
+ if (value === null) return null;
196
+ if (!isRecord(value) || !strings(value.namespaces))
197
+ throw new Error("invalid Expo Swift discovery metadata");
198
+ return { namespaces: value.namespaces };
199
+ }
193
200
  function isExpoSwiftCompilationResult(value) {
194
201
  if (!isRecord(value) || !strings(value.namespaces) || !Array.isArray(value.modules) || !Array.isArray(value.failures))
195
202
  return false;
@@ -228,6 +235,7 @@ function insertExpoSwiftFooter(source, metadata) {
228
235
  0 && (module.exports = {
229
236
  insertExpoSwiftFooter,
230
237
  isExpoSwiftCompilationResult,
238
+ readExpoSwiftDiscovery,
231
239
  readExpoSwiftFooter,
232
240
  readExpoSwiftMetadata
233
241
  });
@@ -1,6 +1,6 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
- // src/bundleGlobalFooter.ts
3
+ // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
5
5
  let end = source.length;
6
6
  while (end > 0) {
@@ -161,6 +161,12 @@ function isSwiftResourcePath(value) {
161
161
  function strings(value) {
162
162
  return Array.isArray(value) && value.every((item) => typeof item === "string");
163
163
  }
164
+ function readExpoSwiftDiscovery(value) {
165
+ if (value === null) return null;
166
+ if (!isRecord(value) || !strings(value.namespaces))
167
+ throw new Error("invalid Expo Swift discovery metadata");
168
+ return { namespaces: value.namespaces };
169
+ }
164
170
  function isExpoSwiftCompilationResult(value) {
165
171
  if (!isRecord(value) || !strings(value.namespaces) || !Array.isArray(value.modules) || !Array.isArray(value.failures))
166
172
  return false;
@@ -198,6 +204,7 @@ function insertExpoSwiftFooter(source, metadata) {
198
204
  export {
199
205
  insertExpoSwiftFooter,
200
206
  isExpoSwiftCompilationResult,
207
+ readExpoSwiftDiscovery,
201
208
  readExpoSwiftFooter,
202
209
  readExpoSwiftMetadata
203
210
  };
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2129 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2155 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;