peachsim 0.1.2768 → 0.1.2770

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 (132) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +356 -77
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-4DR5UGFN.mjs → acorn-A3J4BCR3.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-P4QFEMNW.mjs → chunk-25CEOCB7.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-TNCPRFBQ.mjs → chunk-4IOWCCHS.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-LMELFNFT.mjs → chunk-4LHY3IKU.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-76RJVPS6.mjs → chunk-5YKVWHMS.mjs} +4 -4
  31. package/dist-lib/esm-chunks/{chunk-SBIBHVCU.mjs → chunk-CFWWQTJ5.mjs} +26 -13
  32. package/dist-lib/esm-chunks/{chunk-OASENKSR.mjs → chunk-CQBPQSRE.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-LDBKSWMK.mjs → chunk-F3FQZ6SE.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-NRFW2S2E.mjs → chunk-FBVGSJJE.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-UP76RU63.mjs → chunk-FJZINSC2.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-LW6EFCKB.mjs → chunk-JGCIXB77.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-FM4IQKZR.mjs → chunk-JN4WVMT4.mjs} +2 -2
  38. package/dist-lib/esm-chunks/{chunk-IA466TSB.mjs → chunk-KSVTJ3JI.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-IXCYOMAY.mjs → chunk-NJNU5MPO.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-QS3CSXQR.mjs → chunk-PT3YJZI2.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-K6H2SOFN.mjs → chunk-Q4BHHFX7.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-FY6GYFKM.mjs → chunk-RBNIOLS5.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-SZC5VUTW.mjs → chunk-RG5UROLK.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-FSZC4K7L.mjs → chunk-RSRSOEDS.mjs} +5 -5
  45. package/dist-lib/esm-chunks/{chunk-CWLOVTXX.mjs → chunk-TTOBAW65.mjs} +3 -3
  46. package/dist-lib/esm-chunks/{chunk-PYVRYHRN.mjs → chunk-TXTIDFLT.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-NNHQMYXA.mjs → chunk-USSIX7QH.mjs} +377 -106
  48. package/dist-lib/esm-chunks/{chunk-EP3OX3CJ.mjs → chunk-W4ZOHLQE.mjs} +6 -6
  49. package/dist-lib/esm-chunks/{chunk-MC3T7WXI.mjs → chunk-Y4DWEUO2.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-6FVNWSDJ.mjs → chunk-YGXQSWWR.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-4TX56S4G.mjs → metro-layout-parser-QXJ7SU7Z.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-7PIYWUST.mjs → swift-package-prebuilt-3YL3XSX3.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-7NOBYKIE.mjs → swift-sdk-app-module-QSLP6GQS.mjs} +22 -17
  54. package/dist-lib/esm-chunks/{swift-sdk-image-FTSV6Y6Y.mjs → swift-sdk-image-XJV6ZFNG.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-TDBFULDN.mjs → swift-sdk-image-producer-NFE2G4PN.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +356 -77
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +356 -77
  61. package/dist-lib/host/fetch-proxy-handler.cjs +24 -20
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +64 -64
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +356 -77
  95. package/dist-lib/swift-compile.cjs +336 -57
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/render-worker/aux-pointer-native.d.ts +4 -0
  123. package/dist-types/packages/peach-engine/src/render-worker/auxPointerContract.d.ts +4 -0
  124. package/package.json +1 -1
  125. package/src/case-insensitive-header-overlay.ts +9 -1
  126. package/src/native-static-libraries.ts +16 -16
  127. package/src/swift-compile.ts +158 -42
  128. package/src/swift-distribution-mirror.ts +280 -10
  129. package/src/swift-objc-prebuilt.ts +10 -1
  130. package/src/swift-objc-standin.ts +6 -1
  131. package/src/swift-sdk-app-module.ts +10 -3
  132. package/src/swift-sdk-surface.ts +5 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2768 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2770 | (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;
@@ -10502,7 +10502,7 @@ var init_swift_objc_sdk_tree = __esm({
10502
10502
 
10503
10503
  // src/swift-compiler-digest.ts
10504
10504
  function swiftArchiveCompilerDigestValue() {
10505
- return true ? "7033c5c50ea9c70f62e6bfc9f9dd743e535c08d86f7136060a0e872f238d0d33" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10505
+ return true ? "6b03f57a8a907c059091275e079f41e5ba083b43a70989a634347e73ff6f548e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10506
10506
  }
10507
10507
  var import_node_crypto10, import_node_fs20, import_node_path17, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
10508
10508
  var init_swift_compiler_digest = __esm({
@@ -10729,7 +10729,12 @@ function contents(node) {
10729
10729
  }))
10730
10730
  ];
10731
10731
  }
10732
- function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
10732
+ function clearCaseInsensitiveHeaderOverlayCache(rootPrefix) {
10733
+ const prefix = `${rootPrefix}${import_node_path20.default.sep}`;
10734
+ for (const key2 of scans2.keys())
10735
+ if (key2 === rootPrefix || key2.startsWith(prefix)) scans2.delete(key2);
10736
+ }
10737
+ function caseInsensitiveHeaderOverlay(directory2, roots, listed, fixedName) {
10733
10738
  let known = scans2;
10734
10739
  if (listed) {
10735
10740
  known = listedScans.get(listed) ?? /* @__PURE__ */ new Map();
@@ -10750,7 +10755,7 @@ function caseInsensitiveHeaderOverlay(directory2, roots, listed) {
10750
10755
  const text7 = JSON.stringify({ "case-sensitive": "false", roots: roots_, version: 0 });
10751
10756
  const file = import_node_path20.default.join(
10752
10757
  directory2,
10753
- `case-insensitive-${(0, import_node_crypto11.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
10758
+ fixedName ?? `case-insensitive-${(0, import_node_crypto11.createHash)("sha256").update(text7).digest("hex").slice(0, 16)}.yaml`
10754
10759
  );
10755
10760
  writeBuildFile(file, text7);
10756
10761
  return file;
@@ -13282,15 +13287,17 @@ function materializeObjcSdk(cacheDir6) {
13282
13287
  }
13283
13288
  return sdk2;
13284
13289
  }
13285
- function objcSdkIntakeFlags(headers, toolchainBin, minimum) {
13290
+ function objcSdkIntakeFlags(headers, toolchainBin, minimum, overlayDirectory) {
13286
13291
  const caseOverlay = caseInsensitiveHeaderOverlay(
13287
- import_node_path22.default.join(swiftCacheDir(), "swift-header-case"),
13292
+ overlayDirectory ?? import_node_path22.default.join(swiftCacheDir(), "swift-header-case"),
13288
13293
  [
13289
13294
  import_node_path22.default.join(headers, "System/Library/Frameworks"),
13290
13295
  import_node_path22.default.join(headers, "wasm/include"),
13291
13296
  import_node_path22.default.join(headers, "wasm/intrinsics"),
13292
13297
  import_node_path22.default.join(headers, "usr/include")
13293
- ]
13298
+ ],
13299
+ void 0,
13300
+ overlayDirectory ? SWIFT_SDK_HEADER_CASE_OVERLAY : void 0
13294
13301
  );
13295
13302
  return [
13296
13303
  ...swiftObjCPlatformFlags(toolchainBin, minimum),
@@ -14367,7 +14374,7 @@ function constantValue(node) {
14367
14374
  }
14368
14375
  return null;
14369
14376
  }
14370
- var import_node_child_process12, import_node_crypto12, import_node_fs23, import_node_path22, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
14377
+ var import_node_child_process12, import_node_crypto12, import_node_fs23, import_node_path22, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, SWIFT_SDK_HEADER_CASE_OVERLAY, headerFiles, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
14371
14378
  var init_swift_objc_standin = __esm({
14372
14379
  "src/swift-objc-standin.ts"() {
14373
14380
  "use strict";
@@ -14408,6 +14415,7 @@ var init_swift_objc_standin = __esm({
14408
14415
  };
14409
14416
  NATIVE_GRAPH_ID = (0, import_node_crypto12.createHash)("sha256").update(JSON.stringify(NATIVE_GRAPH_INPUTS)).digest("hex");
14410
14417
  ROUNDS = 12;
14418
+ SWIFT_SDK_HEADER_CASE_OVERLAY = "sdk-header-case.yaml";
14411
14419
  headerFiles = (dir) => import_node_fs23.default.readdirSync(dir, { recursive: true, encoding: "utf8" }).filter((file) => file.endsWith(".h") || file.endsWith(".hh")).sort();
14412
14420
  MISSING_IMPORT = "#import <PeachMissing/PeachMissing.h>\n";
14413
14421
  FRAMEWORK_HEADER = /^System\/Library\/Frameworks\/([^/]+)\.framework\/Headers\/(.+)$/;
@@ -15484,9 +15492,179 @@ function syncSwiftDistributionMirror(root, source, manifest) {
15484
15492
  const partial = `${record5}.${(0, import_node_crypto14.randomUUID)()}`;
15485
15493
  (0, import_node_fs26.writeFileSync)(partial, JSON.stringify(manifest.files));
15486
15494
  (0, import_node_fs26.renameSync)(partial, record5);
15495
+ if ([...changed, ...removed].some(
15496
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
15497
+ )) {
15498
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
15499
+ clearCaseInsensitiveHeaderOverlayCache(import_node_path25.default.join(root, SWIFT_SDK_MIRROR));
15500
+ }
15487
15501
  }
15488
15502
  return mirror;
15489
15503
  }
15504
+ function syncSwiftSdkMirror(root, frameworkRoot, toolchainBin, sourceSdkId) {
15505
+ const viewOptions = swiftSharedSdkViewOptions(
15506
+ frameworkRoot,
15507
+ true,
15508
+ toolchainBin,
15509
+ sourceSdkId
15510
+ );
15511
+ const sourceView = viewOptions[1];
15512
+ return syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId);
15513
+ }
15514
+ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId) {
15515
+ const mirror = import_node_path25.default.join(root, SWIFT_SDK_MIRROR);
15516
+ const bundle = import_node_path25.default.join(mirror, SWIFT_SDK_MIRROR_BUNDLE);
15517
+ const destTriple = import_node_path25.default.join(bundle, "sdk", SWIFT_WASM_TRIPLE);
15518
+ const bundleInfo = import_node_path25.default.join(bundle, "info.json");
15519
+ const recordFile = import_node_path25.default.join(mirror, SWIFT_SDK_MIRROR_RECORD);
15520
+ const syncingMarker = import_node_path25.default.join(mirror, SWIFT_SDK_MIRROR_SYNCING);
15521
+ const options2 = ["--swift-sdks-path", mirror];
15522
+ const interrupted = (0, import_node_fs26.existsSync)(syncingMarker);
15523
+ const previous = interrupted ? null : readSdkRecord(recordFile);
15524
+ if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && (0, import_node_fs26.existsSync)(bundleInfo) && (0, import_node_fs26.existsSync)(import_node_path25.default.join(destTriple, "swift-sdk.json"))) {
15525
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
15526
+ }
15527
+ const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
15528
+ if (!previous) {
15529
+ if (!interrupted) (0, import_node_fs26.rmSync)(mirror, { recursive: true, force: true });
15530
+ (0, import_node_fs26.rmSync)(import_node_path25.default.join(root, ".build"), { recursive: true, force: true });
15531
+ }
15532
+ (0, import_node_fs26.mkdirSync)(mirror, { recursive: true });
15533
+ (0, import_node_fs26.writeFileSync)(syncingMarker, "1\n");
15534
+ const changed = [];
15535
+ const removed = [];
15536
+ const distributionPrefix = `${frameworkRoot}${import_node_path25.default.sep}`;
15537
+ syncSdkTree(sourceTriple, destTriple, "", distributionPrefix, changed, removed);
15538
+ const infoText = JSON.stringify(
15539
+ {
15540
+ artifacts: {
15541
+ [SWIFT_SDK_MIRROR_ID]: {
15542
+ type: "swiftSDK",
15543
+ variants: [{ path: `sdk/${SWIFT_WASM_TRIPLE}/swift-sdk.json` }],
15544
+ version: "0.0.1"
15545
+ }
15546
+ },
15547
+ schemaVersion: "1.0"
15548
+ },
15549
+ null,
15550
+ 2
15551
+ ) + "\n";
15552
+ if (!(0, import_node_fs26.existsSync)(bundleInfo) || (0, import_node_fs26.readFileSync)(bundleInfo, "utf8") !== infoText) {
15553
+ (0, import_node_fs26.mkdirSync)(bundle, { recursive: true });
15554
+ const partial = `${bundleInfo}.${(0, import_node_crypto14.randomUUID)()}`;
15555
+ (0, import_node_fs26.writeFileSync)(partial, infoText);
15556
+ (0, import_node_fs26.renameSync)(partial, bundleInfo);
15557
+ }
15558
+ const touched = [...changed, ...removed];
15559
+ const toolsetChanged = !previous || touched.some(
15560
+ (file) => file === "toolset.json" || file === "swift-sdk.json" || file.startsWith("swift.xctoolchain/usr/bin/")
15561
+ );
15562
+ if (previous) {
15563
+ if (toolsetChanged) {
15564
+ (0, import_node_fs26.rmSync)(import_node_path25.default.join(root, ".build"), { recursive: true, force: true });
15565
+ } else {
15566
+ const compileTouched = touched.filter(
15567
+ (file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== "runtime-products.json"
15568
+ );
15569
+ const headersChanged = compileTouched.some(
15570
+ (file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
15571
+ );
15572
+ if (compileTouched.length > 0) {
15573
+ invalidateBuildDependents(
15574
+ root,
15575
+ [[Buffer.from(`${escapeDepPath(destTriple)}/`), ""]],
15576
+ new Set(compileTouched),
15577
+ headersChanged
15578
+ );
15579
+ }
15580
+ if (headersChanged) clearCaseInsensitiveHeaderOverlayCache(mirror);
15581
+ }
15582
+ } else {
15583
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
15584
+ }
15585
+ const partialRecord = `${recordFile}.${(0, import_node_crypto14.randomUUID)()}`;
15586
+ (0, import_node_fs26.writeFileSync)(partialRecord, JSON.stringify({ version: 1, sourceView, sourceSdkId }));
15587
+ (0, import_node_fs26.renameSync)(partialRecord, recordFile);
15588
+ (0, import_node_fs26.rmSync)(syncingMarker, { force: true });
15589
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged };
15590
+ }
15591
+ function readSdkRecord(file) {
15592
+ if (!(0, import_node_fs26.existsSync)(file)) return null;
15593
+ const value = JSON.parse((0, import_node_fs26.readFileSync)(file, "utf8"));
15594
+ if (!isRecord(value) || value.version !== 1 || typeof value.sourceView !== "string" || typeof value.sourceSdkId !== "string")
15595
+ return null;
15596
+ return {
15597
+ version: value.version,
15598
+ sourceView: value.sourceView,
15599
+ sourceSdkId: value.sourceSdkId
15600
+ };
15601
+ }
15602
+ function resolveSdkViewTripleDir(sourceView, sourceSdkId) {
15603
+ for (const entry of (0, import_node_fs26.readdirSync)(sourceView, { withFileTypes: true })) {
15604
+ if (!entry.name.endsWith(".artifactbundle")) continue;
15605
+ const bundleDir = import_node_path25.default.join(sourceView, entry.name);
15606
+ const infoPath = import_node_path25.default.join(bundleDir, "info.json");
15607
+ if (!(0, import_node_fs26.existsSync)(infoPath)) continue;
15608
+ const info = JSON.parse((0, import_node_fs26.readFileSync)(infoPath, "utf8"));
15609
+ if (!isRecord(info) || !isRecord(info.artifacts)) continue;
15610
+ const artifact = info.artifacts[sourceSdkId];
15611
+ if (!isRecord(artifact) || !Array.isArray(artifact.variants)) continue;
15612
+ const first = artifact.variants[0];
15613
+ if (!isRecord(first) || typeof first.path !== "string") continue;
15614
+ return import_node_path25.default.dirname(import_node_path25.default.join(bundleDir, first.path));
15615
+ }
15616
+ throw new Error(`Swift SDK ${sourceSdkId} not found in view ${sourceView}`);
15617
+ }
15618
+ function collectRemovedFiles(dir, prefix, out) {
15619
+ for (const entry of (0, import_node_fs26.readdirSync)(dir, { withFileTypes: true })) {
15620
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15621
+ const full = import_node_path25.default.join(dir, entry.name);
15622
+ if (entry.isDirectory()) collectRemovedFiles(full, rel, out);
15623
+ else out.push(rel);
15624
+ }
15625
+ }
15626
+ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, removed) {
15627
+ (0, import_node_fs26.mkdirSync)(destDir, { recursive: true });
15628
+ const wanted = /* @__PURE__ */ new Set();
15629
+ for (const entry of (0, import_node_fs26.readdirSync)(sourceDir, { withFileTypes: true })) {
15630
+ wanted.add(entry.name);
15631
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15632
+ const src = import_node_path25.default.join(sourceDir, entry.name);
15633
+ const dest = import_node_path25.default.join(destDir, entry.name);
15634
+ const destLstat = (0, import_node_fs26.lstatSync)(dest, { throwIfNoEntry: false });
15635
+ if (entry.isSymbolicLink()) {
15636
+ const target = (0, import_node_fs26.readlinkSync)(src);
15637
+ if (target.startsWith(distributionPrefix)) {
15638
+ if (destLstat?.isSymbolicLink() && (0, import_node_fs26.readlinkSync)(dest) === target) continue;
15639
+ if (destLstat) (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15640
+ (0, import_node_fs26.symlinkSync)(target, dest);
15641
+ changed.push(rel);
15642
+ continue;
15643
+ }
15644
+ }
15645
+ const srcStat = (0, import_node_fs26.statSync)(src, { throwIfNoEntry: false });
15646
+ if (!srcStat) continue;
15647
+ if (srcStat.isDirectory()) {
15648
+ if (destLstat && (!destLstat.isDirectory() || destLstat.isSymbolicLink()))
15649
+ (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15650
+ syncSdkTree(src, dest, rel, distributionPrefix, changed, removed);
15651
+ continue;
15652
+ }
15653
+ if (destLstat?.isFile() && !destLstat.isSymbolicLink() && destLstat.size === srcStat.size && (0, import_node_fs26.readFileSync)(src).equals((0, import_node_fs26.readFileSync)(dest)))
15654
+ continue;
15655
+ if (destLstat?.isDirectory()) (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15656
+ place(src, dest, (srcStat.mode & 73) !== 0 ? srcStat.mode & 511 : void 0);
15657
+ changed.push(rel);
15658
+ }
15659
+ for (const entry of (0, import_node_fs26.readdirSync)(destDir, { withFileTypes: true })) {
15660
+ if (wanted.has(entry.name)) continue;
15661
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15662
+ const dest = import_node_path25.default.join(destDir, entry.name);
15663
+ if (entry.isDirectory()) collectRemovedFiles(dest, rel, removed);
15664
+ else removed.push(rel);
15665
+ (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15666
+ }
15667
+ }
15490
15668
  function readRecord(file) {
15491
15669
  if (!(0, import_node_fs26.existsSync)(file)) return null;
15492
15670
  const value = JSON.parse((0, import_node_fs26.readFileSync)(file, "utf8"));
@@ -15498,24 +15676,33 @@ function readRecord(file) {
15498
15676
  }
15499
15677
  return files2;
15500
15678
  }
15501
- function place(from, to) {
15679
+ function place(from, to, mode) {
15502
15680
  (0, import_node_fs26.mkdirSync)(import_node_path25.default.dirname(to), { recursive: true });
15503
15681
  const partial = `${to}.${(0, import_node_crypto14.randomUUID)()}`;
15504
15682
  (0, import_node_fs26.copyFileSync)(from, partial, import_node_fs26.constants.COPYFILE_FICLONE);
15683
+ if (mode !== void 0) (0, import_node_fs26.chmodSync)(partial, mode);
15505
15684
  (0, import_node_fs26.renameSync)(partial, to);
15506
15685
  }
15507
- function invalidateDependents(root, mirror, files2) {
15508
- const read = new Set(files2.filter((file) => !file.startsWith("lib/")));
15509
- if (read.size === 0) return;
15510
- const escapedMirror = mirror.replace(
15686
+ function escapeDepPath(directory2) {
15687
+ return directory2.replace(
15511
15688
  /[\\ #$]/g,
15512
15689
  (character) => character === "$" ? "$$" : `\\${character}`
15513
15690
  );
15691
+ }
15692
+ function invalidateDependents(root, mirror, files2) {
15693
+ const read = new Set(files2.filter((file) => !file.startsWith("lib/")));
15694
+ if (read.size === 0) return;
15514
15695
  const spellings = [
15515
- [Buffer.from(`${escapedMirror}/`), ""]
15696
+ [Buffer.from(`${escapeDepPath(mirror)}/`), ""]
15516
15697
  ];
15517
15698
  if (files2.some((file) => file.startsWith("sdk/ios/")))
15518
15699
  spellings.push([Buffer.from("/darwin/"), "sdk/ios/"]);
15700
+ const headersChanged = files2.some(
15701
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
15702
+ );
15703
+ invalidateBuildDependents(root, spellings, read, headersChanged);
15704
+ }
15705
+ function invalidateBuildDependents(root, spellings, read, headersChanged) {
15519
15706
  const names = (text7) => spellings.some(([prefix, base2]) => {
15520
15707
  let end = 0;
15521
15708
  for (let at = text7.indexOf(prefix); at !== -1; at = text7.indexOf(prefix, end)) {
@@ -15530,9 +15717,6 @@ function invalidateDependents(root, mirror, files2) {
15530
15717
  });
15531
15718
  const scratch2 = import_node_path25.default.join(root, ".build");
15532
15719
  if (!(0, import_node_fs26.existsSync)(scratch2)) return;
15533
- const headersChanged = files2.some(
15534
- (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
15535
- );
15536
15720
  for (const triple of (0, import_node_fs26.readdirSync)(scratch2, { withFileTypes: true })) {
15537
15721
  const products = import_node_path25.default.join(scratch2, triple.name, "release");
15538
15722
  if (!triple.isDirectory() || !(0, import_node_fs26.existsSync)(products)) continue;
@@ -15572,18 +15756,25 @@ function invalidateDependents(root, mirror, files2) {
15572
15756
  if (headersChanged)
15573
15757
  (0, import_node_fs26.rmSync)(import_node_path25.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
15574
15758
  }
15575
- var import_node_crypto14, import_node_fs26, import_node_path25, SWIFT_DISTRIBUTION_MIRROR;
15759
+ var import_node_crypto14, import_node_fs26, import_node_path25, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_SYNCING, SWIFT_SDK_MIRROR_BUNDLE;
15576
15760
  var init_swift_distribution_mirror = __esm({
15577
15761
  "src/swift-distribution-mirror.ts"() {
15578
15762
  "use strict";
15579
15763
  import_node_crypto14 = require("node:crypto");
15580
15764
  import_node_fs26 = require("node:fs");
15581
15765
  import_node_path25 = __toESM(require("node:path"), 1);
15766
+ init_case_insensitive_header_overlay();
15582
15767
  init_is_record();
15583
15768
  init_swift_distribution_contract();
15584
15769
  init_swift_shared_sdk();
15585
15770
  init_swiftContract();
15771
+ init_swiftTargetContract();
15586
15772
  SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
15773
+ SWIFT_SDK_MIRROR = ".peach-sdk";
15774
+ SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
15775
+ SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
15776
+ SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
15777
+ SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
15587
15778
  }
15588
15779
  });
15589
15780
 
@@ -29424,8 +29615,10 @@ function swiftPeachModules(moduleRoot) {
29424
29615
  (0, import_node_fs40.readFileSync)(import_node_path39.default.join(moduleRoot, "Package.swift"), "utf8")
29425
29616
  ).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
29426
29617
  }
29427
- function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin)) {
29428
- const sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId;
29618
+ function clearSwiftSdkPathsCache(sdkDir) {
29619
+ for (const key2 of sdkPaths.keys()) if (key2.includes(sdkDir)) sdkPaths.delete(key2);
29620
+ }
29621
+ function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin), sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId) {
29429
29622
  const key2 = JSON.stringify([toolchainBin, sdk2, options2]);
29430
29623
  const cached2 = sdkPaths.get(key2);
29431
29624
  if (cached2) return cached2;
@@ -32812,7 +33005,10 @@ function finishSwiftAppModuleFile(file) {
32812
33005
  (0, import_node_fs46.appendFileSync)(file, Buffer.concat([header, nameBytes, thunks]));
32813
33006
  }
32814
33007
  function swiftAppModuleInputs(tokens2, buildRoot, sdkLibraries) {
32815
- const owned = (token) => import_node_path45.default.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
33008
+ const owned = (token) => {
33009
+ const resolved = import_node_path45.default.resolve(token);
33010
+ return resolved.startsWith(`${buildRoot}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_DISTRIBUTION_MIRROR}/`) && !resolved.startsWith(`${buildRoot}/${SWIFT_SDK_MIRROR}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
33011
+ };
32816
33012
  const inputs2 = [];
32817
33013
  for (const [index, token] of tokens2.entries()) {
32818
33014
  if (token === "--start-lib") inputs2.push(token);
@@ -34267,6 +34463,7 @@ var init_swift_sdk_app_module = __esm({
34267
34463
  import_node_zlib5 = require("node:zlib");
34268
34464
  init_nativeSdkBindingContract();
34269
34465
  init_nativeWasmContract();
34466
+ init_swift_distribution_mirror();
34270
34467
  init_swift_guest_dyld_functions();
34271
34468
  init_swift_guest_linked_spans();
34272
34469
  init_swift_project_user();
@@ -35760,7 +35957,9 @@ var init_swift_objc_prebuilt = __esm({
35760
35957
  init_internal_child_contract();
35761
35958
  init_self_invocation();
35762
35959
  init_native_prebuilt();
35960
+ init_swift_distribution_mirror();
35763
35961
  init_swift_objc_prebuilt_catalog();
35962
+ init_swift_objc_standin();
35764
35963
  init_swift_toolchain();
35765
35964
  quote2 = (value) => "'" + value.replaceAll("'", "'\\''") + "'";
35766
35965
  }
@@ -37341,7 +37540,7 @@ function syncSwiftTree(base2, files2, alreadySynced) {
37341
37540
  const full = import_node_path56.default.join(dir, entry.name);
37342
37541
  if (dir === base2 && (entry.name === ".build" || entry.name === SWIFT_CACHE_HOLD_MARKER || entry.name.startsWith(".peach-modules-") || // distribution clang maps are written beside the project, so a sync
37343
37542
  // must not remove them.
37344
- entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
37543
+ entry.name === CLANG_DISTRIBUTION_MODULES || entry.name === SWIFT_DISTRIBUTION_MIRROR || entry.name === SWIFT_SDK_MIRROR || entry.name === SWIFT_LINK_STAMP || entry.name === SWIFT_BUILD_ROOT_SHAPE))
37345
37544
  continue;
37346
37545
  if (entry.isDirectory()) walk4(full);
37347
37546
  else if (!files2.has(full) && (!kept || !kept.has((0, import_node_fs55.lstatSync)(full).ino)))
@@ -37975,7 +38174,7 @@ function needsNativeToolset(input, prebuilt) {
37975
38174
  input.packageFiles || prebuilt || Object.keys(input.files).some(isSwiftNativeTranslationUnit)
37976
38175
  );
37977
38176
  }
37978
- function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage) {
38177
+ function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage, compileSdk) {
37979
38178
  const nativeToolset = needsNativeToolset(input, prebuilt);
37980
38179
  if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
37981
38180
  throw new Error("swift compile input has invalid original header aliases");
@@ -38104,6 +38303,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38104
38303
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
38105
38304
  return checkedToolchain;
38106
38305
  };
38306
+ const resolvedSdkPaths = (toolchainBin) => swiftSdkPaths(moduleRoot, toolchainBin, compileSdk?.options, compileSdk?.id);
38107
38307
  const targetStagedFiles = /* @__PURE__ */ new Map();
38108
38308
  const stageTargetFile = (target, file, contents2, options2) => {
38109
38309
  const relative4 = import_node_path56.default.relative(layout2.root, file).split(import_node_path56.default.sep).join(import_node_path56.default.posix.sep);
@@ -38230,9 +38430,25 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38230
38430
  files2.set(destination, contents2);
38231
38431
  }
38232
38432
  }
38433
+ const binaryTreePrefix = `${SWIFT_BINARY_TREES_DIR}/`;
38434
+ const binaryTreeSegment = `/${SWIFT_BINARY_TREES_DIR}/`;
38435
+ const isBinaryTreeFile = (file) => file.startsWith(binaryTreePrefix) || file.includes(binaryTreeSegment);
38436
+ const stageBinaryTreeFile = (file, contents2) => {
38437
+ const destination = import_node_path56.default.join(layout2.root, file);
38438
+ if (files2.has(destination)) return;
38439
+ writeBuildFile(destination, contents2);
38440
+ alreadySynced.set(destination, contents2);
38441
+ files2.set(destination, contents2);
38442
+ };
38443
+ for (const [file, contents2] of Object.entries(input.files))
38444
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, contents2);
38445
+ for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
38446
+ if (isBinaryTreeFile(file) && !file.endsWith(".swift"))
38447
+ stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
38448
+ for (const [file, bytes] of Object.entries(input.projectFiles ?? {}))
38449
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
38233
38450
  const fromInputRoot = (file) => file.startsWith(`${SWIFT_NATIVE_INPUT_ROOT}/`) ? import_node_path56.default.join(layout2.root, file.slice(SWIFT_NATIVE_INPUT_ROOT.length + 1)) : file;
38234
38451
  const inRoot = `${layout2.root}${import_node_path56.default.sep}`;
38235
- const binaryTree = `${import_node_path56.default.sep}${SWIFT_BINARY_TREES_DIR}${import_node_path56.default.sep}`;
38236
38452
  const headerSearch = writeXcodeHeaderSearch(
38237
38453
  import_node_path56.default.join(layout2.root, ".build", "peach-xcode-headers"),
38238
38454
  nativeTargets2.map((settings) => {
@@ -38284,7 +38500,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38284
38500
  import_node_path56.default.join(layout2.root, file)
38285
38501
  ])
38286
38502
  ),
38287
- (file) => !file.startsWith(inRoot) || files2.has(file) || file.includes(binaryTree)
38503
+ (file) => !file.startsWith(inRoot) || files2.has(file)
38288
38504
  );
38289
38505
  const importModuleMaps = /* @__PURE__ */ new Map();
38290
38506
  const sourceModuleMaps = /* @__PURE__ */ new Map();
@@ -38427,7 +38643,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38427
38643
  ];
38428
38644
  })();
38429
38645
  const sdkInclude = import_node_path56.default.join(
38430
- swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
38646
+ resolvedSdkPaths(toolchainBin).sysroot,
38431
38647
  "darwin/usr/include"
38432
38648
  );
38433
38649
  const dependencyModuleMaps = clangImportModuleMapFlags(
@@ -39174,7 +39390,8 @@ ${entry}`);
39174
39390
  );
39175
39391
  if (nativeFlags) {
39176
39392
  const toolchainBin = nativeToolchain();
39177
- const headers = import_node_path56.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
39393
+ const headers = import_node_path56.default.join(resolvedSdkPaths(toolchainBin).sysroot, "darwin");
39394
+ const sdkOverlayDirectory = compileSdk?.id === SWIFT_SDK_MIRROR_ID ? import_node_path56.default.join(layout2.root, SWIFT_SDK_MIRROR) : void 0;
39178
39395
  const dependencies2 = swiftTargetDependencies(input.files, targets);
39179
39396
  const reachesNative = (name3, seen = /* @__PURE__ */ new Set()) => {
39180
39397
  if (native.has(name3)) return true;
@@ -39192,7 +39409,12 @@ ${entry}`);
39192
39409
  throw new Error(
39193
39410
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
39194
39411
  );
39195
- const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
39412
+ const sdkIntake = objcSdkIntakeFlags(
39413
+ headers,
39414
+ toolchainBin,
39415
+ minimum,
39416
+ sdkOverlayDirectory
39417
+ );
39196
39418
  const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
39197
39419
  if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
39198
39420
  const intake = [
@@ -39414,7 +39636,7 @@ ${entry}`);
39414
39636
  distribution: distribution ?? void 0,
39415
39637
  moduleExcludes,
39416
39638
  deferDarwinOverlay: native.size > 0 && toolsetOrdersLibcxxBeforeDarwinOverlay(
39417
- swiftSdkPaths(moduleRoot, nativeToolchain()).cFlags
39639
+ resolvedSdkPaths(nativeToolchain()).cFlags
39418
39640
  ),
39419
39641
  ...reachesFrameworks ? {
39420
39642
  distributionLink: {
@@ -39457,7 +39679,7 @@ ${entry}`);
39457
39679
  ...headerAliasFlags,
39458
39680
  ...native.size > 0 ? [
39459
39681
  "-fmodule-map-file=" + import_node_path56.default.join(
39460
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
39682
+ resolvedSdkPaths(nativeToolchain()).sysroot,
39461
39683
  "darwin/wasm/include/module.modulemap"
39462
39684
  )
39463
39685
  ] : []
@@ -39467,7 +39689,7 @@ ${entry}`);
39467
39689
  const prebuiltCompiler = distribution && objcPrebuiltStage !== false ? swiftObjCPrebuiltCompiler(
39468
39690
  clang,
39469
39691
  layout2.root,
39470
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
39692
+ resolvedSdkPaths(nativeToolchain()).sysroot,
39471
39693
  distribution.id,
39472
39694
  [...native.keys()],
39473
39695
  objcPrebuiltStage
@@ -39725,12 +39947,55 @@ package.targets += [.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON
39725
39947
  `;
39726
39948
  return name3;
39727
39949
  };
