peachsim 0.1.1813 → 0.1.1815

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 (136) hide show
  1. package/README.md +2 -1
  2. package/cli/cloud-client.ts +5 -4
  3. package/cli/cloud-session.ts +14 -1
  4. package/cli/commands/compat.ts +12 -2
  5. package/cli/commands/control.ts +10 -2
  6. package/cli/commands/flow.ts +10 -5
  7. package/cli/commands/inspect/env.ts +3 -2
  8. package/cli/commands/inspect/wait-selector.ts +30 -9
  9. package/cli/commands/inspect.ts +43 -385
  10. package/cli/commands/package.ts +6 -1
  11. package/cli/commands/runtime.ts +2 -2
  12. package/cli/outbound-endpoints.ts +1 -1
  13. package/dist-lib/agent-daemon-client.cjs +1 -1
  14. package/dist-lib/agent-events.cjs +1 -1
  15. package/dist-lib/attached-projects.cjs +1 -1
  16. package/dist-lib/auth/shared-session.cjs +1 -1
  17. package/dist-lib/backend-origin.cjs +1 -1
  18. package/dist-lib/beta.cjs +1 -1
  19. package/dist-lib/beta.mjs +1 -1
  20. package/dist-lib/bridge-constants.cjs +1 -1
  21. package/dist-lib/bridge-contract-input.cjs +1 -1
  22. package/dist-lib/bridge-contract-input.mjs +1 -1
  23. package/dist-lib/bridge-contract.cjs +1 -1
  24. package/dist-lib/bridge-contract.mjs +1 -1
  25. package/dist-lib/bundle-channel.cjs +769 -512
  26. package/dist-lib/capture-contract.cjs +1 -1
  27. package/dist-lib/capture-contract.mjs +1 -1
  28. package/dist-lib/cloud-contract.cjs +1 -1
  29. package/dist-lib/cloud-contract.mjs +1 -1
  30. package/dist-lib/cloud-test-args.cjs +1 -1
  31. package/dist-lib/cloud-test-args.mjs +1 -1
  32. package/dist-lib/cloud.cjs +1 -1
  33. package/dist-lib/cloud.mjs +1 -1
  34. package/dist-lib/config.cjs +1 -1
  35. package/dist-lib/config.mjs +1 -1
  36. package/dist-lib/detox/index.cjs +89 -14
  37. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  38. package/dist-lib/expo-swift-bundle.cjs +125 -57
  39. package/dist-lib/expo-swift-metadata.cjs +1 -17
  40. package/dist-lib/expo-swift-metadata.mjs +1 -16
  41. package/dist-lib/home-paths.cjs +1 -1
  42. package/dist-lib/host/bridge-host.cjs +2490 -2290
  43. package/dist-lib/host/fetch-proxy-handler.cjs +14 -14
  44. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  45. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  46. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  47. package/dist-lib/host/websocket-proxy.cjs +1 -1
  48. package/dist-lib/index.cjs +19 -21
  49. package/dist-lib/jump-to-source-babel.cjs +1 -1
  50. package/dist-lib/jump-to-source-native.cjs +1 -1
  51. package/dist-lib/kotlin-host.cjs +1 -1
  52. package/dist-lib/menu.cjs +1 -1
  53. package/dist-lib/menu.mjs +1 -1
  54. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  55. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  56. package/dist-lib/metro-production-bundle.cjs +1 -1
  57. package/dist-lib/metro-production-bundle.mjs +1 -1
  58. package/dist-lib/metro.cjs +16 -17
  59. package/dist-lib/native-app-identity-project.cjs +5 -4
  60. package/dist-lib/native-app-identity-project.mjs +8 -7
  61. package/dist-lib/native-app-identity.cjs +1 -1
  62. package/dist-lib/native-app-identity.mjs +1 -1
  63. package/dist-lib/native-firebase-metadata.cjs +1 -1
  64. package/dist-lib/native-firebase-metadata.mjs +1 -1
  65. package/dist-lib/pdfium-raster.cjs +1 -1
  66. package/dist-lib/pdfium-raster.mjs +1 -1
  67. package/dist-lib/plist.cjs +1 -1
  68. package/dist-lib/plist.mjs +1 -1
  69. package/dist-lib/profiles.cjs +1 -1
  70. package/dist-lib/public-brand.cjs +1 -1
  71. package/dist-lib/public-origins-lib-esm.json +24 -24
  72. package/dist-lib/public-origins-lib.json +77 -77
  73. package/dist-lib/react-native-host-modules.cjs +1 -1
  74. package/dist-lib/react-native-host-modules.mjs +1 -1
  75. package/dist-lib/reap-browser.cjs +1 -1
  76. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  77. package/dist-lib/sdk.cjs +1 -1
  78. package/dist-lib/sdk.mjs +1 -1
  79. package/dist-lib/skills.cjs +851 -541
  80. package/dist-lib/swift-compile.cjs +29 -27
  81. package/dist-lib/swift-compile.mjs +36 -34
  82. package/dist-lib/swift-package.cjs +1 -1
  83. package/dist-lib/swift-package.mjs +1 -1
  84. package/dist-lib/swift-submit.cjs +2 -2
  85. package/dist-lib/swift-submit.mjs +2 -2
  86. package/dist-lib/swift-toolchain.cjs +5 -3
  87. package/dist-lib/swift.cjs +1 -1
  88. package/dist-lib/vite-swift.cjs +100 -46
  89. package/dist-lib/vite.cjs +14 -14
  90. package/dist-lib/worklet-executable.cjs +1 -1
  91. package/dist-lib/worklet-executable.mjs +1 -1
  92. package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
  93. package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
  94. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
  95. package/install.mjs +21 -8
  96. package/package.json +1 -1
  97. package/runtime-companion.json +1 -1
  98. package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
  99. package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
  100. package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
  101. package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
  102. package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  103. package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
  104. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
  105. package/sdk/ios/wasm/include/string.h +1 -0
  106. package/src/cli-runtime.ts +32 -4
  107. package/src/expo-kotlin-host.ts +69 -35
  108. package/src/expo-swift-host.ts +45 -9
  109. package/src/expo-swift-ready.ts +16 -2
  110. package/src/expoSwiftContract.ts +2 -20
  111. package/src/installed-native-libraries.ts +79 -18
  112. package/src/nitro-adapter.lock.json +251 -251
  113. package/src/nitro-bundle.ts +2 -8
  114. package/src/nitro-compile.ts +6 -3
  115. package/src/nitro-dependencies.ts +8 -2
  116. package/src/nitro-source.ts +34 -3
  117. package/src/nitro-superset.lock.json +14 -14
  118. package/src/nitro-superset.ts +2 -3
  119. package/src/nitroContract.ts +26 -32
  120. package/src/react-native-bridge-modules.ts +2 -9
  121. package/src/runtime-delivery.ts +2 -2
  122. package/src/swift-compile.ts +4 -1
  123. package/src/swift-distribution.lock.json +9 -8
  124. package/src/swift-distribution.ts +1 -0
  125. package/src/swift-icu.ts +21 -27
  126. package/src/swift-installed-targets.ts +13 -0
  127. package/src/swift-project-user.ts +5 -0
  128. package/src/swift-shared-sdk.ts +4 -0
  129. package/src/swift-standins.ts +14 -3
  130. package/src/swift-submit.ts +2 -1
  131. package/src/swift-toolchain.ts +5 -2
  132. package/src/swift-wasm-prune.ts +10 -2
  133. package/src/turbo-bundle.ts +20 -1
  134. package/src/turbo-compile.ts +6 -12
  135. package/src/turbo-runtime.lock.json +18 -18
  136. package/src/turbo-source.ts +176 -37
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -3882,6 +3882,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
3882
3882
  if (!import_node_fs7.default.existsSync(headers)) {
3883
3883
  import_node_fs7.default.mkdirSync(import_node_path8.default.dirname(headers), { recursive: true });
3884
3884
  const staging = import_node_fs7.default.mkdtempSync(`${headers}-`);
3885
+ import_node_fs7.default.chmodSync(staging, 493);
3885
3886
  import_node_fs7.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
3886
3887
  try {
3887
3888
  import_node_fs7.default.renameSync(staging, headers);
@@ -4110,6 +4111,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4110
4111
  if (!import_node_fs7.default.existsSync(manifest)) {
4111
4112
  import_node_fs7.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
4112
4113
  const staging = import_node_fs7.default.mkdtempSync(`${view}-`);
4114
+ import_node_fs7.default.chmodSync(staging, 493);
4113
4115
  const realRoot = import_node_path8.default.dirname(bundle);
4114
4116
  const overrides = new Map([
4115
4117
  [import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
@@ -4679,19 +4681,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
4679
4681
  var raw = /* @__PURE__ */ new Map();
4680
4682
  var assets = /* @__PURE__ */ new Map();
4681
4683
  var brotliMemoryCache = /* @__PURE__ */ new Map();
4682
- function cachedBrotli(bytes, quality, cacheKey) {
4684
+ async function cachedBrotli(bytes, quality, cacheKey) {
4683
4685
  const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
4684
4686
  const cacheId = `${quality}:${key}`;
4685
4687
  const cached = brotliMemoryCache.get(cacheId);
4686
4688
  if (cached) return cached;
4687
4689
  const dir = import_node_path10.default.join(import_node_os5.default.homedir(), ".peach", "cache", "swift-brotli");
4688
4690
  const file = import_node_path10.default.join(dir, `${key}${quality === 11 ? "" : "-q4"}.br`);
4689
- const pending = (async () => {
4690
- try {
4691
- return await (0, import_promises3.readFile)(file);
4692
- } catch {
4693
- }
4694
- const compressed = await compressBrotli(bytes, {
4691
+ let compressed;
4692
+ try {
4693
+ compressed = await (0, import_promises3.readFile)(file);
4694
+ } catch {
4695
+ compressed = await compressBrotli(bytes, {
4695
4696
  params: {
4696
4697
  [import_node_zlib.constants.BROTLI_PARAM_QUALITY]: quality,
4697
4698
  [import_node_zlib.constants.BROTLI_PARAM_LGWIN]: 24
@@ -4699,16 +4700,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
4699
4700
  });
4700
4701
  try {
4701
4702
  await (0, import_promises3.mkdir)(dir, { recursive: true });
4702
- const tmp = `${file}.${process.pid}.${Date.now()}.tmp`;
4703
+ const tmp = `${file}.${(0, import_node_crypto5.randomUUID)()}.tmp`;
4703
4704
  await (0, import_promises3.writeFile)(tmp, compressed);
4704
4705
  await (0, import_promises3.rename)(tmp, file);
4705
4706
  } catch {
4706
4707
  }
4707
- return compressed;
4708
- })();
4709
- brotliMemoryCache.set(cacheId, pending);
4710
- void pending.catch(() => brotliMemoryCache.delete(cacheId));
4711
- return pending;
4708
+ }
4709
+ brotliMemoryCache.set(cacheId, compressed);
4710
+ return compressed;
4712
4711
  }
4713
4712
  function brotliCompressQ11(bytes, cacheKey) {
4714
4713
  return cachedBrotli(bytes, 11, cacheKey);
@@ -4722,14 +4721,12 @@ async function swiftIcuBrotli(icu) {
4722
4721
  async function swiftIcuBrotliQ4(icu) {
4723
4722
  return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
4724
4723
  }
4725
- function memo(cache, key, load2) {
4726
- let pending = cache.get(key);
4727
- if (!pending) {
4728
- pending = load2();
4729
- pending.catch(() => cache.delete(key));
4730
- cache.set(key, pending);
4731
- }
4732
- return pending;
4724
+ async function memo(cache, key, load2) {
4725
+ const cached = cache.get(key);
4726
+ if (cached !== void 0) return cached;
4727
+ const value = await load2();
4728
+ cache.set(key, value);
4729
+ return value;
4733
4730
  }
4734
4731
  function swiftIcuData(toolchainBin, sdk) {
4735
4732
  return memo(
@@ -6160,6 +6157,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6160
6157
  activateSymbolInObj(w.obj, w.symIdx);
6161
6158
  }
6162
6159
  }
6160
+ for (let n = pref.length - 1; n > 2; n--) {
6161
+ const outer = pref.slice(0, n);
6162
+ if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
6163
+ }
6163
6164
  const mnName = `${pref}Mn`;
6164
6165
  for (let i = 0; i < obj.symNames.length; i++) {
6165
6166
  if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
@@ -6728,8 +6729,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6728
6729
  writePrunedObject(o, outPath);
6729
6730
  prunedMap.set(o.file, outPath);
6730
6731
  }
6731
- const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
6732
- (f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
6732
+ const extraSdkObjs = allSdkObjFiles.filter(
6733
+ (f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
6733
6734
  ).map((f) => import_node_path16.default.join(sdkObjsDir, f));
6734
6735
  const outTokens = [];
6735
6736
  const emittedPruned = /* @__PURE__ */ new Set();
@@ -6762,7 +6763,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6762
6763
  }
6763
6764
  }
6764
6765
  }
6765
- outTokens.push(...extraCoreConcurrencyObjs);
6766
+ outTokens.push(...extraSdkObjs);
6766
6767
  continue;
6767
6768
  }
6768
6769
  if (t === "--end-lib") {
@@ -7499,7 +7500,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
7499
7500
  TOCropViewController: [],
7500
7501
  RiveRuntime: ["MetalKit"],
7501
7502
  MetalKit: ["ModelIO"],
7502
- DatadogCore: [],
7503
+ DatadogInternal: [],
7504
+ DatadogCore: ["DatadogInternal"],
7503
7505
  DatadogLogs: ["DatadogCore"],
7504
7506
  DatadogRUM: ["DatadogCore"],
7505
7507
  DatadogTrace: ["DatadogCore"],
@@ -7851,7 +7853,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7851
7853
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7852
7854
  var MULTI_MANIFEST_VERSION = 65;
7853
7855
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7854
- var compilerSourceDigest = true ? "c1407efb75c18328e37b50abfe396dce388c41563443b4c3a1485a800114a92c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7856
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7855
7857
  function swiftArtifactHash(input, release, moduleRoot) {
7856
7858
  const hash = (0, import_node_crypto8.createHash)("sha256");
7857
7859
  hash.update(`swift-compile
@@ -1,11 +1,11 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
5
5
  spawn as spawn3,
6
6
  execFileSync as execFileSync9
7
7
  } from "node:child_process";
8
- import { createHash as createHash8, randomUUID as randomUUID4 } from "node:crypto";
8
+ import { createHash as createHash8, randomUUID as randomUUID5 } from "node:crypto";
9
9
  import {
10
10
  cpSync,
11
11
  existsSync as existsSync4,
@@ -3830,6 +3830,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
3830
3830
  if (!fs3.existsSync(headers)) {
3831
3831
  fs3.mkdirSync(path8.dirname(headers), { recursive: true });
3832
3832
  const staging = fs3.mkdtempSync(`${headers}-`);
3833
+ fs3.chmodSync(staging, 493);
3833
3834
  fs3.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
3834
3835
  try {
3835
3836
  fs3.renameSync(staging, headers);
@@ -4058,6 +4059,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4058
4059
  if (!fs3.existsSync(manifest)) {
4059
4060
  fs3.mkdirSync(path8.dirname(view), { recursive: true });
4060
4061
  const staging = fs3.mkdtempSync(`${view}-`);
4062
+ fs3.chmodSync(staging, 493);
4061
4063
  const realRoot = path8.dirname(bundle);
4062
4064
  const overrides = new Map([
4063
4065
  [path8.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
@@ -4611,7 +4613,7 @@ var foundationCategoryObjects = [
4611
4613
 
4612
4614
  // src/swift-icu.ts
4613
4615
  import { execFile as execFile2 } from "node:child_process";
4614
- import { createHash as createHash5 } from "node:crypto";
4616
+ import { createHash as createHash5, randomUUID as randomUUID2 } from "node:crypto";
4615
4617
  import { existsSync, readFileSync as readFileSync7 } from "node:fs";
4616
4618
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
4617
4619
  import os2 from "node:os";
@@ -4627,19 +4629,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
4627
4629
  var raw = /* @__PURE__ */ new Map();
4628
4630
  var assets = /* @__PURE__ */ new Map();
4629
4631
  var brotliMemoryCache = /* @__PURE__ */ new Map();
4630
- function cachedBrotli(bytes, quality, cacheKey) {
4632
+ async function cachedBrotli(bytes, quality, cacheKey) {
4631
4633
  const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : createHash5("sha256").update(bytes).digest("hex");
4632
4634
  const cacheId = `${quality}:${key}`;
4633
4635
  const cached = brotliMemoryCache.get(cacheId);
4634
4636
  if (cached) return cached;
4635
4637
  const dir = path10.join(os2.homedir(), ".peach", "cache", "swift-brotli");
4636
4638
  const file = path10.join(dir, `${key}${quality === 11 ? "" : "-q4"}.br`);
4637
- const pending = (async () => {
4638
- try {
4639
- return await readFile(file);
4640
- } catch {
4641
- }
4642
- const compressed = await compressBrotli(bytes, {
4639
+ let compressed;
4640
+ try {
4641
+ compressed = await readFile(file);
4642
+ } catch {
4643
+ compressed = await compressBrotli(bytes, {
4643
4644
  params: {
4644
4645
  [zlibConstants.BROTLI_PARAM_QUALITY]: quality,
4645
4646
  [zlibConstants.BROTLI_PARAM_LGWIN]: 24
@@ -4647,16 +4648,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
4647
4648
  });
4648
4649
  try {
4649
4650
  await mkdir(dir, { recursive: true });
4650
- const tmp = `${file}.${process.pid}.${Date.now()}.tmp`;
4651
+ const tmp = `${file}.${randomUUID2()}.tmp`;
4651
4652
  await writeFile(tmp, compressed);
4652
4653
  await rename(tmp, file);
4653
4654
  } catch {
4654
4655
  }
4655
- return compressed;
4656
- })();
4657
- brotliMemoryCache.set(cacheId, pending);
4658
- void pending.catch(() => brotliMemoryCache.delete(cacheId));
4659
- return pending;
4656
+ }
4657
+ brotliMemoryCache.set(cacheId, compressed);
4658
+ return compressed;
4660
4659
  }
4661
4660
  function brotliCompressQ11(bytes, cacheKey) {
4662
4661
  return cachedBrotli(bytes, 11, cacheKey);
@@ -4670,14 +4669,12 @@ async function swiftIcuBrotli(icu) {
4670
4669
  async function swiftIcuBrotliQ4(icu) {
4671
4670
  return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
4672
4671
  }
4673
- function memo(cache, key, load2) {
4674
- let pending = cache.get(key);
4675
- if (!pending) {
4676
- pending = load2();
4677
- pending.catch(() => cache.delete(key));
4678
- cache.set(key, pending);
4679
- }
4680
- return pending;
4672
+ async function memo(cache, key, load2) {
4673
+ const cached = cache.get(key);
4674
+ if (cached !== void 0) return cached;
4675
+ const value = await load2();
4676
+ cache.set(key, value);
4677
+ return value;
4681
4678
  }
4682
4679
  function swiftIcuData(toolchainBin, sdk) {
4683
4680
  return memo(
@@ -5017,7 +5014,7 @@ function swiftReproducibleBuildFlags(roots) {
5017
5014
  import {
5018
5015
  spawn as spawn2
5019
5016
  } from "node:child_process";
5020
- import { createHash as createHash6, randomUUID as randomUUID3 } from "node:crypto";
5017
+ import { createHash as createHash6, randomUUID as randomUUID4 } from "node:crypto";
5021
5018
  import {
5022
5019
  linkSync,
5023
5020
  mkdirSync as mkdirSync2,
@@ -5030,7 +5027,7 @@ import { homedir as homedir2 } from "node:os";
5030
5027
  import path14 from "node:path";
5031
5028
 
5032
5029
  // src/home-paths.ts
5033
- import { randomUUID as randomUUID2 } from "node:crypto";
5030
+ import { randomUUID as randomUUID3 } from "node:crypto";
5034
5031
  import fs5 from "node:fs";
5035
5032
  import { homedir } from "node:os";
5036
5033
  import path13 from "node:path";
@@ -5127,7 +5124,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
5127
5124
  createHash6("sha256").update(root).digest("hex").slice(0, 32)
5128
5125
  );
5129
5126
  mkdirSync2(directory, { recursive: true });
5130
- const token = randomUUID3();
5127
+ const token = randomUUID4();
5131
5128
  const owner = JSON.stringify(ownIdentity(process.pid));
5132
5129
  const pending = path14.join(directory, `pending.${token}`);
5133
5130
  let held = 0;
@@ -6129,6 +6126,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6129
6126
  activateSymbolInObj(w.obj, w.symIdx);
6130
6127
  }
6131
6128
  }
6129
+ for (let n = pref.length - 1; n > 2; n--) {
6130
+ const outer = pref.slice(0, n);
6131
+ if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
6132
+ }
6132
6133
  const mnName = `${pref}Mn`;
6133
6134
  for (let i = 0; i < obj.symNames.length; i++) {
6134
6135
  if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
@@ -6697,8 +6698,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6697
6698
  writePrunedObject(o, outPath);
6698
6699
  prunedMap.set(o.file, outPath);
6699
6700
  }
6700
- const extraCoreConcurrencyObjs = allSdkObjFiles.filter(
6701
- (f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
6701
+ const extraSdkObjs = allSdkObjFiles.filter(
6702
+ (f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
6702
6703
  ).map((f) => path16.join(sdkObjsDir, f));
6703
6704
  const outTokens = [];
6704
6705
  const emittedPruned = /* @__PURE__ */ new Set();
@@ -6731,7 +6732,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
6731
6732
  }
6732
6733
  }
6733
6734
  }
6734
- outTokens.push(...extraCoreConcurrencyObjs);
6735
+ outTokens.push(...extraSdkObjs);
6735
6736
  continue;
6736
6737
  }
6737
6738
  if (t === "--end-lib") {
@@ -7386,7 +7387,7 @@ function swiftModuleDigest(root) {
7386
7387
  const digest = hash.digest();
7387
7388
  linkedModuleDigests.set(root, { stamp, digest });
7388
7389
  mkdirSync4(path19.dirname(record), { recursive: true });
7389
- const partial = `${record}.${process.pid}.${randomUUID4()}`;
7390
+ const partial = `${record}.${process.pid}.${randomUUID5()}`;
7390
7391
  writeFileSync4(partial, JSON.stringify({ stamp, digest: digest.toString("hex") }));
7391
7392
  renameSync2(partial, record);
7392
7393
  return digest;
@@ -7468,7 +7469,8 @@ var OPTIONAL_FRAMEWORK_DEPENDENCIES = {
7468
7469
  TOCropViewController: [],
7469
7470
  RiveRuntime: ["MetalKit"],
7470
7471
  MetalKit: ["ModelIO"],
7471
- DatadogCore: [],
7472
+ DatadogInternal: [],
7473
+ DatadogCore: ["DatadogInternal"],
7472
7474
  DatadogLogs: ["DatadogCore"],
7473
7475
  DatadogRUM: ["DatadogCore"],
7474
7476
  DatadogTrace: ["DatadogCore"],
@@ -7820,7 +7822,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
7820
7822
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7821
7823
  var MULTI_MANIFEST_VERSION = 65;
7822
7824
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
7823
- var compilerSourceDigest = true ? "c1407efb75c18328e37b50abfe396dce388c41563443b4c3a1485a800114a92c" : swiftCompilerSourceDigest(import.meta.dirname);
7825
+ var compilerSourceDigest = true ? "f6bf05da9a8bbde24169c3c8ff29e36d48f13ea9f817f33a350da3c475783ddd" : swiftCompilerSourceDigest(import.meta.dirname);
7824
7826
  function swiftArtifactHash(input, release, moduleRoot) {
7825
7827
  const hash = createHash8("sha256");
7826
7828
  hash.update(`swift-compile
@@ -11444,7 +11446,7 @@ function stageFrameworkSource(moduleRoot, frameworkKey) {
11444
11446
  const staged = path19.join(swiftFrameworkScratch(frameworkKey), "source");
11445
11447
  const stagedModule = path19.join(staged, "packages", path19.basename(moduleRoot));
11446
11448
  if (existsSync4(path19.join(staged, ".complete"))) return stagedModule;
11447
- const partial = `${staged}.${randomUUID4()}`;
11449
+ const partial = `${staged}.${randomUUID5()}`;
11448
11450
  mkdirSync4(partial, { recursive: true });
11449
11451
  cpSync(moduleRoot, path19.join(partial, "packages", path19.basename(moduleRoot)), {
11450
11452
  recursive: true,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
86
86
  var MAX_SWIFT_COMPILE_IMAGES = 256;
87
87
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
88
88
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
89
- var SWIFT_HOST_ABI = 61;
89
+ var SWIFT_HOST_ABI = 62;
90
90
  var POLL_INTERVAL_MS = 1500;
91
91
  function swiftNativeEntry(native, file) {
92
92
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
40
40
  var MAX_SWIFT_COMPILE_IMAGES = 256;
41
41
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
42
42
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
43
- var SWIFT_HOST_ABI = 61;
43
+ var SWIFT_HOST_ABI = 62;
44
44
  var POLL_INTERVAL_MS = 1500;
45
45
  function swiftNativeEntry(native, file) {
46
46
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;
@@ -344,8 +344,10 @@ function ensureSwiftLinuxRuntime(release) {
344
344
  import_node_fs.default.rmSync(download, { force: true });
345
345
  }
346
346
  }
347
- import_node_fs.default.rmSync(plan.link, { force: true });
348
- import_node_fs.default.symlinkSync("../../libxml2.so.2", plan.link);
347
+ const staged = `${plan.link}.${process.pid}.tmp`;
348
+ import_node_fs.default.rmSync(staged, { force: true });
349
+ import_node_fs.default.symlinkSync("../../libxml2.so.2", staged);
350
+ import_node_fs.default.renameSync(staged, plan.link);
349
351
  for (const name of ["lib", "lib64"]) {
350
352
  try {
351
353
  import_node_fs.default.symlinkSync(`usr/${name}`, import_node_path.default.join(root, name));
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1813 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1815 | (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;