peachsim 0.1.2935 → 0.1.2937

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 (345) hide show
  1. package/LICENSE +6 -8
  2. package/cli/account-gate.ts +20 -3
  3. package/cli/app-bundle-resources.ts +66 -19
  4. package/cli/catalog/meta.ts +2 -106
  5. package/cli/command-agent.ts +7 -0
  6. package/cli/command-registry.ts +0 -1
  7. package/cli/commands/control.ts +13 -5
  8. package/cli/commands/daemon.ts +4 -2
  9. package/cli/commands/device.ts +78 -8
  10. package/cli/commands/do-chain.ts +11 -8
  11. package/cli/commands/inspect/core.ts +4 -9
  12. package/cli/commands/inspect/settling.ts +1 -0
  13. package/cli/commands/logout.ts +6 -1
  14. package/cli/commands/map.ts +2 -6
  15. package/cli/commands/package.ts +112 -57
  16. package/cli/commands/shell-url.ts +0 -1
  17. package/cli/download-auth.ts +2 -0
  18. package/cli/drivers/playwright-provisioning.ts +10 -38
  19. package/cli/github-workflow-identity.ts +8 -0
  20. package/cli/internal-child-contract.ts +1 -0
  21. package/cli/internal-child.ts +5 -0
  22. package/cli/main.ts +2 -10
  23. package/cli/outbound-endpoints.ts +26 -0
  24. package/detox/index.ts +227 -131
  25. package/dist-lib/agent-daemon-client.cjs +1 -1
  26. package/dist-lib/agent-events.cjs +1 -1
  27. package/dist-lib/attached-projects.cjs +1 -1
  28. package/dist-lib/auth/shared-session.cjs +1 -1
  29. package/dist-lib/backend-origin.cjs +1 -1
  30. package/dist-lib/beta.cjs +1 -1
  31. package/dist-lib/beta.mjs +2 -2
  32. package/dist-lib/bridge-constants.cjs +1 -1
  33. package/dist-lib/bridge-contract-input.cjs +47 -3
  34. package/dist-lib/bridge-contract-input.mjs +6 -6
  35. package/dist-lib/bridge-contract.cjs +10 -1
  36. package/dist-lib/bridge-contract.mjs +3 -3
  37. package/dist-lib/bundle-channel.cjs +12779 -9515
  38. package/dist-lib/capture-contract.cjs +39 -17
  39. package/dist-lib/capture-contract.mjs +3 -3
  40. package/dist-lib/cloud-contract.cjs +1 -1
  41. package/dist-lib/cloud-contract.mjs +3 -3
  42. package/dist-lib/cloud-test-args.cjs +1 -1
  43. package/dist-lib/cloud-test-args.mjs +2 -2
  44. package/dist-lib/cloud.cjs +1 -1
  45. package/dist-lib/cloud.mjs +8 -8
  46. package/dist-lib/config.cjs +1 -1
  47. package/dist-lib/config.mjs +6 -6
  48. package/dist-lib/detox/index.cjs +200 -132
  49. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  50. package/dist-lib/esm-chunks/{acorn-Q5TRRYSO.mjs → acorn-IIBLEO25.mjs} +3 -3
  51. package/dist-lib/esm-chunks/{chunk-UDWBTBVG.mjs → chunk-4FTPQKPT.mjs} +10 -1
  52. package/dist-lib/esm-chunks/chunk-4WIDTRBB.mjs +10232 -0
  53. package/dist-lib/esm-chunks/{chunk-LCMFYMT7.mjs → chunk-5QZOQ3NZ.mjs} +1 -1
  54. package/dist-lib/esm-chunks/{chunk-BJ2OGUX7.mjs → chunk-CIY67HNL.mjs} +39 -17
  55. package/dist-lib/esm-chunks/{chunk-SKQTNQYE.mjs → chunk-CQFEMJ64.mjs} +1 -1
  56. package/dist-lib/esm-chunks/{chunk-AXWVXRHX.mjs → chunk-CWVMCW23.mjs} +1 -1
  57. package/dist-lib/esm-chunks/{chunk-MTALOHQR.mjs → chunk-F6DZ4DS2.mjs} +1 -1
  58. package/dist-lib/esm-chunks/{chunk-I4R7IZRD.mjs → chunk-HJMF6O7L.mjs} +74 -46
  59. package/dist-lib/esm-chunks/chunk-I6T4PXJF.mjs +154 -0
  60. package/dist-lib/esm-chunks/{chunk-XWAUZKIA.mjs → chunk-IJU3JMWM.mjs} +1 -1
  61. package/dist-lib/esm-chunks/{chunk-CXWUIOCH.mjs → chunk-KODEPXQC.mjs} +4 -4
  62. package/dist-lib/esm-chunks/{chunk-WJE5QHSD.mjs → chunk-LD4K2VBL.mjs} +155 -36
  63. package/dist-lib/esm-chunks/{chunk-2TSM64HI.mjs → chunk-LTE7YMEG.mjs} +1 -1
  64. package/dist-lib/esm-chunks/{chunk-3GGOXUJA.mjs → chunk-M3CSKAJE.mjs} +1 -1
  65. package/dist-lib/esm-chunks/{chunk-7G5UETIG.mjs → chunk-NA6DJPB6.mjs} +43 -1
  66. package/dist-lib/esm-chunks/{chunk-MSUHMNAI.mjs → chunk-NNAX24FS.mjs} +1 -1
  67. package/dist-lib/esm-chunks/{chunk-VDJA4LP4.mjs → chunk-PZPJJBAS.mjs} +1 -1
  68. package/dist-lib/esm-chunks/{chunk-UEEEJVQA.mjs → chunk-QXSTHMWN.mjs} +1 -1
  69. package/dist-lib/esm-chunks/{chunk-S2RJB5I7.mjs → chunk-RBPVK5YI.mjs} +1 -1
  70. package/dist-lib/esm-chunks/{chunk-VRAXNGYT.mjs → chunk-SCT5OFDV.mjs} +1 -1
  71. package/dist-lib/esm-chunks/{chunk-T3M73LGP.mjs → chunk-U3CJGYSP.mjs} +50 -6
  72. package/dist-lib/esm-chunks/{chunk-SLUGTGQQ.mjs → chunk-VXTOQ522.mjs} +12 -6
  73. package/dist-lib/esm-chunks/{chunk-EL44SZMV.mjs → chunk-WMSVGYTH.mjs} +1 -1
  74. package/dist-lib/esm-chunks/{chunk-FEDEPSEV.mjs → chunk-WRWINRWK.mjs} +1 -1
  75. package/dist-lib/esm-chunks/{chunk-BNO52N2S.mjs → chunk-YZF2USRD.mjs} +1905 -8760
  76. package/dist-lib/esm-chunks/{chunk-TQLKYMVP.mjs → chunk-ZNHR6C3L.mjs} +1 -1
  77. package/dist-lib/esm-chunks/{download-auth-registry-G75MIT55.mjs → download-auth-registry-AHS5MSIB.mjs} +4 -4
  78. package/dist-lib/esm-chunks/{metro-layout-parser-FXLUDTYT.mjs → metro-layout-parser-24ZYK5UP.mjs} +3 -3
  79. package/dist-lib/esm-chunks/{swift-package-prebuilt-524D4MA2.mjs → swift-package-prebuilt-L4YNXQRD.mjs} +15 -15
  80. package/dist-lib/esm-chunks/{swift-sdk-app-module-EX544YJY.mjs → swift-sdk-app-module-RM652JSW.mjs} +87 -71
  81. package/dist-lib/esm-chunks/{swift-sdk-image-LOTMWVM7.mjs → swift-sdk-image-5PQ44UJT.mjs} +15 -15
  82. package/dist-lib/esm-chunks/{swift-sdk-image-producer-UO6B3M4U.mjs → swift-sdk-image-producer-GD3SM6YI.mjs} +5 -5
  83. package/dist-lib/esm-chunks/swift-sdk-later-data-62QYJ2KH.mjs +590 -0
  84. package/dist-lib/expo-swift-bundle.cjs +21037 -17896
  85. package/dist-lib/expo-swift-metadata.cjs +8 -2
  86. package/dist-lib/expo-swift-metadata.mjs +9 -8
  87. package/dist-lib/home-paths.cjs +1 -1
  88. package/dist-lib/host/bridge-host.cjs +22481 -18741
  89. package/dist-lib/host/fetch-proxy-handler.cjs +21079 -17980
  90. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  91. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  92. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  93. package/dist-lib/host/websocket-proxy.cjs +1 -1
  94. package/dist-lib/index.cjs +68 -38
  95. package/dist-lib/kotlin-host.cjs +97 -21
  96. package/dist-lib/menu.cjs +1 -1
  97. package/dist-lib/menu.mjs +3 -3
  98. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  99. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  100. package/dist-lib/metro-production-bundle.cjs +23 -1
  101. package/dist-lib/metro-production-bundle.mjs +24 -4
  102. package/dist-lib/native-app-identity-project.cjs +3582 -571
  103. package/dist-lib/native-app-identity-project.mjs +1024 -398
  104. package/dist-lib/native-app-identity.cjs +1 -1
  105. package/dist-lib/native-app-identity.mjs +6 -6
  106. package/dist-lib/native-firebase-metadata.cjs +1 -1
  107. package/dist-lib/native-firebase-metadata.mjs +3 -3
  108. package/dist-lib/pdfium-raster.cjs +1 -1
  109. package/dist-lib/pdfium-raster.mjs +2 -2
  110. package/dist-lib/plist.cjs +1 -1
  111. package/dist-lib/plist.mjs +3 -3
  112. package/dist-lib/profiles.cjs +1 -1
  113. package/dist-lib/public-brand.cjs +1 -1
  114. package/dist-lib/public-origins-lib-esm.json +132 -116
  115. package/dist-lib/public-origins-lib.json +215 -173
  116. package/dist-lib/react-native-host-modules.cjs +1 -1
  117. package/dist-lib/react-native-host-modules.mjs +2 -2
  118. package/dist-lib/reap-browser.cjs +17 -1
  119. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  120. package/dist-lib/sdk.cjs +6 -7
  121. package/dist-lib/sdk.mjs +13 -14
  122. package/dist-lib/skills.cjs +23216 -19650
  123. package/dist-lib/swift-compile.cjs +4337 -2905
  124. package/dist-lib/swift-compile.mjs +15 -13
  125. package/dist-lib/swift-package.cjs +1 -1
  126. package/dist-lib/swift-package.mjs +3 -3
  127. package/dist-lib/swift-submit.cjs +1 -1
  128. package/dist-lib/swift-submit.mjs +6 -6
  129. package/dist-lib/swift-svg-raster.cjs +1 -1
  130. package/dist-lib/swift-svg-raster.mjs +2 -2
  131. package/dist-lib/swift-toolchain.cjs +19 -1
  132. package/dist-lib/swift.cjs +1 -1
  133. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  134. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  135. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  136. package/dist-lib/vendor/acorn.cjs +1 -1
  137. package/dist-lib/vendor/stream-json.cjs +1 -1
  138. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  139. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  140. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  141. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  142. package/dist-lib/vendor/sucrase.cjs +1 -1
  143. package/dist-lib/vendor/terser.cjs +1 -1
  144. package/dist-lib/vendor/valibot.cjs +1 -1
  145. package/dist-lib/vendor/ws.cjs +94 -32
  146. package/dist-lib/vendor/zod.cjs +1 -1
  147. package/dist-lib/worklet-executable.cjs +8 -5
  148. package/dist-lib/worklet-executable.mjs +9 -6
  149. package/dist-types/packages/peach-engine/src/canvaskit-artifact-urls.d.ts +2 -1
  150. package/dist-types/packages/peach-engine/src/capture/compositor-presentation-recording.d.ts +1 -0
  151. package/dist-types/packages/peach-engine/src/engine/generated/canvaskit-artifact-hashes.d.ts +26 -0
  152. package/dist-types/packages/peach-engine/src/engine/guest-scene-inspect.d.ts +1 -1
  153. package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -0
  154. package/dist-types/packages/peach-engine/src/engine/metalTypes.d.ts +32 -2
  155. package/dist-types/packages/peach-engine/src/engine/portalContract.d.ts +24 -0
  156. package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -2
  157. package/dist-types/packages/peach-engine/src/guest/http-cookie-storage.d.ts +73 -0
  158. package/dist-types/packages/peach-engine/src/guest/native-evaluation-lease.d.ts +5 -0
  159. package/dist-types/packages/peach-engine/src/guest/nitro-jsi-host.d.ts +3 -1
  160. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +225 -9
  161. package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -1
  162. package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -1
  163. package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
  164. package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-compositor.d.ts +1 -0
  165. package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-contract.d.ts +44 -10
  166. package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +4 -3
  167. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -4
  168. package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
  169. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +1 -1
  170. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -27
  171. package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +2 -6
  172. package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +11 -3
  173. package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -1
  174. package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +1 -1
  175. package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +1 -1
  176. package/dist-types/packages/peach-globals/src/app-bundle-resources.d.ts +10 -0
  177. package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +1 -1
  178. package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +1 -0
  179. package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
  180. package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -6
  181. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +11 -0
  182. package/dist-types/packages/peach-globals/src/oneWidgetContract.d.ts +28 -0
  183. package/package.json +2 -2
  184. package/runtime-companion.json +1 -1
  185. package/sdk/ios/System/Library/Frameworks/CoreHaptics.framework/Headers/CoreHaptics.h +251 -0
  186. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INImage.h +14 -0
  187. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntent.h +18 -0
  188. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentIdentifiers.h +30 -0
  189. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentResponse.h +12 -0
  190. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h +35 -0
  191. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +0 -7
  192. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +0 -7
  193. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INOutgoingMessageType.h +7 -0
  194. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPerson.h +36 -0
  195. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPersonHandle.h +22 -0
  196. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent+UserNotifications.h +6 -0
  197. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent.h +33 -0
  198. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSpeakableString.h +24 -0
  199. package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +11 -7
  200. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +1 -1
  201. package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +1 -1
  202. package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +0 -8
  203. package/sdk/ios/System/Library/Frameworks/MetalTypes.framework/Headers/MetalTypes.h +8 -0
  204. package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/SLServiceTypes.h +9 -0
  205. package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/Social.h +1 -0
  206. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +1 -1
  207. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +2 -2
  208. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +1 -1
  209. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +1 -1
  210. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +2 -2
  211. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +1 -1
  212. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +2 -2
  213. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +1 -1
  214. package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +5 -5
  215. package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
  216. package/sdk/ios/wasm/include/unistd.h +1 -0
  217. package/src/acorn-program.ts +3 -0
  218. package/src/audio-codec-archives.ts +141 -0
  219. package/src/bridge-contract-input.ts +61 -1
  220. package/src/bridge-contract.ts +45 -4
  221. package/src/bundle-channel.mjs +44 -30
  222. package/src/capture-contract.ts +57 -39
  223. package/src/conformance-comparison-contract.ts +2 -0
  224. package/src/expo-discovery-cache.ts +0 -2
  225. package/src/expo-macro-host.ts +8 -3
  226. package/src/expo-native-compiler-digest.ts +0 -1
  227. package/src/expo-native-prebuilt.ts +1 -1
  228. package/src/expo-native-workspace.ts +83 -45
  229. package/src/expo-pod-prebuilt.ts +1 -0
  230. package/src/expo-swift-host.ts +158 -77
  231. package/src/expo-swift-legacy-runtime-source.ts +12 -1
  232. package/src/expo-swift-view-source.ts +51 -20
  233. package/src/expo-workspace-exclusion.ts +7 -1
  234. package/src/expoSwiftContract.ts +10 -1
  235. package/src/ffmpeg-source-build.ts +123 -59
  236. package/src/genrule-archives.ts +7 -2
  237. package/src/genrule-library-builds.ts +101 -18
  238. package/src/host/bridge-host.ts +10 -1
  239. package/src/installed-native-libraries.ts +147 -23
  240. package/src/installed-package-versions.ts +30 -0
  241. package/src/ios-rn-bundle-request.ts +3 -1
  242. package/src/ios-rn-bundle.ts +38 -27
  243. package/src/ios-rn-compile.ts +23 -6
  244. package/src/ios-rn-startup.ts +2 -1
  245. package/src/java-module-abi.ts +4 -3
  246. package/src/kotlin-host.ts +4 -4
  247. package/src/kotlin-library-sources.ts +8 -5
  248. package/src/metro-production-bundle.ts +24 -0
  249. package/src/native-firebase-config.ts +2 -0
  250. package/src/native-framework-compiler.ts +5 -0
  251. package/src/native-package-slice-build.ts +3 -0
  252. package/src/native-package-slice.ts +15 -10
  253. package/src/native-preparation.ts +4 -1
  254. package/src/native-static-libraries.ts +107 -33
  255. package/src/nativeRuntimePackageIndex.ts +1 -4
  256. package/src/nitro-adapter.lock.json +286 -286
  257. package/src/nitro-app-providers.ts +20 -8
  258. package/src/nitro-compile.ts +131 -37
  259. package/src/nitro-dependencies.ts +42 -8
  260. package/src/nitro-source.ts +40 -36
  261. package/src/nitro-superset.lock.json +4 -4
  262. package/src/nitroAdapterContract.ts +32 -7
  263. package/src/nitroContract.ts +21 -37
  264. package/src/one-direct-host-source.ts +247 -140
  265. package/src/one-fabric.ts +129 -0
  266. package/src/one-native-controls-package.ts +95 -21
  267. package/src/one-native-controls-release.ts +147 -14
  268. package/src/one-native-source.ts +4 -1
  269. package/src/one-nitro-inputs.ts +1 -1
  270. package/src/one-nitro-source.ts +45 -1
  271. package/src/one-sdk/source.ts +10 -41
  272. package/src/one-widget-metadata.ts +2 -2
  273. package/src/one-widget-package.ts +1 -1
  274. package/src/oneSdkContract.ts +3 -0
  275. package/src/playwright-browser-paths.ts +30 -0
  276. package/src/pods-install.ts +6 -2
  277. package/src/pods-post-install.ts +2 -2
  278. package/src/pods-project.ts +10 -0
  279. package/src/podspec-ruby-stdlib.ts +73 -0
  280. package/src/podspec-ruby.ts +1 -1
  281. package/src/podspec-sources.ts +31 -13
  282. package/src/process-group.ts +135 -5
  283. package/src/published-swift-sdk.ts +25 -1
  284. package/src/react-native-bridge-modules.ts +35 -3
  285. package/src/react-native-core-build.ts +14 -2
  286. package/src/react-native-core.ts +12 -2
  287. package/src/rive-runtime-dependencies.ts +178 -40
  288. package/src/serverDiscoveryContract.ts +1 -1
  289. package/src/storageSnapshotContract.ts +1 -1
  290. package/src/swift-app-data-store.ts +35 -0
  291. package/src/swift-compile.ts +403 -121
  292. package/src/swift-compiler-digest.ts +4 -0
  293. package/src/swift-darwin-records.ts +6 -0
  294. package/src/swift-distribution-mirror.ts +10 -1
  295. package/src/swift-distribution.lock.json +19 -18
  296. package/src/swift-distribution.ts +17 -1
  297. package/src/swift-entry-module.ts +1 -0
  298. package/src/swift-guest-compile.ts +8 -1
  299. package/src/swift-host.ts +79 -23
  300. package/src/swift-installed-targets.ts +51 -20
  301. package/src/swift-objc-standin.ts +60 -8
  302. package/src/swift-packages.ts +104 -24
  303. package/src/swift-project-user.ts +2 -1
  304. package/src/swift-reproducible.ts +99 -1
  305. package/src/swift-root-lock.ts +52 -46
  306. package/src/swift-sdk-app-module.ts +65 -13
  307. package/src/swift-sdk-image-producer.ts +2 -1
  308. package/src/swift-sdk-image.ts +23 -8
  309. package/src/swift-sdk-later-data.ts +294 -44
  310. package/src/swift-sdk-surface.ts +233 -55
  311. package/src/swift-shared-sdk.ts +7 -0
  312. package/src/swift-standin-builtin-behavior.ts +18 -0
  313. package/src/swift-standin-emit.ts +242 -54
  314. package/src/swift-standins.ts +184 -38
  315. package/src/swift-startup-split.ts +19 -9
  316. package/src/swift-toolchain.ts +18 -0
  317. package/src/swift-wasm-prune.ts +179 -9
  318. package/src/swift-xcframework.ts +16 -0
  319. package/src/swiftContract.ts +4 -1
  320. package/src/swiftSdkLinkContract.ts +2 -0
  321. package/src/swiftTargetContract.ts +1 -0
  322. package/src/turbo-bundle.ts +6 -3
  323. package/src/turbo-codegen-intake.ts +106 -16
  324. package/src/turbo-compile.ts +89 -68
  325. package/src/turbo-fabric-app.ts +287 -23
  326. package/src/turbo-provider-host.ts +122 -31
  327. package/src/turbo-runtime.lock.json +26 -26
  328. package/src/turbo-source.ts +374 -157
  329. package/src/vite-plugin.ts +48 -112
  330. package/src/wasm-binary-sections.ts +40 -0
  331. package/src/wasm-code-immediates.ts +35 -5
  332. package/src/widget-extension-bundle.ts +15 -1
  333. package/src/worklet-executable.ts +2 -1
  334. package/src/worklet-kernel.ts +5 -3
  335. package/src/worklets-babel.ts +2 -1
  336. package/src/xcode-project.ts +151 -53
  337. package/src/xcode-scheme-actions.ts +104 -0
  338. package/cli/commands/canvas.ts +0 -1204
  339. package/dist-lib/esm-chunks/chunk-B5QD2KEV.mjs +0 -2787
  340. package/dist-lib/vendor/magic-string.cjs +0 -1693
  341. package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +0 -127
  342. package/src/appBundleResourcesContract.ts +0 -51
  343. package/src/canvas-groups.ts +0 -28
  344. package/src/canvas-map-layout.ts +0 -161
  345. package/src/oneWidgetContract.ts +0 -134
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2935 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2937 | (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;
@@ -597,7 +597,8 @@ async function waitForSootsimIdle({
597
597
  await bridge.send({
598
598
  type: "settle",
599
599
  simId,
600
- maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16)))
600
+ maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16))),
601
+ timeoutMs: Math.max(1, maxMs)
601
602
  });
