peachsim 0.1.2793 → 0.1.2794

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 (132) 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 +1157 -993
  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-Q5VJTSKK.mjs → acorn-A7OMJDVK.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-4P3IOCZK.mjs → chunk-2TCGEMEV.mjs} +5 -5
  28. package/dist-lib/esm-chunks/{chunk-TADAJDSF.mjs → chunk-35HEHEYA.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-GVQYPMGV.mjs → chunk-5RQ3U7WK.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-SCUA4P4G.mjs → chunk-7QNWHCMJ.mjs} +1116 -1056
  31. package/dist-lib/esm-chunks/{chunk-ZU4TTBLM.mjs → chunk-ANIC22U3.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-6HQZNAEU.mjs → chunk-AW4Z3K2U.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-JMR6F3DC.mjs → chunk-B3E5ZI2D.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-PTIDPELK.mjs → chunk-CIFEHSEA.mjs} +2 -2
  35. package/dist-lib/esm-chunks/{chunk-A2KA5HK7.mjs → chunk-CIR4VZ22.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-XCBOY63C.mjs → chunk-DLEQ5NZ5.mjs} +4 -4
  37. package/dist-lib/esm-chunks/{chunk-BEO5Q2GJ.mjs → chunk-E6KA576K.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-TS7JWC6Z.mjs → chunk-GDITZ3K2.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-2V3WPUVP.mjs → chunk-GHGDWJY3.mjs} +6 -6
  40. package/dist-lib/esm-chunks/{chunk-SQ3UKGNC.mjs → chunk-K7RLWF5X.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-6LTBRJF4.mjs → chunk-KVFRYFZI.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-YEBPOLJT.mjs → chunk-NKJ67PFZ.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-NMSKAQXB.mjs → chunk-O6HHWO4Y.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-U23E4H6F.mjs → chunk-OS6YJU3W.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-ELHDFPTV.mjs → chunk-PRYC6EMT.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-COIKWBXT.mjs → chunk-R6ES6QCH.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-5LYBGU62.mjs → chunk-TJULYSLY.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-SSZA5C37.mjs → chunk-V6BE34Q3.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-RVJCN7O6.mjs → chunk-Y6YMRYNX.mjs} +64 -21
  50. package/dist-lib/esm-chunks/{chunk-6YRIQX2Q.mjs → chunk-ZTDPCBGG.mjs} +3 -3
  51. package/dist-lib/esm-chunks/{metro-layout-parser-26WDQMLR.mjs → metro-layout-parser-WG2ITRQD.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-DOKKJSSS.mjs → swift-package-prebuilt-DN7G5XKR.mjs} +16 -13
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-I4OZ7CGZ.mjs → swift-sdk-app-module-3DB4F4Y2.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-IPXHOUXE.mjs → swift-sdk-image-JTYM3OQY.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-6P6QZQGS.mjs → swift-sdk-image-producer-QQUODPXF.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +1099 -935
  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 +3742 -3452
  61. package/dist-lib/host/fetch-proxy-handler.cjs +121 -117
  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 +3 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +85 -85
  87. package/dist-lib/public-origins-lib.json +76 -76
  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 +2027 -1737
  95. package/dist-lib/swift-compile.cjs +1056 -963
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/engine/scene-native-binding.d.ts +2 -2
  123. package/dist-types/packages/peach-engine/src/render-worker/native-hot-ops.d.ts +1 -1
  124. package/dist-types/packages/peach-engine/src/render-worker/scene-packet-feed.d.ts +2 -0
  125. package/package.json +1 -1
  126. package/src/one-native-controls-package.ts +56 -54
  127. package/src/swift-compile.ts +1029 -963
  128. package/src/swift-compiler-digest.ts +79 -4
  129. package/src/swift-host.ts +246 -91
  130. package/src/swift-package-prebuilt.ts +6 -3
  131. package/src/swift-sdk-surface.ts +75 -20
  132. package/src/swift-startup-split.ts +134 -12
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swiftContract.ts
4
4
  function isSwiftSourceLinkGraph(value) {
@@ -1,9 +1,9 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  killOrphanedProcessGroup,
4
4
  readProcessTable,
5
5
  terminateProcessGroup
6
- } from "./chunk-A2KA5HK7.mjs";
6
+ } from "./chunk-CIR4VZ22.mjs";
7
7
 
