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.
- package/LICENSE +6 -8
- package/cli/account-gate.ts +20 -3
- package/cli/app-bundle-resources.ts +66 -19
- package/cli/catalog/meta.ts +2 -106
- package/cli/command-agent.ts +7 -0
- package/cli/command-registry.ts +0 -1
- package/cli/commands/control.ts +13 -5
- package/cli/commands/daemon.ts +4 -2
- package/cli/commands/device.ts +78 -8
- package/cli/commands/do-chain.ts +11 -8
- package/cli/commands/inspect/core.ts +4 -9
- package/cli/commands/inspect/settling.ts +1 -0
- package/cli/commands/logout.ts +6 -1
- package/cli/commands/map.ts +2 -6
- package/cli/commands/package.ts +112 -57
- package/cli/commands/shell-url.ts +0 -1
- package/cli/download-auth.ts +2 -0
- package/cli/drivers/playwright-provisioning.ts +10 -38
- package/cli/github-workflow-identity.ts +8 -0
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +5 -0
- package/cli/main.ts +2 -10
- package/cli/outbound-endpoints.ts +26 -0
- package/detox/index.ts +227 -131
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +47 -3
- package/dist-lib/bridge-contract-input.mjs +6 -6
- package/dist-lib/bridge-contract.cjs +10 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +12779 -9515
- package/dist-lib/capture-contract.cjs +39 -17
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +8 -8
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +6 -6
- package/dist-lib/detox/index.cjs +200 -132
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-Q5TRRYSO.mjs → acorn-IIBLEO25.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-UDWBTBVG.mjs → chunk-4FTPQKPT.mjs} +10 -1
- package/dist-lib/esm-chunks/chunk-4WIDTRBB.mjs +10232 -0
- package/dist-lib/esm-chunks/{chunk-LCMFYMT7.mjs → chunk-5QZOQ3NZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BJ2OGUX7.mjs → chunk-CIY67HNL.mjs} +39 -17
- package/dist-lib/esm-chunks/{chunk-SKQTNQYE.mjs → chunk-CQFEMJ64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AXWVXRHX.mjs → chunk-CWVMCW23.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTALOHQR.mjs → chunk-F6DZ4DS2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4R7IZRD.mjs → chunk-HJMF6O7L.mjs} +74 -46
- package/dist-lib/esm-chunks/chunk-I6T4PXJF.mjs +154 -0
- package/dist-lib/esm-chunks/{chunk-XWAUZKIA.mjs → chunk-IJU3JMWM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CXWUIOCH.mjs → chunk-KODEPXQC.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WJE5QHSD.mjs → chunk-LD4K2VBL.mjs} +155 -36
- package/dist-lib/esm-chunks/{chunk-2TSM64HI.mjs → chunk-LTE7YMEG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3GGOXUJA.mjs → chunk-M3CSKAJE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7G5UETIG.mjs → chunk-NA6DJPB6.mjs} +43 -1
- package/dist-lib/esm-chunks/{chunk-MSUHMNAI.mjs → chunk-NNAX24FS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VDJA4LP4.mjs → chunk-PZPJJBAS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UEEEJVQA.mjs → chunk-QXSTHMWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S2RJB5I7.mjs → chunk-RBPVK5YI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VRAXNGYT.mjs → chunk-SCT5OFDV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T3M73LGP.mjs → chunk-U3CJGYSP.mjs} +50 -6
- package/dist-lib/esm-chunks/{chunk-SLUGTGQQ.mjs → chunk-VXTOQ522.mjs} +12 -6
- package/dist-lib/esm-chunks/{chunk-EL44SZMV.mjs → chunk-WMSVGYTH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FEDEPSEV.mjs → chunk-WRWINRWK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BNO52N2S.mjs → chunk-YZF2USRD.mjs} +1905 -8760
- package/dist-lib/esm-chunks/{chunk-TQLKYMVP.mjs → chunk-ZNHR6C3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{download-auth-registry-G75MIT55.mjs → download-auth-registry-AHS5MSIB.mjs} +4 -4
- package/dist-lib/esm-chunks/{metro-layout-parser-FXLUDTYT.mjs → metro-layout-parser-24ZYK5UP.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-524D4MA2.mjs → swift-package-prebuilt-L4YNXQRD.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-app-module-EX544YJY.mjs → swift-sdk-app-module-RM652JSW.mjs} +87 -71
- package/dist-lib/esm-chunks/{swift-sdk-image-LOTMWVM7.mjs → swift-sdk-image-5PQ44UJT.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-UO6B3M4U.mjs → swift-sdk-image-producer-GD3SM6YI.mjs} +5 -5
- package/dist-lib/esm-chunks/swift-sdk-later-data-62QYJ2KH.mjs +590 -0
- package/dist-lib/expo-swift-bundle.cjs +21037 -17896
- package/dist-lib/expo-swift-metadata.cjs +8 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -8
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +22481 -18741
- package/dist-lib/host/fetch-proxy-handler.cjs +21079 -17980
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +68 -38
- package/dist-lib/kotlin-host.cjs +97 -21
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +23 -1
- package/dist-lib/metro-production-bundle.mjs +24 -4
- package/dist-lib/native-app-identity-project.cjs +3582 -571
- package/dist-lib/native-app-identity-project.mjs +1024 -398
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +132 -116
- package/dist-lib/public-origins-lib.json +215 -173
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +17 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +6 -7
- package/dist-lib/sdk.mjs +13 -14
- package/dist-lib/skills.cjs +23216 -19650
- package/dist-lib/swift-compile.cjs +4337 -2905
- package/dist-lib/swift-compile.mjs +15 -13
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +94 -32
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +9 -6
- package/dist-types/packages/peach-engine/src/canvaskit-artifact-urls.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/capture/compositor-presentation-recording.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/canvaskit-artifact-hashes.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/engine/guest-scene-inspect.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/metalTypes.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/engine/portalContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/guest/http-cookie-storage.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/guest/native-evaluation-lease.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/guest/nitro-jsi-host.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +225 -9
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-compositor.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-contract.d.ts +44 -10
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -27
- package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +2 -6
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/app-bundle-resources.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -6
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/oneWidgetContract.d.ts +28 -0
- package/package.json +2 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreHaptics.framework/Headers/CoreHaptics.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INImage.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntent.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentIdentifiers.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentResponse.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INOutgoingMessageType.h +7 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPerson.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPersonHandle.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent+UserNotifications.h +6 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSpeakableString.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +11 -7
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +0 -8
- package/sdk/ios/System/Library/Frameworks/MetalTypes.framework/Headers/MetalTypes.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/SLServiceTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/Social.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +5 -5
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/src/acorn-program.ts +3 -0
- package/src/audio-codec-archives.ts +141 -0
- package/src/bridge-contract-input.ts +61 -1
- package/src/bridge-contract.ts +45 -4
- package/src/bundle-channel.mjs +44 -30
- package/src/capture-contract.ts +57 -39
- package/src/conformance-comparison-contract.ts +2 -0
- package/src/expo-discovery-cache.ts +0 -2
- package/src/expo-macro-host.ts +8 -3
- package/src/expo-native-compiler-digest.ts +0 -1
- package/src/expo-native-prebuilt.ts +1 -1
- package/src/expo-native-workspace.ts +83 -45
- package/src/expo-pod-prebuilt.ts +1 -0
- package/src/expo-swift-host.ts +158 -77
- package/src/expo-swift-legacy-runtime-source.ts +12 -1
- package/src/expo-swift-view-source.ts +51 -20
- package/src/expo-workspace-exclusion.ts +7 -1
- package/src/expoSwiftContract.ts +10 -1
- package/src/ffmpeg-source-build.ts +123 -59
- package/src/genrule-archives.ts +7 -2
- package/src/genrule-library-builds.ts +101 -18
- package/src/host/bridge-host.ts +10 -1
- package/src/installed-native-libraries.ts +147 -23
- package/src/installed-package-versions.ts +30 -0
- package/src/ios-rn-bundle-request.ts +3 -1
- package/src/ios-rn-bundle.ts +38 -27
- package/src/ios-rn-compile.ts +23 -6
- package/src/ios-rn-startup.ts +2 -1
- package/src/java-module-abi.ts +4 -3
- package/src/kotlin-host.ts +4 -4
- package/src/kotlin-library-sources.ts +8 -5
- package/src/metro-production-bundle.ts +24 -0
- package/src/native-firebase-config.ts +2 -0
- package/src/native-framework-compiler.ts +5 -0
- package/src/native-package-slice-build.ts +3 -0
- package/src/native-package-slice.ts +15 -10
- package/src/native-preparation.ts +4 -1
- package/src/native-static-libraries.ts +107 -33
- package/src/nativeRuntimePackageIndex.ts +1 -4
- package/src/nitro-adapter.lock.json +286 -286
- package/src/nitro-app-providers.ts +20 -8
- package/src/nitro-compile.ts +131 -37
- package/src/nitro-dependencies.ts +42 -8
- package/src/nitro-source.ts +40 -36
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroAdapterContract.ts +32 -7
- package/src/nitroContract.ts +21 -37
- package/src/one-direct-host-source.ts +247 -140
- package/src/one-fabric.ts +129 -0
- package/src/one-native-controls-package.ts +95 -21
- package/src/one-native-controls-release.ts +147 -14
- package/src/one-native-source.ts +4 -1
- package/src/one-nitro-inputs.ts +1 -1
- package/src/one-nitro-source.ts +45 -1
- package/src/one-sdk/source.ts +10 -41
- package/src/one-widget-metadata.ts +2 -2
- package/src/one-widget-package.ts +1 -1
- package/src/oneSdkContract.ts +3 -0
- package/src/playwright-browser-paths.ts +30 -0
- package/src/pods-install.ts +6 -2
- package/src/pods-post-install.ts +2 -2
- package/src/pods-project.ts +10 -0
- package/src/podspec-ruby-stdlib.ts +73 -0
- package/src/podspec-ruby.ts +1 -1
- package/src/podspec-sources.ts +31 -13
- package/src/process-group.ts +135 -5
- package/src/published-swift-sdk.ts +25 -1
- package/src/react-native-bridge-modules.ts +35 -3
- package/src/react-native-core-build.ts +14 -2
- package/src/react-native-core.ts +12 -2
- package/src/rive-runtime-dependencies.ts +178 -40
- package/src/serverDiscoveryContract.ts +1 -1
- package/src/storageSnapshotContract.ts +1 -1
- package/src/swift-app-data-store.ts +35 -0
- package/src/swift-compile.ts +403 -121
- package/src/swift-compiler-digest.ts +4 -0
- package/src/swift-darwin-records.ts +6 -0
- package/src/swift-distribution-mirror.ts +10 -1
- package/src/swift-distribution.lock.json +19 -18
- package/src/swift-distribution.ts +17 -1
- package/src/swift-entry-module.ts +1 -0
- package/src/swift-guest-compile.ts +8 -1
- package/src/swift-host.ts +79 -23
- package/src/swift-installed-targets.ts +51 -20
- package/src/swift-objc-standin.ts +60 -8
- package/src/swift-packages.ts +104 -24
- package/src/swift-project-user.ts +2 -1
- package/src/swift-reproducible.ts +99 -1
- package/src/swift-root-lock.ts +52 -46
- package/src/swift-sdk-app-module.ts +65 -13
- package/src/swift-sdk-image-producer.ts +2 -1
- package/src/swift-sdk-image.ts +23 -8
- package/src/swift-sdk-later-data.ts +294 -44
- package/src/swift-sdk-surface.ts +233 -55
- package/src/swift-shared-sdk.ts +7 -0
- package/src/swift-standin-builtin-behavior.ts +18 -0
- package/src/swift-standin-emit.ts +242 -54
- package/src/swift-standins.ts +184 -38
- package/src/swift-startup-split.ts +19 -9
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +179 -9
- package/src/swift-xcframework.ts +16 -0
- package/src/swiftContract.ts +4 -1
- package/src/swiftSdkLinkContract.ts +2 -0
- package/src/swiftTargetContract.ts +1 -0
- package/src/turbo-bundle.ts +6 -3
- package/src/turbo-codegen-intake.ts +106 -16
- package/src/turbo-compile.ts +89 -68
- package/src/turbo-fabric-app.ts +287 -23
- package/src/turbo-provider-host.ts +122 -31
- package/src/turbo-runtime.lock.json +26 -26
- package/src/turbo-source.ts +374 -157
- package/src/vite-plugin.ts +48 -112
- package/src/wasm-binary-sections.ts +40 -0
- package/src/wasm-code-immediates.ts +35 -5
- package/src/widget-extension-bundle.ts +15 -1
- package/src/worklet-executable.ts +2 -1
- package/src/worklet-kernel.ts +5 -3
- package/src/worklets-babel.ts +2 -1
- package/src/xcode-project.ts +151 -53
- package/src/xcode-scheme-actions.ts +104 -0
- package/cli/commands/canvas.ts +0 -1204
- package/dist-lib/esm-chunks/chunk-B5QD2KEV.mjs +0 -2787
- package/dist-lib/vendor/magic-string.cjs +0 -1693
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +0 -127
- package/src/appBundleResourcesContract.ts +0 -51
- package/src/canvas-groups.ts +0 -28
- package/src/canvas-map-layout.ts +0 -161
- package/src/oneWidgetContract.ts +0 -134
package/detox/index.ts
CHANGED
|
@@ -73,6 +73,20 @@ import type { Browser, BrowserContext, Page } from 'playwright-core'
|
|
|
73
73
|
|
|
74
74
|
const WORKLET_FRAME_TRACE_LIMIT = 16384
|
|
75
75
|
|
|
76
|
+
type MotionTouchPoint = { x: number; y: number; systemGesturesPossible?: boolean }
|
|
77
|
+
type MotionTouchContact = MotionTouchPoint & {
|
|
78
|
+
durationMs: number
|
|
79
|
+
eventDurationMs?: number
|
|
80
|
+
release?: MotionTouchPoint
|
|
81
|
+
moves?: Array<
|
|
82
|
+
MotionTouchPoint & {
|
|
83
|
+
afterMs: number
|
|
84
|
+
eventAfterMs?: number
|
|
85
|
+
animationAfterMs?: number
|
|
86
|
+
}
|
|
87
|
+
>
|
|
88
|
+
}
|
|
89
|
+
|
|
76
90
|
type DiscreteStageFrame = {
|
|
77
91
|
label: string
|
|
78
92
|
offsetMs: number
|
|
@@ -2817,6 +2831,7 @@ export const device = {
|
|
|
2817
2831
|
nativeActualMs?: number
|
|
2818
2832
|
// the replayed touches the native frame had composited, by its stamp
|
|
2819
2833
|
nativeTouchesShown?: number
|
|
2834
|
+
nativeAnimationSampleMs?: number
|
|
2820
2835
|
// the stored native frames whose changed-pixel progress this stage is
|
|
2821
2836
|
// sampled at, set on the first timed stage only
|
|
2822
2837
|
nativeProgress?: { baselinePng: string; png: string }
|
|
@@ -2838,26 +2853,16 @@ export const device = {
|
|
|
2838
2853
|
// control thumb, a pressed row) are painted mid-hold. moves drag the
|
|
2839
2854
|
// held pointer to each point once afterMs of lockstep time has elapsed
|
|
2840
2855
|
// since the press. an explicit release position preserves witnessed up coordinates.
|
|
2841
|
-
//
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
eventAfterMs?: number
|
|
2852
|
-
durationMs: number
|
|
2853
|
-
eventDurationMs?: number
|
|
2854
|
-
release?: { x: number; y: number }
|
|
2855
|
-
x: number
|
|
2856
|
-
y: number
|
|
2857
|
-
}>
|
|
2858
|
-
x: number
|
|
2859
|
-
y: number
|
|
2860
|
-
} | null
|
|
2856
|
+
// contacts replay later gestures from the same capture anchor.
|
|
2857
|
+
hold?:
|
|
2858
|
+
| (MotionTouchContact & {
|
|
2859
|
+
firstFrameOffsetMs?: number
|
|
2860
|
+
panAdmissionCommitOffsetMs?: number
|
|
2861
|
+
contacts?: Array<
|
|
2862
|
+
MotionTouchContact & { afterMs: number; eventAfterMs?: number }
|
|
2863
|
+
>
|
|
2864
|
+
})
|
|
2865
|
+
| null
|
|
2861
2866
|
// stages measure from the delivered press ('down') or release ('up')
|
|
2862
2867
|
// of the capture-owned hold or trigger-owned gesture, rather than
|
|
2863
2868
|
// from the first visible change.
|
|
@@ -3189,18 +3194,40 @@ export const device = {
|
|
|
3189
3194
|
)
|
|
3190
3195
|
return context.getImageData(0, 0, bounds.width, bounds.height).data
|
|
3191
3196
|
}
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
snapshot.bitmap
|
|
3197
|
+
const encodedFrames = new WeakMap<ImageBitmap, Promise<string>>()
|
|
3198
|
+
const encodingCanvas = document.createElement('canvas')
|
|
3199
|
+
const encodingContext = encodingCanvas.getContext('2d', {
|
|
3200
|
+
willReadFrequently: true,
|
|
3201
|
+
})
|
|
3202
|
+
if (!encodingContext) throw new Error('peach motion capture needs a 2d canvas')
|
|
3203
|
+
const encode = async (snapshot: Snapshot) => {
|
|
3204
|
+
let pending = encodedFrames.get(snapshot.bitmap)
|
|
3205
|
+
if (!pending) {
|
|
3206
|
+
if (encodingCanvas.width !== snapshot.bitmap.width)
|
|
3207
|
+
encodingCanvas.width = snapshot.bitmap.width
|
|
3208
|
+
if (encodingCanvas.height !== snapshot.bitmap.height)
|
|
3209
|
+
encodingCanvas.height = snapshot.bitmap.height
|
|
3210
|
+
encodingContext.globalCompositeOperation = 'copy'
|
|
3211
|
+
encodingContext.drawImage(snapshot.bitmap, 0, 0)
|
|
3212
|
+
snapshot.bitmap.close()
|
|
3213
|
+
pending = new Promise<string>((resolve, reject) => {
|
|
3214
|
+
encodingCanvas.toBlob((png) => {
|
|
3215
|
+
if (!png) {
|
|
3216
|
+
reject(new Error('peach motion capture could not encode a PNG'))
|
|
3217
|
+
return
|
|
3218
|
+
}
|
|
3219
|
+
const reader = new FileReader()
|
|
3220
|
+
reader.onload = () => resolve(String(reader.result))
|
|
3221
|
+
reader.onerror = () => reject(reader.error)
|
|
3222
|
+
reader.readAsDataURL(png)
|
|
3223
|
+
}, 'image/png')
|
|
3224
|
+
})
|
|
3225
|
+
encodedFrames.set(snapshot.bitmap, pending)
|
|
3226
|
+
}
|
|
3200
3227
|
return {
|
|
3201
3228
|
actualMs: snapshot.actualMs,
|
|
3202
3229
|
anchorId: snapshot.anchorId,
|
|
3203
|
-
dataUrl:
|
|
3230
|
+
dataUrl: await pending,
|
|
3204
3231
|
label: snapshot.label,
|
|
3205
3232
|
offsetMs: snapshot.offsetMs,
|
|
3206
3233
|
frameIndex: snapshot.frameIndex,
|
|
@@ -3226,6 +3253,7 @@ export const device = {
|
|
|
3226
3253
|
workletFrameTimestampsSeconds: input.workletFrameTimestampsSeconds,
|
|
3227
3254
|
})
|
|
3228
3255
|
let heldInput: Promise<void> | null = null
|
|
3256
|
+
let holdScheduleMs: number[] = []
|
|
3229
3257
|
const releaseReceipt = () =>
|
|
3230
3258
|
controller.inputReceipts.find((receipt) => receipt.phase === 'up')
|
|
3231
3259
|
// an anchor is its visible-change frame; its bitmap is kept so a 0ms
|
|
@@ -3263,77 +3291,75 @@ export const device = {
|
|
|
3263
3291
|
state.ready = true
|
|
3264
3292
|
if (input.hold && interact) {
|
|
3265
3293
|
const hold = input.hold
|
|
3266
|
-
const
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
throw new Error(`peach motion hold missed at ${hold.x},${hold.y}`)
|
|
3280
|
-
},
|
|
3281
|
-
},
|
|
3282
|
-
...moves.map(
|
|
3283
|
-
(move): LockstepScheduledInput => ({
|
|
3284
|
-
phase: 'move',
|
|
3285
|
-
x: move.x,
|
|
3286
|
-
y: move.y,
|
|
3294
|
+
const contacts = [
|
|
3295
|
+
{ ...hold, afterMs: 0, eventAfterMs: 0 },
|
|
3296
|
+
...(hold.contacts ?? []),
|
|
3297
|
+
]
|
|
3298
|
+
const events = contacts.flatMap((contact): LockstepScheduledInput[] => {
|
|
3299
|
+
const { x, y, afterMs, durationMs, moves = [] } = contact
|
|
3300
|
+
const eventAfterMs = contact.eventAfterMs ?? afterMs
|
|
3301
|
+
const lift = contact.release ?? moves.at(-1) ?? contact
|
|
3302
|
+
return [
|
|
3303
|
+
{
|
|
3304
|
+
phase: 'down',
|
|
3305
|
+
x,
|
|
3306
|
+
y,
|
|
3287
3307
|
pointerId: 999,
|
|
3288
|
-
afterMs
|
|
3289
|
-
eventAfterMs
|
|
3290
|
-
async deliver(timestamp
|
|
3291
|
-
|
|
3308
|
+
afterMs,
|
|
3309
|
+
eventAfterMs,
|
|
3310
|
+
async deliver(timestamp) {
|
|
3311
|
+
if (
|
|
3312
|
+
!(await interact.touchDown(
|
|
3313
|
+
x,
|
|
3314
|
+
y,
|
|
3315
|
+
999,
|
|
3316
|
+
timestamp,
|
|
3317
|
+
contact.systemGesturesPossible,
|
|
3318
|
+
))
|
|
3319
|
+
)
|
|
3320
|
+
throw new Error('peach motion press missed at ' + x + ',' + y)
|
|
3292
3321
|
},
|
|
3293
|
-
}),
|
|
3294
|
-
),
|
|
3295
|
-
{
|
|
3296
|
-
phase: 'up',
|
|
3297
|
-
x: release.x,
|
|
3298
|
-
y: release.y,
|
|
3299
|
-
pointerId: 999,
|
|
3300
|
-
afterMs: hold.durationMs,
|
|
3301
|
-
eventAfterMs: hold.eventDurationMs,
|
|
3302
|
-
async deliver(timestamp) {
|
|
3303
|
-
await interact.touchUp(release.x, release.y, 999, timestamp)
|
|
3304
3322
|
},
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
phase: 'down',
|
|
3311
|
-
x: tap.x,
|
|
3312
|
-
y: tap.y,
|
|
3313
|
-
pointerId: 999,
|
|
3314
|
-
afterMs: tap.afterMs,
|
|
3315
|
-
eventAfterMs: tap.eventAfterMs,
|
|
3316
|
-
async deliver(timestamp) {
|
|
3317
|
-
if (!(await interact.touchDown(tap.x, tap.y, 999, timestamp)))
|
|
3318
|
-
throw new Error(`peach motion tap missed at ${tap.x},${tap.y}`)
|
|
3319
|
-
},
|
|
3320
|
-
},
|
|
3321
|
-
{
|
|
3322
|
-
phase: 'up',
|
|
3323
|
-
x: lift.x,
|
|
3324
|
-
y: lift.y,
|
|
3323
|
+
...moves.map(
|
|
3324
|
+
(move): LockstepScheduledInput => ({
|
|
3325
|
+
phase: 'move',
|
|
3326
|
+
x: move.x,
|
|
3327
|
+
y: move.y,
|
|
3325
3328
|
pointerId: 999,
|
|
3326
|
-
afterMs:
|
|
3327
|
-
eventAfterMs:
|
|
3328
|
-
|
|
3329
|
-
(tap.eventDurationMs ?? tap.durationMs),
|
|
3329
|
+
afterMs: move.afterMs,
|
|
3330
|
+
eventAfterMs: move.eventAfterMs,
|
|
3331
|
+
animationAfterMs: move.animationAfterMs,
|
|
3330
3332
|
async deliver(timestamp) {
|
|
3331
|
-
await interact.
|
|
3333
|
+
await interact.touchMove(
|
|
3334
|
+
move.x,
|
|
3335
|
+
move.y,
|
|
3336
|
+
999,
|
|
3337
|
+
timestamp,
|
|
3338
|
+
move.systemGesturesPossible,
|
|
3339
|
+
)
|
|
3332
3340
|
},
|
|
3341
|
+
}),
|
|
3342
|
+
),
|
|
3343
|
+
{
|
|
3344
|
+
phase: 'up',
|
|
3345
|
+
x: lift.x,
|
|
3346
|
+
y: lift.y,
|
|
3347
|
+
pointerId: 999,
|
|
3348
|
+
afterMs: afterMs + durationMs,
|
|
3349
|
+
eventAfterMs: eventAfterMs + (contact.eventDurationMs ?? durationMs),
|
|
3350
|
+
async deliver(timestamp) {
|
|
3351
|
+
await interact.touchUp(
|
|
3352
|
+
lift.x,
|
|
3353
|
+
lift.y,
|
|
3354
|
+
999,
|
|
3355
|
+
timestamp,
|
|
3356
|
+
lift.systemGesturesPossible,
|
|
3357
|
+
)
|
|
3333
3358
|
},
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3359
|
+
},
|
|
3360
|
+
]
|
|
3361
|
+
})
|
|
3362
|
+
holdScheduleMs = events.map(({ afterMs }) => afterMs).sort((a, b) => a - b)
|
|
3337
3363
|
heldInput = controller.scheduleInput(events)
|
|
3338
3364
|
// rendering propagates delivery errors; also observe cancellation rejection.
|
|
3339
3365
|
heldInput.catch(() => {})
|
|
@@ -3490,7 +3516,7 @@ export const device = {
|
|
|
3490
3516
|
throw new Error('producer witness requires a frozen delivered release clock')
|
|
3491
3517
|
const nativeAnimationClock = input.producerWitness?.nativeAnimationClock
|
|
3492
3518
|
const screenAnimationClock = nativeAnimationClock
|
|
3493
|
-
?
|
|
3519
|
+
? {
|
|
3494
3520
|
startTimeMs:
|
|
3495
3521
|
driveStart.virtualTimestampMs + nativeAnimationClock.startTimeMs,
|
|
3496
3522
|
headerStartTimeMs:
|
|
@@ -3499,7 +3525,7 @@ export const device = {
|
|
|
3499
3525
|
callbackTimeMs: driveStart.virtualTimestampMs + frame.callbackTimeMs,
|
|
3500
3526
|
timestampMs: driveStart.virtualTimestampMs + frame.timestampMs,
|
|
3501
3527
|
})),
|
|
3502
|
-
}
|
|
3528
|
+
}
|
|
3503
3529
|
: null
|
|
3504
3530
|
if (input.producerWitness && !nativeAnimationClock) {
|
|
3505
3531
|
const test = captureWindow.SootSim?.bridges?.test
|
|
@@ -3651,18 +3677,6 @@ export const device = {
|
|
|
3651
3677
|
return { anchorId: anchor.id, receipt: anchorReceipt }
|
|
3652
3678
|
}
|
|
3653
3679
|
|
|
3654
|
-
// the hold's schedule in delivery order, in ms from the capture anchor.
|
|
3655
|
-
const holdScheduleMs = input.hold
|
|
3656
|
-
? [
|
|
3657
|
-
0,
|
|
3658
|
-
...(input.hold.moves ?? []).map((move) => move.afterMs),
|
|
3659
|
-
input.hold.durationMs,
|
|
3660
|
-
...(input.hold.taps ?? []).flatMap((tap) => [
|
|
3661
|
-
tap.afterMs,
|
|
3662
|
-
tap.afterMs + tap.durationMs,
|
|
3663
|
-
]),
|
|
3664
|
-
].sort((a, b) => a - b)
|
|
3665
|
-
: []
|
|
3666
3680
|
// transition stages take the native touch rule from the touches this
|
|
3667
3681
|
// lane delivered, stepping until the last one due has landed. a
|
|
3668
3682
|
// release and visible-onset anchors use their own elapsed time.
|
|
@@ -3698,11 +3712,31 @@ export const device = {
|
|
|
3698
3712
|
)
|
|
3699
3713
|
}
|
|
3700
3714
|
|
|
3701
|
-
const snapshots:
|
|
3715
|
+
const snapshots: Array<{
|
|
3716
|
+
virtualTimestampMs: number
|
|
3717
|
+
encoded: ReturnType<typeof encode>
|
|
3718
|
+
}> = []
|
|
3719
|
+
const addSnapshot = (snapshot: Snapshot) => {
|
|
3720
|
+
const encoded = encode(snapshot)
|
|
3721
|
+
void encoded.catch(() => {})
|
|
3722
|
+
snapshots.push({ virtualTimestampMs: snapshot.virtualTimestampMs, encoded })
|
|
3723
|
+
}
|
|
3702
3724
|
// use whole refreshes; ordinary timed captures may add a partial step
|
|
3703
3725
|
const stepToTime = async (
|
|
3704
3726
|
targetMs: number,
|
|
3705
|
-
{
|
|
3727
|
+
{
|
|
3728
|
+
sampledRefresh = false,
|
|
3729
|
+
label = '',
|
|
3730
|
+
composite = true,
|
|
3731
|
+
nativeTouchesShown,
|
|
3732
|
+
inputThroughMs = targetMs,
|
|
3733
|
+
}: {
|
|
3734
|
+
sampledRefresh?: boolean
|
|
3735
|
+
label?: string
|
|
3736
|
+
composite?: boolean
|
|
3737
|
+
nativeTouchesShown?: number
|
|
3738
|
+
inputThroughMs?: number
|
|
3739
|
+
} = {},
|
|
3706
3740
|
) => {
|
|
3707
3741
|
let receipt = currentReceipt
|
|
3708
3742
|
const nextFrameTime = (afterMs: number, frameDurationMs = 1000 / 60) => {
|
|
@@ -3741,24 +3775,69 @@ export const device = {
|
|
|
3741
3775
|
refreshMs - receipt.virtualTimestampMs,
|
|
3742
3776
|
{
|
|
3743
3777
|
composite: composite && sampled,
|
|
3778
|
+
inputLimit: nativeTouchesShown,
|
|
3744
3779
|
},
|
|
3745
3780
|
)
|
|
3746
3781
|
nextFrameDurationMs = undefined
|
|
3747
3782
|
refreshMs = nextFrameTime(receipt.virtualTimestampMs)
|
|
3748
3783
|
}
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3784
|
+
// a native transaction can present an input between display link ticks.
|
|
3785
|
+
// the touch stamp can appear before a newly admitted pan commits its first offset.
|
|
3786
|
+
const pressMs = controller.inputReceipts[0]?.virtualTimestampMs
|
|
3787
|
+
const followsPanAdmission =
|
|
3788
|
+
input.hold?.panAdmissionCommitOffsetMs !== undefined &&
|
|
3789
|
+
pressMs !== undefined &&
|
|
3790
|
+
input.hold.panAdmissionCommitOffsetMs <= targetMs - pressMs
|
|
3791
|
+
const showsNewTouch =
|
|
3792
|
+
nativeTouchesShown !== undefined &&
|
|
3793
|
+
pressMs !== undefined &&
|
|
3794
|
+
controller.inputReceipts.length < nativeTouchesShown &&
|
|
3795
|
+
holdScheduleMs[nativeTouchesShown - 1] <= inputThroughMs - pressMs &&
|
|
3796
|
+
(input.hold?.panAdmissionCommitOffsetMs ?? -Infinity) <= targetMs - pressMs
|
|
3797
|
+
const samplesPanPresentation =
|
|
3798
|
+
nativeTouchesShown !== undefined &&
|
|
3799
|
+
nativeTouchesShown < holdScheduleMs.length &&
|
|
3800
|
+
followsPanAdmission
|
|
3801
|
+
const deltaMs = targetMs - receipt.virtualTimestampMs
|
|
3802
|
+
if (
|
|
3803
|
+
(deltaMs > 0.01 || inputThroughMs !== targetMs) &&
|
|
3804
|
+
sampledRefresh &&
|
|
3805
|
+
showsNewTouch &&
|
|
3806
|
+
!samplesPanPresentation
|
|
3807
|
+
) {
|
|
3808
|
+
receipt = await controller.flushFrame({
|
|
3809
|
+
composite,
|
|
3810
|
+
inputLimit: nativeTouchesShown,
|
|
3811
|
+
inputThroughMs,
|
|
3812
|
+
})
|
|
3813
|
+
} else if (deltaMs > 0.01 && (!sampledRefresh || samplesPanPresentation)) {
|
|
3814
|
+
if (samplesPanPresentation) nextFrameDurationMs = refreshMs - targetMs
|
|
3815
|
+
receipt = await controller.stepFrame(deltaMs, {
|
|
3816
|
+
composite,
|
|
3817
|
+
inputLimit: nativeTouchesShown,
|
|
3818
|
+
})
|
|
3756
3819
|
}
|
|
3757
3820
|
currentReceipt = receipt
|
|
3758
3821
|
return receipt
|
|
3759
3822
|
}
|
|
3823
|
+
const sampledFrames = new WeakMap<SootSimLockstepFrameReceipt, ImageBitmap>()
|
|
3824
|
+
if (screenAnimationClock) {
|
|
3825
|
+
// let the destination mount before the first recorded card sample.
|
|
3826
|
+
const firstCallback = screenAnimationClock.frames[0]?.callbackTimeMs
|
|
3827
|
+
if (
|
|
3828
|
+
firstCallback !== undefined &&
|
|
3829
|
+
firstCallback > currentReceipt.virtualTimestampMs
|
|
3830
|
+
)
|
|
3831
|
+
await stepToTime(firstCallback - 0.001, { sampledRefresh: true })
|
|
3832
|
+
await controller.setScreenTransitionClock(screenAnimationClock)
|
|
3833
|
+
}
|
|
3760
3834
|
const sampleAt = async (
|
|
3761
|
-
stage: {
|
|
3835
|
+
stage: {
|
|
3836
|
+
label: string
|
|
3837
|
+
offsetMs: number
|
|
3838
|
+
nativeTouchesShown?: number
|
|
3839
|
+
nativeAnimationSampleMs?: number
|
|
3840
|
+
},
|
|
3762
3841
|
anchorReceipt: SootSimLockstepFrameReceipt,
|
|
3763
3842
|
anchorId: string,
|
|
3764
3843
|
targetMs: number,
|
|
@@ -3769,19 +3848,36 @@ export const device = {
|
|
|
3769
3848
|
// native display does; a partial step would add a refresh native
|
|
3770
3849
|
// never drew and move the later touches off their schedule. once a
|
|
3771
3850
|
// native frame shows every touch, sample at its composite time.
|
|
3851
|
+
const nativeSample = stage.nativeAnimationSampleMs
|
|
3852
|
+
const sampleMs =
|
|
3853
|
+
nativeSample === undefined
|
|
3854
|
+
? targetMs
|
|
3855
|
+
: anchorReceipt.virtualTimestampMs + nativeSample
|
|
3772
3856
|
const sampledRefresh =
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3857
|
+
nativeSample !== undefined ||
|
|
3858
|
+
(Boolean(input.producerWitness || input.witnessedInput || input.hold) &&
|
|
3859
|
+
!(
|
|
3860
|
+
input.witnessedInput &&
|
|
3861
|
+
input.hold?.panAdmissionCommitOffsetMs === undefined &&
|
|
3862
|
+
stage.nativeTouchesShown === holdScheduleMs.length
|
|
3863
|
+
))
|
|
3864
|
+
const receipt = await stepToTime(sampleMs, {
|
|
3778
3865
|
sampledRefresh,
|
|
3866
|
+
inputThroughMs: targetMs,
|
|
3779
3867
|
label: stage.label,
|
|
3868
|
+
nativeTouchesShown: input.witnessedInput
|
|
3869
|
+
? stage.nativeTouchesShown
|
|
3870
|
+
: undefined,
|
|
3780
3871
|
})
|
|
3781
|
-
|
|
3872
|
+
let bitmap = sampledFrames.get(receipt)
|
|
3873
|
+
if (!bitmap) {
|
|
3874
|
+
bitmap = await captureBitmap()
|
|
3875
|
+
sampledFrames.set(receipt, bitmap)
|
|
3876
|
+
}
|
|
3877
|
+
addSnapshot({
|
|
3782
3878
|
actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
3783
3879
|
anchorId,
|
|
3784
|
-
bitmap
|
|
3880
|
+
bitmap,
|
|
3785
3881
|
frameIndex: receipt.frameIndex,
|
|
3786
3882
|
label: stage.label,
|
|
3787
3883
|
offsetMs: stage.offsetMs,
|
|
@@ -3852,7 +3948,7 @@ export const device = {
|
|
|
3852
3948
|
composite: currentReceipt.frameIndex + 1 === frameIndex,
|
|
3853
3949
|
})
|
|
3854
3950
|
}
|
|
3855
|
-
|
|
3951
|
+
addSnapshot({
|
|
3856
3952
|
actualMs:
|
|
3857
3953
|
currentReceipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
3858
3954
|
anchorId,
|
|
@@ -3880,7 +3976,7 @@ export const device = {
|
|
|
3880
3976
|
currentReceipt.frameIndex !== anchorReceipt.frameIndex
|
|
3881
3977
|
)
|
|
3882
3978
|
throw new Error('peach pre-press baseline is unavailable')
|
|
3883
|
-
|
|
3979
|
+
addSnapshot({
|
|
3884
3980
|
actualMs: 0,
|
|
3885
3981
|
anchorId,
|
|
3886
3982
|
bitmap: await createImageBitmap(baselineFrame.bitmap),
|
|
@@ -4005,7 +4101,7 @@ export const device = {
|
|
|
4005
4101
|
if (!best)
|
|
4006
4102
|
throw new Error(`peach phase fit for ${stage.label} sampled nothing`)
|
|
4007
4103
|
phaseMs = best.receipt.virtualTimestampMs - nativeMs
|
|
4008
|
-
|
|
4104
|
+
addSnapshot({
|
|
4009
4105
|
actualMs:
|
|
4010
4106
|
best.receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
4011
4107
|
anchorId,
|
|
@@ -4051,7 +4147,7 @@ export const device = {
|
|
|
4051
4147
|
}
|
|
4052
4148
|
currentReceipt = receipt
|
|
4053
4149
|
phaseMs = receipt.virtualTimestampMs - nominalMs
|
|
4054
|
-
|
|
4150
|
+
addSnapshot({
|
|
4055
4151
|
actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
4056
4152
|
anchorId,
|
|
4057
4153
|
bitmap: progressBitmap,
|
|
@@ -4077,7 +4173,7 @@ export const device = {
|
|
|
4077
4173
|
anchorReceipt.frameIndex + controller.framesForOffset(touchOffsetMs)
|
|
4078
4174
|
const kept = keptFrames.get(stageFrameIndex)
|
|
4079
4175
|
if (kept && stageFrameIndex <= currentReceipt.frameIndex) {
|
|
4080
|
-
|
|
4176
|
+
addSnapshot({
|
|
4081
4177
|
actualMs:
|
|
4082
4178
|
kept.receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
4083
4179
|
anchorId,
|
|
@@ -4103,7 +4199,7 @@ export const device = {
|
|
|
4103
4199
|
}
|
|
4104
4200
|
const receipt = await controller.stepToOffset(anchorReceipt, touchOffsetMs)
|
|
4105
4201
|
currentReceipt = receipt
|
|
4106
|
-
|
|
4202
|
+
addSnapshot({
|
|
4107
4203
|
actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
4108
4204
|
anchorId,
|
|
4109
4205
|
bitmap: await captureBitmap(),
|
|
@@ -4169,7 +4265,7 @@ export const device = {
|
|
|
4169
4265
|
guestNowMs: driveStart.tenantFrame?.guestNowMs ?? null,
|
|
4170
4266
|
guestClockFrozen: driveStart.tenantFrame?.guestClockFrozen ?? null,
|
|
4171
4267
|
},
|
|
4172
|
-
frames: snapshots.map(
|
|
4268
|
+
frames: await Promise.all(snapshots.map((snapshot) => snapshot.encoded)),
|
|
4173
4269
|
visibleChangeDetection:
|
|
4174
4270
|
visibleStart && detectedMeasurement
|
|
4175
4271
|
? {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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.
|
|
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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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.
|
|
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.
|
|
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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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 __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-LTE7YMEG.mjs";
|
|
3
3
|
|
|
4
4
|
// src/beta.ts
|
|
5
5
|
var IS_BETA = true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
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 __defProp = Object.defineProperty;
|
|
@@ -213,11 +213,13 @@ function parsePerformStep(value, index) {
|
|
|
213
213
|
case "touchMove":
|
|
214
214
|
case "touchUp": {
|
|
215
215
|
const pointerId = optionalPointerId(step, path);
|
|
216
|
+
const gate = step.gate === void 0 ? void 0 : Boolean(step.gate);
|
|
216
217
|
return {
|
|
217
218
|
type,
|
|
218
219
|
x: numberValue(step.x, `${path}.x`),
|
|
219
220
|
y: numberValue(step.y, `${path}.y`),
|
|
220
|
-
...pointerId === void 0 ? {} : { pointerId }
|
|
221
|
+
...pointerId === void 0 ? {} : { pointerId },
|
|
222
|
+
...gate ? { gate: true } : {}
|
|
221
223
|
};
|
|
222
224
|
}
|
|
223
225
|
case "touchCancel": {
|
|
@@ -357,6 +359,30 @@ function parsePerformStep(value, index) {
|
|
|
357
359
|
}
|
|
358
360
|
return { type, orientation };
|
|
359
361
|
}
|
|
362
|
+
case "setPosture": {
|
|
363
|
+
const validRest = (v) => v === "closed" || v === "book" || v === "open" || v === "laptop" || v === "tent";
|
|
364
|
+
const rawRest = step.rest !== void 0 ? stringValue(step.rest, `${path}.rest`) : void 0;
|
|
365
|
+
const rawPosture = step.posture !== void 0 ? stringValue(step.posture, `${path}.posture`) : void 0;
|
|
366
|
+
if (rawRest !== void 0 && !validRest(rawRest)) {
|
|
367
|
+
validationFailure(`${path}.rest`, "must be closed, book, open, laptop or tent");
|
|
368
|
+
}
|
|
369
|
+
if (rawPosture !== void 0 && !validRest(rawPosture)) {
|
|
370
|
+
validationFailure(`${path}.posture`, "must be closed, book, open, laptop or tent");
|
|
371
|
+
}
|
|
372
|
+
if (rawRest === void 0 && rawPosture === void 0) {
|
|
373
|
+
validationFailure(`${path}.rest`, "requires rest or posture");
|
|
374
|
+
}
|
|
375
|
+
const rawOrientation = step.orientation !== void 0 ? stringValue(step.orientation, `${path}.orientation`) : void 0;
|
|
376
|
+
if (rawOrientation !== void 0 && rawOrientation !== "portrait" && rawOrientation !== "landscape") {
|
|
377
|
+
validationFailure(`${path}.orientation`, "must be portrait or landscape");
|
|
378
|
+
}
|
|
379
|
+
return {
|
|
380
|
+
type,
|
|
381
|
+
...rawRest ? { rest: rawRest } : {},
|
|
382
|
+
...rawPosture ? { posture: rawPosture } : {},
|
|
383
|
+
...rawOrientation ? { orientation: rawOrientation } : {}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
360
386
|
case "deviceInfo":
|
|
361
387
|
return { type };
|
|
362
388
|
case "deviceHardware":
|
|
@@ -611,9 +637,27 @@ function parseSemanticQuery(value) {
|
|
|
611
637
|
}
|
|
612
638
|
};
|
|
613
639
|
}
|
|
640
|
+
if (kind === "inspectNode") {
|
|
641
|
+
const nodeId = numberValue(query.nodeId, "query.nodeId");
|
|
642
|
+
if (!Number.isSafeInteger(nodeId)) {
|
|
643
|
+
return validationFailure("query.nodeId", "must be an integer");
|
|
644
|
+
}
|
|
645
|
+
if (query.style === void 0) return { kind, nodeId };
|
|
646
|
+
const raw = recordValue(query.style, "query.style");
|
|
647
|
+
const style = {};
|
|
648
|
+
for (const [key, value2] of Object.entries(raw)) {
|
|
649
|
+
if (value2 !== null && !(typeof value2 === "number" && Number.isFinite(value2)) && !(typeof value2 === "string" && value2.length <= 128))
|
|
650
|
+
return validationFailure(
|
|
651
|
+
`query.style.${key}`,
|
|
652
|
+
"must be a finite number, short string, or null"
|
|
653
|
+
);
|
|
654
|
+
style[key] = value2;
|
|
655
|
+
}
|
|
656
|
+
return { kind, nodeId, style };
|
|
657
|
+
}
|
|
614
658
|
return validationFailure(
|
|
615
659
|
"query.kind",
|
|
616
|
-
"must be tree, find, count, accessibility, nodes, focus, geometryRevision, tapTarget, hitTest, screen, or
|
|
660
|
+
"must be tree, find, count, accessibility, nodes, focus, geometryRevision, tapTarget, hitTest, screen, inspectAt, or inspectNode"
|
|
617
661
|
);
|
|
618
662
|
}
|
|
619
663
|
function semanticResolveSelector(value, path) {
|