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 __create = Object.create;
|
|
@@ -3782,7 +3782,7 @@ var import_node_module = require("node:module");
|
|
|
3782
3782
|
var import_node_path3 = require("node:path");
|
|
3783
3783
|
|
|
3784
3784
|
// runtime-companion.json
|
|
3785
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
3785
|
+
var runtime_companion_default = { abi: 1, sha256: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
|
|
3786
3786
|
|
|
3787
3787
|
// src/runtime-assets.ts
|
|
3788
3788
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
@@ -3868,11 +3868,11 @@ function verifyCliCompanion(root) {
|
|
|
3868
3868
|
let bytes;
|
|
3869
3869
|
try {
|
|
3870
3870
|
bytes = (0, import_node_fs3.readFileSync)(file);
|
|
3871
|
-
} catch (
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3871
|
+
} catch (error) {
|
|
3872
|
+
if (error instanceof Error) {
|
|
3873
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}`;
|
|
3874
|
+
}
|
|
3875
|
+
throw error;
|
|
3876
3876
|
}
|
|
3877
3877
|
const hash = (0, import_node_crypto.createHash)("sha256").update(bytes).digest("hex");
|
|
3878
3878
|
if (hash !== runtime_companion_default.sha256) {
|
|
@@ -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 __create = Object.create;
|
|
@@ -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/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;
|
|
@@ -91,7 +91,7 @@ var init_bundleGlobalFooter = __esm({
|
|
|
91
91
|
var runtime_companion_default;
|
|
92
92
|
var init_runtime_companion = __esm({
|
|
93
93
|
"runtime-companion.json"() {
|
|
94
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
94
|
+
runtime_companion_default = { abi: 1, sha256: "f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5", file: "node/cli-f8112e72d9130f18700ad5452a0c7c15668e92fea21944e00893a85694924cb5.cjs" };
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
97
|
|
|
@@ -462,11 +462,11 @@ function verifyCliCompanion(root) {
|
|
|
462
462
|
let bytes;
|
|
463
463
|
try {
|
|
464
464
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
465
|
-
} catch (
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
465
|
+
} catch (error) {
|
|
466
|
+
if (error instanceof Error) {
|
|
467
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}`;
|
|
468
|
+
}
|
|
469
|
+
throw error;
|
|
470
470
|
}
|
|
471
471
|
const hash = (0, import_node_crypto.createHash)("sha256").update(bytes).digest("hex");
|
|
472
472
|
if (hash !== runtime_companion_default.sha256) {
|
|
@@ -7345,6 +7345,8 @@ function readCurrentTarget() {
|
|
|
7345
7345
|
const plane = Reflect.get(parsed, "plane");
|
|
7346
7346
|
const simId = Reflect.get(parsed, "simId");
|
|
7347
7347
|
const updatedAt = Reflect.get(parsed, "updatedAt");
|
|
7348
|
+
const rawPort = Reflect.get(parsed, "bridgePort");
|
|
7349
|
+
const bridgePort = typeof rawPort === "number" && Number.isInteger(rawPort) && rawPort > 0 ? rawPort : void 0;
|
|
7348
7350
|
if (version !== 1 && version !== CURRENT_SIM_VERSION || version === CURRENT_SIM_VERSION && plane !== "local" || typeof simId !== "string" || !simId.trim() || typeof updatedAt !== "string") {
|
|
7349
7351
|
(0, import_fs3.rmSync)(filepath, { force: true });
|
|
7350
7352
|
return null;
|
|
@@ -7353,6 +7355,7 @@ function readCurrentTarget() {
|
|
|
7353
7355
|
version: CURRENT_SIM_VERSION,
|
|
7354
7356
|
plane: "local",
|
|
7355
7357
|
simId: simId.trim(),
|
|
7358
|
+
...bridgePort === void 0 ? {} : { bridgePort },
|
|
7356
7359
|
updatedAt
|
|
7357
7360
|
};
|
|
7358
7361
|
if (version === 1) writeSecureJsonAtomic(filepath, target);
|
|
@@ -7365,16 +7368,20 @@ function readCurrentTarget() {
|
|
|
7365
7368
|
function readCurrentSimId() {
|
|
7366
7369
|
return readCurrentTarget()?.simId ?? null;
|
|
7367
7370
|
}
|
|
7368
|
-
function
|
|
7371
|
+
function writeCurrentSim(simId, bridgePort) {
|
|
7369
7372
|
const normalized = simId.trim();
|
|
7370
7373
|
if (!normalized) return;
|
|
7371
7374
|
writeSecureJsonAtomic(getCurrentSimPath(), {
|
|
7372
7375
|
version: CURRENT_SIM_VERSION,
|
|
7373
7376
|
plane: "local",
|
|
7374
7377
|
simId: normalized,
|
|
7378
|
+
...bridgePort === void 0 ? {} : { bridgePort },
|
|
7375
7379
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
7376
7380
|
});
|
|
7377
7381
|
}
|
|
7382
|
+
function saveCurrentSimId(simId, bridgePort) {
|
|
7383
|
+
writeCurrentSim(simId, bridgePort);
|
|
7384
|
+
}
|
|
7378
7385
|
function assertNoPendingOpen() {
|
|
7379
7386
|
if (!isOpenPending()) return;
|
|
7380
7387
|
throw new Error(
|
|
@@ -7752,7 +7759,16 @@ function createBridge(wsPort, opts = {}) {
|
|
|
7752
7759
|
const ownerPid = getStableOwnerPid();
|
|
7753
7760
|
let terminalError;
|
|
7754
7761
|
const ready = new Promise((resolve4, reject) => {
|
|
7762
|
+
const handshakeTimer = setTimeout(() => {
|
|
7763
|
+
reject(
|
|
7764
|
+
new Error(
|
|
7765
|
+
`${bridgeWsUrl(wsPort)} accepted the connection but did not complete the websocket handshake within ${commandTimeoutMs / 1e3}s; is it a peach bridge?`
|
|
7766
|
+
)
|
|
7767
|
+
);
|
|
7768
|
+
ws.terminate();
|
|
7769
|
+
}, commandTimeoutMs);
|
|
7755
7770
|
ws.on("open", () => {
|
|
7771
|
+
clearTimeout(handshakeTimer);
|
|
7756
7772
|
try {
|
|
7757
7773
|
ws.send(
|
|
7758
7774
|
JSON.stringify({
|
|
@@ -7774,6 +7790,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
7774
7790
|
resolve4();
|
|
7775
7791
|
});
|
|
7776
7792
|
ws.on("close", (code, reason) => {
|
|
7793
|
+
clearTimeout(handshakeTimer);
|
|
7777
7794
|
const message = reason?.toString() || "connection closed";
|
|
7778
7795
|
terminalError = new Error(`sim disconnected: ${message} (code ${code})`);
|
|
7779
7796
|
reject(terminalError);
|
|
@@ -7783,6 +7800,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
7783
7800
|
}
|
|
7784
7801
|
});
|
|
7785
7802
|
ws.on("error", (err) => {
|
|
7803
|
+
clearTimeout(handshakeTimer);
|
|
7786
7804
|
const cause = err.message ? `: ${err.message}` : "";
|
|
7787
7805
|
reject(
|
|
7788
7806
|
new Error(
|
|
@@ -7935,7 +7953,7 @@ function createBridge(wsPort, opts = {}) {
|
|
|
7935
7953
|
});
|
|
7936
7954
|
const successor = pickReloadedTarget(simsForRecovery, sentSimId);
|
|
7937
7955
|
if (successor) {
|
|
7938
|
-
saveCurrentSimId(successor);
|
|
7956
|
+
saveCurrentSimId(successor, wsPort);
|
|
7939
7957
|
process.stderr.write(
|
|
7940
7958
|
` note: sim ${sentSimId} reloaded and reconnected as ${successor}; following it
|
|
7941
7959
|
`
|
|
@@ -9339,13 +9357,13 @@ async function waitForSootsimIdle({
|
|
|
9339
9357
|
hierarchy = null
|
|
9340
9358
|
}
|
|
9341
9359
|
const nodes = []
|
|
9342
|
-
const
|
|
9343
|
-
const
|
|
9344
|
-
if (
|
|
9360
|
+
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
|
|
9361
|
+
const noteLoading = (state, text) => {
|
|
9362
|
+
if (state?.busy === true) {
|
|
9345
9363
|
webViewStarting = true
|
|
9346
|
-
if (!webViewBlocker) webViewBlocker = '
|
|
9364
|
+
if (!webViewBlocker) webViewBlocker = 'accessibility busy state active'
|
|
9347
9365
|
}
|
|
9348
|
-
if (typeof text === 'string' &&
|
|
9366
|
+
if (typeof text === 'string' && LOADING_TEXT_REGEX.test(text.trim())) {
|
|
9349
9367
|
webViewStarting = true
|
|
9350
9368
|
if (!webViewBlocker) webViewBlocker = 'webView startup in progress ("' + text.trim() + '")'
|
|
9351
9369
|
}
|
|
@@ -9361,8 +9379,8 @@ async function waitForSootsimIdle({
|
|
|
9361
9379
|
const abs = n.backgroundPlayback ? layout : n.absolute || n.absolutePosition || layout
|
|
9362
9380
|
nodes.push(Math.round(abs.x) + ',' + Math.round(abs.y) + ',' + Math.round(layout.width))
|
|
9363
9381
|
}
|
|
9364
|
-
|
|
9365
|
-
n.
|
|
9382
|
+
noteLoading(
|
|
9383
|
+
n.accessibilityState,
|
|
9366
9384
|
typeof n.text === 'string' ? n.text : '',
|
|
9367
9385
|
)
|
|
9368
9386
|
}
|
|
@@ -9373,8 +9391,8 @@ async function waitForSootsimIdle({
|
|
|
9373
9391
|
if (n.layout && n.layout.width > 0) {
|
|
9374
9392
|
nodes.push(Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width))
|
|
9375
9393
|
}
|
|
9376
|
-
|
|
9377
|
-
n.
|
|
9394
|
+
noteLoading(
|
|
9395
|
+
n.props?.accessibilityState,
|
|
9378
9396
|
n.textContent || (typeof n.props?.children === 'string' ? n.props.children : ''),
|
|
9379
9397
|
)
|
|
9380
9398
|
for (const c of n.children || []) walk(c)
|
|
@@ -9383,12 +9401,15 @@ async function waitForSootsimIdle({
|
|
|
9383
9401
|
}
|
|
9384
9402
|
}
|
|
9385
9403
|
if (!webViewStarting && typeof document !== 'undefined') {
|
|
9386
|
-
const
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9404
|
+
const busyEl = [...document.querySelectorAll('[aria-busy="true"]')].find((element) => {
|
|
9405
|
+
const bounds = element.getBoundingClientRect()
|
|
9406
|
+
return element.checkVisibility({ checkOpacity: true, checkVisibilityCSS: true }) &&
|
|
9407
|
+
bounds.width > 0 && bounds.height > 0 && bounds.right > 0 && bounds.bottom > 0 &&
|
|
9408
|
+
bounds.left < window.innerWidth && bounds.top < window.innerHeight
|
|
9409
|
+
})
|
|
9410
|
+
if (busyEl) {
|
|
9390
9411
|
webViewStarting = true
|
|
9391
|
-
webViewBlocker = '
|
|
9412
|
+
webViewBlocker = 'accessibility busy element displayed'
|
|
9392
9413
|
} else {
|
|
9393
9414
|
// a loading document with no area (an app's hidden worker or
|
|
9394
9415
|
// executor frame) paints nothing, and a screenshot on device
|
|
@@ -14221,6 +14242,39 @@ async function configuredOneWidget(appRoot, bundleUrl) {
|
|
|
14221
14242
|
// src/vite-plugin-one.ts
|
|
14222
14243
|
init_runtime_assets();
|
|
14223
14244
|
init_swift_submit();
|
|
14245
|
+
|
|
14246
|
+
// src/swift-vite-lifetime.ts
|
|
14247
|
+
var LIFETIME = Symbol.for("peach.swift-vite-lifetime");
|
|
14248
|
+
function swiftViteLifetime(server) {
|
|
14249
|
+
const existing = server[LIFETIME];
|
|
14250
|
+
if (existing && !existing.signal.aborted) return existing;
|
|
14251
|
+
const controller = new AbortController();
|
|
14252
|
+
const compiles = /* @__PURE__ */ new Set();
|
|
14253
|
+
const projects = /* @__PURE__ */ new Set();
|
|
14254
|
+
let closing;
|
|
14255
|
+
const lifetime = {
|
|
14256
|
+
signal: controller.signal,
|
|
14257
|
+
compiles,
|
|
14258
|
+
projects,
|
|
14259
|
+
close() {
|
|
14260
|
+
closing ??= (async () => {
|
|
14261
|
+
controller.abort(new Error("Swift dev server closed"));
|
|
14262
|
+
await Promise.allSettled(compiles);
|
|
14263
|
+
if (projects.size > 0) {
|
|
14264
|
+
const host = await import("peachsim/vite-swift");
|
|
14265
|
+
for (const packagePath of projects)
|
|
14266
|
+
host.disposeSwiftProject(packagePath, controller.signal);
|
|
14267
|
+
projects.clear();
|
|
14268
|
+
}
|
|
14269
|
+
})();
|
|
14270
|
+
return closing;
|
|
14271
|
+
}
|
|
14272
|
+
};
|
|
14273
|
+
server[LIFETIME] = lifetime;
|
|
14274
|
+
return lifetime;
|
|
14275
|
+
}
|
|
14276
|
+
|
|
14277
|
+
// src/vite-plugin-one.ts
|
|
14224
14278
|
function exposeHeader(res, name2) {
|
|
14225
14279
|
const exposed = res.getHeader("access-control-expose-headers");
|
|
14226
14280
|
const names = typeof exposed === "string" && exposed ? exposed.split(/,\s*/) : [];
|
|
@@ -14236,6 +14290,7 @@ var kotlinHost;
|
|
|
14236
14290
|
var loadKotlinHost = () => kotlinHost ??= import("peachsim/kotlin-host");
|
|
14237
14291
|
function peachPlugin(options = {}) {
|
|
14238
14292
|
const prefix2 = options.prefix || "/__peachsim";
|
|
14293
|
+
let closeSwiftHost;
|
|
14239
14294
|
return {
|
|
14240
14295
|
name: "sootsim-one",
|
|
14241
14296
|
api: {
|
|
@@ -14267,8 +14322,14 @@ function peachPlugin(options = {}) {
|
|
|
14267
14322
|
config() {
|
|
14268
14323
|
return { optimizeDeps: { include: ["use-latest-callback"] } };
|
|
14269
14324
|
},
|
|
14325
|
+
async closeBundle() {
|
|
14326
|
+
await closeSwiftHost?.();
|
|
14327
|
+
},
|
|
14270
14328
|
async configureServer(server) {
|
|
14271
14329
|
if (options.enabled === false) return;
|
|
14330
|
+
const lifetime = swiftViteLifetime(server);
|
|
14331
|
+
const { signal, compiles: swiftCompiles, projects: swiftProjects } = lifetime;
|
|
14332
|
+
closeSwiftHost = () => lifetime.close();
|
|
14272
14333
|
server.middlewares.use((req, res, next) => {
|
|
14273
14334
|
if (!(req.url ?? "").split("?")[0].endsWith(".bundle")) {
|
|
14274
14335
|
next();
|
|
@@ -14361,20 +14422,32 @@ function peachPlugin(options = {}) {
|
|
|
14361
14422
|
return widgetPackage.packagePath;
|
|
14362
14423
|
};
|
|
14363
14424
|
const packageMetadata = async (packageName, moduleRoot) => {
|
|
14364
|
-
const
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
packagePath
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14425
|
+
const pending = (async () => {
|
|
14426
|
+
signal.throwIfAborted();
|
|
14427
|
+
const packagePath = await servedPackage(packageName);
|
|
14428
|
+
if (!packagePath) throw new Error(`swift package ${packageName} was not found`);
|
|
14429
|
+
swiftProjects.add(packagePath);
|
|
14430
|
+
const host = await loadSwiftHost();
|
|
14431
|
+
const metadata = await host.swiftPackageMetadata(
|
|
14432
|
+
packagePath,
|
|
14433
|
+
packageName,
|
|
14434
|
+
moduleRoot,
|
|
14435
|
+
devOrigin(),
|
|
14436
|
+
void 0,
|
|
14437
|
+
signal
|
|
14438
|
+
);
|
|
14439
|
+
return {
|
|
14440
|
+
...metadata,
|
|
14441
|
+
hmrPath,
|
|
14442
|
+
...packageName === host.ONE_WIDGET_PACKAGE && widgetPackage ? { widget: widgetPackage.widget } : {}
|
|
14443
|
+
};
|
|
14444
|
+
})();
|
|
14445
|
+
swiftCompiles.add(pending);
|
|
14446
|
+
try {
|
|
14447
|
+
return await pending;
|
|
14448
|
+
} finally {
|
|
14449
|
+
swiftCompiles.delete(pending);
|
|
14450
|
+
}
|
|
14378
14451
|
};
|
|
14379
14452
|
const wsOptions = server.config.server.ws;
|
|
14380
14453
|
const httpServer = server.httpServer ?? (wsOptions && typeof wsOptions === "object" ? wsOptions.server : void 0);
|
|
@@ -16780,14 +16853,72 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
16780
16853
|
);
|
|
16781
16854
|
for (const file of read) xcconfigs.add(file);
|
|
16782
16855
|
const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
|
|
16783
|
-
const { headers, ...members } = targetMembers(
|
|
16784
|
-
|
|
16785
|
-
|
|
16786
|
-
|
|
16856
|
+
const { headers, allSources, ...members } = targetMembers(
|
|
16857
|
+
ref,
|
|
16858
|
+
settings2,
|
|
16859
|
+
options,
|
|
16860
|
+
keys,
|
|
16861
|
+
xcconfigs
|
|
16787
16862
|
);
|
|
16863
|
+
const searchRules = recursiveSearchRules(settings2);
|
|
16788
16864
|
const absolute = (file) => import_node_path14.default.resolve(ref.project.projectDir, file);
|
|
16789
16865
|
const framework = FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "");
|
|
16790
16866
|
const product = settings2("PRODUCT_NAME");
|
|
16867
|
+
const building = options.prepareGeneratedSources && options.requireSources !== false;
|
|
16868
|
+
const versioning = building && allSources.length > 0 && settings2("VERSIONING_SYSTEM") === "apple-generic" ? import_node_path14.default.join(settings2("DERIVED_FILE_DIR"), `${product}_vers.c`) : null;
|
|
16869
|
+
if (versioning) {
|
|
16870
|
+
const version = settings2("CURRENT_PROJECT_VERSION");
|
|
16871
|
+
const custom = [
|
|
16872
|
+
"VERSION_INFO_FILE",
|
|
16873
|
+
"VERSION_INFO_STRING",
|
|
16874
|
+
"VERSION_INFO_BUILDER",
|
|
16875
|
+
"VERSION_INFO_EXPORT_DECL",
|
|
16876
|
+
"VERSION_INFO_PREFIX",
|
|
16877
|
+
"VERSION_INFO_SUFFIX"
|
|
16878
|
+
].filter((key) => settings2(key));
|
|
16879
|
+
if (!/^\d+$/.test(version) || !/^[A-Za-z_]\w*$/.test(product) || custom.length)
|
|
16880
|
+
throw new Error(
|
|
16881
|
+
`${name2}: Xcode generates ${import_node_path14.default.basename(versioning)} for VERSIONING_SYSTEM=apple-generic; peach writes it only for an integer CURRENT_PROJECT_VERSION (${JSON.stringify(version)}), an identifier PRODUCT_NAME (${JSON.stringify(product)}) and no ${custom.length ? custom.join(", ") : "VERSION_INFO_* override"}`
|
|
16882
|
+
);
|
|
16883
|
+
const unit = [
|
|
16884
|
+
` extern const unsigned char ${product}VersionString[];`,
|
|
16885
|
+
` extern const double ${product}VersionNumber;`,
|
|
16886
|
+
"",
|
|
16887
|
+
` const unsigned char ${product}VersionString[] __attribute__ ((used)) = "@(#)PROGRAM:${product} PROJECT:${settings2("PROJECT_NAME")}-${version}" "\\n";`,
|
|
16888
|
+
` const double ${product}VersionNumber __attribute__ ((used)) = (double)${version}.;`,
|
|
16889
|
+
""
|
|
16890
|
+
].join("\n");
|
|
16891
|
+
if (!import_node_fs14.default.existsSync(versioning) || import_node_fs14.default.readFileSync(versioning, "utf8") !== unit) {
|
|
16892
|
+
import_node_fs14.default.mkdirSync(import_node_path14.default.dirname(versioning), { recursive: true });
|
|
16893
|
+
import_node_fs14.default.writeFileSync(versioning, unit);
|
|
16894
|
+
}
|
|
16895
|
+
allSources.push(versioning);
|
|
16896
|
+
}
|
|
16897
|
+
const implementations = allSources.filter(
|
|
16898
|
+
(file) => /\.(c|cc|cpp|cxx|m|mm)$/.test(file)
|
|
16899
|
+
);
|
|
16900
|
+
const native = implementations.length > 0;
|
|
16901
|
+
if (native && building) {
|
|
16902
|
+
const generatedHeaders = list(ref.target.buildPhases).flatMap((phaseId) => {
|
|
16903
|
+
const phase = ref.project.object(phaseId);
|
|
16904
|
+
return phase?.isa === "PBXShellScriptBuildPhase" ? list(phase.outputPaths).filter((output) => HEADER_FILE.test(output)) : [];
|
|
16905
|
+
});
|
|
16906
|
+
if (generatedHeaders.length > 0 || list(ref.target.buildRules).length > 0)
|
|
16907
|
+
throw new Error(
|
|
16908
|
+
`${name2}: Xcode's generated-files header map, which lists headers its build rules and Run Script phases generate (${generatedHeaders.join(", ") || "build rules"}), is not modeled`
|
|
16909
|
+
);
|
|
16910
|
+
const nonFramework = nativeTargets(ref.project).find(
|
|
16911
|
+
(other) => !FRAMEWORK_PRODUCTS.has(str(other.target.productType) ?? "") && headerPhase(other).length > 0
|
|
16912
|
+
);
|
|
16913
|
+
if (nonFramework && settings2("USE_HEADERMAP") !== "NO")
|
|
16914
|
+
throw new Error(
|
|
16915
|
+
`${name2}: Xcode's all-non-framework-target-headers map, which lists the headers of ${str(nonFramework.target.name) ?? nonFramework.id}, is not modeled`
|
|
16916
|
+
);
|
|
16917
|
+
if (settings2("ALWAYS_SEARCH_USER_PATHS") === "YES" && settings2("USER_HEADER_SEARCH_PATHS").trim())
|
|
16918
|
+
throw new Error(
|
|
16919
|
+
`${name2}: ALWAYS_SEARCH_USER_PATHS=YES also searches USER_HEADER_SEARCH_PATHS for angle-bracket includes, which is not modeled`
|
|
16920
|
+
);
|
|
16921
|
+
}
|
|
16791
16922
|
const headerFiles = headerPhase(ref);
|
|
16792
16923
|
const ownHeaders = /* @__PURE__ */ new Map();
|
|
16793
16924
|
for (const { file, visibility } of headerFiles) {
|
|
@@ -16823,11 +16954,12 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
16823
16954
|
name: name2,
|
|
16824
16955
|
moduleName: applyOperator(settings2("PRODUCT_MODULE_NAME"), "c99extidentifier"),
|
|
16825
16956
|
...members,
|
|
16957
|
+
allSources,
|
|
16826
16958
|
languageMode: swiftVersion >= 6 ? 6 : 5,
|
|
16827
16959
|
mainActorIsolation: settings2("SWIFT_DEFAULT_ACTOR_ISOLATION") === "MainActor",
|
|
16828
16960
|
defines: compilationConditions(settings2),
|
|
16829
16961
|
iosDeploymentTarget: settings2("IPHONEOS_DEPLOYMENT_TARGET") || null,
|
|
16830
|
-
...
|
|
16962
|
+
...native ? {
|
|
16831
16963
|
objc: {
|
|
16832
16964
|
publicHeaders: headerFiles.flatMap(
|
|
16833
16965
|
({ file, visibility }) => visibility === "Public" ? [file] : []
|
|
@@ -16843,10 +16975,23 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
16843
16975
|
],
|
|
16844
16976
|
prefixHeader: settings2("GCC_PREFIX_HEADER") ? absolute(settings2("GCC_PREFIX_HEADER")) : null,
|
|
16845
16977
|
bridgingHeader: settings2("SWIFT_OBJC_BRIDGING_HEADER") ? absolute(settings2("SWIFT_OBJC_BRIDGING_HEADER")) : null,
|
|
16978
|
+
// xcode searches its products' include directory before
|
|
16979
|
+
// HEADER_SEARCH_PATHS and the target's derived sources after.
|
|
16846
16980
|
headerSearchPaths: [
|
|
16847
|
-
|
|
16848
|
-
...settingList(settings2("
|
|
16849
|
-
|
|
16981
|
+
import_node_path14.default.join(settings2("BUILT_PRODUCTS_DIR"), "include"),
|
|
16982
|
+
...settingList(settings2("HEADER_SEARCH_PATHS")).flatMap(
|
|
16983
|
+
(raw) => expandSearchPath(absolute(raw), searchRules)
|
|
16984
|
+
),
|
|
16985
|
+
import_node_path14.default.join(
|
|
16986
|
+
`${settings2("DERIVED_FILE_DIR")}-normal`,
|
|
16987
|
+
settings2("CURRENT_ARCH")
|
|
16988
|
+
),
|
|
16989
|
+
import_node_path14.default.join(settings2("DERIVED_FILE_DIR"), settings2("CURRENT_ARCH")),
|
|
16990
|
+
settings2("DERIVED_FILE_DIR")
|
|
16991
|
+
],
|
|
16992
|
+
userHeaderSearchPaths: settingList(
|
|
16993
|
+
settings2("USER_HEADER_SEARCH_PATHS")
|
|
16994
|
+
).flatMap((raw) => expandSearchPath(absolute(raw), searchRules)),
|
|
16850
16995
|
// xcode searches the target's own products directory first
|
|
16851
16996
|
frameworkSearchPaths: [
|
|
16852
16997
|
settings2("BUILT_PRODUCTS_DIR"),
|
|
@@ -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 __create = Object.create;
|
package/dist-lib/kotlin-host.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;
|
package/dist-lib/menu.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/menu.mjs
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;
|
|
@@ -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;
|
|
@@ -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 __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __esm = (fn, res) => function __init() {
|