peachsim 0.1.1813 → 0.1.1815

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 (136) hide show
  1. package/README.md +2 -1
  2. package/cli/cloud-client.ts +5 -4
  3. package/cli/cloud-session.ts +14 -1
  4. package/cli/commands/compat.ts +12 -2
  5. package/cli/commands/control.ts +10 -2
  6. package/cli/commands/flow.ts +10 -5
  7. package/cli/commands/inspect/env.ts +3 -2
  8. package/cli/commands/inspect/wait-selector.ts +30 -9
  9. package/cli/commands/inspect.ts +43 -385
  10. package/cli/commands/package.ts +6 -1
  11. package/cli/commands/runtime.ts +2 -2
  12. package/cli/outbound-endpoints.ts +1 -1
  13. package/dist-lib/agent-daemon-client.cjs +1 -1
  14. package/dist-lib/agent-events.cjs +1 -1
  15. package/dist-lib/attached-projects.cjs +1 -1
  16. package/dist-lib/auth/shared-session.cjs +1 -1
  17. package/dist-lib/backend-origin.cjs +1 -1
  18. package/dist-lib/beta.cjs +1 -1
  19. package/dist-lib/beta.mjs +1 -1
  20. package/dist-lib/bridge-constants.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.cjs +1 -1
  22. package/dist-lib/bridge-contract-input.mjs +1 -1
  23. package/dist-lib/bridge-contract.cjs +1 -1
  24. package/dist-lib/bridge-contract.mjs +1 -1
  25. package/dist-lib/bundle-channel.cjs +769 -512
  26. package/dist-lib/capture-contract.cjs +1 -1
  27. package/dist-lib/capture-contract.mjs +1 -1
  28. package/dist-lib/cloud-contract.cjs +1 -1
  29. package/dist-lib/cloud-contract.mjs +1 -1
  30. package/dist-lib/cloud-test-args.cjs +1 -1
  31. package/dist-lib/cloud-test-args.mjs +1 -1
  32. package/dist-lib/cloud.cjs +1 -1
  33. package/dist-lib/cloud.mjs +1 -1
  34. package/dist-lib/config.cjs +1 -1
  35. package/dist-lib/config.mjs +1 -1
  36. package/dist-lib/detox/index.cjs +89 -14
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +125 -57
  39. package/dist-lib/expo-swift-metadata.cjs +1 -17
  40. package/dist-lib/expo-swift-metadata.mjs +1 -16
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +2490 -2290
  43. package/dist-lib/host/fetch-proxy-handler.cjs +14 -14
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +19 -21
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +1 -1
  53. package/dist-lib/menu.mjs +1 -1
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +16 -17
  59. package/dist-lib/native-app-identity-project.cjs +5 -4
  60. package/dist-lib/native-app-identity-project.mjs +8 -7
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/pdfium-raster.cjs +1 -1
  66. package/dist-lib/pdfium-raster.mjs +1 -1
  67. package/dist-lib/plist.cjs +1 -1
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +1 -1
  70. package/dist-lib/public-brand.cjs +1 -1
  71. package/dist-lib/public-origins-lib-esm.json +24 -24
  72. package/dist-lib/public-origins-lib.json +77 -77
  73. package/dist-lib/react-native-host-modules.cjs +1 -1
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +1 -1
  76. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  77. package/dist-lib/sdk.cjs +1 -1
  78. package/dist-lib/sdk.mjs +1 -1
  79. package/dist-lib/skills.cjs +851 -541
  80. package/dist-lib/swift-compile.cjs +29 -27
  81. package/dist-lib/swift-compile.mjs +36 -34
  82. package/dist-lib/swift-package.cjs +1 -1
  83. package/dist-lib/swift-package.mjs +1 -1
  84. package/dist-lib/swift-submit.cjs +2 -2
  85. package/dist-lib/swift-submit.mjs +2 -2
  86. package/dist-lib/swift-toolchain.cjs +5 -3
  87. package/dist-lib/swift.cjs +1 -1
  88. package/dist-lib/vite-swift.cjs +100 -46
  89. package/dist-lib/vite.cjs +14 -14
  90. package/dist-lib/worklet-executable.cjs +1 -1
  91. package/dist-lib/worklet-executable.mjs +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
  93. package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
  94. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
  95. package/install.mjs +21 -8
  96. package/package.json +1 -1
  97. package/runtime-companion.json +1 -1
  98. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
  99. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  100. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  101. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
  102. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  103. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
  104. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
  105. package/sdk/ios/wasm/include/string.h +1 -0
  106. package/src/cli-runtime.ts +32 -4
  107. package/src/expo-kotlin-host.ts +69 -35
  108. package/src/expo-swift-host.ts +45 -9
  109. package/src/expo-swift-ready.ts +16 -2
  110. package/src/expoSwiftContract.ts +2 -20
  111. package/src/installed-native-libraries.ts +79 -18
  112. package/src/nitro-adapter.lock.json +251 -251
  113. package/src/nitro-bundle.ts +2 -8
  114. package/src/nitro-compile.ts +6 -3
  115. package/src/nitro-dependencies.ts +8 -2
  116. package/src/nitro-source.ts +34 -3
  117. package/src/nitro-superset.lock.json +14 -14
  118. package/src/nitro-superset.ts +2 -3
  119. package/src/nitroContract.ts +26 -32
  120. package/src/react-native-bridge-modules.ts +2 -9
  121. package/src/runtime-delivery.ts +2 -2
  122. package/src/swift-compile.ts +4 -1
  123. package/src/swift-distribution.lock.json +9 -8
  124. package/src/swift-distribution.ts +1 -0
  125. package/src/swift-icu.ts +21 -27
  126. package/src/swift-installed-targets.ts +13 -0
  127. package/src/swift-project-user.ts +5 -0
  128. package/src/swift-shared-sdk.ts +4 -0
  129. package/src/swift-standins.ts +14 -3
  130. package/src/swift-submit.ts +2 -1
  131. package/src/swift-toolchain.ts +5 -2
  132. package/src/swift-wasm-prune.ts +10 -2
  133. package/src/turbo-bundle.ts +20 -1
  134. package/src/turbo-compile.ts +6 -12
  135. package/src/turbo-runtime.lock.json +18 -18
  136. package/src/turbo-source.ts +176 -37
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -2392,15 +2392,6 @@ var import_node_fs3 = require("node:fs");
2392
2392
  var import_node_module = require("node:module");
