peachsim 0.1.2773 → 0.1.2775

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 (148) 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 +318 -199
  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-3SGU25AX.mjs → acorn-CTIC3GCU.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-KMMFDGYA.mjs → chunk-2YTHEKWJ.mjs} +1 -1
  28. package/dist-lib/esm-chunks/{chunk-2HWUPAOD.mjs → chunk-3WU4YTJR.mjs} +205 -166
  29. package/dist-lib/esm-chunks/{chunk-ORGP6SSO.mjs → chunk-4B46TF64.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-QMI7ECNF.mjs → chunk-C5EU2DRL.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-DFVWY2BW.mjs → chunk-CFNSLWMQ.mjs} +4 -4
  32. package/dist-lib/esm-chunks/{chunk-HN7CHPZK.mjs → chunk-E6ULRDAP.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-IQF674WE.mjs → chunk-ESP2U4IX.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-5DQRSOJ5.mjs → chunk-ESWEEZZP.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-4FVDW5QX.mjs → chunk-FBN2C43P.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-NH3CEIBN.mjs → chunk-FVUN2533.mjs} +3 -3
  37. package/dist-lib/esm-chunks/{chunk-IM2IAOAZ.mjs → chunk-GKKZLYBA.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-SZ7TVJHH.mjs → chunk-H5TBKFDB.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-GSZLZNZM.mjs → chunk-ITTQHQD5.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-XXLSXSUK.mjs → chunk-JERE5CAK.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-WBPJJXMA.mjs → chunk-MJSKVK7E.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-Q2EEH42W.mjs → chunk-NV5NLKKN.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-G5TS3L6A.mjs → chunk-RGOPQX37.mjs} +6 -6
  44. package/dist-lib/esm-chunks/{chunk-KEVJJ3QT.mjs → chunk-S47B7YHJ.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-FRPS6V6P.mjs → chunk-SK4FQLNJ.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-YZRKIUVZ.mjs → chunk-TE3WHBF3.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-ANTOZ3UC.mjs → chunk-W42DUKWD.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-DYKZYFHH.mjs → chunk-WB5OWF4G.mjs} +5 -5
  49. package/dist-lib/esm-chunks/{chunk-KZ2NH7C4.mjs → chunk-XMBGLLON.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-MRQ72NMR.mjs → chunk-YRKGWASL.mjs} +6 -6
  51. package/dist-lib/esm-chunks/{metro-layout-parser-5MEY33AK.mjs → metro-layout-parser-2RQ3WC37.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-3FLCNBQT.mjs → swift-package-prebuilt-L5SWVH6U.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-PPJ4LUOW.mjs → swift-sdk-app-module-5SWDBTBY.mjs} +107 -25
  54. package/dist-lib/esm-chunks/{swift-sdk-image-L5MERITP.mjs → swift-sdk-image-OOSMI47A.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-IILRYXVN.mjs → swift-sdk-image-producer-DL4VEBXN.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +318 -199
  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 +4327 -4209
  61. package/dist-lib/host/fetch-proxy-handler.cjs +343 -340
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +86 -86
  87. package/dist-lib/public-origins-lib.json +96 -96
  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 +2912 -2794
  95. package/dist-lib/swift-compile.cjs +314 -195
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -15
  123. package/dist-types/packages/peach-engine/src/ios/flex-interaction.d.ts +0 -1
  124. package/dist-types/packages/peach-engine/src/react-native/AppState.d.ts +0 -1
  125. package/dist-types/packages/peach-engine/src/react-native/Keyboard.d.ts +0 -1
  126. package/dist-types/packages/peach-kit/src/ring-mode-state.d.ts +0 -1
  127. package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +0 -31
  128. package/package.json +1 -1
  129. package/src/assetCatalogContract.ts +0 -6
  130. package/src/expo-pod-prebuilt.ts +0 -63
  131. package/src/native-package-slice.ts +0 -2
  132. package/src/podfile-cocoapods.ts +0 -5
  133. package/src/runtime-assets.ts +0 -9
  134. package/src/sfSymbolMetricsContract.ts +51 -23
  135. package/src/swift-compile.ts +9 -6
  136. package/src/swift-distribution-mirror.ts +16 -5
  137. package/src/swift-guest-compile.ts +18 -7
  138. package/src/swift-guest-link.ts +0 -9
  139. package/src/swift-guest-projection-storage.ts +15 -2
  140. package/src/swift-guest-projection.ts +1 -46
  141. package/src/swift-guest-runtime-plan.ts +4 -80
  142. package/src/swift-header-compiler.ts +24 -9
  143. package/src/swift-sdk-app-module.ts +113 -10
  144. package/src/swift-wasm-prune.ts +0 -5
  145. package/src/swiftRuntimeProductContract.ts +1 -0
  146. package/src/swiftSdkLinkContract.ts +10 -0
  147. package/src/wasm-narrow-boundary.ts +0 -13
  148. package/src/wasm-lazy-split-tool.ts +0 -210
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/assetCatalogContract.ts
4
4
  function isSwiftImageVariants(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  DARWIN_RECORDS_PREFIX,
4
4
  KEEP_WASM_NAMES,
@@ -31,23 +31,23 @@ import {
31
31
  swiftSdkImageScope,
32
32
  unslottedFunctions,
33
33
  wasmSections
34
- } from "./chunk-2HWUPAOD.mjs";
34
+ } from "./chunk-3WU4YTJR.mjs";
35
35
  import {
36
36
  withSwiftRootLock,
37
37
  withSwiftRootReadHolds
38
- } from "./chunk-5DQRSOJ5.mjs";
38
+ } from "./chunk-ESWEEZZP.mjs";
39
39
  import {
40
40
  swiftDistributionAt,
41
41
  swiftModuleDigest,
42
42
  swiftModuleToolchain,
43
43
  swiftSdkPaths
44
- } from "./chunk-MRQ72NMR.mjs";
44
+ } from "./chunk-YRKGWASL.mjs";
45
45
  import {
46
46
  SWIFT_WASM_TRIPLE,
47
47
  refreshSwiftCacheHold,
48
48
  sourceSwiftCheckout,
49
49
  swiftCacheDir
50
- } from "./chunk-4FVDW5QX.mjs";
50
+ } from "./chunk-FBN2C43P.mjs";
51
51
 