39728
- const headerBuilds = headerCompiler ? [
39729
- {
39730
- target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, orderedProducers),
39731
- producers: orderedProducers
39950
+ const producerUnitCount = /* @__PURE__ */ new Map();
39951
+ for (const target of targets) {
39952
+ if (!producerSet.has(target.name)) continue;
39953
+ producerUnitCount.set(
39954
+ target.name,
39955
+ Math.max(
39956
+ 1,
39957
+ targetEntries(target).filter(([file]) => file.endsWith(".swift")).length
39958
+ )
39959
+ );
39960
+ }
39961
+ const MAX_HEADER_STAGE_TARGETS = 100;
39962
+ const MAX_HEADER_STAGE_UNITS = 400;
39963
+ const chunkHeaderProducers = (producers2) => {
39964
+ const levelOrdered = [...producers2].sort(
39965
+ (left, right) => depths.get(left) - depths.get(right)
39966
+ );
39967
+ const totalUnits = levelOrdered.reduce(
39968
+ (sum, name3) => sum + (producerUnitCount.get(name3) ?? 1),
39969
+ 0
39970
+ );
39971
+ if (levelOrdered.length <= 1 || levelOrdered.length <= MAX_HEADER_STAGE_TARGETS && totalUnits <= MAX_HEADER_STAGE_UNITS) {
39972
+ return [
39973
+ {
39974
+ target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, levelOrdered),
39975
+ producers: levelOrdered
39976
+ }
39977
+ ];
39732
39978
  }
39733
- ] : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
39979
+ const chunks = [];
39980
+ let current2 = [];
39981
+ let units = 0;
39982
+ for (const name3 of levelOrdered) {
39983
+ const size2 = producerUnitCount.get(name3) ?? 1;
39984
+ if (current2.length > 0 && (current2.length >= MAX_HEADER_STAGE_TARGETS || units + size2 > MAX_HEADER_STAGE_UNITS)) {
39985
+ chunks.push(current2);
39986
+ current2 = [];
39987
+ units = 0;
39988
+ }
39989
+ current2.push(name3);
39990
+ units += size2;
39991
+ }
39992
+ if (current2.length > 0) chunks.push(current2);
39993
+ return chunks.map((members2, index) => ({
39994
+ target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${index + 1}`, members2),
39995
+ producers: members2
39996
+ }));
39997
+ };
39998
+ const headerBuilds = headerCompiler ? chunkHeaderProducers(orderedProducers) : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
39734
39999
  target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${level}`, producers2),
39735
40000
  producers: producers2
39736
40001
  }));
