peachsim 0.1.2762 → 0.1.2764

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 (135) hide show
  1. package/detox/index.ts +42 -2
  2. package/detox/proof-observer.ts +4 -0
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +2 -2
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +5 -5
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +3 -3
  15. package/dist-lib/bundle-channel.cjs +60 -21
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +3 -3
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +3 -3
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +2 -2
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +7 -7
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +5 -5
  26. package/dist-lib/detox/index.cjs +29 -2
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/esm-chunks/{acorn-4S4QEKUH.mjs → acorn-P6GSYUBW.mjs} +3 -3
  29. package/dist-lib/esm-chunks/{chunk-YS66XSMK.mjs → chunk-3ZYHM2HA.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-4ZZTNTW6.mjs → chunk-6KSNVVTC.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-45RVUCLW.mjs → chunk-AP5YIIQM.mjs} +2 -2
  32. package/dist-lib/esm-chunks/{chunk-MLIC3NR6.mjs → chunk-B4676W6W.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-T5V72EHF.mjs → chunk-BHZZ6HY3.mjs} +6 -6
  34. package/dist-lib/esm-chunks/{chunk-HB43KEJO.mjs → chunk-CFZYMPZH.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-JE6KHJMR.mjs → chunk-DJRXI3MV.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-JLJPYBC6.mjs → chunk-DSRMRZLO.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-QYIAL2FW.mjs → chunk-ECWMAETO.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-TCCCICYM.mjs → chunk-EHRVGFTC.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-57UDPKKC.mjs → chunk-F2LGS5FX.mjs} +6 -6
  40. package/dist-lib/esm-chunks/{chunk-MALIBFAO.mjs → chunk-GF622ETF.mjs} +4 -4
  41. package/dist-lib/esm-chunks/{chunk-4QOZJQSQ.mjs → chunk-I2LXBHBV.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-LI5BVGTV.mjs → chunk-JHNBG6VU.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-AE56UCLG.mjs → chunk-LTSKSKKD.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-I4C62SOU.mjs → chunk-N3A2K3F3.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-XHAMWSZP.mjs → chunk-RA4YYWXZ.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-EXI2LBO5.mjs → chunk-RCJZKQAZ.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-HYSM5JUW.mjs → chunk-RHDDK6LA.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-JKFD7KTP.mjs → chunk-TDBGN3SP.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-XC7K5JYJ.mjs → chunk-TXWKYX3I.mjs} +5 -5
  50. package/dist-lib/esm-chunks/{chunk-GHCZN43N.mjs → chunk-VVLCV6KA.mjs} +3 -3
  51. package/dist-lib/esm-chunks/{chunk-IZ54ZJUN.mjs → chunk-YOVGPRMD.mjs} +1 -1
  52. package/dist-lib/esm-chunks/{chunk-EDTW6FEK.mjs → chunk-ZLLG2IAT.mjs} +39 -24
  53. package/dist-lib/esm-chunks/{metro-layout-parser-C245BQMH.mjs → metro-layout-parser-YQ2KF5TM.mjs} +3 -3
  54. package/dist-lib/esm-chunks/{swift-package-prebuilt-3CYV5L3E.mjs → swift-package-prebuilt-6MWRW7BU.mjs} +12 -12
  55. package/dist-lib/esm-chunks/{swift-sdk-app-module-EIWWG2YJ.mjs → swift-sdk-app-module-W4C26XYM.mjs} +47 -23
  56. package/dist-lib/esm-chunks/{swift-sdk-image-PTMGH6L6.mjs → swift-sdk-image-DLCQDKRO.mjs} +16 -16
  57. package/dist-lib/esm-chunks/{swift-sdk-image-producer-U5TYUU2Q.mjs → swift-sdk-image-producer-AYXDHRYM.mjs} +5 -5
  58. package/dist-lib/expo-swift-bundle.cjs +60 -21
  59. package/dist-lib/expo-swift-metadata.cjs +1 -1
  60. package/dist-lib/expo-swift-metadata.mjs +7 -7
  61. package/dist-lib/home-paths.cjs +1 -1
  62. package/dist-lib/host/bridge-host.cjs +60 -21
  63. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  64. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  65. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  66. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  67. package/dist-lib/host/websocket-proxy.cjs +1 -1
  68. package/dist-lib/index.cjs +1 -1
  69. package/dist-lib/kotlin-host.cjs +1 -1
  70. package/dist-lib/menu.cjs +1 -1
  71. package/dist-lib/menu.mjs +3 -3
  72. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  73. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  74. package/dist-lib/metro-production-bundle.cjs +1 -1
  75. package/dist-lib/metro-production-bundle.mjs +4 -4
  76. package/dist-lib/native-app-identity-project.cjs +1 -1
  77. package/dist-lib/native-app-identity-project.mjs +15 -15
  78. package/dist-lib/native-app-identity.cjs +1 -1
  79. package/dist-lib/native-app-identity.mjs +6 -6
  80. package/dist-lib/native-firebase-metadata.cjs +1 -1
  81. package/dist-lib/native-firebase-metadata.mjs +3 -3
  82. package/dist-lib/pdfium-raster.cjs +1 -1
  83. package/dist-lib/pdfium-raster.mjs +2 -2
  84. package/dist-lib/plist.cjs +1 -1
  85. package/dist-lib/plist.mjs +3 -3
  86. package/dist-lib/profiles.cjs +1 -1
  87. package/dist-lib/public-brand.cjs +1 -1
  88. package/dist-lib/public-origins-lib-esm.json +85 -85
  89. package/dist-lib/public-origins-lib.json +64 -64
  90. package/dist-lib/react-native-host-modules.cjs +1 -1
  91. package/dist-lib/react-native-host-modules.mjs +2 -2
  92. package/dist-lib/reap-browser.cjs +1 -1
  93. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  94. package/dist-lib/sdk.cjs +1 -1
  95. package/dist-lib/sdk.mjs +8 -8
  96. package/dist-lib/skills.cjs +60 -21
  97. package/dist-lib/swift-compile.cjs +57 -18
  98. package/dist-lib/swift-compile.mjs +12 -12
  99. package/dist-lib/swift-package.cjs +1 -1
  100. package/dist-lib/swift-package.mjs +3 -3
  101. package/dist-lib/swift-submit.cjs +1 -1
  102. package/dist-lib/swift-submit.mjs +6 -6
  103. package/dist-lib/swift-svg-raster.cjs +1 -1
  104. package/dist-lib/swift-svg-raster.mjs +2 -2
  105. package/dist-lib/swift-toolchain.cjs +1 -1
  106. package/dist-lib/swift.cjs +1 -1
  107. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  108. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  109. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  110. package/dist-lib/vendor/acorn.cjs +1 -1
  111. package/dist-lib/vendor/magic-string.cjs +1 -1
  112. package/dist-lib/vendor/stream-json.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase.cjs +1 -1
  118. package/dist-lib/vendor/terser.cjs +1 -1
  119. package/dist-lib/vendor/valibot.cjs +1 -1
  120. package/dist-lib/vendor/ws.cjs +1 -1
  121. package/dist-lib/vendor/zod.cjs +1 -1
  122. package/dist-lib/worklet-executable.cjs +1 -1
  123. package/dist-lib/worklet-executable.mjs +3 -3
  124. package/dist-types/packages/peach-engine/src/engine/native-node-queries.d.ts +2 -2
  125. package/dist-types/packages/peach-engine/src/engine/native-scene-program.d.ts +1 -2
  126. package/dist-types/packages/peach-engine/src/engine/scroll-physics-native.d.ts +0 -1
  127. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-book-host.d.ts +1 -1
  128. package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +2 -4
  129. package/dist-types/packages/peach-engine/src/render-worker/scene-commit-ring.d.ts +9 -3
  130. package/package.json +1 -1
  131. package/src/one-native-controls-package.ts +14 -1
  132. package/src/swift-compile.ts +11 -1
  133. package/src/swift-guest-compile.ts +15 -7
  134. package/src/swift-sdk-app-module.ts +35 -7
  135. package/src/swiftSdkLinkContract.ts +6 -0
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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-EDTW6FEK.mjs";
34
+ } from "./chunk-ZLLG2IAT.mjs";
35
35
  import {
36
36
  withSwiftRootLock,
37
37
  withSwiftRootReadHolds
38
- } from "./chunk-45RVUCLW.mjs";
38
+ } from "./chunk-AP5YIIQM.mjs";
39
39
  import {
40
40
  swiftDistributionAt,
41
41
  swiftModuleDigest,
42
42
  swiftModuleToolchain,
43
43
  swiftSdkPaths
44
- } from "./chunk-57UDPKKC.mjs";
44
+ } from "./chunk-F2LGS5FX.mjs";
45
45
  import {
46
46
  SWIFT_WASM_TRIPLE,
47
47
  sourceSwiftCheckout,
48
48
  swiftCacheDir
49
- } from "./chunk-IZ54ZJUN.mjs";
49
+ } from "./chunk-YOVGPRMD.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-U5TYUU2Q.mjs");
228
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-AYXDHRYM.mjs");
229
229
  await produceSwiftSdkImage({
230
230
  moduleRoot,
231
231
  key,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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-IZ54ZJUN.mjs";
15
+ } from "./chunk-YOVGPRMD.mjs";
16
16
  import {
17
17
  isSwiftResourcePath
18
- } from "./chunk-EXI2LBO5.mjs";
18
+ } from "./chunk-RCJZKQAZ.mjs";
19
19
  import {
20
20
  swiftManifestDeclarations
21
- } from "./chunk-4ZZTNTW6.mjs";
21
+ } from "./chunk-6KSNVVTC.mjs";
22
22
  import {
23
23
  isRecord
24
- } from "./chunk-XHAMWSZP.mjs";
24
+ } from "./chunk-RA4YYWXZ.mjs";
25
25
  import {
26
26
  __publicField
27
- } from "./chunk-AE56UCLG.mjs";
27
+ } from "./chunk-LTSKSKKD.mjs";
28
28
 