52
52
  // src/swift-sdk-image.ts
53
53
  import { execFile } from "node:child_process";
@@ -233,7 +233,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
233
233
  const existing = cached(directory, key);
234
234
  if (existing) return existing;
235
235
  if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
236
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-IILRYXVN.mjs");
236
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-DL4VEBXN.mjs");
237
237
  await produceSwiftSdkImage({
238
238
  moduleRoot,
239
239
  key,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,21 +1,21 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  LAUNCH_METADATA_KEYS,
4
4
  LAUNCH_METADATA_KEYS_PATH
5
- } from "./chunk-GSZLZNZM.mjs";
5
+ } from "./chunk-ITTQHQD5.mjs";
6
6
  import {
7
7
  cacheDir,
8
8
  parseSwiftDistributionLock,
9
9
  readActiveRuntime,
10
10
  runtimeDir
11
- } from "./chunk-MRQ72NMR.mjs";
11
+ } from "./chunk-YRKGWASL.mjs";
12
12
  import {
13
13
  SWIFT_WASM_TRIPLE,
14
14
  registerSwiftHostCompiler
15
- } from "./chunk-4FVDW5QX.mjs";
15
+ } from "./chunk-FBN2C43P.mjs";
16
16
  import {
17
17
  isRecord
18
- } from "./chunk-KMMFDGYA.mjs";
18
+ } from "./chunk-2YTHEKWJ.mjs";
19
19
 
20
20
  // src/swift-distribution.ts
21
21
  import { execFile as execFile2 } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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-4FVDW5QX.mjs";
15
+ } from "./chunk-FBN2C43P.mjs";
16
16
  import {
17
17
  isSwiftResourcePath
18
- } from "./chunk-KZ2NH7C4.mjs";
18
+ } from "./chunk-XMBGLLON.mjs";
19
19
  import {
20
20
  swiftManifestDeclarations
21
- } from "./chunk-KEVJJ3QT.mjs";
21
+ } from "./chunk-S47B7YHJ.mjs";
22
22
  import {
23
23
  isRecord
24
- } from "./chunk-KMMFDGYA.mjs";
24
+ } from "./chunk-2YTHEKWJ.mjs";
25
25
  import {
26
26
  __publicField
27
- } from "./chunk-Q2EEH42W.mjs";
27
+ } from "./chunk-NV5NLKKN.mjs";
28
28
 
