peachsim 0.1.2935 → 0.1.2937
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 +6 -8
- package/cli/account-gate.ts +20 -3
- package/cli/app-bundle-resources.ts +66 -19
- package/cli/catalog/meta.ts +2 -106
- package/cli/command-agent.ts +7 -0
- package/cli/command-registry.ts +0 -1
- package/cli/commands/control.ts +13 -5
- package/cli/commands/daemon.ts +4 -2
- package/cli/commands/device.ts +78 -8
- package/cli/commands/do-chain.ts +11 -8
- package/cli/commands/inspect/core.ts +4 -9
- package/cli/commands/inspect/settling.ts +1 -0
- package/cli/commands/logout.ts +6 -1
- package/cli/commands/map.ts +2 -6
- package/cli/commands/package.ts +112 -57
- package/cli/commands/shell-url.ts +0 -1
- package/cli/download-auth.ts +2 -0
- package/cli/drivers/playwright-provisioning.ts +10 -38
- package/cli/github-workflow-identity.ts +8 -0
- package/cli/internal-child-contract.ts +1 -0
- package/cli/internal-child.ts +5 -0
- package/cli/main.ts +2 -10
- package/cli/outbound-endpoints.ts +26 -0
- package/detox/index.ts +227 -131
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +47 -3
- package/dist-lib/bridge-contract-input.mjs +6 -6
- package/dist-lib/bridge-contract.cjs +10 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +12779 -9515
- package/dist-lib/capture-contract.cjs +39 -17
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +8 -8
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +6 -6
- package/dist-lib/detox/index.cjs +200 -132
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-Q5TRRYSO.mjs → acorn-IIBLEO25.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-UDWBTBVG.mjs → chunk-4FTPQKPT.mjs} +10 -1
- package/dist-lib/esm-chunks/chunk-4WIDTRBB.mjs +10232 -0
- package/dist-lib/esm-chunks/{chunk-LCMFYMT7.mjs → chunk-5QZOQ3NZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BJ2OGUX7.mjs → chunk-CIY67HNL.mjs} +39 -17
- package/dist-lib/esm-chunks/{chunk-SKQTNQYE.mjs → chunk-CQFEMJ64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AXWVXRHX.mjs → chunk-CWVMCW23.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTALOHQR.mjs → chunk-F6DZ4DS2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I4R7IZRD.mjs → chunk-HJMF6O7L.mjs} +74 -46
- package/dist-lib/esm-chunks/chunk-I6T4PXJF.mjs +154 -0
- package/dist-lib/esm-chunks/{chunk-XWAUZKIA.mjs → chunk-IJU3JMWM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CXWUIOCH.mjs → chunk-KODEPXQC.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WJE5QHSD.mjs → chunk-LD4K2VBL.mjs} +155 -36
- package/dist-lib/esm-chunks/{chunk-2TSM64HI.mjs → chunk-LTE7YMEG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3GGOXUJA.mjs → chunk-M3CSKAJE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7G5UETIG.mjs → chunk-NA6DJPB6.mjs} +43 -1
- package/dist-lib/esm-chunks/{chunk-MSUHMNAI.mjs → chunk-NNAX24FS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VDJA4LP4.mjs → chunk-PZPJJBAS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UEEEJVQA.mjs → chunk-QXSTHMWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S2RJB5I7.mjs → chunk-RBPVK5YI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VRAXNGYT.mjs → chunk-SCT5OFDV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T3M73LGP.mjs → chunk-U3CJGYSP.mjs} +50 -6
- package/dist-lib/esm-chunks/{chunk-SLUGTGQQ.mjs → chunk-VXTOQ522.mjs} +12 -6
- package/dist-lib/esm-chunks/{chunk-EL44SZMV.mjs → chunk-WMSVGYTH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FEDEPSEV.mjs → chunk-WRWINRWK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BNO52N2S.mjs → chunk-YZF2USRD.mjs} +1905 -8760
- package/dist-lib/esm-chunks/{chunk-TQLKYMVP.mjs → chunk-ZNHR6C3L.mjs} +1 -1
- package/dist-lib/esm-chunks/{download-auth-registry-G75MIT55.mjs → download-auth-registry-AHS5MSIB.mjs} +4 -4
- package/dist-lib/esm-chunks/{metro-layout-parser-FXLUDTYT.mjs → metro-layout-parser-24ZYK5UP.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-524D4MA2.mjs → swift-package-prebuilt-L4YNXQRD.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-app-module-EX544YJY.mjs → swift-sdk-app-module-RM652JSW.mjs} +87 -71
- package/dist-lib/esm-chunks/{swift-sdk-image-LOTMWVM7.mjs → swift-sdk-image-5PQ44UJT.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-UO6B3M4U.mjs → swift-sdk-image-producer-GD3SM6YI.mjs} +5 -5
- package/dist-lib/esm-chunks/swift-sdk-later-data-62QYJ2KH.mjs +590 -0
- package/dist-lib/expo-swift-bundle.cjs +21037 -17896
- package/dist-lib/expo-swift-metadata.cjs +8 -2
- package/dist-lib/expo-swift-metadata.mjs +9 -8
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +22481 -18741
- package/dist-lib/host/fetch-proxy-handler.cjs +21079 -17980
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +68 -38
- package/dist-lib/kotlin-host.cjs +97 -21
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +23 -1
- package/dist-lib/metro-production-bundle.mjs +24 -4
- package/dist-lib/native-app-identity-project.cjs +3582 -571
- package/dist-lib/native-app-identity-project.mjs +1024 -398
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +132 -116
- package/dist-lib/public-origins-lib.json +215 -173
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +17 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +6 -7
- package/dist-lib/sdk.mjs +13 -14
- package/dist-lib/skills.cjs +23216 -19650
- package/dist-lib/swift-compile.cjs +4337 -2905
- package/dist-lib/swift-compile.mjs +15 -13
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +19 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +94 -32
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +8 -5
- package/dist-lib/worklet-executable.mjs +9 -6
- package/dist-types/packages/peach-engine/src/canvaskit-artifact-urls.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/capture/compositor-presentation-recording.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/generated/canvaskit-artifact-hashes.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/engine/guest-scene-inspect.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/metalTypes.d.ts +32 -2
- package/dist-types/packages/peach-engine/src/engine/portalContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/remote-display-protocol.d.ts +12 -2
- package/dist-types/packages/peach-engine/src/guest/http-cookie-storage.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/guest/native-evaluation-lease.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/guest/nitro-jsi-host.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +225 -9
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +4 -1
- package/dist-types/packages/peach-engine/src/ios/duo-vertical-bar-geometry.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-compositor.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/canvas-display-contract.d.ts +44 -10
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +4 -3
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -4
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +15 -27
- package/dist-types/packages/peach-engine/src/render-worker/reanimated-readiness.d.ts +2 -6
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +11 -3
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/app-bundle-resources.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -6
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/oneWidgetContract.d.ts +28 -0
- package/package.json +2 -2
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreHaptics.framework/Headers/CoreHaptics.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INImage.h +14 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntent.h +18 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentIdentifiers.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INIntentResponse.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INInteraction.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectCollection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INObjectSection.h +0 -7
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INOutgoingMessageType.h +7 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPerson.h +36 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INPersonHandle.h +22 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent+UserNotifications.h +6 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSendMessageIntent.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/INSpeakableString.h +24 -0
- package/sdk/ios/System/Library/Frameworks/Intents.framework/Headers/Intents.h +11 -7
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMailComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MessageUI.framework/Headers/MFMessageComposeViewController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Metal.framework/Headers/MTLRenderCommandEncoder.h +0 -8
- package/sdk/ios/System/Library/Frameworks/MetalTypes.framework/Headers/MetalTypes.h +8 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/SLServiceTypes.h +9 -0
- package/sdk/ios/System/Library/Frameworks/Social.framework/Headers/Social.h +1 -0
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAction.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationAttachment.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationCategory.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationContent.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationRequest.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationResponse.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSound.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationTrigger.h +5 -5
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/wasm/include/unistd.h +1 -0
- package/src/acorn-program.ts +3 -0
- package/src/audio-codec-archives.ts +141 -0
- package/src/bridge-contract-input.ts +61 -1
- package/src/bridge-contract.ts +45 -4
- package/src/bundle-channel.mjs +44 -30
- package/src/capture-contract.ts +57 -39
- package/src/conformance-comparison-contract.ts +2 -0
- package/src/expo-discovery-cache.ts +0 -2
- package/src/expo-macro-host.ts +8 -3
- package/src/expo-native-compiler-digest.ts +0 -1
- package/src/expo-native-prebuilt.ts +1 -1
- package/src/expo-native-workspace.ts +83 -45
- package/src/expo-pod-prebuilt.ts +1 -0
- package/src/expo-swift-host.ts +158 -77
- package/src/expo-swift-legacy-runtime-source.ts +12 -1
- package/src/expo-swift-view-source.ts +51 -20
- package/src/expo-workspace-exclusion.ts +7 -1
- package/src/expoSwiftContract.ts +10 -1
- package/src/ffmpeg-source-build.ts +123 -59
- package/src/genrule-archives.ts +7 -2
- package/src/genrule-library-builds.ts +101 -18
- package/src/host/bridge-host.ts +10 -1
- package/src/installed-native-libraries.ts +147 -23
- package/src/installed-package-versions.ts +30 -0
- package/src/ios-rn-bundle-request.ts +3 -1
- package/src/ios-rn-bundle.ts +38 -27
- package/src/ios-rn-compile.ts +23 -6
- package/src/ios-rn-startup.ts +2 -1
- package/src/java-module-abi.ts +4 -3
- package/src/kotlin-host.ts +4 -4
- package/src/kotlin-library-sources.ts +8 -5
- package/src/metro-production-bundle.ts +24 -0
- package/src/native-firebase-config.ts +2 -0
- package/src/native-framework-compiler.ts +5 -0
- package/src/native-package-slice-build.ts +3 -0
- package/src/native-package-slice.ts +15 -10
- package/src/native-preparation.ts +4 -1
- package/src/native-static-libraries.ts +107 -33
- package/src/nativeRuntimePackageIndex.ts +1 -4
- package/src/nitro-adapter.lock.json +286 -286
- package/src/nitro-app-providers.ts +20 -8
- package/src/nitro-compile.ts +131 -37
- package/src/nitro-dependencies.ts +42 -8
- package/src/nitro-source.ts +40 -36
- package/src/nitro-superset.lock.json +4 -4
- package/src/nitroAdapterContract.ts +32 -7
- package/src/nitroContract.ts +21 -37
- package/src/one-direct-host-source.ts +247 -140
- package/src/one-fabric.ts +129 -0
- package/src/one-native-controls-package.ts +95 -21
- package/src/one-native-controls-release.ts +147 -14
- package/src/one-native-source.ts +4 -1
- package/src/one-nitro-inputs.ts +1 -1
- package/src/one-nitro-source.ts +45 -1
- package/src/one-sdk/source.ts +10 -41
- package/src/one-widget-metadata.ts +2 -2
- package/src/one-widget-package.ts +1 -1
- package/src/oneSdkContract.ts +3 -0
- package/src/playwright-browser-paths.ts +30 -0
- package/src/pods-install.ts +6 -2
- package/src/pods-post-install.ts +2 -2
- package/src/pods-project.ts +10 -0
- package/src/podspec-ruby-stdlib.ts +73 -0
- package/src/podspec-ruby.ts +1 -1
- package/src/podspec-sources.ts +31 -13
- package/src/process-group.ts +135 -5
- package/src/published-swift-sdk.ts +25 -1
- package/src/react-native-bridge-modules.ts +35 -3
- package/src/react-native-core-build.ts +14 -2
- package/src/react-native-core.ts +12 -2
- package/src/rive-runtime-dependencies.ts +178 -40
- package/src/serverDiscoveryContract.ts +1 -1
- package/src/storageSnapshotContract.ts +1 -1
- package/src/swift-app-data-store.ts +35 -0
- package/src/swift-compile.ts +403 -121
- package/src/swift-compiler-digest.ts +4 -0
- package/src/swift-darwin-records.ts +6 -0
- package/src/swift-distribution-mirror.ts +10 -1
- package/src/swift-distribution.lock.json +19 -18
- package/src/swift-distribution.ts +17 -1
- package/src/swift-entry-module.ts +1 -0
- package/src/swift-guest-compile.ts +8 -1
- package/src/swift-host.ts +79 -23
- package/src/swift-installed-targets.ts +51 -20
- package/src/swift-objc-standin.ts +60 -8
- package/src/swift-packages.ts +104 -24
- package/src/swift-project-user.ts +2 -1
- package/src/swift-reproducible.ts +99 -1
- package/src/swift-root-lock.ts +52 -46
- package/src/swift-sdk-app-module.ts +65 -13
- package/src/swift-sdk-image-producer.ts +2 -1
- package/src/swift-sdk-image.ts +23 -8
- package/src/swift-sdk-later-data.ts +294 -44
- package/src/swift-sdk-surface.ts +233 -55
- package/src/swift-shared-sdk.ts +7 -0
- package/src/swift-standin-builtin-behavior.ts +18 -0
- package/src/swift-standin-emit.ts +242 -54
- package/src/swift-standins.ts +184 -38
- package/src/swift-startup-split.ts +19 -9
- package/src/swift-toolchain.ts +18 -0
- package/src/swift-wasm-prune.ts +179 -9
- package/src/swift-xcframework.ts +16 -0
- package/src/swiftContract.ts +4 -1
- package/src/swiftSdkLinkContract.ts +2 -0
- package/src/swiftTargetContract.ts +1 -0
- package/src/turbo-bundle.ts +6 -3
- package/src/turbo-codegen-intake.ts +106 -16
- package/src/turbo-compile.ts +89 -68
- package/src/turbo-fabric-app.ts +287 -23
- package/src/turbo-provider-host.ts +122 -31
- package/src/turbo-runtime.lock.json +26 -26
- package/src/turbo-source.ts +374 -157
- package/src/vite-plugin.ts +48 -112
- package/src/wasm-binary-sections.ts +40 -0
- package/src/wasm-code-immediates.ts +35 -5
- package/src/widget-extension-bundle.ts +15 -1
- package/src/worklet-executable.ts +2 -1
- package/src/worklet-kernel.ts +5 -3
- package/src/worklets-babel.ts +2 -1
- package/src/xcode-project.ts +151 -53
- package/src/xcode-scheme-actions.ts +104 -0
- package/cli/commands/canvas.ts +0 -1204
- package/dist-lib/esm-chunks/chunk-B5QD2KEV.mjs +0 -2787
- package/dist-lib/vendor/magic-string.cjs +0 -1693
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +0 -127
- package/src/appBundleResourcesContract.ts +0 -51
- package/src/canvas-groups.ts +0 -28
- package/src/canvas-map-layout.ts +0 -161
- package/src/oneWidgetContract.ts +0 -134
|
@@ -32,10 +32,12 @@ import {
|
|
|
32
32
|
import { sharedCacheDir } from './swift-toolchain.ts'
|
|
33
33
|
import { findWorkspaceRoot } from './workspace-root.ts'
|
|
34
34
|
import {
|
|
35
|
+
installedPodsProjectCxxFlags,
|
|
35
36
|
resolveXcodeSwiftPackages,
|
|
36
37
|
selectXcodeWorkspace,
|
|
37
38
|
xcodeInstallationIdentity,
|
|
38
39
|
} from './xcode-project.ts'
|
|
40
|
+
import { schemePreActionFiles } from './xcode-scheme-actions.ts'
|
|
39
41
|
|
|
40
42
|
// install scripts that write git hooks must never reach the user's global hooks path
|
|
41
43
|
const isolatedGitEnv = {
|
|
@@ -47,16 +49,37 @@ function cleanWorkspaceGitEnv(): NodeJS.ProcessEnv {
|
|
|
47
49
|
return { ...withoutGitRepositoryEnv(), ...isolatedGitEnv }
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
|
|
52
|
+
// pod install uses these inputs to select source targets and prebuilt frameworks.
|
|
53
|
+
export function reactNativePodsEnvironment(app: string) {
|
|
54
|
+
const audioOption = process.env.DISABLE_AUDIOAPI_FFMPEG
|
|
55
|
+
const manifest = path.resolve(app, 'package.json')
|
|
56
|
+
const audioPackage = 'react-native-audio-api'
|
|
57
|
+
// key the audio pod's default explicitly so older workspace entries cannot cross modes.
|
|
58
|
+
const hasAudioOption =
|
|
59
|
+
audioOption !== undefined ||
|
|
60
|
+
createRequire(manifest)
|
|
61
|
+
.resolve.paths(audioPackage)
|
|
62
|
+
?.some((directory) =>
|
|
63
|
+
fs.existsSync(path.join(directory, audioPackage, 'RNAudioAPI.podspec')),
|
|
64
|
+
) ||
|
|
65
|
+
declaresNativeDependency(JSON.parse(fs.readFileSync(manifest, 'utf8')), audioPackage)
|
|
66
|
+
const disableFfmpeg = audioOption === '1' ? '1' : '0'
|
|
53
67
|
return {
|
|
54
68
|
RCT_NEW_ARCH_ENABLED: process.env.RCT_NEW_ARCH_ENABLED,
|
|
69
|
+
RCT_REMOVE_LEGACY_ARCH: process.env.RCT_REMOVE_LEGACY_ARCH,
|
|
55
70
|
RCT_USE_PREBUILT_RNCORE: process.env.RCT_USE_PREBUILT_RNCORE,
|
|
56
71
|
RCT_USE_RN_DEP: process.env.RCT_USE_RN_DEP,
|
|
72
|
+
DISABLE_AUDIOAPI_FFMPEG: hasAudioOption ? disableFfmpeg : undefined,
|
|
57
73
|
}
|
|
58
74
|
}
|
|
59
75
|
|
|
76
|
+
export function reactNativeRemovesLegacyArch(app: string, configuration = 'Release') {
|
|
77
|
+
const flags = installedPodsProjectCxxFlags(app, configuration)
|
|
78
|
+
return flags
|
|
79
|
+
? flags.includes('-DRCT_REMOVE_LEGACY_ARCH=1')
|
|
80
|
+
: process.env.RCT_REMOVE_LEGACY_ARCH === '1'
|
|
81
|
+
}
|
|
82
|
+
|
|
60
83
|
// install from the lockfile that describes the app's dependencies. a manifest
|
|
61
84
|
// can retain a different packageManager after the project changes managers.
|
|
62
85
|
function workspacePackageManager(
|
|
@@ -318,7 +341,7 @@ async function hashWorkspaceInputs(
|
|
|
318
341
|
everyByte: boolean,
|
|
319
342
|
signal?: AbortSignal,
|
|
320
343
|
sourceOnly = false,
|
|
321
|
-
podsEnvironment = reactNativePodsEnvironment(),
|
|
344
|
+
podsEnvironment = reactNativePodsEnvironment(app),
|
|
322
345
|
): Promise<WorkspaceInputs> {
|
|
323
346
|
// one workspace per real directory: a caller holding a symlinked path would
|
|
324
347
|
// otherwise hash, copy and compile a second workspace for the same app
|
|
@@ -347,6 +370,7 @@ async function walkWorkspaceInputs(
|
|
|
347
370
|
root,
|
|
348
371
|
sourceOnly,
|
|
349
372
|
linkedPackageDirectories(root, app),
|
|
373
|
+
schemePreActionFiles(app).map((file) => path.relative(root, file)),
|
|
350
374
|
)
|
|
351
375
|
const appRelative = path.relative(root, app)
|
|
352
376
|
const hash = createHash('sha256')
|
|
@@ -539,7 +563,7 @@ async function walkWorkspaceInputs(
|
|
|
539
563
|
).stdout.trim()
|
|
540
564
|
: localNode
|
|
541
565
|
const toolchain = JSON.stringify({
|
|
542
|
-
preparation:
|
|
566
|
+
preparation: 14,
|
|
543
567
|
appRelative,
|
|
544
568
|
xcode: xcodeInstallationIdentity(),
|
|
545
569
|
node,
|
|
@@ -715,7 +739,11 @@ const current = new Map<
|
|
|
715
739
|
{
|
|
716
740
|
watch: RootWatch
|
|
717
741
|
edits: number
|
|
718
|
-
result: {
|
|
742
|
+
result: {
|
|
743
|
+
app: string
|
|
744
|
+
work: string
|
|
745
|
+
toolEnvironment: ReturnType<typeof workspaceMiseEnvironment>
|
|
746
|
+
}
|
|
719
747
|
}
|
|
720
748
|
>()
|
|
721
749
|
|
|
@@ -785,7 +813,7 @@ type PreparationStage = 'project' | 'installed-project' | 'workspace'
|
|
|
785
813
|
|
|
786
814
|
function prepare(app: string, stage: PreparationStage, signal?: AbortSignal) {
|
|
787
815
|
app = fs.realpathSync(app)
|
|
788
|
-
const podsEnvironment = reactNativePodsEnvironment()
|
|
816
|
+
const podsEnvironment = reactNativePodsEnvironment(app)
|
|
789
817
|
const podsKey = JSON.stringify(podsEnvironment)
|
|
790
818
|
const key = `${app}\0${stage}\0${podsKey}`
|
|
791
819
|
const last =
|
|
@@ -1069,6 +1097,35 @@ function initializeWorkspaceGit(root: string, work: string) {
|
|
|
1069
1097
|
})
|
|
1070
1098
|
}
|
|
1071
1099
|
|
|
1100
|
+
function workspaceMiseEnvironment(root: string, app: string, work: string) {
|
|
1101
|
+
// mise ties trust to a path, so carry only trusted configs whose copies match.
|
|
1102
|
+
const trustedConfigs = new Set<string>()
|
|
1103
|
+
for (const cwd of [root, app]) {
|
|
1104
|
+
// runner-toolchain-platform: darwin
|
|
1105
|
+
const result = spawnSync('mise', ['config', 'ls', '--json'], {
|
|
1106
|
+
cwd,
|
|
1107
|
+
encoding: 'utf8',
|
|
1108
|
+
})
|
|
1109
|
+
if (result.status !== 0) continue
|
|
1110
|
+
const configs: { path: string }[] = JSON.parse(result.stdout)
|
|
1111
|
+
for (const config of configs) {
|
|
1112
|
+
const relative = path.relative(root, config.path)
|
|
1113
|
+
if (relative.startsWith('..') || path.isAbsolute(relative)) continue
|
|
1114
|
+
const copy = path.join(work, relative)
|
|
1115
|
+
if (
|
|
1116
|
+
fs.existsSync(copy) &&
|
|
1117
|
+
fs.readFileSync(config.path).equals(fs.readFileSync(copy))
|
|
1118
|
+
)
|
|
1119
|
+
trustedConfigs.add(copy)
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
return {
|
|
1123
|
+
MISE_TRUSTED_CONFIG_PATHS: [process.env.MISE_TRUSTED_CONFIG_PATHS, ...trustedConfigs]
|
|
1124
|
+
.filter(Boolean)
|
|
1125
|
+
.join(path.delimiter),
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1072
1129
|
async function prepareWorkspace(
|
|
1073
1130
|
app: string,
|
|
1074
1131
|
stage: PreparationStage,
|
|
@@ -1086,7 +1143,11 @@ async function prepareWorkspace(
|
|
|
1086
1143
|
const { appRelative, nativeHash, miseNode, excluded, mayContainNative } =
|
|
1087
1144
|
await hashWorkspaceInputs(app, false, undefined, false, podsEnvironment)
|
|
1088
1145
|
watch.excluded = excluded
|
|
1089
|
-
watch.ignoredLater = await untrackedIgnored(
|
|
1146
|
+
watch.ignoredLater = await untrackedIgnored(
|
|
1147
|
+
root,
|
|
1148
|
+
linkedPackageDirectories(root, app),
|
|
1149
|
+
schemePreActionFiles(app).map((file) => path.relative(root, file)),
|
|
1150
|
+
)
|
|
1090
1151
|
const appManifest = JSON.parse(fs.readFileSync(path.join(app, 'package.json'), 'utf8'))
|
|
1091
1152
|
// the registry hit uses the verified installed dependencies. a later local
|
|
1092
1153
|
// compile still gets a workspace reconciled against the lockfile.
|
|
@@ -1101,10 +1162,10 @@ async function prepareWorkspace(
|
|
|
1101
1162
|
const installDirectory = path.join(work, path.relative(root, installRoot))
|
|
1102
1163
|
const changes = (installed: boolean) =>
|
|
1103
1164
|
workspaceFilesToSync(root, work, appRelative, excluded, installed, mayContainNative)
|
|
1104
|
-
const reuse = () => {
|
|
1165
|
+
const reuse = (toolEnvironment = workspaceMiseEnvironment(root, app, work)) => {
|
|
1105
1166
|
const now = new Date()
|
|
1106
1167
|
fs.utimesSync(work, now, now)
|
|
1107
|
-
return { app: preparedApp, work }
|
|
1168
|
+
return { app: preparedApp, work, toolEnvironment }
|
|
1108
1169
|
}
|
|
1109
1170
|
const ready = readStableSwiftRoot(work, () => {
|
|
1110
1171
|
if (
|
|
@@ -1147,36 +1208,7 @@ async function prepareWorkspace(
|
|
|
1147
1208
|
if (projectReady && (stage !== 'workspace' || fs.existsSync(marker))) {
|
|
1148
1209
|
return reuse()
|
|
1149
1210
|
}
|
|
1150
|
-
|
|
1151
|
-
// original app and whose copied bytes still match, for this prepare only.
|
|
1152
|
-
const trustedConfigs = new Set<string>()
|
|
1153
|
-
for (const cwd of [root, app]) {
|
|
1154
|
-
// runner-toolchain-platform: darwin
|
|
1155
|
-
const result = spawnSync('mise', ['config', 'ls', '--json'], {
|
|
1156
|
-
cwd,
|
|
1157
|
-
encoding: 'utf8',
|
|
1158
|
-
})
|
|
1159
|
-
if (result.status !== 0) continue
|
|
1160
|
-
const configs: { path: string }[] = JSON.parse(result.stdout)
|
|
1161
|
-
for (const config of configs) {
|
|
1162
|
-
const relative = path.relative(root, config.path)
|
|
1163
|
-
if (relative.startsWith('..') || path.isAbsolute(relative)) continue
|
|
1164
|
-
const copy = path.join(work, relative)
|
|
1165
|
-
if (
|
|
1166
|
-
fs.existsSync(copy) &&
|
|
1167
|
-
fs.readFileSync(config.path).equals(fs.readFileSync(copy))
|
|
1168
|
-
)
|
|
1169
|
-
trustedConfigs.add(copy)
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
const miseEnv = {
|
|
1173
|
-
MISE_TRUSTED_CONFIG_PATHS: [
|
|
1174
|
-
process.env.MISE_TRUSTED_CONFIG_PATHS,
|
|
1175
|
-
...trustedConfigs,
|
|
1176
|
-
]
|
|
1177
|
-
.filter(Boolean)
|
|
1178
|
-
.join(path.delimiter),
|
|
1179
|
-
}
|
|
1211
|
+
const miseEnv = workspaceMiseEnvironment(root, app, work)
|
|
1180
1212
|
const run = (
|
|
1181
1213
|
command: string,
|
|
1182
1214
|
args: string[],
|
|
@@ -1309,6 +1341,7 @@ async function prepareWorkspace(
|
|
|
1309
1341
|
execute,
|
|
1310
1342
|
report,
|
|
1311
1343
|
oneSdkPrepared,
|
|
1344
|
+
miseEnv,
|
|
1312
1345
|
)
|
|
1313
1346
|
fs.writeFileSync(projectMarker, 'complete\n')
|
|
1314
1347
|
}
|
|
@@ -1321,10 +1354,11 @@ async function prepareWorkspace(
|
|
|
1321
1354
|
execute,
|
|
1322
1355
|
report,
|
|
1323
1356
|
oneSdkPrepared,
|
|
1357
|
+
miseEnv,
|
|
1324
1358
|
)
|
|
1325
1359
|
fs.writeFileSync(marker, 'complete\n')
|
|
1326
1360
|
}
|
|
1327
|
-
return reuse()
|
|
1361
|
+
return reuse(miseEnv)
|
|
1328
1362
|
}
|
|
1329
1363
|
const result = ready ?? (await withSwiftRootLock(work, prepareLocked))
|
|
1330
1364
|
if (stage === 'workspace') readInstalledPodspecs(app, result.app)
|
|
@@ -1365,13 +1399,16 @@ async function prepareNativeProject(
|
|
|
1365
1399
|
stage: 'project' | 'workspace',
|
|
1366
1400
|
execute: NativeExecute,
|
|
1367
1401
|
report: (message: string) => void,
|
|
1368
|
-
oneSdkPrepared
|
|
1402
|
+
oneSdkPrepared: Set<string>,
|
|
1403
|
+
toolEnvironment: { MISE_TRUSTED_CONFIG_PATHS: string },
|
|
1369
1404
|
) {
|
|
1370
1405
|
const appRequire = createRequire(path.join(app, 'package.json'))
|
|
1406
|
+
const architecture = process.env.RCT_NEW_ARCH_ENABLED
|
|
1407
|
+
// the app's Podfile picks the architecture, as on a device, unless the caller states one
|
|
1371
1408
|
const sourcePodEnv = {
|
|
1372
1409
|
EXPO_USE_PRECOMPILED_MODULES: '0',
|
|
1373
1410
|
ONE_PREBUILT_IOS: '0',
|
|
1374
|
-
|
|
1411
|
+
...(architecture === undefined ? {} : { RCT_NEW_ARCH_ENABLED: architecture }),
|
|
1375
1412
|
}
|
|
1376
1413
|
const declares = (name: string) => declaresNativeDependency(manifest, name)
|
|
1377
1414
|
if (!fs.existsSync(path.join(app, 'ios', 'Podfile'))) {
|
|
@@ -1396,9 +1433,9 @@ async function prepareNativeProject(
|
|
|
1396
1433
|
// one prepare generates the sources once: its project and workspace stages
|
|
1397
1434
|
// read the same app and installed facades, so the second generation in the
|
|
1398
1435
|
// same prepare is the same child process run again for identical bytes.
|
|
1399
|
-
if (!oneSdkPrepared
|
|
1436
|
+
if (!oneSdkPrepared.has(app)) {
|
|
1400
1437
|
await prepareOneSDKSources(app)
|
|
1401
|
-
oneSdkPrepared
|
|
1438
|
+
oneSdkPrepared.add(app)
|
|
1402
1439
|
}
|
|
1403
1440
|
report('native sources prepared')
|
|
1404
1441
|
if (stage === 'project') return
|
|
@@ -1410,6 +1447,7 @@ async function prepareNativeProject(
|
|
|
1410
1447
|
app,
|
|
1411
1448
|
{
|
|
1412
1449
|
...cleanWorkspaceGitEnv(),
|
|
1450
|
+
...toolEnvironment,
|
|
1413
1451
|
EXPO_NO_TELEMETRY: '1',
|
|
1414
1452
|
LANG: 'en_US.UTF-8',
|
|
1415
1453
|
LC_ALL: 'en_US.UTF-8',
|
package/src/expo-pod-prebuilt.ts
CHANGED
|
@@ -114,6 +114,7 @@ export async function expoPodInputs(
|
|
|
114
114
|
'swift-pin': JSON.stringify(swiftNativePin()),
|
|
115
115
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
116
116
|
name: pod.name,
|
|
117
|
+
version: pod.version,
|
|
117
118
|
sources: createHash('sha256').update(JSON.stringify(sources)).digest('hex'),
|
|
118
119
|
}
|
|
119
120
|
}
|