8
8
  // src/swift-root-lock.ts
9
9
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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,13 +1,13 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isSwiftImageVariants
4
- } from "./chunk-6HQZNAEU.mjs";
4
+ } from "./chunk-AW4Z3K2U.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./chunk-6LTBRJF4.mjs";
7
+ } from "./chunk-KVFRYFZI.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./chunk-SQ3UKGNC.mjs";
10
+ } from "./chunk-K7RLWF5X.mjs";
11
11
 
12
12
  // src/android-string-value.ts
13
13
  function compileAndroidStringValue(text, where) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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-SCUA4P4G.mjs";
34
+ } from "./chunk-7QNWHCMJ.mjs";
35
35
  import {
36
36
  withSwiftRootLock,
37
37
  withSwiftRootReadHolds
38
- } from "./chunk-PTIDPELK.mjs";
38
+ } from "./chunk-CIFEHSEA.mjs";
39
39
  import {
40
40
  swiftDistributionAt,
41
41
  swiftModuleDigest,
42
42
  swiftModuleToolchain,
43
43
  swiftSdkPaths
44
- } from "./chunk-RVJCN7O6.mjs";
44
+ } from "./chunk-Y6YMRYNX.mjs";
45
45
  import {
46
46
  SWIFT_WASM_TRIPLE,
47
47
  refreshSwiftCacheHold,
48
48
  sourceSwiftCheckout,
49
49
  swiftCacheDir
50
- } from "./chunk-A2KA5HK7.mjs";
50
+ } from "./chunk-CIR4VZ22.mjs";
51
51
 
52
52
  // src/swift-sdk-image.ts
53
53
  import { execFile } from "node:child_process";
@@ -250,7 +250,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
250
250
  if (existing) return existing;
251
251
  const distribution = swiftDistributionAt(moduleRoot);
252
252
  if (!options?.producer && !required.length && !distribution && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
253
- const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-6P6QZQGS.mjs");
253
+ const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-QQUODPXF.mjs");
254
254
  await produceSwiftSdkImage({
255
255
  moduleRoot,
256
256
  key,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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-A2KA5HK7.mjs";
15
+ } from "./chunk-CIR4VZ22.mjs";
16
16
  import {
17
17
  isSwiftResourcePath
18
- } from "./chunk-JMR6F3DC.mjs";
18
+ } from "./chunk-B3E5ZI2D.mjs";
19
19
  import {
20
20
  swiftManifestDeclarations
21
- } from "./chunk-COIKWBXT.mjs";
21
+ } from "./chunk-R6ES6QCH.mjs";
22
22
  import {
23
23
  isRecord
24
- } from "./chunk-SQ3UKGNC.mjs";
24
+ } from "./chunk-K7RLWF5X.mjs";
25
25
  import {
26
26
  __publicField
27
- } from "./chunk-SSZA5C37.mjs";
27
+ } from "./chunk-V6BE34Q3.mjs";
28
28
 
29
29
  // src/write-build-file.ts
30
30
  import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
@@ -994,6 +994,7 @@ function swiftSharedSdkInputFiles(moduleRoot) {
994
994
  }
995
995
 
996
996
  // src/swift-sdk-surface.ts
997
+ import { AsyncLocalStorage } from "node:async_hooks";
997
998
  import { execFileSync as execFileSync3, spawnSync as spawnSync3 } from "node:child_process";
998
999
  import { createHash as createHash4, randomUUID } from "node:crypto";
999
1000
  import {
@@ -1489,7 +1490,19 @@ function swiftMacroPlugins(moduleRoot) {
1489
1490
  };
1490
1491
  }
1491
1492
  var linkedModuleDigests = /* @__PURE__ */ new Map();