29
29
  // src/write-build-file.ts
30
30
  import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./chunk-Q2EEH42W.mjs";
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./chunk-NV5NLKKN.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-3SGU25AX.mjs");
11
+ const { Parser } = await import("./acorn-CTIC3GCU.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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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-2HWUPAOD.mjs";
8
- import "./chunk-5DQRSOJ5.mjs";
7
+ } from "./chunk-3WU4YTJR.mjs";
8
+ import "./chunk-ESWEEZZP.mjs";
9
9
  import {
10
10
  swiftDistributionAt,
11
11
  swiftImportNames
12
- } from "./chunk-MRQ72NMR.mjs";
13
- import "./chunk-4FVDW5QX.mjs";
12
+ } from "./chunk-YRKGWASL.mjs";
13
+ import "./chunk-FBN2C43P.mjs";
14
14
  import {
15
15
  SWIFT_REMOTE_PACKAGES_DIR
16
- } from "./chunk-KZ2NH7C4.mjs";
16
+ } from "./chunk-XMBGLLON.mjs";
17
17
  import {
18
18
  manifestCalls
19
- } from "./chunk-KEVJJ3QT.mjs";
20
- import "./chunk-SZ7TVJHH.mjs";
21
- import "./chunk-ANTOZ3UC.mjs";
22
- import "./chunk-IM2IAOAZ.mjs";
23
- import "./chunk-KMMFDGYA.mjs";
24
- import "./chunk-Q2EEH42W.mjs";
19
+ } from "./chunk-S47B7YHJ.mjs";
20
+ import "./chunk-H5TBKFDB.mjs";
21
+ import "./chunk-W42DUKWD.mjs";
22
+ import "./chunk-GKKZLYBA.mjs";
23
+ import "./chunk-2YTHEKWJ.mjs";
24
+ import "./chunk-NV5NLKKN.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.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (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-G5TS3L6A.mjs";
7
+ } from "./chunk-RGOPQX37.mjs";
8
8
  import {
9
9
  ADDEND_RELOCATIONS,
10
10
  KEEP_WASM_NAMES,
@@ -28,6 +28,7 @@ import {
28
28
  objcCategoryNeedsFamily,
29
29
  passiveSegments,
30
30
  placeGuestLazyFunctions,
31
+ planGuestProjectionRegions,
31
32
  projectOutputFile,
32
33
  readArMembers,
33
34
  readSwiftPrunedLinkResponse,
@@ -35,22 +36,22 @@ import {
35
36
  wasmReader,
36
37
  wasmSections,
37
38
  writeWasmCustomSection
38
- } from "./chunk-2HWUPAOD.mjs";
39
- import "./chunk-5DQRSOJ5.mjs";
40
- import "./chunk-DYKZYFHH.mjs";
41
- import "./chunk-GSZLZNZM.mjs";
42
- import "./chunk-XXLSXSUK.mjs";
43
- import "./chunk-MRQ72NMR.mjs";
39
+ } from "./chunk-3WU4YTJR.mjs";
40
+ import "./chunk-ESWEEZZP.mjs";
41
+ import "./chunk-WB5OWF4G.mjs";
42
+ import "./chunk-ITTQHQD5.mjs";
43
+ import "./chunk-JERE5CAK.mjs";
44
+ import "./chunk-YRKGWASL.mjs";
44
45
  import {
45
46
  SWIFT_WASM_TRIPLE
46
- } from "./chunk-4FVDW5QX.mjs";
47
- import "./chunk-KZ2NH7C4.mjs";
48
- import "./chunk-KEVJJ3QT.mjs";
49
- import "./chunk-SZ7TVJHH.mjs";
50
- import "./chunk-ANTOZ3UC.mjs";
51
- import "./chunk-IM2IAOAZ.mjs";
52
- import "./chunk-KMMFDGYA.mjs";
53
- import "./chunk-Q2EEH42W.mjs";
47
+ } from "./chunk-FBN2C43P.mjs";
48
+ import "./chunk-XMBGLLON.mjs";
49
+ import "./chunk-S47B7YHJ.mjs";
50
+ import "./chunk-H5TBKFDB.mjs";
51
+ import "./chunk-W42DUKWD.mjs";
52
+ import "./chunk-GKKZLYBA.mjs";
53
+ import "./chunk-2YTHEKWJ.mjs";
54
+ import "./chunk-NV5NLKKN.mjs";
54
55
 