2393
2393
  var import_node_path2 = require("node:path");
2394
2394
 
2395
- // runtime-companion.json
2396
- var runtime_companion_default = { abi: 1, sha256: "77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7", file: "node/cli-77c8e261af4f0a75c45389b7605abcb681d900495f128191f81464492ffadda7.cjs" };
2397
-
2398
- // src/runtime-assets.ts
2399
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2400
- var import_fs = __toESM(require("fs"), 1);
2401
- var import_path = __toESM(require("path"), 1);
2402
- var import_url = require("url");
2403
-
2404
2395
  // ../contrast-runtime-delivery/src/index.ts
2405
2396
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2406
2397
 
@@ -2468,7 +2459,14 @@ function isValidRuntimeVersion(value) {
2468
2459
  return value.length <= 100 && /^[0-9A-Za-z][0-9A-Za-z._+-]*$/.test(value);
2469
2460
  }
2470
2461
 
2462
+ // runtime-companion.json
2463
+ var runtime_companion_default = { abi: 1, sha256: "d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c", file: "node/cli-d657f8c4fd2d3c861f50ea15c42b3275555ac4f799c58a46d3dca829656bc63c.cjs" };
2464
+
2471
2465
  // src/runtime-assets.ts
2466
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
2467
+ var import_fs = __toESM(require("fs"), 1);
2468
+ var import_path = __toESM(require("path"), 1);
2469
+ var import_url = require("url");
2472
2470
  var _monorepoRootCache;
