peachsim 0.1.1744 → 0.1.1801
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/README.md +28 -28
- package/cli/account-gate.ts +97 -0
- package/cli/app-catalog.ts +24 -0
- package/cli/app-stubs.ts +7 -0
- package/cli/auth.ts +48 -18
- package/cli/bin.ts +35 -2
- package/cli/bridge-flow-runner.ts +174 -6
- package/cli/cloud-dispatch.ts +0 -3
- package/cli/command-registry.ts +2 -6
- package/cli/commands/auth.ts +68 -3
- package/cli/commands/compat.ts +1116 -0
- package/cli/commands/control.ts +90 -13
- package/cli/commands/coverage.ts +85 -116
- package/cli/commands/detox.ts +20 -20
- package/cli/commands/device.ts +31 -27
- package/cli/commands/doctor.ts +76 -1032
- package/cli/commands/flow.ts +80 -41
- package/cli/commands/guest-host.ts +2 -2
- package/cli/commands/inspect/core.ts +8 -7
- package/cli/commands/inspect/settling.ts +60 -25
- package/cli/commands/inspect/wait-ready.ts +6 -4
- package/cli/commands/inspect/wait-selector.ts +32 -18
- package/cli/commands/inspect.ts +8 -6
- package/cli/commands/kotlin.ts +15 -6
- package/cli/commands/logout.ts +4 -2
- package/cli/commands/maestro-compare.ts +19 -37
- package/cli/commands/maestro-generate.ts +4 -4
- package/cli/commands/maestro.ts +56 -37
- package/cli/commands/package.ts +136 -57
- package/cli/commands/preview.ts +10 -1
- package/cli/commands/{film.ts → record-three.ts} +33 -28
- package/cli/commands/record.ts +41 -39
- package/cli/commands/screenshots.ts +4 -0
- package/cli/commands/setup.ts +38 -1
- package/cli/commands/shell-url.ts +49 -24
- package/cli/commands/swift.ts +29 -11
- package/cli/commands/test.ts +43 -13
- package/cli/commands/upload.ts +12 -9
- package/cli/drivers/playwright-core-pin.ts +2 -2
- package/cli/flow-export.ts +1 -1
- package/cli/flow-file.ts +1 -1
- package/cli/internal-child.ts +3 -8
- package/cli/maestro-compare.ts +73 -7
- package/cli/maestro-js.ts +1 -1
- package/cli/maestro-report.ts +1 -1
- package/cli/maestro-workspace.ts +66 -4
- package/cli/main.ts +22 -55
- package/cli/native-input.ts +13 -20
- package/cli/outbound-endpoints.ts +40 -7
- package/cli/output-redaction.ts +8 -3
- package/cli/packaged-app-launcher.ts +40 -28
- package/cli/prompt.ts +20 -0
- package/cli/recording-access.ts +7 -7
- package/cli/run-registry.ts +1 -1
- package/cli/scene-video.ts +0 -4
- package/cli/ws-bridge.ts +7 -4
- package/detox/index.ts +293 -50
- package/detox/jest-preset.cjs +6 -0
- package/detox/launch-permissions.ts +1 -21
- 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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -8
- package/dist-lib/bridge-contract.mjs +2 -7
- package/dist-lib/bundle-channel.cjs +45273 -38265
- package/dist-lib/capture-contract.cjs +37 -14
- package/dist-lib/capture-contract.mjs +36 -13
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +562 -126
- package/dist-lib/detox/jest-preset.cjs +6 -0
- package/dist-lib/dev-bundle-resolution.cjs +18 -13
- package/dist-lib/expo-swift-bundle.cjs +28566 -23874
- package/dist-lib/expo-swift-metadata.cjs +104 -2
- package/dist-lib/expo-swift-metadata.mjs +104 -2
- package/dist-lib/home-paths.cjs +8 -5
- package/dist-lib/host/bridge-host.cjs +36618 -29846
- package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +5 -2
- package/dist-lib/index.cjs +1921 -1549
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +21 -7
- package/dist-lib/menu.mjs +21 -7
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1877 -1584
- package/dist-lib/native-app-identity-project.cjs +1274 -951
- package/dist-lib/native-app-identity-project.mjs +1414 -963
- package/dist-lib/native-app-identity.cjs +64 -58
- package/dist-lib/native-app-identity.mjs +64 -58
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -33
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +484 -280
- package/dist-lib/react-native-host-modules.cjs +3 -1
- package/dist-lib/react-native-host-modules.mjs +3 -1
- package/dist-lib/reap-browser.cjs +23 -26
- package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
- package/dist-lib/sdk.cjs +69 -36
- package/dist-lib/sdk.mjs +69 -36
- package/dist-lib/skills.cjs +33781 -27141
- package/dist-lib/swift-compile.cjs +3759 -2520
- package/dist-lib/swift-compile.mjs +3680 -2441
- package/dist-lib/swift-package.cjs +33 -1
- package/dist-lib/swift-package.mjs +31 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +102 -5
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16480 -14579
- package/dist-lib/vite.cjs +269 -295
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
- package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
- package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
- package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
- package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
- package/install.sh +20 -1
- package/package.json +6 -5
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
- package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
- package/sdk/ios/usr/include/MacTypes.h +8 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
- package/sdk/ios/wasm/include/fcntl.h +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/native-hashes.json +11 -1
- package/skills/contrast/SKILL.md +4 -9
- package/skills/peach-perf/SKILL.md +3 -1
- package/skills/peach-perf/references/profiling.md +1 -1
- package/skills/peach-test/SKILL.md +20 -17
- package/skills/peach-test/references/detox.md +7 -7
- package/skills/peach-test/references/maestro.md +20 -18
- package/src/admitted-mac-build.ts +7 -0
- package/src/android-autolinking.ts +2 -2
- package/src/android-drawables.ts +5 -5
- package/src/android-string-value.ts +1 -1
- package/src/android-strings.ts +1 -1
- package/src/android-theme.ts +2 -2
- package/src/appPackageContract.ts +1 -1
- package/src/bridge-contract.ts +12 -16
- package/src/build-cache.ts +65 -0
- package/src/bundle-channel.mjs +69 -9
- package/src/capture-contract.ts +55 -17
- package/src/chromium-admission.ts +24 -21
- package/src/conformance-comparison-contract.ts +105 -40
- package/src/dev-bundle-resolution.ts +23 -10
- package/src/device-catalog.ts +35 -2
- package/src/disk-cleanup.ts +18 -8
- package/src/expo-autolinking.ts +24 -0
- package/src/expo-discovery-cache.ts +168 -23
- package/src/expo-native-workspace.ts +551 -191
- package/src/expo-swift-host.ts +711 -314
- package/src/expo-swift-ready.ts +39 -5
- package/src/expo-widget-assets.ts +2 -2
- package/src/expo-widgets-bundle.ts +56 -0
- package/src/expo-workspace-exclusion.ts +62 -0
- package/src/expoSwiftContract.ts +27 -4
- package/src/forked-script-contract.ts +3 -0
- package/src/home-paths.ts +10 -6
- package/src/host/bridge-host.ts +27 -0
- package/src/host/network-policy.ts +1 -1
- package/src/kotlin-app.ts +9 -11
- package/src/kotlin-host.ts +2 -2
- package/src/launchMetadataContract.ts +5 -0
- package/src/menu.ts +19 -5
- package/src/native-app-identity-project.ts +35 -49
- package/src/native-app-identity.ts +5 -6
- package/src/native-firebase-config.ts +10 -48
- package/src/native-prebuilt.ts +3 -2
- package/src/native-slices.ts +39 -0
- package/src/native-static-libraries.ts +73 -0
- package/src/nitro-adapter.lock.json +249 -249
- package/src/nitro-adapter.ts +16 -5
- package/src/nitro-bundle.ts +35 -16
- package/src/nitro-compile.ts +254 -16
- package/src/nitro-compiler-digest.ts +39 -0
- package/src/nitro-dependencies.ts +368 -28
- package/src/nitro-source.ts +432 -77
- package/src/nitro-superset.lock.json +27 -36
- package/src/nitro-superset.ts +6 -0
- package/src/nitroAdapterContract.ts +52 -0
- package/src/nitroContract.ts +40 -4
- package/src/numbered-lock.ts +2 -2
- package/src/one-native-app-accent.ts +32 -0
- package/src/one-widget-discovery.ts +6 -1
- package/src/one-widget-metadata.ts +2 -2
- package/src/portable-expo-contract.ts +103 -0
- package/src/portable-expo-workspace.ts +94 -0
- package/src/prepared-native-inventory.ts +93 -0
- package/src/prepared-xcode-phases.ts +194 -0
- package/src/process-group.ts +8 -15
- package/src/process-table.ts +117 -0
- package/src/react-native-bridge-modules.ts +240 -14
- package/src/react-native-coverage/native-typescript-parser.ts +11 -2
- package/src/react-native-coverage/verified-reach.ts +12 -6
- package/src/react-native-host-modules.ts +2 -0
- package/src/reap-browser.ts +13 -9
- package/src/retired-cache-directory.ts +34 -0
- package/src/runtime-assets.ts +1 -0
- package/src/screenshots/orchestrate.ts +4 -0
- package/src/screenshots/schema.ts +2 -2
- package/src/storageSnapshotContract.ts +9 -2
- package/src/stub-pattern-matcher.ts +53 -19
- package/src/swift-compile.ts +1011 -327
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-coverage/indexing.ts +1 -1
- package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
- package/src/swift-coverage/xcode-assets.ts +2 -1
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-darwin-records.ts +88 -0
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-distribution.ts +25 -9
- package/src/swift-host.ts +443 -142
- package/src/swift-icu.ts +72 -4
- package/src/swift-link-roots.ts +2 -0
- package/src/swift-objc-compile.ts +312 -65
- package/src/swift-objc-import.ts +8 -1
- package/src/swift-objc-standin.ts +20 -2
- package/src/swift-package-manifest.ts +189 -57
- package/src/swift-package.ts +51 -0
- package/src/swift-packages.ts +117 -45
- package/src/swift-pdf-raster.ts +7 -4
- package/src/swift-project-user.ts +183 -0
- package/src/swift-reproducible.ts +26 -0
- package/src/swift-root-lock.ts +34 -62
- package/src/swift-shared-sdk.ts +232 -21
- package/src/swift-source-pods.ts +9 -2
- package/src/swift-standin-emit.ts +248 -7
- package/src/swift-standins.ts +130 -108
- package/src/swift-submit.ts +3 -0
- package/src/swift-toolchain.ts +109 -8
- package/src/swift-wasm-prune.ts +210 -55
- package/src/swiftContract.ts +14 -0
- package/src/swiftGuestImageContract.ts +113 -0
- package/src/turbo-bundle.ts +5 -8
- package/src/turbo-codegen-intake.ts +134 -0
- package/src/turbo-compile.ts +198 -21
- package/src/turbo-native-libraries.ts +98 -0
- package/src/turbo-runtime.lock.json +25 -18
- package/src/turbo-source.ts +1519 -147
- package/src/vite-plugin-one.ts +25 -3
- package/src/vite-plugin-swift.ts +5 -1
- package/src/vite-plugin.ts +40 -18
- package/src/worker-system-chunks.ts +103 -15
- package/src/worklets-babel.ts +50 -29
- package/src/xcode-header-search.ts +15 -5
- package/src/xcode-project.ts +444 -88
- package/src/xcode-target-members.ts +72 -63
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1801 | (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;
|
|
@@ -1615,6 +1615,7 @@ async function waitForSootsimIdle({
|
|
|
1615
1615
|
paintStill = false,
|
|
1616
1616
|
maestro = false,
|
|
1617
1617
|
motionOnly = false,
|
|
1618
|
+
readyPlayback = false,
|
|
1618
1619
|
transitionStartWindowMs = 80,
|
|
1619
1620
|
transitionTimeoutMs = 4e3
|
|
1620
1621
|
}) {
|
|
@@ -1649,6 +1650,7 @@ async function waitForSootsimIdle({
|
|
|
1649
1650
|
const accessibilityBounds = ${accessibilityBounds.toString()}
|
|
1650
1651
|
const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
|
|
1651
1652
|
const motionOnly = ${motionOnly ? "true" : "false"}
|
|
1653
|
+
const readyPlayback = ${readyPlayback ? "true" : "false"}
|
|
1652
1654
|
// full mounted-geometry observation needs at least two hierarchy reads
|
|
1653
1655
|
// plus the stillness window, which a sub-second budget cannot afford:
|
|
1654
1656
|
// tight budgets (auto-wait) settle on worker stillness plus root
|
|
@@ -1772,27 +1774,23 @@ async function waitForSootsimIdle({
|
|
|
1772
1774
|
// the reads are independent, so they run concurrently: a loaded sim
|
|
1773
1775
|
// answers each one late, and a poll that waits for them in turn
|
|
1774
1776
|
// costs their sum, which fits too few polls in the budget to settle.
|
|
1775
|
-
//
|
|
1776
|
-
//
|
|
1777
|
-
//
|
|
1777
|
+
// the window node count is the exception: it launches after the
|
|
1778
|
+
// motion read, so a poll motion already fails skips that walk.
|
|
1779
|
+
// strict reads also wait out shell motion. pixel reads inspect finite
|
|
1780
|
+
// animations in both realms: a worklet can move the app while the
|
|
1781
|
+
// tenant's basic animation flag and last presented pixels read still.
|
|
1778
1782
|
const accessibilityRead = maestro
|
|
1779
1783
|
? answer(() => window.__sootsimTest.captureAccessibilityTree()).catch(() => null)
|
|
1780
1784
|
: null
|
|
1781
|
-
const motionRead = strict
|
|
1785
|
+
const motionRead = strict || paintStill
|
|
1782
1786
|
? answer(() => window.__sootsimTest?.listAnimations?.()).catch(() => null)
|
|
1783
1787
|
: null
|
|
1784
1788
|
const statsRead = answer(() => window.__sootsimRenderHost?.queryStats?.()).catch(() => null)
|
|
1785
1789
|
// image preparation ends in the tenant before the compositor decodes
|
|
1786
1790
|
// and realizes its pixels. both owners must finish before settling.
|
|
1787
1791
|
// the compositor rejects a stats request it is too busy to answer.
|
|
1788
|
-
const compositorRead = answer(() => window.__sootsimCompositor.getStats()).catch(() => BUSY)
|
|
1792
|
+
const compositorRead = answer(() => window.__sootsimCompositor.getStats({ detail: 'readiness' })).catch(() => BUSY)
|
|
1789
1793
|
const countsRead = motionOnly ? null : answer(() => window.__sootsimTest?.getRequestCounts?.()).catch(() => null)
|
|
1790
|
-
// mounted-root membership: the count of nodes that can reach the
|
|
1791
|
-
// window moves while the screen mounts, unmounts or recycles, in
|
|
1792
|
-
// either render mode. a screen a pushed one covers or an inactive
|
|
1793
|
-
// tab stays mounted out of the window, so what it mounts is not
|
|
1794
|
-
// screen motion.
|
|
1795
|
-
const nodeCountRead = answer(() => window.__sootsimTest?.getWindowNodeCount?.()).catch(() => null)
|
|
1796
1794
|
// the mounted hierarchy in render-worker mode comes from the test
|
|
1797
1795
|
// bridge: window.__sootsimRoot is an empty placeholder there, so a
|
|
1798
1796
|
// walk over it hashes every screen to the same empty string while
|
|
@@ -1822,7 +1820,10 @@ async function waitForSootsimIdle({
|
|
|
1822
1820
|
const motion = await motionRead
|
|
1823
1821
|
if (motion === BUSY) workerBusy = true
|
|
1824
1822
|
else if (Array.isArray(motion)) {
|
|
1825
|
-
const blocking = motion.filter((anim) =>
|
|
1823
|
+
const blocking = motion.filter((anim) =>
|
|
1824
|
+
(anim.realm === 'shell' || paintStill) &&
|
|
1825
|
+
anim.priority !== 'low' && anim.visible !== false &&
|
|
1826
|
+
(!paintStill || anim.loop !== true))
|
|
1826
1827
|
shellAnimating = blocking.length > 0
|
|
1827
1828
|
// name what holds the settle so a timeout points at its owner.
|
|
1828
1829
|
shellBlockers = blocking
|
|
@@ -1834,11 +1835,14 @@ async function waitForSootsimIdle({
|
|
|
1834
1835
|
const stats = await statsRead
|
|
1835
1836
|
if (stats === BUSY) {
|
|
1836
1837
|
workerBusy = true
|
|
1838
|
+
} else if (!stats && readyPlayback) {
|
|
1839
|
+
workerBusy = true
|
|
1837
1840
|
} else if (stats) {
|
|
1838
1841
|
renderStatsAvailable = true
|
|
1839
1842
|
const missingFields = ['hasActiveBlockingNativeAnimations', 'hasPendingBlockingAnimationFrames']
|
|
1840
1843
|
.filter((field) => typeof stats[field] !== 'boolean')
|
|
1841
|
-
if (
|
|
1844
|
+
if (readyPlayback && typeof stats.hasPendingReadinessAnimationFrames !== 'boolean') missingFields.push('hasPendingReadinessAnimationFrames')
|
|
1845
|
+
if ((strict || readyPlayback) && missingFields.length > 0) {
|
|
1842
1846
|
return {
|
|
1843
1847
|
runtimeUnsupported: {
|
|
1844
1848
|
error: 'runtime_readiness_unsupported',
|
|
@@ -1853,7 +1857,7 @@ async function waitForSootsimIdle({
|
|
|
1853
1857
|
animating =
|
|
1854
1858
|
stats.hasActiveAnims === true ||
|
|
1855
1859
|
stats.hasActiveBlockingNativeAnimations === true ||
|
|
1856
|
-
(!paintStill && stats.hasPendingBlockingAnimationFrames === true)
|
|
1860
|
+
(!paintStill && (readyPlayback ? stats.hasPendingReadinessAnimationFrames : stats.hasPendingBlockingAnimationFrames) === true)
|
|
1857
1861
|
// the runtime reports only layout work that can reach the window:
|
|
1858
1862
|
// a covered screen or inactive tab committing does not hold it.
|
|
1859
1863
|
layoutDirty =
|
|
@@ -1870,6 +1874,19 @@ async function waitForSootsimIdle({
|
|
|
1870
1874
|
// mounting or remounting, even with no animation flag raised.
|
|
1871
1875
|
appCommits = typeof stats.appCommitCount === 'number' ? stats.appCommitCount : null
|
|
1872
1876
|
}
|
|
1877
|
+
// mounted-root membership: the count of nodes that can reach the
|
|
1878
|
+
// window moves while the screen mounts, unmounts or recycles, in
|
|
1879
|
+
// either render mode. a screen a pushed one covers or an inactive
|
|
1880
|
+
// tab stays mounted out of the window, so what it mounts is not
|
|
1881
|
+
// screen motion. the worker rebuilds the membership set while the
|
|
1882
|
+
// wire moves on every animated frame, so a poll the motion read
|
|
1883
|
+
// already fails skips it: the motion flags alone prove this poll
|
|
1884
|
+
// unsettled, and the carried count hands the first still poll the
|
|
1885
|
+
// pre-motion baseline to compare against.
|
|
1886
|
+
const motionStill = !workerBusy && !animating && !layoutDirty && !shellAnimating
|
|
1887
|
+
const nodeCountRead = motionStill
|
|
1888
|
+
? answer(() => window.__sootsimTest?.getWindowNodeCount?.()).catch(() => null)
|
|
1889
|
+
: null
|
|
1873
1890
|
const compositor = await compositorRead
|
|
1874
1891
|
if (compositor === BUSY) {
|
|
1875
1892
|
workerBusy = true
|
|
@@ -1888,7 +1905,10 @@ async function waitForSootsimIdle({
|
|
|
1888
1905
|
const imageLoads = counts?.imageLoads ?? { total: 0, inFlight: 0 }
|
|
1889
1906
|
requestTotal = typeof counts?.total === 'number' ? counts.total - imageLoads.total : 0
|
|
1890
1907
|
requestInFlight = typeof counts?.inFlight === 'number' ? counts.inFlight - imageLoads.inFlight : 0
|
|
1891
|
-
|
|
1908
|
+
// a skipped read carries the last count: mounts during motion still
|
|
1909
|
+
// break the first still poll after it, instead of a blank baseline
|
|
1910
|
+
// reading them as stable.
|
|
1911
|
+
const total = nodeCountRead ? await nodeCountRead : lastNodeCount
|
|
1892
1912
|
if (total === BUSY) workerBusy = true
|
|
1893
1913
|
nodeCount = typeof total === 'number' ? total : null
|
|
1894
1914
|
const accessibility = accessibilityRead ? await accessibilityRead : null
|
|
@@ -2038,6 +2058,7 @@ async function waitForSootsimIdle({
|
|
|
2038
2058
|
let report = null
|
|
2039
2059
|
// the still polls of the current run, when each began and answered
|
|
2040
2060
|
let stillPolls = []
|
|
2061
|
+
let lastIdlePoll = null
|
|
2041
2062
|
let visuallyStillSince = 0
|
|
2042
2063
|
// counts across the whole budget: a flag that is true on every poll is a
|
|
2043
2064
|
// different bug from one that is true intermittently, and the two need
|
|
@@ -2127,30 +2148,40 @@ async function waitForSootsimIdle({
|
|
|
2127
2148
|
// strictOk and adds shell motion plus the blocking-stats floor. a
|
|
2128
2149
|
// null count or commit reading means the runtime does not report
|
|
2129
2150
|
// it, which reads as stable the way a missing stats block does.
|
|
2130
|
-
//
|
|
2131
|
-
//
|
|
2132
|
-
// while paint-only playback continues. overlap
|
|
2133
|
-
// neither the gesture nor screenshot deadline grows.
|
|
2134
|
-
const maestroStill = snapshot.screenPixels !== null && !snapshot.workerBusy && !snapshot.webViewStarting &&
|
|
2151
|
+
// equal presented pixels can precede pending worker motion or layout.
|
|
2152
|
+
// after that work drains, iOS's 3 s pixel phase may accept two equal
|
|
2153
|
+
// native TreeNodes while paint-only playback continues. overlap
|
|
2154
|
+
// hierarchy reads so neither the gesture nor screenshot deadline grows.
|
|
2155
|
+
const maestroStill = snapshot.screenPixels !== null && !snapshot.workerBusy && !snapshot.webViewStarting &&
|
|
2156
|
+
!snapshot.animating && !snapshot.shellAnimating && !snapshot.layoutDirty && (
|
|
2135
2157
|
!screenChanged || (clockNow() - start >= 3000 &&
|
|
2136
2158
|
hierarchyUnchanged(snapshot.nativeHierarchy, lastNativeHierarchy))
|
|
2137
2159
|
)
|
|
2138
|
-
const
|
|
2160
|
+
const idleSnapshot =
|
|
2139
2161
|
strictOk &&
|
|
2140
2162
|
!snapshot.animating &&
|
|
2163
|
+
!snapshot.shellAnimating &&
|
|
2141
2164
|
!snapshot.layoutDirty &&
|
|
2165
|
+
(motionOnly || snapshot.pendingFetches === 0) &&
|
|
2166
|
+
!snapshot.workerBusy &&
|
|
2167
|
+
!snapshot.webViewStarting
|
|
2168
|
+
const visuallyStill = maestro ? maestroStill :
|
|
2169
|
+
idleSnapshot &&
|
|
2142
2170
|
(snapshot.appCommits === null || lastAppCommits === null || snapshot.appCommits === lastAppCommits) &&
|
|
2143
2171
|
(snapshot.nodeCount === null || lastNodeCount === null || snapshot.nodeCount === lastNodeCount) &&
|
|
2144
2172
|
!screenChanged &&
|
|
2145
|
-
(motionOnly || snapshot.pendingFetches === 0) &&
|
|
2146
|
-
!snapshot.workerBusy &&
|
|
2147
|
-
!snapshot.webViewStarting &&
|
|
2148
2173
|
snapshot.layout === lastLayout
|
|
2149
2174
|
// generic network quiet: nothing in flight and no new requests issued.
|
|
2150
2175
|
const networkQuiet =
|
|
2151
2176
|
snapshot.requestInFlight === 0 && snapshot.requestTotal === lastRequestTotal
|
|
2152
2177
|
if (visuallyStill) {
|
|
2153
2178
|
if (visuallyStillSince === 0) visuallyStillSince = clockNow()
|
|
2179
|
+
// two equal idle observations prove the interval between them.
|
|
2180
|
+
// discarding the first requires a third worker round trip, which
|
|
2181
|
+
// can exhaust the budget after a late image on a loaded host.
|
|
2182
|
+
if (!maestro && !paintStill && stillPolls.length === 0 && lastIdlePoll) {
|
|
2183
|
+
stillPolls.push(lastIdlePoll)
|
|
2184
|
+
}
|
|
2154
2185
|
stillPolls.push({ started: pollStarted, answered: clockNow() })
|
|
2155
2186
|
// still long enough, counting only polls that began after a started
|
|
2156
2187
|
// transition drained.
|
|
@@ -2175,6 +2206,7 @@ async function waitForSootsimIdle({
|
|
|
2175
2206
|
stillPolls = []
|
|
2176
2207
|
visuallyStillSince = 0
|
|
2177
2208
|
}
|
|
2209
|
+
lastIdlePoll = idleSnapshot ? { started: pollStarted, answered: clockNow() } : null
|
|
2178
2210
|
lastNativeHierarchy = snapshot.nativeHierarchy
|
|
2179
2211
|
lastLayout = snapshot.layout
|
|
2180
2212
|
lastNodeRows = snapshot.nodeRows
|
|
@@ -2201,7 +2233,7 @@ async function waitForSootsimIdle({
|
|
|
2201
2233
|
const blockers = []
|
|
2202
2234
|
if (!maestro && strict && !last.renderStatsAvailable) blockers.push('render stats unavailable')
|
|
2203
2235
|
if (!maestro && last.animating) blockers.push('animations still running')
|
|
2204
|
-
if (
|
|
2236
|
+
if (last.shellAnimating) blockers.push('animations still running (' + last.shellBlockers + ')')
|
|
2205
2237
|
if (!maestro && last.layoutDirty) blockers.push('layout still dirty')
|
|
2206
2238
|
if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
|
|
2207
2239
|
if (!maestro && last.nodeCount !== null && report.nodeCount !== null && last.nodeCount !== report.nodeCount) blockers.push('node count still changing')
|
|
@@ -2361,7 +2393,7 @@ var import_node_module = require("node:module");
|
|
|
2361
2393
|
var import_node_path2 = require("node:path");
|
|
2362
2394
|
|
|
2363
2395
|
// runtime-companion.json
|
|
2364
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2396
|
+
var runtime_companion_default = { abi: 1, sha256: "05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387", file: "node/cli-05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387.cjs" };
|
|
2365
2397
|
|
|
2366
2398
|
// src/runtime-assets.ts
|
|
2367
2399
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2376,6 +2408,11 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
2376
2408
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2377
2409
|
var import_node_child_process = require("node:child_process");
|
|
2378
2410
|
var import_node_fs2 = require("node:fs");
|
|
2411
|
+
|
|
2412
|
+
// src/process-table.ts
|
|
2413
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2414
|
+
|
|
2415
|
+
// src/process-group.ts
|
|
2379
2416
|
function listProcessChildren(parents, timeoutMs = 3e3) {
|
|
2380
2417
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
2381
2418
|
throw new Error("process inspection requires valid parent pids");
|
|
@@ -2586,6 +2623,7 @@ var rnxPublicBrand = peachPublicBrand;
|
|
|
2586
2623
|
|
|
2587
2624
|
// cli/auth.ts
|
|
2588
2625
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2626
|
+
var import_zod = require("zod");
|
|
2589
2627
|
|
|
2590
2628
|
// src/auth/shared-session.ts
|
|
2591
2629
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -2609,6 +2647,34 @@ function peachExit(code, reason) {
|
|
|
2609
2647
|
throw new PeachExit(code, reason);
|
|
2610
2648
|
}
|
|
2611
2649
|
|
|
2650
|
+
// cli/secure-file.ts
|
|
2651
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2652
|
+
var import_node_crypto2 = require("node:crypto");
|
|
2653
|
+
var import_node_fs4 = require("node:fs");
|
|
2654
|
+
var import_node_path3 = require("node:path");
|
|
2655
|
+
function writeSecureJsonAtomic(filepath, value) {
|
|
2656
|
+
(0, import_node_fs4.mkdirSync)((0, import_node_path3.dirname)(filepath), { recursive: true });
|
|
2657
|
+
const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto2.randomUUID)()}`;
|
|
2658
|
+
let descriptor = null;
|
|
2659
|
+
try {
|
|
2660
|
+
descriptor = (0, import_node_fs4.openSync)(temporary, "wx", 384);
|
|
2661
|
+
(0, import_node_fs4.fchmodSync)(descriptor, 384);
|
|
2662
|
+
(0, import_node_fs4.writeFileSync)(descriptor, `${JSON.stringify(value, null, 2)}
|
|
2663
|
+
`);
|
|
2664
|
+
(0, import_node_fs4.fsyncSync)(descriptor);
|
|
2665
|
+
(0, import_node_fs4.closeSync)(descriptor);
|
|
2666
|
+
descriptor = null;
|
|
2667
|
+
(0, import_node_fs4.renameSync)(temporary, filepath);
|
|
2668
|
+
} catch (error) {
|
|
2669
|
+
if (descriptor !== null) (0, import_node_fs4.closeSync)(descriptor);
|
|
2670
|
+
(0, import_node_fs4.rmSync)(temporary, { force: true });
|
|
2671
|
+
throw error;
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
|
|
2675
|
+
// cli/auth.ts
|
|
2676
|
+
var savedKeySchema = import_zod.z.object({ secret: import_zod.z.string() });
|
|
2677
|
+
|
|
2612
2678
|
// cli/cloud-session.ts
|
|
2613
2679
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
2614
2680
|
var MAX_ENCODED_SESSION_BYTES = 32 * 1024;
|
|
@@ -5150,7 +5216,7 @@ function buildComm() {
|
|
|
5150
5216
|
if (process.platform === "darwin") {
|
|
5151
5217
|
const ffi = tryBuildDarwinCommFfi();
|
|
5152
5218
|
if (ffi) return ffi;
|
|
5153
|
-
return (pid) =>
|
|
5219
|
+
return (pid) => readProcessTable2().get(pid)?.comm || null;
|
|
5154
5220
|
}
|
|
5155
5221
|
return () => null;
|
|
5156
5222
|
}
|
|
@@ -5160,7 +5226,7 @@ function build() {
|
|
|
5160
5226
|
const ffi = tryBuildDarwinFfi();
|
|
5161
5227
|
if (ffi) return ffi;
|
|
5162
5228
|
return (pid) => {
|
|
5163
|
-
const ppid =
|
|
5229
|
+
const ppid = readProcessTable2().get(pid)?.ppid;
|
|
5164
5230
|
return ppid !== void 0 && ppid > 0 ? ppid : null;
|
|
5165
5231
|
};
|
|
5166
5232
|
}
|
|
@@ -5185,7 +5251,7 @@ function buildPgid() {
|
|
|
5185
5251
|
const ffi = tryBuildDarwinPgidFfi();
|
|
5186
5252
|
if (ffi) return ffi;
|
|
5187
5253
|
return (pid) => {
|
|
5188
|
-
const pgid =
|
|
5254
|
+
const pgid = readProcessTable2().get(pid)?.pgid;
|
|
5189
5255
|
return pgid !== void 0 && pgid > 0 ? pgid : null;
|
|
5190
5256
|
};
|
|
5191
5257
|
}
|
|
@@ -5193,7 +5259,7 @@ function buildPgid() {
|
|
|
5193
5259
|
}
|
|
5194
5260
|
var PROCESS_TABLE_TTL_MS = 2e3;
|
|
5195
5261
|
var processTable = { readAt: 0, rows: /* @__PURE__ */ new Map() };
|
|
5196
|
-
function
|
|
5262
|
+
function readProcessTable2() {
|
|
5197
5263
|
const now = Date.now();
|
|
5198
5264
|
if (processTable.readAt && now - processTable.readAt < PROCESS_TABLE_TTL_MS) {
|
|
5199
5265
|
return processTable.rows;
|
|
@@ -5315,31 +5381,6 @@ function tryBuildDarwinPgidFfi() {
|
|
|
5315
5381
|
}
|
|
5316
5382
|
}
|
|
5317
5383
|
|
|
5318
|
-
// cli/secure-file.ts
|
|
5319
|
-
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5320
|
-
var import_node_crypto2 = require("node:crypto");
|
|
5321
|
-
var import_node_fs4 = require("node:fs");
|
|
5322
|
-
var import_node_path3 = require("node:path");
|
|
5323
|
-
function writeSecureJsonAtomic(filepath, value) {
|
|
5324
|
-
(0, import_node_fs4.mkdirSync)((0, import_node_path3.dirname)(filepath), { recursive: true });
|
|
5325
|
-
const temporary = `${filepath}.tmp-${process.pid}-${(0, import_node_crypto2.randomUUID)()}`;
|
|
5326
|
-
let descriptor = null;
|
|
5327
|
-
try {
|
|
5328
|
-
descriptor = (0, import_node_fs4.openSync)(temporary, "wx", 384);
|
|
5329
|
-
(0, import_node_fs4.fchmodSync)(descriptor, 384);
|
|
5330
|
-
(0, import_node_fs4.writeFileSync)(descriptor, `${JSON.stringify(value, null, 2)}
|
|
5331
|
-
`);
|
|
5332
|
-
(0, import_node_fs4.fsyncSync)(descriptor);
|
|
5333
|
-
(0, import_node_fs4.closeSync)(descriptor);
|
|
5334
|
-
descriptor = null;
|
|
5335
|
-
(0, import_node_fs4.renameSync)(temporary, filepath);
|
|
5336
|
-
} catch (error) {
|
|
5337
|
-
if (descriptor !== null) (0, import_node_fs4.closeSync)(descriptor);
|
|
5338
|
-
(0, import_node_fs4.rmSync)(temporary, { force: true });
|
|
5339
|
-
throw error;
|
|
5340
|
-
}
|
|
5341
|
-
}
|
|
5342
|
-
|
|
5343
5384
|
// cli/current-sim.ts
|
|
5344
5385
|
var CURRENT_SIM_VERSION = 2;
|
|
5345
5386
|
var CURRENT_SIM_PATH_ENV = "PEACH_CLI_CURRENT_SIM_PATH";
|
|
@@ -5622,6 +5663,7 @@ function describeSimIdSource(source) {
|
|
|
5622
5663
|
if (source === "saved") return "saved via `peach use`";
|
|
5623
5664
|
return "primary fallback \u2014 no sim pinned";
|
|
5624
5665
|
}
|
|
5666
|
+
var noticedTargets = /* @__PURE__ */ new Set();
|
|
5625
5667
|
var DisconnectedSimError = class extends Error {
|
|
5626
5668
|
};
|
|
5627
5669
|
function disconnectedSavedSimMessage(simId, detail = "") {
|
|
@@ -5741,7 +5783,6 @@ function createBridge(wsPort, opts = {}) {
|
|
|
5741
5783
|
ready.catch(() => {
|
|
5742
5784
|
});
|
|
5743
5785
|
let warnedAboutContention = false;
|
|
5744
|
-
let noticedTarget = false;
|
|
5745
5786
|
const lineageBySimId = /* @__PURE__ */ new Map();
|
|
5746
5787
|
const lineageLookupBySimId = /* @__PURE__ */ new Map();
|
|
5747
5788
|
function pickReloadedTarget(sims, retiredSimId) {
|
|
@@ -5759,13 +5800,13 @@ function createBridge(wsPort, opts = {}) {
|
|
|
5759
5800
|
return successor.id;
|
|
5760
5801
|
}
|
|
5761
5802
|
function maybeNoticeTarget(cmdType, simId) {
|
|
5762
|
-
if (noticedTarget) return;
|
|
5763
5803
|
if (process.env.PEACH_QUIET_TARGET_NOTICE === "1") return;
|
|
5764
5804
|
if (cmdType.startsWith("bridge:") || cmdType === "focus" || cmdType === "close")
|
|
5765
5805
|
return;
|
|
5766
|
-
noticedTarget = true;
|
|
5767
5806
|
const label = simId ?? "primary";
|
|
5768
5807
|
const source = describeSimIdSource(simId ? opts.simIdSource : "none");
|
|
5808
|
+
if (noticedTargets.has(`${label} ${source}`)) return;
|
|
5809
|
+
noticedTargets.add(`${label} ${source}`);
|
|
5769
5810
|
process.stderr.write(` \u2192 ${label} (${source})
|
|
5770
5811
|
`);
|
|
5771
5812
|
}
|
|
@@ -5951,6 +5992,267 @@ function formatRetainedSimLoss(port, sim) {
|
|
|
5951
5992
|
return `bridge :${port} last held sim ${sim.id}${when}${cause}`;
|
|
5952
5993
|
}
|
|
5953
5994
|
|
|
5995
|
+
// src/expo-swift-ready.ts
|
|
5996
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5997
|
+
|
|
5998
|
+
// src/cli-version.ts
|
|
5999
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6000
|
+
var import_node_fs6 = require("node:fs");
|
|
6001
|
+
var import_node_url = require("node:url");
|
|
6002
|
+
var import_meta = {};
|
|
6003
|
+
var cached2 = null;
|
|
6004
|
+
function getCliVersion() {
|
|
6005
|
+
if (cached2 != null) return cached2;
|
|
6006
|
+
if (typeof __PEACH_CLI_VERSION__ !== "undefined" && typeof __PEACH_CLI_VERSION__ === "string" && __PEACH_CLI_VERSION__) {
|
|
6007
|
+
cached2 = __PEACH_CLI_VERSION__;
|
|
6008
|
+
return cached2;
|
|
6009
|
+
}
|
|
6010
|
+
const candidates = [
|
|
6011
|
+
() => (0, import_node_url.fileURLToPath)(import_meta.resolve(`${rnxPublicBrand.packageName}/package.json`)),
|
|
6012
|
+
() => (0, import_node_url.fileURLToPath)(new URL("../package.json", __sootsim_import_meta_url))
|
|
6013
|
+
];
|
|
6014
|
+
for (const resolve3 of candidates) {
|
|
6015
|
+
try {
|
|
6016
|
+
const version = JSON.parse((0, import_node_fs6.readFileSync)(resolve3(), "utf8")).version;
|
|
6017
|
+
if (typeof version === "string" && version) {
|
|
6018
|
+
cached2 = version;
|
|
6019
|
+
return cached2;
|
|
6020
|
+
}
|
|
6021
|
+
} catch {
|
|
6022
|
+
}
|
|
6023
|
+
}
|
|
6024
|
+
cached2 = "0.0.0";
|
|
6025
|
+
return cached2;
|
|
6026
|
+
}
|
|
6027
|
+
|
|
6028
|
+
// src/launchMetadataContract.ts
|
|
6029
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6030
|
+
var LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
|
|
6031
|
+
var LAUNCH_METADATA_KEYS = [
|
|
6032
|
+
"appFonts",
|
|
6033
|
+
"appSplash",
|
|
6034
|
+
"appCatalog",
|
|
6035
|
+
"appBundleResources",
|
|
6036
|
+
"nativeAppIdentity",
|
|
6037
|
+
"nativeFirebase",
|
|
6038
|
+
"expoSwift",
|
|
6039
|
+
"expoWidgets",
|
|
6040
|
+
"expoKotlin",
|
|
6041
|
+
"nitro",
|
|
6042
|
+
"turbo",
|
|
6043
|
+
"appManifest",
|
|
6044
|
+
"packageVersions",
|
|
6045
|
+
"dotEnv",
|
|
6046
|
+
"env"
|
|
6047
|
+
];
|
|
6048
|
+
function readLaunchMetadata(wire) {
|
|
6049
|
+
const metadata = new URLSearchParams(wire);
|
|
6050
|
+
const keys = new Set(LAUNCH_METADATA_KEYS);
|
|
6051
|
+
for (const key of metadata.keys()) {
|
|
6052
|
+
if (!keys.has(key)) throw new Error(`invalid launch metadata field: ${key}`);
|
|
6053
|
+
}
|
|
6054
|
+
return metadata;
|
|
6055
|
+
}
|
|
6056
|
+
|
|
6057
|
+
// src/nativePreparationContract.ts
|
|
6058
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6059
|
+
var NATIVE_PREPARE_QUERY_PARAM = "prepare";
|
|
6060
|
+
|
|
6061
|
+
// src/node-http-fetch.ts
|
|
6062
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6063
|
+
var import_node_http = __toESM(require("node:http"), 1);
|
|
6064
|
+
var import_node_https = __toESM(require("node:https"), 1);
|
|
6065
|
+
var import_node_stream = require("node:stream");
|
|
6066
|
+
var import_node_zlib = __toESM(require("node:zlib"), 1);
|
|
6067
|
+
var BODYLESS_STATUS = /* @__PURE__ */ new Set([101, 204, 205, 304]);
|
|
6068
|
+
var TRUNCATION_TOLERANT = { finishFlush: import_node_zlib.default.constants.Z_SYNC_FLUSH };
|
|
6069
|
+
var MAX_REDIRECTS = 5;
|
|
6070
|
+
var DECODABLE_CODINGS = /* @__PURE__ */ new Set(["gzip", "x-gzip", "deflate", "br"]);
|
|
6071
|
+
function nodeHttpFetch(url, init = {}, redirects = 0) {
|
|
6072
|
+
const target = new URL(url);
|
|
6073
|
+
const transport = target.protocol === "https:" ? import_node_https.default : import_node_http.default;
|
|
6074
|
+
return new Promise((resolve3, reject) => {
|
|
6075
|
+
const req = transport.request(
|
|
6076
|
+
target,
|
|
6077
|
+
{ method: "GET", headers: init.headers, signal: init.signal },
|
|
6078
|
+
(res) => {
|
|
6079
|
+
const status = res.statusCode ?? 0;
|
|
6080
|
+
const location = res.headers.location;
|
|
6081
|
+
if (status >= 300 && status < 400 && location) {
|
|
6082
|
+
res.resume();
|
|
6083
|
+
if (redirects >= MAX_REDIRECTS) {
|
|
6084
|
+
reject(new Error(`too many redirects from ${url}`));
|
|
6085
|
+
return;
|
|
6086
|
+
}
|
|
6087
|
+
resolve3(nodeHttpFetch(new URL(location, target).href, init, redirects + 1));
|
|
6088
|
+
return;
|
|
6089
|
+
}
|
|
6090
|
+
const headers = new Headers();
|
|
6091
|
+
for (const [name2, value] of Object.entries(res.headers)) {
|
|
6092
|
+
if (Array.isArray(value)) for (const entry of value) headers.append(name2, entry);
|
|
6093
|
+
else if (value !== void 0) headers.set(name2, value);
|
|
6094
|
+
}
|
|
6095
|
+
if (BODYLESS_STATUS.has(status)) {
|
|
6096
|
+
res.resume();
|
|
6097
|
+
resolve3(new Response(null, { status, headers }));
|
|
6098
|
+
return;
|
|
6099
|
+
}
|
|
6100
|
+
let source = res;
|
|
6101
|
+
const codings = (res.headers["content-encoding"] ?? "").split(",").map((entry) => entry.trim().toLowerCase()).filter((entry) => entry && entry !== "identity");
|
|
6102
|
+
if (codings.every((coding) => DECODABLE_CODINGS.has(coding))) {
|
|
6103
|
+
for (const coding of codings.reverse()) {
|
|
6104
|
+
let decoder;
|
|
6105
|
+
if (coding === "br") decoder = import_node_zlib.default.createBrotliDecompress();
|
|
6106
|
+
else if (coding === "deflate") {
|
|
6107
|
+
let inner;
|
|
6108
|
+
decoder = new import_node_stream.Transform({
|
|
6109
|
+
transform(chunk, _encoding, done) {
|
|
6110
|
+
if (!inner) {
|
|
6111
|
+
inner = (chunk[0] & 15) === 8 ? import_node_zlib.default.createInflate(TRUNCATION_TOLERANT) : import_node_zlib.default.createInflateRaw(TRUNCATION_TOLERANT);
|
|
6112
|
+
inner.on("data", (data) => decoder.push(data));
|
|
6113
|
+
inner.on("error", (error) => decoder.destroy(error));
|
|
6114
|
+
}
|
|
6115
|
+
inner.write(chunk, done);
|
|
6116
|
+
},
|
|
6117
|
+
flush(done) {
|
|
6118
|
+
if (!inner) return done();
|
|
6119
|
+
inner.once("end", () => done());
|
|
6120
|
+
inner.end();
|
|
6121
|
+
},
|
|
6122
|
+
destroy(error, done) {
|
|
6123
|
+
inner?.destroy();
|
|
6124
|
+
done(error);
|
|
6125
|
+
}
|
|
6126
|
+
});
|
|
6127
|
+
} else decoder = import_node_zlib.default.createGunzip(TRUNCATION_TOLERANT);
|
|
6128
|
+
source = (0, import_node_stream.pipeline)(source, decoder, () => {
|
|
6129
|
+
});
|
|
6130
|
+
}
|
|
6131
|
+
}
|
|
6132
|
+
const chunks = source[Symbol.asyncIterator]();
|
|
6133
|
+
const body = new ReadableStream({
|
|
6134
|
+
async pull(controller) {
|
|
6135
|
+
try {
|
|
6136
|
+
const chunk = await chunks.next();
|
|
6137
|
+
if (chunk.done) controller.close();
|
|
6138
|
+
else if (chunk.value instanceof Uint8Array) controller.enqueue(chunk.value);
|
|
6139
|
+
else controller.error(new Error("HTTP response returned a non-byte chunk"));
|
|
6140
|
+
} catch (error) {
|
|
6141
|
+
controller.error(error);
|
|
6142
|
+
}
|
|
6143
|
+
},
|
|
6144
|
+
cancel() {
|
|
6145
|
+
source.destroy();
|
|
6146
|
+
res.destroy();
|
|
6147
|
+
}
|
|
6148
|
+
});
|
|
6149
|
+
resolve3(new Response(body, { status, headers }));
|
|
6150
|
+
}
|
|
6151
|
+
);
|
|
6152
|
+
req.on("error", reject);
|
|
6153
|
+
req.end();
|
|
6154
|
+
});
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
// src/runtimePlatformContract.ts
|
|
6158
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6159
|
+
var IOS_ADAPTER = Object.freeze({
|
|
6160
|
+
id: "ios",
|
|
6161
|
+
displayName: "iOS",
|
|
6162
|
+
isIOS: true,
|
|
6163
|
+
isAndroid: false,
|
|
6164
|
+
select: (registry) => registry.ios
|
|
6165
|
+
});
|
|
6166
|
+
var ANDROID_ADAPTER = Object.freeze({
|
|
6167
|
+
id: "android",
|
|
6168
|
+
displayName: "Android",
|
|
6169
|
+
isIOS: false,
|
|
6170
|
+
isAndroid: true,
|
|
6171
|
+
select: (registry) => registry.android
|
|
6172
|
+
});
|
|
6173
|
+
var RUNTIME_PLATFORM_ADAPTERS = Object.freeze({
|
|
6174
|
+
ios: IOS_ADAPTER,
|
|
6175
|
+
android: ANDROID_ADAPTER
|
|
6176
|
+
});
|
|
6177
|
+
function getRuntimePlatformAdapter(platform) {
|
|
6178
|
+
return RUNTIME_PLATFORM_ADAPTERS[platform];
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6181
|
+
// src/expo-swift-ready.ts
|
|
6182
|
+
var EXPO_SWIFT_READY_PROGRESS_MS = 3e4;
|
|
6183
|
+
async function awaitExpoSwiftReady(endpointUrl, options = {}, label = "expo swift modules") {
|
|
6184
|
+
const progressMs = options.progressMs ?? EXPO_SWIFT_READY_PROGRESS_MS;
|
|
6185
|
+
const start = Date.now();
|
|
6186
|
+
const report = options.onProgress ?? ((elapsedMs) => {
|
|
6187
|
+
console.log(` still preparing ${label} after ${Math.round(elapsedMs / 1e3)}s`);
|
|
6188
|
+
});
|
|
6189
|
+
const progress = setInterval(() => report(Date.now() - start), progressMs);
|
|
6190
|
+
try {
|
|
6191
|
+
options.signal?.throwIfAborted();
|
|
6192
|
+
let res;
|
|
6193
|
+
try {
|
|
6194
|
+
res = await nodeHttpFetch(endpointUrl, { signal: options.signal });
|
|
6195
|
+
} catch (error) {
|
|
6196
|
+
if (options.signal?.aborted) throw error;
|
|
6197
|
+
throw new Error(`could not reach ${endpointUrl}`, { cause: error });
|
|
6198
|
+
}
|
|
6199
|
+
if (!res.ok) {
|
|
6200
|
+
const text = (await res.text()).trim();
|
|
6201
|
+
const errors = text.split("\n").filter((line) => /(?:^|:\s)(?:fatal )?error:/.test(line));
|
|
6202
|
+
const detail = errors.join("\n");
|
|
6203
|
+
const body = detail ? detail.length > 2e3 ? `${detail.slice(0, 2e3)}\u2026` : detail : text.length > 2e3 ? `\u2026${text.slice(-2e3)}` : text;
|
|
6204
|
+
const hint = res.status === 404 ? `; peach cli ${getCliVersion()} serves this route, so if an older peach bridge holds this port, run \`peach daemon restart\` to load the matching bridge (it closes every sim that bridge hosts, so it was not restarted)` : "";
|
|
6205
|
+
throw new Error(
|
|
6206
|
+
`${endpointUrl} answered ${res.status}${body ? `: ${body}` : ""}${hint}`
|
|
6207
|
+
);
|
|
6208
|
+
}
|
|
6209
|
+
await res.text();
|
|
6210
|
+
console.log(` ${label} ready in ${((Date.now() - start) / 1e3).toFixed(1)}s`);
|
|
6211
|
+
} finally {
|
|
6212
|
+
clearInterval(progress);
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
async function awaitStampedExpoSwiftReady(shellUrl, openToken, platform, signal) {
|
|
6216
|
+
if (getRuntimePlatformAdapter(platform).isAndroid) return;
|
|
6217
|
+
const params = new URL(shellUrl).searchParams;
|
|
6218
|
+
const reference = params.get(LAUNCH_METADATA_QUERY_PARAM);
|
|
6219
|
+
if (reference) {
|
|
6220
|
+
const response = await nodeHttpFetch(reference, { signal });
|
|
6221
|
+
if (!response.ok)
|
|
6222
|
+
throw new Error(`launch metadata ${reference} answered ${response.status}`);
|
|
6223
|
+
const overrides = new Set(params.keys());
|
|
6224
|
+
for (const [key, value] of readLaunchMetadata(await response.text())) {
|
|
6225
|
+
if (!overrides.has(key)) params.append(key, value);
|
|
6226
|
+
}
|
|
6227
|
+
}
|
|
6228
|
+
const expoSwift = params.get("expoSwift");
|
|
6229
|
+
const nitro = params.get("nitro");
|
|
6230
|
+
const turbo = params.get("turbo");
|
|
6231
|
+
const expoWidgets = params.get("expoWidgets");
|
|
6232
|
+
const preparationUrl = (address) => {
|
|
6233
|
+
const url = new URL(address);
|
|
6234
|
+
url.searchParams.set(NATIVE_PREPARE_QUERY_PARAM, openToken);
|
|
6235
|
+
return url.href;
|
|
6236
|
+
};
|
|
6237
|
+
const siblings = new AbortController();
|
|
6238
|
+
const linked = signal ? AbortSignal.any([signal, siblings.signal]) : siblings.signal;
|
|
6239
|
+
try {
|
|
6240
|
+
await Promise.all([
|
|
6241
|
+
expoWidgets ? awaitExpoSwiftReady(
|
|
6242
|
+
preparationUrl(expoWidgets),
|
|
6243
|
+
{ signal: linked },
|
|
6244
|
+
"expo widget extension"
|
|
6245
|
+
) : null,
|
|
6246
|
+
expoSwift ? awaitExpoSwiftReady(preparationUrl(expoSwift), { signal: linked }) : null,
|
|
6247
|
+
nitro ? awaitExpoSwiftReady(preparationUrl(nitro), { signal: linked }, "nitro modules") : null,
|
|
6248
|
+
turbo ? awaitExpoSwiftReady(preparationUrl(turbo), { signal: linked }, "turbo modules") : null
|
|
6249
|
+
]);
|
|
6250
|
+
} catch (error) {
|
|
6251
|
+
siblings.abort(error);
|
|
6252
|
+
throw error;
|
|
6253
|
+
}
|
|
6254
|
+
}
|
|
6255
|
+
|
|
5954
6256
|
// src/menu.ts
|
|
5955
6257
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5956
6258
|
var SOOTSIM_SHELL_COMMAND_NAME = "sootsim:shell-command";
|
|
@@ -6079,21 +6381,19 @@ function readChromiumQueue(deps, verified, own) {
|
|
|
6079
6381
|
} catch (err) {
|
|
6080
6382
|
if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
|
|
6081
6383
|
}
|
|
6384
|
+
if (pid === process.pid) return true;
|
|
6082
6385
|
const known = verified.get(entry);
|
|
6083
6386
|
if (known !== void 0) return known;
|
|
6084
|
-
let
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
if (!gone) return true;
|
|
6092
|
-
}
|
|
6093
|
-
const startedAt = Date.parse(started);
|
|
6094
|
-
if (started && Number.isNaN(startedAt)) return true;
|
|
6095
|
-
same = Math.abs(startedAt / 1e3 - Number(match[2])) <= 2;
|
|
6387
|
+
let startedAt;
|
|
6388
|
+
try {
|
|
6389
|
+
startedAt = Date.parse(
|
|
6390
|
+
childProcess2.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim()
|
|
6391
|
+
);
|
|
6392
|
+
} catch {
|
|
6393
|
+
return true;
|
|
6096
6394
|
}
|
|
6395
|
+
if (Number.isNaN(startedAt)) return true;
|
|
6396
|
+
const same = startedAt / 1e3 <= Number(match[2]) + 2;
|
|
6097
6397
|
verified.set(entry, same);
|
|
6098
6398
|
return same;
|
|
6099
6399
|
};
|
|
@@ -6137,8 +6437,6 @@ async function acquireChromiumAdmission(deps) {
|
|
|
6137
6437
|
fs5.unlinkSync(ticket);
|
|
6138
6438
|
} catch {
|
|
6139
6439
|
}
|
|
6140
|
-
process.stderr.write(`[chromium-admission] ${label}: released ${name2}
|
|
6141
|
-
`);
|
|
6142
6440
|
};
|
|
6143
6441
|
process.on("exit", release);
|
|
6144
6442
|
signal?.addEventListener("abort", release, { once: true });
|
|
@@ -6152,10 +6450,12 @@ async function acquireChromiumAdmission(deps) {
|
|
|
6152
6450
|
throw new Error(`[chromium-admission] ${label}: reservation disappeared`);
|
|
6153
6451
|
}
|
|
6154
6452
|
if (rank < limit) {
|
|
6155
|
-
|
|
6156
|
-
|
|
6453
|
+
if (waited) {
|
|
6454
|
+
process.stderr.write(
|
|
6455
|
+
`[chromium-admission] ${label}: admitted after ${Date.now() - queuedAt}ms
|
|
6157
6456
|
`
|
|
6158
|
-
|
|
6457
|
+
);
|
|
6458
|
+
}
|
|
6159
6459
|
return release;
|
|
6160
6460
|
}
|
|
6161
6461
|
if (!waited) {
|
|
@@ -6195,7 +6495,7 @@ async function acquireChromiumAdmission(deps) {
|
|
|
6195
6495
|
// src/launch-deadline.ts
|
|
6196
6496
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
6197
6497
|
var import_node_child_process3 = require("node:child_process");
|
|
6198
|
-
var
|
|
6498
|
+
var import_node_fs7 = require("node:fs");
|
|
6199
6499
|
var os2 = __toESM(require("node:os"), 1);
|
|
6200
6500
|
var path4 = __toESM(require("node:path"), 1);
|
|
6201
6501
|
var LEDGER_PATH2 = path4.join(
|
|
@@ -6207,7 +6507,7 @@ var MAX_COUNTED_GAP_MS = TICK_MS2 * 3;
|
|
|
6207
6507
|
function heldPids() {
|
|
6208
6508
|
try {
|
|
6209
6509
|
const ledger = JSON.parse(
|
|
6210
|
-
(0,
|
|
6510
|
+
(0, import_node_fs7.readFileSync)(LEDGER_PATH2, "utf8")
|
|
6211
6511
|
);
|
|
6212
6512
|
return Object.values(ledger).flatMap((procs) => procs.map((proc) => proc.pid));
|
|
6213
6513
|
} catch {
|
|
@@ -6537,6 +6837,9 @@ async function validateLaunchedGpuBrowser(browser, runtime, rendererTarget, comm
|
|
|
6537
6837
|
throw new Error("[reap-browser] could not validate the launched Chrome GPU renderer");
|
|
6538
6838
|
}
|
|
6539
6839
|
var signalShutdownClaimed = false;
|
|
6840
|
+
function withClaimedSignalShutdown(opts) {
|
|
6841
|
+
return signalShutdownClaimed ? { ...opts, handleSIGINT: false, handleSIGTERM: false, handleSIGHUP: false } : opts;
|
|
6842
|
+
}
|
|
6540
6843
|
function installReaper() {
|
|
6541
6844
|
if (installed) return;
|
|
6542
6845
|
installed = true;
|
|
@@ -6625,6 +6928,7 @@ function gpuChromeArgs(platform = process.platform) {
|
|
|
6625
6928
|
}
|
|
6626
6929
|
var PLAYWRIGHT_DISABLED_FEATURES = [
|
|
6627
6930
|
"AimEnabled",
|
|
6931
|
+
"AvoidCorsURLLoaderRestartOnRedirect",
|
|
6628
6932
|
"AvoidUnnecessaryBeforeUnloadCheckSync",
|
|
6629
6933
|
"BlockOriginHeaderModificationOnRedirect",
|
|
6630
6934
|
"BoundaryEventDispatchTracksNodeRemoval",
|
|
@@ -6640,6 +6944,7 @@ var PLAYWRIGHT_DISABLED_FEATURES = [
|
|
|
6640
6944
|
"AutoDeElevate",
|
|
6641
6945
|
"RenderDocument",
|
|
6642
6946
|
"OptimizationHints",
|
|
6947
|
+
"NetworkTimeServiceQuerying",
|
|
6643
6948
|
"msForceBrowserSignIn",
|
|
6644
6949
|
"msEdgeUpdateLaunchServicesPreferredVersion"
|
|
6645
6950
|
];
|
|
@@ -6804,6 +7109,7 @@ function platformChromeLaunch(launch, opts, rendererTarget, policy = {}) {
|
|
|
6804
7109
|
};
|
|
6805
7110
|
}
|
|
6806
7111
|
function softwareChromeLaunchOptions(opts, runtime = currentRuntime()) {
|
|
7112
|
+
opts = withClaimedSignalShutdown(opts);
|
|
6807
7113
|
if (opts.ignoreDefaultArgs === true) {
|
|
6808
7114
|
throw new Error(
|
|
6809
7115
|
"[reap-browser] ignoreDefaultArgs=true bypasses required Chrome launch defaults"
|
|
@@ -6865,14 +7171,7 @@ function softwareChromeLaunchOptions(opts, runtime = currentRuntime()) {
|
|
|
6865
7171
|
return software;
|
|
6866
7172
|
}
|
|
6867
7173
|
function chromeLaunchOptions(opts = {}, runtime = currentRuntime()) {
|
|
6868
|
-
|
|
6869
|
-
opts = {
|
|
6870
|
-
...opts,
|
|
6871
|
-
handleSIGINT: false,
|
|
6872
|
-
handleSIGTERM: false,
|
|
6873
|
-
handleSIGHUP: false
|
|
6874
|
-
};
|
|
6875
|
-
}
|
|
7174
|
+
opts = withClaimedSignalShutdown(opts);
|
|
6876
7175
|
return softwareChromeAllowed(runtime) ? softwareChromeLaunchOptions(opts, runtime) : gpuChromeLaunchOptions(opts, runtime);
|
|
6877
7176
|
}
|
|
6878
7177
|
async function launchReapedChromeScoped(launch, opts = {}, rendererTarget, policy = {}) {
|
|
@@ -8239,7 +8538,7 @@ function permissionBootSeed(launchUrl, platform, permissions) {
|
|
|
8239
8538
|
}
|
|
8240
8539
|
async function waitForDetoxPermissionBridge(page) {
|
|
8241
8540
|
await page.waitForFunction(
|
|
8242
|
-
() => typeof window.SootSim?.bridges?.test?.permissionGuestAppId === "function" && typeof window.SootSim?.bridges?.test?.permissionSetAppPermission === "function"
|
|
8541
|
+
() => typeof window.SootSim?.bridges?.test?.permissionGuestAppId === "function" && typeof window.SootSim?.bridges?.test?.permissionSetAppPermission === "function",
|
|
8243
8542
|
void 0,
|
|
8244
8543
|
{ timeout: 3e4 }
|
|
8245
8544
|
);
|
|
@@ -8257,19 +8556,9 @@ async function setDetoxLaunchPermissionsInPage(page, mutations) {
|
|
|
8257
8556
|
}
|
|
8258
8557
|
}, mutations);
|
|
8259
8558
|
}
|
|
8260
|
-
async function readDetoxAppSnapshot(page) {
|
|
8261
|
-
return page.evaluate(async () => {
|
|
8262
|
-
const test = window.SootSim?.bridges?.test;
|
|
8263
|
-
if (typeof test?.permissionGuestAppId !== "function" || typeof test?.permissionGetAppSettings !== "function") {
|
|
8264
|
-
throw new Error("sootsim permission bridge is unavailable");
|
|
8265
|
-
}
|
|
8266
|
-
return test.permissionGetAppSettings(await test.permissionGuestAppId());
|
|
8267
|
-
});
|
|
8268
|
-
}
|
|
8269
8559
|
async function applyDetoxPermissionMutations(page, mutations) {
|
|
8270
8560
|
if (mutations.length === 0) return;
|
|
8271
8561
|
await setDetoxLaunchPermissionsInPage(page, mutations);
|
|
8272
|
-
await readDetoxAppSnapshot(page);
|
|
8273
8562
|
}
|
|
8274
8563
|
async function applyDetoxLaunchPermissions(page, permissions) {
|
|
8275
8564
|
await applyDetoxPermissionMutations(page, detoxLaunchPermissionMutations(permissions));
|
|
@@ -8456,11 +8745,17 @@ async function waitForSootsimShellReady(page, timeout = 3e4) {
|
|
|
8456
8745
|
throw new Error("sootsim app compositor unavailable at boot");
|
|
8457
8746
|
}
|
|
8458
8747
|
await compositorHost.firstContentPainted;
|
|
8459
|
-
deadline = Date.now() + 3e3;
|
|
8460
8748
|
}
|
|
8461
8749
|
const isRenderHostDisposed = (error) => error instanceof Error && error.message.includes("render host disposed");
|
|
8462
8750
|
for (; ; ) {
|
|
8463
8751
|
try {
|
|
8752
|
+
if (expectsInitialAppPaint2) {
|
|
8753
|
+
const renderHost = window.SootSim?.state.renderHost;
|
|
8754
|
+
if (!renderHost || typeof renderHost !== "object" || !("appReady" in renderHost) || !(renderHost.appReady instanceof Promise)) {
|
|
8755
|
+
throw new Error("sootsim tenant app readiness unavailable at boot");
|
|
8756
|
+
}
|
|
8757
|
+
await withTimeout("sootsim tenant app ready", renderHost.appReady);
|
|
8758
|
+
}
|
|
8464
8759
|
if (!expectsInitialAppPaint2 && shellHost.firstContentPainted && typeof shellHost.firstContentPainted.then === "function") {
|
|
8465
8760
|
await withTimeout(
|
|
8466
8761
|
"sootsim shell first content paint",
|
|
@@ -9339,7 +9634,16 @@ function createSootSimElement(matcher) {
|
|
|
9339
9634
|
endSootSimX += dist;
|
|
9340
9635
|
break;
|
|
9341
9636
|
}
|
|
9342
|
-
const
|
|
9637
|
+
const divisions = speed === "slow" ? 40 : 20;
|
|
9638
|
+
let steps = 0;
|
|
9639
|
+
let lastProgress = 0;
|
|
9640
|
+
for (let progress = 0; progress <= 1; progress += 1 / divisions) {
|
|
9641
|
+
lastProgress = progress;
|
|
9642
|
+
steps++;
|
|
9643
|
+
}
|
|
9644
|
+
steps--;
|
|
9645
|
+
endSootSimX = startSootSimX + (endSootSimX - startSootSimX) * lastProgress;
|
|
9646
|
+
endSootSimY = startSootSimY + (endSootSimY - startSootSimY) * lastProgress;
|
|
9343
9647
|
const stepDelay = 1e3 / 60;
|
|
9344
9648
|
const captureToken = page.__sootsimCaptureToken;
|
|
9345
9649
|
await page.evaluate(
|
|
@@ -9606,7 +9910,7 @@ async function postRemotePushToSimulator(params, launch) {
|
|
|
9606
9910
|
}
|
|
9607
9911
|
var ONSET_STEP_MS = 1e3 / 240;
|
|
9608
9912
|
var PHASE_SEARCH_MS = 1e3 / 30;
|
|
9609
|
-
function
|
|
9913
|
+
function storedNativeCheckpoint(namePrefix) {
|
|
9610
9914
|
const nativeTarget = `${DETOX_PLATFORM}${(process.env.APPEARANCE_REPORTED || process.env.APPEARANCE) === "dark" ? "-dark" : ""}`;
|
|
9611
9915
|
const targetDir = path6.resolve(
|
|
9612
9916
|
process.cwd(),
|
|
@@ -9621,11 +9925,7 @@ function storedNativeProgressFrames(namePrefix, label, baselineLabel) {
|
|
|
9621
9925
|
caseName,
|
|
9622
9926
|
namePrefix.slice(caseName.length + 1)
|
|
9623
9927
|
);
|
|
9624
|
-
|
|
9625
|
-
return {
|
|
9626
|
-
baselinePng: fs4.readFileSync(path6.join(checkpointDir, `${baselineLabel}.png`)).toString("base64"),
|
|
9627
|
-
png: fs4.readFileSync(path6.join(checkpointDir, `${label}.png`)).toString("base64")
|
|
9628
|
-
};
|
|
9928
|
+
return checkpointDir;
|
|
9629
9929
|
}
|
|
9630
9930
|
return null;
|
|
9631
9931
|
}
|
|
@@ -9637,6 +9937,12 @@ var device = {
|
|
|
9637
9937
|
if (_browserCompromised) {
|
|
9638
9938
|
throw new Error(`sootsim browser is compromised: ${_browserCompromised}`);
|
|
9639
9939
|
}
|
|
9940
|
+
if (opts?.fetchProxySpki) {
|
|
9941
|
+
if (!/^[A-Za-z0-9+/]{43}=$/.test(opts.fetchProxySpki))
|
|
9942
|
+
throw new Error("sootsim fetch proxy requires a SHA-256 public-key pin");
|
|
9943
|
+
if (_browser || _browserLaunch)
|
|
9944
|
+
throw new Error("sootsim fetch proxy pin must be set on a fresh browser");
|
|
9945
|
+
}
|
|
9640
9946
|
const newInstance = opts?.newInstance ?? !_page;
|
|
9641
9947
|
if (_page && !newInstance && !opts?.delete && !opts?.recordVideoDir) {
|
|
9642
9948
|
const page = _page;
|
|
@@ -9711,7 +10017,8 @@ var device = {
|
|
|
9711
10017
|
(options) => import_playwright_core.chromium.launch(options),
|
|
9712
10018
|
{
|
|
9713
10019
|
headless: true,
|
|
9714
|
-
ignoreDefaultArgs: ["--disable-popup-blocking"]
|
|
10020
|
+
ignoreDefaultArgs: ["--disable-popup-blocking"],
|
|
10021
|
+
...opts?.fetchProxySpki ? { args: [`--ignore-certificate-errors-spki-list=${opts.fetchProxySpki}`] } : {}
|
|
9715
10022
|
},
|
|
9716
10023
|
void 0,
|
|
9717
10024
|
{ admission }
|
|
@@ -9805,8 +10112,12 @@ var device = {
|
|
|
9805
10112
|
);
|
|
9806
10113
|
contextIdentity = newContextIdentity;
|
|
9807
10114
|
}
|
|
10115
|
+
const launchUrl = new URL(url);
|
|
10116
|
+
const openToken = (0, import_crypto.randomUUID)();
|
|
10117
|
+
launchUrl.searchParams.set("inspectOpen", openToken);
|
|
10118
|
+
await awaitStampedExpoSwiftReady(launchUrl.href, openToken, DETOX_PLATFORM);
|
|
9808
10119
|
device._currentUrl = url;
|
|
9809
|
-
await navigateSootsimPage(_page,
|
|
10120
|
+
await navigateSootsimPage(_page, launchUrl.href, {
|
|
9810
10121
|
browserId: browserIdentity,
|
|
9811
10122
|
contextId: contextIdentity,
|
|
9812
10123
|
operation: "launchApp"
|
|
@@ -9868,6 +10179,40 @@ var device = {
|
|
|
9868
10179
|
async takeScreenshot(name2) {
|
|
9869
10180
|
return writeSootsimScreenshot(name2);
|
|
9870
10181
|
},
|
|
10182
|
+
// recreate a design own-paint layer over the scene it was captured from.
|
|
10183
|
+
async takeScreenshotOwnPaint(name2, testID) {
|
|
10184
|
+
const target = await findNodeByMatcher(by.id(testID));
|
|
10185
|
+
if (!target) throw new Error(`own-paint capture target not found: ${testID}`);
|
|
10186
|
+
const page = getPage();
|
|
10187
|
+
const dataUrl = await page.evaluate(async (id) => {
|
|
10188
|
+
const screenshot = window.SootSim.bridges.screenshot;
|
|
10189
|
+
const background = await screenshot({
|
|
10190
|
+
layers: "tenant",
|
|
10191
|
+
format: "png",
|
|
10192
|
+
captureFilter: { hideTestIds: [id] }
|
|
10193
|
+
});
|
|
10194
|
+
const ownPaint = await screenshot({
|
|
10195
|
+
layers: "tenant",
|
|
10196
|
+
format: "png",
|
|
10197
|
+
captureFilter: { soloTestId: id, soloOwnPaint: true }
|
|
10198
|
+
});
|
|
10199
|
+
const backdrop = await createImageBitmap(await (await fetch(background)).blob());
|
|
10200
|
+
const layer = await createImageBitmap(await (await fetch(ownPaint)).blob());
|
|
10201
|
+
const canvas = document.createElement("canvas");
|
|
10202
|
+
canvas.width = backdrop.width;
|
|
10203
|
+
canvas.height = backdrop.height;
|
|
10204
|
+
const context = canvas.getContext("2d");
|
|
10205
|
+
context.drawImage(backdrop, 0, 0);
|
|
10206
|
+
context.drawImage(layer, 0, 0);
|
|
10207
|
+
backdrop.close();
|
|
10208
|
+
layer.close();
|
|
10209
|
+
return canvas.toDataURL("image/png");
|
|
10210
|
+
}, testID);
|
|
10211
|
+
ensureScreenshotDir();
|
|
10212
|
+
const screenshotPath = path6.join(SCREENSHOT_DIR, name2 + ".png");
|
|
10213
|
+
fs4.writeFileSync(screenshotPath, decodePngDataUrl(dataUrl));
|
|
10214
|
+
return screenshotPath;
|
|
10215
|
+
},
|
|
9871
10216
|
// single-shot variant for multi-stage animation captures. skips the
|
|
9872
10217
|
// frame-stability poll so callers can sample mid-transition.
|
|
9873
10218
|
async takeScreenshotFast(name2) {
|
|
@@ -10239,6 +10584,24 @@ var device = {
|
|
|
10239
10584
|
await enable(true, true, limit);
|
|
10240
10585
|
}, WORKLET_FRAME_TRACE_LIMIT);
|
|
10241
10586
|
}
|
|
10587
|
+
const nativeCheckpoint = storedNativeCheckpoint(namePrefix);
|
|
10588
|
+
const nativeStagesPath = nativeCheckpoint && path6.join(nativeCheckpoint, "stages.json");
|
|
10589
|
+
const nativeStages = nativeStagesPath && fs4.existsSync(nativeStagesPath) ? JSON.parse(fs4.readFileSync(nativeStagesPath, "utf8")).stages : [];
|
|
10590
|
+
const pairedStages = stages.map((stage) => {
|
|
10591
|
+
if (DETOX_PLATFORM !== "ios") return stage;
|
|
10592
|
+
const { nativeActualMs: _nativeActualMs, ...rest } = stage;
|
|
10593
|
+
const nativeStage = nativeStages.find((native) => native.label === stage.label);
|
|
10594
|
+
const mediaActualMs = nativeStage?.mediaActualMs;
|
|
10595
|
+
if (nativeStagesPath && fs4.existsSync(nativeStagesPath) && mediaActualMs === void 0 && nativeStage?.captureMode !== "lossless-settled-frame") {
|
|
10596
|
+
throw new Error(`native motion stage ${stage.label} has no recorded media time`);
|
|
10597
|
+
}
|
|
10598
|
+
return mediaActualMs === void 0 ? rest : {
|
|
10599
|
+
...rest,
|
|
10600
|
+
nativeActualMs: mediaActualMs - ((nativeStage?.touchOffsetMs ?? stage.offsetMs) - stage.offsetMs)
|
|
10601
|
+
};
|
|
10602
|
+
});
|
|
10603
|
+
const progressStageIndex = DETOX_PLATFORM === "ios" || pairedStages.some((stage) => stage.nativeActualMs !== void 0) ? -1 : pairedStages.findIndex(isProgressStage);
|
|
10604
|
+
const nativeBaselineLabel = nativeStages[0]?.label;
|
|
10242
10605
|
const capturePromise = page.evaluate(
|
|
10243
10606
|
async (input) => {
|
|
10244
10607
|
const captureWindow = window;
|
|
@@ -10323,7 +10686,8 @@ var device = {
|
|
|
10323
10686
|
label: snapshot.label,
|
|
10324
10687
|
offsetMs: snapshot.offsetMs,
|
|
10325
10688
|
frameIndex: snapshot.frameIndex,
|
|
10326
|
-
virtualTimestampMs: snapshot.virtualTimestampMs
|
|
10689
|
+
virtualTimestampMs: snapshot.virtualTimestampMs,
|
|
10690
|
+
samplingTargetTimestampMs: snapshot.samplingTargetTimestampMs
|
|
10327
10691
|
};
|
|
10328
10692
|
};
|
|
10329
10693
|
const interact = captureWindow.SootSim?.bridges?.interact;
|
|
@@ -10350,9 +10714,6 @@ var device = {
|
|
|
10350
10714
|
keptFrames.set(receipt.frameIndex, { bitmap, receipt });
|
|
10351
10715
|
};
|
|
10352
10716
|
try {
|
|
10353
|
-
if (input.anchorAtTouch && !input.hold) {
|
|
10354
|
-
throw new Error("peach touch anchoring needs a hold");
|
|
10355
|
-
}
|
|
10356
10717
|
const baselineBitmap = await captureBitmap();
|
|
10357
10718
|
const baseline = regionPixels(baselineBitmap);
|
|
10358
10719
|
if (input.anchorAtTouch === "down")
|
|
@@ -10408,10 +10769,21 @@ var device = {
|
|
|
10408
10769
|
});
|
|
10409
10770
|
await controller.flushFrame();
|
|
10410
10771
|
} else {
|
|
10411
|
-
while (!(input.workletFrameTimestampsSeconds ? state.triggerCompleted : state.triggerStarted)) {
|
|
10772
|
+
while (!(input.workletFrameTimestampsSeconds && !input.anchorAtTouch ? state.triggerCompleted : state.triggerStarted)) {
|
|
10412
10773
|
if (state.cancelled) throw new Error("peach motion capture was cancelled");
|
|
10413
10774
|
await new Promise((resolve3) => setTimeout(resolve3, 0));
|
|
10414
10775
|
}
|
|
10776
|
+
if (input.anchorAtTouch) {
|
|
10777
|
+
while (!controller.inputReceipts.some((receipt) => receipt.phase === "down")) {
|
|
10778
|
+
if (state.cancelled) throw new Error("peach motion capture was cancelled");
|
|
10779
|
+
await controller.flushFrame();
|
|
10780
|
+
if (controller.inputReceipts.some((receipt) => receipt.phase === "down"))
|
|
10781
|
+
break;
|
|
10782
|
+
if (state.triggerCompleted)
|
|
10783
|
+
throw new Error("peach touch anchoring found no delivered press");
|
|
10784
|
+
await new Promise((resolve3) => setTimeout(resolve3, 0));
|
|
10785
|
+
}
|
|
10786
|
+
}
|
|
10415
10787
|
}
|
|
10416
10788
|
let visibleStart = null;
|
|
10417
10789
|
let detectedMeasurement = null;
|
|
@@ -10488,6 +10860,8 @@ var device = {
|
|
|
10488
10860
|
currentReceipt = controller.initialFrame;
|
|
10489
10861
|
while (!releaseReceipt()) {
|
|
10490
10862
|
if (state.cancelled) throw new Error("peach motion capture was cancelled");
|
|
10863
|
+
if (!input.hold && state.triggerCompleted)
|
|
10864
|
+
throw new Error("peach release anchoring found no delivered release");
|
|
10491
10865
|
const receipt = await controller.stepFrame();
|
|
10492
10866
|
currentReceipt = receipt;
|
|
10493
10867
|
if (releaseReceipt()) keepFrame(receipt, await captureBitmap());
|
|
@@ -10496,7 +10870,44 @@ var device = {
|
|
|
10496
10870
|
if (!released) {
|
|
10497
10871
|
throw new Error("peach release anchoring found no release frame");
|
|
10498
10872
|
}
|
|
10499
|
-
driveStart = {
|
|
10873
|
+
driveStart = {
|
|
10874
|
+
...released,
|
|
10875
|
+
tenantFrame: currentReceipt.tenantFrame,
|
|
10876
|
+
stageMs: null
|
|
10877
|
+
};
|
|
10878
|
+
}
|
|
10879
|
+
let producerOffsetMs = 0;
|
|
10880
|
+
let producerPhasePending = false;
|
|
10881
|
+
if (input.producerWitness) {
|
|
10882
|
+
if (input.anchorAtTouch !== "up" || !driveStart.tenantFrame?.guestClockFrozen)
|
|
10883
|
+
throw new Error(
|
|
10884
|
+
"producer witness requires a frozen delivered release clock"
|
|
10885
|
+
);
|
|
10886
|
+
const test = captureWindow.SootSim?.bridges?.test;
|
|
10887
|
+
if (!test) throw new Error("producer witness requires the test bridge");
|
|
10888
|
+
let witnessed = false;
|
|
10889
|
+
for (let frame = 0; frame < detectionFrameLimit; frame++) {
|
|
10890
|
+
const value = (await test.findByTestId(input.producerWitness.testId))?.accessibilityValue?.text;
|
|
10891
|
+
const times = value?.split(",").map(Number);
|
|
10892
|
+
if (times?.length === 6 && times.every(Number.isFinite)) {
|
|
10893
|
+
const guestInputMs = driveStart.tenantFrame.guestNowMs;
|
|
10894
|
+
if (Math.abs(times[0] * 1e3 - guestInputMs) > 0.01 || times[1] < times[0] || times[2] < times[1] || times[5] < times[0] || times[5] > times[2])
|
|
10895
|
+
throw new Error(
|
|
10896
|
+
"producer witness does not follow the delivered release"
|
|
10897
|
+
);
|
|
10898
|
+
producerOffsetMs = times[5] * 1e3 - guestInputMs - input.producerWitness.nativeOffsetMs;
|
|
10899
|
+
if (1e3 / 60 + producerOffsetMs <= 0)
|
|
10900
|
+
throw new Error("producer alignment precedes the next guest refresh");
|
|
10901
|
+
producerPhasePending = true;
|
|
10902
|
+
witnessed = true;
|
|
10903
|
+
break;
|
|
10904
|
+
}
|
|
10905
|
+
currentReceipt = await controller.stepFrame(
|
|
10906
|
+
frame === 0 ? input.producerWitness.nativeFirstFrameOffsetMs : void 0
|
|
10907
|
+
);
|
|
10908
|
+
}
|
|
10909
|
+
if (!witnessed)
|
|
10910
|
+
throw new Error("producer display-link witness was not observed");
|
|
10500
10911
|
}
|
|
10501
10912
|
const resolvedAnchors = /* @__PURE__ */ new Map();
|
|
10502
10913
|
const anchorRecords = [];
|
|
@@ -10603,24 +11014,28 @@ var device = {
|
|
|
10603
11014
|
);
|
|
10604
11015
|
};
|
|
10605
11016
|
const snapshots = [];
|
|
10606
|
-
const stepToTime = async (targetMs) => {
|
|
11017
|
+
const stepToTime = async (targetMs, sampledRefresh = false) => {
|
|
10607
11018
|
let receipt = currentReceipt;
|
|
10608
11019
|
if (targetMs < receipt.virtualTimestampMs - 0.01) {
|
|
10609
11020
|
throw new Error(
|
|
10610
11021
|
`sample time ${targetMs}ms precedes the frames already stepped`
|
|
10611
11022
|
);
|
|
10612
11023
|
}
|
|
10613
|
-
while (receipt.virtualTimestampMs + 1e3 / 60 <= targetMs + 0.01) {
|
|
10614
|
-
receipt = await controller.stepFrame(
|
|
11024
|
+
while (receipt.virtualTimestampMs + 1e3 / 60 + (producerPhasePending ? producerOffsetMs : 0) <= targetMs + 0.01) {
|
|
11025
|
+
receipt = await controller.stepFrame(
|
|
11026
|
+
producerPhasePending ? 1e3 / 60 + producerOffsetMs : void 0
|
|
11027
|
+
);
|
|
11028
|
+
producerPhasePending = false;
|
|
10615
11029
|
}
|
|
10616
|
-
if (targetMs - receipt.virtualTimestampMs > 0.01) {
|
|
11030
|
+
if (!sampledRefresh && targetMs - receipt.virtualTimestampMs > 0.01) {
|
|
10617
11031
|
receipt = await controller.stepFrame(targetMs - receipt.virtualTimestampMs);
|
|
10618
11032
|
}
|
|
10619
11033
|
currentReceipt = receipt;
|
|
10620
11034
|
return receipt;
|
|
10621
11035
|
};
|
|
10622
11036
|
const sampleAt = async (stage, anchorReceipt, anchorId, targetMs) => {
|
|
10623
|
-
const
|
|
11037
|
+
const sampledRefresh = Boolean(input.producerWitness || input.hold);
|
|
11038
|
+
const receipt = await stepToTime(targetMs, sampledRefresh);
|
|
10624
11039
|
snapshots.push({
|
|
10625
11040
|
actualMs: receipt.virtualTimestampMs - anchorReceipt.virtualTimestampMs,
|
|
10626
11041
|
anchorId,
|
|
@@ -10628,7 +11043,8 @@ var device = {
|
|
|
10628
11043
|
frameIndex: receipt.frameIndex,
|
|
10629
11044
|
label: stage.label,
|
|
10630
11045
|
offsetMs: stage.offsetMs,
|
|
10631
|
-
virtualTimestampMs: receipt.virtualTimestampMs
|
|
11046
|
+
virtualTimestampMs: receipt.virtualTimestampMs,
|
|
11047
|
+
...sampledRefresh ? { samplingTargetTimestampMs: targetMs } : {}
|
|
10632
11048
|
});
|
|
10633
11049
|
};
|
|
10634
11050
|
const nativeProgressPercent = async (progress) => {
|
|
@@ -10651,16 +11067,16 @@ var device = {
|
|
|
10651
11067
|
for (const stage of input.stages) {
|
|
10652
11068
|
if (state.cancelled) throw new Error("peach motion capture was cancelled");
|
|
10653
11069
|
const { anchorId, receipt: anchorReceipt } = await resolveAnchor(stage);
|
|
11070
|
+
const touchOffsetMs = await stageOffsetMs(stage.offsetMs, anchorId);
|
|
10654
11071
|
if (typeof stage.nativeActualMs === "number") {
|
|
10655
11072
|
await sampleAt(
|
|
10656
11073
|
stage,
|
|
10657
11074
|
anchorReceipt,
|
|
10658
11075
|
anchorId,
|
|
10659
|
-
anchorReceipt.virtualTimestampMs + stage.nativeActualMs
|
|
11076
|
+
anchorReceipt.virtualTimestampMs + stage.nativeActualMs + touchOffsetMs - stage.offsetMs + producerOffsetMs
|
|
10660
11077
|
);
|
|
10661
11078
|
continue;
|
|
10662
11079
|
}
|
|
10663
|
-
const touchOffsetMs = await stageOffsetMs(stage.offsetMs, anchorId);
|
|
10664
11080
|
if (stage.nativeProgress) {
|
|
10665
11081
|
const targetPercent = await nativeProgressPercent(stage.nativeProgress);
|
|
10666
11082
|
const nominalMs = anchorReceipt.virtualTimestampMs + touchOffsetMs;
|
|
@@ -10725,6 +11141,15 @@ var device = {
|
|
|
10725
11141
|
});
|
|
10726
11142
|
continue;
|
|
10727
11143
|
}
|
|
11144
|
+
if (stageFrameIndex < currentReceipt.frameIndex) {
|
|
11145
|
+
await sampleAt(
|
|
11146
|
+
stage,
|
|
11147
|
+
anchorReceipt,
|
|
11148
|
+
anchorId,
|
|
11149
|
+
anchorReceipt.virtualTimestampMs + touchOffsetMs
|
|
11150
|
+
);
|
|
11151
|
+
continue;
|
|
11152
|
+
}
|
|
10728
11153
|
const receipt = await controller.stepToOffset(anchorReceipt, touchOffsetMs);
|
|
10729
11154
|
currentReceipt = receipt;
|
|
10730
11155
|
snapshots.push({
|
|
@@ -10739,7 +11164,10 @@ var device = {
|
|
|
10739
11164
|
}
|
|
10740
11165
|
if (input.workletFrameTimestampsSeconds) controller.endWorkletFrameReceipt();
|
|
10741
11166
|
let releasedOffsetMs = 0;
|
|
10742
|
-
while (input.hold && !releaseReceipt()) {
|
|
11167
|
+
while ((input.hold || input.anchorAtTouch) && !releaseReceipt()) {
|
|
11168
|
+
if (state.cancelled) throw new Error("peach motion capture was cancelled");
|
|
11169
|
+
if (!input.hold && state.triggerCompleted)
|
|
11170
|
+
throw new Error("peach touch anchoring found no delivered release");
|
|
10743
11171
|
currentReceipt = await controller.stepFrame();
|
|
10744
11172
|
releasedOffsetMs = currentReceipt.virtualTimestampMs - driveStart.virtualTimestampMs;
|
|
10745
11173
|
}
|
|
@@ -10771,7 +11199,9 @@ var device = {
|
|
|
10771
11199
|
anchors: anchorRecords,
|
|
10772
11200
|
driveStart: {
|
|
10773
11201
|
frameIndex: driveStart.frameIndex,
|
|
10774
|
-
virtualTimestampMs: driveStart.virtualTimestampMs
|
|
11202
|
+
virtualTimestampMs: driveStart.virtualTimestampMs,
|
|
11203
|
+
guestNowMs: driveStart.tenantFrame?.guestNowMs ?? null,
|
|
11204
|
+
guestClockFrozen: driveStart.tenantFrame?.guestClockFrozen ?? null
|
|
10775
11205
|
},
|
|
10776
11206
|
frames: snapshots.map(encode),
|
|
10777
11207
|
visibleChangeDetection: visibleStart && detectedMeasurement ? {
|
|
@@ -10798,16 +11228,22 @@ var device = {
|
|
|
10798
11228
|
phaseSearchMs: PHASE_SEARCH_MS,
|
|
10799
11229
|
frame: options.frame ?? null,
|
|
10800
11230
|
anchorAtTouch: options.anchorAtTouch ?? null,
|
|
11231
|
+
producerWitness: options.producerWitness ?? null,
|
|
10801
11232
|
witnessedDrag: options.witnessedDrag === true,
|
|
10802
11233
|
hold: options.hold ?? null,
|
|
10803
11234
|
motionChangeDefinition: proofObserver.motionChangeDefinition,
|
|
10804
11235
|
platform: device.getPlatform(),
|
|
10805
11236
|
rootFrame: options.rootFrame ?? null,
|
|
10806
11237
|
settleMs,
|
|
10807
|
-
stages:
|
|
10808
|
-
(stage, index) => index ===
|
|
11238
|
+
stages: pairedStages.map(
|
|
11239
|
+
(stage, index) => index === progressStageIndex && nativeCheckpoint && nativeBaselineLabel && fs4.existsSync(path6.join(nativeCheckpoint, `${stage.label}.png`)) ? {
|
|
10809
11240
|
...stage,
|
|
10810
|
-
nativeProgress:
|
|
11241
|
+
nativeProgress: {
|
|
11242
|
+
baselinePng: fs4.readFileSync(
|
|
11243
|
+
path6.join(nativeCheckpoint, `${nativeBaselineLabel}.png`)
|
|
11244
|
+
).toString("base64"),
|
|
11245
|
+
png: fs4.readFileSync(path6.join(nativeCheckpoint, `${stage.label}.png`)).toString("base64")
|
|
11246
|
+
}
|
|
10811
11247
|
} : stage
|
|
10812
11248
|
),
|
|
10813
11249
|
token
|