peachsim 0.1.2623 → 0.1.2625

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 (140) 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 +1023 -621
  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-E6V72TM2.mjs → acorn-SHZZDBSI.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-EIOVKQ2C.mjs → chunk-2LDG7OD4.mjs} +5 -5
  28. package/dist-lib/esm-chunks/{chunk-ISH6XB23.mjs → chunk-3XZGWT62.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-Q7KCK4YO.mjs → chunk-6PZI7TYE.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-RLWITQ5C.mjs → chunk-7Z7YJ4FU.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-4GNQG2GT.mjs → chunk-A4R4YGFJ.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-GP3KL2GC.mjs → chunk-A66VNSO6.mjs} +565 -290
  33. package/dist-lib/esm-chunks/{chunk-XOAOND7F.mjs → chunk-DVMKYLDN.mjs} +9 -8
  34. package/dist-lib/esm-chunks/{chunk-IGB7TRLS.mjs → chunk-F4YHL4UM.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-4BJIJ3GP.mjs → chunk-JRU2VXUU.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-EI7CZDMR.mjs → chunk-JVEJLPJC.mjs} +2 -2
  37. package/dist-lib/esm-chunks/{chunk-UCW7ITXE.mjs → chunk-KA4AQDVF.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-RLWTJ6II.mjs → chunk-LJYNZ5HM.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-RBXTTEI6.mjs → chunk-M2FEKSK3.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-KPG4FUTY.mjs → chunk-OCCZJOSA.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-CXNXKUNJ.mjs → chunk-P542MMIN.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-NOM66H2G.mjs → chunk-Q5NI4L3Z.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-V2CHR3OI.mjs → chunk-R4FFTWPL.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-W3X7RP3H.mjs → chunk-RJWEWNAJ.mjs} +3 -3
  45. package/dist-lib/esm-chunks/{chunk-B5OQSD4B.mjs → chunk-RXXCTHJG.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-B4APPUTT.mjs → chunk-SRIRVPNX.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-6MNE57DC.mjs → chunk-ULHG6CND.mjs} +22 -13
  48. package/dist-lib/esm-chunks/{chunk-PAEJF2JP.mjs → chunk-W4HQINQ6.mjs} +4 -4
  49. package/dist-lib/esm-chunks/{chunk-RVM3WWST.mjs → chunk-XQBHCWS4.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-Q4ZATFEN.mjs → chunk-Z6AH6AQC.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-OHVROLNJ.mjs → metro-layout-parser-GJHR7FCR.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-DRAUK6KR.mjs → swift-package-prebuilt-UVRGKTD4.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-U2M7CMKA.mjs → swift-sdk-app-module-U3MUJ7QD.mjs} +107 -20
  54. package/dist-lib/esm-chunks/{swift-sdk-image-ZHWSHCNI.mjs → swift-sdk-image-U4W7QMAT.mjs} +16 -18
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-EOJUCK7N.mjs → swift-sdk-image-producer-TFFZDNRK.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +918 -516
  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 +1025 -623
  61. package/dist-lib/host/fetch-proxy-handler.cjs +10 -9
  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 +33 -17
  75. package/dist-lib/native-app-identity-project.mjs +44 -29
  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 +87 -86
  87. package/dist-lib/public-origins-lib.json +69 -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 +1062 -660
  95. package/dist-lib/swift-compile.cjs +708 -336
  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/package.json +1 -1
  123. package/src/bazel-project.ts +34 -18
  124. package/src/binaryen.lock.json +3 -3
  125. package/src/swift-compile.ts +8 -0
  126. package/src/swift-distribution-contract.ts +6 -1
  127. package/src/swift-distribution.lock.json +4 -2
  128. package/src/swift-guest-compile.ts +170 -160
  129. package/src/swift-guest-dyld-table.ts +22 -9
  130. package/src/swift-guest-link.ts +116 -42
  131. package/src/swift-guest-linked-spans.ts +63 -14
  132. package/src/swift-guest-projection-storage.ts +7 -6
  133. package/src/swift-guest-source-inputs.ts +35 -21
  134. package/src/swift-objc-compile.ts +1 -0
  135. package/src/swift-sdk-app-module.ts +118 -15
  136. package/src/swift-sdk-image-recipe.ts +20 -0
  137. package/src/swift-sdk-image-wasm.ts +119 -17
  138. package/src/swift-sdk-image.ts +6 -5
  139. package/src/swift-wasm-prune.ts +71 -41
  140. package/src/wasm-narrow-boundary.ts +31 -6
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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-4GNQG2GT.mjs";
15
+ } from "./chunk-A4R4YGFJ.mjs";
16
16
  import {
17
17
  isSwiftResourcePath
18
- } from "./chunk-NOM66H2G.mjs";
18
+ } from "./chunk-Q5NI4L3Z.mjs";
19
19
  import {
20
20
  swiftManifestDeclarations
21
- } from "./chunk-KPG4FUTY.mjs";
21
+ } from "./chunk-OCCZJOSA.mjs";
22
22
  import {
23
23
  isRecord
24
- } from "./chunk-UCW7ITXE.mjs";
24
+ } from "./chunk-KA4AQDVF.mjs";
25
25
  import {
26
26
  __publicField
27
- } from "./chunk-CXNXKUNJ.mjs";
27
+ } from "./chunk-P542MMIN.mjs";
28
28
 
