peachsim 0.1.2742 → 0.1.2744

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 (126) 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 +137 -119
  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-I6YLE7RH.mjs → acorn-3G2P6SLD.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-YQSNOLNM.mjs → chunk-2XVKKP7C.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-RC3JQV7D.mjs → chunk-3N3NWKOV.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-GMFZTGVJ.mjs → chunk-3R76QB7G.mjs} +6 -6
  30. package/dist-lib/esm-chunks/{chunk-OXFGIZC4.mjs → chunk-4BSH2PJJ.mjs} +2 -2
  31. package/dist-lib/esm-chunks/{chunk-VWRLBFID.mjs → chunk-4J7M5ABU.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-QDTQYGJB.mjs → chunk-4SL6WT5R.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-CFPPESX7.mjs → chunk-5EMHE44C.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-4CNYVYQW.mjs → chunk-6HF6522F.mjs} +4 -4
  35. package/dist-lib/esm-chunks/{chunk-MHRTZ6I7.mjs → chunk-7PZCYBRZ.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-FKC5RBXR.mjs → chunk-CWTZZ5PW.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-Y4Q3W36I.mjs → chunk-EP64ATYX.mjs} +6 -6
  38. package/dist-lib/esm-chunks/{chunk-PLXC42XF.mjs → chunk-ESGH55PU.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-NWGCI4JC.mjs → chunk-FZCF4XKV.mjs} +3 -3
  40. package/dist-lib/esm-chunks/{chunk-VH5KY2GM.mjs → chunk-MHWKZ233.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-IVVVYJKG.mjs → chunk-MK5GDI4J.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-6LMI5DE3.mjs → chunk-NA3WRJON.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-MXADGMSE.mjs → chunk-OYGAP4IB.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-U262IRGM.mjs → chunk-Q3AUIPF2.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-2SC45KUK.mjs → chunk-QNMAUXAH.mjs} +145 -127
  46. package/dist-lib/esm-chunks/{chunk-G44GUBAL.mjs → chunk-SI55AJTD.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-HJBL2ND3.mjs → chunk-U6INDDV4.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-GPVGYC45.mjs → chunk-V6QXWGYS.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-ZRA35GYC.mjs → chunk-XRGF7PWG.mjs} +5 -5
  50. package/dist-lib/esm-chunks/{chunk-6QTRZNLH.mjs → chunk-YPT6XQJX.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-QGTUKU6T.mjs → metro-layout-parser-IISMSHQ6.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-M2IXDM7B.mjs → swift-package-prebuilt-VA4DWCFB.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-4KYBNEBW.mjs → swift-sdk-app-module-3UUKIQI6.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-Z37PPINV.mjs → swift-sdk-image-XJURAHAQ.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-7KFCU6Y6.mjs → swift-sdk-image-producer-HF3NTKWX.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +137 -119
  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 +160 -143
  61. package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
  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 +160 -143
  95. package/dist-lib/swift-compile.cjs +133 -115
  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/engine/native-font-dataContract.d.ts +1 -0
  123. package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +17 -1
  124. package/package.json +1 -1
  125. package/src/one-direct-host-source.ts +23 -24
  126. package/src/swift-compile.ts +171 -152
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -13,21 +13,21 @@ import {
13
13
  swiftSdkImageFile,
14
14
  swiftSdkImageKey,
15
15
  swiftSdkImageProducts
16
- } from "./chunk-GMFZTGVJ.mjs";
17
- import "./chunk-2SC45KUK.mjs";
18
- import "./chunk-OXFGIZC4.mjs";
19
- import "./chunk-ZRA35GYC.mjs";
20
- import "./chunk-PLXC42XF.mjs";
21
- import "./chunk-FKC5RBXR.mjs";
22
- import "./chunk-Y4Q3W36I.mjs";
23
- import "./chunk-VWRLBFID.mjs";
24
- import "./chunk-IVVVYJKG.mjs";
25
- import "./chunk-U262IRGM.mjs";
26
- import "./chunk-VH5KY2GM.mjs";
27
- import "./chunk-CFPPESX7.mjs";
28
- import "./chunk-MHRTZ6I7.mjs";
29
- import "./chunk-RC3JQV7D.mjs";
30
- import "./chunk-6QTRZNLH.mjs";
16
+ } from "./chunk-3R76QB7G.mjs";
17
+ import "./chunk-QNMAUXAH.mjs";
18
+ import "./chunk-4BSH2PJJ.mjs";
19
+ import "./chunk-XRGF7PWG.mjs";
20
+ import "./chunk-ESGH55PU.mjs";
21
+ import "./chunk-CWTZZ5PW.mjs";
22
+ import "./chunk-EP64ATYX.mjs";
23
+ import "./chunk-4J7M5ABU.mjs";
24
+ import "./chunk-MK5GDI4J.mjs";
25
+ import "./chunk-Q3AUIPF2.mjs";
26
+ import "./chunk-MHWKZ233.mjs";
27
+ import "./chunk-5EMHE44C.mjs";
28
+ import "./chunk-7PZCYBRZ.mjs";
29
+ import "./chunk-3N3NWKOV.mjs";
30
+ import "./chunk-YPT6XQJX.mjs";
31
31
  export {
32
32
  SWIFT_SDK_APP_MEMORY_BASE,
33
33
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -1,15 +1,15 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  withSwiftRootLock
4
- } from "./chunk-OXFGIZC4.mjs";
4
+ } from "./chunk-4BSH2PJJ.mjs";
5
5
  import {
6
6
  swiftCacheDir,
7
7
  windowAdmission
8
- } from "./chunk-VWRLBFID.mjs";
8
+ } from "./chunk-4J7M5ABU.mjs";
9
9
  import {
10
10
  isRecord
11
- } from "./chunk-RC3JQV7D.mjs";
12
- import "./chunk-6QTRZNLH.mjs";
11
+ } from "./chunk-3N3NWKOV.mjs";
12
+ import "./chunk-YPT6XQJX.mjs";
13
13
 