29
29
  // src/write-build-file.ts
30
30
  import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
@@ -1,13 +1,13 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftImageVariants
4
- } from "./chunk-JKFD7KTP.mjs";
4
+ } from "./chunk-TDBGN3SP.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./chunk-TCCCICYM.mjs";
7
+ } from "./chunk-EHRVGFTC.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./chunk-XHAMWSZP.mjs";
10
+ } from "./chunk-RA4YYWXZ.mjs";
11
11
 
12
12
  // src/android-string-value.ts
13
13
  function compileAndroidStringValue(text, where) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/plist.ts
4
4
  var NAMED_ENTITIES = {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/assetCatalogContract.ts
4
4
  function isSwiftImageVariants(value) {
@@ -1,21 +1,21 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  LAUNCH_METADATA_KEYS,
4
4
  LAUNCH_METADATA_KEYS_PATH
5
- } from "./chunk-HB43KEJO.mjs";
5
+ } from "./chunk-CFZYMPZH.mjs";
6
6
  import {
7
7
  cacheDir,
8
8
  parseSwiftDistributionLock,
9
9
  readActiveRuntime,
10
10
  runtimeDir
11
- } from "./chunk-57UDPKKC.mjs";
11
+ } from "./chunk-F2LGS5FX.mjs";
12
12
  import {
13
13
  SWIFT_WASM_TRIPLE,
14
14
  registerSwiftHostCompiler
15
- } from "./chunk-IZ54ZJUN.mjs";
15
+ } from "./chunk-YOVGPRMD.mjs";
16
16
  import {
17
17
  isRecord
18
- } from "./chunk-XHAMWSZP.mjs";
18
+ } from "./chunk-RA4YYWXZ.mjs";
19
19
 
