peachsim 0.1.2742 → 0.1.2743

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 (125) 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 +119 -100
  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-4LW63VJO.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-2SC45KUK.mjs → chunk-23OQSLRP.mjs} +128 -109
  28. package/dist-lib/esm-chunks/{chunk-RC3JQV7D.mjs → chunk-2HP5FPCA.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-GMFZTGVJ.mjs → chunk-6FHNPTCA.mjs} +6 -6
  30. package/dist-lib/esm-chunks/{chunk-4CNYVYQW.mjs → chunk-7NBU6OXB.mjs} +4 -4
  31. package/dist-lib/esm-chunks/{chunk-ZRA35GYC.mjs → chunk-B3F4HKM6.mjs} +5 -5
  32. package/dist-lib/esm-chunks/{chunk-FKC5RBXR.mjs → chunk-BJSA6VP6.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-OXFGIZC4.mjs → chunk-BNJ5YG7V.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-VH5KY2GM.mjs → chunk-BQUYNIMY.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-G44GUBAL.mjs → chunk-BW3KZJV5.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-YQSNOLNM.mjs → chunk-EAAYQS4L.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-HJBL2ND3.mjs → chunk-EES2SLJK.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-Y4Q3W36I.mjs → chunk-GIZQHA6L.mjs} +6 -6
  39. package/dist-lib/esm-chunks/{chunk-QDTQYGJB.mjs → chunk-HOUFNDEV.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-CFPPESX7.mjs → chunk-JHOZWSFF.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-6QTRZNLH.mjs → chunk-LVCSLWR2.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-U262IRGM.mjs → chunk-OEQBNK6V.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-NWGCI4JC.mjs → chunk-SG7MN2KW.mjs} +3 -3
  44. package/dist-lib/esm-chunks/{chunk-PLXC42XF.mjs → chunk-THJMTM3L.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-6LMI5DE3.mjs → chunk-THSR72MV.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-MHRTZ6I7.mjs → chunk-V3SRJIBE.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-VWRLBFID.mjs → chunk-VJKLZAU2.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-IVVVYJKG.mjs → chunk-WKGJ6LAU.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-MXADGMSE.mjs → chunk-XP5F6PNN.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-GPVGYC45.mjs → chunk-ZLQX4SVV.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-QGTUKU6T.mjs → metro-layout-parser-L57PU3TD.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-M2IXDM7B.mjs → swift-package-prebuilt-UNXWJN7B.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-4KYBNEBW.mjs → swift-sdk-app-module-DZV3XYCP.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-Z37PPINV.mjs → swift-sdk-image-WRYMP64Z.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-7KFCU6Y6.mjs → swift-sdk-image-producer-D6DOCCCR.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +119 -100
  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 +119 -100
  61. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  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 +119 -100
  95. package/dist-lib/swift-compile.cjs +115 -96
  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/swift-compile.ts +145 -120
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  acquireSwiftRootReadHold,
4
4
  hasLiveSwiftRootReaders,
5
5
  retainSwiftRootReadHold,
6
6
  withSwiftRootLock
7
- } from "./chunk-OXFGIZC4.mjs";
7
+ } from "./chunk-BNJ5YG7V.mjs";
8
8
  import {
9
9
  CORE_FOUNDATION_OVERLAY_GLOBALS,
10
10
  NATIVE_GRAPH_SDK_VERSION,
@@ -55,7 +55,7 @@ import {
55
55
  withoutImportedSdkEnumForwards,
56
56
  withoutSwiftDeclarations,
57
57
  writeBuildFile
58
- } from "./chunk-Y4Q3W36I.mjs";
58
+ } from "./chunk-GIZQHA6L.mjs";
59
59
  import {
60
60
  SWIFT_AUTOLINK_LINKER,
61
61
  SWIFT_CACHE_HOLD_MARKER,
@@ -72,7 +72,7 @@ import {
72
72
  wasmThreadLinkFlags,
73
73
  windowAdmission,
74
74
  writeSwiftAutolinkLinker
75
- } from "./chunk-VWRLBFID.mjs";
75
+ } from "./chunk-VJKLZAU2.mjs";
76
76
  import {
77
77
  SWIFT_BINARY_TREES_DIR,
78
78
  SWIFT_NATIVE_INPUT_ROOT,
@@ -87,7 +87,7 @@ import {
87
87
  isSwiftResourcePath,
88
88
  isSwiftSourceLinkGraph,
89
89
  swiftProjectFilesProblems
90
- } from "./chunk-IVVVYJKG.mjs";
90
+ } from "./chunk-WKGJ6LAU.mjs";
91
91
  import {
92
92
  OBJC_RESOURCE_ACCESSOR_BODY,
93
93
  OBJC_RESOURCE_ACCESSOR_HEADER,
@@ -110,16 +110,16 @@ import {
110
110
  swiftPackagePartition,
111
111
  swiftTargetModuleName,
112
112
  withoutGlogModuleMap
113
- } from "./chunk-U262IRGM.mjs";
113
+ } from "./chunk-OEQBNK6V.mjs";
114
114
  import {
115
115
  rnxPublicBrand
116
- } from "./chunk-CFPPESX7.mjs";
116
+ } from "./chunk-JHOZWSFF.mjs";
117
117
  import {
118
118
  isRecord
119
- } from "./chunk-RC3JQV7D.mjs";
119
+ } from "./chunk-2HP5FPCA.mjs";
120
120
  import {
121
121
  __publicField
122
- } from "./chunk-6QTRZNLH.mjs";
122
+ } from "./chunk-LVCSLWR2.mjs";
123
123
 
