peachsim 0.1.1659 → 0.1.1667
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 +7 -0
- package/cli/bridge-flow-runner.ts +2 -2
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/settle.ts +4 -2
- package/cli/commands/inspect/settling.ts +17 -14
- package/cli/commands/platform.ts +3 -0
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/maestro-compare.ts +44 -14
- package/cli/main.ts +3 -0
- package/cli/material-symbol-fonts.ts +3 -100
- package/cli/output-redaction.ts +21 -6
- package/cli/parent-pid.ts +2 -2
- package/cli/ws-bridge.ts +19 -1
- package/detox/attempt-events.cjs +48 -18
- package/detox/index.ts +0 -1
- 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 +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2156 -25785
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- 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 +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +85 -37
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1747 -25394
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2195 -25834
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -7
- 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 +1 -1
- package/dist-lib/index.cjs +190 -45
- 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 +1 -1
- package/dist-lib/menu.mjs +1 -1
- 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 +81 -9
- package/dist-lib/native-app-identity-project.cjs +81 -9
- package/dist-lib/native-app-identity-project.mjs +81 -9
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- 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 +26 -24
- package/dist-lib/public-origins-lib.json +79 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +18 -15
- package/dist-lib/sdk.mjs +18 -15
- package/dist-lib/skills.cjs +2995 -26434
- package/dist-lib/swift-compile.cjs +985 -24728
- package/dist-lib/swift-compile.mjs +914 -24657
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +28 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1780 -25372
- package/dist-lib/vite.cjs +73 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +29 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +13 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +19 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeSyncReplyContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +10 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/accessibilityBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/androidDateTimePickerBridgeContract.d.ts +41 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +22 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +33 -0
- package/dist-types/packages/peach-globals/src/bridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +94 -0
- package/dist-types/packages/peach-globals/src/captureBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +31 -0
- package/dist-types/packages/peach-globals/src/debugBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +29 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +200 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +462 -0
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +47 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +47 -3334
- package/dist-types/packages/peach-globals/src/interactionBridgeContract.d.ts +21 -0
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +44 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +77 -0
- package/dist-types/packages/peach-globals/src/nativeViewContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/navigationBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +664 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +100 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +152 -0
- package/dist-types/packages/peach-globals/src/photoLibraryBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/portalBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +131 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +125 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +37 -0
- package/dist-types/packages/peach-globals/src/settingsBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/shareSheetBridgeContract.d.ts +14 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +82 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/speechSynthesisBridgeContract.d.ts +25 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +278 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +58 -0
- package/dist-types/packages/peach-globals/src/videoBridgeContract.d.ts +80 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +331 -0
- package/dist-types/packages/peach-globals/src/windowBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +3 -5
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +15 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +185 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h +1276 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTType.h +644 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +1441 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +106 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +429 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +665 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2504 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +634 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +14 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h +9 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +2 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +817 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/include/Availability.h +630 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +556 -0
- package/sdk/ios/usr/include/AvailabilityInternalLegacy.h +4346 -0
- package/sdk/ios/usr/include/AvailabilityVersions.h +547 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +130 -0
- package/sdk/ios/usr/include/MacTypes.h +3 -0
- package/sdk/ios/usr/include/TargetConditionals.h +14 -0
- package/sdk/ios/usr/include/__xlocale.h +41 -0
- package/sdk/ios/usr/include/_bounds.h +67 -0
- package/sdk/ios/usr/include/_ctermid.h +42 -0
- package/sdk/ios/usr/include/_mb_cur_max.h +39 -0
- package/sdk/ios/usr/include/_printf.h +38 -0
- package/sdk/ios/usr/include/_stdio.h +510 -0
- package/sdk/ios/usr/include/_types/_intmax_t.h +40 -0
- package/sdk/ios/usr/include/_types/_locale_t.h +38 -0
- package/sdk/ios/usr/include/_types/_uint16_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint32_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint64_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint8_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uintmax_t.h +40 -0
- package/sdk/ios/usr/include/_types.h +72 -0
- package/sdk/ios/usr/include/arm/_endian.h +105 -0
- package/sdk/ios/usr/include/arm/_mcontext.h +95 -0
- package/sdk/ios/usr/include/arm/_param.h +25 -0
- package/sdk/ios/usr/include/arm/_types.h +125 -0
- package/sdk/ios/usr/include/arm/endian.h +65 -0
- package/sdk/ios/usr/include/arm/signal.h +22 -0
- package/sdk/ios/usr/include/arm/types.h +110 -0
- package/sdk/ios/usr/include/asl.h +160 -0
- package/sdk/ios/usr/include/assert.h +14 -0
- package/sdk/ios/usr/include/dirent.h +224 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +114 -0
- package/sdk/ios/usr/include/dlfcn.h +16 -0
- package/sdk/ios/usr/include/errno.h +24 -0
- package/sdk/ios/usr/include/execinfo.h +11 -0
- package/sdk/ios/usr/include/fcntl.h +23 -0
- package/sdk/ios/usr/include/i386/_endian.h +105 -0
- package/sdk/ios/usr/include/i386/_mcontext.h +216 -0
- package/sdk/ios/usr/include/i386/_param.h +49 -0
- package/sdk/ios/usr/include/i386/_types.h +149 -0
- package/sdk/ios/usr/include/i386/endian.h +89 -0
- package/sdk/ios/usr/include/i386/signal.h +47 -0
- package/sdk/ios/usr/include/libkern/OSAtomic.h +51 -0
- package/sdk/ios/usr/include/libkern/OSAtomicDeprecated.h +1267 -0
- package/sdk/ios/usr/include/libkern/OSAtomicQueue.h +115 -0
- package/sdk/ios/usr/include/libkern/OSSpinLockDeprecated.h +212 -0
- package/sdk/ios/usr/include/libkern/_OSByteOrder.h +125 -0
- package/sdk/ios/usr/include/libkern/arm/_OSByteOrder.h +99 -0
- package/sdk/ios/usr/include/libkern/i386/_OSByteOrder.h +110 -0
- package/sdk/ios/usr/include/limits.h +4 -0
- package/sdk/ios/usr/include/mach/arm/_structs.h +741 -0
- package/sdk/ios/usr/include/mach/boolean.h +4 -0
- package/sdk/ios/usr/include/mach/exception_types.h +40 -0
- package/sdk/ios/usr/include/mach/host_info.h +200 -0
- package/sdk/ios/usr/include/mach/i386/_structs.h +1316 -0
- package/sdk/ios/usr/include/mach/kern_return.h +61 -0
- package/sdk/ios/usr/include/mach/mach.h +16 -0
- package/sdk/ios/usr/include/mach/mach_error.h +10 -0
- package/sdk/ios/usr/include/mach/mach_host.h +18 -0
- package/sdk/ios/usr/include/mach/mach_init.h +15 -0
- package/sdk/ios/usr/include/mach/mach_port.h +11 -0
- package/sdk/ios/usr/include/mach/mach_time.h +14 -0
- package/sdk/ios/usr/include/mach/mach_types.h +20 -0
- package/sdk/ios/usr/include/mach/machine/_structs.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +144 -0
- package/sdk/ios/usr/include/mach/task.h +14 -0
- package/sdk/ios/usr/include/mach/task_info.h +23 -0
- package/sdk/ios/usr/include/mach/task_policy.h +29 -0
- package/sdk/ios/usr/include/mach/thread_act.h +12 -0
- package/sdk/ios/usr/include/mach/thread_info.h +32 -0
- package/sdk/ios/usr/include/mach/time_value.h +4 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +8 -0
- package/sdk/ios/usr/include/mach/vm_region.h +43 -0
- package/sdk/ios/usr/include/mach/vm_statistics.h +491 -0
- package/sdk/ios/usr/include/mach/vm_types.h +8 -0
- package/sdk/ios/usr/include/mach-o/arch.h +21 -0
- package/sdk/ios/usr/include/mach-o/dyld.h +16 -0
- package/sdk/ios/usr/include/mach-o/dyld_images.h +71 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +17 -0
- package/sdk/ios/usr/include/mach-o/loader.h +158 -0
- package/sdk/ios/usr/include/mach-o/nlist.h +38 -0
- package/sdk/ios/usr/include/mach-o/stab.h +33 -0
- package/sdk/ios/usr/include/mach-o/utils.h +10 -0
- package/sdk/ios/usr/include/machine/_endian.h +42 -0
- package/sdk/ios/usr/include/machine/_mcontext.h +39 -0
- package/sdk/ios/usr/include/machine/_param.h +39 -0
- package/sdk/ios/usr/include/machine/_types.h +39 -0
- package/sdk/ios/usr/include/machine/endian.h +42 -0
- package/sdk/ios/usr/include/machine/signal.h +39 -0
- package/sdk/ios/usr/include/machine/types.h +42 -0
- package/sdk/ios/usr/include/math.h +5 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if.h +20 -0
- package/sdk/ios/usr/include/net/if_dl.h +10 -0
- package/sdk/ios/usr/include/net/if_var.h +15 -0
- package/sdk/ios/usr/include/net/net_kev.h +100 -0
- package/sdk/ios/usr/include/netdb.h +5 -0
- package/sdk/ios/usr/include/netinet/in.h +670 -0
- package/sdk/ios/usr/include/netinet6/in6.h +676 -0
- package/sdk/ios/usr/include/notify.h +45 -0
- package/sdk/ios/usr/include/notify_keys.h +17 -0
- package/sdk/ios/usr/include/objc/NSObject.h +79 -0
- package/sdk/ios/usr/include/os/availability.h +140 -0
- package/sdk/ios/usr/include/os/lock.h +24 -0
- package/sdk/ios/usr/include/os/log.h +77 -0
- package/sdk/ios/usr/include/os/object.h +13 -0
- package/sdk/ios/usr/include/peach/darwin.h +6 -0
- package/sdk/ios/usr/include/peach/netdb.h +316 -0
- package/sdk/ios/usr/include/peach/pthread.h +19 -0
- package/sdk/ios/usr/include/pthread.h +4 -0
- package/sdk/ios/usr/include/secure/_common.h +45 -0
- package/sdk/ios/usr/include/secure/_stdio.h +130 -0
- package/sdk/ios/usr/include/signal.h +132 -0
- package/sdk/ios/usr/include/stdint.h +205 -0
- package/sdk/ios/usr/include/stdio.h +65 -0
- package/sdk/ios/usr/include/stdlib.h +17 -0
- package/sdk/ios/usr/include/string.h +8 -0
- package/sdk/ios/usr/include/sys/__endian.h +108 -0
- package/sdk/ios/usr/include/sys/_endian.h +152 -0
- package/sdk/ios/usr/include/sys/_posix_availability.h +73 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_attr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_types.h +120 -0
- package/sdk/ios/usr/include/sys/_symbol_aliasing.h +1093 -0
- package/sdk/ios/usr/include/sys/_types/_errno_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_filesec_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_gid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_addr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_port_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_intptr_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_iovec_t.h +35 -0
- package/sdk/ios/usr/include/sys/_types/_mode_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_null.h +54 -0
- package/sdk/ios/usr/include/sys/_types/_o_dsync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_o_sync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_off_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_pid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ptrdiff_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_s_ifmt.h +74 -0
- package/sdk/ios/usr/include/sys/_types/_sa_family_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_seek_set.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_sigaltstack.h +50 -0
- package/sdk/ios/usr/include/sys/_types/_sigset_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_size_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_socklen_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ssize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timespec.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_timeval32.h +3 -0
- package/sdk/ios/usr/include/sys/_types/_u_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_ucontext.h +59 -0
- package/sdk/ios/usr/include/sys/_types/_uid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uintptr_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_va_list.h +49 -0
- package/sdk/ios/usr/include/sys/_types/_wchar_t.h +59 -0
- package/sdk/ios/usr/include/sys/_types.h +103 -0
- package/sdk/ios/usr/include/sys/appleapiopts.h +61 -0
- package/sdk/ios/usr/include/sys/cdefs.h +341 -0
- package/sdk/ios/usr/include/sys/constrained_ctypes.h +622 -0
- package/sdk/ios/usr/include/sys/dirent.h +141 -0
- package/sdk/ios/usr/include/sys/errno.h +271 -0
- package/sdk/ios/usr/include/sys/fcntl.h +649 -0
- package/sdk/ios/usr/include/sys/mman.h +273 -0
- package/sdk/ios/usr/include/sys/proc.h +65 -0
- package/sdk/ios/usr/include/sys/qos.h +61 -0
- package/sdk/ios/usr/include/sys/signal.h +394 -0
- package/sdk/ios/usr/include/sys/socket.h +752 -0
- package/sdk/ios/usr/include/sys/stdio.h +61 -0
- package/sdk/ios/usr/include/sys/sysctl.h +74 -0
- package/sdk/ios/usr/include/sys/syslimits.h +11 -0
- package/sdk/ios/usr/include/sys/time.h +5 -0
- package/sdk/ios/usr/include/sys/types.h +21 -0
- package/sdk/ios/usr/include/sys/ucontext.h +41 -0
- package/sdk/ios/usr/include/sys/xattr.h +50 -0
- package/sdk/ios/usr/include/time.h +2 -0
- package/sdk/ios/usr/include/unistd.h +3 -0
- package/sdk/ios/usr/include/uuid/uuid.h +19 -0
- package/sdk/ios/usr/include/xlocale/_stdio.h +85 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/sdk/ios/wasm/include/dlfcn.h +3 -0
- package/sdk/ios/wasm/include/netdb.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +3 -0
- package/sdk/ios/wasm/include/sys/socket.h +7 -0
- package/sdk/ios/wasm/include/sys/types.h +4 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +38 -0
- package/src/cli-runtime.ts +5 -5
- package/src/conformance-comparison-contract.ts +146 -0
- package/src/conformance-pixel-comparison.ts +327 -0
- package/src/device-catalog.ts +12 -3
- package/src/material-symbol-fonts.ts +107 -0
- package/src/stub-pattern-matcher.ts +4 -0
- package/src/swift-compile.ts +517 -189
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +26 -3
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +47 -11
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -24178
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-standins.ts +2 -2
- package/src/swift-toolchain.ts +36 -0
- package/src/swift-vite-lifetime.ts +42 -0
- package/src/swiftContract.ts +54 -0
- package/src/vite-plugin-one.ts +36 -15
- package/src/vite-plugin-swift.ts +21 -2
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +103 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -3224,19 +3224,28 @@ var require_attempt_events = __commonJS({
|
|
|
3224
3224
|
requireNativeRawFrame
|
|
3225
3225
|
} = require_native_frame_receipt();
|
|
3226
3226
|
const rawRoot = path7.dirname(proofBoundPath(root, native.receipt));
|
|
3227
|
+
const origin = frames[0].consumerArrival;
|
|
3228
|
+
const supersededLines = boundText(
|
|
3229
|
+
root,
|
|
3230
|
+
native.superseded,
|
|
3231
|
+
native.supersededSha256,
|
|
3232
|
+
"native cadence superseded receipt"
|
|
3233
|
+
).split("\n").filter(Boolean);
|
|
3227
3234
|
const superseded = new Set(
|
|
3228
|
-
|
|
3229
|
-
root,
|
|
3230
|
-
native.superseded,
|
|
3231
|
-
native.supersededSha256,
|
|
3232
|
-
"native cadence superseded receipt"
|
|
3233
|
-
).split("\n").filter(Boolean).map((line) => {
|
|
3235
|
+
supersededLines.map((line) => {
|
|
3234
3236
|
const row = JSON.parse(line);
|
|
3235
|
-
|
|
3237
|
+
const uint32 = (value) => Number.isInteger(value) && value >= 0 && value <= 4294967295;
|
|
3238
|
+
const ticks = (value) => typeof value === "string" && /^\d+$/.test(value);
|
|
3239
|
+
const arrival = row.consumerArrival;
|
|
3240
|
+
const window2 = row.readWindow;
|
|
3241
|
+
if (!Number.isSafeInteger(row.callbackIndex) || row.callbackIndex < 0 || !uint32(row.surfaceId) || row.surfaceId < 1 || !uint32(row.seedBeforeRead) || !uint32(row.seedAfterRead) || row.seedBeforeRead === row.seedAfterRead || !Number.isFinite(row.copyMs) || row.copyMs < 0 || arrival?.domain !== origin.domain || arrival.timebaseNumer !== origin.timebaseNumer || arrival.timebaseDenom !== origin.timebaseDenom || arrival.bootSessionUUID !== origin.bootSessionUUID || !ticks(arrival.machTicks) || !ticks(window2?.machStart) || !ticks(window2.machEnd) || !ticks(window2.surfaceAcquired) || !ticks(window2.surfaceLocked) || !Number.isFinite(window2.copyCpuMs) || window2.copyCpuMs < 0 || // the writer stamps arrival, acquire, lock, copy start and copy end in order
|
|
3242
|
+
BigInt(window2.surfaceAcquired) < BigInt(arrival.machTicks) || BigInt(window2.surfaceLocked) < BigInt(window2.surfaceAcquired) || BigInt(window2.machStart) < BigInt(window2.surfaceLocked) || BigInt(window2.machEnd) < BigInt(window2.machStart))
|
|
3236
3243
|
throw new Error("native superseded receipt is not an overwritten read");
|
|
3237
3244
|
return row.callbackIndex;
|
|
3238
3245
|
})
|
|
3239
3246
|
);
|
|
3247
|
+
if (superseded.size !== supersededLines.length)
|
|
3248
|
+
throw new Error("native superseded receipt repeats a callback");
|
|
3240
3249
|
const reads = boundText(
|
|
3241
3250
|
root,
|
|
3242
3251
|
native.reads,
|
|
@@ -3249,7 +3258,6 @@ var require_attempt_events = __commonJS({
|
|
|
3249
3258
|
if (read.callbackIndex !== expectedCallback++)
|
|
3250
3259
|
throw new Error("native cadence observations have invalid callback order");
|
|
3251
3260
|
}
|
|
3252
|
-
const origin = frames[0].consumerArrival;
|
|
3253
3261
|
for (const [index, frame] of frames.entries()) {
|
|
3254
3262
|
const clock = frame.consumerArrival;
|
|
3255
3263
|
if (media[index].sourceFrameIndex !== index || !clock || clock.domain !== "host-mach-absolute-time" || clock.domain !== origin.domain || clock.timebaseNumer !== origin.timebaseNumer || clock.timebaseDenom !== origin.timebaseDenom || !Number.isSafeInteger(clock.timebaseNumer) || clock.timebaseNumer <= 0 || !Number.isSafeInteger(clock.timebaseDenom) || clock.timebaseDenom <= 0)
|
|
@@ -4472,13 +4480,28 @@ async function launchWithPauseAwareDeadline(launch, opts) {
|
|
|
4472
4480
|
if (budget === 0) return launch(opts);
|
|
4473
4481
|
const marker = `--peach-launch-id=${(0, import_node_crypto.randomUUID)()}`;
|
|
4474
4482
|
let expired = false;
|
|
4483
|
+
const cleanupAttempted = [];
|
|
4484
|
+
const lookupFailed = [];
|
|
4485
|
+
let sweepFailure;
|
|
4475
4486
|
const cancel = startLaunchDeadline(budget, () => {
|
|
4476
4487
|
expired = true;
|
|
4477
|
-
|
|
4488
|
+
let children = [];
|
|
4489
|
+
try {
|
|
4490
|
+
children = listProcessChildren([process.pid]);
|
|
4491
|
+
} catch (err) {
|
|
4492
|
+
sweepFailure = err instanceof Error ? err.message : String(err);
|
|
4493
|
+
}
|
|
4494
|
+
for (const pid of children) {
|
|
4495
|
+
let marked;
|
|
4478
4496
|
try {
|
|
4479
|
-
|
|
4497
|
+
marked = processCommand(pid).includes(marker);
|
|
4480
4498
|
} catch {
|
|
4499
|
+
lookupFailed.push(pid);
|
|
4500
|
+
continue;
|
|
4481
4501
|
}
|
|
4502
|
+
if (!marked) continue;
|
|
4503
|
+
cleanupAttempted.push(pid);
|
|
4504
|
+
killTree(pid);
|
|
4482
4505
|
}
|
|
4483
4506
|
});
|
|
4484
4507
|
try {
|
|
@@ -4486,9 +4509,14 @@ async function launchWithPauseAwareDeadline(launch, opts) {
|
|
|
4486
4509
|
return await launch({ ...opts, args: [...args, marker], timeout: 0 });
|
|
4487
4510
|
} catch (err) {
|
|
4488
4511
|
if (!expired) throw err;
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4512
|
+
const observed = [
|
|
4513
|
+
sweepFailure ? `child listing failed: ${sweepFailure}` : cleanupAttempted.length > 0 ? `marked child pid(s) ${cleanupAttempted.join(", ")} observed, kill attempted (outcome not checked)` : lookupFailed.length > 0 ? "no marked child confirmed" : "no marked child observed",
|
|
4514
|
+
lookupFailed.length > 0 ? `command lookup failed for pid(s) ${lookupFailed.join(", ")}, ownership unknown` : void 0
|
|
4515
|
+
].filter(Boolean).join("; ");
|
|
4516
|
+
throw new Error(
|
|
4517
|
+
`[reap-browser] browser launch timed out after ${budget}ms; ${observed}`,
|
|
4518
|
+
{ cause: err }
|
|
4519
|
+
);
|
|
4492
4520
|
} finally {
|
|
4493
4521
|
cancel();
|
|
4494
4522
|
}
|
|
@@ -4614,7 +4642,7 @@ var import_node_module = require("node:module");
|
|
|
4614
4642
|
var import_node_path2 = require("node:path");
|
|
4615
4643
|
|
|
4616
4644
|
// runtime-companion.json
|
|
4617
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
4645
|
+
var runtime_companion_default = { abi: 1, sha256: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
|
|
4618
4646
|
|
|
4619
4647
|
// src/runtime-assets.ts
|
|
4620
4648
|
var import_fs = __toESM(require("fs"), 1);
|
|
@@ -4705,11 +4733,11 @@ function verifyCliCompanion(root) {
|
|
|
4705
4733
|
let bytes;
|
|
4706
4734
|
try {
|
|
4707
4735
|
bytes = (0, import_node_fs4.readFileSync)(file);
|
|
4708
|
-
} catch (
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4736
|
+
} catch (error) {
|
|
4737
|
+
if (error instanceof Error) {
|
|
4738
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}`;
|
|
4739
|
+
}
|
|
4740
|
+
throw error;
|
|
4713
4741
|
}
|
|
4714
4742
|
const hash = (0, import_node_crypto2.createHash)("sha256").update(bytes).digest("hex");
|
|
4715
4743
|
if (hash !== runtime_companion_default.sha256) {
|
|
@@ -5424,13 +5452,13 @@ async function waitForSootsimIdle({
|
|
|
5424
5452
|
hierarchy = null
|
|
5425
5453
|
}
|
|
5426
5454
|
const nodes = []
|
|
5427
|
-
const
|
|
5428
|
-
const
|
|
5429
|
-
if (
|
|
5455
|
+
const LOADING_TEXT_REGEX = /^(creating webview|loading html|fetching bundle|waiting for first render|starting preview|loading simulator|fetching app code|waiting for native preview|starting design|loading canvas|fetching screens|painting the canvas|waiting for webview|waiting for preview|waiting for canvas|preview stalled)/i
|
|
5456
|
+
const noteLoading = (state, text) => {
|
|
5457
|
+
if (state?.busy === true) {
|
|
5430
5458
|
webViewStarting = true
|
|
5431
|
-
if (!webViewBlocker) webViewBlocker = '
|
|
5459
|
+
if (!webViewBlocker) webViewBlocker = 'accessibility busy state active'
|
|
5432
5460
|
}
|
|
5433
|
-
if (typeof text === 'string' &&
|
|
5461
|
+
if (typeof text === 'string' && LOADING_TEXT_REGEX.test(text.trim())) {
|
|
5434
5462
|
webViewStarting = true
|
|
5435
5463
|
if (!webViewBlocker) webViewBlocker = 'webView startup in progress ("' + text.trim() + '")'
|
|
5436
5464
|
}
|
|
@@ -5446,8 +5474,8 @@ async function waitForSootsimIdle({
|
|
|
5446
5474
|
const abs = n.backgroundPlayback ? layout : n.absolute || n.absolutePosition || layout
|
|
5447
5475
|
nodes.push(Math.round(abs.x) + ',' + Math.round(abs.y) + ',' + Math.round(layout.width))
|
|
5448
5476
|
}
|
|
5449
|
-
|
|
5450
|
-
n.
|
|
5477
|
+
noteLoading(
|
|
5478
|
+
n.accessibilityState,
|
|
5451
5479
|
typeof n.text === 'string' ? n.text : '',
|
|
5452
5480
|
)
|
|
5453
5481
|
}
|
|
@@ -5458,8 +5486,8 @@ async function waitForSootsimIdle({
|
|
|
5458
5486
|
if (n.layout && n.layout.width > 0) {
|
|
5459
5487
|
nodes.push(Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width))
|
|
5460
5488
|
}
|
|
5461
|
-
|
|
5462
|
-
n.
|
|
5489
|
+
noteLoading(
|
|
5490
|
+
n.props?.accessibilityState,
|
|
5463
5491
|
n.textContent || (typeof n.props?.children === 'string' ? n.props.children : ''),
|
|
5464
5492
|
)
|
|
5465
5493
|
for (const c of n.children || []) walk(c)
|
|
@@ -5468,12 +5496,15 @@ async function waitForSootsimIdle({
|
|
|
5468
5496
|
}
|
|
5469
5497
|
}
|
|
5470
5498
|
if (!webViewStarting && typeof document !== 'undefined') {
|
|
5471
|
-
const
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5499
|
+
const busyEl = [...document.querySelectorAll('[aria-busy="true"]')].find((element) => {
|
|
5500
|
+
const bounds = element.getBoundingClientRect()
|
|
5501
|
+
return element.checkVisibility({ checkOpacity: true, checkVisibilityCSS: true }) &&
|
|
5502
|
+
bounds.width > 0 && bounds.height > 0 && bounds.right > 0 && bounds.bottom > 0 &&
|
|
5503
|
+
bounds.left < window.innerWidth && bounds.top < window.innerHeight
|
|
5504
|
+
})
|
|
5505
|
+
if (busyEl) {
|
|
5475
5506
|
webViewStarting = true
|
|
5476
|
-
webViewBlocker = '
|
|
5507
|
+
webViewBlocker = 'accessibility busy element displayed'
|
|
5477
5508
|
} else {
|
|
5478
5509
|
// a loading document with no area (an app's hidden worker or
|
|
5479
5510
|
// executor frame) paints nothing, and a screenshot on device
|
|
@@ -8491,6 +8522,8 @@ function readCurrentTarget() {
|
|
|
8491
8522
|
const plane = Reflect.get(parsed, "plane");
|
|
8492
8523
|
const simId = Reflect.get(parsed, "simId");
|
|
8493
8524
|
const updatedAt = Reflect.get(parsed, "updatedAt");
|
|
8525
|
+
const rawPort = Reflect.get(parsed, "bridgePort");
|
|
8526
|
+
const bridgePort = typeof rawPort === "number" && Number.isInteger(rawPort) && rawPort > 0 ? rawPort : void 0;
|
|
8494
8527
|
if (version !== 1 && version !== CURRENT_SIM_VERSION || version === CURRENT_SIM_VERSION && plane !== "local" || typeof simId !== "string" || !simId.trim() || typeof updatedAt !== "string") {
|
|
8495
8528
|
(0, import_fs3.rmSync)(filepath, { force: true });
|
|
8496
8529
|
return null;
|
|
@@ -8499,6 +8532,7 @@ function readCurrentTarget() {
|
|
|
8499
8532
|
version: CURRENT_SIM_VERSION,
|
|
8500
8533
|
plane: "local",
|
|
8501
8534
|
simId: simId.trim(),
|
|
8535
|
+
...bridgePort === void 0 ? {} : { bridgePort },
|
|
8502
8536
|
updatedAt
|
|
8503
8537
|
};
|
|
8504
8538
|
if (version === 1) writeSecureJsonAtomic(filepath, target);
|
|
@@ -8511,16 +8545,20 @@ function readCurrentTarget() {
|
|
|
8511
8545
|
function readCurrentSimId() {
|
|
8512
8546
|
return readCurrentTarget()?.simId ?? null;
|
|
8513
8547
|
}
|
|
8514
|
-
function
|
|
8548
|
+
function writeCurrentSim(simId, bridgePort) {
|
|
8515
8549
|
const normalized = simId.trim();
|
|
8516
8550
|
if (!normalized) return;
|
|
8517
8551
|
writeSecureJsonAtomic(getCurrentSimPath(), {
|
|
8518
8552
|
version: CURRENT_SIM_VERSION,
|
|
8519
8553
|
plane: "local",
|
|
8520
8554
|
simId: normalized,
|
|
8555
|
+
...bridgePort === void 0 ? {} : { bridgePort },
|
|
8521
8556
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
8522
8557
|
});
|
|
8523
8558
|
}
|
|
8559
|
+
function saveCurrentSimId(simId, bridgePort) {
|
|
8560
|
+
writeCurrentSim(simId, bridgePort);
|
|
8561
|
+
}
|
|
8524
8562
|
function assertNoPendingOpen() {
|
|
8525
8563
|
if (!isOpenPending()) return;
|
|
8526
8564
|
throw new Error(
|
|
@@ -8708,7 +8746,16 @@ function createBridge(wsPort, opts = {}) {
|
|
|
8708
8746
|
const ownerPid = getStableOwnerPid();
|
|
8709
8747
|
let terminalError;
|
|
8710
8748
|
const ready = new Promise((resolve3, reject) => {
|
|
8749
|
+
const handshakeTimer = setTimeout(() => {
|
|
8750
|
+
reject(
|
|
8751
|
+
new Error(
|
|
8752
|
+
`${bridgeWsUrl(wsPort)} accepted the connection but did not complete the websocket handshake within ${commandTimeoutMs / 1e3}s; is it a peach bridge?`
|
|
8753
|
+
)
|
|
8754
|
+
);
|
|
8755
|
+
ws.terminate();
|
|
8756
|
+
}, commandTimeoutMs);
|
|
8711
8757
|
ws.on("open", () => {
|
|
8758
|
+
clearTimeout(handshakeTimer);
|
|
8712
8759
|
try {
|
|
8713
8760
|
ws.send(
|
|
8714
8761
|
JSON.stringify({
|
|
@@ -8730,6 +8777,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
8730
8777
|
resolve3();
|
|
8731
8778
|
});
|
|
8732
8779
|
ws.on("close", (code, reason) => {
|
|
8780
|
+
clearTimeout(handshakeTimer);
|
|
8733
8781
|
const message = reason?.toString() || "connection closed";
|
|
8734
8782
|
terminalError = new Error(`sim disconnected: ${message} (code ${code})`);
|
|
8735
8783
|
reject(terminalError);
|
|
@@ -8739,6 +8787,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
8739
8787
|
}
|
|
8740
8788
|
});
|
|
8741
8789
|
ws.on("error", (err) => {
|
|
8790
|
+
clearTimeout(handshakeTimer);
|
|
8742
8791
|
const cause = err.message ? `: ${err.message}` : "";
|
|
8743
8792
|
reject(
|
|
8744
8793
|
new Error(
|
|
@@ -8891,7 +8940,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
8891
8940
|
});
|
|
8892
8941
|
const successor = pickReloadedTarget(simsForRecovery, sentSimId);
|
|
8893
8942
|
if (successor) {
|
|
8894
|
-
saveCurrentSimId(successor);
|
|
8943
|
+
saveCurrentSimId(successor, wsPort);
|
|
8895
8944
|
process.stderr.write(
|
|
8896
8945
|
` note: sim ${sentSimId} reloaded and reconnected as ${successor}; following it
|
|
8897
8946
|
`
|
|
@@ -11703,7 +11752,6 @@ var device = {
|
|
|
11703
11752
|
const result = await session.send("Page.captureScreenshot", {
|
|
11704
11753
|
format: "png",
|
|
11705
11754
|
fromSurface: true,
|
|
11706
|
-
captureBeyondViewport: true,
|
|
11707
11755
|
clip
|
|
11708
11756
|
});
|
|
11709
11757
|
return { dataUrl: "data:image/png;base64," + result.data, originX, originY };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1667 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|