20
20
  // src/swift-distribution.ts
21
21
  import { execFile as execFile2 } from "node:child_process";
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SIM_LONG_PRESS_MAX_MS
4
- } from "./chunk-4QOZJQSQ.mjs";
4
+ } from "./chunk-I2LXBHBV.mjs";
5
5
  import {
6
6
  isRecord
7
- } from "./chunk-XHAMWSZP.mjs";
7
+ } from "./chunk-RA4YYWXZ.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.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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,10 +1,10 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (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-45RVUCLW.mjs";
7
+ } from "./chunk-AP5YIIQM.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-57UDPKKC.mjs";
58
+ } from "./chunk-F2LGS5FX.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-IZ54ZJUN.mjs";
75
+ } from "./chunk-YOVGPRMD.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-EXI2LBO5.mjs";
90
+ } from "./chunk-RCJZKQAZ.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-4ZZTNTW6.mjs";
113
+ } from "./chunk-6KSNVVTC.mjs";
114
114
  import {
115
115
  rnxPublicBrand
116
- } from "./chunk-YS66XSMK.mjs";
116
+ } from "./chunk-3ZYHM2HA.mjs";
117
117
  import {
118
118
  isRecord
119
- } from "./chunk-XHAMWSZP.mjs";
119
+ } from "./chunk-RA4YYWXZ.mjs";
120
120
  import {
121
121
  __publicField
122
- } from "./chunk-AE56UCLG.mjs";
122
+ } from "./chunk-LTSKSKKD.mjs";
123
123
 
