peachsim 0.1.1744 → 0.1.1801
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -28
- package/cli/account-gate.ts +97 -0
- package/cli/app-catalog.ts +24 -0
- package/cli/app-stubs.ts +7 -0
- package/cli/auth.ts +48 -18
- package/cli/bin.ts +35 -2
- package/cli/bridge-flow-runner.ts +174 -6
- package/cli/cloud-dispatch.ts +0 -3
- package/cli/command-registry.ts +2 -6
- package/cli/commands/auth.ts +68 -3
- package/cli/commands/compat.ts +1116 -0
- package/cli/commands/control.ts +90 -13
- package/cli/commands/coverage.ts +85 -116
- package/cli/commands/detox.ts +20 -20
- package/cli/commands/device.ts +31 -27
- package/cli/commands/doctor.ts +76 -1032
- package/cli/commands/flow.ts +80 -41
- package/cli/commands/guest-host.ts +2 -2
- package/cli/commands/inspect/core.ts +8 -7
- package/cli/commands/inspect/settling.ts +60 -25
- package/cli/commands/inspect/wait-ready.ts +6 -4
- package/cli/commands/inspect/wait-selector.ts +32 -18
- package/cli/commands/inspect.ts +8 -6
- package/cli/commands/kotlin.ts +15 -6
- package/cli/commands/logout.ts +4 -2
- package/cli/commands/maestro-compare.ts +19 -37
- package/cli/commands/maestro-generate.ts +4 -4
- package/cli/commands/maestro.ts +56 -37
- package/cli/commands/package.ts +136 -57
- package/cli/commands/preview.ts +10 -1
- package/cli/commands/{film.ts → record-three.ts} +33 -28
- package/cli/commands/record.ts +41 -39
- package/cli/commands/screenshots.ts +4 -0
- package/cli/commands/setup.ts +38 -1
- package/cli/commands/shell-url.ts +49 -24
- package/cli/commands/swift.ts +29 -11
- package/cli/commands/test.ts +43 -13
- package/cli/commands/upload.ts +12 -9
- package/cli/drivers/playwright-core-pin.ts +2 -2
- package/cli/flow-export.ts +1 -1
- package/cli/flow-file.ts +1 -1
- package/cli/internal-child.ts +3 -8
- package/cli/maestro-compare.ts +73 -7
- package/cli/maestro-js.ts +1 -1
- package/cli/maestro-report.ts +1 -1
- package/cli/maestro-workspace.ts +66 -4
- package/cli/main.ts +22 -55
- package/cli/native-input.ts +13 -20
- package/cli/outbound-endpoints.ts +40 -7
- package/cli/output-redaction.ts +8 -3
- package/cli/packaged-app-launcher.ts +40 -28
- package/cli/prompt.ts +20 -0
- package/cli/recording-access.ts +7 -7
- package/cli/run-registry.ts +1 -1
- package/cli/scene-video.ts +0 -4
- package/cli/ws-bridge.ts +7 -4
- package/detox/index.ts +293 -50
- package/detox/jest-preset.cjs +6 -0
- package/detox/launch-permissions.ts +1 -21
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +2 -8
- package/dist-lib/bridge-contract.mjs +2 -7
- package/dist-lib/bundle-channel.cjs +45273 -38265
- package/dist-lib/capture-contract.cjs +37 -14
- package/dist-lib/capture-contract.mjs +36 -13
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -2
- package/dist-lib/cloud.mjs +2 -2
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +562 -126
- package/dist-lib/detox/jest-preset.cjs +6 -0
- package/dist-lib/dev-bundle-resolution.cjs +18 -13
- package/dist-lib/expo-swift-bundle.cjs +28566 -23874
- package/dist-lib/expo-swift-metadata.cjs +104 -2
- package/dist-lib/expo-swift-metadata.mjs +104 -2
- package/dist-lib/home-paths.cjs +8 -5
- package/dist-lib/host/bridge-host.cjs +36618 -29846
- package/dist-lib/host/fetch-proxy-handler.cjs +23 -20
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +5 -2
- package/dist-lib/index.cjs +1921 -1549
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +21 -7
- package/dist-lib/menu.mjs +21 -7
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1877 -1584
- package/dist-lib/native-app-identity-project.cjs +1274 -951
- package/dist-lib/native-app-identity-project.mjs +1414 -963
- package/dist-lib/native-app-identity.cjs +64 -58
- package/dist-lib/native-app-identity.mjs +64 -58
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -33
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +484 -280
- package/dist-lib/react-native-host-modules.cjs +3 -1
- package/dist-lib/react-native-host-modules.mjs +3 -1
- package/dist-lib/reap-browser.cjs +23 -26
- package/dist-lib/scripts/dev-server-scanner.cjs +13 -10
- package/dist-lib/sdk.cjs +69 -36
- package/dist-lib/sdk.mjs +69 -36
- package/dist-lib/skills.cjs +33781 -27141
- package/dist-lib/swift-compile.cjs +3759 -2520
- package/dist-lib/swift-compile.mjs +3680 -2441
- package/dist-lib/swift-package.cjs +33 -1
- package/dist-lib/swift-package.mjs +31 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +102 -5
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16480 -14579
- package/dist-lib/vite.cjs +269 -295
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/secure-item-store.d.ts +38 -0
- package/dist-types/packages/peach-compat/src/stubs/ring-mode-state.d.ts +4 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +21 -12
- package/dist-types/packages/peach-engine/src/billing/plans.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/capture/browser-composite-provider.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/capture/browser-composite.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated-driven-style.d.ts +10 -10
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-runtime.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/native-animation-driver.d.ts +18 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +71 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +31 -3
- package/dist-types/packages/peach-engine/src/engine/paint-boundary-types.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/engine/portals.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +7 -1
- package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-velocity.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/engine/secureItemHostContract.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/engine/shell-owned-values.d.ts +55 -0
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +85 -26
- package/dist-types/packages/peach-engine/src/graphite-stats-fields.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/ios/aux-home-scene.d.ts +3 -4
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/ios/home-app-catalog.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photo-store.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/photoLibraryContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/ios/shell-controller-types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/metro-asset-path.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-webgpu.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/canvaskit-worker-init.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +31 -12
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-presentation.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgetContract.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/expo-widgets-activityContract.d.ts +15 -0
- package/dist-types/packages/peach-engine/src/render-worker/graph-linked-value.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +30 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -9
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror-tenant.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/text-inputContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worker-input-runtime.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +3 -1
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +5 -1
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +23 -1
- package/dist-types/packages/peach-kit/src/internal.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +2 -0
- package/dist-types/packages/peach-kit/src/ui/keyboard-toolbar.d.ts +5 -0
- package/install.sh +20 -1
- package/package.json +6 -5
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSession.h +629 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionDeprecated.h +90 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionRoute.h +256 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVAudioSessionTypes.h +1006 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.apinotes +246 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Headers/AVFAudio.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFAudio.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAnimation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAudioSession.h +11 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVBase.h +264 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureDevice.h +88 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h +1360 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSessionPreset.h +167 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMediaFormat.h +508 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVPlayerItem.h +31 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVSampleBufferDisplayLayer.h +18 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureDeviceDirectionCoordinator.h +113 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEvent.h +82 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventInteraction.h +114 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVCaptureEventSound.h +50 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVError.h +51 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInputPickerInteraction.h +93 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVInterstitialTimeRange.h +39 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes +112 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKit.h +110 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitDefines.h +79 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVKitTypes.h +54 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVLegibleMediaOptionsMenuController.h +193 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController.h +271 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_AVSampleBufferDisplayLayerSupport.h +135 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPictureInPictureController_VideoCallSupport.h +66 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackRouteSelecting.h +46 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackSpeed.h +71 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlaybackUserInterfaceControllable.h +551 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerItem+AVKitAdditions.h +42 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVPlayerViewController.h +704 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Headers/AVRoutePickerView.h +186 -0
- package/sdk/ios/System/Library/Frameworks/AVKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/AudioSessionTypes.h +104 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h +1621 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes +42 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreAudioTypes.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h +195 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h +220 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h +501 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +3 -18
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconIdentityConstraint.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLBeaconRegion.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLCircularRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLGeocoder.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLHeading.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager+CLVisitExtensions.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLVisit.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h +443 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMSync.h +996 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +2 -2
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h +1811 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h +360 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +574 -17
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h +109 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h +336 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h +203 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h +264 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h +531 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h +326 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h +547 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h +213 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h +496 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h +158 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h +286 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +80 -1
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h +1833 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h +482 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DDDevicePickerViewController.h +41 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUI.h +9 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Headers/DeviceDiscoveryUIDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/DeviceDiscoveryUI.swiftcrossimport/SwiftUI.swiftoverlay +4 -0
- package/sdk/ios/System/Library/Frameworks/DeviceDiscoveryUI.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +49 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h +15 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +6 -6
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +3 -3
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +2 -2
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +4 -4
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +6 -6
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +5 -5
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +14 -14
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +20 -20
- package/sdk/ios/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceObjC.h +1 -1
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +2 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +6 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSBase.h +195 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContext.h +245 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSContextRef.h +178 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSExport.h +151 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSManagedValue.h +81 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSObjectRef.h +755 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRef.h +148 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSStringRefCF.h +60 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSTypedArray.h +180 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValue.h +824 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSValueRef.h +555 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JSVirtualMachine.h +92 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScript.h +37 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/JavaScriptCore.h +38 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Headers/WebKitAvailability.h +36 -0
- package/sdk/ios/System/Library/Frameworks/JavaScriptCore.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/UTType.h +19 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCAdvertiserAssistant.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCBrowserViewController.h +88 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCError.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceAdvertiser.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCNearbyServiceBrowser.h +94 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCPeerID.h +37 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MCSession.h +215 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Headers/MultipeerConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/MultipeerConnectivity.framework/Modules/module.modulemap +7 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +1 -1
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +6 -6
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +4 -4
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +2 -2
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +3 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSLayoutManager.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +172 -27
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSText.h +59 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextContainer.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextList.h +63 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSTextStorage.h +10 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h +142 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +20 -20
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +103 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +6 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UICommand.h +131 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +8 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFont.h +80 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIFontDescriptor.h +191 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h +259 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +9 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +5 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +6 -3
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInteraction.h +37 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes +4248 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +66 -102
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKitDefines.h +55 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UILayoutGuide.h +62 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +283 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h +86 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h +68 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +3 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +135 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Modules/module.modulemap +8 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTAdditions.h +167 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UTCoreTypes.h +1332 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes +53 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.h +18 -0
- package/sdk/ios/System/Library/Frameworks/UniformTypeIdentifiers.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNError.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +69 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationActionIcon.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +44 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttributedMessageContext.h +24 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +82 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +152 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +34 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +41 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationServiceExtension.h +27 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +90 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +64 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +107 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes +17 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCDefines.h +14 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSession.h +200 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionFile.h +30 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WCSessionUserInfoTransfer.h +22 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.apinotes +19 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Headers/WatchConnectivity.h +15 -0
- package/sdk/ios/System/Library/Frameworks/WatchConnectivity.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/NSAttributedString.h +120 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +77 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +54 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +37 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDataDetectorTypes.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +67 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownloadDelegate.h +146 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKError.h +71 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +41 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +63 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFoundation.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +62 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +108 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironment.h +50 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKImmersiveEnvironmentDelegate.h +69 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +80 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +45 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +118 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationDelegate.h +219 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +60 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +47 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +49 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +117 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItem.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewActionItemIdentifiers.h +38 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +39 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +64 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandler.h +52 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessageHandlerWithReply.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +57 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +59 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h +316 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeHandler.h +61 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKURLSchemeTask.h +75 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +162 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +76 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +237 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionAction.h +164 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionCommand.h +106 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +790 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +255 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +89 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerDelegate.h +207 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionDataType.h +43 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +175 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMessagePort.h +99 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionPermission.h +95 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTab.h +396 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionTabConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindow.h +170 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionWindowConfiguration.h +87 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +800 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +275 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +150 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +90 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +137 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +72 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes +204 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKit.h +93 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WebKitLegacy.h +3 -0
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/WiFiAware.framework/Modules/WiFiAware.swiftmodule/arm64-apple-ios-simulator.swiftinterface +605 -0
- package/sdk/ios/System/Library/Frameworks/_DeviceDiscoveryUI_SwiftUI.framework/Modules/_DeviceDiscoveryUI_SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +79 -0
- package/sdk/ios/usr/include/MacTypes.h +8 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +5 -0
- package/sdk/ios/wasm/include/fcntl.h +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/sdk/ios/wasm/include/stdlib.h +1 -0
- package/sdk/native-hashes.json +11 -1
- package/skills/contrast/SKILL.md +4 -9
- package/skills/peach-perf/SKILL.md +3 -1
- package/skills/peach-perf/references/profiling.md +1 -1
- package/skills/peach-test/SKILL.md +20 -17
- package/skills/peach-test/references/detox.md +7 -7
- package/skills/peach-test/references/maestro.md +20 -18
- package/src/admitted-mac-build.ts +7 -0
- package/src/android-autolinking.ts +2 -2
- package/src/android-drawables.ts +5 -5
- package/src/android-string-value.ts +1 -1
- package/src/android-strings.ts +1 -1
- package/src/android-theme.ts +2 -2
- package/src/appPackageContract.ts +1 -1
- package/src/bridge-contract.ts +12 -16
- package/src/build-cache.ts +65 -0
- package/src/bundle-channel.mjs +69 -9
- package/src/capture-contract.ts +55 -17
- package/src/chromium-admission.ts +24 -21
- package/src/conformance-comparison-contract.ts +105 -40
- package/src/dev-bundle-resolution.ts +23 -10
- package/src/device-catalog.ts +35 -2
- package/src/disk-cleanup.ts +18 -8
- package/src/expo-autolinking.ts +24 -0
- package/src/expo-discovery-cache.ts +168 -23
- package/src/expo-native-workspace.ts +551 -191
- package/src/expo-swift-host.ts +711 -314
- package/src/expo-swift-ready.ts +39 -5
- package/src/expo-widget-assets.ts +2 -2
- package/src/expo-widgets-bundle.ts +56 -0
- package/src/expo-workspace-exclusion.ts +62 -0
- package/src/expoSwiftContract.ts +27 -4
- package/src/forked-script-contract.ts +3 -0
- package/src/home-paths.ts +10 -6
- package/src/host/bridge-host.ts +27 -0
- package/src/host/network-policy.ts +1 -1
- package/src/kotlin-app.ts +9 -11
- package/src/kotlin-host.ts +2 -2
- package/src/launchMetadataContract.ts +5 -0
- package/src/menu.ts +19 -5
- package/src/native-app-identity-project.ts +35 -49
- package/src/native-app-identity.ts +5 -6
- package/src/native-firebase-config.ts +10 -48
- package/src/native-prebuilt.ts +3 -2
- package/src/native-slices.ts +39 -0
- package/src/native-static-libraries.ts +73 -0
- package/src/nitro-adapter.lock.json +249 -249
- package/src/nitro-adapter.ts +16 -5
- package/src/nitro-bundle.ts +35 -16
- package/src/nitro-compile.ts +254 -16
- package/src/nitro-compiler-digest.ts +39 -0
- package/src/nitro-dependencies.ts +368 -28
- package/src/nitro-source.ts +432 -77
- package/src/nitro-superset.lock.json +27 -36
- package/src/nitro-superset.ts +6 -0
- package/src/nitroAdapterContract.ts +52 -0
- package/src/nitroContract.ts +40 -4
- package/src/numbered-lock.ts +2 -2
- package/src/one-native-app-accent.ts +32 -0
- package/src/one-widget-discovery.ts +6 -1
- package/src/one-widget-metadata.ts +2 -2
- package/src/portable-expo-contract.ts +103 -0
- package/src/portable-expo-workspace.ts +94 -0
- package/src/prepared-native-inventory.ts +93 -0
- package/src/prepared-xcode-phases.ts +194 -0
- package/src/process-group.ts +8 -15
- package/src/process-table.ts +117 -0
- package/src/react-native-bridge-modules.ts +240 -14
- package/src/react-native-coverage/native-typescript-parser.ts +11 -2
- package/src/react-native-coverage/verified-reach.ts +12 -6
- package/src/react-native-host-modules.ts +2 -0
- package/src/reap-browser.ts +13 -9
- package/src/retired-cache-directory.ts +34 -0
- package/src/runtime-assets.ts +1 -0
- package/src/screenshots/orchestrate.ts +4 -0
- package/src/screenshots/schema.ts +2 -2
- package/src/storageSnapshotContract.ts +9 -2
- package/src/stub-pattern-matcher.ts +53 -19
- package/src/swift-compile.ts +1011 -327
- package/src/swift-compiler-digest.ts +3 -0
- package/src/swift-coverage/indexing.ts +1 -1
- package/src/swift-coverage/xcode-asset-symbols.ts +72 -39
- package/src/swift-coverage/xcode-assets.ts +2 -1
- package/src/swift-cxx-declarations.ts +114 -130
- package/src/swift-cxx-standin.ts +3 -3
- package/src/swift-darwin-records.ts +88 -0
- package/src/swift-distribution.lock.json +15 -12
- package/src/swift-distribution.ts +25 -9
- package/src/swift-host.ts +443 -142
- package/src/swift-icu.ts +72 -4
- package/src/swift-link-roots.ts +2 -0
- package/src/swift-objc-compile.ts +312 -65
- package/src/swift-objc-import.ts +8 -1
- package/src/swift-objc-standin.ts +20 -2
- package/src/swift-package-manifest.ts +189 -57
- package/src/swift-package.ts +51 -0
- package/src/swift-packages.ts +117 -45
- package/src/swift-pdf-raster.ts +7 -4
- package/src/swift-project-user.ts +183 -0
- package/src/swift-reproducible.ts +26 -0
- package/src/swift-root-lock.ts +34 -62
- package/src/swift-shared-sdk.ts +232 -21
- package/src/swift-source-pods.ts +9 -2
- package/src/swift-standin-emit.ts +248 -7
- package/src/swift-standins.ts +130 -108
- package/src/swift-submit.ts +3 -0
- package/src/swift-toolchain.ts +109 -8
- package/src/swift-wasm-prune.ts +210 -55
- package/src/swiftContract.ts +14 -0
- package/src/swiftGuestImageContract.ts +113 -0
- package/src/turbo-bundle.ts +5 -8
- package/src/turbo-codegen-intake.ts +134 -0
- package/src/turbo-compile.ts +198 -21
- package/src/turbo-native-libraries.ts +98 -0
- package/src/turbo-runtime.lock.json +25 -18
- package/src/turbo-source.ts +1519 -147
- package/src/vite-plugin-one.ts +25 -3
- package/src/vite-plugin-swift.ts +5 -1
- package/src/vite-plugin.ts +40 -18
- package/src/worker-system-chunks.ts +103 -15
- package/src/worklets-babel.ts +50 -29
- package/src/xcode-header-search.ts +15 -5
- package/src/xcode-project.ts +444 -88
- package/src/xcode-target-members.ts +72 -63
- package/dist-types/packages/peach-engine/src/render-worker/compositor-runtime/scroll-drag-resample.d.ts +0 -44
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
enum { noErr = 0 };
|
|
3
3
|
enum { kNilOptions = 0 };
|
|
4
|
+
typedef signed int Fixed;
|
|
5
|
+
typedef Fixed *FixedPtr;
|
|
6
|
+
typedef signed int Fract;
|
|
7
|
+
typedef Fract *FractPtr;
|
|
8
|
+
typedef unsigned int UnsignedFixed;
|
|
9
|
+
typedef UnsignedFixed *UnsignedFixedPtr;
|
|
10
|
+
typedef short ShortFixed;
|
|
11
|
+
typedef ShortFixed *ShortFixedPtr;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#pragma once
|
|
2
|
+
#include <limits.h>
|
|
2
3
|
#include <objc/objc.h>
|
|
3
4
|
|
|
4
5
|
#if __LP64__ || NS_BUILD_32_LIKE_64
|
|
@@ -8,3 +9,7 @@ typedef unsigned long NSUInteger;
|
|
|
8
9
|
typedef int NSInteger;
|
|
9
10
|
typedef unsigned int NSUInteger;
|
|
10
11
|
#endif
|
|
12
|
+
|
|
13
|
+
#define NSIntegerMax LONG_MAX
|
|
14
|
+
#define NSIntegerMin LONG_MIN
|
|
15
|
+
#define NSUIntegerMax ULONG_MAX
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
// descriptor has no cache control.
|
|
12
12
|
#define F_GETPATH 50 /* return the full path of the fd */
|
|
13
13
|
#define F_NOCACHE 48 /* turn data caching off/on for this fd */
|
|
14
|
+
#define F_FULLFSYNC 51 /* fsync + ask the drive to flush to the media */
|
|
14
15
|
|
|
15
16
|
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
|
|
16
17
|
#include <sys/_types/_filesec_t.h>
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
__BEGIN_DECLS
|
|
35
35
|
// wasi hides scheduling parameters, but its attribute owns their stored value.
|
|
36
36
|
int pthread_attr_setschedparam(pthread_attr_t *__restrict, const struct sched_param *__restrict);
|
|
37
|
+
int pthread_getschedparam(pthread_t, int *__restrict, struct sched_param *__restrict);
|
|
38
|
+
int pthread_setschedparam(pthread_t, int, const struct sched_param *);
|
|
37
39
|
int pthread_is_threaded_np(void);
|
|
38
40
|
int pthread_main_np(void);
|
|
39
41
|
// the installed libc's pthread_t is an integer, so it takes no nullability.
|
|
@@ -26,6 +26,7 @@ void srandomdev(void);
|
|
|
26
26
|
#ifndef _ANSI_SOURCE
|
|
27
27
|
char *realpath(const char *__restrict, char *__restrict) __asm__("__peach_darwin_realpath");
|
|
28
28
|
char *setstate(const char *);
|
|
29
|
+
int mkstemp(char *);
|
|
29
30
|
char *ecvt(double, int, int *__restrict, int *__restrict);
|
|
30
31
|
char *fcvt(double, int, int *__restrict, int *__restrict);
|
|
31
32
|
char *gcvt(double, int, char *);
|
package/sdk/native-hashes.json
CHANGED
|
@@ -24,7 +24,17 @@
|
|
|
24
24
|
"usr/include/os/log.h": "3e137d10ddc9a80cee66d6030e481af9c4c82da1f607b070bc08d15d031bfc9a",
|
|
25
25
|
"usr/include/os/object.h": "28873fba6268b39e1b7c9acfa44d81b180ee9cfcf17fc7b06c9a62bd2a190d99",
|
|
26
26
|
"usr/include/os/trace.h": "a1198e84d1e82153db2a8092d27bbcc633b3a1eb0d98570675741f2fa82a28da",
|
|
27
|
-
"usr/include/os/trace_base.h": "5e4215f4dc0debbd09c27fcd677a9449efd9f7f3e7429247818f8d4c78848efe"
|
|
27
|
+
"usr/include/os/trace_base.h": "5e4215f4dc0debbd09c27fcd677a9449efd9f7f3e7429247818f8d4c78848efe",
|
|
28
|
+
"System/Library/Frameworks/UIKit.framework/Headers/NSToolbar+UIKitAdditions.h": "61bba4aa13d60aa5656c2858d1efc3da4e15889c5bee0706467d811a634b8629",
|
|
29
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h": "1404e37134472bbe30773ed2f241a1c358641f0f1f4f5edfe475114ee0bbf77f",
|
|
30
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h": "5fbc7c47a9213d3a7a8bf3dff1646dee18e91a44b38055bc318c1cfa97fa73f5",
|
|
31
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h": "3f0067836dff07049e04d45a8484a9c545661eeb3be839c4b7264aaefc4e6180",
|
|
32
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h": "f16634324127c6702da5d6423be2600c022c2005d07361cab4656f3c2642b73d",
|
|
33
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UICommand.h": "52fe8e4e83cedb0d09aebc4c192a85857a4c0691a65daa5b50710e505479c563",
|
|
34
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIMenuElement.h": "1fcf7c6be67a26cdffce7440e525f2bf4d01883cb6a0f3f060c0f7c82c88d9df",
|
|
35
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h": "e0d4c94bb8b1696ce1fe36b7514f3db3f432c6ac2af70f45d19009aba225f712",
|
|
36
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIMenuLeaf.h": "195b9b040dc4194d9d29a99b62879d4c2b2a8c9942467be3b6446fe8d39c5efd",
|
|
37
|
+
"System/Library/Frameworks/UIKit.framework/Headers/UIMenuDisplayPreferences.h": "4f19f8f0138d5b35633a676935ffb97e030bbd1160a250b747abd8b634f69327"
|
|
28
38
|
}
|
|
29
39
|
},
|
|
30
40
|
"deviations": [
|
package/skills/contrast/SKILL.md
CHANGED
|
@@ -19,14 +19,9 @@ automation, inspecting the render tree, and managing sims.
|
|
|
19
19
|
|
|
20
20
|
| command | description |
|
|
21
21
|
| --- | --- |
|
|
22
|
-
| `peach
|
|
23
|
-
| `peach kotlin` | run an Android Compose app module from its launcher activity |
|
|
24
|
-
| `peach test` | run a Maestro flow or Detox suite against a peach app bundle |
|
|
25
|
-
| `peach maestro` | author, generate, and run Maestro YAML flows against peach |
|
|
26
|
-
| `peach detox` | run existing Detox suites against peach on headless Chromium |
|
|
22
|
+
| `peach test` | run Maestro flows or Detox suites, author flows, and run them in the cloud |
|
|
27
23
|
| `peach cleanup` | inspect and reclaim local peach disk usage |
|
|
28
24
|
| `peach record` | record a scene and render webm/mp4, capture a gif, or sample N png frames |
|
|
29
|
-
| `peach film` | record a flow on the flat canvas, play it back on the 3d device stage under a camera cinematic, save a clip |
|
|
30
25
|
| `peach storage` | manage guest app storage and launch profiles |
|
|
31
26
|
| `peach permissions` | inspect and change simulated operating-system permissions |
|
|
32
27
|
| `peach location` | control the simulator's simulated device location |
|
|
@@ -54,7 +49,7 @@ automation, inspecting the render tree, and managing sims.
|
|
|
54
49
|
| `peach ios` | start an iOS simulator |
|
|
55
50
|
| `peach android` | start an Android simulator |
|
|
56
51
|
| `peach remote` | run a prebuilt bundle on a remote simulator |
|
|
57
|
-
| `peach open` |
|
|
52
|
+
| `peach open` | run a React Native, Swift or Android app in the simulator |
|
|
58
53
|
| `peach preview` | publish an Expo project or bundle as a standalone preview |
|
|
59
54
|
| `peach package` | package one app as a standalone macOS app |
|
|
60
55
|
| `peach list` | list connected sims or available launch drivers |
|
|
@@ -64,8 +59,8 @@ automation, inspecting the render tree, and managing sims.
|
|
|
64
59
|
| `peach agent` | inspect messages, attached projects, and local agent sessions |
|
|
65
60
|
| `peach close` | close a connected sim |
|
|
66
61
|
| `peach setup` | configure optional local conveniences |
|
|
67
|
-
| `peach doctor` | check
|
|
68
|
-
| `peach
|
|
62
|
+
| `peach doctor` | check the Peach install: CLI, runtime, desktop app, service, bridge and account |
|
|
63
|
+
| `peach compat` | check what of an app Peach runs: packages, API reach and verified proof |
|
|
69
64
|
| `peach project-report` | print local project and toolchain metadata |
|
|
70
65
|
| `peach support` | ask for help, report a problem, and read our replies |
|
|
71
66
|
| `peach desktop` | launch or install the desktop companion |
|
|
@@ -21,7 +21,9 @@ peach get errors 5
|
|
|
21
21
|
|
|
22
22
|
Read the **compositor** render-profile block for guest-app painting, boundaries,
|
|
23
23
|
and raster decisions. Shell and tenant statistics alone do not describe app
|
|
24
|
-
paint cost.
|
|
24
|
+
paint cost. `perf shell` leaves those counters off, since they move painting
|
|
25
|
+
onto the JavaScript walk: run `peach perf record start --categories
|
|
26
|
+
frames,paint-detail` first, then read them from `perf shell stop --json`. If a report visits only a handful of nodes during a dense app
|
|
25
27
|
scroll, check which worker it describes.
|
|
26
28
|
|
|
27
29
|
Compare painted-frame count, layout/render/flush costs, p95, worst frames, and
|
|
@@ -23,7 +23,7 @@ resources.
|
|
|
23
23
|
|
|
24
24
|
Save supports gzip JSONL; a `.json` CLI output retains JSON form. The Performance
|
|
25
25
|
tab can open these captures. Keep categories identical for timing comparisons.
|
|
26
|
-
Use `peach
|
|
26
|
+
Use `peach test .maestro/scroll.yaml --profile` for per-step frame stats
|
|
27
27
|
from an existing flow.
|
|
28
28
|
|
|
29
29
|
## Sampled CPU
|
|
@@ -13,12 +13,14 @@ Start with a connected sim (`peach describe` returns the app); use `peach-setup`
|
|
|
13
13
|
if needed. Set `PEACH_NO_OPEN=1` before starting an app dev server for test-only
|
|
14
14
|
work so an optional plugin does not open another interactive window.
|
|
15
15
|
|
|
16
|
+
Tests need a free Peach account. Run `peach login`, or set `PEACH_API_KEY` from `peach auth key create` or Billing → API Keys.
|
|
17
|
+
|
|
16
18
|
## Run a Maestro flow
|
|
17
19
|
|
|
18
20
|
```sh
|
|
19
|
-
peach
|
|
20
|
-
peach
|
|
21
|
-
peach
|
|
21
|
+
peach test .maestro/login.yaml
|
|
22
|
+
peach test .maestro/login.yaml --record --profile
|
|
23
|
+
peach test .maestro/
|
|
22
24
|
```
|
|
23
25
|
|
|
24
26
|
`--url <port-or-url>` selects the app target. In parallel CI jobs, isolate the
|
|
@@ -35,15 +37,16 @@ A small flow ends with an assertion:
|
|
|
35
37
|
- inputText: '${USERNAME}'
|
|
36
38
|
- tapOn:
|
|
37
39
|
id: signInButton
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
+
- extendedWaitUntil:
|
|
41
|
+
visible:
|
|
42
|
+
id: dashboard
|
|
40
43
|
timeout: 10000
|
|
41
44
|
- assertVisible:
|
|
42
45
|
id: dashboard
|
|
43
46
|
```
|
|
44
47
|
|
|
45
48
|
```sh
|
|
46
|
-
peach maestro --env USERNAME=alice
|
|
49
|
+
peach test .maestro/login.yaml --env USERNAME=alice
|
|
47
50
|
```
|
|
48
51
|
|
|
49
52
|
Prefer testIDs. On iOS, text selectors match the whole accessibility label,
|
|
@@ -54,23 +57,23 @@ accessible.
|
|
|
54
57
|
|
|
55
58
|
Read [Maestro](references/maestro.md) for discovery, live authoring, generation,
|
|
56
59
|
artifacts, compatibility, and failure diagnosis. Check
|
|
57
|
-
`peach
|
|
60
|
+
`peach test --list-compat` before depending on an unfamiliar verb.
|
|
58
61
|
|
|
59
62
|
## Record a flow from CLI actions
|
|
60
63
|
|
|
61
64
|
```sh
|
|
62
|
-
peach
|
|
65
|
+
peach test start
|
|
63
66
|
peach do tap emailInput
|
|
64
|
-
peach
|
|
67
|
+
peach test keep
|
|
65
68
|
peach do type "user@example.com"
|
|
66
|
-
peach
|
|
69
|
+
peach test keep
|
|
67
70
|
peach do tap signInButton
|
|
68
|
-
peach
|
|
69
|
-
peach
|
|
71
|
+
peach test keep
|
|
72
|
+
peach test end --output .maestro/login.yaml --validate
|
|
70
73
|
```
|
|
71
74
|
|
|
72
75
|
Review the saved flow and add the assertion that proves its outcome.
|
|
73
|
-
`peach
|
|
76
|
+
`peach test generate "sign in and verify the dashboard"` also authors a
|
|
74
77
|
Maestro flow; review its selectors and expected result before relying on it.
|
|
75
78
|
|
|
76
79
|
## Existing Detox suites
|
|
@@ -88,8 +91,8 @@ module.exports = {
|
|
|
88
91
|
```
|
|
89
92
|
|
|
90
93
|
```sh
|
|
91
|
-
peach
|
|
92
|
-
peach
|
|
94
|
+
peach test --config peach-detox.config.cjs --app 8081
|
|
95
|
+
peach test e2e/ -t "login"
|
|
93
96
|
```
|
|
94
97
|
|
|
95
98
|
Read [Detox](references/detox.md) for mapper-only integration, command options,
|
|
@@ -99,8 +102,8 @@ native APIs; do not assume full upstream compatibility.
|
|
|
99
102
|
## Reliable flows
|
|
100
103
|
|
|
101
104
|
- Use state waits and assertions. CLI actions already settle layout; avoid
|
|
102
|
-
blind sleeps. Use `
|
|
103
|
-
outlasts automatic settling.
|
|
105
|
+
blind sleeps. Use `extendedWaitUntil` or `waitForAnimationToEnd` for a
|
|
106
|
+
transition that outlasts automatic settling.
|
|
104
107
|
- Keep flows focused, with `runFlow` for reusable subflows. A screenshot records
|
|
105
108
|
appearance; it does not assert success.
|
|
106
109
|
- Investigate flakes on the same sim with `peach-debug`. Do not hide them with
|
|
@@ -26,13 +26,13 @@ to close its browser. Preserve any environment and transform configuration
|
|
|
26
26
|
needed by the suite.
|
|
27
27
|
|
|
28
28
|
```sh
|
|
29
|
-
peach
|
|
30
|
-
peach
|
|
31
|
-
peach
|
|
32
|
-
peach
|
|
33
|
-
peach
|
|
34
|
-
peach
|
|
35
|
-
peach
|
|
29
|
+
peach test init --detox
|
|
30
|
+
peach test --config peach-detox.config.cjs --app 8081
|
|
31
|
+
peach test e2e/ --watch
|
|
32
|
+
peach test e2e/ -t "login"
|
|
33
|
+
peach test e2e/ --headed
|
|
34
|
+
peach test e2e/ --no-launch
|
|
35
|
+
peach test e2e/ --port 7669 --app 8081
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
`--app` selects the app dev-server port or URL; `--port` selects the bridge.
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
## Discovery and outputs
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
peach
|
|
7
|
-
peach
|
|
8
|
-
peach
|
|
9
|
-
peach
|
|
10
|
-
peach maestro --env USERNAME=alice
|
|
11
|
-
peach
|
|
12
|
-
peach
|
|
6
|
+
peach test
|
|
7
|
+
peach test init
|
|
8
|
+
peach test .maestro/login.yaml
|
|
9
|
+
peach test .maestro/
|
|
10
|
+
peach test .maestro/login.yaml --env USERNAME=alice
|
|
11
|
+
peach test .maestro/login.yaml --record --profile
|
|
12
|
+
peach test --list-compat
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Automatic discovery looks in `.maestro/` or `maestro/`. Directory runs select
|
|
@@ -39,22 +39,22 @@ use it when sharing is intended. `--preview-open` opens that uploaded link.
|
|
|
39
39
|
## Authoring
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
peach
|
|
42
|
+
peach test start
|
|
43
43
|
peach do tap emailInput
|
|
44
|
-
peach
|
|
44
|
+
peach test keep
|
|
45
45
|
peach do type "user@example.com"
|
|
46
|
-
peach
|
|
46
|
+
peach test keep
|
|
47
47
|
peach do tap signInButton
|
|
48
|
-
peach
|
|
49
|
-
peach
|
|
50
|
-
peach
|
|
48
|
+
peach test keep
|
|
49
|
+
peach test end --output .maestro/login.yaml --validate
|
|
50
|
+
peach test validate .maestro/login.yaml
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
`keep` saves the preceding interaction into the draft. Review the YAML and add
|
|
54
54
|
an outcome assertion. Generation also writes a Maestro flow:
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
|
-
peach
|
|
57
|
+
peach test generate "sign in with the demo account and verify the dashboard"
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
Generation executes the generated flow and uploads a replay. Use it when the
|
|
@@ -63,7 +63,7 @@ adopting it into a suite.
|
|
|
63
63
|
|
|
64
64
|
## Compatibility
|
|
65
65
|
|
|
66
|
-
Use `peach
|
|
66
|
+
Use `peach test --list-compat` as the current verb and selector catalog,
|
|
67
67
|
rather than assuming every upstream Maestro command works.
|
|
68
68
|
|
|
69
69
|
Supported areas include lifecycle, tapping, typing, keyboard actions, clipboard,
|
|
@@ -77,9 +77,11 @@ screenshots, fixed-count repetition, subflows, hooks, JavaScript expressions,
|
|
|
77
77
|
It has no OS-level Safari fallback. The runner reports iOS for `when.platform`;
|
|
78
78
|
Android branches are skipped, and other `--platform` values are refused.
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
`setLocation` and `travel` move the device location, `killApp` stops the
|
|
81
|
+
guest as `stopApp` does, `setAirplaneMode` logs that iOS simulators have no
|
|
82
|
+
airplane mode, and `inputRandom*` types generated values, all as Maestro does
|
|
83
|
+
on iOS. Unsupported steps include `faker`, `startRecording`, and
|
|
84
|
+
`stopRecording`. Use `--record` for video. CSS selectors
|
|
83
85
|
are unsupported. Missing environment names fail the step rather than typing
|
|
84
86
|
`undefined`; supply them with repeatable `--env KEY=VALUE` or exported variables.
|
|
85
87
|
|
|
@@ -3,6 +3,13 @@ import { spawnSync } from 'node:child_process'
|
|
|
3
3
|
export type WindowAdmission =
|
|
4
4
|
| { kind: 'heavy' | 'quiet'; cores: number | null; scopes: string[] }
|
|
5
5
|
| { kind: 'external'; name: string; cores: null }
|
|
6
|
+
// a host without tm (a stranger's machine, a disposable guest) has no window
|
|
7
|
+
// registry, so its heavy work runs unadmitted.
|
|
8
|
+
export function teamMachineInstalled(): boolean {
|
|
9
|
+
const result = spawnSync('tm', ['--version'], { stdio: 'ignore' })
|
|
10
|
+
return !(result.error && 'code' in result.error && result.error.code === 'ENOENT')
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
// do not cache authority: release returns capacity while this process stays live.
|
|
7
14
|
export function windowAdmission(): WindowAdmission | null {
|
|
8
15
|
const result = spawnSync('tm', ['window', 'ancestor', '--json'], {
|
|
@@ -5,8 +5,8 @@ import fs from 'node:fs'
|
|
|
5
5
|
import { createRequire } from 'node:module'
|
|
6
6
|
import path from 'node:path'
|
|
7
7
|
import { promisify } from 'node:util'
|
|
8
|
-
import { RNX_FORKED_SCRIPT_ENV } from '../cli/internal-child'
|
|
9
8
|
import { readAndroidAutolinkedPackages } from './androidAutolinkingContract'
|
|
9
|
+
import { PEACH_FORKED_SCRIPT_ENV } from './forked-script-contract'
|
|
10
10
|
import { isRecord } from './is-record'
|
|
11
11
|
|
|
12
12
|
const run = promisify(execFile)
|
|
@@ -56,7 +56,7 @@ async function resolveAndroidModules(
|
|
|
56
56
|
{
|
|
57
57
|
timeout: 30_000,
|
|
58
58
|
maxBuffer: 8 * 1024 * 1024,
|
|
59
|
-
env: { ...process.env, [
|
|
59
|
+
env: { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: '1' },
|
|
60
60
|
cwd: appRoot,
|
|
61
61
|
},
|
|
62
62
|
)
|
package/src/android-drawables.ts
CHANGED
|
@@ -109,7 +109,7 @@ export function readAndroidDrawables(
|
|
|
109
109
|
(/^\d+dpi$/.test(qualifier) ? Number.parseInt(qualifier, 10) : -1))
|
|
110
110
|
if (!match || density === -1)
|
|
111
111
|
throw new Error(
|
|
112
|
-
`${res}/${dir}: drawables under this qualifier are not resolved by
|
|
112
|
+
`${res}/${dir}: drawables under this qualifier are not resolved by Peach yet`,
|
|
113
113
|
)
|
|
114
114
|
const version = Number(match[2] ?? 0)
|
|
115
115
|
for (const entry of fs.readdirSync(path.join(res, dir)).sort()) {
|
|
@@ -158,13 +158,13 @@ function readVector(
|
|
|
158
158
|
for (const child of element.children)
|
|
159
159
|
if (child.name.startsWith('aapt:'))
|
|
160
160
|
throw new Error(
|
|
161
|
-
`${file}: <${element.name}> has an inline ${child.name} (a gradient), not resolved by
|
|
161
|
+
`${file}: <${element.name}> has an inline ${child.name} (a gradient), not resolved by Peach yet`,
|
|
162
162
|
)
|
|
163
163
|
const raw = (key: string) => element.attributes[`android:${key}`]
|
|
164
164
|
const reference = (key: string, value: string) => {
|
|
165
165
|
if (/^[@?]/.test(value))
|
|
166
166
|
throw new Error(
|
|
167
|
-
`${file}: <${element.name}> ${key}="${value}" is a reference, not resolved by
|
|
167
|
+
`${file}: <${element.name}> ${key}="${value}" is a reference, not resolved by Peach yet`,
|
|
168
168
|
)
|
|
169
169
|
}
|
|
170
170
|
const float = (key: string, fallback: number) => {
|
|
@@ -183,7 +183,7 @@ function readVector(
|
|
|
183
183
|
const match = /^(-?[\d.]+)(?:dp|dip)$/.exec(value)
|
|
184
184
|
if (!match)
|
|
185
185
|
throw new Error(
|
|
186
|
-
`${file}: <${element.name}> ${key}="${value}" is not in dp, the unit
|
|
186
|
+
`${file}: <${element.name}> ${key}="${value}" is not in dp, the unit Peach reads`,
|
|
187
187
|
)
|
|
188
188
|
return Number(match[1])
|
|
189
189
|
}
|
|
@@ -206,7 +206,7 @@ function readVector(
|
|
|
206
206
|
if (value === undefined) return { day: 0, night: 0 }
|
|
207
207
|
if (value.startsWith('?'))
|
|
208
208
|
throw new Error(
|
|
209
|
-
`${file}: <${element.name}> ${key}="${value}" is a theme attribute, not resolved by
|
|
209
|
+
`${file}: <${element.name}> ${key}="${value}" is a theme attribute, not resolved by Peach yet`,
|
|
210
210
|
)
|
|
211
211
|
return {
|
|
212
212
|
day: attributeColor(value, sources.day),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// value beginning with @ or ? must be resolved before compiling its text
|
|
6
6
|
export function compileAndroidStringValue(text: string, where: string): string {
|
|
7
7
|
if (/^\s*[@?]/.test(text))
|
|
8
|
-
throw new Error(`${where} is a resource reference, not resolved by
|
|
8
|
+
throw new Error(`${where} is a resource reference, not resolved by Peach yet`)
|
|
9
9
|
const out: { char: string; soft: boolean }[] = []
|
|
10
10
|
let quoted = false
|
|
11
11
|
for (let index = 0; index < text.length; index++) {
|
package/src/android-strings.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function readAndroidStrings(moduleDir: string): AndroidStringResources {
|
|
|
65
65
|
if (!name) throw new Error(`${file}: a <${kind}> without a name`)
|
|
66
66
|
if (!qualifier)
|
|
67
67
|
throw new Error(
|
|
68
|
-
`${file}: ${kind} ${name} under ${dir} is not resolved by
|
|
68
|
+
`${file}: ${kind} ${name} under ${dir} is not resolved by Peach yet (only values, values-<language> and values-<language>-r<REGION>)`,
|
|
69
69
|
)
|
|
70
70
|
const locale = qualifier[2]
|
|
71
71
|
? `${qualifier[1]}-${qualifier[2]}`
|
package/src/android-theme.ts
CHANGED
|
@@ -178,7 +178,7 @@ export function resourceColor(
|
|
|
178
178
|
// system_ colors are the device's dynamic palette, set at runtime
|
|
179
179
|
if (ref.namespace === 'android' && ref.name.startsWith('system_'))
|
|
180
180
|
throw new Error(
|
|
181
|
-
`@android:color/${ref.name} is the device's dynamic color, which
|
|
181
|
+
`@android:color/${ref.name} is the device's dynamic color, which Peach does not model`,
|
|
182
182
|
)
|
|
183
183
|
if (seen.has(key)) throw new Error(`@${key} refers to itself`)
|
|
184
184
|
seen.add(key)
|
|
@@ -200,6 +200,6 @@ export function resourceColor(
|
|
|
200
200
|
export function attributeColor(value: string, sources: ThemeSources): number {
|
|
201
201
|
if (value.startsWith('#')) return color(value)
|
|
202
202
|
const ref = colorReference(value, 'app')
|
|
203
|
-
if (!ref) throw new Error(`the color ${value} is not resolved by
|
|
203
|
+
if (!ref) throw new Error(`the color ${value} is not resolved by Peach yet`)
|
|
204
204
|
return resourceColor(ref.namespace, ref.name, sources)
|
|
205
205
|
}
|
|
@@ -20,9 +20,9 @@ export interface AppPackageManifest {
|
|
|
20
20
|
name: string
|
|
21
21
|
origin: string
|
|
22
22
|
hostExecutable: string
|
|
23
|
-
hostArguments: string[]
|
|
24
23
|
runtimeVersion: string
|
|
25
24
|
launchUrl: string
|
|
25
|
+
iconUrl?: string
|
|
26
26
|
// seed a new app's config once; never override the user's later choices.
|
|
27
27
|
defaults: Partial<SettingsValues>
|
|
28
28
|
// staged file names whose text contains the build-time placeholder origin.
|
package/src/bridge-contract.ts
CHANGED
|
@@ -441,39 +441,35 @@ export interface SemanticReadyProbe {
|
|
|
441
441
|
export const SIM_LONG_PRESS_DEFAULT_MS = 500
|
|
442
442
|
export const SIM_LONG_PRESS_MAX_MS = 5_000
|
|
443
443
|
|
|
444
|
-
export const SEMANTIC_READY_CONTENT_NODE_FLOOR = 100
|
|
445
444
|
export const SEMANTIC_READY_NODE_STABLE_MS = 750
|
|
446
445
|
export const SEMANTIC_READY_POLL_MS = 150
|
|
447
446
|
|
|
448
447
|
export const HEADLESS_TENANT_FETCH_HUNG_MARKER = 'headless tenant fetch hung'
|
|
449
448
|
|
|
450
|
-
type ReadyContentProbe =
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
'liveFrameActive' | 'browserSurfaceCount' | 'paintedAppContent' | 'flag'
|
|
455
|
-
>
|
|
449
|
+
type ReadyContentProbe = Partial<
|
|
450
|
+
Pick<
|
|
451
|
+
SemanticReadyProbe,
|
|
452
|
+
'liveFrameActive' | 'browserSurfaceCount' | 'paintedAppContent'
|
|
456
453
|
>
|
|
454
|
+
>
|
|
457
455
|
|
|
458
|
-
// the first content condition a probe satisfies.
|
|
459
|
-
//
|
|
460
|
-
//
|
|
456
|
+
// the first content condition a probe satisfies. inspectable targets alone
|
|
457
|
+
// never count, and neither does a node count: an error overlay is both, so
|
|
458
|
+
// ready needs painted app content, a live frame or a browser surface. empty
|
|
459
|
+
// when the probe has none.
|
|
461
460
|
export function readyProbeContentBasis(probe: ReadyContentProbe): string {
|
|
462
461
|
if (probe.paintedAppContent === true) return 'paintedAppContent'
|
|
463
462
|
if ((probe.browserSurfaceCount ?? 0) > 0) return 'browserSurface'
|
|
464
463
|
if (probe.liveFrameActive) return 'liveFrame'
|
|
465
|
-
if (probe.targets > 0) return 'targets'
|
|
466
|
-
if (probe.flag === true && probe.nodes >= SEMANTIC_READY_CONTENT_NODE_FLOOR)
|
|
467
|
-
return 'nodeFloor'
|
|
468
464
|
return ''
|
|
469
465
|
}
|
|
470
466
|
|
|
471
467
|
export function readyProbeHasContent(probe: ReadyContentProbe): boolean {
|
|
472
|
-
return readyProbeContentBasis(
|
|
468
|
+
return readyProbeContentBasis(probe) !== ''
|
|
473
469
|
}
|
|
474
470
|
|
|
475
|
-
// one probe shows a ready app: it has
|
|
476
|
-
//
|
|
471
|
+
// one probe shows a ready app: it has content behind it and is neither
|
|
472
|
+
// loading nor errored.
|
|
477
473
|
// `wait ready` also requires the node count to hold still; a caller that has
|
|
478
474
|
// already let the app settle judges a single probe with this alone.
|
|
479
475
|
export function readyProbeIsReady(probe: SemanticReadyProbe): boolean {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { createHash, randomUUID } from 'node:crypto'
|
|
2
|
+
import fs from 'node:fs'
|
|
3
|
+
import { homedir } from 'node:os'
|
|
4
|
+
import { dirname, join } from 'node:path'
|
|
5
|
+
import { mapLimit } from '../../../src/helpers/mapLimit.ts'
|
|
6
|
+
|
|
7
|
+
export const sha256 = (text: string) => createHash('sha256').update(text).digest('hex')
|
|
8
|
+
|
|
9
|
+
// the manifest of the package that owns a resolved module file, as a toolchain identity.
|
|
10
|
+
export function packageManifest(modulePath: string): string {
|
|
11
|
+
let directory = dirname(modulePath)
|
|
12
|
+
while (!fs.existsSync(join(directory, 'package.json'))) directory = dirname(directory)
|
|
13
|
+
return fs.readFileSync(join(directory, 'package.json'), 'utf8')
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// a build step that is a pure function of its input text keeps its output here, keyed by
|
|
17
|
+
// a digest of that text and of the toolchain that ran it. the directory is shared by
|
|
18
|
+
// every process and checkout of a user and lives on disk, since a linux tmpdir is tmpfs
|
|
19
|
+
// whose pages count against the memory builds are admitted on. one process per day
|
|
20
|
+
// removes old entries; other builds can read immediately without walking the shared cache again.
|
|
21
|
+
export function contentCache(name: string) {
|
|
22
|
+
const directory = join(homedir(), '.cache', name)
|
|
23
|
+
const retentionMs = 24 * 60 * 60 * 1000
|
|
24
|
+
let ready: Promise<void> | undefined
|
|
25
|
+
const prepare = () =>
|
|
26
|
+
(ready ??= (async () => {
|
|
27
|
+
await fs.promises.mkdir(directory, { recursive: true })
|
|
28
|
+
const day = Math.floor(Date.now() / retentionMs)
|
|
29
|
+
const claimed = await fs.promises
|
|
30
|
+
.open(join(directory, `.prune-${day}`), 'wx')
|
|
31
|
+
.catch((error: unknown) => {
|
|
32
|
+
if (error instanceof Error && 'code' in error && error.code === 'EEXIST')
|
|
33
|
+
return undefined
|
|
34
|
+
throw error
|
|
35
|
+
})
|
|
36
|
+
if (!claimed) return
|
|
37
|
+
await claimed.close()
|
|
38
|
+
const expired = Date.now() - retentionMs
|
|
39
|
+
await mapLimit(await fs.promises.readdir(directory), 8, async (entry) => {
|
|
40
|
+
if (entry === `.prune-${day}`) return
|
|
41
|
+
const path = join(directory, entry)
|
|
42
|
+
const stat = await fs.promises.stat(path).catch(() => undefined)
|
|
43
|
+
if (stat && stat.mtimeMs < expired) await fs.promises.rm(path, { force: true })
|
|
44
|
+
})
|
|
45
|
+
})())
|
|
46
|
+
return {
|
|
47
|
+
async get(key: string): Promise<string | undefined> {
|
|
48
|
+
await prepare()
|
|
49
|
+
return fs.promises
|
|
50
|
+
.readFile(join(directory, key), 'utf8')
|
|
51
|
+
.catch((error: unknown) => {
|
|
52
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
53
|
+
return undefined
|
|
54
|
+
throw error
|
|
55
|
+
})
|
|
56
|
+
},
|
|
57
|
+
async set(key: string, value: string) {
|
|
58
|
+
await prepare()
|
|
59
|
+
// a rename publishes the entry whole to a process that reads it concurrently.
|
|
60
|
+
const pending = join(directory, `${key}.${randomUUID()}.tmp`)
|
|
61
|
+
await fs.promises.writeFile(pending, value)
|
|
62
|
+
await fs.promises.rename(pending, join(directory, key))
|
|
63
|
+
},
|
|
64
|
+
}
|
|
65
|
+
}
|