1493
+ var moduleDigestScopes = new AsyncLocalStorage();
1494
+ function withSwiftModuleDigestScope(fn) {
1495
+ if (moduleDigestScopes.getStore()) return fn();
1496
+ return moduleDigestScopes.run(/* @__PURE__ */ new Map(), fn);
1497
+ }
1498
+ function clearSwiftModuleDigestScope(root) {
1499
+ const scope = moduleDigestScopes.getStore();
1500
+ if (!scope) return;
1501
+ if (root === void 0) scope.clear();
1502
+ else scope.delete(path8.resolve(root));
1503
+ }
1492
1504
  function clearLinkedModuleDigests(root) {
1505
+ clearSwiftModuleDigestScope(root);
1493
1506
  if (root === void 0) linkedModuleDigests.clear();
1494
1507
  else linkedModuleDigests.delete(root);
1495
1508
  }
@@ -1556,7 +1569,11 @@ function gitCleanModuleInputsKey(root, files) {
1556
1569
  for (const file of files) keyHash.update(file).update("\n");
1557
1570
  return keyHash.digest("hex");
1558
1571
  }
1559
- function swiftModuleDigest(root) {
1572
+ function swiftModuleEntry(root) {
1573
+ const scope = moduleDigestScopes.getStore();
1574
+ const key = path8.resolve(root);
1575
+ const scoped = scope?.get(key);
1576
+ if (scoped) return scoped;
1560
1577
  const files = swiftModuleInputFiles(root);
1561
1578
  const stampHash = createHash4("sha256");
1562
1579
  for (const file of files) {
@@ -1569,7 +1586,10 @@ function swiftModuleDigest(root) {
1569
1586
  }
1570
1587
  const stamp = stampHash.digest("hex");
1571
1588
  const cached = linkedModuleDigests.get(root);
1572
- if (cached?.stamp === stamp) return cached.digest;
1589
+ if (cached?.stamp === stamp) {
1590
+ scope?.set(key, cached);
1591
+ return cached;
1592
+ }
1573
1593
  const digestDir = path8.join(swiftCacheDir(), "swift-module-digests");
1574
1594
  const record = path8.join(
1575
1595
  digestDir,
@@ -1585,8 +1605,10 @@ function swiftModuleDigest(root) {
1585
1605
  const saved = JSON.parse(readFileSync4(record, "utf8"));
1586
1606
  if (saved && typeof saved === "object" && Reflect.get(saved, "stamp") === stamp && typeof Reflect.get(saved, "digest") === "string") {
1587
1607
  const digest2 = Buffer.from(String(Reflect.get(saved, "digest")), "hex");
1588
- linkedModuleDigests.set(root, { stamp, digest: digest2 });
1589
- return digest2;
1608
+ const entry2 = { stamp, digest: digest2 };
1609
+ linkedModuleDigests.set(root, entry2);
1610
+ scope?.set(key, entry2);
1611
+ return entry2;
1590
1612
  }
1591
1613
  }
1592
1614
  const gitKey = gitCleanModuleInputsKey(root, files);
@@ -1596,9 +1618,11 @@ function swiftModuleDigest(root) {
1596
1618
  if (saved && typeof saved === "object" && typeof Reflect.get(saved, "digest") === "string") {
1597
1619
  const hex2 = String(Reflect.get(saved, "digest"));
1598
1620
  const digest2 = Buffer.from(hex2, "hex");
1599
- linkedModuleDigests.set(root, { stamp, digest: digest2 });
1621
+ const entry2 = { stamp, digest: digest2 };
1622
+ linkedModuleDigests.set(root, entry2);
1623
+ scope?.set(key, entry2);
1600
1624
  writeRecord(record, JSON.stringify({ stamp, digest: hex2 }));
1601
- return digest2;
1625
+ return entry2;
1602
1626
  }
1603
1627
  }
1604
1628
  const hash = createHash4("sha256");
@@ -1610,10 +1634,15 @@ function swiftModuleDigest(root) {
1610
1634
  }
1611
1635
  const digest = hash.digest();
1612
1636
  const hex = digest.toString("hex");
1613
- linkedModuleDigests.set(root, { stamp, digest });
1637
+ const entry = { stamp, digest };
1638
+ linkedModuleDigests.set(root, entry);
1639
+ scope?.set(key, entry);
1614
1640
  writeRecord(record, JSON.stringify({ stamp, digest: hex }));
1615
1641
  if (gitRecord) writeRecord(gitRecord, JSON.stringify({ digest: hex }));
1616
- return digest;
1642
+ return entry;
1643
+ }
1644
+ function swiftModuleDigest(root) {
1645
+ return swiftModuleEntry(root).digest;
1617
1646
  }
1618
1647
  var compileSurfaces = /* @__PURE__ */ new WeakMap();
1619
1648
  function swiftCompileSurfaceDigest(root) {
@@ -1711,8 +1740,10 @@ function* swiftConditionalLines(contents2, available, defines) {
1711
1740
  }
1712
1741
  var importNamesCache = /* @__PURE__ */ new Map();
1713
1742
  function swiftImportNames(contents2, available, defines) {
1714
- if (available === void 0 && defines === void 0) {
1715
- const cached = importNamesCache.get(contents2);
1743
+ if (!contents2.includes("import")) return [];
1744
+ const definesKey = available === void 0 ? defines ? [...defines].sort().join("\0") : "" : void 0;
1745
+ if (definesKey !== void 0) {
1746
+ const cached = importNamesCache.get(definesKey)?.get(contents2);
1716
1747
  if (cached !== void 0) return cached;
1717
1748
  }
1718
1749
  const names = [];
@@ -1721,8 +1752,14 @@ function swiftImportNames(contents2, available, defines) {
1721
1752
  const name = SWIFT_IMPORT.exec(line)?.[1];
1722
1753
  if (name) names.push(name);
1723
1754
  }
1724
- if (available === void 0 && defines === void 0)
1725
- importNamesCache.set(contents2, names);
1755
+ if (definesKey !== void 0) {
1756
+ let bucket = importNamesCache.get(definesKey);
1757
+ if (!bucket) {
1758
+ bucket = /* @__PURE__ */ new Map();
1759
+ importNamesCache.set(definesKey, bucket);
1760
+ }
1761
+ bucket.set(contents2, names);
1762
+ }
1726
1763
  return names;
1727
1764
  }
1728
1765
  function swiftPeachModules(moduleRoot) {
@@ -2370,11 +2407,15 @@ function swiftCDefinedNames(sources) {
2370
2407
  }
2371
2408
  return names;
2372
2409
  }
2373
- function swiftModuleCompiler(root) {
2410
+ function swiftModuleRelease(root) {
2374
2411
  const pin = swiftDistributionAt(root) ?? JSON.parse(readFileSync4(path8.join(root, "toolchain.json"), "utf8"));
2412
+ return pin.release;
2413
+ }
2414
+ function swiftModuleCompiler(root) {
2415
+ const release = swiftModuleRelease(root);
2375
2416
  return {
2376
- release: pin.release,
2377
- toolchainBin: swiftCompiler(pin.release)
2417
+ release,
2418
+ toolchainBin: swiftCompiler(release)
2378
2419
  };
2379
2420
  }
2380
2421
  function swiftModuleToolchain(root) {
@@ -2757,6 +2798,8 @@ export {
2757
2798
  swiftCompileSdkOptions,
2758
2799
  swiftModuleInputFiles,
2759
2800
  swiftMacroPlugins,
2801
+ withSwiftModuleDigestScope,
2802
+ clearSwiftModuleDigestScope,
2760
2803
  clearLinkedModuleDigests,
2761
2804
  swiftModuleDigest,
2762
2805
  swiftCompileSurfaceDigest,
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SIM_LONG_PRESS_MAX_MS
4
- } from "./chunk-U23E4H6F.mjs";
4
+ } from "./chunk-OS6YJU3W.mjs";
5
5
  import {
6
6
  isRecord
7
- } from "./chunk-SQ3UKGNC.mjs";
7
+ } from "./chunk-K7RLWF5X.mjs";
8
8
 
9
9
  // ../peach-globals/src/globalsContract.ts
10
10
  var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./chunk-SSZA5C37.mjs";
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./chunk-V6BE34Q3.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-Q5VJTSKK.mjs");
11
+ const { Parser } = await import("./acorn-A7OMJDVK.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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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-SCUA4P4G.mjs";
8
- import "./chunk-PTIDPELK.mjs";
7
+ } from "./chunk-7QNWHCMJ.mjs";
8
+ import "./chunk-CIFEHSEA.mjs";
9
9
  import {
10
10
  swiftDistributionAt,
11
11
  swiftImportNames
12
- } from "./chunk-RVJCN7O6.mjs";
13
- import "./chunk-A2KA5HK7.mjs";
12
+ } from "./chunk-Y6YMRYNX.mjs";
13
+ import "./chunk-CIR4VZ22.mjs";
14
14
  import {
15
15
  SWIFT_REMOTE_PACKAGES_DIR
16
- } from "./chunk-JMR6F3DC.mjs";
16
+ } from "./chunk-B3E5ZI2D.mjs";
17
17
  import {
18
18
  manifestCalls
19
- } from "./chunk-COIKWBXT.mjs";
20
- import "./chunk-6HQZNAEU.mjs";
21
- import "./chunk-TS7JWC6Z.mjs";
22
- import "./chunk-NMSKAQXB.mjs";
23
- import "./chunk-SQ3UKGNC.mjs";
24
- import "./chunk-SSZA5C37.mjs";
19
+ } from "./chunk-R6ES6QCH.mjs";
20
+ import "./chunk-AW4Z3K2U.mjs";
21
+ import "./chunk-GDITZ3K2.mjs";
22
+ import "./chunk-O6HHWO4Y.mjs";
23
+ import "./chunk-K7RLWF5X.mjs";
24
+ import "./chunk-V6BE34Q3.mjs";
25
25
 
26
26
  // src/swift-package-prebuilt.ts
27
27
  import { createHash } from "node:crypto";
@@ -60,7 +60,10 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
60
60
  const calls = manifestCalls(manifest, ["target"]);
61
61
  const platform = /platforms:\s*\[\.iOS\("([\d.]+)"\)\]/.exec(manifest)?.[1];
62
62
  if (!platform) return [];
63
- const sdkModules = swiftAvailableModules(moduleRoot, toolchainBin);
63
+ const sdkModules = swiftAvailableModules(
64
+ moduleRoot,
65
+ typeof toolchainBin === "function" ? toolchainBin() : toolchainBin
66
+ );
64
67
  return selected.flatMap(([name, modules]) => {
65
68
  const prefix = `${SWIFT_REMOTE_PACKAGES_DIR}/${name}/`;
66
69
  const members = targets.filter(
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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-2V3WPUVP.mjs";
7
+ } from "./chunk-GHGDWJY3.mjs";
8
8
  import {
9
9
  ADDEND_RELOCATIONS,
10
10
  KEEP_WASM_NAMES,
@@ -36,26 +36,26 @@ import {
36
36
  wasmReader,
37
37
  wasmSections,
38
38
  writeWasmCustomSection
39
- } from "./chunk-SCUA4P4G.mjs";
40
- import "./chunk-PTIDPELK.mjs";
41
- import "./chunk-4P3IOCZK.mjs";
42
- import "./chunk-YEBPOLJT.mjs";
43
- import "./chunk-BEO5Q2GJ.mjs";
39
+ } from "./chunk-7QNWHCMJ.mjs";
40
+ import "./chunk-CIFEHSEA.mjs";
41
+ import "./chunk-2TCGEMEV.mjs";
42
+ import "./chunk-NKJ67PFZ.mjs";
43
+ import "./chunk-E6KA576K.mjs";
44
44
  import {
45
45
  encodeWasmName,
46
46
  encodeWasmNumber,
47
47
  encodeWasmSigned
48
- } from "./chunk-RVJCN7O6.mjs";
48
+ } from "./chunk-Y6YMRYNX.mjs";
49
49
  import {
50
50
  SWIFT_WASM_TRIPLE
51
- } from "./chunk-A2KA5HK7.mjs";
52
- import "./chunk-JMR6F3DC.mjs";
53
- import "./chunk-COIKWBXT.mjs";
54
- import "./chunk-6HQZNAEU.mjs";
55
- import "./chunk-TS7JWC6Z.mjs";
56
- import "./chunk-NMSKAQXB.mjs";
57
- import "./chunk-SQ3UKGNC.mjs";
58
- import "./chunk-SSZA5C37.mjs";
51
+ } from "./chunk-CIR4VZ22.mjs";
52
+ import "./chunk-B3E5ZI2D.mjs";
53
+ import "./chunk-R6ES6QCH.mjs";
54
+ import "./chunk-AW4Z3K2U.mjs";
55
+ import "./chunk-GDITZ3K2.mjs";
56
+ import "./chunk-O6HHWO4Y.mjs";
57
+ import "./chunk-K7RLWF5X.mjs";
58
+ import "./chunk-V6BE34Q3.mjs";
59
59
 
60
60
  // src/swift-sdk-app-module.ts
61
61
  import { execFile } from "node:child_process";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (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-2V3WPUVP.mjs";
17
- import "./chunk-SCUA4P4G.mjs";
18
- import "./chunk-PTIDPELK.mjs";
19
- import "./chunk-4P3IOCZK.mjs";
20
- import "./chunk-YEBPOLJT.mjs";
21
- import "./chunk-BEO5Q2GJ.mjs";
22
- import "./chunk-RVJCN7O6.mjs";
23
- import "./chunk-A2KA5HK7.mjs";
24
- import "./chunk-JMR6F3DC.mjs";
25
- import "./chunk-COIKWBXT.mjs";
26
- import "./chunk-6HQZNAEU.mjs";
27
- import "./chunk-TS7JWC6Z.mjs";
28
- import "./chunk-NMSKAQXB.mjs";
29
- import "./chunk-SQ3UKGNC.mjs";
30
- import "./chunk-SSZA5C37.mjs";
16
+ } from "./chunk-GHGDWJY3.mjs";
17
+ import "./chunk-7QNWHCMJ.mjs";
18
+ import "./chunk-CIFEHSEA.mjs";
19
+ import "./chunk-2TCGEMEV.mjs";
20
+ import "./chunk-NKJ67PFZ.mjs";
21
+ import "./chunk-E6KA576K.mjs";
22
+ import "./chunk-Y6YMRYNX.mjs";
23
+ import "./chunk-CIR4VZ22.mjs";
24
+ import "./chunk-B3E5ZI2D.mjs";
25
+ import "./chunk-R6ES6QCH.mjs";
26
+ import "./chunk-AW4Z3K2U.mjs";
27
+ import "./chunk-GDITZ3K2.mjs";
28
+ import "./chunk-O6HHWO4Y.mjs";
29
+ import "./chunk-K7RLWF5X.mjs";
30
+ import "./chunk-V6BE34Q3.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.2793 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2794 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  withSwiftRootLock
4
- } from "./chunk-PTIDPELK.mjs";
4
+ } from "./chunk-CIFEHSEA.mjs";
5
5
  import {
6
6
  swiftCacheDir,
7
7
  windowAdmission
8
- } from "./chunk-A2KA5HK7.mjs";
8
+ } from "./chunk-CIR4VZ22.mjs";
9
9
  import {
10
10
  isRecord
11
- } from "./chunk-SQ3UKGNC.mjs";
12
- import "./chunk-SSZA5C37.mjs";
11
+ } from "./chunk-K7RLWF5X.mjs";
12
+ import "./chunk-V6BE34Q3.mjs";
13
13
 
14
14
  // src/swift-sdk-image-producer.ts
15
15
  import { execFile, execFileSync } from "node:child_process";