@@ -41257,8 +41522,15 @@ ${compatShape}` : "";
41257
41522
  frameworkLease
41258
41523
  );
41259
41524
  const compileFrameworkRoot2 = distribution ? swiftDistributionCompileView(frameworkRoot2, distribution) : frameworkRoot2;
41260
- const sdk3 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
41261
- const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
41525
+ const sdk2 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
41526
+ const compileSdk2 = mirrorDistribution ? syncSwiftSdkMirror(root2, frameworkRoot2, options2.toolchainBin, sdk2) : {
41527
+ id: sdk2,
41528
+ options: swiftCompileSdkOptions(frameworkRoot2, options2.toolchainBin),
41529
+ toolsetChanged: false
41530
+ };
41531
+ if (mirrorDistribution && compileSdk2.toolsetChanged)
41532
+ clearSwiftSdkPathsCache(import_node_path56.default.join(root2, SWIFT_SDK_MIRROR));
41533
+ const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk2);
41262
41534
  let prebuilt2;
41263
41535
  if (!distribution) {
41264
41536
  if (allowWrite) stage("compiling framework products");
@@ -41269,7 +41541,7 @@ ${compatShape}` : "";
41269
41541
  frameworkKey,
41270
41542
  input,
41271
41543
  swift,
41272
- sdk: sdk3,
41544
+ sdk: sdk2,
41273
41545
  toolchainBin: options2.toolchainBin,