2473
2471
  function findMonorepoRoot() {
2474
2472
  if (_monorepoRootCache !== void 0) return _monorepoRootCache;
@@ -2513,13 +2511,15 @@ function cliCompanionPath() {
2513
2511
  return `node/cli-${runtime_companion_default.sha256}.cjs`;
2514
2512
  }
2515
2513
  function verifyCliCompanion(root) {
2516
- const file = (0, import_node_path2.join)(root, cliCompanionPath());
2514
+ verifyCompanionFile((0, import_node_path2.join)(root, cliCompanionPath()));
2515
+ }
2516
+ function verifyCompanionFile(file) {
2517
2517
  let bytes;
2518
2518
  try {
2519
2519
  bytes = (0, import_node_fs3.readFileSync)(file);
2520
2520
  } catch (error) {
2521
2521
  if (error instanceof Error) {
2522
- const missing = "code" in error && error.code === "ENOENT" ? "; this runtime has no companion for this CLI (it was published before this CLI, or the file was removed after unpacking), run `peach runtime install` for the latest runtime and check Windows Security protection history if it repeats" : "";
2522
+ const missing = "code" in error && error.code === "ENOENT" ? "; run `peach runtime install`, which fetches the companion this CLI published, and check Windows Security protection history if it repeats" : "";
2523
2523
  error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing}`;
2524
2524
  }
2525
2525
  throw error;
@@ -6061,6 +6061,71 @@ function readLaunchMetadata(wire) {
6061
6061
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6062
6062
  var NATIVE_PREPARE_QUERY_PARAM = "prepare";
6063
6063
 
6064
+ // src/nitroContract.ts
6065
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6066
+
6067
+ // src/swiftContract.ts
6068
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6069
+
6070
+ // src/assetCatalogContract.ts
6071
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6072
+
6073
+ // src/swiftContract.ts
6074
+ function isBase64Bytes(value) {
6075
+ return value.length % 4 === 0 && /^[A-Za-z0-9+/]*={0,2}(?![\s\S])/.test(value);
6076
+ }
6077
+ function isSwiftResourcePath(value) {
6078
+ return typeof value === "string" && value.length <= 4096 && !value.startsWith("/") && !value.includes("\\") && !value.includes("\0") && value.split("/").every((part) => part !== "" && part !== "." && part !== "..");
6079
+ }
6080
+
6081
+ // src/nitroContract.ts
6082
+ var NITRO_GUEST_PLATFORM = "ios";
6083
+ function readCompiledPackage(value) {
6084
+ if (typeof value !== "object" || value === null) return null;
6085
+ const name2 = Reflect.get(value, "name");
6086
+ const version = Reflect.get(value, "version");
6087
+ return typeof name2 === "string" && name2 && typeof version === "string" && version ? { name: name2, version } : null;
6088
+ }
6089
+ function readCompiledMetadata(label, value, readPackage, names) {
6090
+ if (value === null || value === void 0) return null;
6091
+ if (typeof value !== "object" || Array.isArray(value) || Reflect.get(value, "platform") !== NITRO_GUEST_PLATFORM)
6092
+ throw new Error(`invalid ${label} compilation metadata`);
6093
+ const listed = Reflect.get(value, "packages");
6094
+ const packages = Array.isArray(listed) ? listed.map(readPackage) : [];
6095
+ const url = Reflect.get(value, "url");
6096
+ const hash = Reflect.get(value, "hash");
6097
+ const icuUrl = Reflect.get(value, "icuUrl");
6098
+ const packed = Reflect.get(value, "bundleFiles");
6099
+ if (packages.length === 0 || !packages.every((entry) => entry !== null) || new Set(packages.map(({ name: name2 }) => name2)).size !== packages.length || new Set(packages.flatMap(names)).size !== packages.reduce((total, entry) => total + names(entry).length, 0) || typeof url !== "string" || !url || typeof hash !== "string" || !/^[a-f0-9]{64}$/.test(hash) || typeof icuUrl !== "string" || !icuUrl || !isRecord(packed))
6100
+ throw new Error(`invalid ${label} compilation metadata`);
6101
+ const bundleFiles = Object.fromEntries(
6102
+ Object.entries(packed).map(([name2, bytes]) => {
6103
+ if (!isSwiftResourcePath(name2) || typeof bytes !== "string" || !isBase64Bytes(bytes))
6104
+ throw new Error(`invalid ${label} bundle file`);
6105
+ return [name2, bytes];
6106
+ })
6107
+ );
6108
+ return { platform: "ios", packages, url, hash, icuUrl, bundleFiles };
6109
+ }
6110
+ function readTurboMetadata(value) {
6111
+ const metadata = readCompiledMetadata(
6112
+ "TurboModule",
6113
+ value,
6114
+ readCompiledPackage,
6115
+ () => []
6116
+ );
6117
+ if (!metadata) return null;
6118
+ const listed = Reflect.get(Object(value), "unavailable");
6119
+ if (listed === void 0) return metadata;
6120
+ if (!Array.isArray(listed)) throw new Error("invalid TurboModule compilation metadata");
6121
+ const unavailable = listed.map((entry) => {
6122
+ if (!isRecord(entry) || typeof entry.name !== "string" || typeof entry.diagnostic !== "string")
6123
+ throw new Error("invalid TurboModule compilation metadata");
6124
+ return { name: entry.name, diagnostic: entry.diagnostic };
6125
+ });
6126
+ return { ...metadata, unavailable };
6127
+ }
6128
+
6064
6129
  // src/node-http-fetch.ts
6065
6130
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6066
6131
  var import_node_http = __toESM(require("node:http"), 1);
@@ -6212,8 +6277,9 @@ async function awaitExpoSwiftReady(endpointUrl, options = {}, label = "expo swif
6212
6277
  `${endpointUrl} answered ${res.status}${body ? `: ${body}` : ""}${hint}`
6213
6278
  );
6214
6279
  }
6215
- await res.text();
6280
+ const answer = await res.text();
6216
6281
  console.log(` ${label} ready in ${((Date.now() - start) / 1e3).toFixed(1)}s`);
6282
+ for (const note of options.notes?.(answer) ?? []) console.log(` ${note}`);
6217
6283
  } finally {
6218
6284
  clearInterval(progress);
6219
6285
  }
@@ -6251,7 +6317,16 @@ async function awaitStampedExpoSwiftReady(shellUrl, openToken, platform, signal)
6251
6317
  ) : null,
6252
6318
  expoSwift ? awaitExpoSwiftReady(preparationUrl(expoSwift), { signal: linked }) : null,
6253
6319
  nitro ? awaitExpoSwiftReady(preparationUrl(nitro), { signal: linked }, "nitro modules") : null,
6254
- turbo ? awaitExpoSwiftReady(preparationUrl(turbo), { signal: linked }, "turbo modules") : null
6320
+ turbo ? awaitExpoSwiftReady(
6321
+ preparationUrl(turbo),
6322
+ {
6323
+ signal: linked,
6324
+ notes: (answer) => (readTurboMetadata(JSON.parse(answer))?.unavailable ?? []).map(
6325
+ ({ name: name2, diagnostic }) => `${name2} is unavailable: ${diagnostic}`
6326
+ )
6327
+ },
6328
+ "turbo modules"
6329
+ ) : null
6255
6330
  ]);
6256
6331
  } catch (error) {
6257
6332
  siblings.abort(error);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "ca9c37935257702de6c0377eaf2ddae141f2ef647326e8039ff8e7a0475ef2a0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "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": "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": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "5bdd15dce967553923b0437502e56f70165424d2f22cdde0e2d7aacd618e27cc", "swift-package.ts": "80932fd45cd31e57871475180148f79f273719ac94d94deabce16dc138fdf387", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "8d495f0b828a24c7eb497db324094e09b1969612283ad0d83e1f329ef42a1c47", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "76e78ea9974671ff3b7e7a5d65e508306d8eadeb6b6bf859bd2ccc03f4ef6e72", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -1540,6 +1540,7 @@ var PEACH_ANSWERED_NATIVE_PACKAGE_NAMES = [
1540
1540
  "react-native-auto-skeleton",
1541
1541
  "react-native-avoid-softinput",
1542
1542
  "react-native-azure-auth",
1543
+ "react-native-background-actions",
1543
1544
  "react-native-background-fetch",
1544
1545
  "react-native-background-geolocation",
1545
1546
  "react-native-background-timer",
@@ -2693,7 +2694,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
2693
2694
  var MAX_SWIFT_COMPILE_IMAGES = 256;
2694
2695
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
2695
2696
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
2696
- var SWIFT_HOST_ABI = 61;
2697
+ var SWIFT_HOST_ABI = 62;
2697
2698
  var POLL_INTERVAL_MS = 1500;
2698
2699
  function httpSwiftCompileSubmit(context) {
2699
2700
  const { assetReadToken, authorization, endpoint } = context;
@@ -8967,11 +8968,44 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
8967
8968
 
8968
8969
  // ../contrast-runtime-delivery/src/index.ts
8969
8970
  async function installVerifiedTarball(tarball) {
8971
+ const { destDir, installedMarker, signal } = tarball;
8972
+ import_node_fs18.default.mkdirSync(import_node_path15.default.dirname(destDir), { recursive: true });
8973
+ const presentAtStart = import_node_fs18.default.existsSync(import_node_path15.default.join(destDir, installedMarker));
8974
+ const lock = `${destDir}.lock`;
8975
+ for (; ; ) {
8976
+ signal?.throwIfAborted();
8977
+ try {
8978
+ import_node_fs18.default.writeFileSync(lock, String(process.pid), { flag: "wx" });
8979
+ break;
8980
+ } catch (err) {
8981
+ if (!isErrnoCode(err, "EEXIST")) throw err;
8982
+ if (lockOwnerGone(lock)) import_node_fs18.default.rmSync(lock, { force: true });
8983
+ else await new Promise((resolve3) => setTimeout(resolve3, 250));
8984
+ }
8985
+ }
8986
+ try {
8987
+ if (!presentAtStart && import_node_fs18.default.existsSync(import_node_path15.default.join(destDir, installedMarker))) {
8988
+ await tarball.verify?.(destDir);
8989
+ return;
8990
+ }
8991
+ await installVerifiedTarballLocked(tarball, presentAtStart);
8992
+ } finally {
8993
+ import_node_fs18.default.rmSync(lock, { force: true });
8994
+ }
8995
+ }
8996
+ function lockOwnerGone(lock) {
8997
+ try {
8998
+ process.kill(Number(import_node_fs18.default.readFileSync(lock, "utf8")), 0);
8999
+ return false;
9000
+ } catch (err) {
9001
+ return !isErrnoCode(err, "EPERM", "ENOENT");
9002
+ }
9003
+ }
9004
+ async function installVerifiedTarballLocked(tarball, presentAtStart) {
8970
9005
  const { url, digest: digest2, destDir, installedMarker, label, signal } = tarball;
8971
9006
  signal?.throwIfAborted();
8972
9007
  const downloadDir = import_node_fs18.default.mkdtempSync(import_node_path15.default.join(import_node_os4.default.tmpdir(), "runtime-delivery-download-"));
8973
9008
  const archivePath = import_node_path15.default.join(downloadDir, "archive");
8974
- import_node_fs18.default.mkdirSync(import_node_path15.default.dirname(destDir), { recursive: true });
8975
9009
  const tmpDir = import_node_fs18.default.mkdtempSync(
8976
9010
  import_node_path15.default.join(import_node_path15.default.dirname(destDir), `.installing-${import_node_path15.default.basename(destDir)}-`)
8977
9011
  );
@@ -8995,12 +9029,16 @@ async function installVerifiedTarball(tarball) {
8995
9029
  if (!import_node_fs18.default.existsSync(import_node_path15.default.join(tmpDir, installedMarker))) {
8996
9030
  throw new Error(`extracted tarball for ${label} is missing ${installedMarker}`);
8997
9031
  }
8998
- tarball.verify?.(tmpDir);
9032
+ await tarball.verify?.(tmpDir);
8999
9033
  signal?.throwIfAborted();
9000
9034
  try {
9001
9035
  import_node_fs18.default.renameSync(tmpDir, destDir);
9002
9036
  } catch (err) {
9003
9037
  if (!isErrnoCode(err, "ENOTEMPTY", "EEXIST")) throw err;
9038
+ if (!presentAtStart && import_node_fs18.default.existsSync(import_node_path15.default.join(destDir, installedMarker))) {
9039
+ await tarball.verify?.(destDir);
9040
+ return;
9041
+ }
9004
9042
  const aside = `${tmpDir}-replaced`;
9005
9043
  try {
9006
9044
  import_node_fs18.default.renameSync(destDir, aside);
@@ -9013,7 +9051,7 @@ async function installVerifiedTarball(tarball) {
9013
9051
  if (!isErrnoCode(landErr, "ENOTEMPTY", "EEXIST") || !import_node_fs18.default.existsSync(import_node_path15.default.join(destDir, installedMarker))) {
9014
9052
  throw landErr;
9015
9053
  }
9016
- tarball.verify?.(destDir);
9054
+ await tarball.verify?.(destDir);
9017
9055
  } finally {
9018
9056
  import_node_fs18.default.rmSync(aside, { recursive: true, force: true });
9019
9057
  }
@@ -10986,8 +11024,10 @@ function ensureSwiftLinuxRuntime(release) {
10986
11024
  import_node_fs23.default.rmSync(download2, { force: true });
10987
11025
  }
10988
11026
  }
10989
- import_node_fs23.default.rmSync(plan.link, { force: true });
10990
- import_node_fs23.default.symlinkSync("../../libxml2.so.2", plan.link);
11027
+ const staged = `${plan.link}.${process.pid}.tmp`;
11028
+ import_node_fs23.default.rmSync(staged, { force: true });
11029
+ import_node_fs23.default.symlinkSync("../../libxml2.so.2", staged);
11030
+ import_node_fs23.default.renameSync(staged, plan.link);
10991
11031
  for (const name3 of ["lib", "lib64"]) {
10992
11032
  try {
10993
11033
  import_node_fs23.default.symlinkSync(`usr/${name3}`, import_node_path19.default.join(root, name3));
@@ -14021,6 +14061,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
14021
14061
  if (!import_node_fs25.default.existsSync(headers)) {
14022
14062
  import_node_fs25.default.mkdirSync(import_node_path23.default.dirname(headers), { recursive: true });
14023
14063
  const staging = import_node_fs25.default.mkdtempSync(`${headers}-`);
14064
+ import_node_fs25.default.chmodSync(staging, 493);
14024
14065
  import_node_fs25.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
14025
14066
  try {
14026
14067
  import_node_fs25.default.renameSync(staging, headers);
@@ -14249,6 +14290,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
14249
14290
  if (!import_node_fs25.default.existsSync(manifest)) {
14250
14291
  import_node_fs25.default.mkdirSync(import_node_path23.default.dirname(view), { recursive: true });
14251
14292
  const staging = import_node_fs25.default.mkdtempSync(`${view}-`);
14293
+ import_node_fs25.default.chmodSync(staging, 493);
14252
14294
  const realRoot = import_node_path23.default.dirname(bundle);
14253
14295
  const overrides = new Map([
14254
14296
  [import_node_path23.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
@@ -14889,14 +14931,12 @@ var ARCHIVE = "wasi/lib_FoundationICU.a";
14889
14931
  var MEMBER = "icu_packaged_data.cpp.obj";
14890
14932
  var raw = /* @__PURE__ */ new Map();
14891
14933
  var assets = /* @__PURE__ */ new Map();
14892
- function memo(cache, key2, load2) {
14893
- let pending = cache.get(key2);
14894
- if (!pending) {
14895
- pending = load2();
14896
- pending.catch(() => cache.delete(key2));
14897
- cache.set(key2, pending);
14898
- }
14899
- return pending;
14934
+ async function memo(cache, key2, load2) {
14935
+ const cached2 = cache.get(key2);
14936
+ if (cached2 !== void 0) return cached2;
14937
+ const value = await load2();
14938
+ cache.set(key2, value);
14939
+ return value;
14900
14940
  }
14901
14941
  function swiftIcuData(toolchainBin, sdk) {
14902
14942
  return memo(
@@ -16325,6 +16365,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
16325
16365
  activateSymbolInObj(w.obj, w.symIdx);
16326
16366
  }
16327
16367
  }
16368
+ for (let n = pref.length - 1; n > 2; n--) {
16369
+ const outer = pref.slice(0, n);
16370
+ if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
16371
+ }
16328
16372
  const mnName = `${pref}Mn`;
16329
16373
  for (let i = 0; i < obj.symNames.length; i++) {
16330
16374
  if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
@@ -16893,8 +16937,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
16893
16937
  writePrunedObject(o, outPath);
16894
16938
  prunedMap.set(o.file, outPath);
16895
16939
  }
16896
- const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
16897
- (f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
16940
+ const extraSdkObjs = allSdkObjFiles.filter(
16941
+ (f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
16898
16942
  ).map((f) => import_node_path30.default.join(sdkObjsDir, f));
16899
16943
  const outTokens = [];
16900
16944
  const emittedPruned = /* @__PURE__ */ new Set();
@@ -16927,7 +16971,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
16927
16971
  }
16928
16972
  }
16929
16973
  }
16930
- outTokens.push(...extraCoreConcurrencyObjs);
16974
+ outTokens.push(...extraSdkObjs);
16931
16975
  continue;
16932
16976
  }
16933
16977
  if (t === "--end-lib") {
@@ -17532,7 +17576,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
17532
17576
  TOCropViewController: [],
17533
17577
  RiveRuntime: ["MetalKit"],
17534
17578
  MetalKit: ["ModelIO"],
17535
- DatadogCore: [],
17579
+ DatadogInternal: [],
17580
+ DatadogCore: ["DatadogInternal"],
17536
17581
  DatadogLogs: ["DatadogCore"],
17537
17582
  DatadogRUM: ["DatadogCore"],
17538
17583
  DatadogTrace: ["DatadogCore"],
@@ -17884,7 +17929,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
17884
17929
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
17885
17930
  var MULTI_MANIFEST_VERSION = 65;
17886
17931
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
17887
- var compilerSourceDigest = true ? "c1407efb75c18328e37b50abfe396dce388c41563443b4c3a1485a800114a92c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17932
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17888
17933
  function swiftArtifactHash(input, release, moduleRoot) {
17889
17934
  const hash = (0, import_node_crypto13.createHash)("sha256");
17890
17935
  hash.update(`swift-compile
@@ -21896,12 +21941,12 @@ function compileSwiftProjectUnit(input, options) {
21896
21941
 
21897
21942
  // src/swift-distribution.lock.json
21898
21943
  var swift_distribution_lock_default = {
21899
- id: "af69e0877dcfc948",
21944
+ id: "92d08dea86eafc17",
21900
21945
  release: "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
21901
21946
  wasmSdkId: "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
21902
21947
  wasmSdkUrl: "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
21903
21948
  wasmSdkChecksum: "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
21904
- source: "85e7a5155755f4400d2bd7010abdd09f62dd6f34",
21949
+ source: "e5fb86f09228f6a9802a802657fea000ed6a3118",
21905
21950
  targets: [
21906
21951
  "ImagePlayground",
21907
21952
  "QuickLookThumbnailing",
@@ -22035,6 +22080,7 @@ var swift_distribution_lock_default = {
22035
22080
  "ModelIOEnums",
22036
22081
  "ModelIO",
22037
22082
  "MetalKit",
22083
+ "DatadogInternal",
22038
22084
  "DatadogCore",
22039
22085
  "DatadogLogs",
22040
22086
  "DatadogRUM",
@@ -22127,16 +22173,16 @@ var swift_distribution_lock_default = {
22127
22173
  },
22128
22174
  hosts: {
22129
22175
  "darwin-arm64": {
22130
- sha256: "dd96208b7ea40e1d8e93d61a716e30191a5e57800074e65837222c042617b96e",
22131
- size: 99097618
22176
+ sha256: "b97c1ef24c74d88fe5b03240ac21017959884861a7ab3d298bc4b97e74e1bd02",
22177
+ size: 98848007
22132
22178
  },
22133
22179
  "linux-x64": {
22134
- sha256: "bd0ef2a7d0fab414a415a9c2619c0c8c890b792856b1cbdb158a6f74b8d75502",
22135
- size: 101817050
22180
+ sha256: "2beb12ad379dc2e618029a69c36b92d55c8f1b43b78e9600d97c13f17a1dab8f",
22181
+ size: 101566420
22136
22182
  },
22137
22183
  "linux-arm64": {
22138
- sha256: "37006a7363e6af15a31c65afaa3d6e0480bdd59c5d835f923e44e69dcae81e53",
22139
- size: 101308927
22184
+ sha256: "5ea72a514d3f67aaf477babb848c14177b57b6cbc1671ea075075586a4c38d6a",
22185
+ size: 101056003
22140
22186
  }
22141
22187
  }
22142
22188
  };
@@ -26707,23 +26753,6 @@ function writeExpoDiscovery(options) {
26707
26753
  }
26708
26754
  }
26709
26755
 
26710
- // src/expoSwiftContract.ts
26711
- init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26712
- var COMPILED_EXPO_NATIVE_PACKAGES = {
26713
- ios: [
26714
- "@rnw-community/react-native-screen-chrome",
26715
- "expo-app-intents",
26716
- "expo-battery",
26717
- "expo-device",
26718
- "expo-hinge",
26719
- "expo-location",
26720
- "expo-store-review",
26721
- "expo-updates",
26722
- "expo-web-browser"
26723
- ],
26724
- android: []
26725
- };
26726
-
26727
26756
  // src/native-preparation.ts
26728
26757
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
26729
26758
  var import_node_timers = require("node:timers");
@@ -27492,7 +27521,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
27492
27521
  }
27493
27522
  return hash.digest("hex");
27494
27523
  }
27495
- var STANDIN_SOURCE_DIGEST = true ? "2c2a910236bf90e3914c1e97b4cd0a8147ec8a27ab2483f1918095661ebcd85a" : standinSourceDigest();
27524
+ var STANDIN_SOURCE_DIGEST = true ? "bcab0947a5f2c96b28cbf3a9de81a4e4de8711a17b0d7622fbc8f8c5fcee3d76" : standinSourceDigest();
27496
27525
 
27497
27526
  // src/swift-standins.ts
27498
27527
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -28325,12 +28354,18 @@ var OBJC_IMPORT = /#\s*(?:import|include)\s*[<"](?:[\w+-]+\/)?([\w+.-]+\.h)[>"]/
28325
28354
  function stageDeclaredFramework(framework, declared, imports2, sdkHeader, destination) {
28326
28355
  const name3 = import_node_path53.default.basename(framework, ".framework");
28327
28356
  const own = `${name3}-Swift.h`;
28328
- const modulemap = import_node_fs54.default.readFileSync(
28357
+ const declaration = import_node_fs54.default.readFileSync(
28329
28358
  import_node_path53.default.join(framework, "Modules/module.modulemap"),
28330
28359
  "utf8"
28331
28360
  );
28361
+ const modulemap = declaration.includes(`framework module ${name3}`) ? declaration : `framework module ${name3} {
28362
+ umbrella header "${name3}-umbrella.h"
28363
+ export *
28364
+ }
28365
+ `;
28332
28366
  const umbrella = /umbrella header "([^"]+)"/.exec(modulemap)?.[1];
28333
- if (!umbrella) throw new Error(`${name3} module map names no umbrella header`);
28367
+ if (!umbrella || !import_node_fs54.default.existsSync(import_node_path53.default.join(framework, "Headers", umbrella)))
28368
+ throw new Error(`${name3} module map names no umbrella header`);
28334
28369
  const headers = new Map(
28335
28370
  import_node_fs54.default.readdirSync(import_node_path53.default.join(framework, "Headers")).filter(
28336
28371
  (file) => file.endsWith(".h") && file !== umbrella && file !== own && file !== `${name3}.h`
@@ -28582,12 +28617,18 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
28582
28617
  (name3) => peach.has(name3)
28583
28618
  );
28584
28619
  const plugins = swiftMacroPlugins(moduleRoot);
28585
- if (plugins.stale)
28620
+ if (plugins.stale) {
28586
28621
  exec("sh", [
28587
28622
  import_node_path53.default.join(moduleRoot, "scripts/build-preview-plugin.sh"),
28588
28623
  toolchainBin,
28589
28624
  plugins.libraries[0]
28590
28625
  ]);
28626
+ import_node_fs54.default.writeFileSync(
28627
+ import_node_path53.default.join(import_node_path53.default.dirname(plugins.libraries[0]), "compiler-release"),
28628
+ `${toolchain.release}
28629
+ `
28630
+ );
28631
+ }
28591
28632
  for (const target of targets)
28592
28633
  exec(
28593
28634
  import_node_path53.default.join(toolchainBin, "swift"),
@@ -31992,8 +32033,7 @@ function collectInstalledSwiftBridgeUnits(appRoot, units, installedNamespaces, s
31992
32033
  const namespacesSeen = new Set(units.map((unit2) => unit2.namespace));
31993
32034
  for (const packageName of Object.keys(dependencies).sort()) {
31994
32035
  signal?.throwIfAborted();
31995
- if (answeredPackages.has(packageName) && !COMPILED_EXPO_NATIVE_PACKAGES.ios.includes(packageName))
31996
- continue;
32036
+ if (answeredPackages.has(packageName)) continue;
31997
32037
  let pkgRoot = null;
31998
32038
  try {
31999
32039
  pkgRoot = import_node_fs56.default.realpathSync(
@@ -36999,7 +37039,7 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
36999
37039
  if (typeof sourceRoot !== "string")
37000
37040
  throw new Error("Expo autolinking entry has no path");
37001
37041
  const canonical = import_node_fs62.default.realpathSync(sourceRoot);
37002
- if (canonical.split(import_node_path61.default.sep).includes("node_modules") && answeredPackages2.has(packageName) && !COMPILED_EXPO_NATIVE_PACKAGES.ios.includes(packageName))
37042
+ if (canonical.split(import_node_path61.default.sep).includes("node_modules") && answeredPackages2.has(packageName))
37003
37043
  continue;
37004
37044
  for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
37005
37045
  const descriptor = import_node_path61.default.join(canonical, name3);
@@ -37171,6 +37211,26 @@ ${import_node_fs62.default.readFileSync(source, "utf8")}`;
37171
37211
  walkFrameworks(canonical);
37172
37212
  }
37173
37213
  const podspec = import_node_fs62.default.existsSync(ios) ? import_node_fs62.default.readdirSync(ios).find((name3) => name3.endsWith(".podspec")) : void 0;
37214
+ const absentFrameworks = [];
37215
+ if (podspec && !installed) {
37216
+ const declared = [
37217
+ ...import_node_fs62.default.readFileSync(import_node_path61.default.join(ios, podspec), "utf8").matchAll(/\bvendored_frameworks\s*=\s*(\[[^\]]*\]|'[^'\n]*'|"[^"\n]*")/g)
37218
+ ].flatMap(
37219
+ ([, value]) => [...value.matchAll(/'([^'\n]*)'|"([^"\n#]*)"/g)].map(
37220
+ (match) => match[1] ?? match[2]
37221
+ )
37222
+ );
37223
+ for (const entry2 of declared) {
37224
+ const base = import_node_path61.default.dirname(import_node_path61.default.resolve(ios, entry2));
37225
+ const name3 = new RegExp(
37226
+ `^${import_node_path61.default.basename(entry2).replace(/[.+^${}()|[\]\\]/g, "\\$&").replaceAll("*", "[^/]*")}$`
37227
+ );
37228
+ const found = import_node_fs62.default.existsSync(base) ? import_node_fs62.default.readdirSync(base).filter((child) => name3.test(child)) : [];
37229
+ if (found.length === 0)
37230
+ absentFrameworks.push(import_node_path61.default.relative(appRoot, import_node_path61.default.resolve(ios, entry2)));
37231
+ for (const child of found) frameworks.add(resolveSource(import_node_path61.default.join(base, child)));
37232
+ }
37233
+ }
37174
37234
  const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
37175
37235
  import_node_fs62.default.readFileSync(import_node_path61.default.join(ios, podspec), "utf8")
37176
37236
  )?.[1] : void 0;
@@ -37205,6 +37265,7 @@ ${import_node_fs62.default.readFileSync(source, "utf8")}`;
37205
37265
  reactDelegateHandlers: module2.handler ? [module2.handler] : [],
37206
37266
  files: closure,
37207
37267
  frameworks: [...frameworks],
37268
+ ...absentFrameworks.length > 0 ? { absentFrameworks } : {},
37208
37269
  ...podspecFloor ? { nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)] } : {}
37209
37270
  };
37210
37271
  unit2.files[EXPO_SWIFT_ENTRY] = expoEntry([unit2]);
@@ -37638,6 +37699,13 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
37638
37699
  const libraries = /* @__PURE__ */ new Map();
37639
37700
  for (const unit2 of units) {
37640
37701
  signal.throwIfAborted();
37702
+ if (unit2.absentFrameworks)
37703
+ gaps.set(
37704
+ unit2,
37705
+ unit2.absentFrameworks.map(
37706
+ (declared) => `${unit2.namespace}.podspec declares vendored framework ${declared}, which is absent`
37707
+ )
37708
+ );
37641
37709
  if (unit2.frameworks.length > 0) {
37642
37710
  const provided = new Set(swiftPeachModules(module2.root));
37643
37711
  const available = swiftAvailableModules(module2.root, module2.toolchainBin);
@@ -37712,10 +37780,10 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
37712
37780
  )
37713
37781
  );
37714
37782
  generations.set(unit2, generation);
37715
- gaps.set(
37716
- unit2,
37717
- [...built2.gaps].map(([name3, reason]) => `${name3}: no stand-in: ${reason}`)
37718
- );
37783
+ gaps.set(unit2, [
37784
+ ...gaps.get(unit2) ?? [],
37785
+ ...[...built2.gaps].map(([name3, reason]) => `${name3}: no stand-in: ${reason}`)
37786
+ ]);
37719
37787
  unit2.files["Package.swift"] = expoManifest(
37720
37788
  unit2.files,
37721
37789
  generation,