124
124
  // src/swift-compile.ts
125
125
  import {
@@ -14470,7 +14470,7 @@ async function compileGuestLink(options) {
14470
14470
  };
14471
14471
  const sdk = options.sdkImage;
14472
14472
  const sdkCallers = sdk.sdkInterface.guestCallers;
14473
- const sdkObjects = (await import("./swift-sdk-image-PTMGH6L6.mjs")).readSwiftSdkManifestIndex(
14473
+ const sdkObjects = (await import("./swift-sdk-image-DLCQDKRO.mjs")).readSwiftSdkManifestIndex(
14474
14474
  sdk
14475
14475
  ).guestObjects;
14476
14476
  if (!sdkCallers || !sdkObjects)
@@ -14768,9 +14768,10 @@ async function compileGuestLink(options) {
14768
14768
  linkSwiftAppModule,
14769
14769
  readSwiftSdkUsage,
14770
14770
  swiftAppModuleThunkSection,
14771
+ swiftSdkProjectionDigest,
14771
14772
  swiftSdkProjectionSpans,
14772
14773
  writeSwiftSdkAppLink
14773
- } = await import("./swift-sdk-app-module-EIWWG2YJ.mjs");
14774
+ } = await import("./swift-sdk-app-module-W4C26XYM.mjs");
14774
14775
  const project = options.project;
14775
14776
  const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
14776
14777
  if (project) chownSync(work, project.uid, project.gid);
@@ -14918,16 +14919,23 @@ async function compileGuestLink(options) {
14918
14919
  swiftAppModuleThunkSection(finalized.wasm)
14919
14920
  ])
14920
14921
  );
14921
- if (!project) {
14922
- const replayDirectory = path14.join(options.buildDirectory, ".peach-sdk-module");
14923
- mkdirSync5(replayDirectory, { recursive: true });
14924
- writeSwiftSdkAppLink(path14.join(replayDirectory, "app-link.json.gz"), {
14922
+ if (project) return binding;
14923
+ const replayDirectory = path14.join(options.buildDirectory, ".peach-sdk-module");
14924
+ mkdirSync5(replayDirectory, { recursive: true });
14925
+ const appLink = writeSwiftSdkAppLink(
14926
+ path14.join(replayDirectory, "app-link.json.gz"),
14927
+ {
14925
14928
  linkage,
14926
14929
  usage,
14927
- scopedLookups: true
14928
- });
14929
- }
14930
- return binding;
14930
+ scopedLookups: true,
14931
+ sdkProjection: {
14932
+ objects: [...sdkObjectImages],
14933
+ products: [...sdkProductImages],
14934
+ layoutSha256: swiftSdkProjectionDigest(sdkSpans)
14935
+ }
14936
+ }
14937
+ );
14938
+ return { ...binding, appLink };
14931
14939
  }