29
29
  // src/write-build-file.ts
30
30
  import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
@@ -303,12 +303,13 @@ function parseSwiftDistributionLock(value) {
303
303
  if (runtime === void 0) return void 0;
304
304
  if (!isRecord(runtime) || typeof runtime.source !== "string" || !/^[a-f0-9]{64}$/.test(runtime.source) || typeof runtime.url !== "string" || !/^https:\/\/[a-z0-9.-]+(?::\d+)?\/compile\/asset\/[a-f0-9]{64}$/.test(
305
305
  runtime.url
306
- ) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
306
+ ) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)) || runtime.recipe !== void 0 && (typeof runtime.recipe !== "string" || !/^[a-f0-9]{16}$/.test(runtime.recipe)))
307
307
  throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
308
308
  return {
309
309
  source: runtime.source,
310
310
  url: runtime.url,
311
- ...runtime.dataPlan && { dataPlan: runtime.dataPlan }
311
+ ...runtime.dataPlan && { dataPlan: runtime.dataPlan },
312
+ ...runtime.recipe && { recipe: runtime.recipe }
312
313
  };
313
314
  };
314
315
  const sdkRuntime = publication(value.sdkRuntime);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/launchMetadataContract.ts
4
4
  var LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
@@ -1,9 +1,9 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  killOrphanedProcessGroup,
4
4
  readProcessTable,
5
5
  terminateProcessGroup
6
- } from "./chunk-4GNQG2GT.mjs";
6
+ } from "./chunk-A4R4YGFJ.mjs";
7
7
 
8
8
  // src/swift-root-lock.ts
9
9
  import {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/assetCatalogContract.ts
4
4
  function isSwiftImageVariants(value) {
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SIM_LONG_PRESS_MAX_MS
4
- } from "./chunk-Q4ZATFEN.mjs";
4
+ } from "./chunk-Z6AH6AQC.mjs";
5
5
  import {
6
6
  isRecord
7
- } from "./chunk-UCW7ITXE.mjs";
7
+ } from "./chunk-KA4AQDVF.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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  DARWIN_RECORDS_PREFIX,
4
4
  KEEP_WASM_NAMES,
@@ -25,25 +25,25 @@ import {
25
25
  swiftSdkGuestLookups,
26
26
  unslottedFunctions,
27
27
  wasmSections
28
- } from "./chunk-GP3KL2GC.mjs";
28
+ } from "./chunk-A66VNSO6.mjs";
29
29
  import {
30
30
  withSwiftRootLock
31
- } from "./chunk-EI7CZDMR.mjs";
31
+ } from "./chunk-JVEJLPJC.mjs";
32
32
  import {
33
33
  swiftDistributionAt,
34
34
  swiftModuleDigest,
35
35
  swiftModuleToolchain,
36
36
  swiftSdkPaths
37
- } from "./chunk-XOAOND7F.mjs";
37
+ } from "./chunk-DVMKYLDN.mjs";
38
38
  import {
39
39
  SWIFT_WASM_TRIPLE,
40
40
  sourceSwiftCheckout,
41
41
  swiftCacheDir
42
- } from "./chunk-4GNQG2GT.mjs";
42
+ } from "./chunk-A4R4YGFJ.mjs";
43
43
 
