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,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
  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;
@@ -36019,7 +36019,7 @@ var init_swift_objc_sdk_tree = __esm({
36019
36019
 
36020
36020
  // src/swift-compiler-digest.ts
36021
36021
  function swiftArchiveCompilerDigestValue() {
36022
- return true ? "0793e59f1e3cdb2b823e46162b3112e01b180b07a4650b5e43a642bc3094d5ef" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36022
+ return true ? "e036567f599b9df239e4332b34b546043c5d1c41996348475482e91ed8b42366" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
36023
36023
  }
36024
36024
  var import_node_crypto11, import_node_fs27, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
36025
36025
  var init_swift_compiler_digest = __esm({
@@ -36170,7 +36170,7 @@ var init_swift_standin_digest = __esm({
36170
36170
 
36171
36171
  // src/expo-native-compiler-digest.ts
36172
36172
  function expoNativeCompilerDigestValue() {
36173
- return true ? "77bd2fbb160fc0dbe5d30a609cfd0c890697b189ef38b63db3c6003f98ae219e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36173
+ return true ? "5e0423a14cd4a805f390c706e22f3074ba5a6fccf294d23bf6702b83379bff79" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
36174
36174
  }
36175
36175
  var import_node_crypto13;
36176
36176
  var init_expo_native_compiler_digest = __esm({
@@ -80174,7 +80174,7 @@ function findTargetForFile(file, byDir, predicate) {
80174
80174
  }
80175
80175
  return void 0;
80176
80176
  }
80177
- function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
80177
+ function compiledSwiftSources(files2, targets, overlayFrameworks, headers) {
80178
80178
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
80179
80179
  const byDir = indexTargetsByDirectory(ordered);
80180
80180
  const excludeSets = /* @__PURE__ */ new Map();
@@ -80200,7 +80200,7 @@ function compiledSwiftSources(files2, targets, overlayFrameworks, headers, nativ
80200
80200
  const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
80201
80201
  return new Map(
80202
80202
  [...owners].map(([file, { source, owner }]) => {
80203
- if (nativeSourceGlue && import_node_path84.default.posix.basename(file) === "OneNativeSource.generated.swift")
80203
+ if (import_node_path84.default.posix.basename(file) === "OneNativeSource.generated.swift")
80204
80204
  return [file, source];
80205
80205
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
80206
80206
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
@@ -81725,8 +81725,7 @@ module ${moduleName2}.Swift {
81725
81725
  ([file]) => /\.(?:h|hh|hpp)$/.test(file)
81726
81726
  );
81727
81727
  return headerFiles3.filter(([file]) => file.startsWith(`${directory2}/`)).map(([, contents2]) => contents2);
81728
- },
81729
- input.oneModule
81728
+ }
81730
81729
  );
81731
81730
  const libraryEntryFiles = /* @__PURE__ */ new Map();
81732
81731
  for (const target of [...targets]) {
@@ -82979,9 +82978,10 @@ function removeCaseCollidingModuleArtifacts(modulesDir, keep) {
82979
82978
  (0, import_node_fs84.rmSync)(import_node_path84.default.join(modulesDir, name3), { recursive: true, force: true });
82980
82979
  }
82981
82980
  }
82982
- function readFrameworkProductsReceipt(scratch2, receiptKey) {
82981
+ function readFrameworkProductsReceipt(scratch2, receiptKey, planChangedAt = 0n) {
82983
82982
  const receiptFile2 = import_node_path84.default.join(scratch2, "products-ready", `${receiptKey}.json`);
82984
- if (!(0, import_node_fs84.existsSync)(receiptFile2)) return null;
82983
+ const receiptStat = (0, import_node_fs84.statSync)(receiptFile2, { bigint: true, throwIfNoEntry: false });
82984
+ if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
82985
82985
  let parsed2;
82986
82986
  try {
82987
82987
  parsed2 = v6.parse(
@@ -83105,117 +83105,136 @@ async function buildFrameworkProducts(scratch2, args, allowWrite) {
83105
83105
  const unoptimized = args.input.unoptimized === true;
83106
83106
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
83107
83107
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
83108
- const receiptKey = (0, import_node_crypto51.createHash)("sha256").update(
83108
+ const receiptKeyFor = (products) => (0, import_node_crypto51.createHash)("sha256").update(
83109
83109
  JSON.stringify([
83110
83110
  "framework-products/v2",
83111
83111
  args.frameworkKey,
83112
83112
  unoptimized,
83113
83113
  args.sdk,
83114
83114
  args.toolchainBin,
83115
- [...linkedTargets.products].sort(),
83115
+ [...products].sort(),
83116
83116
  darwinRecordsMinimum(),
83117
83117
  args.plugins,
83118
83118
  sdkOptions,
83119
83119
  selectorOptions
83120
83120
  ])
83121
83121
  ).digest("hex").slice(0, 32);
83122
+ const receiptKey = receiptKeyFor(linkedTargets.products);
83122
83123
  const ready = readFrameworkProductsReceipt(scratch2, receiptKey);
83123
83124
  if (ready) return ready;
83124
83125
  if (!allowWrite) return;
83125
83126
  const linkRoot = import_node_path84.default.join(scratch2, "link");
83126
- writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
83127
- const frameworkTmp = import_node_path84.default.join(scratch2, "peach-compiler-tmp");
83128
- (0, import_node_fs84.mkdirSync)(frameworkTmp, { recursive: true });
83129
- const jobs = swiftCompilerJobs();
83130
- const targetJobs = jobs >= 4 ? 2 : 1;
83131
- const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
83132
- const cache = unoptimized ? null : prepareFrameworkCompileCache(
83127
+ const manifest = import_node_path84.default.join(linkRoot, "Package.swift");
83128
+ const manifestStat = (0, import_node_fs84.statSync)(manifest, { bigint: true, throwIfNoEntry: false });
83129
+ const planStat = (0, import_node_fs84.statSync)(import_node_path84.default.join(scratch2, "release.yaml"), {
83130
+ bigint: true,
83131
+ throwIfNoEntry: false
83132
+ });
83133
+ const builtProducts = manifestStat && planStat ? [
83134
+ ...(0, import_node_fs84.readFileSync)(manifest, "utf8").matchAll(
83135
+ /^\s*\.product\(name: "([^"]+)", package:/gm
83136
+ )
83137
+ ].map((match) => match[1]) : [];
83138
+ const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
83133
83139
  scratch2,
83134
- args.moduleRoot,
83135
- args.toolchainBin,
83136
- sdkOptions,
83137
- linkedTargets.products
83138
- );
83139
- await runCompiler(
83140
- args.swift,
83141
- [
83142
- "build",
83143
- ...swiftPackageCacheOptions(),
83144
- "--build-system",
83145
- "native",
83146
- "-j",
83147
- String(targetJobs),
83148
- "--package-path",
83149
- linkRoot,
83150
- "--scratch-path",
83140
+ receiptKeyFor(builtProducts),
83141
+ manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
83142
+ );
83143
+ if (!reusePlan) {
83144
+ writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
83145
+ const frameworkTmp = import_node_path84.default.join(scratch2, "peach-compiler-tmp");
83146
+ (0, import_node_fs84.mkdirSync)(frameworkTmp, { recursive: true });
83147
+ const jobs = swiftCompilerJobs();
83148
+ const targetJobs = jobs >= 4 ? 2 : 1;
83149
+ const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
83150
+ const cache = unoptimized ? null : prepareFrameworkCompileCache(
83151
83151
  scratch2,
83152
- "--target",
83153
- FRAMEWORK_LINK_TARGET,
83154
- ...sdkOptions,
83155
- ...selectorOptions,
83156
- "--swift-sdk",
83157
- args.sdk,
83158
- "-c",
83159
- "release",
83160
- ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
83161
- "-Xswiftc",
83162
- unoptimized ? "-Onone" : "-Osize",
83163
- "-Xswiftc",
83164
- "-no-whole-module-optimization",
83165
- // optimized batches can move specialized definitions between object files.
83166
- ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
83167
- "-Xswiftc",
83168
- "-enable-batch-mode",
83169
- // each batch repeats the same framework diagnostics.
83170
- ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
83171
- "-Xswiftc",
83172
- "-j",
83173
- "-Xswiftc",
83174
- String(driverJobs),
83175
- // the release link strips all debug info, so none is generated.
83176
- "-Xswiftc",
83177
- "-gnone",
83178
- "-Xcc",
83179
- "-g0",
83180
- "-Xcxx",
83181
- "-g0",
83182
- "-Xswiftc",
83183
- "-num-threads",
83184
- "-Xswiftc",
83185
- "1",
83186
- ...swiftReproducibleBuildFlags([
83187
- [import_node_path84.default.dirname(args.toolchainBin), "toolchain"],
83188
- [args.moduleRoot, "framework"],
83189
- [scratch2, "framework-scratch"]
83190
- ]),
83191
- ...args.plugins.libraries.flatMap((plugin) => [
83152
+ args.moduleRoot,
83153
+ args.toolchainBin,
83154
+ sdkOptions,
83155
+ linkedTargets.products
83156
+ );
83157
+ await runCompiler(
83158
+ args.swift,
83159
+ [
83160
+ "build",
83161
+ ...swiftPackageCacheOptions(),
83162
+ "--build-system",
83163
+ "native",
83164
+ "-j",
83165
+ String(targetJobs),
83166
+ "--package-path",
83167
+ linkRoot,
83168
+ "--scratch-path",
83169
+ scratch2,
83170
+ "--target",
83171
+ FRAMEWORK_LINK_TARGET,
83172
+ ...sdkOptions,
83173
+ ...selectorOptions,
83174
+ "--swift-sdk",
83175
+ args.sdk,
83176
+ "-c",
83177
+ "release",
83178
+ ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
83192
83179
  "-Xswiftc",
83193
- "-load-plugin-library",
83180
+ unoptimized ? "-Onone" : "-Osize",
83194
83181
  "-Xswiftc",
83195
- plugin
83196
- ]),
83197
- ...args.plugins.executables.flatMap((plugin) => [
83182
+ "-no-whole-module-optimization",
83183
+ // optimized batches can move specialized definitions between object files.
83184
+ ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
83198
83185
  "-Xswiftc",
83199
- "-load-plugin-executable",
83186
+ "-enable-batch-mode",
83187
+ // each batch repeats the same framework diagnostics.
83188
+ ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
83200
83189
  "-Xswiftc",
83201
- `${plugin}#ExpoModulesMacros`
83202
- ])
83203
- ],
83204
- // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
83205
- // the framework build's warnings alone pass the default 1 MiB cap, which kills
83206
- // the build one step from the end.
83207
- {
83208
- ...args.buildOptions,
83209
- temporaryDirectory: frameworkTmp,
83210
- maxBuffer: 64 * 1024 * 1024
83211
- },
83212
- SWIFTPM_PROGRESS,
83213
- SWIFTPM_NOISE
83214
- ).catch((error) => {
83215
- throw new Error(outputOf(error), { cause: error });
83216
- }).finally(() => {
83217
- if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
83218
- });
83190
+ "-j",
83191
+ "-Xswiftc",
83192
+ String(driverJobs),
83193
+ // the release link strips all debug info, so none is generated.
83194
+ "-Xswiftc",
83195
+ "-gnone",
83196
+ "-Xcc",
83197
+ "-g0",
83198
+ "-Xcxx",
83199
+ "-g0",
83200
+ "-Xswiftc",
83201
+ "-num-threads",
83202
+ "-Xswiftc",
83203
+ "1",
83204
+ ...swiftReproducibleBuildFlags([
83205
+ [import_node_path84.default.dirname(args.toolchainBin), "toolchain"],
83206
+ [args.moduleRoot, "framework"],
83207
+ [scratch2, "framework-scratch"]
83208
+ ]),
83209
+ ...args.plugins.libraries.flatMap((plugin) => [
83210
+ "-Xswiftc",
83211
+ "-load-plugin-library",
83212
+ "-Xswiftc",
83213
+ plugin
83214
+ ]),
83215
+ ...args.plugins.executables.flatMap((plugin) => [
83216
+ "-Xswiftc",
83217
+ "-load-plugin-executable",
83218
+ "-Xswiftc",
83219
+ `${plugin}#ExpoModulesMacros`
83220
+ ])
83221
+ ],
83222
+ // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
83223
+ // the framework build's warnings alone pass the default 1 MiB cap, which kills
83224
+ // the build one step from the end.
83225
+ {
83226
+ ...args.buildOptions,
83227
+ temporaryDirectory: frameworkTmp,
83228
+ maxBuffer: 64 * 1024 * 1024
83229
+ },
83230
+ SWIFTPM_PROGRESS,
83231
+ SWIFTPM_NOISE
83232
+ ).catch((error) => {
83233
+ throw new Error(outputOf(error), { cause: error });
83234
+ }).finally(() => {
83235
+ if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
83236
+ });
83237
+ }
83219
83238
  const release = import_node_path84.default.join(scratch2, WASM_TRIPLE, "release");
83220
83239
  const linked = frameworkLinkClosure(scratch2, linkedTargets.targets);
83221
83240
  const objects = linked.objects;
@@ -84754,7 +84773,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
84754
84773
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
84755
84774
  MULTI_MANIFEST_VERSION = 76;
84756
84775
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
84757
- compilerSourceDigest = true ? "07651c3448f918d1873b3ecc1d3db59948c7cbfdd917cd5b69da610a327f857a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
84776
+ compilerSourceDigest = true ? "c83dc1b17f6e7fc01d5217313795b0276b66d9f33db641855c80c055d7d77edd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
84758
84777
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
84759
84778
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
84760
84779
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -154691,7 +154710,7 @@ var init_nitro_superset = __esm({
154691
154710
  init_nitroContract();
154692
154711
  init_swift_standin_digest();
154693
154712
  NITRO_SUPERSET_ENTRY_NAME = "superset";
154694
- NITRO_COMPILER_DIGEST = true ? "044328c5350ebb809f06385360a8f8ac2ddc79127894cab52bbe62745e02eda8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
154713
+ NITRO_COMPILER_DIGEST = true ? "880e684ade3a6398cfad03a94e2163815fcdc45e9f1be044e82a986570df5d2e" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
154695
154714
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
154696
154715
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
154697
154716
  published3 = /* @__PURE__ */ new Map();
@@ -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
  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;
@@ -25209,7 +25209,7 @@ function findTargetForFile(file, byDir, predicate) {
25209
25209
  }
25210
25210
  return void 0;
25211
25211
  }
25212
- function compiledSwiftSources(files, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
25212
+ function compiledSwiftSources(files, targets, overlayFrameworks, headers) {
25213
25213
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
25214
25214
  const byDir = indexTargetsByDirectory(ordered);
25215
25215
  const excludeSets = /* @__PURE__ */ new Map();
@@ -25235,7 +25235,7 @@ function compiledSwiftSources(files, targets, overlayFrameworks, headers, native
25235
25235
  const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
25236
25236
  return new Map(
25237
25237
  [...owners].map(([file, { source, owner }]) => {
25238
- if (nativeSourceGlue && import_node_path49.default.posix.basename(file) === "OneNativeSource.generated.swift")
25238
+ if (import_node_path49.default.posix.basename(file) === "OneNativeSource.generated.swift")
25239
25239
  return [file, source];
25240
25240
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
25241
25241
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
@@ -26819,8 +26819,7 @@ module ${moduleName}.Swift {
26819
26819
  ([file]) => /\.(?:h|hh|hpp)$/.test(file)
26820
26820
  );
26821
26821
  return headerFiles.filter(([file]) => file.startsWith(`${directory}/`)).map(([, contents2]) => contents2);
26822
- },
26823
- input.oneModule
26822
+ }
26824
26823
  );
26825
26824
  const libraryEntryFiles = /* @__PURE__ */ new Map();
26826
26825
  for (const target of [...targets]) {
@@ -28073,9 +28072,10 @@ function removeCaseCollidingModuleArtifacts(modulesDir, keep) {
28073
28072
  (0, import_node_fs47.rmSync)(import_node_path49.default.join(modulesDir, name3), { recursive: true, force: true });
28074
28073
  }
28075
28074
  }
28076
- function readFrameworkProductsReceipt(scratch2, receiptKey) {
28075
+ function readFrameworkProductsReceipt(scratch2, receiptKey, planChangedAt = 0n) {
28077
28076
  const receiptFile = import_node_path49.default.join(scratch2, "products-ready", `${receiptKey}.json`);
28078
- if (!(0, import_node_fs47.existsSync)(receiptFile)) return null;
28077
+ const receiptStat = (0, import_node_fs47.statSync)(receiptFile, { bigint: true, throwIfNoEntry: false });
28078
+ if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
28079
28079
  let parsed;
28080
28080
  try {
28081
28081
  parsed = v6.parse(
@@ -28199,117 +28199,136 @@ async function buildFrameworkProducts(scratch2, args, allowWrite) {
28199
28199
  const unoptimized = args.input.unoptimized === true;
28200
28200
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
28201
28201
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
28202
- const receiptKey = (0, import_node_crypto32.createHash)("sha256").update(
28202
+ const receiptKeyFor = (products) => (0, import_node_crypto32.createHash)("sha256").update(
28203
28203
  JSON.stringify([
28204
28204
  "framework-products/v2",
28205
28205
  args.frameworkKey,
28206
28206
  unoptimized,
28207
28207
  args.sdk,
28208
28208
  args.toolchainBin,
28209
- [...linkedTargets.products].sort(),
28209
+ [...products].sort(),
28210
28210
  darwinRecordsMinimum(),
28211
28211
  args.plugins,
28212
28212
  sdkOptions,
28213
28213
  selectorOptions
28214
28214
  ])
28215
28215
  ).digest("hex").slice(0, 32);
28216
+ const receiptKey = receiptKeyFor(linkedTargets.products);
28216
28217
  const ready = readFrameworkProductsReceipt(scratch2, receiptKey);
28217
28218
  if (ready) return ready;
28218
28219
  if (!allowWrite) return;
28219
28220
  const linkRoot = import_node_path49.default.join(scratch2, "link");
28220
- writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
28221
- const frameworkTmp = import_node_path49.default.join(scratch2, "peach-compiler-tmp");
28222
- (0, import_node_fs47.mkdirSync)(frameworkTmp, { recursive: true });
28223
- const jobs = swiftCompilerJobs();
28224
- const targetJobs = jobs >= 4 ? 2 : 1;
28225
- const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
28226
- const cache = unoptimized ? null : prepareFrameworkCompileCache(
28221
+ const manifest = import_node_path49.default.join(linkRoot, "Package.swift");
28222
+ const manifestStat = (0, import_node_fs47.statSync)(manifest, { bigint: true, throwIfNoEntry: false });
28223
+ const planStat = (0, import_node_fs47.statSync)(import_node_path49.default.join(scratch2, "release.yaml"), {
28224
+ bigint: true,
28225
+ throwIfNoEntry: false
28226
+ });
28227
+ const builtProducts = manifestStat && planStat ? [
28228
+ ...(0, import_node_fs47.readFileSync)(manifest, "utf8").matchAll(
28229
+ /^\s*\.product\(name: "([^"]+)", package:/gm
28230
+ )
28231
+ ].map((match) => match[1]) : [];
28232
+ const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
28227
28233
  scratch2,
28228
- args.moduleRoot,
28229
- args.toolchainBin,
28230
- sdkOptions,
28231
- linkedTargets.products
28234
+ receiptKeyFor(builtProducts),
28235
+ manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
28232
28236
  );
28233
- await runCompiler(
28234
- args.swift,
28235
- [
28236
- "build",
28237
- ...swiftPackageCacheOptions(),
28238
- "--build-system",
28239
- "native",
28240
- "-j",
28241
- String(targetJobs),
28242
- "--package-path",
28243
- linkRoot,
28244
- "--scratch-path",
28237
+ if (!reusePlan) {
28238
+ writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
28239
+ const frameworkTmp = import_node_path49.default.join(scratch2, "peach-compiler-tmp");
28240
+ (0, import_node_fs47.mkdirSync)(frameworkTmp, { recursive: true });
28241
+ const jobs = swiftCompilerJobs();
28242
+ const targetJobs = jobs >= 4 ? 2 : 1;
28243
+ const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
28244
+ const cache = unoptimized ? null : prepareFrameworkCompileCache(
28245
28245
  scratch2,
28246
- "--target",
28247
- FRAMEWORK_LINK_TARGET,
28248
- ...sdkOptions,
28249
- ...selectorOptions,
28250
- "--swift-sdk",
28251
- args.sdk,
28252
- "-c",
28253
- "release",
28254
- ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
28255
- "-Xswiftc",
28256
- unoptimized ? "-Onone" : "-Osize",
28257
- "-Xswiftc",
28258
- "-no-whole-module-optimization",
28259
- // optimized batches can move specialized definitions between object files.
28260
- ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
28261
- "-Xswiftc",
28262
- "-enable-batch-mode",
28263
- // each batch repeats the same framework diagnostics.
28264
- ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
28265
- "-Xswiftc",
28266
- "-j",
28267
- "-Xswiftc",
28268
- String(driverJobs),
28269
- // the release link strips all debug info, so none is generated.
28270
- "-Xswiftc",
28271
- "-gnone",
28272
- "-Xcc",
28273
- "-g0",
28274
- "-Xcxx",
28275
- "-g0",
28276
- "-Xswiftc",
28277
- "-num-threads",
28278
- "-Xswiftc",
28279
- "1",
28280
- ...swiftReproducibleBuildFlags([
28281
- [import_node_path49.default.dirname(args.toolchainBin), "toolchain"],
28282
- [args.moduleRoot, "framework"],
28283
- [scratch2, "framework-scratch"]
28284
- ]),
28285
- ...args.plugins.libraries.flatMap((plugin) => [
28246
+ args.moduleRoot,
28247
+ args.toolchainBin,
28248
+ sdkOptions,
28249
+ linkedTargets.products
28250
+ );
28251
+ await runCompiler(
28252
+ args.swift,
28253
+ [
28254
+ "build",
28255
+ ...swiftPackageCacheOptions(),
28256
+ "--build-system",
28257
+ "native",
28258
+ "-j",
28259
+ String(targetJobs),
28260
+ "--package-path",
28261
+ linkRoot,
28262
+ "--scratch-path",
28263
+ scratch2,
28264
+ "--target",
28265
+ FRAMEWORK_LINK_TARGET,
28266
+ ...sdkOptions,
28267
+ ...selectorOptions,
28268
+ "--swift-sdk",
28269
+ args.sdk,
28270
+ "-c",
28271
+ "release",
28272
+ ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
28286
28273
  "-Xswiftc",
28287
- "-load-plugin-library",
28274
+ unoptimized ? "-Onone" : "-Osize",
28288
28275
  "-Xswiftc",
28289
- plugin
28290
- ]),
28291
- ...args.plugins.executables.flatMap((plugin) => [
28276
+ "-no-whole-module-optimization",
28277
+ // optimized batches can move specialized definitions between object files.
28278
+ ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
28292
28279
  "-Xswiftc",
28293
- "-load-plugin-executable",
28280
+ "-enable-batch-mode",
28281
+ // each batch repeats the same framework diagnostics.
28282
+ ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
28294
28283
  "-Xswiftc",
28295
- `${plugin}#ExpoModulesMacros`
28296
- ])
28297
- ],
28298
- // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
28299
- // the framework build's warnings alone pass the default 1 MiB cap, which kills
28300
- // the build one step from the end.
28301
- {
28302
- ...args.buildOptions,
28303
- temporaryDirectory: frameworkTmp,
28304
- maxBuffer: 64 * 1024 * 1024
28305
- },
28306
- SWIFTPM_PROGRESS,
28307
- SWIFTPM_NOISE
28308
- ).catch((error) => {
28309
- throw new Error(outputOf(error), { cause: error });
28310
- }).finally(() => {
28311
- if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
28312
- });
28284
+ "-j",
28285
+ "-Xswiftc",
28286
+ String(driverJobs),
28287
+ // the release link strips all debug info, so none is generated.
28288
+ "-Xswiftc",
28289
+ "-gnone",
28290
+ "-Xcc",
28291
+ "-g0",
28292
+ "-Xcxx",
28293
+ "-g0",
28294
+ "-Xswiftc",
28295
+ "-num-threads",
28296
+ "-Xswiftc",
28297
+ "1",
28298
+ ...swiftReproducibleBuildFlags([
28299
+ [import_node_path49.default.dirname(args.toolchainBin), "toolchain"],
28300
+ [args.moduleRoot, "framework"],
28301
+ [scratch2, "framework-scratch"]
28302
+ ]),
28303
+ ...args.plugins.libraries.flatMap((plugin) => [
28304
+ "-Xswiftc",
28305
+ "-load-plugin-library",
28306
+ "-Xswiftc",
28307
+ plugin
28308
+ ]),
28309
+ ...args.plugins.executables.flatMap((plugin) => [
28310
+ "-Xswiftc",
28311
+ "-load-plugin-executable",
28312
+ "-Xswiftc",
28313
+ `${plugin}#ExpoModulesMacros`
28314
+ ])
28315
+ ],
28316
+ // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
28317
+ // the framework build's warnings alone pass the default 1 MiB cap, which kills
28318
+ // the build one step from the end.
28319
+ {
28320
+ ...args.buildOptions,
28321
+ temporaryDirectory: frameworkTmp,
28322
+ maxBuffer: 64 * 1024 * 1024
28323
+ },
28324
+ SWIFTPM_PROGRESS,
28325
+ SWIFTPM_NOISE
28326
+ ).catch((error) => {
28327
+ throw new Error(outputOf(error), { cause: error });
28328
+ }).finally(() => {
28329
+ if (cache) reportFrameworkCompileCacheStats(scratch2, cache.statsFile);
28330
+ });
28331
+ }
28313
28332
  const release = import_node_path49.default.join(scratch2, WASM_TRIPLE, "release");
28314
28333
  const linked = frameworkLinkClosure(scratch2, linkedTargets.targets);
28315
28334
  const objects = linked.objects;
@@ -29847,7 +29866,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
29847
29866
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
29848
29867
  MULTI_MANIFEST_VERSION = 76;
29849
29868
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
29850
- compilerSourceDigest = true ? "07651c3448f918d1873b3ecc1d3db59948c7cbfdd917cd5b69da610a327f857a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
29869
+ compilerSourceDigest = true ? "c83dc1b17f6e7fc01d5217313795b0276b66d9f33db641855c80c055d7d77edd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
29851
29870
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
29852
29871
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
29853
29872
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -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
  MULTI_MANIFEST_VERSION,
4
4
  WASM_TRIPLE,
@@ -40,8 +40,8 @@ import {
40
40
  withNativeSourceGlue,
41
41
  wrapUIApplicationMainEntry,
42
42
  writeSwiftProject
43
- } from "./esm-chunks/chunk-2SC45KUK.mjs";
44
- import "./esm-chunks/chunk-OXFGIZC4.mjs";
43
+ } from "./esm-chunks/chunk-23OQSLRP.mjs";
44
+ import "./esm-chunks/chunk-BNJ5YG7V.mjs";
45
45
  import {
46
46
  FOUNDATION_IMPLICIT_MODULES,
47
47
  REACH_STAGED_FRAMEWORKS,
@@ -66,15 +66,15 @@ import {
66
66
  swiftSdkPaths,
67
67
  withFrameworkCompanionImports,
68
68
  withoutSwiftDeclarations
69
- } from "./esm-chunks/chunk-Y4Q3W36I.mjs";
70
- import "./esm-chunks/chunk-VWRLBFID.mjs";
71
- import "./esm-chunks/chunk-IVVVYJKG.mjs";
72
- import "./esm-chunks/chunk-U262IRGM.mjs";
73
- import "./esm-chunks/chunk-VH5KY2GM.mjs";
74
- import "./esm-chunks/chunk-CFPPESX7.mjs";
75
- import "./esm-chunks/chunk-MHRTZ6I7.mjs";
76
- import "./esm-chunks/chunk-RC3JQV7D.mjs";
77
- import "./esm-chunks/chunk-6QTRZNLH.mjs";
69
+ } from "./esm-chunks/chunk-GIZQHA6L.mjs";
70
+ import "./esm-chunks/chunk-VJKLZAU2.mjs";
71
+ import "./esm-chunks/chunk-WKGJ6LAU.mjs";
72
+ import "./esm-chunks/chunk-OEQBNK6V.mjs";
73
+ import "./esm-chunks/chunk-BQUYNIMY.mjs";
74
+ import "./esm-chunks/chunk-JHOZWSFF.mjs";
75
+ import "./esm-chunks/chunk-V3SRJIBE.mjs";
76
+ import "./esm-chunks/chunk-2HP5FPCA.mjs";
77
+ import "./esm-chunks/chunk-LVCSLWR2.mjs";
78
78
  export {
79
79
  FOUNDATION_IMPLICIT_MODULES,
80
80
  MULTI_MANIFEST_VERSION,
@@ -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
  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;