124
124
  // src/swift-compile.ts
125
125
  import {
@@ -14469,7 +14469,7 @@ async function compileGuestLink(options) {
14469
14469
  };
14470
14470
  const sdk = options.sdkImage;
14471
14471
  const sdkCallers = sdk.sdkInterface.guestCallers;
14472
- const sdkObjects = (await import("./swift-sdk-image-Z37PPINV.mjs")).readSwiftSdkManifestIndex(
14472
+ const sdkObjects = (await import("./swift-sdk-image-WRYMP64Z.mjs")).readSwiftSdkManifestIndex(
14473
14473
  sdk
14474
14474
  ).guestObjects;
14475
14475
  if (!sdkCallers || !sdkObjects)
@@ -14769,7 +14769,7 @@ async function compileGuestLink(options) {
14769
14769
  swiftAppModuleThunkSection,
14770
14770
  swiftSdkProjectionSpans,
14771
14771
  writeSwiftSdkAppLink
14772
- } = await import("./swift-sdk-app-module-4KYBNEBW.mjs");
14772
+ } = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
14773
14773
  const project = options.project;
14774
14774
  const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
14775
14775
  if (project) chownSync(work, project.uid, project.gid);
@@ -16742,7 +16742,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
16742
16742
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16743
16743
  var MULTI_MANIFEST_VERSION = 76;
16744
16744
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16745
- var compilerSourceDigest = true ? "07651c3448f918d1873b3ecc1d3db59948c7cbfdd917cd5b69da610a327f857a" : swiftCompilerSourceDigest(import.meta.dirname);
16745
+ var compilerSourceDigest = true ? "c83dc1b17f6e7fc01d5217313795b0276b66d9f33db641855c80c055d7d77edd" : swiftCompilerSourceDigest(import.meta.dirname);
16746
16746
  function swiftArtifactHash(input, release, moduleRoot) {
16747
16747
  return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
16748
16748
  }
@@ -17534,7 +17534,7 @@ function findTargetForFile(file, byDir, predicate) {
17534
17534
  }
17535
17535
  return void 0;
17536
17536
  }
