peachsim 0.1.2762 → 0.1.2764

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/detox/index.ts +42 -2
  2. package/detox/proof-observer.ts +4 -0
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +2 -2
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +5 -5
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +3 -3
  15. package/dist-lib/bundle-channel.cjs +60 -21
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +3 -3
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +3 -3
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +2 -2
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +7 -7
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +5 -5
  26. package/dist-lib/detox/index.cjs +29 -2
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/esm-chunks/{acorn-4S4QEKUH.mjs → acorn-P6GSYUBW.mjs} +3 -3
  29. package/dist-lib/esm-chunks/{chunk-YS66XSMK.mjs → chunk-3ZYHM2HA.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-4ZZTNTW6.mjs → chunk-6KSNVVTC.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-45RVUCLW.mjs → chunk-AP5YIIQM.mjs} +2 -2
  32. package/dist-lib/esm-chunks/{chunk-MLIC3NR6.mjs → chunk-B4676W6W.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-T5V72EHF.mjs → chunk-BHZZ6HY3.mjs} +6 -6
  34. package/dist-lib/esm-chunks/{chunk-HB43KEJO.mjs → chunk-CFZYMPZH.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-JE6KHJMR.mjs → chunk-DJRXI3MV.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-JLJPYBC6.mjs → chunk-DSRMRZLO.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-QYIAL2FW.mjs → chunk-ECWMAETO.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-TCCCICYM.mjs → chunk-EHRVGFTC.mjs} +1 -1
  39. package/dist-lib/esm-chunks/{chunk-57UDPKKC.mjs → chunk-F2LGS5FX.mjs} +6 -6
  40. package/dist-lib/esm-chunks/{chunk-MALIBFAO.mjs → chunk-GF622ETF.mjs} +4 -4
  41. package/dist-lib/esm-chunks/{chunk-4QOZJQSQ.mjs → chunk-I2LXBHBV.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-LI5BVGTV.mjs → chunk-JHNBG6VU.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-AE56UCLG.mjs → chunk-LTSKSKKD.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-I4C62SOU.mjs → chunk-N3A2K3F3.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-XHAMWSZP.mjs → chunk-RA4YYWXZ.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-EXI2LBO5.mjs → chunk-RCJZKQAZ.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-HYSM5JUW.mjs → chunk-RHDDK6LA.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-JKFD7KTP.mjs → chunk-TDBGN3SP.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-XC7K5JYJ.mjs → chunk-TXWKYX3I.mjs} +5 -5
  50. package/dist-lib/esm-chunks/{chunk-GHCZN43N.mjs → chunk-VVLCV6KA.mjs} +3 -3
  51. package/dist-lib/esm-chunks/{chunk-IZ54ZJUN.mjs → chunk-YOVGPRMD.mjs} +1 -1
  52. package/dist-lib/esm-chunks/{chunk-EDTW6FEK.mjs → chunk-ZLLG2IAT.mjs} +39 -24
  53. package/dist-lib/esm-chunks/{metro-layout-parser-C245BQMH.mjs → metro-layout-parser-YQ2KF5TM.mjs} +3 -3
  54. package/dist-lib/esm-chunks/{swift-package-prebuilt-3CYV5L3E.mjs → swift-package-prebuilt-6MWRW7BU.mjs} +12 -12
  55. package/dist-lib/esm-chunks/{swift-sdk-app-module-EIWWG2YJ.mjs → swift-sdk-app-module-W4C26XYM.mjs} +47 -23
  56. package/dist-lib/esm-chunks/{swift-sdk-image-PTMGH6L6.mjs → swift-sdk-image-DLCQDKRO.mjs} +16 -16
  57. package/dist-lib/esm-chunks/{swift-sdk-image-producer-U5TYUU2Q.mjs → swift-sdk-image-producer-AYXDHRYM.mjs} +5 -5
  58. package/dist-lib/expo-swift-bundle.cjs +60 -21
  59. package/dist-lib/expo-swift-metadata.cjs +1 -1
  60. package/dist-lib/expo-swift-metadata.mjs +7 -7
  61. package/dist-lib/home-paths.cjs +1 -1
  62. package/dist-lib/host/bridge-host.cjs +60 -21
  63. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  64. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  65. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  66. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  67. package/dist-lib/host/websocket-proxy.cjs +1 -1
  68. package/dist-lib/index.cjs +1 -1
  69. package/dist-lib/kotlin-host.cjs +1 -1
  70. package/dist-lib/menu.cjs +1 -1
  71. package/dist-lib/menu.mjs +3 -3
  72. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  73. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  74. package/dist-lib/metro-production-bundle.cjs +1 -1
  75. package/dist-lib/metro-production-bundle.mjs +4 -4
  76. package/dist-lib/native-app-identity-project.cjs +1 -1
  77. package/dist-lib/native-app-identity-project.mjs +15 -15
  78. package/dist-lib/native-app-identity.cjs +1 -1
  79. package/dist-lib/native-app-identity.mjs +6 -6
  80. package/dist-lib/native-firebase-metadata.cjs +1 -1
  81. package/dist-lib/native-firebase-metadata.mjs +3 -3
  82. package/dist-lib/pdfium-raster.cjs +1 -1
  83. package/dist-lib/pdfium-raster.mjs +2 -2
  84. package/dist-lib/plist.cjs +1 -1
  85. package/dist-lib/plist.mjs +3 -3
  86. package/dist-lib/profiles.cjs +1 -1
  87. package/dist-lib/public-brand.cjs +1 -1
  88. package/dist-lib/public-origins-lib-esm.json +85 -85
  89. package/dist-lib/public-origins-lib.json +64 -64
  90. package/dist-lib/react-native-host-modules.cjs +1 -1
  91. package/dist-lib/react-native-host-modules.mjs +2 -2
  92. package/dist-lib/reap-browser.cjs +1 -1
  93. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  94. package/dist-lib/sdk.cjs +1 -1
  95. package/dist-lib/sdk.mjs +8 -8
  96. package/dist-lib/skills.cjs +60 -21
  97. package/dist-lib/swift-compile.cjs +57 -18
  98. package/dist-lib/swift-compile.mjs +12 -12
  99. package/dist-lib/swift-package.cjs +1 -1
  100. package/dist-lib/swift-package.mjs +3 -3
  101. package/dist-lib/swift-submit.cjs +1 -1
  102. package/dist-lib/swift-submit.mjs +6 -6
  103. package/dist-lib/swift-svg-raster.cjs +1 -1
  104. package/dist-lib/swift-svg-raster.mjs +2 -2
  105. package/dist-lib/swift-toolchain.cjs +1 -1
  106. package/dist-lib/swift.cjs +1 -1
  107. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  108. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  109. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  110. package/dist-lib/vendor/acorn.cjs +1 -1
  111. package/dist-lib/vendor/magic-string.cjs +1 -1
  112. package/dist-lib/vendor/stream-json.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  116. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  117. package/dist-lib/vendor/sucrase.cjs +1 -1
  118. package/dist-lib/vendor/terser.cjs +1 -1
  119. package/dist-lib/vendor/valibot.cjs +1 -1
  120. package/dist-lib/vendor/ws.cjs +1 -1
  121. package/dist-lib/vendor/zod.cjs +1 -1
  122. package/dist-lib/worklet-executable.cjs +1 -1
  123. package/dist-lib/worklet-executable.mjs +3 -3
  124. package/dist-types/packages/peach-engine/src/engine/native-node-queries.d.ts +2 -2
  125. package/dist-types/packages/peach-engine/src/engine/native-scene-program.d.ts +1 -2
  126. package/dist-types/packages/peach-engine/src/engine/scroll-physics-native.d.ts +0 -1
  127. package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/presentation-book-host.d.ts +1 -1
  128. package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +2 -4
  129. package/dist-types/packages/peach-engine/src/render-worker/scene-commit-ring.d.ts +9 -3
  130. package/package.json +1 -1
  131. package/src/one-native-controls-package.ts +14 -1
  132. package/src/swift-compile.ts +11 -1
  133. package/src/swift-guest-compile.ts +15 -7
  134. package/src/swift-sdk-app-module.ts +35 -7
  135. package/src/swiftSdkLinkContract.ts +6 -0
