peachsim 0.1.1700 → 0.1.1728
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/LICENSE +1 -1
- package/README.md +79 -5
- package/cli/app-bundle-resources.ts +5 -2
- package/cli/app-catalog.ts +10 -0
- package/cli/app-fonts.ts +5 -5
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +36 -9
- package/cli/bridge-diagnostics.ts +2 -1
- package/cli/cloud-client.ts +6 -3
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +180 -837
- package/cli/commands/coverage-swift.ts +19 -1
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detect.ts +84 -37
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +178 -22
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +181 -18
- package/cli/commands/inspect/settling.ts +22 -7
- package/cli/commands/inspect/wait-ready.ts +13 -5
- package/cli/commands/inspect.ts +56 -47
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +750 -0
- package/cli/commands/record.ts +263 -32
- package/cli/commands/screenshot.ts +2 -13
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +834 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +69 -101
- package/cli/commands/upload.ts +1 -1
- package/cli/current-sim.ts +4 -4
- package/cli/device-option.ts +1 -1
- package/cli/hints.ts +1 -6
- package/cli/main.ts +20 -1
- package/cli/metro-bundle-assets.ts +77 -0
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +32 -3
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/run-registry.ts +0 -8
- package/cli/scene-video.ts +18 -9
- package/cli/ws-bridge.ts +56 -14
- package/detox/index.ts +240 -18
- package/detox/launch-permissions.ts +183 -27
- 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 +10 -9
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +5 -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 +38744 -32209
- 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 +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +335 -70
- package/dist-lib/dev-bundle-resolution.cjs +15 -20
- package/dist-lib/expo-swift-bundle.cjs +22406 -23392
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +21 -2
- package/dist-lib/host/bridge-host.cjs +34611 -31375
- package/dist-lib/host/fetch-proxy-handler.cjs +475 -86
- 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 +2 -1
- package/dist-lib/host/websocket-proxy.cjs +311 -45
- package/dist-lib/index.cjs +2509 -640
- 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 +127 -16
- package/dist-lib/menu.cjs +10 -1
- package/dist-lib/menu.mjs +9 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2340 -605
- package/dist-lib/native-app-identity-project.cjs +1277 -243
- package/dist-lib/native-app-identity-project.mjs +1287 -254
- package/dist-lib/native-app-identity.cjs +26 -2
- package/dist-lib/native-app-identity.mjs +24 -2
- 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 +36 -101
- package/dist-lib/public-origins-lib.json +478 -434
- package/dist-lib/react-native-host-modules.cjs +127 -3
- package/dist-lib/react-native-host-modules.mjs +126 -3
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +32 -50
- package/dist-lib/sdk.cjs +161 -24
- package/dist-lib/sdk.mjs +154 -24
- package/dist-lib/skills.cjs +44096 -28607
- package/dist-lib/swift-compile.cjs +6294 -16931
- package/dist-lib/swift-compile.mjs +6282 -16928
- package/dist-lib/swift-package.cjs +81 -3
- package/dist-lib/swift-package.mjs +77 -3
- package/dist-lib/swift-submit.cjs +14 -4
- package/dist-lib/swift-submit.mjs +14 -4
- package/dist-lib/swift-toolchain.cjs +108 -18
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +14434 -20336
- package/dist-lib/vite.cjs +558 -132
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +2 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/capture/lockstep-clockContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +8 -4
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -14
- package/dist-types/packages/peach-engine/src/engine/riveContract.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/guest-module-overrides.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +1 -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 +6 -2
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +25 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +18 -2
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +29 -5
- package/dist-types/packages/peach-engine/src/render-worker/workletThreadIdentityContract.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/guestExecutionContract.d.ts +30 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +7 -5
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nativeBuildOptionsContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +22 -1
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +8 -2
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +12 -2
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +3 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +55 -81
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBATTRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAdvertisementData.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentral.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +394 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManagerConstants.h +224 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +187 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDefines.h +16 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBError.h +75 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBL2CAPChannel.h +50 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +530 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h +489 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManagerConstants.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +100 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +144 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.apinotes +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h +131 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +359 -2
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h +328 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +3 -60
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.apinotes +258 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h +103 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCFeliCaTag.h +267 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h +739 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO7816Tag.h +159 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCMiFareTag.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +60 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +169 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFTag.h +93 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h +58 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +156 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h +127 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h +201 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h +237 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NSUserActivity+CoreNFC.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Modules/module.modulemap +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProperties.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanStatus.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTQuickSwitch.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +107 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h +634 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h +118 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +2497 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2962 -367
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAccessPoint.h +110 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementDescription.h +88 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementViewController.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +199 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeDefinition.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeEventHandler.h +43 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengesViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKCloudPlayer.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDefines.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDialogController.h +35 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKEventListener.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKFriendRequestComposeViewController.h +60 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivity.h +201 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityDefinition.h +98 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityListener.h +28 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityPlayStyle.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityState.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionError.h +26 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionEventListener.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionSharingViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboard.h +205 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardEntry.h +23 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardScore.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardSet.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardViewController.h +34 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +321 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatch.h +94 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +229 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmakerViewController.h +100 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +20 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPeerPickerController.h +93 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +82 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicConstants.h +57 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicProtocols.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKReleaseState.h +16 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +41 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKScore.h +73 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSessionError.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +314 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +69 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChat.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChatService.h +145 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.apinotes +307 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.h +79 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +122 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +93 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h +49 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +54 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +92 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategoryValues.h +279 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h +79 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h +87 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalCoding.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h +59 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h +85 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h +57 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h +36 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h +23 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDefines.h +114 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h +164 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h +29 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h +109 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRRelease.h +35 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h +50 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +73 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthConceptIdentifier.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +470 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h +104 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h +47 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h +26 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutZoneUpdate.h +25 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationConcept.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationDoseEvent.h +113 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h +583 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadataEnums.h +250 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +64 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +294 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +77 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantityAggregationStyle.h +30 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h +184 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +90 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +722 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +33 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +31 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h +32 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h +45 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h +42 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +78 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h +157 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +166 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +37 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h +359 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +287 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedication.h +60 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +38 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +123 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h +341 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h +127 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivityType.h +147 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h +264 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h +62 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h +20 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +102 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h +364 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAAudibleMedia.h +41 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h +406 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MADefinitions.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAImageCaptioning.h +55 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h +69 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyFlow.h +142 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProvider.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProviderManager.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyTCPFlow.h +63 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyUDPFlow.h +86 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushManager.h +208 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushProvider.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppRule.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyManager.h +109 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProvider.h +98 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProviderProtocol.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettings.h +124 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettingsManager.h +116 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelNetworkSettings.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelProvider.h +31 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterControlProvider.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterDataProvider.h +235 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterFlow.h +177 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterManager.h +138 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterPacketProvider.h +99 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProvider.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProviderConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterRule.h +46 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterSettings.h +56 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFlowMetaData.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotConfigurationManager.h +493 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +529 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv4Settings.h +122 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv6Settings.h +121 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NENetworkRule.h +218 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEOnDemandRule.h +210 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacket.h +67 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelFlow.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelNetworkSettings.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelProvider.h +97 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProvider.h +160 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProxySettings.h +140 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelay.h +83 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelayManager.h +195 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyManager.h +39 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyNetworkSettings.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelNetworkSettings.h +57 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProvider.h +113 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderManager.h +108 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderProtocol.h +44 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderSession.h +55 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEURLFilter.h +51 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNConnection.h +162 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNManager.h +153 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocol.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIKEv2.h +357 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIPSec.h +71 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWBonjourServiceEndpoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWEndpoint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWHostEndpoint.h +68 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWPath.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTCPConnection.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTLSParameters.h +70 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWUDPSession.h +207 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.apinotes +351 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.h +74 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +197 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAnimation.h +428 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNBoundingVolume.h +50 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCAAnimationExtensions.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +356 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCameraController.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +431 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +591 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNJavascript.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLevelOfDetail.h +56 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +350 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +349 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +149 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h +79 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +695 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +727 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +462 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBehavior.h +219 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBody.h +148 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsContact.h +34 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsField.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsShape.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsWorld.h +90 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNReferenceNode.h +80 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNRenderer.h +102 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +250 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h +389 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneSource.h +348 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNShadable.h +573 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSkinner.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTechnique.h +320 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +64 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes +423 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitAvailability.h +10 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +88 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitTypes.h +264 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/scn_metal +75 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Modules/module.modulemap +12 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h +281 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecIdentity.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecKey.h +1616 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h +429 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h +775 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h +327 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecRandom.h +84 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +9 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +26 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +23 -0
- package/sdk/ios/usr/include/Block.h +56 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCrypto.h +34 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptoError.h +78 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptor.h +763 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +254 -47
- package/sdk/ios/usr/include/CommonCrypto/CommonHMAC.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonKeyDerivation.h +136 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonRandom.h +63 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonSymmetricKeywrap.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/module.modulemap +15 -0
- package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
- package/sdk/ios/usr/include/ObjectiveC.apinotes +437 -0
- package/sdk/ios/usr/include/TargetConditionals.h +525 -14
- package/sdk/ios/usr/include/___wctype.h +193 -0
- package/sdk/ios/usr/include/__wctype.h +43 -0
- package/sdk/ios/usr/include/_abort.h +36 -0
- package/sdk/ios/usr/include/_assert.h +80 -0
- package/sdk/ios/usr/include/_static_assert.h +33 -0
- package/sdk/ios/usr/include/_stdlib.h +403 -0
- package/sdk/ios/usr/include/_string.h +231 -0
- package/sdk/ios/usr/include/_strings.h +101 -0
- package/sdk/ios/usr/include/_types/_wctrans_t.h +33 -0
- package/sdk/ios/usr/include/_types/_wctype_t.h +33 -0
- package/sdk/ios/usr/include/_wchar.h +263 -0
- package/sdk/ios/usr/include/_wctype.h +129 -0
- package/sdk/ios/usr/include/_xlocale.h +47 -0
- package/sdk/ios/usr/include/alloca.h +46 -0
- package/sdk/ios/usr/include/architecture/byte_order.h +381 -0
- package/sdk/ios/usr/include/arm/_limits.h +13 -0
- package/sdk/ios/usr/include/arm/arch.h +71 -0
- package/sdk/ios/usr/include/arm/limits.h +136 -0
- package/sdk/ios/usr/include/arpa/inet.h +100 -0
- package/sdk/ios/usr/include/assert.h +77 -10
- package/sdk/ios/usr/include/bsm/audit.h +434 -0
- package/sdk/ios/usr/include/crt_externs.h +50 -0
- package/sdk/ios/usr/include/dispatch/base.h +369 -0
- package/sdk/ios/usr/include/dispatch/block.h +509 -0
- package/sdk/ios/usr/include/dispatch/data.h +290 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +68 -172
- package/sdk/ios/usr/include/dispatch/dispatch_swift_shims.h +61 -0
- package/sdk/ios/usr/include/dispatch/group.h +289 -0
- package/sdk/ios/usr/include/dispatch/introspection.h +190 -0
- package/sdk/ios/usr/include/dispatch/io.h +617 -0
- package/sdk/ios/usr/include/dispatch/object.h +680 -0
- package/sdk/ios/usr/include/dispatch/once.h +128 -0
- package/sdk/ios/usr/include/dispatch/queue.h +1824 -0
- package/sdk/ios/usr/include/dispatch/semaphore.h +124 -0
- package/sdk/ios/usr/include/dispatch/source.h +803 -0
- package/sdk/ios/usr/include/dispatch/time.h +144 -0
- package/sdk/ios/usr/include/dispatch/workloop.h +178 -0
- package/sdk/ios/usr/include/dlfcn.h +320 -7
- package/sdk/ios/usr/include/execinfo.h +100 -10
- package/sdk/ios/usr/include/ftw.h +63 -0
- package/sdk/ios/usr/include/gethostuuid.h +45 -0
- package/sdk/ios/usr/include/libkern/arm/OSByteOrder.h +195 -0
- package/sdk/ios/usr/include/limits.h +167 -4
- package/sdk/ios/usr/include/mach/arm/boolean.h +74 -0
- package/sdk/ios/usr/include/mach/arm/exception.h +86 -0
- package/sdk/ios/usr/include/mach/arm/kern_return.h +78 -0
- package/sdk/ios/usr/include/mach/arm/processor_info.h +76 -0
- package/sdk/ios/usr/include/mach/arm/rpc.h +39 -0
- package/sdk/ios/usr/include/mach/arm/thread_state.h +42 -0
- package/sdk/ios/usr/include/mach/arm/thread_status.h +302 -0
- package/sdk/ios/usr/include/mach/arm/vm_param.h +118 -0
- package/sdk/ios/usr/include/mach/arm/vm_types.h +162 -0
- package/sdk/ios/usr/include/mach/boolean.h +88 -4
- package/sdk/ios/usr/include/mach/clock.h +249 -0
- package/sdk/ios/usr/include/mach/clock_priv.h +203 -0
- package/sdk/ios/usr/include/mach/clock_types.h +127 -0
- package/sdk/ios/usr/include/mach/dyld_kernel.h +66 -0
- package/sdk/ios/usr/include/mach/error.h +117 -0
- package/sdk/ios/usr/include/mach/exc.h +285 -0
- package/sdk/ios/usr/include/mach/exception_types.h +204 -25
- package/sdk/ios/usr/include/mach/host_info.h +136 -51
- package/sdk/ios/usr/include/mach/host_notify.h +39 -0
- package/sdk/ios/usr/include/mach/host_priv.h +1167 -0
- package/sdk/ios/usr/include/mach/host_security.h +225 -0
- package/sdk/ios/usr/include/mach/host_special_ports.h +315 -0
- package/sdk/ios/usr/include/mach/kern_return.h +291 -2
- package/sdk/ios/usr/include/mach/kmod.h +180 -0
- package/sdk/ios/usr/include/mach/mach.h +237 -12
- package/sdk/ios/usr/include/mach/mach_error.h +93 -10
- package/sdk/ios/usr/include/mach/mach_host.h +1329 -5
- package/sdk/ios/usr/include/mach/mach_init.h +112 -13
- package/sdk/ios/usr/include/mach/mach_interface.h +52 -0
- package/sdk/ios/usr/include/mach/mach_port.h +1935 -4
- package/sdk/ios/usr/include/mach/mach_time.h +77 -14
- package/sdk/ios/usr/include/mach/mach_traps.h +311 -0
- package/sdk/ios/usr/include/mach/mach_types.h +297 -20
- package/sdk/ios/usr/include/mach/mach_voucher_types.h +259 -0
- package/sdk/ios/usr/include/mach/machine/boolean.h +40 -0
- package/sdk/ios/usr/include/mach/machine/exception.h +40 -0
- package/sdk/ios/usr/include/mach/machine/kern_return.h +40 -0
- package/sdk/ios/usr/include/mach/machine/processor_info.h +40 -0
- package/sdk/ios/usr/include/mach/machine/rpc.h +40 -0
- package/sdk/ios/usr/include/mach/machine/thread_state.h +44 -0
- package/sdk/ios/usr/include/mach/machine/thread_status.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_param.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_types.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +456 -142
- package/sdk/ios/usr/include/mach/memory_object_types.h +312 -0
- package/sdk/ios/usr/include/mach/message.h +972 -0
- package/sdk/ios/usr/include/mach/mig.h +180 -0
- package/sdk/ios/usr/include/mach/mig_errors.h +125 -0
- package/sdk/ios/usr/include/mach/mig_strncpy_zerofill_support.h +35 -0
- package/sdk/ios/usr/include/mach/ndr.h +207 -0
- package/sdk/ios/usr/include/mach/notify.h +141 -0
- package/sdk/ios/usr/include/mach/policy.h +235 -0
- package/sdk/ios/usr/include/mach/port.h +648 -0
- package/sdk/ios/usr/include/mach/processor.h +364 -0
- package/sdk/ios/usr/include/mach/processor_info.h +171 -0
- package/sdk/ios/usr/include/mach/processor_set.h +589 -0
- package/sdk/ios/usr/include/mach/rpc.h +135 -0
- package/sdk/ios/usr/include/mach/semaphore.h +78 -0
- package/sdk/ios/usr/include/mach/std_types.h +75 -0
- package/sdk/ios/usr/include/mach/sync_policy.h +47 -0
- package/sdk/ios/usr/include/mach/task.h +2887 -7
- package/sdk/ios/usr/include/mach/task_info.h +584 -19
- package/sdk/ios/usr/include/mach/task_inspect.h +57 -0
- package/sdk/ios/usr/include/mach/task_policy.h +182 -26
- package/sdk/ios/usr/include/mach/task_special_ports.h +135 -0
- package/sdk/ios/usr/include/mach/thread_act.h +1550 -5
- package/sdk/ios/usr/include/mach/thread_info.h +206 -28
- package/sdk/ios/usr/include/mach/thread_policy.h +268 -0
- package/sdk/ios/usr/include/mach/thread_special_ports.h +87 -0
- package/sdk/ios/usr/include/mach/thread_status.h +100 -0
- package/sdk/ios/usr/include/mach/thread_switch.h +77 -0
- package/sdk/ios/usr/include/mach/time_value.h +96 -4
- package/sdk/ios/usr/include/mach/vm_attributes.h +99 -0
- package/sdk/ios/usr/include/mach/vm_behavior.h +86 -0
- package/sdk/ios/usr/include/mach/vm_inherit.h +93 -0
- package/sdk/ios/usr/include/mach/vm_map.h +1558 -0
- package/sdk/ios/usr/include/mach/vm_page_size.h +68 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +183 -7
- package/sdk/ios/usr/include/mach/vm_purgable.h +166 -0
- package/sdk/ios/usr/include/mach/vm_region.h +400 -36
- package/sdk/ios/usr/include/mach/vm_statistics.h +387 -96
- package/sdk/ios/usr/include/mach/vm_sync.h +84 -0
- package/sdk/ios/usr/include/mach/vm_types.h +194 -7
- package/sdk/ios/usr/include/mach-o/arch.h +154 -16
- package/sdk/ios/usr/include/mach-o/fat.h +89 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +146 -12
- package/sdk/ios/usr/include/mach-o/loader.h +1679 -139
- package/sdk/ios/usr/include/mach_debug/hash_info.h +75 -0
- package/sdk/ios/usr/include/mach_debug/ipc_info.h +199 -0
- package/sdk/ios/usr/include/mach_debug/lockgroup_info.h +74 -0
- package/sdk/ios/usr/include/mach_debug/mach_debug_types.h +200 -0
- package/sdk/ios/usr/include/mach_debug/page_info.h +64 -0
- package/sdk/ios/usr/include/mach_debug/vm_info.h +149 -0
- package/sdk/ios/usr/include/mach_debug/zone_info.h +209 -0
- package/sdk/ios/usr/include/machine/limits.h +14 -0
- package/sdk/ios/usr/include/module.modulemap +5 -0
- package/sdk/ios/usr/include/net/if_types.h +152 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +10 -0
- package/sdk/ios/usr/include/objc/NSObject.h +23 -25
- package/sdk/ios/usr/include/objc/objc-api.h +310 -0
- package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
- package/sdk/ios/usr/include/objc/objc.h +243 -0
- package/sdk/ios/usr/include/objc/runtime.h +1933 -0
- package/sdk/ios/usr/include/os.modulemap +11 -0
- package/sdk/ios/usr/include/pthread/pthread_impl.h +66 -0
- package/sdk/ios/usr/include/pthread/sched.h +46 -0
- package/sdk/ios/usr/include/pthread.h +754 -4
- package/sdk/ios/usr/include/pwd.h +119 -0
- package/sdk/ios/usr/include/sched.h +46 -0
- package/sdk/ios/usr/include/secure/_string.h +295 -0
- package/sdk/ios/usr/include/secure/_strings.h +96 -0
- package/sdk/ios/usr/include/spawn.h +193 -0
- package/sdk/ios/usr/include/stddef.h +90 -0
- package/sdk/ios/usr/include/stdlib.h +62 -17
- package/sdk/ios/usr/include/string.h +62 -8
- package/sdk/ios/usr/include/sys/_pthread/_pthread_cond_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_condattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutex_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutexattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_once_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlockattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_select.h +57 -0
- package/sdk/ios/usr/include/sys/_types/_blkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_blksize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_caddr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_dev_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsblkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsfilcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsobj_id_t.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_graftdmg_un.h +64 -0
- package/sdk/ios/usr/include/sys/_types/_guid_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_id_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino64_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_mach_port_t.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_mbstate_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_mount_t.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_nlink_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_os_inline.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_posix_vdisable.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_rsize_t.h +55 -0
- package/sdk/ios/usr/include/sys/_types/_suseconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timeval.h +39 -0
- package/sdk/ios/usr/include/sys/_types/_u_char.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_short.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_useconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uuid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_vnode_t.h +34 -0
- package/sdk/ios/usr/include/sys/acl.h +215 -0
- package/sdk/ios/usr/include/sys/attr.h +635 -0
- package/sdk/ios/usr/include/sys/cdefs.h +20 -0
- package/sdk/ios/usr/include/sys/event.h +388 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -0
- package/sdk/ios/usr/include/sys/kauth.h +409 -0
- package/sdk/ios/usr/include/sys/mount.h +470 -0
- package/sdk/ios/usr/include/sys/queue.h +909 -0
- package/sdk/ios/usr/include/sys/resource.h +600 -0
- package/sdk/ios/usr/include/sys/select.h +134 -0
- package/sdk/ios/usr/include/sys/spawn.h +84 -0
- package/sdk/ios/usr/include/sys/sysctl.h +803 -57
- package/sdk/ios/usr/include/sys/syslimits.h +131 -11
- package/sdk/ios/usr/include/sys/syslog.h +236 -0
- package/sdk/ios/usr/include/sys/types.h +236 -19
- package/sdk/ios/usr/include/sys/ucred.h +116 -0
- package/sdk/ios/usr/include/sys/un.h +105 -0
- package/sdk/ios/usr/include/sys/unistd.h +225 -0
- package/sdk/ios/usr/include/sys/vm.h +89 -0
- package/sdk/ios/usr/include/sys/wait.h +256 -0
- package/sdk/ios/usr/include/sysdir.h +79 -0
- package/sdk/ios/usr/include/syslog.h +24 -0
- package/sdk/ios/usr/include/unistd.h +799 -3
- package/sdk/ios/usr/include/uuid/uuid.h +69 -10
- package/sdk/ios/usr/include/wchar.h +71 -0
- package/sdk/ios/usr/include/wctype.h +35 -0
- package/sdk/ios/usr/include/xlocale/___wctype.h +146 -0
- package/sdk/ios/usr/include/xlocale/_ctype.h +240 -0
- package/sdk/ios/usr/include/xlocale/_stdlib.h +77 -0
- package/sdk/ios/usr/include/xlocale/_string.h +43 -0
- package/sdk/ios/usr/include/xlocale/_wchar.h +160 -0
- package/sdk/ios/usr/include/xlocale/_wctype.h +100 -0
- package/sdk/ios/usr/include/xlocale.h +61 -0
- package/sdk/ios/usr/include/xpc/availability.h +141 -0
- package/sdk/ios/usr/include/xpc/base.h +243 -0
- package/sdk/ios/wasm/include/AvailabilityInternal.h +24 -0
- package/sdk/ios/wasm/include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/include/_locale.h +3 -0
- package/sdk/ios/wasm/include/_locale_posix2008.h +3 -0
- package/sdk/ios/wasm/include/_types/_locale_t.h +3 -0
- package/sdk/ios/wasm/include/arpa/inet.h +15 -0
- package/sdk/ios/wasm/include/dirent.h +52 -0
- package/sdk/ios/wasm/include/dlfcn.h +13 -1
- package/sdk/ios/wasm/include/errno.h +22 -0
- package/sdk/ios/wasm/include/fcntl.h +31 -0
- package/sdk/ios/wasm/include/ftw.h +15 -0
- package/sdk/ios/wasm/include/libkern/_OSByteOrder.h +6 -0
- package/sdk/ios/wasm/include/limits.h +9 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/exception.h +1 -4
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/rpc.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +1 -17
- package/sdk/ios/wasm/include/machine/_endian.h +2 -0
- package/sdk/ios/wasm/include/machine/_param.h +2 -0
- package/sdk/ios/wasm/include/machine/endian.h +1 -1
- package/sdk/ios/wasm/include/machine/limits.h +106 -2
- package/sdk/ios/wasm/include/machine/param.h +152 -0
- package/sdk/ios/wasm/include/netinet/in.h +11 -0
- package/sdk/ios/wasm/include/os/object.h +10 -0
- package/sdk/ios/wasm/include/pthread.h +14 -0
- package/sdk/ios/wasm/include/stdio.h +36 -0
- package/sdk/ios/wasm/include/stdlib.h +39 -1
- package/sdk/ios/wasm/include/strings.h +9 -0
- package/sdk/ios/wasm/include/sys/_types/_iovec_t.h +6 -0
- package/sdk/ios/wasm/include/sys/_types/_mode_t.h +10 -0
- package/sdk/ios/wasm/include/sys/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/param.h +4 -0
- package/sdk/ios/wasm/include/sys/resource.h +43 -0
- package/sdk/ios/wasm/include/sys/socket.h +75 -9
- package/sdk/ios/wasm/include/sys/stat.h +63 -0
- package/sdk/ios/wasm/include/sys/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -0
- package/sdk/ios/wasm/include/sys/types.h +13 -0
- package/sdk/ios/wasm/include/sys/un.h +7 -0
- package/sdk/ios/wasm/include/time.h +3 -1
- package/sdk/ios/wasm/include/unistd.h +25 -3
- package/sdk/ios/wasm/include/xlocale/_stdlib.h +37 -0
- package/sdk/ios/wasm/storage-include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/storage-include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/storage-include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/storage-include/machine/_endian.h +9 -0
- package/sdk/ios/wasm/storage-include/machine/_param.h +8 -0
- package/sdk/ios/wasm/storage-include/machine/_types.h +31 -0
- package/sdk/ios/wasm/storage-include/machine/endian.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/limits.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/types.h +15 -0
- package/sdk/native-hashes.json +81 -0
- package/skills/contrast/SKILL.md +3 -2
- package/skills/peach-test/SKILL.md +7 -3
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-root-module.ts +145 -0
- package/src/androidRootModuleContract.ts +39 -0
- package/src/appPackageContract.ts +81 -0
- package/src/assetCatalogContract.ts +10 -1
- package/src/backend-origin.ts +11 -8
- package/src/bridge-constants.ts +7 -0
- package/src/bridge-contract.ts +53 -1
- package/src/bundle-channel.mjs +21 -4
- package/src/capture-contract.ts +3 -1
- package/src/cli-runtime.ts +6 -1
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/device-catalog.ts +10 -4
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +376 -0
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +80 -24
- package/src/expo-swift-host.ts +905 -47
- package/src/expo-swift-ready.ts +43 -11
- package/src/expoSwiftContract.ts +3 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +35 -1
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +31 -0
- package/src/host/fetch-proxy-handler.ts +19 -1
- package/src/host/network-policy-proxy.ts +421 -0
- package/src/host/network-policy.ts +121 -0
- package/src/host/staged-host-files.ts +98 -3
- package/src/host/websocket-frame-guard.ts +163 -0
- package/src/host/websocket-proxy-headers.ts +29 -0
- package/src/host/websocket-proxy.ts +100 -58
- package/src/index.ts +3 -0
- package/src/installed-native-build-options.ts +154 -0
- package/src/installed-package-versions.ts +56 -49
- package/src/kotlin-host.ts +21 -18
- package/src/kotlin-instance-source.ts +126 -0
- package/src/material-symbol-fonts.ts +6 -4
- package/src/menu.ts +13 -0
- package/src/metro-plugin.ts +8 -0
- package/src/native-app-identity-project.ts +11 -2
- package/src/native-app-identity.ts +27 -0
- package/src/native-dev-bundle-url.ts +0 -18
- package/src/native-firebase-config.ts +71 -5
- package/src/native-preparation.ts +30 -0
- package/src/nativePreparationContract.ts +3 -0
- package/src/nitro-adapter.lock.json +382 -230
- package/src/nitro-bundle.ts +33 -1
- package/src/nitro-compile.ts +46 -7
- package/src/nitro-dependencies.ts +228 -0
- package/src/nitro-source.ts +191 -37
- package/src/nitroContract.ts +7 -0
- package/src/packageVersionsContract.ts +33 -0
- package/src/react-native-bridge-modules.ts +81 -32
- package/src/react-native-host-modules.ts +141 -4
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/runtime-assets.ts +10 -0
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +27 -1
- package/src/sim-client.ts +5 -2
- package/src/storageSnapshotContract.ts +25 -10
- package/src/stub-pattern-matcher.ts +17 -4
- package/src/swift-compile.ts +1385 -4156
- package/src/swift-compiler-digest.ts +1 -2
- package/src/swift-coverage/package.ts +103 -58
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +101 -123
- package/src/swift-coverage/xcode-bridging.ts +1 -12
- package/src/swift-coverage/xcode-packages.ts +167 -52
- package/src/swift-coverage/xcode.ts +3 -7
- package/src/swift-cxx-declarations.ts +205 -0
- package/src/swift-cxx-deps.ts +48 -0
- package/src/swift-cxx-reachable.ts +298 -0
- package/src/swift-cxx-standin.ts +248 -0
- package/src/swift-distribution.lock.json +26 -16
- package/src/swift-host.ts +308 -41
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +752 -238
- package/src/swift-objc-import.ts +25 -964
- package/src/swift-objc-runtime.ts +7 -0
- package/src/swift-objc-standin.ts +264 -56
- package/src/swift-package-manifest.ts +190 -41
- package/src/swift-package.ts +123 -3
- package/src/swift-packages.ts +262 -39
- package/src/swift-pdf-raster.ts +115 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-shared-sdk.ts +45 -0
- package/src/swift-source-file.ts +10 -6
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-digest.ts +12 -15
- package/src/swift-standin-emit.ts +600 -57
- package/src/swift-standins.ts +679 -105
- package/src/swift-submit.ts +26 -6
- package/src/swift-toolchain.ts +143 -18
- package/src/swiftContract.ts +50 -29
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/vite-plugin-one.ts +13 -9
- package/src/vite-plugin.ts +28 -28
- package/src/workspace-root.ts +15 -0
- package/src/xcode-json-project.ts +52 -1
- package/src/xcode-project.ts +509 -38
- package/src/swift-objc-export.ts +0 -532
- package/src/swift-objc-metadata.ts +0 -534
package/cli/commands/control.ts
CHANGED
|
@@ -2,21 +2,18 @@ import { spawn, spawnSync } from 'node:child_process'
|
|
|
2
2
|
import fs from 'node:fs'
|
|
3
3
|
import http from 'node:http'
|
|
4
4
|
import https from 'node:https'
|
|
5
|
-
import { createRequire } from 'node:module'
|
|
6
5
|
import net from 'node:net'
|
|
7
6
|
import os from 'node:os'
|
|
8
7
|
import path from 'node:path'
|
|
9
8
|
import { WebSocket } from 'ws'
|
|
10
|
-
import { pinSharedListenerScan, probePort } from '../../scripts/dev-server-scanner'
|
|
11
9
|
import { formatLockOwner } from '../../src/agent-identity'
|
|
10
|
+
import { ANDROID_ROOT_MODULE_QUERY_PARAM } from '../../src/androidRootModuleContract'
|
|
12
11
|
import { isAppDeepLinkTarget, openAppUrl } from '../../src/app-url'
|
|
13
|
-
import { isLoopbackHost
|
|
14
|
-
import { resolveSootsimShellBaseUrlForBridgePort } from '../../src/bridge-constants'
|
|
12
|
+
import { isLoopbackHost } from '../../src/backend-origin'
|
|
15
13
|
import { getCliRuntime } from '../../src/cli-runtime.ts'
|
|
16
14
|
import {
|
|
17
15
|
applyPeachConfigToUrl,
|
|
18
16
|
mergePeachConfig,
|
|
19
|
-
PEACH_CONFIG_QUERY_PARAM,
|
|
20
17
|
readPeachConfigFromSearchParams,
|
|
21
18
|
type PeachConfig,
|
|
22
19
|
} from '../../src/config'
|
|
@@ -25,10 +22,7 @@ import {
|
|
|
25
22
|
desktopHostPlatform,
|
|
26
23
|
headlessHostCommand,
|
|
27
24
|
} from '../../src/desktop-host-delivery'
|
|
28
|
-
import {
|
|
29
|
-
resolveConnectionInput,
|
|
30
|
-
type ResolvedDevBundle,
|
|
31
|
-
} from '../../src/dev-bundle-resolution'
|
|
25
|
+
import { type ResolvedDevBundle } from '../../src/dev-bundle-resolution'
|
|
32
26
|
import { isDeviceModel, type DeviceModel } from '../../src/device-catalog.ts'
|
|
33
27
|
import { readProjectDotEnv } from '../../src/dot-env'
|
|
34
28
|
import { awaitStampedExpoSwiftReady } from '../../src/expo-swift-ready'
|
|
@@ -46,59 +40,21 @@ import {
|
|
|
46
40
|
runtimeDir,
|
|
47
41
|
runtimesDir,
|
|
48
42
|
} from '../../src/home-paths'
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
isStagedHostFileRequest,
|
|
52
|
-
stageHostBytes,
|
|
53
|
-
stageHostFile,
|
|
54
|
-
stageHostLaunchMetadata,
|
|
55
|
-
} from '../../src/host/staged-host-files'
|
|
56
|
-
import { readInstalledNativePackageVersions } from '../../src/installed-package-versions'
|
|
43
|
+
import { stageHostBytes } from '../../src/host/staged-host-files'
|
|
57
44
|
import { LAUNCH_METADATA_QUERY_PARAM } from '../../src/launchMetadataContract'
|
|
58
45
|
import { detectBundleModeFromText } from '../../src/metro-production-bundle'
|
|
59
|
-
import { resolveMetroProjectRoot } from '../../src/metro-project-root'
|
|
60
|
-
import {
|
|
61
|
-
canExtractNativeAppIdentity,
|
|
62
|
-
createNativeAppIdentityHeader,
|
|
63
|
-
} from '../../src/native-app-identity'
|
|
64
|
-
import {
|
|
65
|
-
NativeAppTargetSelectionError,
|
|
66
|
-
readNativeAppIdentityFromProject,
|
|
67
|
-
} from '../../src/native-app-identity-project'
|
|
68
46
|
import { applyHotMode } from '../../src/native-dev-bundle-url'
|
|
69
|
-
import {
|
|
70
|
-
readExpoConfigAsync,
|
|
71
|
-
readNativeFirebaseConfig,
|
|
72
|
-
} from '../../src/native-firebase-config'
|
|
73
47
|
import { isProcessRunning } from '../../src/process-liveness'
|
|
74
48
|
import { ensureProfile } from '../../src/profiles'
|
|
75
|
-
import { rnxPublicBrand } from '../../src/public-brand'
|
|
76
49
|
import {
|
|
77
50
|
resolveDevCheckoutRuntimeRoot,
|
|
78
51
|
runtimeVersionHostname,
|
|
79
52
|
} from '../../src/runtime-assets'
|
|
80
53
|
import { rnxRuntime } from '../../src/runtime-delivery'
|
|
81
|
-
import {
|
|
82
|
-
PEACH_SIMULATOR_SHELL_FILE,
|
|
83
|
-
isPeachSimulatorDocumentPath,
|
|
84
|
-
} from '../../src/simulator-route'
|
|
85
54
|
import { sleep } from '../../src/sleep'
|
|
86
|
-
import { stageAppBundleResources } from '../app-bundle-resources'
|
|
87
|
-
import { discoverAppCatalog } from '../app-catalog'
|
|
88
55
|
import { loadRNXAppConfig } from '../app-config'
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
findExpoAppConfig,
|
|
92
|
-
resolveAppProject,
|
|
93
|
-
type ResolvedAppProject,
|
|
94
|
-
} from '../app-project'
|
|
95
|
-
import {
|
|
96
|
-
type DiscoveredAppSplashSpec,
|
|
97
|
-
discoverConfigPluginAppSplash,
|
|
98
|
-
discoverOneNativeAppSplash,
|
|
99
|
-
encodeAppSplashWire,
|
|
100
|
-
splashImageUrls,
|
|
101
|
-
} from '../app-splash'
|
|
56
|
+
import { findExpoAppConfig } from '../app-project'
|
|
57
|
+
import { discoverOneNativeAppSplash } from '../app-splash'
|
|
102
58
|
import { printBridgeFailureDiagnostics } from '../bridge-diagnostics'
|
|
103
59
|
import {
|
|
104
60
|
assertNoPendingOpen,
|
|
@@ -122,19 +78,31 @@ import {
|
|
|
122
78
|
BRIDGE_VALUE_FLAGS,
|
|
123
79
|
BridgeSimLockedError,
|
|
124
80
|
createBridge,
|
|
81
|
+
isLiveBridge,
|
|
82
|
+
callInBridgeWrite,
|
|
125
83
|
createBridgeFromParsed,
|
|
126
84
|
parseBridgeCliArgs,
|
|
127
85
|
printBridgeWorldNotice,
|
|
128
86
|
resolveBridgePortForPin,
|
|
129
|
-
resolveBridgeWorld,
|
|
130
87
|
worldForBridgePort,
|
|
131
88
|
type BridgeSimInfo,
|
|
132
89
|
type ParsedBridgeCliArgs,
|
|
90
|
+
type WsBridge,
|
|
133
91
|
} from '../ws-bridge'
|
|
134
|
-
import { readNativeProjectRenderer } from './detect'
|
|
135
92
|
import { inspectDescribe, inspectReadySnapshot, waitReadyReason } from './inspect/core'
|
|
136
93
|
import { waitForSimReady } from './inspect/shared'
|
|
137
94
|
import { runInstallDesktop } from './install-desktop'
|
|
95
|
+
import {
|
|
96
|
+
buildShellUrl,
|
|
97
|
+
looksLikeShellPathTarget,
|
|
98
|
+
looksLikeSootsimUrl,
|
|
99
|
+
resolveAppProjectForBundleUrl,
|
|
100
|
+
resolveConnectionInputForCli,
|
|
101
|
+
resolveShellBaseUrlForBridgePort,
|
|
102
|
+
shouldResolveBundleTargetInCli,
|
|
103
|
+
startExpoConfigRead,
|
|
104
|
+
type BuildShellUrlOptions,
|
|
105
|
+
} from './shell-url'
|
|
138
106
|
import { hasInstalledPeachSkills } from './skills'
|
|
139
107
|
import type { DriverId, DriverLaunchResult } from '../drivers/types'
|
|
140
108
|
|
|
@@ -175,19 +143,6 @@ const OPEN_BRIDGE_SILENCE_MS = 30_000
|
|
|
175
143
|
// live daemon as unreachable.
|
|
176
144
|
const LIVE_BRIDGE_HANDSHAKE_TIMEOUT_MS = 2_000
|
|
177
145
|
|
|
178
|
-
// built-in shell apps use pathname-based routing, not ?bundle= params
|
|
179
|
-
const SHELL_APPS: Record<string, string> = {
|
|
180
|
-
rn: '/rn',
|
|
181
|
-
connectrn: '/rn',
|
|
182
|
-
'connect-rn': '/rn',
|
|
183
|
-
clock: '/app/clock',
|
|
184
|
-
'native-ui': '/app/native-ui',
|
|
185
|
-
tamagui: '/app/tamagui',
|
|
186
|
-
settings: '/app/settings',
|
|
187
|
-
photos: '/app/photos',
|
|
188
|
-
camera: '/app/camera',
|
|
189
|
-
}
|
|
190
|
-
|
|
191
146
|
function parsePositiveIntegerEnv(name: string): number | null {
|
|
192
147
|
const value = process.env[name]?.trim()
|
|
193
148
|
if (!value) return null
|
|
@@ -257,10 +212,6 @@ export function resolveDriverHeadless(args: string[], driverId: string): boolean
|
|
|
257
212
|
return false
|
|
258
213
|
}
|
|
259
214
|
|
|
260
|
-
function normalizeKnownTarget(target: string): string {
|
|
261
|
-
return target.trim()
|
|
262
|
-
}
|
|
263
|
-
|
|
264
215
|
type BridgeOpenGate = {
|
|
265
216
|
newShell: boolean
|
|
266
217
|
simId?: string
|
|
@@ -629,71 +580,6 @@ function canConnectToBridge(
|
|
|
629
580
|
return bridgeHandshake(port, timeoutMs, signal).then((result) => result === 'open')
|
|
630
581
|
}
|
|
631
582
|
|
|
632
|
-
function looksLikeSootsimUrl(target: string): boolean {
|
|
633
|
-
try {
|
|
634
|
-
const url = new URL(target)
|
|
635
|
-
const pathname = url.pathname.replace(/\/+$/, '') || '/'
|
|
636
|
-
return (
|
|
637
|
-
url.searchParams.has('open') ||
|
|
638
|
-
url.searchParams.has('port') ||
|
|
639
|
-
url.searchParams.has('bundle') ||
|
|
640
|
-
url.searchParams.has('demo') ||
|
|
641
|
-
url.searchParams.has('test') ||
|
|
642
|
-
url.searchParams.has('case') ||
|
|
643
|
-
url.pathname.includes(PEACH_SIMULATOR_SHELL_FILE) ||
|
|
644
|
-
isPeachSimulatorDocumentPath(pathname) ||
|
|
645
|
-
pathname === '/sootsim' ||
|
|
646
|
-
url.pathname === '/__peachsim' ||
|
|
647
|
-
url.pathname === '/__peachsim/' ||
|
|
648
|
-
pathname === '/rn' ||
|
|
649
|
-
/^\/rn\/[^/]+$/i.test(pathname) ||
|
|
650
|
-
/^\/app\/[^/]+$/i.test(pathname) ||
|
|
651
|
-
pathname === '/__peachsim/rn' ||
|
|
652
|
-
/^\/__peachsim\/rn\/[^/]+$/i.test(pathname) ||
|
|
653
|
-
/^\/__peachsim\/app\/[^/]+$/i.test(pathname)
|
|
654
|
-
)
|
|
655
|
-
} catch {
|
|
656
|
-
return false
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
function looksLikeShellPathTarget(target: string): boolean {
|
|
661
|
-
try {
|
|
662
|
-
const url = new URL(target, 'http://sootsim.local')
|
|
663
|
-
if (url.origin !== 'http://sootsim.local') return false
|
|
664
|
-
const pathname = url.pathname.replace(/\/+$/, '') || '/'
|
|
665
|
-
return (
|
|
666
|
-
pathname === '/rn' ||
|
|
667
|
-
/^\/rn\/[^/]+$/i.test(pathname) ||
|
|
668
|
-
/^\/app\/[^/]+$/i.test(pathname) ||
|
|
669
|
-
pathname === '/__peachsim/rn' ||
|
|
670
|
-
/^\/__peachsim\/rn\/[^/]+$/i.test(pathname) ||
|
|
671
|
-
/^\/__peachsim\/app\/[^/]+$/i.test(pathname)
|
|
672
|
-
)
|
|
673
|
-
} catch {
|
|
674
|
-
return false
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
function buildShellPathOpenUrl(target: string, baseUrl: string): string {
|
|
679
|
-
const targetUrl = new URL(target, 'http://sootsim.local')
|
|
680
|
-
const url = new URL(baseUrl)
|
|
681
|
-
const prefix = getShellRoutePrefix(url.pathname)
|
|
682
|
-
const routePath = targetUrl.pathname.startsWith('/__peachsim/')
|
|
683
|
-
? targetUrl.pathname.slice('/__peachsim'.length)
|
|
684
|
-
: targetUrl.pathname
|
|
685
|
-
|
|
686
|
-
url.pathname = `${prefix}${routePath}`
|
|
687
|
-
const baseDemo = url.searchParams.getAll('demo')
|
|
688
|
-
url.search = targetUrl.search
|
|
689
|
-
// demo also sets embed chrome around native routes; a target can override it.
|
|
690
|
-
if (!targetUrl.searchParams.has('demo')) {
|
|
691
|
-
for (const demo of baseDemo) url.searchParams.append('demo', demo)
|
|
692
|
-
}
|
|
693
|
-
url.hash = targetUrl.hash
|
|
694
|
-
return url.toString()
|
|
695
|
-
}
|
|
696
|
-
|
|
697
583
|
// peach share/preview/build links (e.g. https://peachsim.com/preview/<id>,
|
|
698
584
|
// https://contrast.dev/build/<owner>/<repo>/<branch>) are full player pages
|
|
699
585
|
// served by the Contrast app — NOT Metro bundles and NOT driveable shell sims.
|
|
@@ -717,90 +603,6 @@ function looksLikeSootSimShareUrl(target: string): boolean {
|
|
|
717
603
|
}
|
|
718
604
|
}
|
|
719
605
|
|
|
720
|
-
function localBasePort(target: string): number | null {
|
|
721
|
-
try {
|
|
722
|
-
const url = new URL(target.startsWith('http') ? target : `http://${target}`)
|
|
723
|
-
const pathname = url.pathname || '/'
|
|
724
|
-
if ((pathname !== '/' && pathname !== '') || url.search || url.hash) return null
|
|
725
|
-
if (!isLoopbackHost(url.hostname)) return null
|
|
726
|
-
const port = url.port ? Number(url.port) : url.protocol === 'https:' ? 443 : 80
|
|
727
|
-
return Number.isFinite(port) && port > 0 ? port : null
|
|
728
|
-
} catch {
|
|
729
|
-
return null
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
// a dev server started alongside open connect may still be booting when the
|
|
734
|
-
// first probe lands. retry briefly so staging does not fail on a server that
|
|
735
|
-
// becomes probe-ready a few seconds later.
|
|
736
|
-
const DEV_BUNDLE_RESOLVE_ATTEMPTS = 15
|
|
737
|
-
const DEV_BUNDLE_RESOLVE_INTERVAL_MS = 1000
|
|
738
|
-
|
|
739
|
-
async function resolveConnectionInputForCli(
|
|
740
|
-
target: string,
|
|
741
|
-
signal?: AbortSignal,
|
|
742
|
-
): Promise<ResolvedDevBundle> {
|
|
743
|
-
const normalized = normalizeKnownTarget(target)
|
|
744
|
-
const registeredPort = /^\d+$/.test(normalized)
|
|
745
|
-
? Number(normalized)
|
|
746
|
-
: localBasePort(normalized)
|
|
747
|
-
|
|
748
|
-
console.log(` resolving native bundle for ${normalized} (waiting for the dev server)…`)
|
|
749
|
-
let lastError: Error | null = null
|
|
750
|
-
const releaseListenerScan = pinSharedListenerScan()
|
|
751
|
-
try {
|
|
752
|
-
for (let attempt = 0; attempt < DEV_BUNDLE_RESOLVE_ATTEMPTS; attempt++) {
|
|
753
|
-
signal?.throwIfAborted()
|
|
754
|
-
let resolutionTarget = normalized
|
|
755
|
-
if (registeredPort && registeredPort > 0) {
|
|
756
|
-
const discovered = await probePort(registeredPort)
|
|
757
|
-
// a provisional bundle URL is enough to LIST the server but not to open
|
|
758
|
-
// it; resolveConnectionInput joins the scanner's pending manifest with
|
|
759
|
-
// the server response instead of starting the same work again.
|
|
760
|
-
if (discovered && !discovered.bundleUrlProvisional) {
|
|
761
|
-
return {
|
|
762
|
-
bundleUrl: projectLoopbackUrl(discovered.bundleUrl),
|
|
763
|
-
port: discovered.port,
|
|
764
|
-
framework: discovered.framework,
|
|
765
|
-
projectName: discovered.projectName,
|
|
766
|
-
manifestProjectRoot: discovered.manifestProjectRoot,
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
// keep the scanner's answering address and join its manifest request.
|
|
770
|
-
// probing both loopback families again duplicates cold config work.
|
|
771
|
-
if (discovered?.bundleUrlProvisional && /^\d+$/.test(normalized)) {
|
|
772
|
-
resolutionTarget = new URL(discovered.bundleUrl).origin
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
try {
|
|
777
|
-
const resolved = await resolveConnectionInput(resolutionTarget, undefined, {
|
|
778
|
-
waitMs: null,
|
|
779
|
-
signal,
|
|
780
|
-
})
|
|
781
|
-
return { ...resolved, bundleUrl: projectLoopbackUrl(resolved.bundleUrl) }
|
|
782
|
-
} catch (error) {
|
|
783
|
-
if (
|
|
784
|
-
!(error instanceof Error) ||
|
|
785
|
-
!error.message.startsWith('could not resolve a native bundle')
|
|
786
|
-
) {
|
|
787
|
-
throw error
|
|
788
|
-
}
|
|
789
|
-
lastError = error
|
|
790
|
-
}
|
|
791
|
-
await sleep(DEV_BUNDLE_RESOLVE_INTERVAL_MS)
|
|
792
|
-
}
|
|
793
|
-
throw (
|
|
794
|
-
lastError ??
|
|
795
|
-
new Error(
|
|
796
|
-
'could not resolve a native bundle for ' + normalized + ' after retrying.',
|
|
797
|
-
)
|
|
798
|
-
)
|
|
799
|
-
} finally {
|
|
800
|
-
releaseListenerScan()
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
606
|
// a dev server builds an app's graph on the first request for its bundle and
|
|
805
607
|
// finishes the build after that request goes away. `peach open` asks as soon as
|
|
806
608
|
// the bundle is resolved, so the build overlaps bridge, host and runtime boot;
|
|
@@ -817,45 +619,13 @@ function startDevServerBuild(bundleUrl: string): void {
|
|
|
817
619
|
request.on('error', () => {})
|
|
818
620
|
}
|
|
819
621
|
|
|
820
|
-
function
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
return '
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
function buildConnectOpenUrl(target: string, baseUrl: string): string {
|
|
829
|
-
const normalizedTarget = normalizeKnownTarget(target)
|
|
830
|
-
const url = new URL(baseUrl)
|
|
831
|
-
const prefix = getShellRoutePrefix(url.pathname)
|
|
832
|
-
|
|
833
|
-
url.pathname = `${prefix}/rn`
|
|
834
|
-
url.searchParams.delete('bundle')
|
|
835
|
-
url.searchParams.delete('app')
|
|
836
|
-
url.searchParams.delete('open')
|
|
837
|
-
url.searchParams.delete('port')
|
|
838
|
-
|
|
839
|
-
if (/^\d+$/.test(normalizedTarget)) {
|
|
840
|
-
url.pathname = `${prefix}/rn/${normalizedTarget}`
|
|
841
|
-
} else {
|
|
842
|
-
url.pathname = `${prefix}/rn`
|
|
843
|
-
url.searchParams.set('open', normalizedTarget)
|
|
622
|
+
async function readSimDevice(bridge: WsBridge, simId: string): Promise<string | null> {
|
|
623
|
+
try {
|
|
624
|
+
const sim = (await bridge.listSims()).find((candidate) => candidate.id === simId)
|
|
625
|
+
return sim?.url ? new URL(sim.url).searchParams.get('device') : null
|
|
626
|
+
} finally {
|
|
627
|
+
bridge.close()
|
|
844
628
|
}
|
|
845
|
-
|
|
846
|
-
return url.toString()
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
function shouldResolveBundleTargetInCli(target: string): boolean {
|
|
850
|
-
// a shell url already names its app; resolving it as a dev server turned
|
|
851
|
-
// http://localhost:5173/?demo=x into the native app /rn/443.
|
|
852
|
-
if (looksLikeSootsimUrl(target)) return false
|
|
853
|
-
const normalizedTarget = normalizeKnownTarget(target)
|
|
854
|
-
if (/^\d+$/.test(normalizedTarget)) return true
|
|
855
|
-
if (/^https?:\/\//i.test(normalizedTarget)) return true
|
|
856
|
-
return /^(localhost|127\.0\.0\.1|\[::1\]|[^/]+\.localhost):\d+(?:\/.*)?$/i.test(
|
|
857
|
-
normalizedTarget,
|
|
858
|
-
)
|
|
859
629
|
}
|
|
860
630
|
|
|
861
631
|
// a built bundle on disk (`peach open ./dist/ios.js`). the bridge serves a
|
|
@@ -866,17 +636,9 @@ function prebuiltBundleFile(target: string): string | null {
|
|
|
866
636
|
return fs.statSync(file, { throwIfNoEntry: false })?.isFile() ? file : null
|
|
867
637
|
}
|
|
868
638
|
|
|
869
|
-
// the nearest app above the bundle supplies its fonts, splash and identity
|
|
870
|
-
function appDirAbove(file: string): string | undefined {
|
|
871
|
-
for (let dir = path.dirname(file); dir !== path.dirname(dir); dir = path.dirname(dir)) {
|
|
872
|
-
if (resolveAppProject(dir)) return dir
|
|
873
|
-
}
|
|
874
|
-
return undefined
|
|
875
|
-
}
|
|
876
|
-
|
|
877
639
|
// the url names the bundle's own mode, so the engine boots the matching
|
|
878
640
|
// tenant first instead of restarting into it after the fetch.
|
|
879
|
-
async function stagePrebuiltBundle(
|
|
641
|
+
export async function stagePrebuiltBundle(
|
|
880
642
|
file: string,
|
|
881
643
|
bridgePort: number,
|
|
882
644
|
): Promise<ResolvedDevBundle> {
|
|
@@ -893,10 +655,12 @@ async function stagePrebuiltBundle(
|
|
|
893
655
|
source,
|
|
894
656
|
'application/javascript',
|
|
895
657
|
)
|
|
658
|
+
const { stageMetroBundleAssets } = await import('../metro-bundle-assets')
|
|
659
|
+
await stageMetroBundleAssets(file, source, `http://127.0.0.1:${bridgePort}`)
|
|
896
660
|
const url = new URL(
|
|
897
661
|
stageHostBytes(
|
|
898
662
|
prepared === source ? bytes : Buffer.from(prepared, 'utf8'),
|
|
899
|
-
`http://
|
|
663
|
+
`http://127.0.0.1:${bridgePort}`,
|
|
900
664
|
path.extname(file),
|
|
901
665
|
),
|
|
902
666
|
)
|
|
@@ -904,26 +668,6 @@ async function stagePrebuiltBundle(
|
|
|
904
668
|
return { bundleUrl: url.toString(), port: bridgePort, framework: 'unknown' }
|
|
905
669
|
}
|
|
906
670
|
|
|
907
|
-
async function buildResolvedBundleOpenUrl(
|
|
908
|
-
target: string,
|
|
909
|
-
baseUrl: string,
|
|
910
|
-
opts: BuildShellUrlOptions = {},
|
|
911
|
-
): Promise<string> {
|
|
912
|
-
const resolved = opts.resolvedBundle ?? (await resolveConnectionInputForCli(target))
|
|
913
|
-
const url = new URL(baseUrl)
|
|
914
|
-
const prefix = getShellRoutePrefix(url.pathname)
|
|
915
|
-
url.pathname = `${prefix}/rn`
|
|
916
|
-
url.searchParams.delete('open')
|
|
917
|
-
url.searchParams.delete('port')
|
|
918
|
-
url.searchParams.delete('app')
|
|
919
|
-
const bundleUrl =
|
|
920
|
-
opts.hot === undefined
|
|
921
|
-
? resolved.bundleUrl
|
|
922
|
-
: applyHotMode(resolved.bundleUrl, opts.hot)
|
|
923
|
-
url.searchParams.set('bundle', bundleUrl)
|
|
924
|
-
return url.toString()
|
|
925
|
-
}
|
|
926
|
-
|
|
927
671
|
function normalizeReplacementPath(filePath: string): string {
|
|
928
672
|
if (filePath.startsWith('~/')) {
|
|
929
673
|
return path.join(os.homedir(), filePath.slice(2))
|
|
@@ -980,25 +724,6 @@ function parseOpenRuntimeConfig(args: string[]): PeachConfig | undefined {
|
|
|
980
724
|
return config.modules || config.network ? config : undefined
|
|
981
725
|
}
|
|
982
726
|
|
|
983
|
-
export async function resolveAppProjectForBundleUrl(
|
|
984
|
-
bundleUrl?: string,
|
|
985
|
-
projectRoot?: string,
|
|
986
|
-
manifestProjectRoot?: string | null,
|
|
987
|
-
signal?: AbortSignal,
|
|
988
|
-
): Promise<ResolvedAppProject | null> {
|
|
989
|
-
if (projectRoot !== undefined) {
|
|
990
|
-
const project = resolveAppProject(projectRoot)
|
|
991
|
-
if (!project) throw new Error(`app project could not be found at ${projectRoot}`)
|
|
992
|
-
return project
|
|
993
|
-
}
|
|
994
|
-
if (!bundleUrl) return null
|
|
995
|
-
const advertisedRoot = await resolveMetroProjectRoot(bundleUrl, manifestProjectRoot, {
|
|
996
|
-
waitMs: null,
|
|
997
|
-
signal,
|
|
998
|
-
})
|
|
999
|
-
return advertisedRoot ? resolveAppProject(advertisedRoot) : null
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
727
|
async function ensureConfiguredRuntime(version: string): Promise<void> {
|
|
1003
728
|
if (fs.existsSync(path.join(runtimeDir(version), 'index.html'))) return
|
|
1004
729
|
console.error(` installing configured engine runtime ${version}...`)
|
|
@@ -1026,497 +751,6 @@ export function applyRuntimeGenerationOrigin(baseUrl: string, version?: string):
|
|
|
1026
751
|
return url.toString()
|
|
1027
752
|
}
|
|
1028
753
|
|
|
1029
|
-
export function resolveDefaultShellBaseUrl(): string {
|
|
1030
|
-
return resolveBridgeWorld().shellBaseUrl
|
|
1031
|
-
}
|
|
1032
|
-
|
|
1033
|
-
/** the shell that belongs to a bridge port: the world a fresh lockfile claims
|
|
1034
|
-
* for it, otherwise the shell that shares the port's own offset. every caller
|
|
1035
|
-
* that has already settled on a bridge port goes through this, so a page can
|
|
1036
|
-
* never open in one stack's shell while the CLI polls another's bridge. the
|
|
1037
|
-
* development bridge registry keeps every live port addressable, while this
|
|
1038
|
-
* function preserves an explicit caller's already-selected world. */
|
|
1039
|
-
export function resolveShellBaseUrlForBridgePort(bridgePort: number): string {
|
|
1040
|
-
return (
|
|
1041
|
-
worldForBridgePort(bridgePort)?.shellBaseUrl ??
|
|
1042
|
-
resolveSootsimShellBaseUrlForBridgePort(bridgePort) ??
|
|
1043
|
-
resolveDefaultShellBaseUrl()
|
|
1044
|
-
)
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
// stamp a bounded catalog reference on the engine page url so the
|
|
1048
|
-
// engine's app-font-loader registers native config-only fonts at boot. fonts
|
|
1049
|
-
// loaded by JS already flow through normal runtime fetch capture; this covers
|
|
1050
|
-
// UIAppFonts-style assets that Metro can serve but the guest bundle never
|
|
1051
|
-
// fetches itself. auto-discovery only — scans the repo for expo-font config
|
|
1052
|
-
// plugin declarations, no user-facing flag. discovery keeps only font files
|
|
1053
|
-
// that exist on disk, so the stamp never waits on the dev server.
|
|
1054
|
-
function stampAppFonts(
|
|
1055
|
-
urlStr: string,
|
|
1056
|
-
platform: 'ios' | 'android',
|
|
1057
|
-
nativeAssetOrigin: string,
|
|
1058
|
-
project?: ResolvedAppProject | null,
|
|
1059
|
-
): string {
|
|
1060
|
-
try {
|
|
1061
|
-
const url = new URL(urlStr)
|
|
1062
|
-
if (!url.searchParams.get('bundle') || !project) return urlStr
|
|
1063
|
-
const specs = discoverNativeLinkedAppFonts({
|
|
1064
|
-
projectDir: project.appDir,
|
|
1065
|
-
platform,
|
|
1066
|
-
nativeAssetOrigin,
|
|
1067
|
-
})
|
|
1068
|
-
if (specs.length === 0) return urlStr
|
|
1069
|
-
const catalogUrl = stageHostBytes(
|
|
1070
|
-
new TextEncoder().encode(
|
|
1071
|
-
getCliRuntime().engine_config_plugin_fonts.encodeAppFontsWire(specs),
|
|
1072
|
-
),
|
|
1073
|
-
nativeAssetOrigin,
|
|
1074
|
-
)
|
|
1075
|
-
url.searchParams.set('appFonts', `@${catalogUrl}`)
|
|
1076
|
-
return url.toString()
|
|
1077
|
-
} catch {
|
|
1078
|
-
return urlStr
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
async function resolveShellUrl(
|
|
1083
|
-
target: string,
|
|
1084
|
-
baseUrl: string,
|
|
1085
|
-
opts: BuildShellUrlOptions = {},
|
|
1086
|
-
): Promise<string> {
|
|
1087
|
-
// no target = open home screen
|
|
1088
|
-
if (!target) {
|
|
1089
|
-
return new URL(baseUrl).toString()
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
if (looksLikeSootsimUrl(target)) {
|
|
1093
|
-
const url = new URL(target)
|
|
1094
|
-
const base = new URL(baseUrl)
|
|
1095
|
-
const baseConfig = base.searchParams.get(PEACH_CONFIG_QUERY_PARAM)
|
|
1096
|
-
if (baseConfig && !url.searchParams.has(PEACH_CONFIG_QUERY_PARAM)) {
|
|
1097
|
-
url.searchParams.set(PEACH_CONFIG_QUERY_PARAM, baseConfig)
|
|
1098
|
-
}
|
|
1099
|
-
return url.toString()
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
if (looksLikeShellPathTarget(target)) {
|
|
1103
|
-
return buildShellPathOpenUrl(target, baseUrl)
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
// check if this is a shell app (pathname-based route, not bundle)
|
|
1107
|
-
const shellPath = SHELL_APPS[target.toLowerCase()]
|
|
1108
|
-
if (shellPath) {
|
|
1109
|
-
const url = new URL(baseUrl)
|
|
1110
|
-
const prefix = getShellRoutePrefix(url.pathname)
|
|
1111
|
-
url.pathname = `${prefix}${shellPath}`
|
|
1112
|
-
return url.toString()
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
if (shouldResolveBundleTargetInCli(target)) {
|
|
1116
|
-
return buildResolvedBundleOpenUrl(target, baseUrl, opts)
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
return buildConnectOpenUrl(target, baseUrl)
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
// stamp the engine page url with `?appSplash=<encodeURIComponent(JSON)>` so the
|
|
1123
|
-
// engine paints the app's REAL configured splash image + background on boot
|
|
1124
|
-
// (instead of the contrast device-default chrome). same discovery path as
|
|
1125
|
-
// fonts: scan the bundle's project for the expo-splash-screen /
|
|
1126
|
-
// react-native-bootsplash config plugin (or legacy `expo.splash`). the metro
|
|
1127
|
-
// manifest fallback in the engine covers the typed-URL case; this wire is the
|
|
1128
|
-
// instant-first-paint optimization.
|
|
1129
|
-
async function stampAppSplash(
|
|
1130
|
-
urlStr: string,
|
|
1131
|
-
project?: ResolvedAppProject | null,
|
|
1132
|
-
oneAppSplash?: Promise<DiscoveredAppSplashSpec | null>,
|
|
1133
|
-
): Promise<string> {
|
|
1134
|
-
try {
|
|
1135
|
-
const url = new URL(urlStr)
|
|
1136
|
-
const bundleUrl = url.searchParams.get('bundle') || ''
|
|
1137
|
-
if (!bundleUrl || !project) return urlStr
|
|
1138
|
-
const spec = findExpoAppConfig(project.appDir)
|
|
1139
|
-
? discoverConfigPluginAppSplash({
|
|
1140
|
-
bundleUrl,
|
|
1141
|
-
projectDir: project.appDir,
|
|
1142
|
-
})
|
|
1143
|
-
: await (oneAppSplash ?? discoverOneNativeAppSplash(bundleUrl))
|
|
1144
|
-
if (!spec) return urlStr
|
|
1145
|
-
// native splash assets are required for the first frame.
|
|
1146
|
-
for (const imageUrl of splashImageUrls(spec)) {
|
|
1147
|
-
if (!splashImageOnDisk(imageUrl, project.appDir)) return urlStr
|
|
1148
|
-
}
|
|
1149
|
-
url.searchParams.set('appSplash', encodeAppSplashWire(spec))
|
|
1150
|
-
return url.toString()
|
|
1151
|
-
} catch {
|
|
1152
|
-
return urlStr
|
|
1153
|
-
}
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
// stamp the engine page url with `?appCatalog=` so an app's asset-catalog
|
|
1157
|
-
// colors and images and its declared accent reach the tenant, which applies
|
|
1158
|
-
// them to the bundle this url opens. the catalog lives in the native binary,
|
|
1159
|
-
// never in the js bundle, so only the app's ios project on disk has it.
|
|
1160
|
-
function stampAppCatalog(urlStr: string, project?: ResolvedAppProject | null): string {
|
|
1161
|
-
try {
|
|
1162
|
-
const url = new URL(urlStr)
|
|
1163
|
-
const metroOrigin = loopbackOriginOf(url.searchParams.get('bundle') ?? '')
|
|
1164
|
-
if (!metroOrigin || !project) return urlStr
|
|
1165
|
-
const catalog = discoverAppCatalog(project.appDir, metroOrigin)
|
|
1166
|
-
if (!catalog) return urlStr
|
|
1167
|
-
url.searchParams.set(
|
|
1168
|
-
'appCatalog',
|
|
1169
|
-
getCliRuntime().engine_app_catalog_wire.encodeAppCatalogWire(catalog),
|
|
1170
|
-
)
|
|
1171
|
-
return url.toString()
|
|
1172
|
-
} catch {
|
|
1173
|
-
return urlStr
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
// a splash spec names `<origin>/assets/<project-relative-path>`, the file the
|
|
1178
|
-
// dev server serves from its project root, so the file is checked on disk and
|
|
1179
|
-
// the stamp never waits on a dev server busy building.
|
|
1180
|
-
function splashImageOnDisk(imageUrl: string, appDir: string): boolean {
|
|
1181
|
-
const { pathname } = new URL(imageUrl)
|
|
1182
|
-
if (!pathname.startsWith('/assets/')) return false
|
|
1183
|
-
try {
|
|
1184
|
-
return fs
|
|
1185
|
-
.statSync(path.join(appDir, decodeURIComponent(pathname.slice('/assets/'.length))))
|
|
1186
|
-
.isFile()
|
|
1187
|
-
} catch {
|
|
1188
|
-
return false
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
export interface BuildShellUrlOptions {
|
|
1193
|
-
// manifest and asset origin provided by an authenticated recorder proxy.
|
|
1194
|
-
bundleOriginOverride?: string
|
|
1195
|
-
// marks native host windows so the bridge can reuse a CLI-opened desktop sim.
|
|
1196
|
-
hostDriver?: 'desktop'
|
|
1197
|
-
// when set, forces the metro `hot` query on the resolved bundle URL. true
|
|
1198
|
-
// for interactive opens (HMR runtime in bundle, edits hot-apply), false
|
|
1199
|
-
// for `--driver playwright`/agent runs (no in-bundle HMR wiring, no ws
|
|
1200
|
-
// chatter, deterministic e2e). undefined leaves whatever value metro's
|
|
1201
|
-
// manifest emitted — matches real iOS sims so metro's bundle cache is
|
|
1202
|
-
// shared. set by `runOpenCommand` only.
|
|
1203
|
-
hot?: boolean
|
|
1204
|
-
// device model slug (e.g. iphone-16) stamped onto the engine URL as
|
|
1205
|
-
// ?device=<model> — the shell reads it at boot (main.tsx) and live-switch
|
|
1206
|
-
// uses the same param. without this, every driver-opened sim silently ran
|
|
1207
|
-
// whatever profile the shell last persisted.
|
|
1208
|
-
device?: string
|
|
1209
|
-
// fold posture (open|closed) stamped onto the engine URL as ?posture= next
|
|
1210
|
-
// to ?device=. the shell reads it at boot (readUrlSettingOverrides) and
|
|
1211
|
-
// keeps it in the URL on every pose change, so it round-trips the way
|
|
1212
|
-
// device and orientation do. without this a manual ?posture= appended
|
|
1213
|
-
// after the app path lands inside the bundle param and never reaches the
|
|
1214
|
-
// shell. non-foldable devices resolve it to closed at boot.
|
|
1215
|
-
posture?: string
|
|
1216
|
-
// raster quality (high|medium|low) stamped as ?renderResolution=. high
|
|
1217
|
-
// renders at the device's native scale, so a native-parity capture is not
|
|
1218
|
-
// left at the interactive medium default of 2.
|
|
1219
|
-
renderResolution?: string
|
|
1220
|
-
// interface orientation (portrait|landscape) stamped as ?orientation=,
|
|
1221
|
-
// which the shell reads at boot over the device's default: an open duo
|
|
1222
|
-
// boots landscape unless this asks for it upright.
|
|
1223
|
-
orientation?: string
|
|
1224
|
-
// portrayed os version (major.minor) stamped as ?osVersion=, which the
|
|
1225
|
-
// shell pins at boot over the device profile's own version. an oracle on a
|
|
1226
|
-
// newer os than the profile compares only when the sim runs that os era.
|
|
1227
|
-
osVersion?: string
|
|
1228
|
-
// appearance scheme (light|dark|auto) stamped as ?theme=, which the shell
|
|
1229
|
-
// reads at boot over the persisted scheme. set by `peach open -t/--theme`.
|
|
1230
|
-
theme?: string
|
|
1231
|
-
// the xcode application target whose version, bundle id and display name
|
|
1232
|
-
// the app reads, for a project with several. set by `peach open --ios-target`.
|
|
1233
|
-
iosTarget?: string
|
|
1234
|
-
resolvedBundle?: ResolvedDevBundle
|
|
1235
|
-
project?: ResolvedAppProject | null
|
|
1236
|
-
// a One app's splash, read from its dev server's manifest. `peach open`
|
|
1237
|
-
// starts the read beside its early bundle request so the answer overlaps
|
|
1238
|
-
// bridge and host setup instead of preceding the launch.
|
|
1239
|
-
oneAppSplash?: Promise<DiscoveredAppSplashSpec | null>
|
|
1240
|
-
// deterministic-capture mode, stamped onto the engine URL as ?proof=1. the
|
|
1241
|
-
// shell worker, compositor worker and tenant worker each read it off the
|
|
1242
|
-
// host page URL at boot (syncProofModeFromInitUrl) and pin everything that
|
|
1243
|
-
// would otherwise differ frame to frame: the TextInput caret stops blinking
|
|
1244
|
-
// and stays visible, and notifications stop auto-dismissing. capture-frame
|
|
1245
|
-
// also reads the raw param and stops clipping the device corners, and the
|
|
1246
|
-
// shell leaves out the Dynamic Island, which is hardware, so a
|
|
1247
|
-
// capture matches simctl's rectangular framebuffer. without it a
|
|
1248
|
-
// screen holding a focused text field never reaches three identical idle
|
|
1249
|
-
// frames, so the screenshot guard burns all 12 attempts and then fails.
|
|
1250
|
-
proof?: boolean
|
|
1251
|
-
// a temporary storage profile, stamped as ?ephemeral=1. the shell then
|
|
1252
|
-
// neither reads nor writes the machine-wide settings in
|
|
1253
|
-
// ~/.peach/config.json, so a preference another sim saved (bold text,
|
|
1254
|
-
// reduce motion, appearance) cannot steer this boot.
|
|
1255
|
-
ephemeral?: boolean
|
|
1256
|
-
// launch-time environment variables, stamped as repeated ?env=KEY%3DVALUE.
|
|
1257
|
-
// see the --env flag above.
|
|
1258
|
-
env?: string[]
|
|
1259
|
-
// the project's env file as react-native-config's iOS build compiles it,
|
|
1260
|
-
// stamped as ?dotEnv=<json>. set by `peach open --load-env` only.
|
|
1261
|
-
dotEnv?: Record<string, string>
|
|
1262
|
-
// the bridge an explicit --port names; the expo swift compile endpoint
|
|
1263
|
-
// stamped onto the URL uses it instead of the discovered world's bridge.
|
|
1264
|
-
bridgePort?: number
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
type ProjectExpoConfigRead = { config: Record<string, unknown> } | { error: string }
|
|
1268
|
-
|
|
1269
|
-
function errorMessage(error: unknown): string {
|
|
1270
|
-
return error instanceof Error ? error.message : String(error)
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
function readProjectExpoConfig(
|
|
1274
|
-
project: ResolvedAppProject,
|
|
1275
|
-
): Promise<ProjectExpoConfigRead | null> {
|
|
1276
|
-
const require = createRequire(path.join(project.appDir, 'package.json'))
|
|
1277
|
-
try {
|
|
1278
|
-
require.resolve('@expo/config')
|
|
1279
|
-
} catch {
|
|
1280
|
-
return Promise.resolve(null)
|
|
1281
|
-
}
|
|
1282
|
-
return readExpoConfigAsync(project.appDir).then(
|
|
1283
|
-
(config) => ({ config }),
|
|
1284
|
-
(error: unknown) => ({ error: errorMessage(error) }),
|
|
1285
|
-
)
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
// evaluating the Expo config spawns node, so `peach open` starts the read as
|
|
1289
|
-
// soon as the project resolves and the shell url it builds takes that read. a
|
|
1290
|
-
// later build reads the config again.
|
|
1291
|
-
const startedExpoConfigReads = new Map<string, Promise<ProjectExpoConfigRead | null>>()
|
|
1292
|
-
|
|
1293
|
-
function startExpoConfigRead(project: ResolvedAppProject | null) {
|
|
1294
|
-
if (project) startedExpoConfigReads.set(project.appDir, readProjectExpoConfig(project))
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
function takeExpoConfigRead(project: ResolvedAppProject | null | undefined) {
|
|
1298
|
-
if (!project) return Promise.resolve(null)
|
|
1299
|
-
const started = startedExpoConfigReads.get(project.appDir)
|
|
1300
|
-
startedExpoConfigReads.delete(project.appDir)
|
|
1301
|
-
return started ?? readProjectExpoConfig(project)
|
|
1302
|
-
}
|
|
1303
|
-
|
|
1304
|
-
function nativeFirebaseFromExpoConfig(
|
|
1305
|
-
project: ResolvedAppProject,
|
|
1306
|
-
read: ProjectExpoConfigRead,
|
|
1307
|
-
): Record<string, unknown> {
|
|
1308
|
-
if ('error' in read) return read
|
|
1309
|
-
try {
|
|
1310
|
-
return readNativeFirebaseConfig(project.appDir, undefined, undefined, read.config)
|
|
1311
|
-
} catch (error) {
|
|
1312
|
-
return { error: errorMessage(error) }
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
// a built bundle staged on the bridge has no packager to serve its manifest.
|
|
1317
|
-
// the built binary embeds its evaluated app config (expo's `app.config`
|
|
1318
|
-
// resource, and the Info.plist prebuild writes from it), so the bundle's
|
|
1319
|
-
// manifest is that config, staged beside it
|
|
1320
|
-
function stageBuiltBundleManifest(
|
|
1321
|
-
bundleUrl: string,
|
|
1322
|
-
config: Record<string, unknown>,
|
|
1323
|
-
): string | null {
|
|
1324
|
-
const bundle = new URL(bundleUrl)
|
|
1325
|
-
if (!isStagedHostFileRequest(bundle.pathname) || Object.keys(config).length === 0)
|
|
1326
|
-
return null
|
|
1327
|
-
const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'peach-app-manifest-'))
|
|
1328
|
-
try {
|
|
1329
|
-
const file = path.join(directory, 'manifest.json')
|
|
1330
|
-
fs.writeFileSync(file, JSON.stringify({ extra: { expoClient: config } }))
|
|
1331
|
-
return stageHostFile(file, bundle.origin)
|
|
1332
|
-
} finally {
|
|
1333
|
-
fs.rmSync(directory, { recursive: true, force: true })
|
|
1334
|
-
}
|
|
1335
|
-
}
|
|
1336
|
-
|
|
1337
|
-
// a plain Metro carries no identity footer or header, so the page carries the
|
|
1338
|
-
// identity the Peach Metro plugin reads from the same project. its icon
|
|
1339
|
-
// artwork stays with bundle builders, where data uris cannot swell a url. a
|
|
1340
|
-
// project with several app targets needs a named target, as xcode needs a
|
|
1341
|
-
// scheme: `--ios-target` here, the plugin's iosTarget for a Peach Metro.
|
|
1342
|
-
function readProjectNativeAppIdentityWire(
|
|
1343
|
-
project: ResolvedAppProject,
|
|
1344
|
-
platform: 'ios' | 'android',
|
|
1345
|
-
iosTarget: string | undefined,
|
|
1346
|
-
): string | null {
|
|
1347
|
-
if (!canExtractNativeAppIdentity(platform)) return null
|
|
1348
|
-
try {
|
|
1349
|
-
const identity = readNativeAppIdentityFromProject(
|
|
1350
|
-
project.appDir,
|
|
1351
|
-
platform,
|
|
1352
|
-
undefined,
|
|
1353
|
-
iosTarget,
|
|
1354
|
-
)
|
|
1355
|
-
return (
|
|
1356
|
-
identity &&
|
|
1357
|
-
createNativeAppIdentityHeader({ ...identity, appIconArtwork: undefined })
|
|
1358
|
-
)
|
|
1359
|
-
} catch (error) {
|
|
1360
|
-
if (error instanceof NativeAppTargetSelectionError) return null
|
|
1361
|
-
throw error
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
function bundleUrlOf(urlStr: string): string | undefined {
|
|
1366
|
-
try {
|
|
1367
|
-
return new URL(urlStr).searchParams.get('bundle') || undefined
|
|
1368
|
-
} catch {
|
|
1369
|
-
return undefined
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
export async function buildShellUrl(
|
|
1374
|
-
target: string,
|
|
1375
|
-
baseUrl: string = resolveDefaultShellBaseUrl(),
|
|
1376
|
-
opts: BuildShellUrlOptions = {},
|
|
1377
|
-
): Promise<string> {
|
|
1378
|
-
const resolved = await resolveShellUrl(target, baseUrl, opts)
|
|
1379
|
-
// callers that hand us a bare port or url (the flow/maestro runner, the
|
|
1380
|
-
// electron companion) have no project to pass. derive it from the bundle
|
|
1381
|
-
// metro advertises so those paths get the same UIAppFonts and splash
|
|
1382
|
-
// stamping an `peach open` gets. without it a flow renders the app's text in a
|
|
1383
|
-
// fallback typeface, which then reads as a conformance diff.
|
|
1384
|
-
const project =
|
|
1385
|
-
opts.project ?? (await resolveAppProjectForBundleUrl(bundleUrlOf(resolved)))
|
|
1386
|
-
const expoRoot = project?.appDir ?? null
|
|
1387
|
-
const world = resolveBridgeWorld()
|
|
1388
|
-
const port = resolveBridgePortForPin({
|
|
1389
|
-
baseUrl,
|
|
1390
|
-
wsPort: opts.bridgePort ?? world.bridgePort,
|
|
1391
|
-
explicitPort: opts.bridgePort !== undefined,
|
|
1392
|
-
})
|
|
1393
|
-
if (project && port.error) throw new Error(port.error)
|
|
1394
|
-
const device = opts.device ?? new URL(resolved).searchParams.get('device')
|
|
1395
|
-
const bundle = bundleUrlOf(resolved)
|
|
1396
|
-
const platform =
|
|
1397
|
-
device && isDeviceModel(device)
|
|
1398
|
-
? getCliRuntime().settings_devices.getRuntimePlatform(device)
|
|
1399
|
-
: bundle && new URL(bundle).searchParams.get('platform') === 'android'
|
|
1400
|
-
? 'android'
|
|
1401
|
-
: 'ios'
|
|
1402
|
-
const stamped = stampAppCatalog(
|
|
1403
|
-
await stampAppSplash(
|
|
1404
|
-
stampAppFonts(resolved, platform, `http://localhost:${port.port}`, project),
|
|
1405
|
-
project,
|
|
1406
|
-
opts.oneAppSplash,
|
|
1407
|
-
),
|
|
1408
|
-
project,
|
|
1409
|
-
)
|
|
1410
|
-
const expoStamped = new URL(stamped)
|
|
1411
|
-
expoStamped.searchParams.delete('nativeAppIdentity')
|
|
1412
|
-
expoStamped.searchParams.delete('appBundleResources')
|
|
1413
|
-
if (project) {
|
|
1414
|
-
const nativeRenderer = readNativeProjectRenderer(project.appDir, platform)
|
|
1415
|
-
if (nativeRenderer !== undefined) {
|
|
1416
|
-
const config = readPeachConfigFromSearchParams(expoStamped.searchParams)
|
|
1417
|
-
if (
|
|
1418
|
-
config?.nativeRenderer !== undefined &&
|
|
1419
|
-
config.nativeRenderer !== nativeRenderer
|
|
1420
|
-
)
|
|
1421
|
-
throw new Error('peach config contradicts native project renderer')
|
|
1422
|
-
expoStamped.searchParams.set(
|
|
1423
|
-
PEACH_CONFIG_QUERY_PARAM,
|
|
1424
|
-
JSON.stringify(mergePeachConfig(config, { nativeRenderer })),
|
|
1425
|
-
)
|
|
1426
|
-
}
|
|
1427
|
-
const nativeAppIdentity = bundle
|
|
1428
|
-
? readProjectNativeAppIdentityWire(project, platform, opts.iosTarget)
|
|
1429
|
-
: null
|
|
1430
|
-
if (nativeAppIdentity)
|
|
1431
|
-
expoStamped.searchParams.set('nativeAppIdentity', nativeAppIdentity)
|
|
1432
|
-
if (platform === 'ios' && nativeAppIdentity) {
|
|
1433
|
-
const resources = stageAppBundleResources(
|
|
1434
|
-
project.appDir,
|
|
1435
|
-
`http://localhost:${port.port}`,
|
|
1436
|
-
opts.iosTarget,
|
|
1437
|
-
)
|
|
1438
|
-
if (Object.keys(resources).length > 0)
|
|
1439
|
-
expoStamped.searchParams.set('appBundleResources', JSON.stringify(resources))
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
// a plain Metro has no native Firebase config endpoint, so the CLI reads it
|
|
1443
|
-
// from the project whose Expo config it can evaluate. a project without its
|
|
1444
|
-
// own `@expo/config` (a dependency-free recorder) leaves it to the Peach
|
|
1445
|
-
// Metro plugin's endpoint.
|
|
1446
|
-
expoStamped.searchParams.delete('nativeFirebase')
|
|
1447
|
-
expoStamped.searchParams.delete('appManifest')
|
|
1448
|
-
expoStamped.searchParams.delete('packageVersions')
|
|
1449
|
-
if (project && expoStamped.searchParams.get('bundle')) {
|
|
1450
|
-
expoStamped.searchParams.set(
|
|
1451
|
-
'packageVersions',
|
|
1452
|
-
JSON.stringify(readInstalledNativePackageVersions(project.appDir)),
|
|
1453
|
-
)
|
|
1454
|
-
}
|
|
1455
|
-
const expoConfigRead = await takeExpoConfigRead(project)
|
|
1456
|
-
const stampedBundle = expoStamped.searchParams.get('bundle')
|
|
1457
|
-
if (project && !expoConfigRead && stampedBundle) {
|
|
1458
|
-
// no Expo config tooling, but the native project still configures Firebase
|
|
1459
|
-
const nativeFirebase = nativeFirebaseFromExpoConfig(project, { config: {} })
|
|
1460
|
-
if (Object.keys(nativeFirebase).length > 0)
|
|
1461
|
-
expoStamped.searchParams.set('nativeFirebase', JSON.stringify(nativeFirebase))
|
|
1462
|
-
}
|
|
1463
|
-
if (project && expoConfigRead && stampedBundle) {
|
|
1464
|
-
expoStamped.searchParams.set(
|
|
1465
|
-
'nativeFirebase',
|
|
1466
|
-
JSON.stringify(nativeFirebaseFromExpoConfig(project, expoConfigRead)),
|
|
1467
|
-
)
|
|
1468
|
-
const manifest =
|
|
1469
|
-
'config' in expoConfigRead
|
|
1470
|
-
? stageBuiltBundleManifest(stampedBundle, expoConfigRead.config)
|
|
1471
|
-
: null
|
|
1472
|
-
if (manifest) expoStamped.searchParams.set('appManifest', manifest)
|
|
1473
|
-
}
|
|
1474
|
-
if (opts.bundleOriginOverride)
|
|
1475
|
-
expoStamped.searchParams.set('bundleOriginOverride', opts.bundleOriginOverride)
|
|
1476
|
-
if (opts.hostDriver) expoStamped.searchParams.set('peachHostDriver', opts.hostDriver)
|
|
1477
|
-
if (expoRoot) {
|
|
1478
|
-
expoStamped.searchParams.set(
|
|
1479
|
-
'expoSwift',
|
|
1480
|
-
`http://localhost:${port.port}/__peach/expo-swift?root=${encodeURIComponent(expoRoot)}`,
|
|
1481
|
-
)
|
|
1482
|
-
expoStamped.searchParams.set(
|
|
1483
|
-
'nitro',
|
|
1484
|
-
`http://localhost:${port.port}/__peach/nitro?root=${encodeURIComponent(expoRoot)}`,
|
|
1485
|
-
)
|
|
1486
|
-
// the engine fetches only its device platform's build
|
|
1487
|
-
expoStamped.searchParams.set(
|
|
1488
|
-
'expoKotlin',
|
|
1489
|
-
`http://localhost:${port.port}/__peach/expo-kotlin?root=${encodeURIComponent(expoRoot)}`,
|
|
1490
|
-
)
|
|
1491
|
-
}
|
|
1492
|
-
if (
|
|
1493
|
-
!opts.device &&
|
|
1494
|
-
!opts.proof &&
|
|
1495
|
-
!opts.ephemeral &&
|
|
1496
|
-
!opts.posture &&
|
|
1497
|
-
!opts.renderResolution &&
|
|
1498
|
-
!opts.orientation &&
|
|
1499
|
-
!opts.osVersion &&
|
|
1500
|
-
!opts.theme &&
|
|
1501
|
-
!opts.env?.length &&
|
|
1502
|
-
!opts.dotEnv
|
|
1503
|
-
)
|
|
1504
|
-
return stageHostLaunchMetadata(expoStamped, `http://localhost:${port.port}`)
|
|
1505
|
-
const url = expoStamped
|
|
1506
|
-
if (opts.dotEnv) url.searchParams.set('dotEnv', JSON.stringify(opts.dotEnv))
|
|
1507
|
-
if (opts.device) url.searchParams.set('device', opts.device)
|
|
1508
|
-
if (opts.posture) url.searchParams.set('posture', opts.posture)
|
|
1509
|
-
if (opts.renderResolution)
|
|
1510
|
-
url.searchParams.set('renderResolution', opts.renderResolution)
|
|
1511
|
-
if (opts.orientation) url.searchParams.set('orientation', opts.orientation)
|
|
1512
|
-
if (opts.osVersion) url.searchParams.set('osVersion', opts.osVersion)
|
|
1513
|
-
if (opts.theme) url.searchParams.set('theme', opts.theme)
|
|
1514
|
-
if (opts.proof) url.searchParams.set('proof', '1')
|
|
1515
|
-
if (opts.ephemeral) url.searchParams.set('ephemeral', '1')
|
|
1516
|
-
for (const entry of opts.env ?? []) url.searchParams.append('env', entry)
|
|
1517
|
-
return stageHostLaunchMetadata(url, `http://localhost:${port.port}`)
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
754
|
function deriveCurrentSimBaseUrl(
|
|
1521
755
|
sim: BridgeSimInfo | null | undefined,
|
|
1522
756
|
fallback: string,
|
|
@@ -1547,6 +781,7 @@ function deriveCurrentSimBaseUrl(
|
|
|
1547
781
|
url.searchParams.delete('nativeFirebase')
|
|
1548
782
|
url.searchParams.delete('packageVersions')
|
|
1549
783
|
url.searchParams.delete('nativeAppIdentity')
|
|
784
|
+
url.searchParams.delete(ANDROID_ROOT_MODULE_QUERY_PARAM)
|
|
1550
785
|
url.searchParams.delete(LAUNCH_METADATA_QUERY_PARAM)
|
|
1551
786
|
url.searchParams.delete('expoSwift')
|
|
1552
787
|
url.searchParams.delete('expoKotlin')
|
|
@@ -1888,8 +1123,8 @@ function printAgentHints(quiet: boolean): void {
|
|
|
1888
1123
|
async function maybeDescribeAfterOpen(wsPort: number, simId: string, args: string[]) {
|
|
1889
1124
|
const noDescribe = args.includes('--no-describe')
|
|
1890
1125
|
if (noDescribe && !diagnosticsAllowedForCurrentProcess()) return
|
|
1891
|
-
const prevQuiet = process.env.
|
|
1892
|
-
process.env.
|
|
1126
|
+
const prevQuiet = process.env.PEACH_QUIET_TARGET_NOTICE
|
|
1127
|
+
process.env.PEACH_QUIET_TARGET_NOTICE = '1'
|
|
1893
1128
|
try {
|
|
1894
1129
|
// brief settle, then dump the tree directly. don't go through
|
|
1895
1130
|
// runDescribeSubcommand — its screen-transition wait can block for many
|
|
@@ -1914,7 +1149,7 @@ async function maybeDescribeAfterOpen(wsPort: number, simId: string, args: strin
|
|
|
1914
1149
|
console.log(
|
|
1915
1150
|
` app still loading: ${waitReadyReason(readyProbe)} (nodes: ${readyProbe.nodes}, targets: ${readyProbe.targets})`,
|
|
1916
1151
|
)
|
|
1917
|
-
console.log(' before interacting, run: peach wait ready
|
|
1152
|
+
console.log(' before interacting, run: peach wait ready')
|
|
1918
1153
|
}
|
|
1919
1154
|
const result = await inspectDescribe(bridge, {
|
|
1920
1155
|
describe: true,
|
|
@@ -1934,9 +1169,9 @@ async function maybeDescribeAfterOpen(wsPort: number, simId: string, args: strin
|
|
|
1934
1169
|
// describe is a convenience — never fail the open command on it
|
|
1935
1170
|
} finally {
|
|
1936
1171
|
if (prevQuiet === undefined) {
|
|
1937
|
-
delete process.env.
|
|
1172
|
+
delete process.env.PEACH_QUIET_TARGET_NOTICE
|
|
1938
1173
|
} else {
|
|
1939
|
-
process.env.
|
|
1174
|
+
process.env.PEACH_QUIET_TARGET_NOTICE = prevQuiet
|
|
1940
1175
|
}
|
|
1941
1176
|
}
|
|
1942
1177
|
}
|
|
@@ -1987,7 +1222,12 @@ export async function runLinkCommand(args: string[], opts: ControlCommandOptions
|
|
|
1987
1222
|
await dispatchAppLink(parsed)
|
|
1988
1223
|
}
|
|
1989
1224
|
|
|
1990
|
-
|
|
1225
|
+
// device/theme seed the selected live sim through the settings bridge, the
|
|
1226
|
+
// same call `peach device set` makes, before the link is delivered
|
|
1227
|
+
async function dispatchAppLink(
|
|
1228
|
+
parsed: ParsedBridgeCliArgs,
|
|
1229
|
+
liveSettings: { device?: string; theme?: string } = {},
|
|
1230
|
+
) {
|
|
1991
1231
|
if (parsed.positional.length !== 1) {
|
|
1992
1232
|
console.error(' peach open: expected exactly one <url-or-route>')
|
|
1993
1233
|
console.error(' examples: peach open /settings | peach open myapp://settings')
|
|
@@ -1997,6 +1237,13 @@ async function dispatchAppLink(parsed: ParsedBridgeCliArgs) {
|
|
|
1997
1237
|
const bridge = createBridgeFromParsed(parsed)
|
|
1998
1238
|
const simHint = parsed.simId ? ` --sim ${parsed.simId}` : ''
|
|
1999
1239
|
try {
|
|
1240
|
+
for (const [key, value] of [
|
|
1241
|
+
['deviceModel', liveSettings.device],
|
|
1242
|
+
['colorScheme', liveSettings.theme],
|
|
1243
|
+
] as const) {
|
|
1244
|
+
if (value)
|
|
1245
|
+
await callInBridgeWrite(bridge, 'SootSim.bridges.settings.set', key, value)
|
|
1246
|
+
}
|
|
2000
1247
|
const target = await openAppUrl(bridge, parsed.positional[0] ?? '')
|
|
2001
1248
|
console.log(` opened deep link: ${target}`)
|
|
2002
1249
|
} catch (err) {
|
|
@@ -2063,11 +1310,15 @@ async function openSim(
|
|
|
2063
1310
|
'--profile',
|
|
2064
1311
|
'--cdp-port',
|
|
2065
1312
|
'--device',
|
|
1313
|
+
'-d',
|
|
2066
1314
|
'--posture',
|
|
2067
1315
|
'--render-resolution',
|
|
2068
1316
|
'--orientation',
|
|
2069
1317
|
'--os-version',
|
|
2070
1318
|
'--ios-target',
|
|
1319
|
+
'--target',
|
|
1320
|
+
'--scheme',
|
|
1321
|
+
'--activity',
|
|
2071
1322
|
'--viewport',
|
|
2072
1323
|
'--env',
|
|
2073
1324
|
'--theme',
|
|
@@ -2141,11 +1392,12 @@ async function openSim(
|
|
|
2141
1392
|
// two read identically at a glance, so `peach open --new --port 4260` used to
|
|
2142
1393
|
// launch the Connect launcher against the default bridge and report success,
|
|
2143
1394
|
// and the probe that followed measured whatever sim happened to be selected.
|
|
2144
|
-
//
|
|
2145
|
-
|
|
1395
|
+
// without a target, `open --port` only means a live bridge to open on; a
|
|
1396
|
+
// port that does not answer the bridge protocol is refused.
|
|
1397
|
+
if (!target && args.includes('--port') && !(await isLiveBridge(parsed.wsPort))) {
|
|
2146
1398
|
const portValue = args[args.indexOf('--port') + 1] ?? '<number>'
|
|
2147
1399
|
console.error(
|
|
2148
|
-
` peach open: --port is the WS bridge port, not the app port. to open the app on ${portValue}, pass it positionally: \`peach open ${portValue}\``,
|
|
1400
|
+
` peach open: nothing on port ${portValue} answers the bridge protocol. --port is the WS bridge port, not the app port. to open the app on ${portValue}, pass it positionally: \`peach open ${portValue}\``,
|
|
2149
1401
|
)
|
|
2150
1402
|
peachExit(1)
|
|
2151
1403
|
}
|
|
@@ -2172,6 +1424,30 @@ async function openSim(
|
|
|
2172
1424
|
peachExit(1)
|
|
2173
1425
|
}
|
|
2174
1426
|
|
|
1427
|
+
const { resolveNativeInput } = await import('../native-input')
|
|
1428
|
+
const nativeInput = resolveNativeInput(target)
|
|
1429
|
+
if (nativeInput) {
|
|
1430
|
+
const nativeArgs = [nativeInput.path]
|
|
1431
|
+
const openArgs: string[] = []
|
|
1432
|
+
const selectionFlags = new Set(['--target', '--scheme', '--activity'])
|
|
1433
|
+
for (let index = 0; index < args.length; index++) {
|
|
1434
|
+
const arg = args[index]
|
|
1435
|
+
if (index === args.indexOf(target)) continue
|
|
1436
|
+
if (selectionFlags.has(arg)) nativeArgs.push(arg, args[++index])
|
|
1437
|
+
else openArgs.push(arg)
|
|
1438
|
+
}
|
|
1439
|
+
const code =
|
|
1440
|
+
nativeInput.kind === 'kotlin'
|
|
1441
|
+
? await (
|
|
1442
|
+
await import('./kotlin')
|
|
1443
|
+
).runKotlin(nativeArgs, { port: opts.port, openArgs })
|
|
1444
|
+
: await (
|
|
1445
|
+
await import('./swift')
|
|
1446
|
+
).runSwift(nativeArgs, { port: opts.port, openArgs })
|
|
1447
|
+
if (code) peachExit(code)
|
|
1448
|
+
return
|
|
1449
|
+
}
|
|
1450
|
+
|
|
2175
1451
|
// an absolute path to a built bundle is a file, not an app path
|
|
2176
1452
|
const prebuiltBundle = prebuiltBundleFile(target)
|
|
2177
1453
|
if (!prebuiltBundle && isAppDeepLinkTarget(target)) {
|
|
@@ -2181,7 +1457,9 @@ async function openSim(
|
|
|
2181
1457
|
)
|
|
2182
1458
|
peachExit(1)
|
|
2183
1459
|
}
|
|
2184
|
-
|
|
1460
|
+
const linkDevice = args.find((_, i) => args[i - 1] === '--device')
|
|
1461
|
+
if (!validateDeviceOption(linkDevice)) peachExit(1)
|
|
1462
|
+
await dispatchAppLink(parsed, { device: linkDevice, theme: themeArg })
|
|
2185
1463
|
return
|
|
2186
1464
|
}
|
|
2187
1465
|
|
|
@@ -2238,7 +1516,7 @@ async function openSim(
|
|
|
2238
1516
|
}
|
|
2239
1517
|
const project = await resolveAppProjectForBundleUrl(
|
|
2240
1518
|
resolvedBundle?.bundleUrl,
|
|
2241
|
-
projectRoot
|
|
1519
|
+
projectRoot,
|
|
2242
1520
|
resolvedBundle?.manifestProjectRoot,
|
|
2243
1521
|
opts.signal,
|
|
2244
1522
|
)
|
|
@@ -2320,7 +1598,9 @@ async function openSim(
|
|
|
2320
1598
|
// the engine URL, so both playwright and electron honor it). without it
|
|
2321
1599
|
// the sim runs whatever profile the
|
|
2322
1600
|
// shell last persisted, which silently skews browser comparisons.
|
|
2323
|
-
const deviceArg = args.find(
|
|
1601
|
+
const deviceArg = args.find(
|
|
1602
|
+
(_, i) => args[i - 1] === '--device' || args[i - 1] === '-d',
|
|
1603
|
+
)
|
|
2324
1604
|
if (!validateDeviceOption(deviceArg)) peachExit(1)
|
|
2325
1605
|
|
|
2326
1606
|
// asked before the bundle so the dev server answers it ahead of the build
|
|
@@ -2328,11 +1608,18 @@ async function openSim(
|
|
|
2328
1608
|
resolvedBundle && project && !findExpoAppConfig(project.appDir)
|
|
2329
1609
|
? discoverOneNativeAppSplash(resolvedBundle.bundleUrl)
|
|
2330
1610
|
: undefined
|
|
1611
|
+
const explicitBaseUrl = args.find((_, i) => args[i - 1] === '--base-url')
|
|
1612
|
+
const baseUrlConfig = explicitBaseUrl
|
|
1613
|
+
? readPeachConfigFromSearchParams(new URL(explicitBaseUrl).searchParams)
|
|
1614
|
+
: undefined
|
|
2331
1615
|
const appConfig = await loadRNXAppConfig(project)
|
|
2332
1616
|
const configuredRuntimeVersion = appConfig?.runtimeVersion
|
|
2333
1617
|
const runtimeConfig = mergePeachConfig(
|
|
2334
1618
|
mergePeachConfig(
|
|
2335
|
-
|
|
1619
|
+
mergePeachConfig(
|
|
1620
|
+
appConfig ? { ...appConfig, runtimeVersion: undefined } : undefined,
|
|
1621
|
+
baseUrlConfig,
|
|
1622
|
+
),
|
|
2336
1623
|
opts.runtimeConfig,
|
|
2337
1624
|
),
|
|
2338
1625
|
commandConfig,
|
|
@@ -2347,7 +1634,6 @@ async function openSim(
|
|
|
2347
1634
|
// times out after ~125s), and a pin nothing serves is refused rather than
|
|
2348
1635
|
// falling back to the discovered default, which used to send
|
|
2349
1636
|
// ensureBridgeForOpen below off to start a second shell.
|
|
2350
|
-
const explicitBaseUrl = args.find((_, i) => args[i - 1] === '--base-url')
|
|
2351
1637
|
if (explicitBaseUrl) {
|
|
2352
1638
|
const pinned = resolveBridgePortForPin({
|
|
2353
1639
|
baseUrl: explicitBaseUrl,
|
|
@@ -2388,11 +1674,24 @@ async function openSim(
|
|
|
2388
1674
|
if (resolvedBundle) {
|
|
2389
1675
|
// platform selection needs the verified companion after runtime preparation
|
|
2390
1676
|
const bundleUrl = applyHotMode(resolvedBundle.bundleUrl, hotMode)
|
|
1677
|
+
// a reused sim keeps its own device, so the engine asks for that device's
|
|
1678
|
+
// platform even when this open names none
|
|
1679
|
+
const reusedSimId =
|
|
1680
|
+
parsed.simIdSource === 'flag'
|
|
1681
|
+
? parsed.simId
|
|
1682
|
+
: parsed.simIdSource === 'saved' && !openInNewSim
|
|
1683
|
+
? savedSimId
|
|
1684
|
+
: undefined
|
|
1685
|
+
const warmDevice =
|
|
1686
|
+
deviceArg ??
|
|
1687
|
+
(reusedSimId
|
|
1688
|
+
? await readSimDevice(createBridgeFromParsed(parsed), reusedSimId)
|
|
1689
|
+
: null)
|
|
2391
1690
|
startDevServerBuild(
|
|
2392
|
-
|
|
1691
|
+
warmDevice && isDeviceModel(warmDevice)
|
|
2393
1692
|
? getCliRuntime().bundle_platform_url.bundleUrlForPlatform(
|
|
2394
1693
|
bundleUrl,
|
|
2395
|
-
getCliRuntime().settings_devices.getRuntimePlatform(
|
|
1694
|
+
getCliRuntime().settings_devices.getRuntimePlatform(warmDevice),
|
|
2396
1695
|
() => bundleUrl,
|
|
2397
1696
|
)
|
|
2398
1697
|
: bundleUrl,
|
|
@@ -2732,7 +2031,7 @@ async function openSim(
|
|
|
2732
2031
|
const builtShellUrl =
|
|
2733
2032
|
newSimShellUrl ??
|
|
2734
2033
|
(await buildShellUrl(shellTarget, configuredBaseUrl, buildShellUrlOpts))
|
|
2735
|
-
await awaitStampedExpoSwiftReady(builtShellUrl, opts.signal)
|
|
2034
|
+
await awaitStampedExpoSwiftReady(builtShellUrl, token, opts.signal)
|
|
2736
2035
|
const openUrl = withOpenToken(builtShellUrl, token)
|
|
2737
2036
|
const ownerPid = opts.ownerPid ?? getStableOwnerPid()
|
|
2738
2037
|
if (!ownerPid) {
|
|
@@ -2983,10 +2282,20 @@ export async function closeSimsBulk(
|
|
|
2983
2282
|
wsPort: number,
|
|
2984
2283
|
commandTimeoutMs: number,
|
|
2985
2284
|
ids: string[],
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2285
|
+
closeOpts: { force?: boolean } = {},
|
|
2286
|
+
): Promise<{ closed: string[]; remaining: string[]; refused: string[] }> {
|
|
2287
|
+
if (ids.length === 0) return { closed: [], remaining: [], refused: [] }
|
|
2288
|
+
// a host refusal (a lease taken after the caller listed) leaves the sim and its
|
|
2289
|
+
// browser host alone: callers must not terminate a refused sim's host.
|
|
2290
|
+
const refused: string[] = []
|
|
2291
|
+
await Promise.all(
|
|
2292
|
+
ids.map((id) =>
|
|
2293
|
+
bridge.closeSim(id, closeOpts).catch((err: unknown) => {
|
|
2294
|
+
if (err instanceof BridgeSimLockedError) refused.push(id)
|
|
2295
|
+
}),
|
|
2296
|
+
),
|
|
2297
|
+
)
|
|
2298
|
+
const wanted = new Set(ids.filter((id) => !refused.includes(id)))
|
|
2990
2299
|
for (let i = 0; i < 40; i++) {
|
|
2991
2300
|
let stillOpen: string[] = []
|
|
2992
2301
|
try {
|
|
@@ -3003,17 +2312,18 @@ export async function closeSimsBulk(
|
|
|
3003
2312
|
stillOpen = []
|
|
3004
2313
|
}
|
|
3005
2314
|
if (stillOpen.length === 0) {
|
|
3006
|
-
return { closed: [...wanted], remaining:
|
|
2315
|
+
return { closed: [...wanted], remaining: refused, refused }
|
|
3007
2316
|
}
|
|
3008
2317
|
if (i === 39) {
|
|
3009
2318
|
return {
|
|
3010
2319
|
closed: [...wanted].filter((id) => !stillOpen.includes(id)),
|
|
3011
|
-
remaining: stillOpen,
|
|
2320
|
+
remaining: [...stillOpen, ...refused],
|
|
2321
|
+
refused,
|
|
3012
2322
|
}
|
|
3013
2323
|
}
|
|
3014
2324
|
await sleep(250)
|
|
3015
2325
|
}
|
|
3016
|
-
return { closed: [...wanted], remaining:
|
|
2326
|
+
return { closed: [...wanted], remaining: refused, refused }
|
|
3017
2327
|
}
|
|
3018
2328
|
|
|
3019
2329
|
export interface BulkCloseRefusal {
|
|
@@ -3033,6 +2343,23 @@ export interface BulkClosePlan {
|
|
|
3033
2343
|
refused: BulkCloseRefusal[]
|
|
3034
2344
|
}
|
|
3035
2345
|
|
|
2346
|
+
// a live lease another cli or the active user holds refuses a close. --force takes
|
|
2347
|
+
// over another agent's cli lease, the same escape hatch `use --force` offers; a
|
|
2348
|
+
// `user-active` lease is a live human tab and is never closable, matching
|
|
2349
|
+
// `claim`, which refuses to report a takeover.
|
|
2350
|
+
export function closeLeaseRefusal(
|
|
2351
|
+
sim: BridgeSimInfo,
|
|
2352
|
+
opts: { force?: boolean; now?: number },
|
|
2353
|
+
): BulkCloseRefusal | null {
|
|
2354
|
+
const now = opts.now ?? Date.now()
|
|
2355
|
+
const lockedBy = sim.lockedBy
|
|
2356
|
+
const expiresAt = sim.lockExpiresAt
|
|
2357
|
+
if (!lockedBy || !expiresAt || expiresAt <= now || sim.lockedByMe) return null
|
|
2358
|
+
const kind = sim.lockedByKind ?? 'cli'
|
|
2359
|
+
if (kind === 'cli' && opts.force) return null
|
|
2360
|
+
return { id: sim.id, lockedBy, kind, expiresInMs: Math.max(0, expiresAt - now) }
|
|
2361
|
+
}
|
|
2362
|
+
|
|
3036
2363
|
export function planBulkCloseTargets(
|
|
3037
2364
|
sims: BridgeSimInfo[],
|
|
3038
2365
|
opts: {
|
|
@@ -3079,20 +2406,8 @@ export function planBulkCloseTargets(
|
|
|
3079
2406
|
const refused: BulkCloseRefusal[] = []
|
|
3080
2407
|
for (const sim of open) {
|
|
3081
2408
|
if (sim.id === keepId) continue
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3084
|
-
if (!lockedBy || !expiresAt || expiresAt <= now || sim.lockedByMe) continue
|
|
3085
|
-
const kind = sim.lockedByKind ?? 'cli'
|
|
3086
|
-
// --force takes over another agent's cli lease, the same escape hatch
|
|
3087
|
-
// `use --force` offers. a `user-active` lease is a live human tab and is
|
|
3088
|
-
// never closable, matching `claim`, which refuses to report a takeover.
|
|
3089
|
-
if (kind === 'cli' && opts.force) continue
|
|
3090
|
-
refused.push({
|
|
3091
|
-
id: sim.id,
|
|
3092
|
-
lockedBy,
|
|
3093
|
-
kind,
|
|
3094
|
-
expiresInMs: Math.max(0, expiresAt - now),
|
|
3095
|
-
})
|
|
2409
|
+
const refusal = closeLeaseRefusal(sim, { force: opts.force, now })
|
|
2410
|
+
if (refusal) refused.push(refusal)
|
|
3096
2411
|
}
|
|
3097
2412
|
const refusedIds = new Set(refused.map((entry) => entry.id))
|
|
3098
2413
|
|
|
@@ -3193,8 +2508,12 @@ export async function runCloseCommand(args: string[], opts: ControlCommandOption
|
|
|
3193
2508
|
parsed.wsPort,
|
|
3194
2509
|
parsed.commandTimeoutMs,
|
|
3195
2510
|
plan.targets,
|
|
2511
|
+
{ force },
|
|
2512
|
+
)
|
|
2513
|
+
await terminatePlaywrightHostsForSims(
|
|
2514
|
+
sims,
|
|
2515
|
+
plan.targets.filter((id) => !result.refused.includes(id)),
|
|
3196
2516
|
)
|
|
3197
|
-
await terminatePlaywrightHostsForSims(sims, plan.targets)
|
|
3198
2517
|
// saved current sim may have just been closed — repoint or clear it.
|
|
3199
2518
|
const nextSavedId = readCurrentSimId()
|
|
3200
2519
|
if (nextSavedId && result.closed.includes(nextSavedId)) {
|
|
@@ -3226,7 +2545,22 @@ export async function runCloseCommand(args: string[], opts: ControlCommandOption
|
|
|
3226
2545
|
const fallbackTarget = sims.find(
|
|
3227
2546
|
(sim) => sim.id !== target.id && sim.readyState === 'open',
|
|
3228
2547
|
)
|
|
3229
|
-
|
|
2548
|
+
const refusal = closeLeaseRefusal(target, { force })
|
|
2549
|
+
if (refusal) {
|
|
2550
|
+
const secs = Math.round(refusal.expiresInMs / 1000)
|
|
2551
|
+
console.error(
|
|
2552
|
+
` close failed: ${refusal.id} is ${
|
|
2553
|
+
refusal.kind === 'user-active'
|
|
2554
|
+
? `locked by the active user (${secs}s)`
|
|
2555
|
+
: `leased by ${formatLockOwner(refusal.lockedBy)} (${secs}s)`
|
|
2556
|
+
}`,
|
|
2557
|
+
)
|
|
2558
|
+
if (refusal.kind === 'cli') {
|
|
2559
|
+
console.error(` \`peach close ${refusal.id} --force\` to close it anyway`)
|
|
2560
|
+
}
|
|
2561
|
+
peachExit(1)
|
|
2562
|
+
}
|
|
2563
|
+
await bridge.closeSim(target.id, { force })
|
|
3230
2564
|
const closed = await waitForSimGone(
|
|
3231
2565
|
parsed.wsPort,
|
|
3232
2566
|
parsed.commandTimeoutMs,
|
|
@@ -3266,4 +2600,13 @@ export async function runCloseCommand(args: string[], opts: ControlCommandOption
|
|
|
3266
2600
|
}
|
|
3267
2601
|
}
|
|
3268
2602
|
|
|
3269
|
-
export {
|
|
2603
|
+
export {
|
|
2604
|
+
buildShellUrl,
|
|
2605
|
+
looksLikeShellPathTarget,
|
|
2606
|
+
looksLikeSootsimUrl,
|
|
2607
|
+
resolveAppProjectForBundleUrl,
|
|
2608
|
+
resolveShellBaseUrlForBridgePort,
|
|
2609
|
+
shouldResolveBundleTargetInCli,
|
|
2610
|
+
type BuildShellUrlOptions,
|
|
2611
|
+
}
|
|
2612
|
+
export { resolveDefaultShellBaseUrl } from './shell-url'
|