55
56
  // src/swift-sdk-app-module.ts
56
57
  import { execFile } from "node:child_process";
@@ -463,7 +464,7 @@ async function linkSwiftAppModule(options) {
463
464
  { maxBuffer: 64 << 20, ...options.project }
464
465
  );
465
466
  const module = path.join(work, "app.module.wasm");
466
- const { bytes, linkage } = resolveSdkReferences(
467
+ const { bytes, linkage, staticEnd, globalValues } = resolveSdkReferences(
467
468
  readFileSync(
468
469
  options.project ? projectOutputFile(work, linked, options.project) : linked
469
470
  ),
@@ -496,6 +497,8 @@ async function linkSwiftAppModule(options) {
496
497
  ).update(bytes).digest("hex"));
497
498
  return {
498
499
  linkage,
500
+ staticEnd,
501
+ globalValues,
499
502
  async lower() {
500
503
  const receipt = loweringCache && `${loweringCache.file}.key`;
501
504
  if (loweringCache && receipt && existsSync(receipt) && existsSync(loweringCache.file) && readFileSync(receipt, "utf8") === loweringKey) {
@@ -1019,6 +1022,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
1019
1022
  const er = wasmReader(bytes, exportSection.start);
1020
1023
  const exportCount = er.u();
1021
1024
  const originalExportsStart = er.at;
1025
+ let staticEnd = 0;
1022
1026
  for (let i = 0; i < exportCount; i++) {
1023
1027
  const name = er.name();
1024
1028
  const kind = er.byte();
@@ -1031,8 +1035,10 @@ function resolveSdkReferences(source, sdk, forwarders) {
1031
1035
  const op = raw.byte();
1032
1036
  const value = op === 35 ? BigInt(raw.u()) : raw.s();
1033
1037
  raw.skip(1);
1034
- if (j === index && value > BigInt(SWIFT_SDK_MEMORY_BASE))
1038
+ if (j !== index) continue;
1039
+ if (value <= 0n || value > BigInt(SWIFT_SDK_MEMORY_BASE))
1035
1040
  throw new Error("Swift app exceeds its reserved static memory range");
1041
+ staticEnd = Number(value);
1036
1042
  }
1037
1043
  }
1038
1044
  const exportParts = [
@@ -1069,7 +1075,12 @@ function resolveSdkReferences(source, sdk, forwarders) {
1069
1075
  parts.push(bytes.subarray(s.offset, s.end));
1070
1076
  }
1071
1077
  }
1072
- return { bytes: Buffer.concat(parts), linkage };
1078
+ return {
1079
+ bytes: Buffer.concat(parts),
1080
+ linkage,
1081
+ staticEnd,
1082
+ globalValues: [...new Set(got.values())]
1083
+ };
1073
1084
  }
1074
1085
  function expandSdkRelocations(bytes, section, patches) {
1075
1086
  patches.sort((a, b) => a.at - b.at);
@@ -1116,25 +1127,94 @@ function bindSwiftAppModule(linkage, sdk) {
1116
1127
  throw new Error(`SDK image has no compatible function ${name}`);
1117
1128
  return slot;
1118
1129
  });
1119
- const values = BigInt64Array.from(linkage.values, ({ kind, name, addend }) => {
1130
+ const projection = linkage.replayProjection?.sdk === sdk.key ? void 0 : linkage.replayProjection;
1131
+ const optional = projection && new Set(projection.lookupValues);
1132
+ const values = linkage.values.map(({ kind, name, addend }, index) => {
1120
1133
  const value = kind === "function" ? functions[name] : kind === "address" ? data[name] : tls[name];
1134
+ if (value === void 0 && optional?.has(index)) return 0n;
1121
1135
  if (value === void 0 || kind === "tls" && tls.errno === void 0)
1122
1136
  throw new Error(`SDK image has no ${kind} symbol ${name}`);
1123
1137
  return BigInt(value + addend - (kind === "tls" ? tls.errno : 0));
1124
1138
  });
1139
+ const fixups = projection ? appendReplayProjectionFixups(linkage.data, values, projection, sdk) : linkage.data;
1125
1140
  const words = Uint32Array.from([
1126
1141
  values.length,
1127
1142
  slots.length,
1128
- linkage.data.length,
1143
+ fixups.length,
1129
1144
  linkage.tls.length
1130
1145
  ]);
1131
1146
  return Buffer.concat([
1132
- ...[words, values, slots, Uint32Array.from(linkage.tls)].map(
1147
+ ...[words, BigInt64Array.from(values), slots, Uint32Array.from(linkage.tls)].map(
1133
1148
  (part) => new Uint8Array(part.buffer)
1134
1149
  ),
1135
- encodeNativeSdkFixups(linkage.data)
1150
+ encodeNativeSdkFixups(fixups)
1136
1151
  ]);
1137
1152
  }
1153
+ function appendReplayProjectionFixups(data, values, projection, sdk) {
1154
+ const { countAddresses, images, staticEnd } = projection;
1155
+ if (!Number.isSafeInteger(staticEnd) || staticEnd < SWIFT_SDK_APP_MEMORY_BASE || staticEnd >= SWIFT_SDK_MEMORY_BASE || countAddresses.length !== images.length || new Set(countAddresses).size !== images.length)
1156
+ throw new Error("invalid retained app projection storage");
1157
+ const objects = new Map(projection.objects);
1158
+ const products = new Map(projection.products);
1159
+ const sdkSpans = swiftSdkProjectionSpans(
1160
+ sdk,
1161
+ (object, product) => objects.get(object) ?? products.get(product)
1162
+ );
1163
+ const regions = planGuestProjectionRegions(
1164
+ images,
1165
+ images.map(() => ({
1166
+ regions: Number.MAX_SAFE_INTEGER,
1167
+ memoryProtection: { initial: 3, maximum: 3 },
1168
+ tableProtection: { initial: 5, maximum: 5 }
1169
+ })),
1170
+ [
1171
+ ...images.flatMap(
1172
+ ({ regions: regions2 }, image) => regions2.map(({ space, address, length }) => ({ image, space, address, length }))
1173
+ ),
1174
+ ...sdkSpans
1175
+ ]
1176
+ );
1177
+ const fixups = [...data];
1178
+ const literals = /* @__PURE__ */ new Map();
1179
+ const add = (address, width, value) => {
1180
+ let index = literals.get(value);
1181
+ if (index === void 0) {
1182
+ index = values.length;
1183
+ literals.set(value, index);
1184
+ values.push(value);
1185
+ }
1186
+ fixups.push(address, width, index);
1187
+ };
1188
+ const name = Math.ceil(staticEnd / 8) * 8;
1189
+ let next = name + 8;
1190
+ if (next > SWIFT_SDK_MEMORY_BASE)
1191
+ throw new Error("rebound SDK projection exceeds the app static memory reservation");
1192
+ add(name, 8, Buffer.from("__WASM\0\0").readBigInt64LE());
1193
+ for (const [image, { regions: ranges }] of regions.entries()) {
1194
+ const count = countAddresses[image];
1195
+ if (!Number.isSafeInteger(count) || count < SWIFT_SDK_APP_MEMORY_BASE || count + 16 > staticEnd || count % 8 !== 0)
1196
+ throw new Error("retained app projection record is out of range");
1197
+ add(count, 4, BigInt(ranges.length));
1198
+ add(count + 8, 8, BigInt(next));
1199
+ for (const range of ranges) {
1200
+ if (next + 40 > SWIFT_SDK_MEMORY_BASE)
1201
+ throw new Error(
1202
+ "rebound SDK projection exceeds the app static memory reservation"
1203
+ );
1204
+ add(next, 8, BigInt(name));
1205
+ add(
1206
+ next + 8,
1207
+ 8,
1208
+ BigInt(range.address) << 32n | BigInt(range.space === "function-table")
1209
+ );
1210
+ add(next + 16, 8, BigInt(range.initialProtection) << 32n | BigInt(range.length));
1211
+ add(next + 24, 8, BigInt(range.maximumProtection));
1212
+ add(next + 32, 8, 0n);
1213
+ next += 40;
1214
+ }
1215
+ }
1216
+ return fixups;
1217
+ }
1138
1218
  var SCANNED = /* @__PURE__ */ new Set([
1139
1219
  "swift5_protocols",
1140
1220
  "swift5_protocol_conformances",
@@ -1438,8 +1518,10 @@ function selectSwiftSdkData(sdk, usage, linkage, projection) {
1438
1518
  const { functions, data } = sdk.sdkInterface;
1439
1519
  for (const { name } of linkage.functions) boundSlots.add(functions[name]);
1440
1520
  for (const { kind, name } of linkage.values) {
1441
- if (kind === "function") boundSlots.add(functions[name]);
1442
- else if (kind === "address") visit(data[name]);
1521
+ const address2 = kind === "function" ? functions[name] : data[name];
1522
+ if (address2 === void 0) continue;
1523
+ if (kind === "function") boundSlots.add(address2);
1524
+ else if (kind === "address") visit(address2);
1443
1525
  }
1444
1526
  }
1445
1527
  const slots = block("functionSlots");
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -13,21 +13,21 @@ import {
13
13
  swiftSdkImageFile,
14
14
  swiftSdkImageKey,
15
15
  swiftSdkImageProducts
16
- } from "./chunk-G5TS3L6A.mjs";
17
- import "./chunk-2HWUPAOD.mjs";
18
- import "./chunk-5DQRSOJ5.mjs";
19
- import "./chunk-DYKZYFHH.mjs";
20
- import "./chunk-GSZLZNZM.mjs";
21
- import "./chunk-XXLSXSUK.mjs";
22
- import "./chunk-MRQ72NMR.mjs";
23
- import "./chunk-4FVDW5QX.mjs";
24
- import "./chunk-KZ2NH7C4.mjs";
25
- import "./chunk-KEVJJ3QT.mjs";
26
- import "./chunk-SZ7TVJHH.mjs";
27
- import "./chunk-ANTOZ3UC.mjs";
28
- import "./chunk-IM2IAOAZ.mjs";
29
- import "./chunk-KMMFDGYA.mjs";
30
- import "./chunk-Q2EEH42W.mjs";
16
+ } from "./chunk-RGOPQX37.mjs";
17
+ import "./chunk-3WU4YTJR.mjs";
18
+ import "./chunk-ESWEEZZP.mjs";
19
+ import "./chunk-WB5OWF4G.mjs";
20
+ import "./chunk-ITTQHQD5.mjs";
21
+ import "./chunk-JERE5CAK.mjs";
22
+ import "./chunk-YRKGWASL.mjs";
23
+ import "./chunk-FBN2C43P.mjs";
24
+ import "./chunk-XMBGLLON.mjs";
25
+ import "./chunk-S47B7YHJ.mjs";
26
+ import "./chunk-H5TBKFDB.mjs";
27
+ import "./chunk-W42DUKWD.mjs";
28
+ import "./chunk-GKKZLYBA.mjs";
29
+ import "./chunk-2YTHEKWJ.mjs";
30
+ import "./chunk-NV5NLKKN.mjs";
31
31
  export {
32
32
  SWIFT_SDK_APP_MEMORY_BASE,
33
33
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -1,15 +1,15 @@
1
- /*! peach v0.1.2773 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  withSwiftRootLock
4
- } from "./chunk-5DQRSOJ5.mjs";
4
+ } from "./chunk-ESWEEZZP.mjs";
5
5
  import {
6
6
  swiftCacheDir,
7
7
  windowAdmission
8
- } from "./chunk-4FVDW5QX.mjs";
8
+ } from "./chunk-FBN2C43P.mjs";
9
9
  import {
10
10
  isRecord
11
- } from "./chunk-KMMFDGYA.mjs";
12
- import "./chunk-Q2EEH42W.mjs";
11
+ } from "./chunk-2YTHEKWJ.mjs";
12
+ import "./chunk-NV5NLKKN.mjs";
13
13
 
14
14
  // src/swift-sdk-image-producer.ts
15
15
  import { execFile, execFileSync } from "node:child_process";