41274
41546
  plugins: macroPlugins2,
41275
41547
  buildOptions: {
@@ -41294,7 +41566,8 @@ ${compatShape}` : "";
41294
41566
  frameworkRoot: frameworkRoot2,
41295
41567
  compileFrameworkRoot: compileFrameworkRoot2,
41296
41568
  macroPlugins: macroPlugins2,
41297
- sdk: sdk3,
41569
+ sdk: sdk2,
41570
+ compileSdk: compileSdk2,
41298
41571
  icu: icu2,
41299
41572
  prebuilt: prebuilt2,
41300
41573
  readHold: readHold2
@@ -41315,7 +41588,7 @@ ${compatShape}` : "";
41315
41588
  frameworkRoot,
41316
41589
  compileFrameworkRoot,
41317
41590
  macroPlugins,
41318
- sdk: sdk2,
41591
+ compileSdk,
41319
41592
  icu,
41320
41593
  prebuilt
41321
41594
  } = frameworks;
@@ -41333,13 +41606,13 @@ ${compatShape}` : "";
41333
41606
  if (retireStaleSwiftLink(
41334
41607
  root2,
41335
41608
  swiftLinkStamp({
41336
- frameworkKey: `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
41609
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
41337
41610
  packageHostMacros
41338
41611
  }),