17537
- function compiledSwiftSources(files, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
17537
+ function compiledSwiftSources(files, targets, overlayFrameworks, headers) {
17538
17538
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
17539
17539
  const byDir = indexTargetsByDirectory(ordered);
17540
17540
  const excludeSets = /* @__PURE__ */ new Map();
@@ -17560,7 +17560,7 @@ function compiledSwiftSources(files, targets, overlayFrameworks, headers, native
17560
17560
  const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
17561
17561
  return new Map(
17562
17562
  [...owners].map(([file, { source, owner }]) => {
17563
- if (nativeSourceGlue && path23.posix.basename(file) === "OneNativeSource.generated.swift")
17563
+ if (path23.posix.basename(file) === "OneNativeSource.generated.swift")
17564
17564
  return [file, source];
17565
17565
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
17566
17566
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
@@ -19202,8 +19202,7 @@ module ${moduleName}.Swift {
19202
19202
  ([file]) => /\.(?:h|hh|hpp)$/.test(file)
19203
19203
  ));
19204
19204
  return headerFiles.filter(([file]) => file.startsWith(`${directory}/`)).map(([, contents]) => contents);
19205
- },
19206
- input.oneModule
19205
+ }
19207
19206
  );
19208
19207
  const libraryEntryFiles = /* @__PURE__ */ new Map();
19209
19208
  for (const target of [...targets]) {
@@ -20476,9 +20475,10 @@ var frameworkProductsReceiptSchema = object({
20476
20475
  objcHeaders: array(tuple([string(), string()])),
20477
20476
  archived: array(tuple([string(), string()]))
20478
20477
  });
20479
- function readFrameworkProductsReceipt(scratch, receiptKey) {
20478
+ function readFrameworkProductsReceipt(scratch, receiptKey, planChangedAt = 0n) {
20480
20479
  const receiptFile = path23.join(scratch, "products-ready", `${receiptKey}.json`);
20481
- if (!existsSync9(receiptFile)) return null;
20480
+ const receiptStat = statSync4(receiptFile, { bigint: true, throwIfNoEntry: false });
20481
+ if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
20482
20482
  let parsed;
20483
20483
  try {
20484
20484
  parsed = parse(
@@ -20602,117 +20602,136 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
20602
20602
  const unoptimized = args.input.unoptimized === true;
20603
20603
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
20604
20604
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
20605
- const receiptKey = createHash16("sha256").update(
20605
+ const receiptKeyFor = (products) => createHash16("sha256").update(
20606
20606
  JSON.stringify([
20607
20607
  "framework-products/v2",
20608
20608
  args.frameworkKey,
20609
20609
  unoptimized,
20610
20610
  args.sdk,
20611
20611
  args.toolchainBin,
20612
- [...linkedTargets.products].sort(),
20612
+ [...products].sort(),
20613
20613
  darwinRecordsMinimum(),
20614
20614
  args.plugins,
20615
20615
  sdkOptions,
20616
20616
  selectorOptions
20617
20617
  ])
20618
20618
  ).digest("hex").slice(0, 32);
20619
+ const receiptKey = receiptKeyFor(linkedTargets.products);
20619
20620
  const ready = readFrameworkProductsReceipt(scratch, receiptKey);
20620
20621
  if (ready) return ready;
20621
20622
  if (!allowWrite) return;
20622
20623
  const linkRoot = path23.join(scratch, "link");
20623
- writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
20624
- const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
20625
- mkdirSync7(frameworkTmp, { recursive: true });
20626
- const jobs = swiftCompilerJobs();
20627
- const targetJobs = jobs >= 4 ? 2 : 1;
20628
- const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
20629
- const cache = unoptimized ? null : prepareFrameworkCompileCache(
20624
+ const manifest = path23.join(linkRoot, "Package.swift");
20625
+ const manifestStat = statSync4(manifest, { bigint: true, throwIfNoEntry: false });
20626
+ const planStat = statSync4(path23.join(scratch, "release.yaml"), {
20627
+ bigint: true,
20628
+ throwIfNoEntry: false
20629
+ });
20630
+ const builtProducts = manifestStat && planStat ? [
20631
+ ...readFileSync13(manifest, "utf8").matchAll(
20632
+ /^\s*\.product\(name: "([^"]+)", package:/gm
20633
+ )
20634
+ ].map((match) => match[1]) : [];
20635
+ const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
20630
20636
  scratch,
20631
- args.moduleRoot,
20632
- args.toolchainBin,
20633
- sdkOptions,
20634
- linkedTargets.products
20637
+ receiptKeyFor(builtProducts),
20638
+ manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
20635
20639
  );
20636
- await runCompiler(
20637
- args.swift,
20638
- [
20639
- "build",
20640
- ...swiftPackageCacheOptions(),
20641
- "--build-system",
20642
- "native",
20643
- "-j",
20644
- String(targetJobs),
20645
- "--package-path",
20646
- linkRoot,
20647
- "--scratch-path",
20640
+ if (!reusePlan) {
20641
+ writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
20642
+ const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
20643
+ mkdirSync7(frameworkTmp, { recursive: true });
20644
+ const jobs = swiftCompilerJobs();
20645
+ const targetJobs = jobs >= 4 ? 2 : 1;
20646
+ const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
20647
+ const cache = unoptimized ? null : prepareFrameworkCompileCache(
20648
20648
  scratch,
20649
- "--target",
20650
- FRAMEWORK_LINK_TARGET,
20651
- ...sdkOptions,
20652
- ...selectorOptions,
20653
- "--swift-sdk",
20654
- args.sdk,
20655
- "-c",
20656
- "release",
20657
- ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
20658
- "-Xswiftc",
20659
- unoptimized ? "-Onone" : "-Osize",
20660
- "-Xswiftc",
20661
- "-no-whole-module-optimization",
20662
- // optimized batches can move specialized definitions between object files.
20663
- ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
20664
- "-Xswiftc",
20665
- "-enable-batch-mode",
20666
- // each batch repeats the same framework diagnostics.
20667
- ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
20668
- "-Xswiftc",
20669
- "-j",
20670
- "-Xswiftc",
20671
- String(driverJobs),
20672
- // the release link strips all debug info, so none is generated.
20673
- "-Xswiftc",
20674
- "-gnone",
20675
- "-Xcc",
20676
- "-g0",
20677
- "-Xcxx",
20678
- "-g0",
20679
- "-Xswiftc",
20680
- "-num-threads",
20681
- "-Xswiftc",
20682
- "1",
20683
- ...swiftReproducibleBuildFlags([
20684
- [path23.dirname(args.toolchainBin), "toolchain"],
20685
- [args.moduleRoot, "framework"],
20686
- [scratch, "framework-scratch"]
20687
- ]),
20688
- ...args.plugins.libraries.flatMap((plugin) => [
20649
+ args.moduleRoot,
20650
+ args.toolchainBin,
20651
+ sdkOptions,
20652
+ linkedTargets.products
20653
+ );
20654
+ await runCompiler(
20655
+ args.swift,
20656
+ [
20657
+ "build",
20658
+ ...swiftPackageCacheOptions(),
20659
+ "--build-system",
20660
+ "native",
20661
+ "-j",
20662
+ String(targetJobs),
20663
+ "--package-path",
20664
+ linkRoot,
20665
+ "--scratch-path",
20666
+ scratch,
20667
+ "--target",
20668
+ FRAMEWORK_LINK_TARGET,
20669
+ ...sdkOptions,
20670
+ ...selectorOptions,
20671
+ "--swift-sdk",
20672
+ args.sdk,
20673
+ "-c",
20674
+ "release",
20675
+ ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
20689
20676
  "-Xswiftc",
20690
- "-load-plugin-library",
20677
+ unoptimized ? "-Onone" : "-Osize",
20691
20678
  "-Xswiftc",
20692
- plugin
20693
- ]),
20694
- ...args.plugins.executables.flatMap((plugin) => [
20679
+ "-no-whole-module-optimization",
20680
+ // optimized batches can move specialized definitions between object files.
20681
+ ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
20695
20682
  "-Xswiftc",
20696
- "-load-plugin-executable",
20683
+ "-enable-batch-mode",
20684
+ // each batch repeats the same framework diagnostics.
20685
+ ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
20697
20686
  "-Xswiftc",
20698
- `${plugin}#ExpoModulesMacros`
20699
- ])
20700
- ],
20701
- // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
20702
- // the framework build's warnings alone pass the default 1 MiB cap, which kills
20703
- // the build one step from the end.
20704
- {
20705
- ...args.buildOptions,
20706
- temporaryDirectory: frameworkTmp,
20707
- maxBuffer: 64 * 1024 * 1024
20708
- },
20709
- SWIFTPM_PROGRESS,
20710
- SWIFTPM_NOISE
20711
- ).catch((error) => {
20712
- throw new Error(outputOf(error), { cause: error });
20713
- }).finally(() => {
20714
- if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
20715
- });
20687
+ "-j",
20688
+ "-Xswiftc",
20689
+ String(driverJobs),
20690
+ // the release link strips all debug info, so none is generated.
20691
+ "-Xswiftc",
20692
+ "-gnone",
20693
+ "-Xcc",
20694
+ "-g0",
20695
+ "-Xcxx",
20696
+ "-g0",
20697
+ "-Xswiftc",
20698
+ "-num-threads",
20699
+ "-Xswiftc",
20700
+ "1",
20701
+ ...swiftReproducibleBuildFlags([
20702
+ [path23.dirname(args.toolchainBin), "toolchain"],
20703
+ [args.moduleRoot, "framework"],
20704
+ [scratch, "framework-scratch"]
20705
+ ]),
20706
+ ...args.plugins.libraries.flatMap((plugin) => [
20707
+ "-Xswiftc",
20708
+ "-load-plugin-library",
20709
+ "-Xswiftc",
20710
+ plugin
20711
+ ]),
20712
+ ...args.plugins.executables.flatMap((plugin) => [
20713
+ "-Xswiftc",
20714
+ "-load-plugin-executable",
20715
+ "-Xswiftc",
20716
+ `${plugin}#ExpoModulesMacros`
20717
+ ])
20718
+ ],
20719
+ // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
20720
+ // the framework build's warnings alone pass the default 1 MiB cap, which kills
20721
+ // the build one step from the end.
20722
+ {
20723
+ ...args.buildOptions,
20724
+ temporaryDirectory: frameworkTmp,
20725
+ maxBuffer: 64 * 1024 * 1024
20726
+ },
20727
+ SWIFTPM_PROGRESS,
20728
+ SWIFTPM_NOISE
20729
+ ).catch((error) => {
20730
+ throw new Error(outputOf(error), { cause: error });
20731
+ }).finally(() => {
20732
+ if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
20733
+ });
20734
+ }
20716
20735
  const release = path23.join(scratch, WASM_TRIPLE, "release");
20717
20736
  const linked = frameworkLinkClosure(scratch, linkedTargets.targets);
20718
20737
  const objects = linked.objects;
@@ -21256,7 +21275,7 @@ async function compileSwiftProjectOnce(sources, options) {
21256
21275
  const distribution = swiftDistributionAt(moduleRoot);
21257
21276
  const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
21258
21277
  if (distribution) refreshSwiftCacheHold(moduleRoot);
21259
- const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-M2IXDM7B.mjs")).useSwiftPackagePrebuilts(
21278
+ const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-UNXWJN7B.mjs")).useSwiftPackagePrebuilts(
21260
21279
  sources,
21261
21280
  moduleRoot,
21262
21281
  options.toolchainBin
@@ -21269,7 +21288,7 @@ async function compileSwiftProjectOnce(sources, options) {
21269
21288
  sources: path23.join(root, "Sources", "App"),
21270
21289
  multi: compileTargets(input).length > 0
21271
21290
  };
21272
- const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-Z37PPINV.mjs")).buildSwiftSdkImage(
21291
+ const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-WRYMP64Z.mjs")).buildSwiftSdkImage(
21273
21292
  moduleRoot,
21274
21293
  !!guestGraph,
21275
21294
  distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
@@ -21988,7 +22007,7 @@ ${compatShape}` : "";
21988
22007
  });
21989
22008
  sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
21990
22009
  } else {
21991
- const { buildSwiftAppModule } = await import("./swift-sdk-app-module-4KYBNEBW.mjs");
22010
+ const { buildSwiftAppModule } = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
21992
22011
  const binding = await buildSwiftAppModule({
21993
22012
  buildRoot: root2,
21994
22013
  toolchainBin: options.toolchainBin,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  DARWIN_RECORDS_PREFIX,
4
4
  KEEP_WASM_NAMES,
@@ -31,22 +31,22 @@ import {
31
31
  swiftSdkImageScope,
32
32
  unslottedFunctions,
33
33
  wasmSections
34
- } from "./chunk-2SC45KUK.mjs";
34
+ } from "./chunk-23OQSLRP.mjs";
35
35
  import {
36
36
  withSwiftRootLock,
37
37
  withSwiftRootReadHolds
38
- } from "./chunk-OXFGIZC4.mjs";
38
+ } from "./chunk-BNJ5YG7V.mjs";
39
39
  import {
40
40
  swiftDistributionAt,
41
41
  swiftModuleDigest,
42
42
  swiftModuleToolchain,
43
43
  swiftSdkPaths
44
- } from "./chunk-Y4Q3W36I.mjs";
44
+ } from "./chunk-GIZQHA6L.mjs";
45
45
  import {
46
46
  SWIFT_WASM_TRIPLE,
47
47
  sourceSwiftCheckout,
48
48
  swiftCacheDir
49
- } from "./chunk-VWRLBFID.mjs";
49
+ } from "./chunk-VJKLZAU2.mjs";
50
50
 
51
51
  // src/swift-sdk-image.ts
52
52
  import { execFile } from "node:child_process";
@@ -225,7 +225,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
225
225
  const existing = cached(directory, key);
226
226
  if (existing) return existing;
227
227
  if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
228
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-7KFCU6Y6.mjs");
228
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-D6DOCCCR.mjs");
229
229
  await produceSwiftSdkImage({
230
230
  moduleRoot,
231
231
  key,
@@ -1,13 +1,13 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftImageVariants
4
- } from "./chunk-VH5KY2GM.mjs";
4
+ } from "./chunk-BQUYNIMY.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./chunk-HJBL2ND3.mjs";
7
+ } from "./chunk-EES2SLJK.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./chunk-RC3JQV7D.mjs";
10
+ } from "./chunk-2HP5FPCA.mjs";
11
11
 
12
12
  // src/android-string-value.ts
13
13
  function compileAndroidStringValue(text, where) {
@@ -1,21 +1,21 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  LAUNCH_METADATA_KEYS,
4
4
  LAUNCH_METADATA_KEYS_PATH
5
- } from "./chunk-PLXC42XF.mjs";
5
+ } from "./chunk-THJMTM3L.mjs";
6
6
  import {
7
7
  cacheDir,
8
8
  parseSwiftDistributionLock,
9
9
  readActiveRuntime,
10
10
  runtimeDir
11
- } from "./chunk-Y4Q3W36I.mjs";
11
+ } from "./chunk-GIZQHA6L.mjs";
12
12
  import {
13
13
  SWIFT_WASM_TRIPLE,
14
14
  registerSwiftHostCompiler
15
- } from "./chunk-VWRLBFID.mjs";
15
+ } from "./chunk-VJKLZAU2.mjs";
16
16
  import {
17
17
  isRecord
18
- } from "./chunk-RC3JQV7D.mjs";
18
+ } from "./chunk-2HP5FPCA.mjs";
19
19
 
20
20
  // src/swift-distribution.ts
21
21
  import { execFile as execFile2 } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/swiftDiscoveryContract.ts
4
4
  var SWIFT_PACKAGE_PATH = "/__peach/swift-package/";
@@ -1,9 +1,9 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  killOrphanedProcessGroup,
4
4
  readProcessTable,
5
5
  terminateProcessGroup
6
- } from "./chunk-VWRLBFID.mjs";
6
+ } from "./chunk-VJKLZAU2.mjs";
7
7
 
8
8
  // src/swift-root-lock.ts
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/assetCatalogContract.ts
4
4
  function isSwiftImageVariants(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var AGENT_IDENTITY_MAX_CHARS = 200;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/sleep.ts
4
4
  function sleep(ms) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_CACHE_HOLD_MARKER,
4
4
  SWIFT_WASM_TRIPLE,
@@ -12,19 +12,19 @@ import {
12
12
  terminateProcessGroup,
13
13
  wasmThreadFlags,
14
14
  windowAdmission
15
- } from "./chunk-VWRLBFID.mjs";
15
+ } from "./chunk-VJKLZAU2.mjs";
16
16
  import {
17
17
  isSwiftResourcePath
18
- } from "./chunk-IVVVYJKG.mjs";
18
+ } from "./chunk-WKGJ6LAU.mjs";
19
19
  import {
20
20
  swiftManifestDeclarations
21
- } from "./chunk-U262IRGM.mjs";
21
+ } from "./chunk-OEQBNK6V.mjs";
22
22
  import {
23
23
  isRecord
24
- } from "./chunk-RC3JQV7D.mjs";
24
+ } from "./chunk-2HP5FPCA.mjs";
25
25
  import {
26
26
  __publicField
27
- } from "./chunk-6QTRZNLH.mjs";
27
+ } from "./chunk-LVCSLWR2.mjs";
28
28
 
29
29
  // src/write-build-file.ts
30
30
  import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SIM_LONG_PRESS_MAX_MS
4
- } from "./chunk-GPVGYC45.mjs";
4
+ } from "./chunk-ZLQX4SVV.mjs";
5
5
  import {
6
6
  isRecord
7
- } from "./chunk-RC3JQV7D.mjs";
7
+ } from "./chunk-2HP5FPCA.mjs";
8
8
 
9
9
  // ../peach-globals/src/globalsContract.ts
10
10
  var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/launchMetadataContract.ts
4
4
  var LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../../node_modules/acorn/dist/acorn.mjs
4
4
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swiftTargetContract.ts
4
4
  var SWIFT_WASM_TRIPLE = "wasm64-unknown-wasip1-threads";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swiftContract.ts
4
4
  function isSwiftSourceLinkGraph(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  var NAMED_ENTITIES = {