44
44
  // src/swift-sdk-image.ts
45
45
  import { execFile } from "node:child_process";
46
- import { createHash } from "node:crypto";
46
+ import { createHash as createHash2 } from "node:crypto";
47
47
  import {
48
48
  existsSync,
49
49
  mkdirSync,
@@ -56,8 +56,17 @@ import {
56
56
  } from "node:fs";
57
57
  import path from "node:path";
58
58
  import { promisify } from "node:util";
59
- var run = promisify(execFile);
59
+
60
+ // src/swift-sdk-image-recipe.ts
61
+ import { createHash } from "node:crypto";
60
62
  var SWIFT_SDK_IMAGE_VERSION = 13;
63
+ var swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
64
+ var SWIFT_SDK_IMAGE_RECIPE = createHash("sha256").update(`swift-sdk-image
65
+ ${SWIFT_SDK_IMAGE_VERSION}
66
+ `).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
67
+
68
+ // src/swift-sdk-image.ts
69
+ var run = promisify(execFile);
61
70
  var SWIFT_SDK_APP_MEMORY_BASE = 8372224;
62
71
  var SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
63
72
  var SWIFT_SDK_APP_TABLE_BASE = 524288;
@@ -147,9 +156,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports) {
147
156
  function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
148
157
  const distribution = swiftDistributionAt(moduleRoot);
149
158
  const inputs = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
150
- return createHash("sha256").update(`swift-sdk-image
159
+ return createHash2("sha256").update(`swift-sdk-image
151
160
  ${SWIFT_SDK_IMAGE_VERSION}
152
- `).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n").update(inputs).update(products.length === 0 ? "" : `
161
+ `).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs).update(products.length === 0 ? "" : `
153
162
  products ${products.join(" ")}`).digest("hex").slice(0, 32);
154
163
  }
155
164
  var IMAGE_FILE = "sdk.wasm";
@@ -219,7 +228,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
219
228
  const existing = cached(directory, key);
220
229
  if (existing) return existing;
221
230
  if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
222
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-EOJUCK7N.mjs");
231
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-TFFZDNRK.mjs");
223
232
  await produceSwiftSdkImage({
224
233
  moduleRoot,
225
234
  key,
@@ -256,7 +265,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
256
265
  stage
257
266
  ]);
258
267
  const image = cached(stage, key);
259
- if (!image || createHash("sha256").update(readFileSync(image.image)).digest("hex") !== image.sha256)
268
+ if (!image || createHash2("sha256").update(readFileSync(image.image)).digest("hex") !== image.sha256)
260
269
  throw new Error(`invalid published Swift SDK image ${key}`);
261
270
  rmSync(directory, { recursive: true, force: true });
262
271
  renameSync(stage, directory);
@@ -465,6 +474,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
465
474
  ].map((name) => `--export=${name}`),
466
475
  `@${path.join(work, "exports.rsp")}`,
467
476
  "--gc-sections",
477
+ "--strip-debug",
468
478
  // strings stay with their objects, so an app loads only the ones its pieces reference
469
479
  "-O0"
470
480
  ];
@@ -525,7 +535,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
525
535
  writeFileSync(path.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
526
536
  writeFileSync(
527
537
  path.join(work, IMAGE_DIGEST),
528
- createHash("sha256").update(image).digest("hex")
538
+ typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : createHash2("sha256").update(image).digest("hex")
529
539
  );
530
540
  if (swiftSdkImageKey(
531
541
  moduleRoot,
@@ -810,7 +820,6 @@ var MANIFEST_BLOCKS = [
810
820
  var isManifestBlock = (name) => MANIFEST_BLOCKS.includes(name);
811
821
 
812
822
  export {
813
- SWIFT_SDK_IMAGE_VERSION,
814
823
  SWIFT_SDK_APP_MEMORY_BASE,
815
824
  SWIFT_SDK_MEMORY_BASE,
816
825
  SWIFT_SDK_APP_TABLE_BASE,
@@ -1,13 +1,13 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftImageVariants
4
- } from "./chunk-V2CHR3OI.mjs";
4
+ } from "./chunk-R4FFTWPL.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./chunk-ISH6XB23.mjs";
7
+ } from "./chunk-3XZGWT62.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./chunk-UCW7ITXE.mjs";
10
+ } from "./chunk-KA4AQDVF.mjs";
11
11
 
12
12
  // src/android-string-value.ts
13
13
  function compileAndroidStringValue(text, where) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./chunk-CXNXKUNJ.mjs";
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./chunk-P542MMIN.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-E6V72TM2.mjs");
11
+ const { Parser } = await import("./acorn-SHZZDBSI.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.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (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-GP3KL2GC.mjs";
8
- import "./chunk-EI7CZDMR.mjs";
7
+ } from "./chunk-A66VNSO6.mjs";
8
+ import "./chunk-JVEJLPJC.mjs";
9
9
  import {
10
10
  swiftDistributionAt,
11
11
  swiftImportNames
12
- } from "./chunk-XOAOND7F.mjs";
13
- import "./chunk-4GNQG2GT.mjs";
12
+ } from "./chunk-DVMKYLDN.mjs";
13
+ import "./chunk-A4R4YGFJ.mjs";
14
14
  import {
15
15
  SWIFT_REMOTE_PACKAGES_DIR
16
- } from "./chunk-NOM66H2G.mjs";
16
+ } from "./chunk-Q5NI4L3Z.mjs";
17
17
  import {
18
18
  manifestCalls
19
- } from "./chunk-KPG4FUTY.mjs";
20
- import "./chunk-V2CHR3OI.mjs";
21
- import "./chunk-RLWITQ5C.mjs";
22
- import "./chunk-B4APPUTT.mjs";
23
- import "./chunk-UCW7ITXE.mjs";
24
- import "./chunk-CXNXKUNJ.mjs";
19
+ } from "./chunk-OCCZJOSA.mjs";
20
+ import "./chunk-R4FFTWPL.mjs";
21
+ import "./chunk-7Z7YJ4FU.mjs";
22
+ import "./chunk-SRIRVPNX.mjs";
23
+ import "./chunk-KA4AQDVF.mjs";
24
+ import "./chunk-P542MMIN.mjs";
25
25
 
26
26
  // src/swift-package-prebuilt.ts
27
27
  import { createHash } from "node:crypto";
@@ -1,11 +1,11 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_APP_TABLE_BASE,
5
5
  SWIFT_SDK_MEMORY_BASE,
6
6
  SWIFT_SDK_PIECE_FIELDS,
7
7
  readSwiftSdkManifest
8
- } from "./chunk-6MNE57DC.mjs";
8
+ } from "./chunk-ULHG6CND.mjs";
9
9
  import {
10
10
  ADDEND_RELOCATIONS,
11
11
  KEEP_WASM_NAMES,
@@ -33,34 +33,39 @@ import {
33
33
  wasmReader,
34
34
  wasmSections,
35
35
  writeWasmCustomSection
36
- } from "./chunk-GP3KL2GC.mjs";
37
- import "./chunk-EI7CZDMR.mjs";
38
- import "./chunk-EIOVKQ2C.mjs";
39
- import "./chunk-4BJIJ3GP.mjs";
40
- import "./chunk-RLWTJ6II.mjs";
41
- import "./chunk-XOAOND7F.mjs";
36
+ } from "./chunk-A66VNSO6.mjs";
37
+ import "./chunk-JVEJLPJC.mjs";
38
+ import "./chunk-2LDG7OD4.mjs";
39
+ import "./chunk-JRU2VXUU.mjs";
40
+ import "./chunk-LJYNZ5HM.mjs";
41
+ import "./chunk-DVMKYLDN.mjs";
42
42
  import {
43
43
  SWIFT_WASM_TRIPLE
44
- } from "./chunk-4GNQG2GT.mjs";
45
- import "./chunk-NOM66H2G.mjs";
46
- import "./chunk-KPG4FUTY.mjs";
47
- import "./chunk-V2CHR3OI.mjs";
48
- import "./chunk-RLWITQ5C.mjs";
49
- import "./chunk-B4APPUTT.mjs";
50
- import "./chunk-UCW7ITXE.mjs";
51
- import "./chunk-CXNXKUNJ.mjs";
44
+ } from "./chunk-A4R4YGFJ.mjs";
45
+ import "./chunk-Q5NI4L3Z.mjs";
46
+ import "./chunk-OCCZJOSA.mjs";
47
+ import "./chunk-R4FFTWPL.mjs";
48
+ import "./chunk-7Z7YJ4FU.mjs";
49
+ import "./chunk-SRIRVPNX.mjs";
50
+ import "./chunk-KA4AQDVF.mjs";
51
+ import "./chunk-P542MMIN.mjs";
52
52
 
53
53
  // src/swift-sdk-app-module.ts
54
54
  import { execFile } from "node:child_process";
55
55
  import { createHash } from "node:crypto";
56
56
  import {
57
+ appendFileSync,
57
58
  chownSync,
59
+ closeSync,
58
60
  constants,
59
61
  copyFileSync,
60
62
  existsSync,
63
+ fstatSync,
61
64
  mkdirSync,
62
65
  mkdtempSync,
66
+ openSync,
63
67
  readFileSync,
68
+ readSync,
64
69
  realpathSync,
65
70
  rmSync,
66
71
  statSync,
@@ -148,9 +153,12 @@ async function buildSwiftAppModule(options) {
148
153
  linkage: link.linkage,
149
154
  usage
150
155
  });
151
- writeFileSync(options.output, finishSwiftAppModule(readFileSync(options.output)));
156
+ finishSwiftAppModuleFile(options.output);
152
157
  return binding;
153
158
  }
159
+ function swiftAppModuleThunkSection(lowered) {
160
+ return [NATIVE_SDK_THUNK_SECTION, sdkImportThunks(lowered)];
161
+ }
154
162
  function finishSwiftAppModule(lowered) {
155
163
  return writeWasmCustomSection(
156
164
  lowered,
@@ -158,6 +166,73 @@ function finishSwiftAppModule(lowered) {
158
166
  sdkImportThunks(lowered)
159
167
  );
160
168
  }
169
+ function finishSwiftAppModuleFile(file) {
170
+ const fd = openSync(file, "r");
171
+ let prefixEnd = 8;
172
+ let hasExistingThunk = false;
173
+ let prefix;
174
+ try {
175
+ const total = fstatSync(fd).size;
176
+ const probe = Buffer.allocUnsafe(16);
177
+ let offset = 8;
178
+ while (offset < total) {
179
+ const read = readSync(fd, probe, 0, Math.min(16, total - offset), offset);
180
+ if (read < 2) break;
181
+ const id = probe[0];
182
+ let size = 0;
183
+ let shift = 0;
184
+ let at = 1;
185
+ for (; ; ) {
186
+ const byte = probe[at++];
187
+ size += (byte & 127) * 2 ** shift;
188
+ if (!(byte & 128)) break;
189
+ shift += 7;
190
+ }
191
+ const start = offset + at;
192
+ const next = start + size;
193
+ if (id === 1 || id === 2) prefixEnd = next;
194
+ else if (id === 0) {
195
+ const nameBuf = Buffer.allocUnsafe(Math.min(128, size));
196
+ const nRead = readSync(fd, nameBuf, 0, nameBuf.length, start);
197
+ let nLen = 0;
198
+ let nShift = 0;
199
+ let nAt = 0;
200
+ for (; ; ) {
201
+ if (nAt >= nRead) break;
202
+ const byte = nameBuf[nAt++];
203
+ nLen += (byte & 127) * 2 ** nShift;
204
+ if (!(byte & 128)) break;
205
+ nShift += 7;
206
+ }
207
+ if (nAt + nLen <= nRead && nameBuf.toString("utf8", nAt, nAt + nLen) === NATIVE_SDK_THUNK_SECTION) {
208
+ hasExistingThunk = true;
209
+ break;
210
+ }
211
+ }
212
+ offset = next;
213
+ }
214
+ if (!hasExistingThunk) {
215
+ prefix = Buffer.allocUnsafe(prefixEnd);
216
+ let filled = 0;
217
+ while (filled < prefixEnd) {
218
+ const n = readSync(fd, prefix, filled, prefixEnd - filled, filled);
219
+ if (n <= 0) break;
220
+ filled += n;
221
+ }
222
+ prefix = prefix.subarray(0, filled);
223
+ }
224
+ } finally {
225
+ closeSync(fd);
226
+ }
227
+ if (hasExistingThunk || !prefix) {
228
+ writeFileSync(file, finishSwiftAppModule(readFileSync(file)));
229
+ return;
230
+ }
231
+ const thunks = sdkImportThunks(prefix);
232
+ const nameBytes = Buffer.from(encodedName(NATIVE_SDK_THUNK_SECTION));
233
+ const header = Buffer.from([0, ...uleb(nameBytes.length + thunks.length)]);
234
+ appendFileSync(file, Buffer.concat([header, nameBytes, thunks]));
235
+ }
161
236
  function swiftAppModuleInputs(tokens, buildRoot, sdkLibraries) {
162
237
  const owned = (token) => path.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
163
238
  const inputs = [];
@@ -372,6 +447,7 @@ async function linkSwiftAppModule(options) {
372
447
  "--unresolved-symbols=ignore-all",
373
448
  "--import-undefined",
374
449
  "--emit-relocs",
450
+ "--strip-debug",
375
451
  "--gc-sections",
376
452
  "--keep-section=target_features",
377
453
  "--error-limit=0",
@@ -394,7 +470,16 @@ async function linkSwiftAppModule(options) {
394
470
  const skipPasses = options.layoutMap ? ["duplicate-function-elimination"] : void 0;
395
471
  const sdkTableEnd = sdk.sdkInterface.layout.tableEnd;
396
472
  const { loweringCache } = options;
397
- const loweringKey = loweringCache && createHash("sha256").update(
473
+ const loweringKey = loweringCache && (typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(
474
+ JSON.stringify([
475
+ loweringCache.compilerDigest,
476
+ optimize,
477
+ skipPasses,
478
+ sdkTableEnd,
479
+ lazy,
480
+ KEEP_WASM_NAMES
481
+ ])
482
+ ).update(bytes).digest("hex") : createHash("sha256").update(
398
483
  JSON.stringify([
399
484
  loweringCache.compilerDigest,
400
485
  optimize,
@@ -403,7 +488,7 @@ async function linkSwiftAppModule(options) {
403
488
  lazy,
404
489
  KEEP_WASM_NAMES
405
490
  ])
406
- ).update(bytes).digest("hex");
491
+ ).update(bytes).digest("hex"));
407
492
  return {
408
493
  linkage,
409
494
  async lower() {
@@ -1066,7 +1151,8 @@ function createSwiftSdkBinding(linkage, sdk, usage, projection) {
1066
1151
  bindSwiftAppModule(linkage, sdk),
1067
1152
  selectSwiftSdkData(sdk, usage, linkage, projection)
1068
1153
  ]);
1069
- return { bytes, sha256: createHash("sha256").update(bytes).digest("hex") };
1154
+ const sha256 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : createHash("sha256").update(bytes).digest("hex");
1155
+ return { bytes, sha256 };
1070
1156
  }
1071
1157
  function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
1072
1158
  const map = readWasmLinkMap(mapFile, false);
@@ -1622,6 +1708,7 @@ export {
1622
1708
  readSwiftSdkUsage,
1623
1709
  selectSwiftSdkData,
1624
1710
  swiftAppModuleInputs,
1711
+ swiftAppModuleThunkSection,
1625
1712
  swiftSdkProjectionSpans,
1626
1713
  writeSwiftSdkAppLink
1627
1714
  };
@@ -1,10 +1,9 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_APP_TABLE_BASE,
5
5
  SWIFT_SDK_IMAGE_BUNDLE,
6
6
  SWIFT_SDK_IMAGE_FILES,
7
- SWIFT_SDK_IMAGE_VERSION,
8
7
  SWIFT_SDK_MEMORY_BASE,
9
8
  SWIFT_SDK_PIECE_FIELDS,
10
9
  buildSwiftSdkImage,
@@ -15,27 +14,26 @@ import {
15
14
  swiftSdkImageFile,
16
15
  swiftSdkImageKey,
17
16
  swiftSdkImageProducts
18
- } from "./chunk-6MNE57DC.mjs";
19
- import "./chunk-GP3KL2GC.mjs";
20
- import "./chunk-EI7CZDMR.mjs";
21
- import "./chunk-EIOVKQ2C.mjs";
22
- import "./chunk-4BJIJ3GP.mjs";
23
- import "./chunk-RLWTJ6II.mjs";
24
- import "./chunk-XOAOND7F.mjs";
25
- import "./chunk-4GNQG2GT.mjs";
26
- import "./chunk-NOM66H2G.mjs";
27
- import "./chunk-KPG4FUTY.mjs";
28
- import "./chunk-V2CHR3OI.mjs";
29
- import "./chunk-RLWITQ5C.mjs";
30
- import "./chunk-B4APPUTT.mjs";
31
- import "./chunk-UCW7ITXE.mjs";
32
- import "./chunk-CXNXKUNJ.mjs";
17
+ } from "./chunk-ULHG6CND.mjs";
18
+ import "./chunk-A66VNSO6.mjs";
19
+ import "./chunk-JVEJLPJC.mjs";
20
+ import "./chunk-2LDG7OD4.mjs";
21
+ import "./chunk-JRU2VXUU.mjs";
22
+ import "./chunk-LJYNZ5HM.mjs";
23
+ import "./chunk-DVMKYLDN.mjs";
24
+ import "./chunk-A4R4YGFJ.mjs";
25
+ import "./chunk-Q5NI4L3Z.mjs";
26
+ import "./chunk-OCCZJOSA.mjs";
27
+ import "./chunk-R4FFTWPL.mjs";
28
+ import "./chunk-7Z7YJ4FU.mjs";
29
+ import "./chunk-SRIRVPNX.mjs";
30
+ import "./chunk-KA4AQDVF.mjs";
31
+ import "./chunk-P542MMIN.mjs";
33
32
  export {
34
33
  SWIFT_SDK_APP_MEMORY_BASE,
35
34
  SWIFT_SDK_APP_TABLE_BASE,
36
35
  SWIFT_SDK_IMAGE_BUNDLE,
37
36
  SWIFT_SDK_IMAGE_FILES,
38
- SWIFT_SDK_IMAGE_VERSION,
39
37
  SWIFT_SDK_MEMORY_BASE,
40
38
  SWIFT_SDK_PIECE_FIELDS,
41
39
  buildSwiftSdkImage,
@@ -1,15 +1,15 @@
1
- /*! peach v0.1.2623 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  withSwiftRootLock
4
- } from "./chunk-EI7CZDMR.mjs";
4
+ } from "./chunk-JVEJLPJC.mjs";
5
5
  import {
6
6
  swiftCacheDir,
7
7
  windowAdmission
8
- } from "./chunk-4GNQG2GT.mjs";
8
+ } from "./chunk-A4R4YGFJ.mjs";
9
9
  import {
10
10
  isRecord
11
- } from "./chunk-UCW7ITXE.mjs";
12
- import "./chunk-CXNXKUNJ.mjs";
11
+ } from "./chunk-KA4AQDVF.mjs";
12
+ import "./chunk-P542MMIN.mjs";
13
13
 
14
14
  // src/swift-sdk-image-producer.ts
15
15
  import { execFile, execFileSync } from "node:child_process";