41339
41612
  swiftLinkStamp({
41340
- // a distribution's objects reach only the deferred link, and
41341
- // the root's mirror keeps its compile inputs at fixed paths
41342
- frameworkKey: distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
41613
+ // mirrored distributions and their WASI SDK mirror invalidate
41614
+ // dependents per changed file instead of wiping every Clang object.
41615
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
41343
41616
  prebuilt,
41344
41617
  packageHostMacros
41345
41618
  }),
@@ -41353,7 +41626,8 @@ ${compatShape}` : "";
41353
41626
  frameworkRoot,
41354
41627
  prebuilt,
41355
41628
  !options2.project,
41356
- options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0)
41629
+ options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0),
41630
+ compileSdk
41357
41631
  );
41358
41632
  const productFile = import_node_path56.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
41359
41633
  writeSwiftAutolinkLinker(
@@ -41429,6 +41703,7 @@ ${compatShape}` : "";
41429
41703
  const jobs = swiftCompilerJobs();
41430
41704
  const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
41431
41705
  const perFile = input.unoptimized || incrementalPreview;
41706
+ const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
41432
41707
  const buildArgs = [
41433
41708
  "build",
41434
41709
  ...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
@@ -41438,10 +41713,10 @@ ${compatShape}` : "";
41438
41713
  String(jobs),
41439
41714
  "--package-path",
41440
41715
  root2,
41441
- ...swiftCompileSdkOptions(frameworkRoot, options2.toolchainBin),
41716
+ ...compileSdk.options,
41442
41717
  ...swiftObjCSelectorOptions(frameworkRoot),
41443
41718
  "--swift-sdk",
41444
- sdk2,
41719
+ compileSdk.id,
41445
41720
  ...preparation.targetToolset ? ["--toolset", import_node_path56.default.join(root2, ".peach-target-toolset.json")] : [],
41446
41721
  "-c",
41447
41722
  "release",
@@ -41476,7 +41751,7 @@ ${compatShape}` : "";
41476
41751
  ],