602
603
  return { elapsed: Date.now() - started, settled: true, blockedBy: "" };
603
604
  } catch (error) {
@@ -1386,6 +1387,22 @@ var import_node_fs2 = require("node:fs");
1386
1387
  var import_node_os2 = require("node:os");
1387
1388
 
1388
1389
  // src/process-group.ts
1390
+ var stopCompilerTree = [
1391
+ "stop_tree() {",
1392
+ ' kill -STOP "$1" 2>/dev/null || return',
1393
+ process.platform === "linux" ? [
1394
+ "children=",
1395
+ 'for file in /proc/"$1"/task/*/children; do',
1396
+ ' [ -r "$file" ] || continue',
1397
+ " pids=",
1398
+ ' IFS= read -r pids <"$file" || :',
1399
+ ' children="$children $pids"',
1400
+ "done"
1401
+ ].join("\n") : 'children=$(/usr/bin/pgrep -P "$1")',
1402
+ ' for child in $children; do stop_tree "$child"; done',
1403
+ ' kill -KILL "$1" 2>/dev/null || :',
1404
+ "}"
1405
+ ].join("\n");
1389
1406
  function listProcessChildren(parents, timeoutMs = 1e4) {
1390
1407
  if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
1391
1408
  throw new Error("process inspection requires valid parent pids");
@@ -1442,7 +1459,7 @@ function isValidRuntimeVersion(value) {
1442
1459
  }
1443
1460
 
1444
1461
  // runtime-companion.json
1445
- var runtime_companion_default = { abi: 1, sha256: "e9e60176ccb6b48105f16443277be74b170b78d68bc10b9615a0d4e340f53d4c", file: "node/cli-e9e60176ccb6b48105f16443277be74b170b78d68bc10b9615a0d4e340f53d4c.cjs" };
1462
+ var runtime_companion_default = { abi: 1, sha256: "510ae4a9e842fdae053200bbe4d3a0b4e6c04fd145d96407eb7e0759d8a67fd4", file: "node/cli-510ae4a9e842fdae053200bbe4d3a0b4e6c04fd145d96407eb7e0759d8a67fd4.cjs" };
1446
1463
 
1447
1464
  // src/answeredNativePackages.ts
1448
1465
  var import_node_async_hooks = require("node:async_hooks");
@@ -1721,7 +1738,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1721
1738
  "@expo/ui",
1722
1739
  "@expo/ui/community/menu",
1723
1740
  "@extrieve_technologies/quickcapture_react_native",
1724
- "@fingerprintjs/fingerprintjs-pro-react-native",
1725
1741
  "@fishjam-cloud/react-native-client",
1726
1742
  "@fishjam-cloud/react-native-webrtc",
1727
1743
  "@flitzinteractive/react-native-nitro-html-pdf",
@@ -1778,7 +1794,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
1778
1794
  "@mhpdev/react-native-haptics",
1779
1795
  "@mhpdev/react-native-speech",
1780
1796
  "@mj-studio/react-native-naver-map",
1781
- "@mozzius/expo-dynamic-app-icon",
1782
1797
  "@nandorojo/galeria",
1783
1798
  "@notifee/react-native",
1784
1799
  "@novastera-oss/rn-google-signin",
@@ -2251,6 +2266,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
2251
2266
  "react-native-keep-awake",
2252
2267
  "react-native-key-command",
2253
2268
  "react-native-key-pair",
2269
+ "react-native-keyboard-controller",
2254
2270
  "react-native-keyboard-manager",
2255
2271
  "react-native-keychain",
2256
2272
  "react-native-keyevent",
@@ -2489,7 +2505,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
2489
2505
  "react-native-urovo",
2490
2506
  "react-native-ux-cam",
2491
2507
  "react-native-variable-blur",
2492
- "react-native-vector-icons",
2493
2508
  "react-native-version-check",
2494
2509
  "react-native-version-info",
2495
2510
  "react-native-version-number",
@@ -2572,8 +2587,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
2572
2587
  ];
2573
2588
  var NATIVE_RUNTIME_PACKAGE_NAMES = [
2574
2589
  ...NATIVE_STUB_PACKAGE_NAMES,
2575
- ...LIGHT_NATIVE_PACKAGE_NAMES,
2576
- "@one/native-engine"
2590
+ ...LIGHT_NATIVE_PACKAGE_NAMES
2577
2591
  ];
2578
2592
 
2579
2593
  // ../peach-globals/src/guest-modules/wrapper-real-packages.ts
@@ -2582,25 +2596,13 @@ var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
2582
2596
  specifier: "@peach-internal/expo-coded-error",
2583
2597
  packageName: "expo-modules-core/build/errors/CodedError.js"
2584
2598
  },