14
14
  // src/swift-sdk-image-producer.ts
15
15
  import { execFile, execFileSync } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (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;
@@ -19556,7 +19556,7 @@ var init_react_native_core_digest = __esm({
19556
19556
 
19557
19557
  // src/swift-compiler-digest.ts
19558
19558
  function swiftArchiveCompilerDigestValue() {
19559
- return true ? "0793e59f1e3cdb2b823e46162b3112e01b180b07a4650b5e43a642bc3094d5ef" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
19559
+ return true ? "ef102649bb803fa4a669fab0435e2270e6dc7dc45669a03a377d6951f7daa35f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
19560
19560
  }
19561
19561
  var import_node_crypto16, import_node_fs32, import_node_path31, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
19562
19562
  var init_swift_compiler_digest = __esm({
@@ -19707,7 +19707,7 @@ var init_swift_standin_digest = __esm({
19707
19707
 
19708
19708
  // src/expo-native-compiler-digest.ts
19709
19709
  function expoNativeCompilerDigestValue() {
19710
- return true ? "77bd2fbb160fc0dbe5d30a609cfd0c890697b189ef38b63db3c6003f98ae219e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
19710
+ return true ? "32128bd460028ed060190bfde6d7773aef3938f8c132b90073f8f8fb3daabe41" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
19711
19711
  }
19712
19712
  var import_node_crypto18;
19713
19713
  var init_expo_native_compiler_digest = __esm({
@@ -45602,7 +45602,7 @@ function findTargetForFile(file, byDir, predicate) {
45602
45602
  }
45603
45603
  return void 0;
45604
45604
  }
45605
- function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
45605
+ function compiledSwiftSources(files2, targets, overlayFrameworks, headers) {
45606
45606
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
45607
45607
  const byDir = indexTargetsByDirectory(ordered);
45608
45608
  const excludeSets = /* @__PURE__ */ new Map();
@@ -45628,7 +45628,7 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
45628
45628
  const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
45629
45629
  return new Map(
45630
45630
  [...owners].map(([file, { source, owner }]) => {
45631
- if (nativeSourceGlue && import_node_path70.default.posix.basename(file) === "OneNativeSource.generated.swift")
45631
+ if (import_node_path70.default.posix.basename(file) === "OneNativeSource.generated.swift")
45632
45632
  return [file, source];
45633
45633
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
45634
45634
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
@@ -47153,8 +47153,7 @@ module ${moduleName}.Swift {
47153
47153
  ([file]) => /\.(?:h|hh|hpp)$/.test(file)
47154
47154
  );
47155
47155
  return headerFiles3.filter(([file]) => file.startsWith(`${directory2}/`)).map(([, contents2]) => contents2);
47156
- },
47157
- input.oneModule
47156
+ }
47158
47157
  );
47159
47158
  const libraryEntryFiles = /* @__PURE__ */ new Map();
47160
47159
  for (const target of [...targets]) {
@@ -48407,9 +48406,10 @@ function removeCaseCollidingModuleArtifacts(modulesDir, keep) {
48407
48406
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(modulesDir, name3), { recursive: true, force: true });
48408
48407
  }
48409
48408
  }
48410
- function readFrameworkProductsReceipt(scratch2, receiptKey) {
48409
+ function readFrameworkProductsReceipt(scratch2, receiptKey, planChangedAt = 0n) {
48411
48410
  const receiptFile2 = import_node_path70.default.join(scratch2, "products-ready", `${receiptKey}.json`);
48412
- if (!(0, import_node_fs70.existsSync)(receiptFile2)) return null;
48411
+ const receiptStat = (0, import_node_fs70.statSync)(receiptFile2, { bigint: true, throwIfNoEntry: false });
48412
+ if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
48413
48413
  let parsed2;
48414
48414
  try {
48415
48415
  parsed2 = v6.parse(
@@ -48533,117 +48533,136 @@ async function buildFrameworkProducts(scratch2, args, allowWrite) {
48533
48533
  const unoptimized = args.input.unoptimized === true;
48534
48534
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
48535
48535
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
48536
- const receiptKey = (0, import_node_crypto45.createHash)("sha256").update(
48536
+ const receiptKeyFor = (products) => (0, import_node_crypto45.createHash)("sha256").update(
48537
48537
  JSON.stringify([
48538
48538
  "framework-products/v2",
48539
48539
  args.frameworkKey,
48540
48540
  unoptimized,
48541
48541
  args.sdk,
48542
48542
  args.toolchainBin,
48543
- [...linkedTargets.products].sort(),
48543
+ [...products].sort(),
48544
48544
  darwinRecordsMinimum(),
48545
48545
  args.plugins,
48546
48546
  sdkOptions,
48547
48547
  selectorOptions
48548
48548
  ])
48549
48549
  ).digest("hex").slice(0, 32);
48550
+ const receiptKey = receiptKeyFor(linkedTargets.products);
48550
48551
  const ready = readFrameworkProductsReceipt(scratch2, receiptKey);
48551
48552
  if (ready) return ready;
48552
48553
  if (!allowWrite) return;
48553
48554
  const linkRoot = import_node_path70.default.join(scratch2, "link");
48554
- writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
48555
- const frameworkTmp = import_node_path70.default.join(scratch2, "peach-compiler-tmp");
48556
- (0, import_node_fs70.mkdirSync)(frameworkTmp, { recursive: true });
48557
- const jobs = swiftCompilerJobs();
48558
- const targetJobs = jobs >= 4 ? 2 : 1;
48559
- const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
48560
- const cache = unoptimized ? null : prepareFrameworkCompileCache(
48555
+ const manifest = import_node_path70.default.join(linkRoot, "Package.swift");
48556
+ const manifestStat = (0, import_node_fs70.statSync)(manifest, { bigint: true, throwIfNoEntry: false });
48557
+ const planStat = (0, import_node_fs70.statSync)(import_node_path70.default.join(scratch2, "release.yaml"), {
48558
+ bigint: true,
48559
+ throwIfNoEntry: false
48560
+ });
48561
+ const builtProducts = manifestStat && planStat ? [
48562
+ ...(0, import_node_fs70.readFileSync)(manifest, "utf8").matchAll(
48563
+ /^\s*\.product\(name: "([^"]+)", package:/gm
48564
+ )
48565
+ ].map((match) => match[1]) : [];
48566
+ const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
48561
48567
  scratch2,
48562
- args.moduleRoot,
48563
- args.toolchainBin,
48564
- sdkOptions,
48565
- linkedTargets.products
48566
- );
48567
- await runCompiler(
48568
- args.swift,
48569
- [
48570
- "build",
48571
- ...swiftPackageCacheOptions(),
48572
- "--build-system",
48573
- "native",
48574
- "-j",
48575
- String(targetJobs),
48576
- "--package-path",
48577
- linkRoot,
48578
- "--scratch-path",
48568
+ receiptKeyFor(builtProducts),
48569
+ manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
48570
+ );
48571
+ if (!reusePlan) {
48572
+ writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
48573
+ const frameworkTmp = import_node_path70.default.join(scratch2, "peach-compiler-tmp");
48574
+ (0, import_node_fs70.mkdirSync)(frameworkTmp, { recursive: true });
48575
+ const jobs = swiftCompilerJobs();
48576
+ const targetJobs = jobs >= 4 ? 2 : 1;
48577
+ const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
48578
+ const cache = unoptimized ? null : prepareFrameworkCompileCache(
48579
48579
  scratch2,
48580
- "--target",
48581
- FRAMEWORK_LINK_TARGET,
48582
- ...sdkOptions,
48583
- ...selectorOptions,
48584
- "--swift-sdk",
48585
- args.sdk,
48586
- "-c",
48587
- "release",
48588
- ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
48589
- "-Xswiftc",
48590
- unoptimized ? "-Onone" : "-Osize",
48591
- "-Xswiftc",
48592
- "-no-whole-module-optimization",
48593
- // optimized batches can move specialized definitions between object files.
48594
- ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
48595
- "-Xswiftc",
48596
- "-enable-batch-mode",
48597
- // each batch repeats the same framework diagnostics.
48598
- ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
48599
- "-Xswiftc",
48600
- "-j",
48601
- "-Xswiftc",
48602
- String(driverJobs),
48603
- // the release link strips all debug info, so none is generated.
48604
- "-Xswiftc",
48605
- "-gnone",
48606
- "-Xcc",
48607
- "-g0",
48608
- "-Xcxx",
48609
- "-g0",
48610
- "-Xswiftc",
48611
- "-num-threads",
48612
- "-Xswiftc",
48613
- "1",
48614
- ...swiftReproducibleBuildFlags([
48615
- [import_node_path70.default.dirname(args.toolchainBin), "toolchain"],
48616
- [args.moduleRoot, "framework"],
48617
- [scratch2, "framework-scratch"]
48618
- ]),
48619
- ...args.plugins.libraries.flatMap((plugin) => [
48580
+ args.moduleRoot,
48581
+ args.toolchainBin,
48582
+ sdkOptions,
48583
+ linkedTargets.products
48584
+ );
48585
+ await runCompiler(
48586
+ args.swift,
48587
+ [
48588
+ "build",
48589
+ ...swiftPackageCacheOptions(),
48590
+ "--build-system",
48591
+ "native",
48592
+ "-j",
48593
+ String(targetJobs),
48594
+ "--package-path",
48595
+ linkRoot,
48596
+ "--scratch-path",
48597
+ scratch2,
48598
+ "--target",
48599
+ FRAMEWORK_LINK_TARGET,
48600
+ ...sdkOptions,
48601
+ ...selectorOptions,
48602
+ "--swift-sdk",
48603
+ args.sdk,
48604
+ "-c",
48605
+ "release",
48606
+ ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
48620
48607
  "-Xswiftc",
48621
- "-load-plugin-library",
48608
+ unoptimized ? "-Onone" : "-Osize",
48622
48609
  "-Xswiftc",
48623
- plugin
48624
- ]),
48625
- ...args.plugins.executables.flatMap((plugin) => [
48610
+ "-no-whole-module-optimization",
48611
+ // optimized batches can move specialized definitions between object files.
48612
+ ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
48626
48613
  "-Xswiftc",
48627
- "-load-plugin-executable",
48614
+ "-enable-batch-mode",
48615
+ // each batch repeats the same framework diagnostics.
48616
+ ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
48628
48617
  "-Xswiftc",
48629
- `${plugin}#ExpoModulesMacros`
48630
- ])
48631
- ],
48632
- // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
48633
- // the framework build's warnings alone pass the default 1 MiB cap, which kills
48634
- // the build one step from the end.
48635
- {
48636
- ...args.buildOptions,
48637
- temporaryDirectory: frameworkTmp,
48638
- maxBuffer: 64 * 1024 * 1024
48639
- },
48640
- SWIFTPM_PROGRESS,
48641
- SWIFTPM_NOISE
48642
- ).catch((error) => {
48643
- throw new Error(outputOf(error), { cause: error });
48644
- }).finally(() => {
48645
- if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
48646
- });
48618
+ "-j",
48619
+ "-Xswiftc",
48620
+ String(driverJobs),
48621
+ // the release link strips all debug info, so none is generated.
48622
+ "-Xswiftc",
48623
+ "-gnone",
48624
+ "-Xcc",
48625
+ "-g0",
48626
+ "-Xcxx",
48627
+ "-g0",
48628
+ "-Xswiftc",
48629
+ "-num-threads",
48630
+ "-Xswiftc",
48631
+ "1",
48632
+ ...swiftReproducibleBuildFlags([
48633
+ [import_node_path70.default.dirname(args.toolchainBin), "toolchain"],
48634
+ [args.moduleRoot, "framework"],
48635
+ [scratch2, "framework-scratch"]
48636
+ ]),
48637
+ ...args.plugins.libraries.flatMap((plugin) => [
48638
+ "-Xswiftc",
48639
+ "-load-plugin-library",
48640
+ "-Xswiftc",
48641
+ plugin
48642
+ ]),
48643
+ ...args.plugins.executables.flatMap((plugin) => [
48644
+ "-Xswiftc",
48645
+ "-load-plugin-executable",
48646
+ "-Xswiftc",
48647
+ `${plugin}#ExpoModulesMacros`
48648
+ ])
48649
+ ],
48650
+ // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
48651
+ // the framework build's warnings alone pass the default 1 MiB cap, which kills
48652
+ // the build one step from the end.
48653
+ {
48654
+ ...args.buildOptions,
48655
+ temporaryDirectory: frameworkTmp,
48656
+ maxBuffer: 64 * 1024 * 1024
48657
+ },
48658
+ SWIFTPM_PROGRESS,
48659
+ SWIFTPM_NOISE
48660
+ ).catch((error) => {
48661
+ throw new Error(outputOf(error), { cause: error });
48662
+ }).finally(() => {
48663
+ if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
48664
+ });
48665
+ }
48647
48666
  const release = import_node_path70.default.join(scratch2, WASM_TRIPLE, "release");
48648
48667
  const linked = frameworkLinkClosure(scratch2, linkedTargets.targets);
48649
48668
  const objects = linked.objects;
@@ -48800,17 +48819,7 @@ function swiftFrameworkSlotKey(slot) {
48800
48819
  function swiftFrameworkSlotRelease(slot) {
48801
48820
  return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_RELEASE);
48802
48821
  }
48803
- function swiftFrameworkSlotHasReceipt(slot) {
48804
- try {
48805
- return (0, import_node_fs70.readdirSync)(import_node_path70.default.join(slot, "products-ready")).some(
48806
- (entry) => entry.endsWith(".json")
48807
- );
48808
- } catch (error) {
48809
- if (vanished(error)) return false;
48810
- throw error;
48811
- }
48812
- }
48813
- async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal, work, unoptimized = false) {
48822
+ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal, work, unoptimized, linkOnly) {
48814
48823
  const slotCount = swiftFrameworkSlotCount(unoptimized);
48815
48824
  const slotsDir = swiftFrameworksDir(unoptimized);
48816
48825
  const slots = Array.from({ length: slotCount }, (_, index) => {
@@ -48827,8 +48836,12 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
48827
48836
  throw error;
48828
48837
  }
48829
48838
  };
48830
- const isRecentForeignReceipt = (slot, now) => !own2(slot) && swiftFrameworkSlotHasReceipt(slot) && now - slotMtimeMs(slot) < SWIFT_FRAMEWORK_HOT_RECEIPT_MS;
48831
- const trySlot = (slot, mode, logSelection, allowHotForeign = true) => {
48839
+ const handoffFile = (slot) => import_node_path70.default.join(slot, SWIFT_FRAMEWORK_SLOT_HANDOFF);
48840
+ const hasPendingForeignHandoff = (slot, now) => {
48841
+ const stamp = (0, import_node_fs70.statSync)(handoffFile(slot), { throwIfNoEntry: false });
48842
+ return stamp !== void 0 && !own2(slot) && now - stamp.mtimeMs < SWIFT_FRAMEWORK_HANDOFF_MS;
48843
+ };
48844
+ const trySlot = (slot, mode, logSelection, allowPendingHandoff = true) => {
48832
48845
  return withSwiftRootLock(
48833
48846
  slot,
48834
48847
  async (lease) => {
@@ -48836,7 +48849,7 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
48836
48849
  if (mode !== "restage" && !matches) return;
48837
48850
  const allowWrite = mode !== "reuse";
48838
48851
  if (allowWrite && await hasLiveSwiftRootReaders(slot, signal)) return;
48839
- if (mode === "restage" && !matches && !allowHotForeign && isRecentForeignReceipt(slot, Date.now()))
48852
+ if (mode === "restage" && !matches && !allowPendingHandoff && hasPendingForeignHandoff(slot, Date.now()))
48840
48853
  return;
48841
48854
  if (!matches) logSelection?.();
48842
48855
  if (mode === "extend")
@@ -48850,6 +48863,8 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
48850
48863
  `[swift-framework-cache] ${import_node_path70.default.basename(slot)} hit=products release=${release}`
48851
48864
  );
48852
48865
  const now = /* @__PURE__ */ new Date();
48866
+ if (linkOnly) (0, import_node_fs70.writeFileSync)(handoffFile(slot), "");
48867
+ else (0, import_node_fs70.rmSync)(handoffFile(slot), { force: true });
48853
48868
  (0, import_node_fs70.utimesSync)(slot, now, now);
48854
48869
  return { value };
48855
48870
  },
@@ -48903,8 +48918,8 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
48903
48918
  return { slot, index, tier: 3, changes: Infinity, own: false, mtimeMs };
48904
48919
  const changes = changedInputsFor(slot, slotKey);
48905
48920
  const isOwn = own2(slot);
48906
- const hotForeign = !isOwn && swiftFrameworkSlotHasReceipt(slot) && now - mtimeMs < SWIFT_FRAMEWORK_HOT_RECEIPT_MS;
48907
- return { slot, index, tier: hotForeign ? 2 : 0, changes, own: isOwn, mtimeMs };
48921
+ const tier = hasPendingForeignHandoff(slot, now) ? 2 : 0;
48922
+ return { slot, index, tier, changes, own: isOwn, mtimeMs };
48908
48923
  }).sort((left, right) => {
48909
48924
  if (left.tier !== right.tier) return left.tier - right.tier;
48910
48925
  if (left.tier === 0)
@@ -49030,6 +49045,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
49030
49045
  if (hadKey !== frameworkKey) {
49031
49046
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, SWIFT_FRAMEWORK_SLOT_KEY), { force: true });
49032
49047
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, SWIFT_FRAMEWORK_SLOT_RELEASE), { force: true });
49048
+ (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, SWIFT_FRAMEWORK_SLOT_HANDOFF), { force: true });
49033
49049
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, "products-ready"), { recursive: true, force: true });
49034
49050
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, "products-lib"), { recursive: true, force: true });
49035
49051
  (0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, "lib"), { recursive: true, force: true });
@@ -49381,7 +49397,8 @@ ${compatShape}` : "";
49381
49397
  moduleRoot,
49382
49398
  budget.signal,
49383
49399
  prepareFrameworks,
49384
- unoptimized
49400
+ unoptimized,
49401
+ options2.linkOnly === true
49385
49402
  );
49386
49403
  if (!frameworks)
49387
49404
  throw new Error("Swift distribution did not provide its frameworks");
@@ -49948,7 +49965,7 @@ ${compatShape}` : "";
49948
49965
  options2.signal
49949
49966
  );
49950
49967
  }
49951
- var import_node_child_process41, import_node_crypto45, import_node_fs70, import_node_os17, import_node_path70, import_promises8, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE, SWIFT_FRAMEWORK_HOT_RECEIPT_MS;
49968
+ var import_node_child_process41, import_node_crypto45, import_node_fs70, import_node_os17, import_node_path70, import_promises8, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_FRAMEWORK_SLOT_HANDOFF, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE, SWIFT_FRAMEWORK_HANDOFF_MS;
49952
49969
  var init_swift_compile = __esm({
49953
49970
  "src/swift-compile.ts"() {
49954
49971
  "use strict";
@@ -50182,7 +50199,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
50182
50199
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
50183
50200
  MULTI_MANIFEST_VERSION = 76;
50184
50201
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
50185
- compilerSourceDigest = true ? "07651c3448f918d1873b3ecc1d3db59948c7cbfdd917cd5b69da610a327f857a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
50202
+ compilerSourceDigest = true ? "9e43b96f22759d18028120bf151aaa3545b4a68d9cb280a87e81051893e9eb50" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
50186
50203
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
50187
50204
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
50188
50205
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -50288,9 +50305,10 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
50288
50305
  SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
50289
50306
  SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
50290
50307
  SWIFT_FRAMEWORK_SLOT_RELEASE = ".peach-framework-release";
50308
+ SWIFT_FRAMEWORK_SLOT_HANDOFF = ".peach-framework-handoff";
50291
50309
  SWIFT_BUILD_ROOT_SLOTS = 4;
50292
50310
  SWIFT_BUILD_ROOT_SHAPE = ".peach-build-shape";
50293
- SWIFT_FRAMEWORK_HOT_RECEIPT_MS = 15 * 60 * 1e3;
50311
+ SWIFT_FRAMEWORK_HANDOFF_MS = 15 * 60 * 1e3;
50294
50312
  }
50295
50313
  });
50296
50314
 
@@ -105564,7 +105582,7 @@ var init_nitro_superset = __esm({
105564
105582
  init_nitroContract();
105565
105583
  init_swift_standin_digest();
105566
105584
  NITRO_SUPERSET_ENTRY_NAME = "superset";
105567
- NITRO_COMPILER_DIGEST = true ? "044328c5350ebb809f06385360a8f8ac2ddc79127894cab52bbe62745e02eda8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
105585
+ NITRO_COMPILER_DIGEST = true ? "bbe658f7e2c352f47d2e139b1ee4adb8b1944071676dd2de1401c6f637eaf9f6" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
105568
105586
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
105569
105587
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
105570
105588
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,19 +1,19 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftResourcePath
4
- } from "./esm-chunks/chunk-IVVVYJKG.mjs";
4
+ } from "./esm-chunks/chunk-MK5GDI4J.mjs";
5
5
  import {
6
6
  isNativeAppIdentity
7
- } from "./esm-chunks/chunk-4CNYVYQW.mjs";
8
- import "./esm-chunks/chunk-VH5KY2GM.mjs";
7
+ } from "./esm-chunks/chunk-6HF6522F.mjs";
8
+ import "./esm-chunks/chunk-MHWKZ233.mjs";
9
9
  import {
10
10
  insertBundleGlobalFooter,
11
11
  readBundleGlobalFooter
12
- } from "./esm-chunks/chunk-HJBL2ND3.mjs";
12
+ } from "./esm-chunks/chunk-U6INDDV4.mjs";
13
13
  import {
14
14
  isRecord
15
- } from "./esm-chunks/chunk-RC3JQV7D.mjs";
16
- import "./esm-chunks/chunk-6QTRZNLH.mjs";
15
+ } from "./esm-chunks/chunk-3N3NWKOV.mjs";
16
+ import "./esm-chunks/chunk-YPT6XQJX.mjs";
17
17
 
18
18
  // src/expoSwiftContract.ts
19
19
  function strings(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2744 | (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;