41477
41752
  ...swiftReproducibleBuildFlags([
41478
41753
  [import_node_path56.default.dirname(options2.toolchainBin), "toolchain"],
41479
- [compileFrameworkRoot, "framework"],
41754
+ [reproducibleFrameworkRoot, "framework"],
41480
41755
  [root2, "build"],
41481
41756
  ...forwarders
41482
41757
  ]).flatMap((flag, index, flags) => {
@@ -41486,8 +41761,8 @@ ${compatShape}` : "";
41486
41761
  let mapped = flag;
41487
41762
  for (const [dir, target] of [
41488
41763
  [root2, "/peach/build"],
41489
- [compileFrameworkRoot, "/peach/framework"],
41490
- [(0, import_node_fs55.realpathSync)(compileFrameworkRoot), "/peach/framework"],
41764
+ [reproducibleFrameworkRoot, "/peach/framework"],
41765
+ [(0, import_node_fs55.realpathSync)(reproducibleFrameworkRoot), "/peach/framework"],
41491
41766
  [toolchainDir, "/peach/toolchain"],
41492
41767
  [(0, import_node_fs55.realpathSync)(toolchainDir), "/peach/toolchain"]
41493
41768
  ]) {
@@ -41516,8 +41791,14 @@ ${compatShape}` : "";
41516
41791
  (0, import_node_fs55.rmSync)(linked, { force: true });
41517
41792
  stage("compiling and linking Swift modules");
41518
41793
  const frameworkInterfaces = /* @__PURE__ */ new Map();
41794
+ const compileSdkPaths = swiftSdkPaths(
41795
+ frameworkRoot,
41796
+ options2.toolchainBin,
41797
+ compileSdk.options,
41798
+ compileSdk.id
41799
+ );
41519
41800
  const sdkFrameworks = import_node_path56.default.join(
41520
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).darwin,
41801
+ compileSdkPaths.darwin,
41521
41802
  "System/Library/Frameworks"
41522
41803
  );
41523
41804
  const generatedInterface = (source) => withoutImportedSdkEnumForwards(
@@ -41721,7 +42002,7 @@ ${compatShape}` : "";
41721
42002
  options2.toolchainBin,
41722
42003
  recipe2,
41723
42004
  new Map(
41724
- preparation.headerBuilds[0].producers.map((producer) => {
42005
+ preparation.headerBuilds.flatMap((stage2) => stage2.producers).map((producer) => {
41725
42006
  const paths = headerPaths(producer);
41726
42007
  return [
41727
42008
  swiftTargetModuleName(producer),
@@ -41815,7 +42096,7 @@ ${compatShape}` : "";
41815
42096
  moduleRoot: frameworkRoot,
41816
42097
  toolchainBin: options2.toolchainBin,
41817
42098
  swiftCompiler: preparation.headerCompiler ? import_node_path56.default.join(root2, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path56.default.join(options2.toolchainBin, "swiftc"),
41818
- sysroot: swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot,
42099
+ sysroot: compileSdkPaths.sysroot,
41819
42100
  sdk: swiftModuleSdk(frameworkRoot),
41820
42101
  sdkImage,
41821
42102
  compilerDigest: compilerSourceDigest,
@@ -41845,9 +42126,7 @@ ${compatShape}` : "";
41845
42126
  project: options2.project && {
41846
42127
  ...options2.project,
41847
42128
  env: { ...options2.project.env, ...projectProcess?.env },
41848
- sdkRoot: import_node_path56.default.dirname(
41849
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot
41850
- ),
42129
+ sdkRoot: import_node_path56.default.dirname(compileSdkPaths.sysroot),
41851
42130
  linked: output
41852
42131
  }
41853
42132
  });
@@ -42108,7 +42387,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
42108
42387
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
42109
42388
  MULTI_MANIFEST_VERSION = 76;
42110
42389
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
42111
- compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42390
+ compilerSourceDigest = true ? "a0b547d433e1045fc952acc099a7aa9b05cde3376f8d2dd002afbf6d4593e5ba" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42112
42391
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
42113
42392
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
42114
42393
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -81855,112 +82134,112 @@ var init_native_static_libraries = __esm({
81855
82134
  name: "skia",
81856
82135
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
81857
82136
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81858
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82137
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81859
82138
  archive: "libskia.a"
81860
82139
  },
81861
82140
  {
81862
82141
  name: "skia_svg",
81863
82142
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
81864
82143
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81865
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82144
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81866
82145
  archive: "libsvg.a"
81867
82146
  },
81868
82147
  {
81869
82148
  name: "skia_skshaper",
81870
82149
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
81871
82150
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81872
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82151
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81873
82152
  archive: "libskshaper.a"
81874
82153
  },
81875
82154
  {
81876
82155
  name: "skia_skparagraph",
81877
82156
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
81878
82157
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81879
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82158
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81880
82159
  archive: "libskparagraph.a"
81881
82160
  },
81882
82161
  {
81883
82162
  name: "skia_skunicode_core",
81884
82163
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
81885
82164
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81886
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82165
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81887
82166
  archive: "libskunicode_core.a"
81888
82167
  },
81889
82168
  {
81890
82169
  name: "skia_skunicode_libgrapheme",
81891
82170
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
81892
82171
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81893
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82172
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81894
82173
  archive: "libskunicode_libgrapheme.a"
81895
82174
  },
81896
82175
  {
81897
82176
  name: "skia_skottie",
81898
82177
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
81899
82178
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81900
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82179
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81901
82180
  archive: "libskottie.a"
81902
82181
  },
81903
82182
  {
81904
82183
  name: "skia_sksg",
81905
82184
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
81906
82185
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81907
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82186
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81908
82187
  archive: "libsksg.a"
81909
82188
  },
81910
82189
  {
81911
82190
  name: "skia",
81912
82191
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
81913
82192
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81914
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82193
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81915
82194
  archive: "libskia.a"
81916
82195
  },
81917
82196
  {
81918
82197
  name: "skia_svg",
81919
82198
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
81920
82199
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81921
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82200
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81922
82201
  archive: "libsvg.a"
81923
82202
  },
81924
82203
  {
81925
82204
  name: "skia_skshaper",
81926
82205
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
81927
82206
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81928
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82207
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81929
82208
  archive: "libskshaper.a"
81930
82209
  },
81931
82210
  {
81932
82211
  name: "skia_skparagraph",
81933
82212
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
81934
82213
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81935
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82214
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81936
82215
  archive: "libskparagraph.a"
81937
82216
  },
81938
82217
  {
81939
82218
  name: "skia_skunicode_core",
81940
82219
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
81941
82220
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81942
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82221
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81943
82222
  archive: "libskunicode_core.a"
81944
82223
  },
81945
82224
  {
81946
82225
  name: "skia_skunicode_libgrapheme",
81947
82226
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
81948
82227
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81949
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82228
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81950
82229
  archive: "libskunicode_libgrapheme.a"
81951
82230
  },
81952
82231
  {
81953
82232
  name: "skia_skottie",
81954
82233
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
81955
82234
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81956
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82235
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81957
82236
  archive: "libskottie.a"
81958
82237
  },
81959
82238
  {
81960
82239
  name: "skia_sksg",
81961
82240
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
81962
82241
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81963
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82242
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81964
82243
  archive: "libsksg.a"
81965
82244
  },
81966
82245
  {
@@ -88218,7 +88497,7 @@ var init_swift_standin_digest = __esm({
88218
88497
  ];
88219
88498
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
88220
88499
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
88221
- STANDIN_SOURCE_DIGEST = true ? "a17a387bf80ef3648c26193901ee6a7cb9abc691b99809c6a8bf9ad4617836af" : standinSourceDigest();
88500
+ STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
88222
88501
  }
88223
88502
  });
88224
88503
 
@@ -107058,7 +107337,7 @@ var init_nitro_superset = __esm({
107058
107337
  init_nitroContract();
107059
107338
  init_swift_standin_digest();
107060
107339
  NITRO_SUPERSET_ENTRY_NAME = "superset";
107061
- NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107340
+ NITRO_COMPILER_DIGEST = true ? "80dd47cc4f53f23aef7d6066173498f39993357bb08490b172789693f63a072f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107062
107341
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
107063
107342
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
107064
107343
  published = /* @__PURE__ */ new Map();
@@ -107762,7 +108041,7 @@ var init_expo_eager_seam_contract = __esm({
107762
108041
 
107763
108042
  // src/expo-native-compiler-digest.ts
107764
108043
  function expoNativeCompilerDigestValue() {
107765
- return true ? "867bb716444e6da99acd8ca9dd4860c523197b0261ea2c03eb0d3bf8c5f9d793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
108044
+ return true ? "20b00f2698ace1deda2b18448f2606eb47a5eaae0195083595ede81758eafc7c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
107766
108045
  }
107767
108046
  var import_node_crypto81;
107768
108047
  var init_expo_native_compiler_digest = __esm({