peachsim 0.1.2767 → 0.1.2769

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 +351 -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-RDD3HI5C.mjs → acorn-GNB3RJH7.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-BY3E6CUM.mjs → chunk-3WG4L5YK.mjs} +372 -106
  28. package/dist-lib/esm-chunks/{chunk-YX56RZ26.mjs → chunk-3ZKE33FC.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-555YCJDH.mjs → chunk-4GHACZYW.mjs} +5 -5
  30. package/dist-lib/esm-chunks/{chunk-CBAMX2H3.mjs → chunk-4IJOKKT2.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-GKHSLOW6.mjs → chunk-53WFZATQ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-H4KLP3QO.mjs → chunk-57JPQBQL.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-PDMYH4NT.mjs → chunk-ALLMPTWQ.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-UGTY5DQQ.mjs → chunk-BFLH7V77.mjs} +6 -6
  35. package/dist-lib/esm-chunks/{chunk-LO5KFOI3.mjs → chunk-BP7TLKZD.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-WJKKLL2J.mjs → chunk-ETXC2XBY.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-C6YNOAXM.mjs → chunk-GHJPVQ3A.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-D6JZSVL7.mjs → chunk-L2U2IEHU.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-7G6WGJWR.mjs → chunk-MBLYJ74N.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-P2KN5U5O.mjs → chunk-MGIODRG3.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-XPSICY6F.mjs → chunk-OG5C2CN2.mjs} +3 -3
  42. package/dist-lib/esm-chunks/{chunk-4W67A7NE.mjs → chunk-OPIPPBGX.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-DFK4ZVNM.mjs → chunk-TI42U3CD.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-H5C5TZNB.mjs → chunk-TJNFADI5.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-OYMWLKPN.mjs → chunk-TTVQWJGW.mjs} +4 -4
  46. package/dist-lib/esm-chunks/{chunk-7VSU2AV7.mjs → chunk-VF3CWZTM.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-AC2RBU5N.mjs → chunk-WWANYYJG.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-EJWUFWN3.mjs → chunk-XX7VUACB.mjs} +26 -13
  49. package/dist-lib/esm-chunks/{chunk-BSN5R62H.mjs → chunk-ZGNNVEWM.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-3WJRW63F.mjs → chunk-ZLYAJ4CU.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-7POGDD5P.mjs → metro-layout-parser-LT2DPN6F.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-ULD72CI5.mjs → swift-package-prebuilt-ZFFWBI33.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-VXSTLD57.mjs → swift-sdk-app-module-UZ6BZSES.mjs} +22 -17
  54. package/dist-lib/esm-chunks/{swift-sdk-image-KDJATRA6.mjs → swift-sdk-image-J2DE3SBW.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-KNBUALWN.mjs → swift-sdk-image-producer-C4U4EQRW.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +351 -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 +351 -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 +351 -77
  95. package/dist-lib/swift-compile.cjs +331 -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 +273 -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.2767 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2769 | (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 ? "8b191a8fe01f7c85c340f8260c13e9935003dc8380f94603ae47599ba67822f9" : 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,175 @@ 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 options2 = ["--swift-sdks-path", mirror];
15521
+ const previous = readSdkRecord(recordFile);
15522
+ 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"))) {
15523
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
15524
+ }
15525
+ const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
15526
+ if (!previous) {
15527
+ (0, import_node_fs26.rmSync)(mirror, { recursive: true, force: true });
15528
+ (0, import_node_fs26.rmSync)(import_node_path25.default.join(root, ".build"), { recursive: true, force: true });
15529
+ }
15530
+ const changed = [];
15531
+ const removed = [];
15532
+ const distributionPrefix = `${frameworkRoot}${import_node_path25.default.sep}`;
15533
+ syncSdkTree(sourceTriple, destTriple, "", distributionPrefix, changed, removed);
15534
+ const infoText = JSON.stringify(
15535
+ {
15536
+ artifacts: {
15537
+ [SWIFT_SDK_MIRROR_ID]: {
15538
+ type: "swiftSDK",
15539
+ variants: [{ path: `sdk/${SWIFT_WASM_TRIPLE}/swift-sdk.json` }],
15540
+ version: "0.0.1"
15541
+ }
15542
+ },
15543
+ schemaVersion: "1.0"
15544
+ },
15545
+ null,
15546
+ 2
15547
+ ) + "\n";
15548
+ if (!(0, import_node_fs26.existsSync)(bundleInfo) || (0, import_node_fs26.readFileSync)(bundleInfo, "utf8") !== infoText) {
15549
+ (0, import_node_fs26.mkdirSync)(bundle, { recursive: true });
15550
+ const partial = `${bundleInfo}.${(0, import_node_crypto14.randomUUID)()}`;
15551
+ (0, import_node_fs26.writeFileSync)(partial, infoText);
15552
+ (0, import_node_fs26.renameSync)(partial, bundleInfo);
15553
+ }
15554
+ const touched = [...changed, ...removed];
15555
+ const toolsetChanged = !previous || touched.some(
15556
+ (file) => file === "toolset.json" || file === "swift-sdk.json" || file.startsWith("swift.xctoolchain/usr/bin/")
15557
+ );
15558
+ if (previous) {
15559
+ if (toolsetChanged) {
15560
+ (0, import_node_fs26.rmSync)(import_node_path25.default.join(root, ".build"), { recursive: true, force: true });
15561
+ } else {
15562
+ const compileTouched = touched.filter(
15563
+ (file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== "runtime-products.json"
15564
+ );
15565
+ const headersChanged = compileTouched.some(
15566
+ (file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
15567
+ );
15568
+ if (compileTouched.length > 0) {
15569
+ invalidateBuildDependents(
15570
+ root,
15571
+ [[Buffer.from(`${escapeDepPath(destTriple)}/`), ""]],
15572
+ new Set(compileTouched),
15573
+ headersChanged
15574
+ );
15575
+ }
15576
+ if (headersChanged) clearCaseInsensitiveHeaderOverlayCache(mirror);
15577
+ }
15578
+ } else {
15579
+ clearCaseInsensitiveHeaderOverlayCache(mirror);
15580
+ }
15581
+ (0, import_node_fs26.mkdirSync)(mirror, { recursive: true });
15582
+ const partialRecord = `${recordFile}.${(0, import_node_crypto14.randomUUID)()}`;
15583
+ (0, import_node_fs26.writeFileSync)(partialRecord, JSON.stringify({ version: 1, sourceView, sourceSdkId }));
15584
+ (0, import_node_fs26.renameSync)(partialRecord, recordFile);
15585
+ return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged };
15586
+ }
15587
+ function readSdkRecord(file) {
15588
+ if (!(0, import_node_fs26.existsSync)(file)) return null;
15589
+ const value = JSON.parse((0, import_node_fs26.readFileSync)(file, "utf8"));
15590
+ if (!isRecord(value) || value.version !== 1 || typeof value.sourceView !== "string" || typeof value.sourceSdkId !== "string")
15591
+ return null;
15592
+ return {
15593
+ version: value.version,
15594
+ sourceView: value.sourceView,
15595
+ sourceSdkId: value.sourceSdkId
15596
+ };
15597
+ }
15598
+ function resolveSdkViewTripleDir(sourceView, sourceSdkId) {
15599
+ for (const entry of (0, import_node_fs26.readdirSync)(sourceView, { withFileTypes: true })) {
15600
+ if (!entry.name.endsWith(".artifactbundle")) continue;
15601
+ const bundleDir = import_node_path25.default.join(sourceView, entry.name);
15602
+ const infoPath = import_node_path25.default.join(bundleDir, "info.json");
15603
+ if (!(0, import_node_fs26.existsSync)(infoPath)) continue;
15604
+ const info = JSON.parse((0, import_node_fs26.readFileSync)(infoPath, "utf8"));
15605
+ if (!isRecord(info) || !isRecord(info.artifacts)) continue;
15606
+ const artifact = info.artifacts[sourceSdkId];
15607
+ if (!isRecord(artifact) || !Array.isArray(artifact.variants)) continue;
15608
+ const first = artifact.variants[0];
15609
+ if (!isRecord(first) || typeof first.path !== "string") continue;
15610
+ return import_node_path25.default.dirname(import_node_path25.default.join(bundleDir, first.path));
15611
+ }
15612
+ throw new Error(`Swift SDK ${sourceSdkId} not found in view ${sourceView}`);
15613
+ }
15614
+ function collectRemovedFiles(dir, prefix, out) {
15615
+ for (const entry of (0, import_node_fs26.readdirSync)(dir, { withFileTypes: true })) {
15616
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15617
+ const full = import_node_path25.default.join(dir, entry.name);
15618
+ if (entry.isDirectory()) collectRemovedFiles(full, rel, out);
15619
+ else out.push(rel);
15620
+ }
15621
+ }
15622
+ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, removed) {
15623
+ (0, import_node_fs26.mkdirSync)(destDir, { recursive: true });
15624
+ const wanted = /* @__PURE__ */ new Set();
15625
+ for (const entry of (0, import_node_fs26.readdirSync)(sourceDir, { withFileTypes: true })) {
15626
+ wanted.add(entry.name);
15627
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15628
+ const src = import_node_path25.default.join(sourceDir, entry.name);
15629
+ const dest = import_node_path25.default.join(destDir, entry.name);
15630
+ const destLstat = (0, import_node_fs26.lstatSync)(dest, { throwIfNoEntry: false });
15631
+ if (entry.isSymbolicLink()) {
15632
+ const target = (0, import_node_fs26.readlinkSync)(src);
15633
+ if (target.startsWith(distributionPrefix)) {
15634
+ if (destLstat?.isSymbolicLink() && (0, import_node_fs26.readlinkSync)(dest) === target) continue;
15635
+ if (destLstat) (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15636
+ (0, import_node_fs26.symlinkSync)(target, dest);
15637
+ changed.push(rel);
15638
+ continue;
15639
+ }
15640
+ }
15641
+ const srcStat = (0, import_node_fs26.statSync)(src, { throwIfNoEntry: false });
15642
+ if (!srcStat) continue;
15643
+ if (srcStat.isDirectory()) {
15644
+ if (destLstat && (!destLstat.isDirectory() || destLstat.isSymbolicLink()))
15645
+ (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15646
+ syncSdkTree(src, dest, rel, distributionPrefix, changed, removed);
15647
+ continue;
15648
+ }
15649
+ if (destLstat?.isFile() && !destLstat.isSymbolicLink() && destLstat.size === srcStat.size && (0, import_node_fs26.readFileSync)(src).equals((0, import_node_fs26.readFileSync)(dest)))
15650
+ continue;
15651
+ if (destLstat?.isDirectory()) (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15652
+ place(src, dest, (srcStat.mode & 73) !== 0 ? srcStat.mode & 511 : void 0);
15653
+ changed.push(rel);
15654
+ }
15655
+ for (const entry of (0, import_node_fs26.readdirSync)(destDir, { withFileTypes: true })) {
15656
+ if (wanted.has(entry.name)) continue;
15657
+ const rel = prefix ? `${prefix}/${entry.name}` : entry.name;
15658
+ const dest = import_node_path25.default.join(destDir, entry.name);
15659
+ if (entry.isDirectory()) collectRemovedFiles(dest, rel, removed);
15660
+ else removed.push(rel);
15661
+ (0, import_node_fs26.rmSync)(dest, { recursive: true, force: true });
15662
+ }
15663
+ }
15490
15664
  function readRecord(file) {
15491
15665
  if (!(0, import_node_fs26.existsSync)(file)) return null;
15492
15666
  const value = JSON.parse((0, import_node_fs26.readFileSync)(file, "utf8"));
@@ -15498,24 +15672,33 @@ function readRecord(file) {
15498
15672
  }
15499
15673
  return files2;
15500
15674
  }
15501
- function place(from, to) {
15675
+ function place(from, to, mode) {
15502
15676
  (0, import_node_fs26.mkdirSync)(import_node_path25.default.dirname(to), { recursive: true });
15503
15677
  const partial = `${to}.${(0, import_node_crypto14.randomUUID)()}`;
15504
15678
  (0, import_node_fs26.copyFileSync)(from, partial, import_node_fs26.constants.COPYFILE_FICLONE);
15679
+ if (mode !== void 0) (0, import_node_fs26.chmodSync)(partial, mode);
15505
15680
  (0, import_node_fs26.renameSync)(partial, to);
15506
15681
  }
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(
15682
+ function escapeDepPath(directory2) {
15683
+ return directory2.replace(
15511
15684
  /[\\ #$]/g,
15512
15685
  (character) => character === "$" ? "$$" : `\\${character}`
15513
15686
  );
15687
+ }
15688
+ function invalidateDependents(root, mirror, files2) {
15689
+ const read = new Set(files2.filter((file) => !file.startsWith("lib/")));
15690
+ if (read.size === 0) return;
15514
15691
  const spellings = [
15515
- [Buffer.from(`${escapedMirror}/`), ""]
15692
+ [Buffer.from(`${escapeDepPath(mirror)}/`), ""]
15516
15693
  ];
15517
15694
  if (files2.some((file) => file.startsWith("sdk/ios/")))
15518
15695
  spellings.push([Buffer.from("/darwin/"), "sdk/ios/"]);
15696
+ const headersChanged = files2.some(
15697
+ (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
15698
+ );
15699
+ invalidateBuildDependents(root, spellings, read, headersChanged);
15700
+ }
15701
+ function invalidateBuildDependents(root, spellings, read, headersChanged) {
15519
15702
  const names = (text7) => spellings.some(([prefix, base2]) => {
15520
15703
  let end = 0;
15521
15704
  for (let at = text7.indexOf(prefix); at !== -1; at = text7.indexOf(prefix, end)) {
@@ -15530,9 +15713,6 @@ function invalidateDependents(root, mirror, files2) {
15530
15713
  });
15531
15714
  const scratch2 = import_node_path25.default.join(root, ".build");
15532
15715
  if (!(0, import_node_fs26.existsSync)(scratch2)) return;
15533
- const headersChanged = files2.some(
15534
- (file) => !file.startsWith("lib/") && !file.startsWith("modules/")
15535
- );
15536
15716
  for (const triple of (0, import_node_fs26.readdirSync)(scratch2, { withFileTypes: true })) {
15537
15717
  const products = import_node_path25.default.join(scratch2, triple.name, "release");
15538
15718
  if (!triple.isDirectory() || !(0, import_node_fs26.existsSync)(products)) continue;
@@ -15572,18 +15752,24 @@ function invalidateDependents(root, mirror, files2) {
15572
15752
  if (headersChanged)
15573
15753
  (0, import_node_fs26.rmSync)(import_node_path25.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
15574
15754
  }
15575
- var import_node_crypto14, import_node_fs26, import_node_path25, SWIFT_DISTRIBUTION_MIRROR;
15755
+ 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_BUNDLE;
15576
15756
  var init_swift_distribution_mirror = __esm({
15577
15757
  "src/swift-distribution-mirror.ts"() {
15578
15758
  "use strict";
15579
15759
  import_node_crypto14 = require("node:crypto");
15580
15760
  import_node_fs26 = require("node:fs");
15581
15761
  import_node_path25 = __toESM(require("node:path"), 1);
15762
+ init_case_insensitive_header_overlay();
15582
15763
  init_is_record();
15583
15764
  init_swift_distribution_contract();
15584
15765
  init_swift_shared_sdk();
15585
15766
  init_swiftContract();
15767
+ init_swiftTargetContract();
15586
15768
  SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
15769
+ SWIFT_SDK_MIRROR = ".peach-sdk";
15770
+ SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
15771
+ SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
15772
+ SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
15587
15773
  }
15588
15774
  });
15589
15775
 
@@ -29424,8 +29610,10 @@ function swiftPeachModules(moduleRoot) {
29424
29610
  (0, import_node_fs40.readFileSync)(import_node_path39.default.join(moduleRoot, "Package.swift"), "utf8")
29425
29611
  ).filter((target) => !target.executable && !target.path.startsWith("fixtures/")).map((target) => target.name);
29426
29612
  }
29427
- function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin)) {
29428
- const sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId;
29613
+ function clearSwiftSdkPathsCache(sdkDir) {
29614
+ for (const key2 of sdkPaths.keys()) if (key2.includes(sdkDir)) sdkPaths.delete(key2);
29615
+ }
29616
+ function swiftSdkPaths(moduleRoot, toolchainBin, options2 = swiftCompileSdkOptions(moduleRoot, toolchainBin), sdk2 = swiftModuleSdk(moduleRoot).wasmSdkId) {
29429
29617
  const key2 = JSON.stringify([toolchainBin, sdk2, options2]);
29430
29618
  const cached2 = sdkPaths.get(key2);
29431
29619
  if (cached2) return cached2;
@@ -32812,7 +33000,10 @@ function finishSwiftAppModuleFile(file) {
32812
33000
  (0, import_node_fs46.appendFileSync)(file, Buffer.concat([header, nameBytes, thunks]));
32813
33001
  }
32814
33002
  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"));
33003
+ const owned = (token) => {
33004
+ const resolved = import_node_path45.default.resolve(token);
33005
+ 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"));
33006
+ };
32816
33007
  const inputs2 = [];
32817
33008
  for (const [index, token] of tokens2.entries()) {
32818
33009
  if (token === "--start-lib") inputs2.push(token);
@@ -34267,6 +34458,7 @@ var init_swift_sdk_app_module = __esm({
34267
34458
  import_node_zlib5 = require("node:zlib");
34268
34459
  init_nativeSdkBindingContract();
34269
34460
  init_nativeWasmContract();
34461
+ init_swift_distribution_mirror();
34270
34462
  init_swift_guest_dyld_functions();
34271
34463
  init_swift_guest_linked_spans();
34272
34464
  init_swift_project_user();
@@ -35760,7 +35952,9 @@ var init_swift_objc_prebuilt = __esm({
35760
35952
  init_internal_child_contract();
35761
35953
  init_self_invocation();
35762
35954
  init_native_prebuilt();
35955
+ init_swift_distribution_mirror();
35763
35956
  init_swift_objc_prebuilt_catalog();
35957
+ init_swift_objc_standin();
35764
35958
  init_swift_toolchain();
35765
35959
  quote2 = (value) => "'" + value.replaceAll("'", "'\\''") + "'";
35766
35960
  }
@@ -37341,7 +37535,7 @@ function syncSwiftTree(base2, files2, alreadySynced) {
37341
37535
  const full = import_node_path56.default.join(dir, entry.name);
37342
37536
  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
37537
  // 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))
37538
+ 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
37539
  continue;
37346
37540
  if (entry.isDirectory()) walk4(full);
37347
37541
  else if (!files2.has(full) && (!kept || !kept.has((0, import_node_fs55.lstatSync)(full).ino)))
@@ -37975,7 +38169,7 @@ function needsNativeToolset(input, prebuilt) {
37975
38169
  input.packageFiles || prebuilt || Object.keys(input.files).some(isSwiftNativeTranslationUnit)
37976
38170
  );
37977
38171
  }
37978
- function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage) {
38172
+ function writeSwiftProject(layout2, input, moduleRoot, prebuilt, allowHeaderCompiler = false, objcPrebuiltStage, compileSdk) {
37979
38173
  const nativeToolset = needsNativeToolset(input, prebuilt);
37980
38174
  if (input.headerAliases !== void 0 && !isSwiftHeaderAliases(input.headerAliases))
37981
38175
  throw new Error("swift compile input has invalid original header aliases");
@@ -38104,6 +38298,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38104
38298
  checkedToolchain = swiftToolchain(pin2.release, swiftModuleSdk(moduleRoot));
38105
38299
  return checkedToolchain;
38106
38300
  };
38301
+ const resolvedSdkPaths = (toolchainBin) => swiftSdkPaths(moduleRoot, toolchainBin, compileSdk?.options, compileSdk?.id);
38107
38302
  const targetStagedFiles = /* @__PURE__ */ new Map();
38108
38303
  const stageTargetFile = (target, file, contents2, options2) => {
38109
38304
  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 +38425,25 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38230
38425
  files2.set(destination, contents2);
38231
38426
  }
38232
38427
  }
38428
+ const binaryTreePrefix = `${SWIFT_BINARY_TREES_DIR}/`;
38429
+ const binaryTreeSegment = `/${SWIFT_BINARY_TREES_DIR}/`;
38430
+ const isBinaryTreeFile = (file) => file.startsWith(binaryTreePrefix) || file.includes(binaryTreeSegment);
38431
+ const stageBinaryTreeFile = (file, contents2) => {
38432
+ const destination = import_node_path56.default.join(layout2.root, file);
38433
+ if (files2.has(destination)) return;
38434
+ writeBuildFile(destination, contents2);
38435
+ alreadySynced.set(destination, contents2);
38436
+ files2.set(destination, contents2);
38437
+ };
38438
+ for (const [file, contents2] of Object.entries(input.files))
38439
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, contents2);
38440
+ for (const [file, bytes] of Object.entries(input.packageFiles ?? {}))
38441
+ if (isBinaryTreeFile(file) && !file.endsWith(".swift"))
38442
+ stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
38443
+ for (const [file, bytes] of Object.entries(input.projectFiles ?? {}))
38444
+ if (isBinaryTreeFile(file)) stageBinaryTreeFile(file, Buffer.from(bytes, "base64"));
38233
38445
  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
38446
  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
38447
  const headerSearch = writeXcodeHeaderSearch(
38237
38448
  import_node_path56.default.join(layout2.root, ".build", "peach-xcode-headers"),
38238
38449
  nativeTargets2.map((settings) => {
@@ -38284,7 +38495,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38284
38495
  import_node_path56.default.join(layout2.root, file)
38285
38496
  ])
38286
38497
  ),
38287
- (file) => !file.startsWith(inRoot) || files2.has(file) || file.includes(binaryTree)
38498
+ (file) => !file.startsWith(inRoot) || files2.has(file)
38288
38499
  );
38289
38500
  const importModuleMaps = /* @__PURE__ */ new Map();
38290
38501
  const sourceModuleMaps = /* @__PURE__ */ new Map();
@@ -38427,7 +38638,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
38427
38638
  ];
38428
38639
  })();
38429
38640
  const sdkInclude = import_node_path56.default.join(
38430
- swiftSdkPaths(moduleRoot, toolchainBin).sysroot,
38641
+ resolvedSdkPaths(toolchainBin).sysroot,
38431
38642
  "darwin/usr/include"
38432
38643
  );
38433
38644
  const dependencyModuleMaps = clangImportModuleMapFlags(
@@ -39174,7 +39385,8 @@ ${entry}`);
39174
39385
  );
39175
39386
  if (nativeFlags) {
39176
39387
  const toolchainBin = nativeToolchain();
39177
- const headers = import_node_path56.default.join(swiftSdkPaths(moduleRoot, toolchainBin).sysroot, "darwin");
39388
+ const headers = import_node_path56.default.join(resolvedSdkPaths(toolchainBin).sysroot, "darwin");
39389
+ const sdkOverlayDirectory = compileSdk?.id === SWIFT_SDK_MIRROR_ID ? import_node_path56.default.join(layout2.root, SWIFT_SDK_MIRROR) : void 0;
39178
39390
  const dependencies2 = swiftTargetDependencies(input.files, targets);
39179
39391
  const reachesNative = (name3, seen = /* @__PURE__ */ new Set()) => {
39180
39392
  if (native.has(name3)) return true;
@@ -39192,7 +39404,12 @@ ${entry}`);
39192
39404
  throw new Error(
39193
39405
  target.name + ": missing or unsupported declared iOS deployment target " + JSON.stringify(version2)
39194
39406
  );
39195
- const sdkIntake = objcSdkIntakeFlags(headers, toolchainBin, minimum);
39407
+ const sdkIntake = objcSdkIntakeFlags(
39408
+ headers,
39409
+ toolchainBin,
39410
+ minimum,
39411
+ sdkOverlayDirectory
39412
+ );
39196
39413
  const sdkOverlay = sdkIntake.indexOf("-ivfsoverlay");
39197
39414
  if (sdkOverlay >= 0) generatedOverlays.add(sdkIntake[sdkOverlay + 1]);
39198
39415
  const intake = [
@@ -39414,7 +39631,7 @@ ${entry}`);
39414
39631
  distribution: distribution ?? void 0,
39415
39632
  moduleExcludes,
39416
39633
  deferDarwinOverlay: native.size > 0 && toolsetOrdersLibcxxBeforeDarwinOverlay(
39417
- swiftSdkPaths(moduleRoot, nativeToolchain()).cFlags
39634
+ resolvedSdkPaths(nativeToolchain()).cFlags
39418
39635
  ),
39419
39636
  ...reachesFrameworks ? {
39420
39637
  distributionLink: {
@@ -39457,7 +39674,7 @@ ${entry}`);
39457
39674
  ...headerAliasFlags,
39458
39675
  ...native.size > 0 ? [
39459
39676
  "-fmodule-map-file=" + import_node_path56.default.join(
39460
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
39677
+ resolvedSdkPaths(nativeToolchain()).sysroot,
39461
39678
  "darwin/wasm/include/module.modulemap"
39462
39679
  )
39463
39680
  ] : []
@@ -39467,7 +39684,7 @@ ${entry}`);
39467
39684
  const prebuiltCompiler = distribution && objcPrebuiltStage !== false ? swiftObjCPrebuiltCompiler(
39468
39685
  clang,
39469
39686
  layout2.root,
39470
- swiftSdkPaths(moduleRoot, nativeToolchain()).sysroot,
39687
+ resolvedSdkPaths(nativeToolchain()).sysroot,
39471
39688
  distribution.id,
39472
39689
  [...native.keys()],
39473
39690
  objcPrebuiltStage
@@ -39725,12 +39942,55 @@ package.targets += [.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON
39725
39942
  `;
39726
39943
  return name3;
39727
39944
  };
39728
- const headerBuilds = headerCompiler ? [
39729
- {
39730
- target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, orderedProducers),
39731
- producers: orderedProducers
39945
+ const producerUnitCount = /* @__PURE__ */ new Map();
39946
+ for (const target of targets) {
39947
+ if (!producerSet.has(target.name)) continue;
39948
+ producerUnitCount.set(
39949
+ target.name,
39950
+ Math.max(
39951
+ 1,
39952
+ targetEntries(target).filter(([file]) => file.endsWith(".swift")).length
39953
+ )
39954
+ );
39955
+ }
39956
+ const MAX_HEADER_STAGE_TARGETS = 100;
39957
+ const MAX_HEADER_STAGE_UNITS = 400;
39958
+ const chunkHeaderProducers = (producers2) => {
39959
+ const levelOrdered = [...producers2].sort(
39960
+ (left, right) => depths.get(left) - depths.get(right)
39961
+ );
39962
+ const totalUnits = levelOrdered.reduce(
39963
+ (sum, name3) => sum + (producerUnitCount.get(name3) ?? 1),
39964
+ 0
39965
+ );
39966
+ if (levelOrdered.length <= 1 || levelOrdered.length <= MAX_HEADER_STAGE_TARGETS && totalUnits <= MAX_HEADER_STAGE_UNITS) {
39967
+ return [
39968
+ {
39969
+ target: buildProduct(SWIFT_HEADER_PRODUCTS_TARGET, levelOrdered),
39970
+ producers: levelOrdered
39971
+ }
39972
+ ];
39973
+ }
39974
+ const chunks = [];
39975
+ let current2 = [];
39976
+ let units = 0;
39977
+ for (const name3 of levelOrdered) {
39978
+ const size2 = producerUnitCount.get(name3) ?? 1;
39979
+ if (current2.length > 0 && (current2.length >= MAX_HEADER_STAGE_TARGETS || units + size2 > MAX_HEADER_STAGE_UNITS)) {
39980
+ chunks.push(current2);
39981
+ current2 = [];
39982
+ units = 0;
39983
+ }
39984
+ current2.push(name3);
39985
+ units += size2;
39732
39986
  }
39733
- ] : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
39987
+ if (current2.length > 0) chunks.push(current2);
39988
+ return chunks.map((members2, index) => ({
39989
+ target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${index + 1}`, members2),
39990
+ producers: members2
39991
+ }));
39992
+ };
39993
+ const headerBuilds = headerCompiler ? chunkHeaderProducers(orderedProducers) : [...stages].sort(([left], [right]) => left - right).map(([level, producers2]) => ({
39734
39994
  target: buildProduct(`${SWIFT_HEADER_PRODUCTS_TARGET}${level}`, producers2),
39735
39995
  producers: producers2
39736
39996
  }));
@@ -41257,8 +41517,15 @@ ${compatShape}` : "";
41257
41517
  frameworkLease
41258
41518
  );
41259
41519
  const compileFrameworkRoot2 = distribution ? swiftDistributionCompileView(frameworkRoot2, distribution) : frameworkRoot2;
41260
- const sdk3 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
41261
- const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
41520
+ const sdk2 = swiftModuleSdk(frameworkRoot2).wasmSdkId;
41521
+ const compileSdk2 = mirrorDistribution ? syncSwiftSdkMirror(root2, frameworkRoot2, options2.toolchainBin, sdk2) : {
41522
+ id: sdk2,
41523
+ options: swiftCompileSdkOptions(frameworkRoot2, options2.toolchainBin),
41524
+ toolsetChanged: false
41525
+ };
41526
+ if (mirrorDistribution && compileSdk2.toolsetChanged)
41527
+ clearSwiftSdkPathsCache(import_node_path56.default.join(root2, SWIFT_SDK_MIRROR));
41528
+ const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk2);
41262
41529
  let prebuilt2;
41263
41530
  if (!distribution) {
41264
41531
  if (allowWrite) stage("compiling framework products");
@@ -41269,7 +41536,7 @@ ${compatShape}` : "";
41269
41536
  frameworkKey,
41270
41537
  input,
41271
41538
  swift,
41272
- sdk: sdk3,
41539
+ sdk: sdk2,
41273
41540
  toolchainBin: options2.toolchainBin,
41274
41541
  plugins: macroPlugins2,
41275
41542
  buildOptions: {
@@ -41294,7 +41561,8 @@ ${compatShape}` : "";
41294
41561
  frameworkRoot: frameworkRoot2,
41295
41562
  compileFrameworkRoot: compileFrameworkRoot2,
41296
41563
  macroPlugins: macroPlugins2,
41297
- sdk: sdk3,
41564
+ sdk: sdk2,
41565
+ compileSdk: compileSdk2,
41298
41566
  icu: icu2,
41299
41567
  prebuilt: prebuilt2,
41300
41568
  readHold: readHold2
@@ -41315,7 +41583,7 @@ ${compatShape}` : "";
41315
41583
  frameworkRoot,
41316
41584
  compileFrameworkRoot,
41317
41585
  macroPlugins,
41318
- sdk: sdk2,
41586
+ compileSdk,
41319
41587
  icu,
41320
41588
  prebuilt
41321
41589
  } = frameworks;
@@ -41333,13 +41601,13 @@ ${compatShape}` : "";
41333
41601
  if (retireStaleSwiftLink(
41334
41602
  root2,
41335
41603
  swiftLinkStamp({
41336
- frameworkKey: `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
41604
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : `${options2.release}\0${Boolean(distribution)}\0${swiftModuleSdk(frameworkRoot).wasmSdkId}`,
41337
41605
  packageHostMacros
41338
41606
  }),
41339
41607
  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,
41608
+ // mirrored distributions and their WASI SDK mirror invalidate
41609
+ // dependents per changed file instead of wiping every Clang object.
41610
+ frameworkKey: mirrorDistribution ? `${options2.release}\0mirror` : distribution ? `${options2.release}\0${distribution.wasmSdkChecksum}` : frameworkKey,
41343
41611
  prebuilt,
41344
41612
  packageHostMacros
41345
41613
  }),
@@ -41353,7 +41621,8 @@ ${compatShape}` : "";
41353
41621
  frameworkRoot,
41354
41622
  prebuilt,
41355
41623
  !options2.project,
41356
- options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0)
41624
+ options2.project ? false : options2.objcPrebuiltStage ?? (options2.intermediates ? false : void 0),
41625
+ compileSdk
41357
41626
  );
41358
41627
  const productFile = import_node_path56.default.join(frameworkRoot, SWIFT_FRAMEWORK_PRODUCT_FILE);
41359
41628
  writeSwiftAutolinkLinker(
@@ -41429,6 +41698,7 @@ ${compatShape}` : "";
41429
41698
  const jobs = swiftCompilerJobs();
41430
41699
  const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
41431
41700
  const perFile = input.unoptimized || incrementalPreview;
41701
+ const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
41432
41702
  const buildArgs = [
41433
41703
  "build",
41434
41704
  ...projectProcess?.cacheOptions ?? swiftPackageCacheOptions(),
@@ -41438,10 +41708,10 @@ ${compatShape}` : "";
41438
41708
  String(jobs),
41439
41709
  "--package-path",
41440
41710
  root2,
41441
- ...swiftCompileSdkOptions(frameworkRoot, options2.toolchainBin),
41711
+ ...compileSdk.options,
41442
41712
  ...swiftObjCSelectorOptions(frameworkRoot),
41443
41713
  "--swift-sdk",
41444
- sdk2,
41714
+ compileSdk.id,
41445
41715
  ...preparation.targetToolset ? ["--toolset", import_node_path56.default.join(root2, ".peach-target-toolset.json")] : [],
41446
41716
  "-c",
41447
41717
  "release",
@@ -41476,7 +41746,7 @@ ${compatShape}` : "";
41476
41746
  ],
41477
41747
  ...swiftReproducibleBuildFlags([
41478
41748
  [import_node_path56.default.dirname(options2.toolchainBin), "toolchain"],
41479
- [compileFrameworkRoot, "framework"],
41749
+ [reproducibleFrameworkRoot, "framework"],
41480
41750
  [root2, "build"],
41481
41751
  ...forwarders
41482
41752
  ]).flatMap((flag, index, flags) => {
@@ -41486,8 +41756,8 @@ ${compatShape}` : "";
41486
41756
  let mapped = flag;
41487
41757
  for (const [dir, target] of [
41488
41758
  [root2, "/peach/build"],
41489
- [compileFrameworkRoot, "/peach/framework"],
41490
- [(0, import_node_fs55.realpathSync)(compileFrameworkRoot), "/peach/framework"],
41759
+ [reproducibleFrameworkRoot, "/peach/framework"],
41760
+ [(0, import_node_fs55.realpathSync)(reproducibleFrameworkRoot), "/peach/framework"],
41491
41761
  [toolchainDir, "/peach/toolchain"],
41492
41762
  [(0, import_node_fs55.realpathSync)(toolchainDir), "/peach/toolchain"]
41493
41763
  ]) {
@@ -41516,8 +41786,14 @@ ${compatShape}` : "";
41516
41786
  (0, import_node_fs55.rmSync)(linked, { force: true });
41517
41787
  stage("compiling and linking Swift modules");
41518
41788
  const frameworkInterfaces = /* @__PURE__ */ new Map();
41789
+ const compileSdkPaths = swiftSdkPaths(
41790
+ frameworkRoot,
41791
+ options2.toolchainBin,
41792
+ compileSdk.options,
41793
+ compileSdk.id
41794
+ );
41519
41795
  const sdkFrameworks = import_node_path56.default.join(
41520
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).darwin,
41796
+ compileSdkPaths.darwin,
41521
41797
  "System/Library/Frameworks"
41522
41798
  );
41523
41799
  const generatedInterface = (source) => withoutImportedSdkEnumForwards(
@@ -41721,7 +41997,7 @@ ${compatShape}` : "";
41721
41997
  options2.toolchainBin,
41722
41998
  recipe2,
41723
41999
  new Map(
41724
- preparation.headerBuilds[0].producers.map((producer) => {
42000
+ preparation.headerBuilds.flatMap((stage2) => stage2.producers).map((producer) => {
41725
42001
  const paths = headerPaths(producer);
41726
42002
  return [
41727
42003
  swiftTargetModuleName(producer),
@@ -41815,7 +42091,7 @@ ${compatShape}` : "";
41815
42091
  moduleRoot: frameworkRoot,
41816
42092
  toolchainBin: options2.toolchainBin,
41817
42093
  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,
42094
+ sysroot: compileSdkPaths.sysroot,
41819
42095
  sdk: swiftModuleSdk(frameworkRoot),
41820
42096
  sdkImage,
41821
42097
  compilerDigest: compilerSourceDigest,
@@ -41845,9 +42121,7 @@ ${compatShape}` : "";
41845
42121
  project: options2.project && {
41846
42122
  ...options2.project,
41847
42123
  env: { ...options2.project.env, ...projectProcess?.env },
41848
- sdkRoot: import_node_path56.default.dirname(
41849
- swiftSdkPaths(frameworkRoot, options2.toolchainBin).sysroot
41850
- ),
42124
+ sdkRoot: import_node_path56.default.dirname(compileSdkPaths.sysroot),
41851
42125
  linked: output
41852
42126
  }
41853
42127
  });
@@ -42108,7 +42382,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
42108
42382
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
42109
42383
  MULTI_MANIFEST_VERSION = 76;
42110
42384
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
42111
- compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42385
+ compilerSourceDigest = true ? "404914a824c2f550a36612007732c8afa8459125cb02e28f12c34e2e6d8878d3" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42112
42386
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
42113
42387
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
42114
42388
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -81855,112 +82129,112 @@ var init_native_static_libraries = __esm({
81855
82129
  name: "skia",
81856
82130
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
81857
82131
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81858
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82132
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81859
82133
  archive: "libskia.a"
81860
82134
  },
81861
82135
  {
81862
82136
  name: "skia_svg",
81863
82137
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
81864
82138
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81865
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82139
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81866
82140
  archive: "libsvg.a"
81867
82141
  },
81868
82142
  {
81869
82143
  name: "skia_skshaper",
81870
82144
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
81871
82145
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81872
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82146
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81873
82147
  archive: "libskshaper.a"
81874
82148
  },
81875
82149
  {
81876
82150
  name: "skia_skparagraph",
81877
82151
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
81878
82152
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81879
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82153
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81880
82154
  archive: "libskparagraph.a"
81881
82155
  },
81882
82156
  {
81883
82157
  name: "skia_skunicode_core",
81884
82158
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
81885
82159
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81886
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82160
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81887
82161
  archive: "libskunicode_core.a"
81888
82162
  },
81889
82163
  {
81890
82164
  name: "skia_skunicode_libgrapheme",
81891
82165
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
81892
82166
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81893
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82167
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81894
82168
  archive: "libskunicode_libgrapheme.a"
81895
82169
  },
81896
82170
  {
81897
82171
  name: "skia_skottie",
81898
82172
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
81899
82173
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81900
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82174
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81901
82175
  archive: "libskottie.a"
81902
82176
  },
81903
82177
  {
81904
82178
  name: "skia_sksg",
81905
82179
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
81906
82180
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
81907
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82181
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81908
82182
  archive: "libsksg.a"
81909
82183
  },
81910
82184
  {
81911
82185
  name: "skia",
81912
82186
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
81913
82187
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81914
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82188
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81915
82189
  archive: "libskia.a"
81916
82190
  },
81917
82191
  {
81918
82192
  name: "skia_svg",
81919
82193
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
81920
82194
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81921
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82195
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81922
82196
  archive: "libsvg.a"
81923
82197
  },
81924
82198
  {
81925
82199
  name: "skia_skshaper",
81926
82200
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
81927
82201
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81928
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82202
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81929
82203
  archive: "libskshaper.a"
81930
82204
  },
81931
82205
  {
81932
82206
  name: "skia_skparagraph",
81933
82207
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
81934
82208
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81935
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82209
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81936
82210
  archive: "libskparagraph.a"
81937
82211
  },
81938
82212
  {
81939
82213
  name: "skia_skunicode_core",
81940
82214
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
81941
82215
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81942
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82216
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81943
82217
  archive: "libskunicode_core.a"
81944
82218
  },
81945
82219
  {
81946
82220
  name: "skia_skunicode_libgrapheme",
81947
82221
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
81948
82222
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81949
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82223
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81950
82224
  archive: "libskunicode_libgrapheme.a"
81951
82225
  },
81952
82226
  {
81953
82227
  name: "skia_skottie",
81954
82228
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
81955
82229
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81956
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82230
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81957
82231
  archive: "libskottie.a"
81958
82232
  },
81959
82233
  {
81960
82234
  name: "skia_sksg",
81961
82235
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
81962
82236
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
81963
- recipe: "750b243a4a3c19805509257370643b7442deb274d95266a5e20cd26b272d411c",
82237
+ recipe: "50fb5852ce4dba4e96679b78ea0f88a5f6741db10a7380b5257e17591049f0a5",
81964
82238
  archive: "libsksg.a"
81965
82239
  },
81966
82240
  {
@@ -88218,7 +88492,7 @@ var init_swift_standin_digest = __esm({
88218
88492
  ];
88219
88493
  RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
88220
88494
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
88221
- STANDIN_SOURCE_DIGEST = true ? "a17a387bf80ef3648c26193901ee6a7cb9abc691b99809c6a8bf9ad4617836af" : standinSourceDigest();
88495
+ STANDIN_SOURCE_DIGEST = true ? "46bd6373b813f44d3e812af83162f521ce032cba6bade9039bbb107120481dc5" : standinSourceDigest();
88222
88496
  }
88223
88497
  });
88224
88498
 
@@ -107058,7 +107332,7 @@ var init_nitro_superset = __esm({
107058
107332
  init_nitroContract();
107059
107333
  init_swift_standin_digest();
107060
107334
  NITRO_SUPERSET_ENTRY_NAME = "superset";
107061
- NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107335
+ NITRO_COMPILER_DIGEST = true ? "61b3b5dc20fe5b64808415a8f9ef336a84a5a1c498d9b6f9362e41c0b5a37f73" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107062
107336
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
107063
107337
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
107064
107338
  published = /* @__PURE__ */ new Map();
@@ -107762,7 +108036,7 @@ var init_expo_eager_seam_contract = __esm({
107762
108036
 
107763
108037
  // src/expo-native-compiler-digest.ts
107764
108038
  function expoNativeCompilerDigestValue() {
107765
- return true ? "867bb716444e6da99acd8ca9dd4860c523197b0261ea2c03eb0d3bf8c5f9d793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
108039
+ return true ? "3e260e6c7ef7597f483e25b974f3331143db4576ba153a8f6a7fa5912b7f12b4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
107766
108040
  }
107767
108041
  var import_node_crypto81;
107768
108042
  var init_expo_native_compiler_digest = __esm({