14932
14940
  } finally {
14933
14941
  if (result.finalLinkDone) await Promise.allSettled([result.finalLinkDone]);
@@ -16743,7 +16751,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
16743
16751
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16744
16752
  var MULTI_MANIFEST_VERSION = 76;
16745
16753
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16746
- var compilerSourceDigest = true ? "65928a71478b4c05c427c625281d36907f4473296c4b7cfeb7765fb27f011382" : swiftCompilerSourceDigest(import.meta.dirname);
16754
+ var compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest(import.meta.dirname);
16747
16755
  function swiftArtifactHash(input, release, moduleRoot) {
16748
16756
  return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
16749
16757
  }
@@ -20122,10 +20130,13 @@ function readCompiledArtifact(directory, hash) {
20122
20130
  const liveSlots = readFileSync13(path23.join(directory, "sdk-live-slots.bin"));
20123
20131
  if (createHash16("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
20124
20132
  return null;
20133
+ const appLink = typeof image.appLink === "string" ? readFileSync13(path23.join(directory, "app-link.json.gz")) : void 0;
20134
+ if (appLink && createHash16("sha256").update(appLink).digest("hex") !== image.appLink)
20135
+ return null;
20125
20136
  const sdk = {
20126
20137
  key: image.key,
20127
20138
  sha256: image.sha256,
20128
- binding: { bytes: binding, sha256: image.binding, liveSlots }
20139
+ binding: { bytes: binding, sha256: image.binding, liveSlots, appLink }
20129
20140
  };
20130
20141
  return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 }, sdk };
20131
20142
  } catch (error) {
@@ -20139,6 +20150,8 @@ function saveCompiledArtifact(root, artifact) {
20139
20150
  mkdirSync7(directory, { recursive: true });
20140
20151
  const pending = mkdtempSync4(path23.join(root, ".artifact-"));
20141
20152
  try {
20153
+ const appLink = artifact.sdk?.binding.appLink;
20154
+ if (appLink) writeFileSync7(path23.join(pending, "app-link.json.gz"), appLink);
20142
20155
  writeFileSync7(path23.join(pending, "app.wasm"), artifact.bytes);
20143
20156
  writeFileSync7(path23.join(pending, "icu.gz"), artifact.icu.gzip);
20144
20157
  if (artifact.sdk) {
@@ -20158,12 +20171,14 @@ function saveCompiledArtifact(root, artifact) {
20158
20171
  key: artifact.sdk.key,
20159
20172
  sha256: artifact.sdk.sha256,
20160
20173
  binding: artifact.sdk.binding.sha256,
20174
+ appLink: appLink && createHash16("sha256").update(appLink).digest("hex"),
20161
20175
  liveSlots: createHash16("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
20162
20176
  }
20163
20177
  })
20164
20178
  );
20165
20179
  const outputs = ["app.wasm", "icu.gz"];
20166
20180
  if (artifact.sdk) outputs.push("sdk-binding.bin", "sdk-live-slots.bin");
20181
+ if (appLink) outputs.push("app-link.json.gz");
20167
20182
  for (const file of [...outputs, "artifact.json"]) {
20168
20183
  renameSync5(path23.join(pending, file), path23.join(directory, file));
20169
20184
  }
@@ -21295,7 +21310,7 @@ async function compileSwiftProjectOnce(sources, options) {
21295
21310
  const distribution = swiftDistributionAt(moduleRoot);
21296
21311
  const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
21297
21312
  if (distribution) refreshSwiftCacheHold(moduleRoot);
21298
- const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-3CYV5L3E.mjs")).useSwiftPackagePrebuilts(
21313
+ const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-6MWRW7BU.mjs")).useSwiftPackagePrebuilts(
21299
21314
  sources,
21300
21315
  moduleRoot,
21301
21316
  options.toolchainBin
@@ -21308,7 +21323,7 @@ async function compileSwiftProjectOnce(sources, options) {
21308
21323
  sources: path23.join(root, "Sources", "App"),
21309
21324
  multi: compileTargets(input).length > 0
21310
21325
  };
21311
- const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-PTMGH6L6.mjs")).buildSwiftSdkImage(
21326
+ const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-DLCQDKRO.mjs")).buildSwiftSdkImage(
21312
21327
  moduleRoot,
21313
21328
  !!guestGraph,
21314
21329
  distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
@@ -22027,7 +22042,7 @@ ${compatShape}` : "";
22027
22042
  });
22028
22043
  sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
22029
22044
  } else {
22030
- const { buildSwiftAppModule } = await import("./swift-sdk-app-module-EIWWG2YJ.mjs");
22045
+ const { buildSwiftAppModule } = await import("./swift-sdk-app-module-W4C26XYM.mjs");
22031
22046
  const binding = await buildSwiftAppModule({
22032
22047
  buildRoot: root2,
22033
22048
  toolchainBin: options.toolchainBin,
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./chunk-AE56UCLG.mjs";
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./chunk-LTSKSKKD.mjs";
3
3
 
4
4
  // src/metro-layout-parser.ts
5
5
  var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
8
8
  var metroLayoutParser;
9
9
  async function loadMetroLayoutParser() {
10
10
  if (metroLayoutParser) return metroLayoutParser;
11
- const { Parser } = await import("./acorn-4S4QEKUH.mjs");
11
+ const { Parser } = await import("./acorn-P6GSYUBW.mjs");
12
12
  metroLayoutParser = Parser.extend(
13
13
  (Base) => {
14
14
  const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
@@ -1,27 +1,27 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  compileTargets,
4
4
  fetchNativeEntry,
5
5
  nativeEntryKey,
6
6
  swiftAvailableModules
7
- } from "./chunk-EDTW6FEK.mjs";
8
- import "./chunk-45RVUCLW.mjs";
7
+ } from "./chunk-ZLLG2IAT.mjs";
8
+ import "./chunk-AP5YIIQM.mjs";
9
9
  import {
10
10
  swiftDistributionAt,
11
11
  swiftImportNames
12
- } from "./chunk-57UDPKKC.mjs";
13
- import "./chunk-IZ54ZJUN.mjs";
12
+ } from "./chunk-F2LGS5FX.mjs";
13
+ import "./chunk-YOVGPRMD.mjs";
14
14
  import {
15
15
  SWIFT_REMOTE_PACKAGES_DIR
16
- } from "./chunk-EXI2LBO5.mjs";
16
+ } from "./chunk-RCJZKQAZ.mjs";
17
17
  import {
18
18
  manifestCalls
19
- } from "./chunk-4ZZTNTW6.mjs";
20
- import "./chunk-JKFD7KTP.mjs";
21
- import "./chunk-YS66XSMK.mjs";
22
- import "./chunk-HYSM5JUW.mjs";
23
- import "./chunk-XHAMWSZP.mjs";
24
- import "./chunk-AE56UCLG.mjs";
19
+ } from "./chunk-6KSNVVTC.mjs";
20
+ import "./chunk-TDBGN3SP.mjs";
21
+ import "./chunk-3ZYHM2HA.mjs";
22
+ import "./chunk-RHDDK6LA.mjs";
23
+ import "./chunk-RA4YYWXZ.mjs";
24
+ import "./chunk-LTSKSKKD.mjs";
25
25
 
26
26
  // src/swift-package-prebuilt.ts
27
27
  import { createHash } from "node:crypto";
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_MEMORY_BASE,
5
5
  SWIFT_SDK_PIECE_FIELDS,
6
6
  readSwiftSdkManifest
7
- } from "./chunk-T5V72EHF.mjs";
7
+ } from "./chunk-BHZZ6HY3.mjs";
8
8
  import {
9
9
  ADDEND_RELOCATIONS,
10
10
  KEEP_WASM_NAMES,
@@ -33,22 +33,22 @@ import {
33
33
  wasmReader,
34
34
  wasmSections,
35
35
  writeWasmCustomSection
36
- } from "./chunk-EDTW6FEK.mjs";
37
- import "./chunk-45RVUCLW.mjs";
38
- import "./chunk-XC7K5JYJ.mjs";
39
- import "./chunk-HB43KEJO.mjs";
40
- import "./chunk-I4C62SOU.mjs";
41
- import "./chunk-57UDPKKC.mjs";
36
+ } from "./chunk-ZLLG2IAT.mjs";
37
+ import "./chunk-AP5YIIQM.mjs";
38
+ import "./chunk-TXWKYX3I.mjs";
39
+ import "./chunk-CFZYMPZH.mjs";
40
+ import "./chunk-N3A2K3F3.mjs";
41
+ import "./chunk-F2LGS5FX.mjs";
42
42
  import {
43
43
  SWIFT_WASM_TRIPLE
44
- } from "./chunk-IZ54ZJUN.mjs";
45
- import "./chunk-EXI2LBO5.mjs";
46
- import "./chunk-4ZZTNTW6.mjs";
47
- import "./chunk-JKFD7KTP.mjs";
48
- import "./chunk-YS66XSMK.mjs";
49
- import "./chunk-HYSM5JUW.mjs";
50
- import "./chunk-XHAMWSZP.mjs";
51
- import "./chunk-AE56UCLG.mjs";
44
+ } from "./chunk-YOVGPRMD.mjs";
45
+ import "./chunk-RCJZKQAZ.mjs";
46
+ import "./chunk-6KSNVVTC.mjs";
47
+ import "./chunk-TDBGN3SP.mjs";
48
+ import "./chunk-3ZYHM2HA.mjs";
49
+ import "./chunk-RHDDK6LA.mjs";
50
+ import "./chunk-RA4YYWXZ.mjs";
51
+ import "./chunk-LTSKSKKD.mjs";
52
52
 
53
53
  // src/swift-sdk-app-module.ts
54
54
  import { execFile } from "node:child_process";
@@ -148,13 +148,13 @@ async function buildSwiftAppModule(options) {
148
148
  throw error;
149
149
  }
150
150
  await lowerPromise;
151
- if (!project)
152
- writeSwiftSdkAppLink(path.join(work, "app-link.json.gz"), {
153
- linkage: link.linkage,
154
- usage
155
- });
156
151
  finishSwiftAppModuleFile(options.output);
157
- return binding;
152
+ if (project) return binding;
153
+ const appLink = writeSwiftSdkAppLink(path.join(work, "app-link.json.gz"), {
154
+ linkage: link.linkage,
155
+ usage
156
+ });
157
+ return { ...binding, appLink };
158
158
  }
159
159
  function swiftAppModuleThunkSection(lowered) {
160
160
  return [NATIVE_SDK_THUNK_SECTION, sdkImportThunks(lowered)];
@@ -1141,7 +1141,9 @@ var SCANNED = /* @__PURE__ */ new Set([
1141
1141
  ]);
1142
1142
  var RUN_GAP = 64;
1143
1143
  function writeSwiftSdkAppLink(file, link) {
1144
- writeFileSync(file, gzipSync(JSON.stringify(link), { level: 1 }));
1144
+ const bytes = gzipSync(JSON.stringify(link), { level: 1 });
1145
+ writeFileSync(file, bytes);
1146
+ return bytes;
1145
1147
  }
1146
1148
  function readSwiftSdkAppLink(file) {
1147
1149
  return JSON.parse(gunzipSync(readFileSync(file)).toString("utf8"));
@@ -1213,6 +1215,26 @@ function swiftSdkProjectionSpans(sdk, imageFor) {
1213
1215
  }
1214
1216
  return spans;
1215
1217
  }
1218
+ function swiftSdkProjectionDigest(spans) {
1219
+ const ordered = [...spans].sort(
1220
+ (left, right) => left.image - right.image || left.space.localeCompare(right.space) || left.address - right.address || left.length - right.length
1221
+ );
1222
+ return createHash("sha256").update(JSON.stringify(ordered)).digest("hex");
1223
+ }
1224
+ function assertSwiftSdkReplayLayout(link, sdk) {
1225
+ const projection = link.sdkProjection;
1226
+ if (!projection) return;
1227
+ const objects = new Map(projection.objects);
1228
+ const products = new Map(projection.products);
1229
+ const spans = swiftSdkProjectionSpans(
1230
+ sdk,
1231
+ (object, product) => objects.get(object) ?? products.get(product)
1232
+ );
1233
+ if (swiftSdkProjectionDigest(spans) !== projection.layoutSha256)
1234
+ throw new Error(
1235
+ "SDK image changes the retained app\u2019s projected memory or table ownership"
1236
+ );
1237
+ }
1216
1238
  function selectSwiftSdkData(sdk, usage, linkage, projection) {
1217
1239
  const { manifest, block, segments } = readSwiftSdkManifest(sdk);
1218
1240
  const { strings } = manifest;
@@ -1709,6 +1731,7 @@ function partitionParent(section) {
1709
1731
  ].find((name) => section === name || section.startsWith(`${name}.`));
1710
1732
  }
1711
1733
  export {
1734
+ assertSwiftSdkReplayLayout,
1712
1735
  bindSwiftAppModule,
1713
1736
  buildSwiftAppModule,
1714
1737
  createSwiftSdkBinding,
@@ -1718,6 +1741,7 @@ export {
1718
1741
  readSwiftSdkUsage,
1719
1742
  swiftAppModuleInputs,
1720
1743
  swiftAppModuleThunkSection,
1744
+ swiftSdkProjectionDigest,
1721
1745
  swiftSdkProjectionSpans,
1722
1746
  writeSwiftSdkAppLink
1723
1747
  };