package/detox/index.ts CHANGED
@@ -3083,8 +3083,23 @@ export const device = {
3083
3083
  ),
3084
3084
  99.9,
3085
3085
  )
3086
- const pairedStages: typeof stages = stages.map((stage) => {
3086
+ const presentationFrames =
3087
+ DETOX_PLATFORM === 'ios' &&
3088
+ nativeCheckpoint &&
3089
+ nativeRecord &&
3090
+ !options.anchorAtTouch &&
3091
+ !options.producerWitness &&
3092
+ !options.hold &&
3093
+ !options.witnessedInput
3094
+ ? proofObserver.nativePresentationFrames?.(nativeCheckpoint, nativeRecord)
3095
+ : null
3096
+ const pairedStages: Array<
3097
+ (typeof stages)[number] & { nativePresentationIndex?: number }
3098
+ > = stages.map((stage) => {
3087
3099
  if (DETOX_PLATFORM !== 'ios') return stage
3100
+ const nativePresentationIndex = presentationFrames?.get(stage.label)
3101
+ if (nativePresentationIndex !== undefined)
3102
+ return { ...stage, nativePresentationIndex }
3088
3103
  // ios media times share the native stage's detected anchor. actualMs on
3089
3104
  // a settled native screenshot uses a different clock and cannot seed it.
3090
3105
  const { nativeActualMs: _nativeActualMs, ...rest } = stage
@@ -3129,7 +3144,8 @@ export const device = {
3129
3144
  !options.anchorAtTouch &&
3130
3145
  !options.producerWitness &&
3131
3146
  !options.hold &&
3132
- !options.witnessedInput
3147
+ !options.witnessedInput &&
3148
+ !presentationFrames?.size
3133
3149
  ? pairedStages.findIndex(
3134
3150
  (stage) =>
3135
3151
  stage.offsetMs > 0 && stage.nativeActualMs !== undefined && !stage.anchor,
@@ -4023,6 +4039,30 @@ export const device = {
4023
4039
  anchorId,
4024
4040
  stage.nativeActualMs,
4025
4041
  )
4042
+ if (stage.nativePresentationIndex !== undefined) {
4043
+ const frameIndex = anchorReceipt.frameIndex + stage.nativePresentationIndex
4044
+ if (frameIndex < currentReceipt.frameIndex)
4045
+ throw new Error(
4046
+ `native presentation stage ${stage.label} precedes the Peach clock`,
4047
+ )
4048
+ while (currentReceipt.frameIndex < frameIndex) {
4049
+ if (state.cancelled) throw new Error('peach motion capture was cancelled')
4050
+ currentReceipt = await controller.stepFrame(undefined, {
4051
+ composite: currentReceipt.frameIndex + 1 === frameIndex,
4052
+ })
4053
+ }
4054
+ snapshots.push({
4055
+ actualMs:
4056
+ currentReceipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
4057
+ anchorId,
4058
+ bitmap: await captureBitmap(),
4059
+ frameIndex,
4060
+ label: stage.label,
4061
+ offsetMs: stage.offsetMs,
4062
+ virtualTimestampMs: currentReceipt.virtualTimestampMs,
4063
+ })
4064
+ continue
4065
+ }
4026
4066
  if (typeof stage.nativeActualMs === 'number') {
4027
4067
  // the native frame nearest touch-down can precede the touch, or
4028
4068
  // composite before its commit. the retained pre-press baseline is
@@ -105,6 +105,10 @@ export interface ProofObserver {
105
105
  // both run inside the page, so each must be self-contained
106
106
  measureMotionChange: MeasureMotionChange
107
107
  classifyDiscreteFrame: ClassifyDiscreteFrame
108
+ nativePresentationFrames?(
109
+ checkpointDir: string,
110
+ event: unknown,
111
+ ): ReadonlyMap<string, number> | null
108
112
  attemptEvent(event: unknown): void
109
113
  }
110
114
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-AE56UCLG.mjs";
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
3
3
 
4
4
  // src/beta.ts
5
5
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  BridgeInputError,
4
4
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -17,10 +17,10 @@ import {
17
17
  parseSemanticWaitOptions,
18
18
  parseStateOptions,
19
19
  parseTapTarget
20
- } from "./esm-chunks/chunk-GHCZN43N.mjs";
21
- import "./esm-chunks/chunk-4QOZJQSQ.mjs";
22
- import "./esm-chunks/chunk-XHAMWSZP.mjs";
23
- import "./esm-chunks/chunk-AE56UCLG.mjs";
20
+ } from "./esm-chunks/chunk-VVLCV6KA.mjs";
21
+ import "./esm-chunks/chunk-I2LXBHBV.mjs";
22
+ import "./esm-chunks/chunk-RA4YYWXZ.mjs";
23
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
24
24
  export {
25
25
  BridgeInputError,
26
26
  SEMANTIC_WAIT_MAX_TIMEOUT_MS,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
4
4
  REFUSED_PERFORM_STEP_TYPES,
@@ -13,8 +13,8 @@ import {
13
13
  readyProbeHasContent,
14
14
  readyProbeIsReady,
15
15
  refusedPerformStepReason
16
- } from "./esm-chunks/chunk-4QOZJQSQ.mjs";
17
- import "./esm-chunks/chunk-AE56UCLG.mjs";
16
+ } from "./esm-chunks/chunk-I2LXBHBV.mjs";
17
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
18
18
  export {
19
19
  HEADLESS_TENANT_FETCH_HUNG_MARKER,
20
20
  REFUSED_PERFORM_STEP_TYPES,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -10500,7 +10500,7 @@ var init_swift_objc_sdk_tree = __esm({
10500
10500
 
10501
10501
  // src/swift-compiler-digest.ts
10502
10502
  function swiftArchiveCompilerDigestValue() {
10503
- return true ? "e18fca644f6671544e6ce6ed47e18e3b7c049fa911c54ff975c491d1f31f59af" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10503
+ return true ? "7033c5c50ea9c70f62e6bfc9f9dd743e535c08d86f7136060a0e872f238d0d33" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
10504
10504
  }
10505
10505
  var import_node_crypto10, import_node_fs20, import_node_path17, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
10506
10506
  var init_swift_compiler_digest = __esm({
@@ -32667,6 +32667,7 @@ var init_nativeSdkBindingContract = __esm({
32667
32667
  // src/swift-sdk-app-module.ts
32668
32668
  var swift_sdk_app_module_exports = {};
32669
32669
  __export(swift_sdk_app_module_exports, {
32670
+ assertSwiftSdkReplayLayout: () => assertSwiftSdkReplayLayout,
32670
32671
  bindSwiftAppModule: () => bindSwiftAppModule,
32671
32672
  buildSwiftAppModule: () => buildSwiftAppModule,
32672
32673
  createSwiftSdkBinding: () => createSwiftSdkBinding,
@@ -32676,6 +32677,7 @@ __export(swift_sdk_app_module_exports, {
32676
32677
  readSwiftSdkUsage: () => readSwiftSdkUsage,
32677
32678
  swiftAppModuleInputs: () => swiftAppModuleInputs,
32678
32679
  swiftAppModuleThunkSection: () => swiftAppModuleThunkSection,
32680
+ swiftSdkProjectionDigest: () => swiftSdkProjectionDigest,
32679
32681
  swiftSdkProjectionSpans: () => swiftSdkProjectionSpans,
32680
32682
  writeSwiftSdkAppLink: () => writeSwiftSdkAppLink
32681
32683
  });
@@ -32722,13 +32724,13 @@ async function buildSwiftAppModule(options2) {
32722
32724
  throw error;
32723
32725
  }
32724
32726
  await lowerPromise;
32725
- if (!project2)
32726
- writeSwiftSdkAppLink(import_node_path45.default.join(work, "app-link.json.gz"), {
32727
- linkage: link.linkage,
32728
- usage
32729
- });
32730
32727
  finishSwiftAppModuleFile(options2.output);
32731
- return binding;
32728
+ if (project2) return binding;
32729
+ const appLink = writeSwiftSdkAppLink(import_node_path45.default.join(work, "app-link.json.gz"), {
32730
+ linkage: link.linkage,
32731
+ usage
32732
+ });
32733
+ return { ...binding, appLink };
32732
32734
  }
32733
32735
  function swiftAppModuleThunkSection(lowered) {
32734
32736
  return [NATIVE_SDK_THUNK_SECTION, sdkImportThunks(lowered)];
@@ -33662,7 +33664,9 @@ function bindSwiftAppModule(linkage, sdk2) {
33662
33664
  ]);
33663
33665
  }
33664
33666
  function writeSwiftSdkAppLink(file, link) {
33665
- (0, import_node_fs46.writeFileSync)(file, (0, import_node_zlib5.gzipSync)(JSON.stringify(link), { level: 1 }));
33667
+ const bytes = (0, import_node_zlib5.gzipSync)(JSON.stringify(link), { level: 1 });
33668
+ (0, import_node_fs46.writeFileSync)(file, bytes);
33669
+ return bytes;
33666
33670
  }
33667
33671
  function readSwiftSdkAppLink(file) {
33668
33672
  return JSON.parse((0, import_node_zlib5.gunzipSync)((0, import_node_fs46.readFileSync)(file)).toString("utf8"));
@@ -33734,6 +33738,26 @@ function swiftSdkProjectionSpans(sdk2, imageFor) {
33734
33738
  }
33735
33739
  return spans;
33736
33740
  }
33741
+ function swiftSdkProjectionDigest(spans) {
33742
+ const ordered = [...spans].sort(
33743
+ (left, right) => left.image - right.image || left.space.localeCompare(right.space) || left.address - right.address || left.length - right.length
33744
+ );
33745
+ return (0, import_node_crypto31.createHash)("sha256").update(JSON.stringify(ordered)).digest("hex");
33746
+ }
33747
+ function assertSwiftSdkReplayLayout(link, sdk2) {
33748
+ const projection = link.sdkProjection;
33749
+ if (!projection) return;
33750
+ const objects = new Map(projection.objects);
33751
+ const products = new Map(projection.products);
33752
+ const spans = swiftSdkProjectionSpans(
33753
+ sdk2,
33754
+ (object8, product) => objects.get(object8) ?? products.get(product)
33755
+ );
33756
+ if (swiftSdkProjectionDigest(spans) !== projection.layoutSha256)
33757
+ throw new Error(
33758
+ "SDK image changes the retained app\u2019s projected memory or table ownership"
33759
+ );
33760
+ }
33737
33761
  function selectSwiftSdkData(sdk2, usage, linkage, projection) {
33738
33762
  const { manifest, block: block2, segments } = readSwiftSdkManifest(sdk2);
33739
33763
  const { strings: strings7 } = manifest;
@@ -34716,6 +34740,7 @@ async function compileGuestLink(options2) {
34716
34740
  linkSwiftAppModule: linkSwiftAppModule2,
34717
34741
  readSwiftSdkUsage: readSwiftSdkUsage2,
34718
34742
  swiftAppModuleThunkSection: swiftAppModuleThunkSection2,
34743
+ swiftSdkProjectionDigest: swiftSdkProjectionDigest2,
34719
34744
  swiftSdkProjectionSpans: swiftSdkProjectionSpans2,
34720
34745
  writeSwiftSdkAppLink: writeSwiftSdkAppLink2
34721
34746
  } = await Promise.resolve().then(() => (init_swift_sdk_app_module(), swift_sdk_app_module_exports));
@@ -34866,16 +34891,23 @@ async function compileGuestLink(options2) {
34866
34891
  swiftAppModuleThunkSection2(finalized.wasm)
34867
34892
  ])
34868
34893
  );
34869
- if (!project2) {
34870
- const replayDirectory = import_node_path46.default.join(options2.buildDirectory, ".peach-sdk-module");
34871
- (0, import_node_fs47.mkdirSync)(replayDirectory, { recursive: true });
34872
- writeSwiftSdkAppLink2(import_node_path46.default.join(replayDirectory, "app-link.json.gz"), {
34894
+ if (project2) return binding;
34895
+ const replayDirectory = import_node_path46.default.join(options2.buildDirectory, ".peach-sdk-module");
34896
+ (0, import_node_fs47.mkdirSync)(replayDirectory, { recursive: true });
34897
+ const appLink = writeSwiftSdkAppLink2(
34898
+ import_node_path46.default.join(replayDirectory, "app-link.json.gz"),
34899
+ {
34873
34900
  linkage,
34874
34901
  usage,
34875
- scopedLookups: true
34876
- });
34877
- }
34878
- return binding;
34902
+ scopedLookups: true,
34903
+ sdkProjection: {
34904
+ objects: [...sdkObjectImages],
34905
+ products: [...sdkProductImages],
34906
+ layoutSha256: swiftSdkProjectionDigest2(sdkSpans)
34907
+ }
34908
+ }
34909
+ );
34910
+ return { ...binding, appLink };
34879
34911
  }
34880
34912
  } finally {
34881
34913
  if (result.finalLinkDone) await Promise.allSettled([result.finalLinkDone]);
@@ -39917,10 +39949,13 @@ function readCompiledArtifact(directory2, hash) {
39917
39949
  const liveSlots = (0, import_node_fs55.readFileSync)(import_node_path56.default.join(directory2, "sdk-live-slots.bin"));
39918
39950
  if ((0, import_node_crypto36.createHash)("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
39919
39951
  return null;
39952
+ const appLink = typeof image.appLink === "string" ? (0, import_node_fs55.readFileSync)(import_node_path56.default.join(directory2, "app-link.json.gz")) : void 0;
39953
+ if (appLink && (0, import_node_crypto36.createHash)("sha256").update(appLink).digest("hex") !== image.appLink)
39954
+ return null;
39920
39955
  const sdk2 = {
39921
39956
  key: image.key,
39922
39957
  sha256: image.sha256,
39923
- binding: { bytes: binding, sha256: image.binding, liveSlots }
39958
+ binding: { bytes: binding, sha256: image.binding, liveSlots, appLink }
39924
39959
  };
39925
39960
  return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 }, sdk: sdk2 };
39926
39961
  } catch (error) {
@@ -39934,6 +39969,8 @@ function saveCompiledArtifact(root, artifact) {
39934
39969
  (0, import_node_fs55.mkdirSync)(directory2, { recursive: true });
39935
39970
  const pending2 = (0, import_node_fs55.mkdtempSync)(import_node_path56.default.join(root, ".artifact-"));
39936
39971
  try {
39972
+ const appLink = artifact.sdk?.binding.appLink;
39973
+ if (appLink) (0, import_node_fs55.writeFileSync)(import_node_path56.default.join(pending2, "app-link.json.gz"), appLink);
39937
39974
  (0, import_node_fs55.writeFileSync)(import_node_path56.default.join(pending2, "app.wasm"), artifact.bytes);
39938
39975
  (0, import_node_fs55.writeFileSync)(import_node_path56.default.join(pending2, "icu.gz"), artifact.icu.gzip);
39939
39976
  if (artifact.sdk) {
@@ -39953,12 +39990,14 @@ function saveCompiledArtifact(root, artifact) {
39953
39990
  key: artifact.sdk.key,
39954
39991
  sha256: artifact.sdk.sha256,
39955
39992
  binding: artifact.sdk.binding.sha256,
39993
+ appLink: appLink && (0, import_node_crypto36.createHash)("sha256").update(appLink).digest("hex"),
39956
39994
  liveSlots: (0, import_node_crypto36.createHash)("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
39957
39995
  }
39958
39996
  })
39959
39997
  );
39960
39998
  const outputs = ["app.wasm", "icu.gz"];
39961
39999
  if (artifact.sdk) outputs.push("sdk-binding.bin", "sdk-live-slots.bin");
40000
+ if (appLink) outputs.push("app-link.json.gz");
39962
40001
  for (const file of [...outputs, "artifact.json"]) {
39963
40002
  (0, import_node_fs55.renameSync)(import_node_path56.default.join(pending2, file), import_node_path56.default.join(directory2, file));
39964
40003
  }
@@ -42067,7 +42106,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
42067
42106
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
42068
42107
  MULTI_MANIFEST_VERSION = 76;
42069
42108
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
42070
- compilerSourceDigest = true ? "65928a71478b4c05c427c625281d36907f4473296c4b7cfeb7765fb27f011382" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42109
+ compilerSourceDigest = true ? "e28f3765de44ea471f6097cb0ae6ead762595ae2bb24b4e38d4210f32b9434c1" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
42071
42110
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
42072
42111
  MODULE_MAP_RESPONSE_FILE_RUN = 16;
42073
42112
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
@@ -107017,7 +107056,7 @@ var init_nitro_superset = __esm({
107017
107056
  init_nitroContract();
107018
107057
  init_swift_standin_digest();
107019
107058
  NITRO_SUPERSET_ENTRY_NAME = "superset";
107020
- NITRO_COMPILER_DIGEST = true ? "b2972d8591d91b0314930f656429867ab36745c99c611f3f8923d87bf008a98a" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107059
+ NITRO_COMPILER_DIGEST = true ? "aca2d73a3cdd76c01dbd1472a1e4d5627ce318c93718f056b05fd770039280cf" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
107021
107060
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
107022
107061
  nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
107023
107062
  published = /* @__PURE__ */ new Map();
@@ -107721,7 +107760,7 @@ var init_expo_eager_seam_contract = __esm({
107721
107760
 
107722
107761
  // src/expo-native-compiler-digest.ts
107723
107762
  function expoNativeCompilerDigestValue() {
107724
- return true ? "28211a7c8cca3ae59c83d4779cef3cb42c0453aa13bfea3c071d38dba31537ff" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
107763
+ return true ? "6d0e1e51f76dff7562195ff8bf4c489cdce6fd2f89f78c4a15c75d6a7298a3ad" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
107725
107764
  }
107726
107765
  var import_node_crypto81;
107727
107766
  var init_expo_native_compiler_digest = __esm({
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  RNX_SCREEN_CAPTURE_VERSION,
4
4
  describeInvalidScreenCapture,
@@ -10,8 +10,8 @@ import {
10
10
  rnxRasterFrames,
11
11
  rnxRasterRegionRequests,
12
12
  selectRnxRasterNodeIds
13
- } from "./esm-chunks/chunk-JE6KHJMR.mjs";
14
- import "./esm-chunks/chunk-AE56UCLG.mjs";
13
+ } from "./esm-chunks/chunk-DJRXI3MV.mjs";
14
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
15
15
  export {
16
16
  RNX_SCREEN_CAPTURE_VERSION,
17
17
  describeInvalidScreenCapture,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  AGENT_IDENTITY_MAX_CHARS,
4
4
  RNX_CLOUD_ALL_COMMAND_SCOPES,
@@ -31,8 +31,8 @@ import {
31
31
  readRnxLaunchUrl,
32
32
  rnxCloudCommandScope,
33
33
  rnxCloudScopesAllowCommand
34
- } from "./esm-chunks/chunk-MLIC3NR6.mjs";
35
- import "./esm-chunks/chunk-AE56UCLG.mjs";
34
+ } from "./esm-chunks/chunk-B4676W6W.mjs";
35
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
36
36
  export {
37
37
  AGENT_IDENTITY_MAX_CHARS,
38
38
  RNX_CLOUD_ALL_COMMAND_SCOPES,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,5 +1,5 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
- import "./esm-chunks/chunk-AE56UCLG.mjs";
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
3
3
 
4
4
  // src/cloud-test-args.ts
5
5
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  sleep
4
- } from "./esm-chunks/chunk-JLJPYBC6.mjs";
4
+ } from "./esm-chunks/chunk-DSRMRZLO.mjs";
5
5
  import {
6
6
  isRnxScreenCapture
7
- } from "./esm-chunks/chunk-JE6KHJMR.mjs";
7
+ } from "./esm-chunks/chunk-DJRXI3MV.mjs";
8
8
  import {
9
9
  RNX_CLOUD_COMMAND_TYPES,
10
10
  RNX_CLOUD_MAX_ARTIFACT_BYTES,
@@ -14,16 +14,16 @@ import {
14
14
  isRnxCloudCommandType,
15
15
  rnxCloudCommandScope,
16
16
  rnxCloudScopesAllowCommand
17
- } from "./esm-chunks/chunk-MLIC3NR6.mjs";
17
+ } from "./esm-chunks/chunk-B4676W6W.mjs";
18
18
  import {
19
19
  rnxPublicBrand
20
- } from "./esm-chunks/chunk-YS66XSMK.mjs";
20
+ } from "./esm-chunks/chunk-3ZYHM2HA.mjs";
21
21
  import {
22
22
  isRecord
23
- } from "./esm-chunks/chunk-XHAMWSZP.mjs";
23
+ } from "./esm-chunks/chunk-RA4YYWXZ.mjs";
24
24
  import {
25
25
  __publicField
26
- } from "./esm-chunks/chunk-AE56UCLG.mjs";
26
+ } from "./esm-chunks/chunk-LTSKSKKD.mjs";
27
27
 
28
28
  // src/backend-origin.ts
29
29
  var NativeURL = globalThis.URL;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,14 +1,14 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  isValidRuntimeVersion
4
- } from "./esm-chunks/chunk-HYSM5JUW.mjs";
4
+ } from "./esm-chunks/chunk-RHDDK6LA.mjs";
5
5
  import {
6
6
  findBundleFooter
7
- } from "./esm-chunks/chunk-TCCCICYM.mjs";
7
+ } from "./esm-chunks/chunk-EHRVGFTC.mjs";
8
8
  import {
9
9
  isRecord
10
- } from "./esm-chunks/chunk-XHAMWSZP.mjs";
11
- import "./esm-chunks/chunk-AE56UCLG.mjs";
10
+ } from "./esm-chunks/chunk-RA4YYWXZ.mjs";
11
+ import "./esm-chunks/chunk-LTSKSKKD.mjs";
12
12
 
13
13
  // src/nativeViewSourceContract.ts
14
14
  function isNativeViewSource(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -9718,8 +9718,12 @@ var device = {
9718
9718
  ),
9719
9719
  99.9
9720
9720
  );
9721
+ const presentationFrames = DETOX_PLATFORM === "ios" && nativeCheckpoint && nativeRecord && !options.anchorAtTouch && !options.producerWitness && !options.hold && !options.witnessedInput ? proofObserver.nativePresentationFrames?.(nativeCheckpoint, nativeRecord) : null;
9721
9722
  const pairedStages = stages.map((stage) => {
9722
9723
  if (DETOX_PLATFORM !== "ios") return stage;
9724
+ const nativePresentationIndex = presentationFrames?.get(stage.label);
9725
+ if (nativePresentationIndex !== void 0)
9726
+ return { ...stage, nativePresentationIndex };
9723
9727
  const { nativeActualMs: _nativeActualMs, ...rest } = stage;
9724
9728
  const nativeStage = nativeStages.find((native) => native.label === stage.label);
9725
9729
  const mediaActualMs = storedTransition ? stage.nativeActualMs : nativeStage?.mediaActualMs;
@@ -9734,7 +9738,7 @@ var device = {
9734
9738
  });
9735
9739
  const progressStageIndex = DETOX_PLATFORM === "ios" || pairedStages.some((stage) => stage.nativeActualMs !== void 0) ? -1 : pairedStages.findIndex(isProgressStage);
9736
9740
  const nativeBaselineLabel = nativeStages[0]?.label;
9737
- const phaseStageIndex = DETOX_PLATFORM === "ios" && !options.anchorAtTouch && !options.producerWitness && !options.hold && !options.witnessedInput ? pairedStages.findIndex(
9741
+ const phaseStageIndex = DETOX_PLATFORM === "ios" && !options.anchorAtTouch && !options.producerWitness && !options.hold && !options.witnessedInput && !presentationFrames?.size ? pairedStages.findIndex(
9738
9742
  (stage) => stage.offsetMs > 0 && stage.nativeActualMs !== void 0 && !stage.anchor
9739
9743
  ) : -1;
9740
9744
  const capturePromise = page.evaluate(
@@ -10364,6 +10368,29 @@ var device = {
10364
10368
  anchorId,
10365
10369
  stage.nativeActualMs
10366
10370
  );
10371
+ if (stage.nativePresentationIndex !== void 0) {
10372
+ const frameIndex = anchorReceipt.frameIndex + stage.nativePresentationIndex;
10373
+ if (frameIndex < currentReceipt.frameIndex)
10374
+ throw new Error(
10375
+ `native presentation stage ${stage.label} precedes the Peach clock`
10376
+ );
10377
+ while (currentReceipt.frameIndex < frameIndex) {
10378
+ if (state.cancelled) throw new Error("peach motion capture was cancelled");
10379
+ currentReceipt = await controller.stepFrame(void 0, {
10380
+ composite: currentReceipt.frameIndex + 1 === frameIndex
10381
+ });
10382
+ }
10383
+ snapshots.push({
10384
+ actualMs: currentReceipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
10385
+ anchorId,
10386
+ bitmap: await captureBitmap(),
10387
+ frameIndex,
10388
+ label: stage.label,
10389
+ offsetMs: stage.offsetMs,
10390
+ virtualTimestampMs: currentReceipt.virtualTimestampMs
10391
+ });
10392
+ continue;
10393
+ }
10367
10394
  if (typeof stage.nativeActualMs === "number") {
10368
10395
  if (input.anchorAtTouch === "down" && stage.offsetMs === 0 && (stage.nativeActualMs < 0 && stage.nativeActualMs >= -1e3 / 60 || input.witnessedInput && stage.nativeTouchesShown === 0)) {
10369
10396
  const baselineFrame = keptFrames.get(anchorReceipt.frameIndex);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  Node,
4
4
  Parser,
@@ -22,8 +22,8 @@ import {
22
22
  types,
23
23
  types$1,
24
24
  version
25
- } from "./chunk-QYIAL2FW.mjs";
26
- import "./chunk-AE56UCLG.mjs";
25
+ } from "./chunk-ECWMAETO.mjs";
26
+ import "./chunk-LTSKSKKD.mjs";
27
27
  export {
28
28
  Node,
29
29
  Parser,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/public-brand.ts
4
4
  var name = "Peach";
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,9 +1,9 @@
1
- /*! peach v0.1.2762 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2764 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  killOrphanedProcessGroup,
4
4
  readProcessTable,
5
5
  terminateProcessGroup
6
- } from "./chunk-IZ54ZJUN.mjs";
6
+ } from "./chunk-YOVGPRMD.mjs";
7
7
 
8
8
  // src/swift-root-lock.ts
9
9
  import { AsyncLocalStorage } from "node:async_hooks";