peachsim 0.1.1660 → 0.1.1673
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 +8 -1
- package/cli/bridge-flow-runner.ts +6 -3
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/diagnose.ts +1 -19
- 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/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- 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/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +26 -37
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -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 +2581 -27346
- 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 +2752 -4982
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2272 -27004
- 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 +2801 -27484
- 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 +394 -49
- 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 +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +235 -13
- package/dist-lib/native-app-identity-project.cjs +123 -13
- package/dist-lib/native-app-identity-project.mjs +123 -13
- 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 +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +76 -28
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +590 -184
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- 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 +3900 -28409
- package/dist-lib/swift-compile.cjs +1227 -26292
- package/dist-lib/swift-compile.mjs +1156 -26221
- package/dist-lib/swift-package.cjs +34 -4
- package/dist-lib/swift-package.mjs +33 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +52 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2317 -26955
- package/dist-lib/vite.cjs +132 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- 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 +24 -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 +2 -3
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +21 -3
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -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 +11 -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-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -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 +45 -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 -3343
- 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 +665 -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/capabilities.d.ts +1 -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/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +221 -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/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -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/OSByteOrder.h +315 -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/libkern/machine/OSByteOrder.h +147 -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/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -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/host/bridge-host.ts +6 -43
- package/src/launch-deadline.ts +74 -0
- package/src/material-symbol-fonts.ts +107 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +584 -226
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +47 -4
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +238 -38
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -25677
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +46 -4
- package/src/swift-standins.ts +2 -2
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +72 -61
- 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/worker-system-chunks.ts +3 -10
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +108 -14
- package/detox/attempt-events.cjs +0 -884
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1673 | (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;
|
|
@@ -32,11 +32,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
32
32
|
));
|
|
33
33
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
34
|
|
|
35
|
+
// <define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>
|
|
36
|
+
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
37
|
+
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
35
41
|
// runtime-companion.json
|
|
36
42
|
var runtime_companion_default;
|
|
37
43
|
var init_runtime_companion = __esm({
|
|
38
44
|
"runtime-companion.json"() {
|
|
39
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
45
|
+
runtime_companion_default = { abi: 1, sha256: "64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756", file: "node/cli-64b30b73101e38ea8d4aaa3e07f22bdedd2736a7d1f0f21f9229f2f4daf45756.cjs" };
|
|
40
46
|
}
|
|
41
47
|
});
|
|
42
48
|
|
|
@@ -44,6 +50,7 @@ var init_runtime_companion = __esm({
|
|
|
44
50
|
var init_process_group = __esm({
|
|
45
51
|
"src/process-group.ts"() {
|
|
46
52
|
"use strict";
|
|
53
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
47
54
|
}
|
|
48
55
|
});
|
|
49
56
|
|
|
@@ -54,6 +61,7 @@ function isValidRuntimeVersion(value) {
|
|
|
54
61
|
var init_version = __esm({
|
|
55
62
|
"../contrast-runtime-delivery/src/version.ts"() {
|
|
56
63
|
"use strict";
|
|
64
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
57
65
|
}
|
|
58
66
|
});
|
|
59
67
|
|
|
@@ -61,6 +69,7 @@ var init_version = __esm({
|
|
|
61
69
|
var init_product = __esm({
|
|
62
70
|
"../contrast-runtime-delivery/src/product.ts"() {
|
|
63
71
|
"use strict";
|
|
72
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
64
73
|
init_version();
|
|
65
74
|
}
|
|
66
75
|
});
|
|
@@ -69,6 +78,7 @@ var init_product = __esm({
|
|
|
69
78
|
var init_src = __esm({
|
|
70
79
|
"../contrast-runtime-delivery/src/index.ts"() {
|
|
71
80
|
"use strict";
|
|
81
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
72
82
|
init_process_group();
|
|
73
83
|
init_product();
|
|
74
84
|
init_product();
|
|
@@ -134,6 +144,7 @@ var import_node_fs, import_node_os, import_node_path, PEACH_HOME_ENV, ACTIVE_RUN
|
|
|
134
144
|
var init_home_paths = __esm({
|
|
135
145
|
"src/home-paths.ts"() {
|
|
136
146
|
"use strict";
|
|
147
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
137
148
|
import_node_fs = __toESM(require("node:fs"), 1);
|
|
138
149
|
import_node_os = require("node:os");
|
|
139
150
|
import_node_path = __toESM(require("node:path"), 1);
|
|
@@ -292,6 +303,7 @@ var import_fs, import_path, import_url, SOOTSIM_RUNTIME_MISSING_MESSAGE, _monore
|
|
|
292
303
|
var init_runtime_assets = __esm({
|
|
293
304
|
"src/runtime-assets.ts"() {
|
|
294
305
|
"use strict";
|
|
306
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
295
307
|
import_fs = __toESM(require("fs"), 1);
|
|
296
308
|
import_path = __toESM(require("path"), 1);
|
|
297
309
|
import_url = require("url");
|
|
@@ -352,11 +364,11 @@ function verifyCliCompanion(root) {
|
|
|
352
364
|
let bytes;
|
|
353
365
|
try {
|
|
354
366
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
355
|
-
} catch (
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
367
|
+
} catch (error) {
|
|
368
|
+
if (error instanceof Error) {
|
|
369
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}`;
|
|
370
|
+
}
|
|
371
|
+
throw error;
|
|
360
372
|
}
|
|
361
373
|
const hash = (0, import_node_crypto.createHash)("sha256").update(bytes).digest("hex");
|
|
362
374
|
if (hash !== runtime_companion_default.sha256) {
|
|
@@ -384,6 +396,7 @@ var import_node_crypto, import_node_fs2, import_node_module, import_node_path2,
|
|
|
384
396
|
var init_cli_runtime = __esm({
|
|
385
397
|
"src/cli-runtime.ts"() {
|
|
386
398
|
"use strict";
|
|
399
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
387
400
|
import_node_crypto = require("node:crypto");
|
|
388
401
|
import_node_fs2 = require("node:fs");
|
|
389
402
|
import_node_module = require("node:module");
|
|
@@ -401,6 +414,7 @@ __export(vite_plugin_one_exports, {
|
|
|
401
414
|
peachPlugin: () => peachPlugin
|
|
402
415
|
});
|
|
403
416
|
module.exports = __toCommonJS(vite_plugin_one_exports);
|
|
417
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
404
418
|
var import_fs3 = __toESM(require("fs"), 1);
|
|
405
419
|
var import_node_crypto4 = require("node:crypto");
|
|
406
420
|
var import_node_http = __toESM(require("node:http"), 1);
|
|
@@ -410,7 +424,11 @@ var import_path3 = __toESM(require("path"), 1);
|
|
|
410
424
|
var import_promises3 = require("stream/promises");
|
|
411
425
|
var import_ws = require("ws");
|
|
412
426
|
|
|
427
|
+
// src/bridge-constants.ts
|
|
428
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
429
|
+
|
|
413
430
|
// src/simulator-route.ts
|
|
431
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
414
432
|
var PEACH_SIMULATOR_PATH = "/simulator";
|
|
415
433
|
var SIMULATOR_DOCUMENT_PATH = new RegExp(
|
|
416
434
|
`^${PEACH_SIMULATOR_PATH}(?:/(?:rn(?:/[^/]+)?|app/[^/]+|dock/[^/]+))?/?$`
|
|
@@ -426,6 +444,7 @@ var AUTOMATION_SIM_IDLE_REAP_TTL_MS = 5 * 6e4;
|
|
|
426
444
|
init_cli_runtime();
|
|
427
445
|
|
|
428
446
|
// src/dev-server-open.ts
|
|
447
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
429
448
|
var import_node_child_process = require("node:child_process");
|
|
430
449
|
var import_node_crypto2 = require("node:crypto");
|
|
431
450
|
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
@@ -499,16 +518,19 @@ function launchRnxDesktop(bundleUrl, appName) {
|
|
|
499
518
|
init_home_paths();
|
|
500
519
|
|
|
501
520
|
// src/host/replacement-module-handler.ts
|
|
521
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
502
522
|
var import_node_fs4 = require("node:fs");
|
|
503
523
|
var import_promises = __toESM(require("node:fs/promises"), 1);
|
|
504
524
|
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
505
525
|
|
|
506
526
|
// ../contrast-bundler/src/replacementModule.ts
|
|
527
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
507
528
|
var import_dist = require("sucrase/dist/index.js");
|
|
508
529
|
var import_parser = require("sucrase/dist/parser/index.js");
|
|
509
530
|
var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
510
531
|
|
|
511
532
|
// ../contrast-bundler/src/posixPath.ts
|
|
533
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
512
534
|
var sep = "/";
|
|
513
535
|
var delimiter = ":";
|
|
514
536
|
function isAbsolute(p) {
|
|
@@ -810,6 +832,7 @@ function compileReplacementModule(input) {
|
|
|
810
832
|
}
|
|
811
833
|
|
|
812
834
|
// src/backend-origin.ts
|
|
835
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
813
836
|
function normalizeHostname(hostname) {
|
|
814
837
|
return hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
815
838
|
}
|
|
@@ -964,6 +987,7 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
964
987
|
}
|
|
965
988
|
|
|
966
989
|
// src/host/rolldown-bundle-forward.ts
|
|
990
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
967
991
|
var import_stream = require("stream");
|
|
968
992
|
var import_promises2 = require("stream/promises");
|
|
969
993
|
init_cli_runtime();
|
|
@@ -1014,10 +1038,12 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
1014
1038
|
}
|
|
1015
1039
|
|
|
1016
1040
|
// src/installed-package-versions.ts
|
|
1041
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1017
1042
|
var import_fs2 = __toESM(require("fs"), 1);
|
|
1018
1043
|
var import_path2 = __toESM(require("path"), 1);
|
|
1019
1044
|
|
|
1020
1045
|
// ../peach-compat/src/lazy-stub-patterns.ts
|
|
1046
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1021
1047
|
var LAZY_STUB_PATTERNS = [
|
|
1022
1048
|
"@10play/tentap-editor",
|
|
1023
1049
|
"@adobe/react-native-aepcore",
|
|
@@ -1221,7 +1247,11 @@ var LAZY_STUB_PATTERNS = [
|
|
|
1221
1247
|
"voltra"
|
|
1222
1248
|
];
|
|
1223
1249
|
|
|
1250
|
+
// ../peach-compat/src/generated/native-package-names.ts
|
|
1251
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1252
|
+
|
|
1224
1253
|
// ../peach-compat/src/generated/light-native-package-names.ts
|
|
1254
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
1225
1255
|
var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
1226
1256
|
"@100mslive/react-native-hms",
|
|
1227
1257
|
"@account-kit/react-native-signer",
|
|
@@ -3001,7 +3031,11 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
3001
3031
|
"react-native-sectioned-slider"
|
|
3002
3032
|
];
|
|
3003
3033
|
|
|
3034
|
+
// ../peach-compat/src/stub-manifest.ts
|
|
3035
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3036
|
+
|
|
3004
3037
|
// ../peach-compat/src/wrapper-real-packages.ts
|
|
3038
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3005
3039
|
var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
3006
3040
|
expoUiConfirmationDialog: {
|
|
3007
3041
|
specifier: "@peach-internal/expo-ui-confirmation-dialog",
|
|
@@ -3861,6 +3895,7 @@ var COMPAT_STUBS = {
|
|
|
3861
3895
|
};
|
|
3862
3896
|
|
|
3863
3897
|
// src/stub-pattern-matcher.ts
|
|
3898
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3864
3899
|
function extractPackageFromPath(modulePath) {
|
|
3865
3900
|
let nodeModulesIndex = modulePath.lastIndexOf("/node_modules/");
|
|
3866
3901
|
let prefixLength = "/node_modules/".length;
|
|
@@ -4004,6 +4039,7 @@ function readInstalledNativePackageVersions(projectRoot) {
|
|
|
4004
4039
|
}
|
|
4005
4040
|
|
|
4006
4041
|
// src/one-widget-metadata.ts
|
|
4042
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4007
4043
|
var import_node_child_process2 = require("node:child_process");
|
|
4008
4044
|
var import_node_crypto3 = require("node:crypto");
|
|
4009
4045
|
var import_node_fs6 = __toESM(require("node:fs"), 1);
|
|
@@ -4012,13 +4048,21 @@ var import_node_path6 = __toESM(require("node:path"), 1);
|
|
|
4012
4048
|
var import_node_util = require("node:util");
|
|
4013
4049
|
|
|
4014
4050
|
// cli/internal-child.ts
|
|
4051
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4015
4052
|
var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
4016
4053
|
|
|
4017
4054
|
// src/is-record.ts
|
|
4055
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4018
4056
|
function isRecord(value) {
|
|
4019
4057
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
4020
4058
|
}
|
|
4021
4059
|
|
|
4060
|
+
// src/oneWidgetContract.ts
|
|
4061
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4062
|
+
|
|
4063
|
+
// src/native-dev-bundle-url.ts
|
|
4064
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4065
|
+
|
|
4022
4066
|
// src/oneWidgetContract.ts
|
|
4023
4067
|
var HOME_WIDGET_FAMILIES = [
|
|
4024
4068
|
"systemSmall",
|
|
@@ -4031,6 +4075,7 @@ function isHomeWidgetFamily(value) {
|
|
|
4031
4075
|
}
|
|
4032
4076
|
|
|
4033
4077
|
// src/swift-source-file.ts
|
|
4078
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4034
4079
|
var import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
4035
4080
|
var import_node_path5 = __toESM(require("node:path"), 1);
|
|
4036
4081
|
function readPackageFile(root, file, maxBytes) {
|
|
@@ -4075,6 +4120,15 @@ function readPackageFile(root, file, maxBytes) {
|
|
|
4075
4120
|
}
|
|
4076
4121
|
}
|
|
4077
4122
|
|
|
4123
|
+
// src/swift-submit.ts
|
|
4124
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4125
|
+
|
|
4126
|
+
// src/swiftContract.ts
|
|
4127
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4128
|
+
|
|
4129
|
+
// src/assetCatalogContract.ts
|
|
4130
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4131
|
+
|
|
4078
4132
|
// src/swift-submit.ts
|
|
4079
4133
|
var SWIFT_PACKAGE_PATH = "/__peach/swift-package/";
|
|
4080
4134
|
var SWIFT_HMR_PATH = "/__peach/swift-hmr";
|
|
@@ -4246,7 +4300,11 @@ async function configuredOneWidget(appRoot, bundleUrl) {
|
|
|
4246
4300
|
};
|
|
4247
4301
|
}
|
|
4248
4302
|
|
|
4303
|
+
// src/packageVersionsContract.ts
|
|
4304
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4305
|
+
|
|
4249
4306
|
// src/bundleGlobalFooter.ts
|
|
4307
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4250
4308
|
function findBundleFooter(source, prefix) {
|
|
4251
4309
|
let end = source.length;
|
|
4252
4310
|
while (end > 0) {
|
|
@@ -4315,6 +4373,40 @@ function insertPackageVersionsFooter(source, versions) {
|
|
|
4315
4373
|
|
|
4316
4374
|
// src/vite-plugin-one.ts
|
|
4317
4375
|
init_runtime_assets();
|
|
4376
|
+
|
|
4377
|
+
// src/swift-vite-lifetime.ts
|
|
4378
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4379
|
+
var LIFETIME = Symbol.for("peach.swift-vite-lifetime");
|
|
4380
|
+
function swiftViteLifetime(server) {
|
|
4381
|
+
const existing = server[LIFETIME];
|
|
4382
|
+
if (existing && !existing.signal.aborted) return existing;
|
|
4383
|
+
const controller = new AbortController();
|
|
4384
|
+
const compiles = /* @__PURE__ */ new Set();
|
|
4385
|
+
const projects = /* @__PURE__ */ new Set();
|
|
4386
|
+
let closing;
|
|
4387
|
+
const lifetime = {
|
|
4388
|
+
signal: controller.signal,
|
|
4389
|
+
compiles,
|
|
4390
|
+
projects,
|
|
4391
|
+
close() {
|
|
4392
|
+
closing ??= (async () => {
|
|
4393
|
+
controller.abort(new Error("Swift dev server closed"));
|
|
4394
|
+
await Promise.allSettled(compiles);
|
|
4395
|
+
if (projects.size > 0) {
|
|
4396
|
+
const host = await import("peachsim/vite-swift");
|
|
4397
|
+
for (const packagePath of projects)
|
|
4398
|
+
host.disposeSwiftProject(packagePath, controller.signal);
|
|
4399
|
+
projects.clear();
|
|
4400
|
+
}
|
|
4401
|
+
})();
|
|
4402
|
+
return closing;
|
|
4403
|
+
}
|
|
4404
|
+
};
|
|
4405
|
+
server[LIFETIME] = lifetime;
|
|
4406
|
+
return lifetime;
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
// src/vite-plugin-one.ts
|
|
4318
4410
|
function exposeHeader(res, name) {
|
|
4319
4411
|
const exposed = res.getHeader("access-control-expose-headers");
|
|
4320
4412
|
const names = typeof exposed === "string" && exposed ? exposed.split(/,\s*/) : [];
|
|
@@ -4330,6 +4422,7 @@ var kotlinHost;
|
|
|
4330
4422
|
var loadKotlinHost = () => kotlinHost ??= import("peachsim/kotlin-host");
|
|
4331
4423
|
function peachPlugin(options = {}) {
|
|
4332
4424
|
const prefix = options.prefix || "/__peachsim";
|
|
4425
|
+
let closeSwiftHost;
|
|
4333
4426
|
return {
|
|
4334
4427
|
name: "sootsim-one",
|
|
4335
4428
|
api: {
|
|
@@ -4361,8 +4454,14 @@ function peachPlugin(options = {}) {
|
|
|
4361
4454
|
config() {
|
|
4362
4455
|
return { optimizeDeps: { include: ["use-latest-callback"] } };
|
|
4363
4456
|
},
|
|
4457
|
+
async closeBundle() {
|
|
4458
|
+
await closeSwiftHost?.();
|
|
4459
|
+
},
|
|
4364
4460
|
async configureServer(server) {
|
|
4365
4461
|
if (options.enabled === false) return;
|
|
4462
|
+
const lifetime = swiftViteLifetime(server);
|
|
4463
|
+
const { signal, compiles: swiftCompiles, projects: swiftProjects } = lifetime;
|
|
4464
|
+
closeSwiftHost = () => lifetime.close();
|
|
4366
4465
|
server.middlewares.use((req, res, next) => {
|
|
4367
4466
|
if (!(req.url ?? "").split("?")[0].endsWith(".bundle")) {
|
|
4368
4467
|
next();
|
|
@@ -4455,20 +4554,32 @@ function peachPlugin(options = {}) {
|
|
|
4455
4554
|
return widgetPackage.packagePath;
|
|
4456
4555
|
};
|
|
4457
4556
|
const packageMetadata = async (packageName, moduleRoot) => {
|
|
4458
|
-
const
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
packagePath
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4557
|
+
const pending = (async () => {
|
|
4558
|
+
signal.throwIfAborted();
|
|
4559
|
+
const packagePath = await servedPackage(packageName);
|
|
4560
|
+
if (!packagePath) throw new Error(`swift package ${packageName} was not found`);
|
|
4561
|
+
swiftProjects.add(packagePath);
|
|
4562
|
+
const host = await loadSwiftHost();
|
|
4563
|
+
const metadata = await host.swiftPackageMetadata(
|
|
4564
|
+
packagePath,
|
|
4565
|
+
packageName,
|
|
4566
|
+
moduleRoot,
|
|
4567
|
+
devOrigin(),
|
|
4568
|
+
void 0,
|
|
4569
|
+
signal
|
|
4570
|
+
);
|
|
4571
|
+
return {
|
|
4572
|
+
...metadata,
|
|
4573
|
+
hmrPath,
|
|
4574
|
+
...packageName === host.ONE_WIDGET_PACKAGE && widgetPackage ? { widget: widgetPackage.widget } : {}
|
|
4575
|
+
};
|
|
4576
|
+
})();
|
|
4577
|
+
swiftCompiles.add(pending);
|
|
4578
|
+
try {
|
|
4579
|
+
return await pending;
|
|
4580
|
+
} finally {
|
|
4581
|
+
swiftCompiles.delete(pending);
|
|
4582
|
+
}
|
|
4472
4583
|
};
|
|
4473
4584
|
const wsOptions = server.config.server.ws;
|
|
4474
4585
|
const httpServer = server.httpServer ?? (wsOptions && typeof wsOptions === "object" ? wsOptions.server : void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1673 | (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;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type DemoBundlePlatform = 'ios' | 'android';
|
|
2
|
+
export type DemoBundleMode = 'development' | 'production';
|
|
3
|
+
export interface DemoManifestEntry {
|
|
4
|
+
name: string;
|
|
5
|
+
platform: DemoBundlePlatform;
|
|
6
|
+
mode: DemoBundleMode;
|
|
7
|
+
shareId?: string;
|
|
8
|
+
bundleOrigin?: string;
|
|
9
|
+
port: number;
|
|
10
|
+
framework: string;
|
|
11
|
+
projectName: string;
|
|
12
|
+
bundleBytes?: number;
|
|
13
|
+
filesCount?: number;
|
|
14
|
+
uploadedAt?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DemoManifestApp {
|
|
17
|
+
name: string;
|
|
18
|
+
port: number;
|
|
19
|
+
framework: string;
|
|
20
|
+
projectName: string;
|
|
21
|
+
platforms: Partial<Record<DemoBundlePlatform, Partial<Record<DemoBundleMode, DemoManifestEntry>>>>;
|
|
22
|
+
}
|
|
23
|
+
export interface DemoBundleManifest {
|
|
24
|
+
generated: string;
|
|
25
|
+
apps: Record<string, DemoManifestApp>;
|
|
26
|
+
}
|
|
27
|
+
export declare function pickDemoShareEntryFromManifest(manifest: DemoBundleManifest, name: string, platform: DemoBundlePlatform, mode: DemoBundleMode): (DemoManifestEntry & {
|
|
28
|
+
shareId: string;
|
|
29
|
+
}) | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type AppFontWireSpec, type MaterialSymbolFontMetadata } from './config-plugin-fonts.d.ts';
|
|
2
2
|
import { type AppFontFaceStyle, type FontVerticalMetrics } from './font-config.d.ts';
|
|
3
|
+
import type { FontDataPreparationStage } from './fontDataContract.d.ts';
|
|
3
4
|
import type { TypefaceFontProvider } from 'canvaskit-wasm';
|
|
4
5
|
export interface ParsedFontNames {
|
|
5
6
|
family: string;
|
|
@@ -40,6 +41,13 @@ export interface AppFontRegisteredSpec {
|
|
|
40
41
|
materialSymbols?: MaterialSymbolFontMetadata;
|
|
41
42
|
}
|
|
42
43
|
export type AppFontAttemptStage = 'received' | 'provider-unavailable' | 'buffer-missing' | 'signature-invalid' | 'parse-failed' | 'registered' | 'relayed' | 'relay-failed';
|
|
44
|
+
export type AppFontParseOutcome = 'parsed' | 'preparation-failed' | 'decode-failed' | 'names-missing';
|
|
45
|
+
export interface AppFontRefusal {
|
|
46
|
+
parseOutcome: AppFontParseOutcome | null;
|
|
47
|
+
preparationStage: FontDataPreparationStage | null;
|
|
48
|
+
providerActive: boolean;
|
|
49
|
+
registrationGeneration: number;
|
|
50
|
+
}
|
|
43
51
|
export interface AppFontAttempt {
|
|
44
52
|
sequence: number;
|
|
45
53
|
family: string | null;
|
|
@@ -47,12 +55,16 @@ export interface AppFontAttempt {
|
|
|
47
55
|
stage: AppFontAttemptStage;
|
|
48
56
|
receivedAtDateNow: number;
|
|
49
57
|
observedAtDateNow: number;
|
|
58
|
+
refusal: AppFontRefusal | null;
|
|
50
59
|
}
|
|
51
60
|
export declare function beginAppFontAttempt(opts: {
|
|
52
61
|
familyAlias?: string;
|
|
53
62
|
sourceLabel?: string;
|
|
54
63
|
}): number;
|
|
55
|
-
export declare function markAppFontAttempt(sequence: number, stage: AppFontAttemptStage
|
|
64
|
+
export declare function markAppFontAttempt(sequence: number, stage: AppFontAttemptStage, refusal?: {
|
|
65
|
+
parseOutcome: AppFontParseOutcome | null;
|
|
66
|
+
preparationStage: FontDataPreparationStage | null;
|
|
67
|
+
}): void;
|
|
56
68
|
export interface RegisteredAppFontFace {
|
|
57
69
|
data: ArrayBuffer;
|
|
58
70
|
families: string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type SyncReplyBuffer } from '../render-worker/nativeSyncReplyContract.d.ts';
|
|
2
|
+
import type { SootSimClipboardPresence } from '../../../peach-globals/src/index.d.ts';
|
|
3
|
+
export type ClipboardSyncOperation = {
|
|
4
|
+
type: 'read';
|
|
5
|
+
} | {
|
|
6
|
+
type: 'presence';
|
|
7
|
+
} | {
|
|
8
|
+
type: 'write';
|
|
9
|
+
text: string | null;
|
|
10
|
+
};
|
|
11
|
+
export type ClipboardSyncResponse = {
|
|
12
|
+
ok: true;
|
|
13
|
+
text: string | null;
|
|
14
|
+
} | {
|
|
15
|
+
ok: true;
|
|
16
|
+
presence: SootSimClipboardPresence;
|
|
17
|
+
} | {
|
|
18
|
+
ok: false;
|
|
19
|
+
error: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function createClipboardSyncReply(): SharedArrayBuffer;
|
|
22
|
+
export declare function completeClipboardSyncReply(reply: SyncReplyBuffer, response: ClipboardSyncResponse): void;
|
|
23
|
+
export declare function decodeClipboardSyncResponse(response: unknown): string | null;
|
|
24
|
+
export declare function decodeClipboardPresenceResponse(response: unknown): SootSimClipboardPresence;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type FontVariationCoordinate = number | 'nan' | '+infinity' | '-infinity';
|
|
2
|
+
export declare function fontVariationCoordinate(value: number): FontVariationCoordinate;
|
|
3
|
+
export type FontDataPreparationStage = 'fontkit-import' | 'codec-import' | 'codec-fetch' | 'codec-status' | 'codec-body' | 'codec-compile' | 'codec-init' | 'codec-source-custom';
|
|
4
|
+
export interface FontDataDescriptor {
|
|
5
|
+
numberOfGlyphs: number;
|
|
6
|
+
unitsPerEm: number;
|
|
7
|
+
ascent: number;
|
|
8
|
+
descent: number;
|
|
9
|
+
leading: number;
|
|
10
|
+
capHeight: number;
|
|
11
|
+
xHeight: number;
|
|
12
|
+
bbox: number[];
|
|
13
|
+
italicAngle: number;
|
|
14
|
+
postScriptName: string;
|
|
15
|
+
fullName: string;
|
|
16
|
+
tableTags: number[];
|
|
17
|
+
variationAxes: FontVariationAxis[];
|
|
18
|
+
variations: Record<string, FontVariationCoordinate>;
|
|
19
|
+
}
|
|
20
|
+
export interface FontVariationAxis {
|
|
21
|
+
name: string;
|
|
22
|
+
minimum: number;
|
|
23
|
+
maximum: number;
|
|
24
|
+
defaultValue: number;
|
|
25
|
+
}
|
|
26
|
+
export interface FontGlyphData {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string | null;
|
|
29
|
+
advance: number;
|
|
30
|
+
bbox: number[];
|
|
31
|
+
}
|
|
32
|
+
export interface FontTableData {
|
|
33
|
+
data: string | null;
|
|
34
|
+
}
|
|
35
|
+
export type FontDataOperation = {
|
|
36
|
+
type: 'open';
|
|
37
|
+
name: string;
|
|
38
|
+
} | {
|
|
39
|
+
type: 'openData';
|
|
40
|
+
data: string;
|
|
41
|
+
} | {
|
|
42
|
+
type: 'copy';
|
|
43
|
+
id: number;
|
|
44
|
+
variations: Record<string, FontVariationCoordinate>;
|
|
45
|
+
} | {
|
|
46
|
+
type: 'namedGlyph';
|
|
47
|
+
id: number;
|
|
48
|
+
name: string;
|
|
49
|
+
} | {
|
|
50
|
+
type: 'table';
|
|
51
|
+
id: number;
|
|
52
|
+
tag: number;
|
|
53
|
+
} | {
|
|
54
|
+
type: 'glyphs';
|
|
55
|
+
id: number;
|
|
56
|
+
glyphs: number[];
|
|
57
|
+
} | {
|
|
58
|
+
type: 'subset';
|
|
59
|
+
id: number;
|
|
60
|
+
name: string;
|
|
61
|
+
format: 1 | 42;
|
|
62
|
+
glyphs: number[] | null;
|
|
63
|
+
encoding: number[] | null;
|
|
64
|
+
};
|
|
65
|
+
export declare function isFontDataOperation(value: unknown): value is FontDataOperation;
|
|
66
|
+
export interface FontDataFace {
|
|
67
|
+
descriptor: FontDataDescriptor;
|
|
68
|
+
copy(variations: Record<string, FontVariationCoordinate>): FontDataFace;
|
|
69
|
+
glyph(id: number): FontGlyphData;
|
|
70
|
+
namedGlyph(name: string): number;
|
|
71
|
+
table(tag: number): Uint8Array | null;
|
|
72
|
+
subset(name: string, format: 1 | 42, glyphs: number[] | null, encoding: number[] | null): Uint8Array;
|
|
73
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar'];
|
|
1
|
+
declare const GLASS_STYLES: readonly ['regular', 'clear', 'home-dock', 'home-search', 'switch-thumb', 'slider-thumb', 'sidebar', 'keyboard'];
|
|
2
2
|
export type GlassStyle = (typeof GLASS_STYLES)[number];
|
|
3
3
|
export declare function glassMaterialCode(style: GlassStyle): number;
|
|
4
4
|
export type GlassScheme = 'light' | 'dark';
|
|
@@ -7,10 +7,9 @@ export interface GlassShapeArrow {
|
|
|
7
7
|
y: number;
|
|
8
8
|
direction: 'up' | 'down' | 'left' | 'right';
|
|
9
9
|
depth: number;
|
|
10
|
-
tipRadius: number;
|
|
11
|
-
joinRadius: number;
|
|
12
10
|
pinned?: 'start' | 'end';
|
|
13
11
|
centre: number;
|
|
12
|
+
edge: number;
|
|
14
13
|
}
|
|
15
14
|
export interface GlassShape {
|
|
16
15
|
x: number;
|
|
@@ -94,19 +94,33 @@ export interface InspectImageSource {
|
|
|
94
94
|
}
|
|
95
95
|
export declare function isNodeOwnScreenDetached(node: SootSimNode): boolean;
|
|
96
96
|
export declare function isNodeInDetachedScreen(node: SootSimNode): boolean;
|
|
97
|
-
export declare function isNodeOutsideScrollViewport(node: SootSimNode): boolean;
|
|
98
97
|
export declare function subscribeLiveFrames(listener: (channelId: string) => void): () => void;
|
|
99
98
|
export declare function readLiveFrameSource(channelId: string): ImageFrameSource | null;
|
|
100
99
|
export declare function getLiveFrameChannels(): string[];
|
|
101
100
|
export declare function beginNativeImagePreparation(): () => void;
|
|
102
101
|
export declare function getLiveFramePresentCount(): number;
|
|
102
|
+
interface CacheRow {
|
|
103
|
+
source: number | null;
|
|
104
|
+
store: 'cache' | 'pending';
|
|
105
|
+
decodeScale: number | null;
|
|
106
|
+
resizeWidth: number | null;
|
|
107
|
+
resizeHeight: number | null;
|
|
108
|
+
rasterTarget: RasterDecodeTarget | null;
|
|
109
|
+
}
|
|
103
110
|
export declare function getImageLoaderStats(): {
|
|
104
111
|
cacheEntries: number;
|
|
112
|
+
cacheRows: {
|
|
113
|
+
total: number;
|
|
114
|
+
omitted: number;
|
|
115
|
+
truncated: boolean;
|
|
116
|
+
rows: CacheRow[];
|
|
117
|
+
};
|
|
105
118
|
cachePixelBytes: number;
|
|
106
119
|
onScreenPixelBytes: number;
|
|
107
120
|
offScreenPixelBytes: number;
|
|
108
121
|
fullPaints: number;
|
|
109
122
|
partialPaints: number;
|
|
123
|
+
inImagePaint: boolean;
|
|
110
124
|
cachePixelBudget: number;
|
|
111
125
|
cacheMaxEntries: number;
|
|
112
126
|
pendingFetches: number;
|
|
@@ -216,12 +230,15 @@ export declare function getImageLoaderStats(): {
|
|
|
216
230
|
};
|
|
217
231
|
export type ImageLoaderStats = ReturnType<typeof getImageLoaderStats>;
|
|
218
232
|
export declare function getLoadedImageCacheKey(node: SootSimNode): string | null;
|
|
233
|
+
export declare function collectImageCacheKeys(node: SootSimNode, keys: Set<string>): void;
|
|
219
234
|
export declare function getLoadedStaticImageRequest(node: SootSimNode): LoadedStaticImageRequest | null;
|
|
220
235
|
export declare function isLoadedStaticImageRequestCurrent(node: SootSimNode, request: LoadedStaticImageRequest): boolean;
|
|
221
236
|
export declare function countCachedImageEntriesForKeys(keys: ReadonlySet<string>): number;
|
|
222
237
|
export declare function resetBitmapUploadPerf(): void;
|
|
223
238
|
export declare function trimImageCache(targetFraction?: number): void;
|
|
224
239
|
export declare function beginImagePaint(surface: object, full: boolean): void;
|
|
240
|
+
export declare function resumeImagePaint(full?: boolean): void;
|
|
241
|
+
export declare function isInImagePaint(): boolean;
|
|
225
242
|
export declare function endImagePaint(): void;
|
|
226
243
|
export declare function setImageLoaderRenderDpr(dpr: number): void;
|
|
227
244
|
export declare function trimImageMemory(targetFraction?: number): string[];
|
|
@@ -315,6 +332,8 @@ export declare function getImageSize(uri: string, headers?: Record<string, strin
|
|
|
315
332
|
height: number;
|
|
316
333
|
} | null>;
|
|
317
334
|
export declare function stampImageDraw(node: SootSimNode): void;
|
|
335
|
+
export declare function stampImageBoundaryDraw(node: SootSimNode): void;
|
|
336
|
+
export declare function hasDeferredOrPendingImageLoad(node: SootSimNode): boolean;
|
|
318
337
|
export declare function getImageDecodeBucket(size: number, deviceScale?: number): number | null;
|
|
319
338
|
interface RasterDecodeTarget {
|
|
320
339
|
width: number;
|
|
@@ -343,8 +362,7 @@ export declare function loadImageForNode(node: SootSimNode, ctx?: RenderContext)
|
|
|
343
362
|
export declare function drawsLiveImage(node: SootSimNode): boolean;
|
|
344
363
|
export declare function touchPaintedImage(node: SootSimNode, ctx: RenderContext): void;
|
|
345
364
|
export declare function releaseDetachedSubtreeImages(root: SootSimNode): void;
|
|
346
|
-
export declare function requeueAttachedSubtreeImages(root: SootSimNode
|
|
347
|
-
export declare function revealScrolledViewportImages(scrollNode: SootSimNode, onRevealNode?: (imgNode: SootSimNode) => void): void;
|
|
365
|
+
export declare function requeueAttachedSubtreeImages(root: SootSimNode): void;
|
|
348
366
|
export declare function clearImageRepeatShader(node: SootSimNode): void;
|
|
349
367
|
export declare function clearImageNodeRepeatShaders(node: SootSimNode): void;
|
|
350
368
|
export declare function releaseImageNode(node: SootSimNode): void;
|
|
@@ -2,6 +2,7 @@ import { type VisibleFrameQuery } from './visible-frame.d.ts';
|
|
|
2
2
|
import type { SootSimNode } from './node.d.ts';
|
|
3
3
|
export declare const INSPECT_OVERLAY_TEST_ID = "__sootsimCanvasInspectOverlay";
|
|
4
4
|
export declare const INSPECT_APP_ROOT_TEST_ID = "__sootsimInspectAppRoot";
|
|
5
|
+
export type InspectPurpose = 'point' | 'semantic';
|
|
5
6
|
export declare const HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress', 'onPanStart', 'onPanMove', 'onPanEnd', 'onStartShouldSetResponder', 'onMoveShouldSetResponder', 'onResponderGrant', 'onResponderMove', 'onResponderRelease', 'onResponderTerminate'];
|
|
6
7
|
export declare const PRESS_HANDLER_PROPS: readonly ['onPress', 'onClick', 'onPressIn', 'onPressOut', 'onLongPress'];
|
|
7
8
|
export declare function hasInspectHandlers(node: SootSimNode): boolean;
|
|
@@ -10,5 +11,5 @@ export declare function hasSemanticIdentity(node: SootSimNode): boolean;
|
|
|
10
11
|
export declare function hasPaintedInspectBox(node: SootSimNode): boolean;
|
|
11
12
|
export declare function isLeafInspectContent(node: SootSimNode): boolean;
|
|
12
13
|
export declare function getInspectRoot(node: SootSimNode): SootSimNode;
|
|
13
|
-
export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery): boolean;
|
|
14
|
+
export declare function shouldOutlineInspectNode(node: SootSimNode, query?: VisibleFrameQuery, purpose?: InspectPurpose): boolean;
|
|
14
15
|
export declare function pickInspectTarget(node: SootSimNode, root: SootSimNode): SootSimNode;
|