2585
- expoUnavailabilityError: {
2586
- specifier: "@peach-internal/expo-unavailability-error",
2587
- packageName: "expo-modules-core/build/errors/UnavailabilityError.js"
2588
- },
2589
- expoPlatform: {
2590
- specifier: "@peach-internal/expo-platform",
2591
- packageName: "expo-modules-core/build/Platform.js"
2592
- },
2593
- expoLegacyEventEmitter: {
2594
- specifier: "@peach-internal/expo-legacy-event-emitter",
2595
- packageName: "expo-modules-core/build/LegacyEventEmitter.js"
2599
+ expoBrowserUuid: {
2600
+ specifier: "@peach-internal/expo-browser-uuid",
2601
+ packageName: "expo-modules-core/build/uuid/index.web.js"
2596
2602
  },
2597
2603
  expoSharedObjectHook: {
2598
2604
  specifier: "@peach-internal/expo-shared-object-hook",
2599
2605
  packageName: "expo-modules-core/build/hooks/useReleasingSharedObject.js"
2600
- },
2601
- expoSharedObjectLifecycleHook: {
2602
- specifier: "@peach-internal/expo-shared-object-lifecycle-hook",
2603
- packageName: "expo-modules-core/build/hooks/useReleasingSharedObjectWithLifecycle.js"
2604
2606
  }
2605
2607
  };
2606
2608
  var PEACH_REACT_NATIVE_UPSTREAM_MODULES = {
@@ -3188,6 +3190,8 @@ function describeStep(step) {
3188
3190
  return step.action === "shake" ? "Shaking the device" : "Setting ring mode";
3189
3191
  case "setOrientation":
3190
3192
  return `Rotating to ${step.orientation}`;
3193
+ case "setPosture":
3194
+ return `Folding to ${step.rest ?? step.posture ?? "open"}`;
3191
3195
  case "incrementElement":
3192
3196
  case "decrementElement":
3193
3197
  return verb("Adjusting", step.id);
@@ -3196,6 +3200,11 @@ function describeStep(step) {
3196
3200
  case "wait":
3197
3201
  case "waitFor":
3198
3202
  case "deviceInfo":
3203
+ case "stepFrame":
3204
+ case "releaseClock":
3205
+ case "screenshot":
3206
+ case "describe":
3207
+ case "scrollStateAt":
3199
3208
  case "discoverStoreKitConfig":
3200
3209
  case "clearStoreKitConfig":
3201
3210
  return null;
@@ -3884,8 +3893,10 @@ function readCompiledMetadata(label, value, readPackage, names) {
3884
3893
  const icuUrl = Reflect.get(value, "icuUrl");
3885
3894
  const peak = Reflect.get(value, "walkPeakPages");
3886
3895
  const walkPeakPages = readNativeStartupPeak(peak);
3896
+ const startupParts = Reflect.get(value, "startupParts");
3897
+ const interactionParts = Reflect.get(value, "interactionParts");
3887
3898
  const packed = Reflect.get(value, "bundleFiles");
3888
- if (packages.length === 0 || !packages.every((entry) => entry !== null) || new Set(packages.map(({ name: name2 }) => name2)).size !== packages.length || new Set(packages.flatMap(names)).size !== packages.reduce((total, entry) => total + names(entry).length, 0) || typeof url !== "string" || !url || typeof hash !== "string" || !/^[a-f0-9]{64}$/.test(hash) || typeof icuUrl !== "string" || !icuUrl || peak !== walkPeakPages || !isRecord(packed))
3899
+ if (packages.length === 0 || !packages.every((entry) => entry !== null) || new Set(packages.map(({ name: name2 }) => name2)).size !== packages.length || new Set(packages.flatMap(names)).size !== packages.reduce((total, entry) => total + names(entry).length, 0) || typeof url !== "string" || !url || typeof hash !== "string" || !/^[a-f0-9]{64}$/.test(hash) || typeof icuUrl !== "string" || !icuUrl || peak !== walkPeakPages || startupParts !== void 0 && !isNativeLazyDigestList(startupParts) || interactionParts !== void 0 && !isNativeLazyDigestList(interactionParts) || !isRecord(packed))
3889
3900
  throw new Error(`invalid ${label} compilation metadata`);
3890
3901
  const bundleFiles = Object.fromEntries(
3891
3902
  Object.entries(packed).map(([name2, bytes]) => {
@@ -3894,7 +3905,17 @@ function readCompiledMetadata(label, value, readPackage, names) {
3894
3905
  return [name2, bytes];
3895
3906
  })
3896
3907
  );
3897
- return { platform: "ios", packages, url, hash, icuUrl, bundleFiles, walkPeakPages };
3908
+ return {
3909
+ platform: "ios",
3910
+ packages,
3911
+ url,
3912
+ hash,
3913
+ icuUrl,
3914
+ bundleFiles,
3915
+ walkPeakPages,
3916
+ ...startupParts !== void 0 && { startupParts },
3917
+ ...interactionParts !== void 0 && { interactionParts }
3918
+ };
3898
3919
  }
3899
3920
  function readSdkEntryMetadata(label, value) {
3900
3921
  const sdkUrl = Reflect.get(value, "sdkUrl");
@@ -3937,13 +3958,9 @@ function readTurboMetadata(value) {
3937
3958
  readCompiledPackage,
3938
3959
  () => []
3939
3960
  );
3940
- const startupParts = Reflect.get(value, "startupParts");
3941
- if (startupParts !== void 0 && !isNativeLazyDigestList(startupParts))
3942
- throw new Error("invalid TurboModule startup parts");
3943
3961
  return metadata && {
3944
3962
  ...metadata,
3945
3963
  ...readSdkEntryMetadata("TurboModule", value),
3946
- ...startupParts && { startupParts },
3947
3964
  ...unavailable ? { unavailable } : {}
3948
3965
  };
3949
3966
  }
@@ -8657,18 +8674,40 @@ var device = {
8657
8674
  );
8658
8675
  return context.getImageData(0, 0, bounds.width, bounds.height).data;
8659
8676
  };
8660
- const encode = (snapshot) => {
8661
- const canvas = document.createElement("canvas");
8662
- canvas.width = snapshot.bitmap.width;
8663
- canvas.height = snapshot.bitmap.height;
8664
- const context = canvas.getContext("2d");
8665
- if (!context) throw new Error("peach motion capture needs a 2d canvas");
8666
- context.drawImage(snapshot.bitmap, 0, 0);
8667
- snapshot.bitmap.close();
8677
+ const encodedFrames = /* @__PURE__ */ new WeakMap();
8678
+ const encodingCanvas = document.createElement("canvas");
8679
+ const encodingContext = encodingCanvas.getContext("2d", {
8680
+ willReadFrequently: true
8681
+ });
8682
+ if (!encodingContext) throw new Error("peach motion capture needs a 2d canvas");
8683
+ const encode = async (snapshot) => {
8684
+ let pending = encodedFrames.get(snapshot.bitmap);
8685
+ if (!pending) {
8686
+ if (encodingCanvas.width !== snapshot.bitmap.width)
8687
+ encodingCanvas.width = snapshot.bitmap.width;
8688
+ if (encodingCanvas.height !== snapshot.bitmap.height)
8689
+ encodingCanvas.height = snapshot.bitmap.height;
8690
+ encodingContext.globalCompositeOperation = "copy";
8691
+ encodingContext.drawImage(snapshot.bitmap, 0, 0);
8692
+ snapshot.bitmap.close();
8693
+ pending = new Promise((resolve6, reject) => {
8694
+ encodingCanvas.toBlob((png) => {
8695
+ if (!png) {
8696
+ reject(new Error("peach motion capture could not encode a PNG"));
8697
+ return;
8698
+ }
8699
+ const reader = new FileReader();
8700
+ reader.onload = () => resolve6(String(reader.result));
8701
+ reader.onerror = () => reject(reader.error);
8702
+ reader.readAsDataURL(png);
8703
+ }, "image/png");
8704
+ });
8705
+ encodedFrames.set(snapshot.bitmap, pending);
8706
+ }
8668
8707
  return {
8669
8708
  actualMs: snapshot.actualMs,
8670
8709
  anchorId: snapshot.anchorId,
8671
- dataUrl: canvas.toDataURL("image/png"),
8710
+ dataUrl: await pending,
8672
8711
  label: snapshot.label,
8673
8712
  offsetMs: snapshot.offsetMs,
8674
8713
  frameIndex: snapshot.frameIndex,
@@ -8693,6 +8732,7 @@ var device = {
8693
8732
  workletFrameTimestampsSeconds: input.workletFrameTimestampsSeconds
8694
8733
  });
8695
8734
  let heldInput = null;
8735
+ let holdScheduleMs = [];
8696
8736
  const releaseReceipt = () => controller.inputReceipts.find((receipt) => receipt.phase === "up");
8697
8737
  const keptFrames = /* @__PURE__ */ new Map();
8698
8738
  const keepFrame = (receipt, bitmap) => {
@@ -8718,75 +8758,73 @@ var device = {
8718
8758
  state.ready = true;
8719
8759
  if (input.hold && interact) {
8720
8760
  const hold = input.hold;
8721
- const moves = hold.moves ?? [];
8722
- const release = hold.release ?? moves.at(-1) ?? hold;
8723
- const events = [
8724
- {
8725
- phase: "down",
8726
- x: hold.x,
8727
- y: hold.y,
8728
- pointerId: 999,
8729
- afterMs: 0,
8730
- eventAfterMs: 0,
8731
- async deliver(timestamp) {
8732
- const hit = await interact.touchDown(hold.x, hold.y, 999, timestamp);
8733
- if (!hit)
8734
- throw new Error(`peach motion hold missed at ${hold.x},${hold.y}`);
8735
- }
8736
- },
8737
- ...moves.map(
8738
- (move) => ({
8739
- phase: "move",
8740
- x: move.x,
8741
- y: move.y,
8761
+ const contacts = [
8762
+ { ...hold, afterMs: 0, eventAfterMs: 0 },
8763
+ ...hold.contacts ?? []
8764
+ ];
8765
+ const events = contacts.flatMap((contact) => {
8766
+ const { x, y, afterMs, durationMs, moves = [] } = contact;
8767
+ const eventAfterMs = contact.eventAfterMs ?? afterMs;
8768
+ const lift = contact.release ?? moves.at(-1) ?? contact;
8769
+ return [
8770
+ {
8771
+ phase: "down",
8772
+ x,
8773
+ y,
8742
8774
  pointerId: 999,
8743
- afterMs: move.afterMs,
8744
- eventAfterMs: move.eventAfterMs,
8775
+ afterMs,
8776
+ eventAfterMs,
8745
8777
  async deliver(timestamp) {
8746
- await interact.touchMove(move.x, move.y, 999, timestamp);
8778
+ if (!await interact.touchDown(
8779
+ x,
8780
+ y,
8781
+ 999,
8782
+ timestamp,
8783
+ contact.systemGesturesPossible
8784
+ ))
8785
+ throw new Error("peach motion press missed at " + x + "," + y);
8747
8786
  }
8748
- })
8749
- ),
8750
- {
8751
- phase: "up",
8752
- x: release.x,
8753
- y: release.y,
8754
- pointerId: 999,
8755
- afterMs: hold.durationMs,
8756
- eventAfterMs: hold.eventDurationMs,
8757
- async deliver(timestamp) {
8758
- await interact.touchUp(release.x, release.y, 999, timestamp);
8759
- }
8760
- },
8761
- ...(hold.taps ?? []).flatMap((tap) => {
8762
- const lift = tap.release ?? tap;
8763
- return [
8764
- {
8765
- phase: "down",
8766
- x: tap.x,
8767
- y: tap.y,
8768
- pointerId: 999,
8769
- afterMs: tap.afterMs,
8770
- eventAfterMs: tap.eventAfterMs,
8771
- async deliver(timestamp) {
8772
- if (!await interact.touchDown(tap.x, tap.y, 999, timestamp))
8773
- throw new Error(`peach motion tap missed at ${tap.x},${tap.y}`);
8774
- }
8775
- },
8776
- {
8777
- phase: "up",
8778
- x: lift.x,
8779
- y: lift.y,
8787
+ },
8788
+ ...moves.map(
8789
+ (move) => ({
8790
+ phase: "move",
8791
+ x: move.x,
8792
+ y: move.y,
8780
8793
  pointerId: 999,
8781
- afterMs: tap.afterMs + tap.durationMs,
8782
- eventAfterMs: (tap.eventAfterMs ?? tap.afterMs) + (tap.eventDurationMs ?? tap.durationMs),
8794
+ afterMs: move.afterMs,
8795
+ eventAfterMs: move.eventAfterMs,
8796
+ animationAfterMs: move.animationAfterMs,
8783
8797
  async deliver(timestamp) {
8784
- await interact.touchUp(lift.x, lift.y, 999, timestamp);
8798
+ await interact.touchMove(
8799
+ move.x,
8800
+ move.y,
8801
+ 999,
8802
+ timestamp,
8803
+ move.systemGesturesPossible
8804
+ );
8785
8805
  }
8806
+ })
8807
+ ),
8808
+ {
8809
+ phase: "up",
8810
+ x: lift.x,
8811
+ y: lift.y,
8812
+ pointerId: 999,
8813
+ afterMs: afterMs + durationMs,
8814
+ eventAfterMs: eventAfterMs + (contact.eventDurationMs ?? durationMs),
8815
+ async deliver(timestamp) {
8816
+ await interact.touchUp(
8817
+ lift.x,
8818
+ lift.y,
8819
+ 999,
8820
+ timestamp,
8821
+ lift.systemGesturesPossible
8822
+ );
8786
8823
  }
8787
- ];
8788
- })
8789
- ];
8824
+ }
8825
+ ];
8826
+ });
8827
+ holdScheduleMs = events.map(({ afterMs }) => afterMs).sort((a, b) => a - b);
8790
8828
  heldInput = controller.scheduleInput(events);
8791
8829
  heldInput.catch(() => {
8792
8830
  });
@@ -8909,14 +8947,14 @@ var device = {
8909
8947
  if (input.producerWitness && (input.anchorAtTouch !== "up" || !driveStart.tenantFrame?.guestClockFrozen))
8910
8948
  throw new Error("producer witness requires a frozen delivered release clock");
8911
8949
  const nativeAnimationClock = input.producerWitness?.nativeAnimationClock;
8912
- const screenAnimationClock = nativeAnimationClock ? await controller.setScreenTransitionClock({
8950
+ const screenAnimationClock = nativeAnimationClock ? {
8913
8951
  startTimeMs: driveStart.virtualTimestampMs + nativeAnimationClock.startTimeMs,
8914
8952
  headerStartTimeMs: driveStart.virtualTimestampMs + nativeAnimationClock.headerStartTimeMs,
8915
8953
  frames: nativeAnimationClock.frames.map((frame) => ({
8916
8954
  callbackTimeMs: driveStart.virtualTimestampMs + frame.callbackTimeMs,
8917
8955
  timestampMs: driveStart.virtualTimestampMs + frame.timestampMs
8918
8956
  }))
8919
- }) : null;
8957
+ } : null;
8920
8958
  if (input.producerWitness && !nativeAnimationClock) {
8921
8959
  const test = captureWindow.SootSim?.bridges?.test;
8922
8960
  if (!test) throw new Error("producer witness requires the test bridge");
@@ -9032,15 +9070,6 @@ var device = {
9032
9070
  });
9033
9071
  return { anchorId: anchor.id, receipt: anchorReceipt };
9034
9072
  };
9035
- const holdScheduleMs = input.hold ? [
9036
- 0,
9037
- ...(input.hold.moves ?? []).map((move) => move.afterMs),
9038
- input.hold.durationMs,
9039
- ...(input.hold.taps ?? []).flatMap((tap) => [
9040
- tap.afterMs,
9041
- tap.afterMs + tap.durationMs
9042
- ])
9043
- ].sort((a, b) => a - b) : [];
9044
9073
  const stageOffsetMs = async (offsetMs, anchorId, nativeActualMs = offsetMs) => {
9045
9074
  if (anchorId !== "transition" || input.witnessedInput || input.anchorAtTouch !== "down")
9046
9075
  return offsetMs;
@@ -9061,7 +9090,19 @@ var device = {
9061
9090
  );
9062
9091
  };
9063
9092
  const snapshots = [];
9064
- const stepToTime = async (targetMs, { sampledRefresh = false, label = "", composite = true } = {}) => {
9093
+ const addSnapshot = (snapshot) => {
9094
+ const encoded = encode(snapshot);
9095
+ void encoded.catch(() => {
9096
+ });
9097
+ snapshots.push({ virtualTimestampMs: snapshot.virtualTimestampMs, encoded });
9098
+ };
9099
+ const stepToTime = async (targetMs, {
9100
+ sampledRefresh = false,
9101
+ label = "",
9102
+ composite = true,
9103
+ nativeTouchesShown,
9104
+ inputThroughMs = targetMs
9105
+ } = {}) => {
9065
9106
  let receipt = currentReceipt;
9066
9107
  const nextFrameTime = (afterMs, frameDurationMs = 1e3 / 60) => {
9067
9108
  if (!nativeAnimationClock) return afterMs + frameDurationMs;
@@ -9088,33 +9129,60 @@ var device = {
9088
9129
  receipt = await controller.stepFrame(
9089
9130
  refreshMs - receipt.virtualTimestampMs,
9090
9131
  {
9091
- composite: composite && sampled
9132
+ composite: composite && sampled,
9133
+ inputLimit: nativeTouchesShown
9092
9134
  }
9093
9135
  );
9094
9136
  nextFrameDurationMs = void 0;
9095
9137
  refreshMs = nextFrameTime(receipt.virtualTimestampMs);
9096
9138
  }
9097
- if (!sampledRefresh && targetMs - receipt.virtualTimestampMs > 0.01) {
9098
- receipt = await controller.stepFrame(
9099
- targetMs - receipt.virtualTimestampMs,
9100
- {
9101
- composite
9102
- }
9103
- );
9139
+ const pressMs = controller.inputReceipts[0]?.virtualTimestampMs;
9140
+ const followsPanAdmission = input.hold?.panAdmissionCommitOffsetMs !== void 0 && pressMs !== void 0 && input.hold.panAdmissionCommitOffsetMs <= targetMs - pressMs;
9141
+ const showsNewTouch = nativeTouchesShown !== void 0 && pressMs !== void 0 && controller.inputReceipts.length < nativeTouchesShown && holdScheduleMs[nativeTouchesShown - 1] <= inputThroughMs - pressMs && (input.hold?.panAdmissionCommitOffsetMs ?? -Infinity) <= targetMs - pressMs;
9142
+ const samplesPanPresentation = nativeTouchesShown !== void 0 && nativeTouchesShown < holdScheduleMs.length && followsPanAdmission;
9143
+ const deltaMs = targetMs - receipt.virtualTimestampMs;
9144
+ if ((deltaMs > 0.01 || inputThroughMs !== targetMs) && sampledRefresh && showsNewTouch && !samplesPanPresentation) {
9145
+ receipt = await controller.flushFrame({
9146
+ composite,
9147
+ inputLimit: nativeTouchesShown,
9148
+ inputThroughMs
9149
+ });
9150
+ } else if (deltaMs > 0.01 && (!sampledRefresh || samplesPanPresentation)) {
9151
+ if (samplesPanPresentation) nextFrameDurationMs = refreshMs - targetMs;
9152
+ receipt = await controller.stepFrame(deltaMs, {
9153
+ composite,
9154
+ inputLimit: nativeTouchesShown
9155
+ });
9104
9156
  }
9105
9157
  currentReceipt = receipt;
9106
9158
  return receipt;
9107
9159
  };
9160
+ const sampledFrames = /* @__PURE__ */ new WeakMap();
9161
+ if (screenAnimationClock) {
9162
+ const firstCallback = screenAnimationClock.frames[0]?.callbackTimeMs;
9163
+ if (firstCallback !== void 0 && firstCallback > currentReceipt.virtualTimestampMs)
9164
+ await stepToTime(firstCallback - 1e-3, { sampledRefresh: true });
9165
+ await controller.setScreenTransitionClock(screenAnimationClock);
9166
+ }
9108
9167
  const sampleAt = async (stage, anchorReceipt, anchorId, targetMs) => {
9109
- const sampledRefresh = Boolean(input.producerWitness || input.witnessedInput || input.hold) && !(input.witnessedInput && stage.nativeTouchesShown === holdScheduleMs.length);
9110
- const receipt = await stepToTime(targetMs, {
9168
+ const nativeSample = stage.nativeAnimationSampleMs;
9169
+ const sampleMs = nativeSample === void 0 ? targetMs : anchorReceipt.virtualTimestampMs + nativeSample;
9170
+ const sampledRefresh = nativeSample !== void 0 || Boolean(input.producerWitness || input.witnessedInput || input.hold) && !(input.witnessedInput && input.hold?.panAdmissionCommitOffsetMs === void 0 && stage.nativeTouchesShown === holdScheduleMs.length);
9171
+ const receipt = await stepToTime(sampleMs, {
9111
9172
  sampledRefresh,
9112
- label: stage.label
9173
+ inputThroughMs: targetMs,
9174
+ label: stage.label,
9175
+ nativeTouchesShown: input.witnessedInput ? stage.nativeTouchesShown : void 0
9113
9176
  });
9114
- snapshots.push({
9177
+ let bitmap = sampledFrames.get(receipt);
9178
+ if (!bitmap) {
9179
+ bitmap = await captureBitmap();
9180
+ sampledFrames.set(receipt, bitmap);
9181
+ }
9182
+ addSnapshot({
9115
9183
  actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9116
9184
  anchorId,
9117
- bitmap: await captureBitmap(),
9185
+ bitmap,
9118
9186
  frameIndex: receipt.frameIndex,
9119
9187
  label: stage.label,
9120
9188
  offsetMs: stage.offsetMs,
@@ -9174,7 +9242,7 @@ var device = {
9174
9242
  composite: currentReceipt.frameIndex + 1 === frameIndex
9175
9243
  });
9176
9244
  }
9177
- snapshots.push({
9245
+ addSnapshot({
9178
9246
  actualMs: currentReceipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9179
9247
  anchorId,
9180
9248
  bitmap: await captureBitmap(),
@@ -9190,7 +9258,7 @@ var device = {
9190
9258
  const baselineFrame = keptFrames.get(anchorReceipt.frameIndex);
9191
9259
  if (!baselineFrame || currentReceipt.frameIndex !== anchorReceipt.frameIndex)
9192
9260
  throw new Error("peach pre-press baseline is unavailable");
9193
- snapshots.push({
9261
+ addSnapshot({
9194
9262
  actualMs: 0,
9195
9263
  anchorId,
9196
9264
  bitmap: await createImageBitmap(baselineFrame.bitmap),
@@ -9274,7 +9342,7 @@ var device = {
9274
9342
  if (!best)
9275
9343
  throw new Error(`peach phase fit for ${stage.label} sampled nothing`);
9276
9344
  phaseMs = best.receipt.virtualTimestampMs - nativeMs;
9277
- snapshots.push({
9345
+ addSnapshot({
9278
9346
  actualMs: best.receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9279
9347
  anchorId,
9280
9348
  bitmap: best.bitmap,
@@ -9316,7 +9384,7 @@ var device = {
9316
9384
  }
9317
9385
  currentReceipt = receipt2;
9318
9386
  phaseMs = receipt2.virtualTimestampMs - nominalMs;
9319
- snapshots.push({
9387
+ addSnapshot({
9320
9388
  actualMs: receipt2.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9321
9389
  anchorId,
9322
9390
  bitmap: progressBitmap,
@@ -9339,7 +9407,7 @@ var device = {
9339
9407
  const stageFrameIndex = anchorReceipt.frameIndex + controller.framesForOffset(touchOffsetMs);
9340
9408
  const kept = keptFrames.get(stageFrameIndex);
9341
9409
  if (kept && stageFrameIndex <= currentReceipt.frameIndex) {
9342
- snapshots.push({
9410
+ addSnapshot({
9343
9411
  actualMs: kept.receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9344
9412
  anchorId,
9345
9413
  bitmap: await createImageBitmap(kept.bitmap),
@@ -9361,7 +9429,7 @@ var device = {
9361
9429
  }
9362
9430
  const receipt = await controller.stepToOffset(anchorReceipt, touchOffsetMs);
9363
9431
  currentReceipt = receipt;
9364
- snapshots.push({
9432
+ addSnapshot({
9365
9433
  actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
9366
9434
  anchorId,
9367
9435
  bitmap: await captureBitmap(),
@@ -9415,7 +9483,7 @@ var device = {
9415
9483
  guestNowMs: driveStart.tenantFrame?.guestNowMs ?? null,
9416
9484
  guestClockFrozen: driveStart.tenantFrame?.guestClockFrozen ?? null
9417
9485
  },
9418
- frames: snapshots.map(encode),
9486
+ frames: await Promise.all(snapshots.map((snapshot) => snapshot.encoded)),
9419
9487
  visibleChangeDetection: visibleStart && detectedMeasurement ? {
9420
9488
  actualMs: onsetElapsedMs,
9421
9489
  changedPixelPercent: detectedMeasurement.changePercent,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2935 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2937 | (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.2935 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2937 | (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-TQLKYMVP.mjs";
26
- import "./chunk-2TSM64HI.mjs";
25
+ } from "./chunk-ZNHR6C3L.mjs";
26
+ import "./chunk-LTE7YMEG.mjs";
27
27
  export {
28
28
  Node,
29
29
  Parser,
@@ -1,10 +1,11 @@
1
- /*! peach v0.1.2935 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
5
5
  "keyDown",
6
6
  "keyUp",
7
7
  "setOrientation",
8
+ "setPosture",
8
9
  "buttonDown",
9
10
  "buttonUp",
10
11
  "incrementElement",
@@ -19,6 +20,8 @@ function refusedPerformStepReason(type) {
19
20
  return `${type} is not supported: keys dispatch atomically; use the key step`;
20
21
  case "setOrientation":
21
22
  return "setOrientation is not supported: the simulator viewport is fixed at boot";
23
+ case "setPosture":
24
+ return "setPosture is not supported: the simulator posture is fixed at boot";
22
25
  case "buttonDown":
23
26
  case "buttonUp":
24
27
  return `${type} is not supported: the simulator has no hardware buttons`;
@@ -35,6 +38,7 @@ function performStepRefusal(type) {
35
38
  case "keyDown":
36
39
  case "keyUp":
37
40
  case "setOrientation":
41
+ case "setPosture":
38
42
  case "buttonDown":
39
43
  case "buttonUp":
40
44
  case "incrementElement":
@@ -42,6 +46,11 @@ function performStepRefusal(type) {
42
46
  case "discoverStoreKitConfig":
43
47
  case "clearStoreKitConfig":
44
48
  return refusedPerformStepReason(type);
49
+ case "stepFrame":
50
+ case "releaseClock":
51
+ case "screenshot":
52
+ case "describe":
53
+ case "scrollStateAt":
45
54
  case "touchDown":
46
55
  case "touchMove":
47
56
  case "touchUp":