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
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swiftTargetContract.ts
|
|
4
4
|
var SWIFT_WASM_TRIPLE = "wasm64-unknown-wasip1-threads";
|
|
5
|
+
var SWIFT_PROVIDED_MODULES_PREFIX = ".peach-modules-";
|
|
5
6
|
var wasmThreadFlags = [
|
|
6
7
|
"-pthread",
|
|
7
8
|
"-matomics",
|
|
@@ -54,6 +55,24 @@ function swiftSdkOptions() {
|
|
|
54
55
|
return ["--swift-sdks-path", path.resolve(peachSwiftSdksDir())];
|
|
55
56
|
}
|
|
56
57
|
var compilerArchives = {
|
|
58
|
+
"swift-6.4.0-RELEASE-custom-79968b9717d332cb": {
|
|
59
|
+
identity: "79968b9717d332cb",
|
|
60
|
+
archive: "tar.zst",
|
|
61
|
+
hosts: {
|
|
62
|
+
"darwin-arm64": {
|
|
63
|
+
checksum: "1275c900f87b41c1d42b884cd4e80f79abd2ab46c99d7c4325e4fe9cb0cf6152",
|
|
64
|
+
manifest: "a8142e2cf741ddd0531c161000a2f05c600ba1125a481496536fca9346d7b100"
|
|
65
|
+
},
|
|
66
|
+
"linux-x64": {
|
|
67
|
+
checksum: "08e82c2f6265a83e5203aa91790bb956ebbf616e9e5592e69de860b3b4dd1395",
|
|
68
|
+
manifest: "f51902156ecea7d61859266cd4f0412e949d554cd15d79ee0d360213fa15111c"
|
|
69
|
+
},
|
|
70
|
+
"linux-arm64": {
|
|
71
|
+
checksum: "3c6107f54fee6dbe5981b35eff19d55376e67aa8ae16c077ca16c2f510d24e40",
|
|
72
|
+
manifest: "524d5651d9bb95ca10c29534db96679575711edd25ef65985eb13319cb0d972f"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
57
76
|
"swift-6.4.0-RELEASE-custom-3844400b8fd05718": {
|
|
58
77
|
identity: "3844400b8fd05718",
|
|
59
78
|
archive: "tar.zst",
|
|
@@ -841,7 +860,10 @@ function swiftCompilerInstall(release) {
|
|
|
841
860
|
}
|
|
842
861
|
|
|
843
862
|
// src/process-group.ts
|
|
844
|
-
import {
|
|
863
|
+
import {
|
|
864
|
+
spawn as spawn2,
|
|
865
|
+
spawnSync as spawnSync2
|
|
866
|
+
} from "node:child_process";
|
|
845
867
|
import {
|
|
846
868
|
appendFileSync,
|
|
847
869
|
mkdtempSync,
|
|
@@ -950,6 +972,74 @@ var FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
|
950
972
|
var EXIT_SCAN_TIMEOUT_MS = 1e4;
|
|
951
973
|
var INSPECTION_TIMEOUT_MS = 1e4;
|
|
952
974
|
var FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
975
|
+
var ownedProcessGroups = /* @__PURE__ */ new WeakSet();
|
|
976
|
+
var stopCompilerTree = [
|
|
977
|
+
"stop_tree() {",
|
|
978
|
+
' kill -STOP "$1" 2>/dev/null || return',
|
|
979
|
+
process.platform === "linux" ? [
|
|
980
|
+
"children=",
|
|
981
|
+
'for file in /proc/"$1"/task/*/children; do',
|
|
982
|
+
' [ -r "$file" ] || continue',
|
|
983
|
+
" pids=",
|
|
984
|
+
' IFS= read -r pids <"$file" || :',
|
|
985
|
+
' children="$children $pids"',
|
|
986
|
+
"done"
|
|
987
|
+
].join("\n") : 'children=$(/usr/bin/pgrep -P "$1")',
|
|
988
|
+
' for child in $children; do stop_tree "$child"; done',
|
|
989
|
+
' kill -KILL "$1" 2>/dev/null || :',
|
|
990
|
+
"}"
|
|
991
|
+
].join("\n");
|
|
992
|
+
function spawnOwnedProcessGroup(command, args, options, register) {
|
|
993
|
+
const { output, ...launch } = options;
|
|
994
|
+
const child = spawn2(
|
|
995
|
+
"/bin/sh",
|
|
996
|
+
[
|
|
997
|
+
"-c",
|
|
998
|
+
[
|
|
999
|
+
"IFS= read -r start || exit 1",
|
|
1000
|
+
"exec 3<&0",
|
|
1001
|
+
'"$@" </dev/null 3<&- &',
|
|
1002
|
+
"compiler=$!",
|
|
1003
|
+
"(",
|
|
1004
|
+
' trap "" HUP INT TERM',
|
|
1005
|
+
" IFS= read -r _ <&3",
|
|
1006
|
+
stopCompilerTree,
|
|
1007
|
+
' stop_tree "$compiler"',
|
|
1008
|
+
" kill -KILL 0",
|
|
1009
|
+
") >/dev/null 2>&1 &",
|
|
1010
|
+
"monitor=$!",
|
|
1011
|
+
'wait "$compiler"',
|
|
1012
|
+
"status=$?",
|
|
1013
|
+
'kill -KILL "$monitor" 2>/dev/null',
|
|
1014
|
+
'wait "$monitor" 2>/dev/null',
|
|
1015
|
+
'exit "$status"'
|
|
1016
|
+
].join("\n"),
|
|
1017
|
+
"process-group",
|
|
1018
|
+
command,
|
|
1019
|
+
...args
|
|
1020
|
+
],
|
|
1021
|
+
{
|
|
1022
|
+
...launch,
|
|
1023
|
+
detached: true,
|
|
1024
|
+
stdio: output ? ["pipe", ...output] : ["pipe", "pipe", "pipe"]
|
|
1025
|
+
}
|
|
1026
|
+
);
|
|
1027
|
+
ownedProcessGroups.add(child);
|
|
1028
|
+
const control = child.stdin;
|
|
1029
|
+
control.on("error", () => {
|
|
1030
|
+
});
|
|
1031
|
+
try {
|
|
1032
|
+
if (child.pid === void 0) control.destroy();
|
|
1033
|
+
else {
|
|
1034
|
+
register?.(child);
|
|
1035
|
+
control.write("go\n");
|
|
1036
|
+
}
|
|
1037
|
+
} catch (error) {
|
|
1038
|
+
control.destroy();
|
|
1039
|
+
throw error;
|
|
1040
|
+
}
|
|
1041
|
+
return child;
|
|
1042
|
+
}
|
|
953
1043
|
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
954
1044
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
955
1045
|
throw new Error("process inspection requires valid parent pids");
|
|
@@ -1132,15 +1222,33 @@ function processesHaveExited(pids, pgid) {
|
|
|
1132
1222
|
function groupIsEmpty(pgid) {
|
|
1133
1223
|
return processesHaveExited([], pgid);
|
|
1134
1224
|
}
|
|
1135
|
-
function killOrphanedProcessGroup(pgid) {
|
|
1225
|
+
function killOrphanedProcessGroup(pgid, memberPid) {
|
|
1136
1226
|
if (!Number.isInteger(pgid) || pgid <= 1)
|
|
1137
1227
|
throw new Error(`invalid process group ${pgid}`);
|
|
1138
1228
|
try {
|
|
1139
1229
|
process.kill(-pgid, "SIGKILL");
|
|
1230
|
+
return true;
|
|
1140
1231
|
} catch (error) {
|
|
1141
1232
|
const code = error instanceof Error && "code" in error ? error.code : void 0;
|
|
1142
|
-
if (code
|
|
1233
|
+
if (code === "ESRCH") return true;
|
|
1234
|
+
if (code !== "EPERM") throw error;
|
|
1235
|
+
}
|
|
1236
|
+
if (process.platform !== "linux" || process.getuid?.() !== 0) return false;
|
|
1237
|
+
let status;
|
|
1238
|
+
try {
|
|
1239
|
+
status = readFileSync2(`/proc/${memberPid}/status`, "utf8");
|
|
1240
|
+
} catch (error) {
|
|
1241
|
+
if (error instanceof Error && "code" in error && error.code === "ENOENT") return true;
|
|
1242
|
+
throw error;
|
|
1143
1243
|
}
|
|
1244
|
+
const uid = Number(/^Uid:\s+(\d+)/m.exec(status)?.[1]);
|
|
1245
|
+
if (!Number.isInteger(uid) || uid === 0) return false;
|
|
1246
|
+
return spawnSync2("/bin/kill", ["-KILL", "--", String(-pgid)], {
|
|
1247
|
+
uid,
|
|
1248
|
+
stdio: "ignore",
|
|
1249
|
+
timeout: FORCED_EXIT_TIMEOUT_MS,
|
|
1250
|
+
killSignal: "SIGKILL"
|
|
1251
|
+
}).status === 0;
|
|
1144
1252
|
}
|
|
1145
1253
|
async function waitForExit(pids, pgid, timeoutMs) {
|
|
1146
1254
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -1162,6 +1270,11 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
1162
1270
|
if (child.exitCode !== null || child.signalCode !== null) {
|
|
1163
1271
|
if (groupIsEmpty(child.pid)) return;
|
|
1164
1272
|
}
|
|
1273
|
+
if (ownedProcessGroups.has(child) && child.exitCode === null && child.signalCode === null) {
|
|
1274
|
+
child.stdin.end();
|
|
1275
|
+
if (await waitForExit([], child.pid, EXIT_SCAN_TIMEOUT_MS)) return;
|
|
1276
|
+
throw new Error(`owned process group ${child.pid} exit could not be confirmed`);
|
|
1277
|
+
}
|
|
1165
1278
|
const freeze = await protectProcessFreeze(child.pid);
|
|
1166
1279
|
const descendants = /* @__PURE__ */ new Set();
|
|
1167
1280
|
let inspectionError = null;
|
|
@@ -1309,9 +1422,6 @@ function nativeWindowAdmission() {
|
|
|
1309
1422
|
|
|
1310
1423
|
// src/swift-root-lock.ts
|
|
1311
1424
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
1312
|
-
import {
|
|
1313
|
-
spawn as spawn3
|
|
1314
|
-
} from "node:child_process";
|
|
1315
1425
|
import { createHash as createHash2, randomUUID } from "node:crypto";
|
|
1316
1426
|
import {
|
|
1317
1427
|
closeSync,
|
|
@@ -1366,7 +1476,11 @@ function ownIdentity(pid) {
|
|
|
1366
1476
|
function parseIdentity(text) {
|
|
1367
1477
|
const value = JSON.parse(text);
|
|
1368
1478
|
if (value && typeof value === "object" && "pid" in value && typeof value.pid === "number" && Number.isInteger(value.pid) && value.pid > 1 && "start" in value && typeof value.start === "number")
|
|
1369
|
-
return {
|
|
1479
|
+
return {
|
|
1480
|
+
pid: value.pid,
|
|
1481
|
+
start: value.start,
|
|
1482
|
+
monitored: "monitored" in value && value.monitored === true
|
|
1483
|
+
};
|
|
1370
1484
|
throw new Error(`swift root lock record is not a process identity: ${text}`);
|
|
1371
1485
|
}
|
|
1372
1486
|
function pause(ms, signal) {
|
|
@@ -1405,12 +1519,21 @@ function readGeneration(directory, number) {
|
|
|
1405
1519
|
}
|
|
1406
1520
|
function readChildren(directory, number) {
|
|
1407
1521
|
const prefix = name(number, "child.");
|
|
1408
|
-
|
|
1522
|
+
const children = [];
|
|
1523
|
+
for (const entry of readdirSync3(directory)) {
|
|
1524
|
+
if (!entry.startsWith(prefix)) continue;
|
|
1525
|
+
try {
|
|
1526
|
+
children.push(parseIdentity(readFileSync3(path2.join(directory, entry), "utf8")));
|
|
1527
|
+
} catch (error) {
|
|
1528
|
+
if (errorCode(error) !== "ENOENT") throw error;
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
return children;
|
|
1409
1532
|
}
|
|
1410
|
-
function
|
|
1533
|
+
function liveGroupMember(table, leader) {
|
|
1411
1534
|
const row = table.find((candidate) => candidate.pid === leader.pid);
|
|
1412
|
-
if (row && !sameProcess(row, leader)) return
|
|
1413
|
-
return table.
|
|
1535
|
+
if (row && !sameProcess(row, leader)) return;
|
|
1536
|
+
return table.find((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
|
|
1414
1537
|
}
|
|
1415
1538
|
function linuxMountPath(existing) {
|
|
1416
1539
|
const fd = openSync(existing, "r");
|
|
@@ -1547,12 +1670,19 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
1547
1670
|
const children2 = readChildren(directory, newest);
|
|
1548
1671
|
if (children2.length) {
|
|
1549
1672
|
const table = await processTableWithRetry(void 0, signal);
|
|
1550
|
-
const orphaned =
|
|
1673
|
+
const orphaned = [];
|
|
1674
|
+
const denied = [];
|
|
1675
|
+
for (const child of children2) {
|
|
1676
|
+
const member = liveGroupMember(table, child);
|
|
1677
|
+
if (!member) continue;
|
|
1678
|
+
orphaned.push(child.pid);
|
|
1679
|
+
if (!child.monitored && !killOrphanedProcessGroup(child.pid, member.pid))
|
|
1680
|
+
denied.push(child.pid);
|
|
1681
|
+
}
|
|
1551
1682
|
if (orphaned.length) {
|
|
1552
|
-
for (const child of orphaned) killOrphanedProcessGroup(child.pid);
|
|
1553
1683
|
if (!wait) return void 0;
|
|
1554
1684
|
await waiting(
|
|
1555
|
-
`stopping compiler groups ${orphaned.
|
|
1685
|
+
`stopping compiler groups ${orphaned.join(", ")} left by dead pid ${identity.pid}` + (denied.length ? ` (signal denied for ${denied.join(", ")})` : "")
|
|
1556
1686
|
);
|
|
1557
1687
|
continue;
|
|
1558
1688
|
}
|
|
@@ -1583,38 +1713,25 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
1583
1713
|
}
|
|
1584
1714
|
const children = [];
|
|
1585
1715
|
const lease = {
|
|
1586
|
-
register(child) {
|
|
1716
|
+
register(child, monitored) {
|
|
1587
1717
|
const index = children.push(child);
|
|
1588
1718
|
if (child.pid === void 0) throw new Error("could not register compiler process");
|
|
1589
1719
|
const childPending = `${pending}.child.${index}`;
|
|
1590
1720
|
try {
|
|
1591
|
-
writeFileSync2(
|
|
1721
|
+
writeFileSync2(
|
|
1722
|
+
childPending,
|
|
1723
|
+
JSON.stringify({ ...ownIdentity(child.pid), monitored })
|
|
1724
|
+
);
|
|
1592
1725
|
linkSync(childPending, path2.join(directory, name(held, `child.${index}`)));
|
|
1593
1726
|
} finally {
|
|
1594
1727
|
rmSync2(childPending, { force: true });
|
|
1595
1728
|
}
|
|
1596
1729
|
},
|
|
1597
1730
|
spawn(command, args, options, companion) {
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
{ ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
|
|
1602
|
-
);
|
|
1603
|
-
child.stdin.on("error", () => {
|
|
1731
|
+
return spawnOwnedProcessGroup(command, args, options, (child) => {
|
|
1732
|
+
lease.register(child, true);
|
|
1733
|
+
companion?.register(child, true);
|
|
1604
1734
|
});
|
|
1605
|
-
if (child.pid === void 0) {
|
|
1606
|
-
child.stdin.destroy();
|
|
1607
|
-
return child;
|
|
1608
|
-
}
|
|
1609
|
-
try {
|
|
1610
|
-
lease.register(child);
|
|
1611
|
-
companion?.register(child);
|
|
1612
|
-
} catch (error) {
|
|
1613
|
-
child.stdin.destroy();
|
|
1614
|
-
throw error;
|
|
1615
|
-
}
|
|
1616
|
-
child.stdin.end("go\n");
|
|
1617
|
-
return child;
|
|
1618
1735
|
}
|
|
1619
1736
|
};
|
|
1620
1737
|
try {
|
|
@@ -1627,6 +1744,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
1627
1744
|
|
|
1628
1745
|
export {
|
|
1629
1746
|
SWIFT_WASM_TRIPLE,
|
|
1747
|
+
SWIFT_PROVIDED_MODULES_PREFIX,
|
|
1630
1748
|
wasmThreadFlags,
|
|
1631
1749
|
wasmThreadLinkFlags,
|
|
1632
1750
|
SWIFT_PEACH_ENGINE_ARCHIVE,
|
|
@@ -1649,6 +1767,7 @@ export {
|
|
|
1649
1767
|
swiftToolchain,
|
|
1650
1768
|
swiftFileChecksum,
|
|
1651
1769
|
swiftCompiler,
|
|
1770
|
+
spawnOwnedProcessGroup,
|
|
1652
1771
|
terminateProcessGroup,
|
|
1653
1772
|
windowAdmission,
|
|
1654
1773
|
withSwiftRootReadHolds,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../peach-kit/src/nativeWasmContract.ts
|
|
4
4
|
var NATIVE_IMAGE_SECTION = "peach.native-image-v1";
|
|
@@ -14,13 +14,51 @@ var SWIFT_FRAME_TURN_EXPORTS = {
|
|
|
14
14
|
};
|
|
15
15
|
var NATIVE_SDK_THUNK_SECTION = "peach.sdk-thunks";
|
|
16
16
|
var NATIVE_LAZY_SLOT_IMPORT = "load_slot";
|
|
17
|
+
var NATIVE_LAZY_SECTION = "peach.lazy-code-v2";
|
|
17
18
|
var NATIVE_LAZY_DIGEST_BYTES = 32;
|
|
18
19
|
var NATIVE_LAZY_PART_BYTES = NATIVE_LAZY_DIGEST_BYTES + 4;
|
|
20
|
+
var NATIVE_LAZY_MAX_PARTS = 65535;
|
|
21
|
+
var NATIVE_LAZY_BYTE_SLOTS = 2147483648;
|
|
22
|
+
var NATIVE_LAZY_DATA_SECTION = "peach.lazy-data-v1";
|
|
19
23
|
function readNativeStartupPeak(value) {
|
|
20
24
|
const pages = typeof value === "string" && /^[1-9][0-9]{0,4}$/.test(value) ? Number(value) : value;
|
|
21
25
|
if (typeof pages === "number" && Number.isInteger(pages) && pages >= 1 && pages <= 65536)
|
|
22
26
|
return pages;
|
|
23
27
|
}
|
|
28
|
+
function isNativeLazyDigestList(value, maxParts = NATIVE_LAZY_MAX_PARTS) {
|
|
29
|
+
return Array.isArray(value) && value.length <= maxParts && value.every(
|
|
30
|
+
(digest) => typeof digest === "string" && /^[a-f0-9]{64}$/.test(digest)
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function readNativeLazyParts(section) {
|
|
34
|
+
if (section.byteLength < 4) throw new Error("native code part inventory is truncated");
|
|
35
|
+
const view = ArrayBuffer.isView(section) ? new DataView(section.buffer, section.byteOffset, section.byteLength) : new DataView(section);
|
|
36
|
+
const layout = view.getUint32(0, true);
|
|
37
|
+
const narrow = layout >= NATIVE_LAZY_BYTE_SLOTS;
|
|
38
|
+
const count = narrow ? layout - NATIVE_LAZY_BYTE_SLOTS : layout;
|
|
39
|
+
const width = narrow ? 1 : 2;
|
|
40
|
+
const slotOffset = 4 + count * NATIVE_LAZY_PART_BYTES;
|
|
41
|
+
const slotBytes = section.byteLength - slotOffset;
|
|
42
|
+
if (count === 0 || count > (narrow ? 255 : NATIVE_LAZY_MAX_PARTS) || slotBytes <= 0 || slotBytes % width)
|
|
43
|
+
throw new Error("native code part inventory is malformed");
|
|
44
|
+
const parts = [];
|
|
45
|
+
for (let id = 0; id < count; id++) {
|
|
46
|
+
const offset = 4 + id * NATIVE_LAZY_PART_BYTES;
|
|
47
|
+
const digest = new Uint8Array(
|
|
48
|
+
view.buffer,
|
|
49
|
+
view.byteOffset + offset,
|
|
50
|
+
NATIVE_LAZY_DIGEST_BYTES
|
|
51
|
+
);
|
|
52
|
+
const sha256 = Array.from(digest, (byte) => byte.toString(16).padStart(2, "0")).join(
|
|
53
|
+
""
|
|
54
|
+
);
|
|
55
|
+
const byteLength = view.getUint32(offset + NATIVE_LAZY_DIGEST_BYTES, true);
|
|
56
|
+
if (!byteLength) throw new Error("native code part has no bytes");
|
|
57
|
+
parts.push({ sha256, byteLength });
|
|
58
|
+
}
|
|
59
|
+
const partForSlot = narrow ? (slot) => view.getUint8(slotOffset + slot) : (slot) => view.getUint16(slotOffset + slot * 2, true);
|
|
60
|
+
return { parts, slotCount: slotBytes / width, partForSlot };
|
|
61
|
+
}
|
|
24
62
|
var NATIVE_TABLE_RESERVE_SLOTS = 4096;
|
|
25
63
|
|
|
26
64
|
// src/swiftContract.ts
|
|
@@ -204,7 +242,11 @@ export {
|
|
|
204
242
|
SWIFT_FRAME_TURN_EXPORTS,
|
|
205
243
|
NATIVE_SDK_THUNK_SECTION,
|
|
206
244
|
NATIVE_LAZY_SLOT_IMPORT,
|
|
245
|
+
NATIVE_LAZY_SECTION,
|
|
246
|
+
NATIVE_LAZY_DATA_SECTION,
|
|
207
247
|
readNativeStartupPeak,
|
|
248
|
+
isNativeLazyDigestList,
|
|
249
|
+
readNativeLazyParts,
|
|
208
250
|
NATIVE_TABLE_RESERVE_SLOTS,
|
|
209
251
|
isSwiftSourceLinkGraph,
|
|
210
252
|
SWIFT_REMOTE_PACKAGES_DIR,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4FTPQKPT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
cloudBoxIdFromSimulatorId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WRWINRWK.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PZPJJBAS.mjs";
|
|
11
11
|
|
|
12
12
|
// ../peach-globals/src/globalsContract.ts
|
|
13
13
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
@@ -163,11 +163,13 @@ function parsePerformStep(value, index) {
|
|
|
163
163
|
case "touchMove":
|
|
164
164
|
case "touchUp": {
|
|
165
165
|
const pointerId = optionalPointerId(step, path);
|
|
166
|
+
const gate = step.gate === void 0 ? void 0 : Boolean(step.gate);
|
|
166
167
|
return {
|
|
167
168
|
type,
|
|
168
169
|
x: numberValue(step.x, `${path}.x`),
|
|
169
170
|
y: numberValue(step.y, `${path}.y`),
|
|
170
|
-
...pointerId === void 0 ? {} : { pointerId }
|
|
171
|
+
...pointerId === void 0 ? {} : { pointerId },
|
|
172
|
+
...gate ? { gate: true } : {}
|
|
171
173
|
};
|
|
172
174
|
}
|
|
173
175
|
case "touchCancel": {
|
|
@@ -307,6 +309,30 @@ function parsePerformStep(value, index) {
|
|
|
307
309
|
}
|
|
308
310
|
return { type, orientation };
|
|
309
311
|
}
|
|
312
|
+
case "setPosture": {
|
|
313
|
+
const validRest = (v) => v === "closed" || v === "book" || v === "open" || v === "laptop" || v === "tent";
|
|
314
|
+
const rawRest = step.rest !== void 0 ? stringValue(step.rest, `${path}.rest`) : void 0;
|
|
315
|
+
const rawPosture = step.posture !== void 0 ? stringValue(step.posture, `${path}.posture`) : void 0;
|
|
316
|
+
if (rawRest !== void 0 && !validRest(rawRest)) {
|
|
317
|
+
validationFailure(`${path}.rest`, "must be closed, book, open, laptop or tent");
|
|
318
|
+
}
|
|
319
|
+
if (rawPosture !== void 0 && !validRest(rawPosture)) {
|
|
320
|
+
validationFailure(`${path}.posture`, "must be closed, book, open, laptop or tent");
|
|
321
|
+
}
|
|
322
|
+
if (rawRest === void 0 && rawPosture === void 0) {
|
|
323
|
+
validationFailure(`${path}.rest`, "requires rest or posture");
|
|
324
|
+
}
|
|
325
|
+
const rawOrientation = step.orientation !== void 0 ? stringValue(step.orientation, `${path}.orientation`) : void 0;
|
|
326
|
+
if (rawOrientation !== void 0 && rawOrientation !== "portrait" && rawOrientation !== "landscape") {
|
|
327
|
+
validationFailure(`${path}.orientation`, "must be portrait or landscape");
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
type,
|
|
331
|
+
...rawRest ? { rest: rawRest } : {},
|
|
332
|
+
...rawPosture ? { posture: rawPosture } : {},
|
|
333
|
+
...rawOrientation ? { orientation: rawOrientation } : {}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
310
336
|
case "deviceInfo":
|
|
311
337
|
return { type };
|
|
312
338
|
case "deviceHardware":
|
|
@@ -561,9 +587,27 @@ function parseSemanticQuery(value) {
|
|
|
561
587
|
}
|
|
562
588
|
};
|
|
563
589
|
}
|
|
590
|
+
if (kind === "inspectNode") {
|
|
591
|
+
const nodeId = numberValue(query.nodeId, "query.nodeId");
|
|
592
|
+
if (!Number.isSafeInteger(nodeId)) {
|
|
593
|
+
return validationFailure("query.nodeId", "must be an integer");
|
|
594
|
+
}
|
|
595
|
+
if (query.style === void 0) return { kind, nodeId };
|
|
596
|
+
const raw = recordValue(query.style, "query.style");
|
|
597
|
+
const style = {};
|
|
598
|
+
for (const [key, value2] of Object.entries(raw)) {
|
|
599
|
+
if (value2 !== null && !(typeof value2 === "number" && Number.isFinite(value2)) && !(typeof value2 === "string" && value2.length <= 128))
|
|
600
|
+
return validationFailure(
|
|
601
|
+
`query.style.${key}`,
|
|
602
|
+
"must be a finite number, short string, or null"
|
|
603
|
+
);
|
|
604
|
+
style[key] = value2;
|
|
605
|
+
}
|
|
606
|
+
return { kind, nodeId, style };
|
|
607
|
+
}
|
|
564
608
|
return validationFailure(
|
|
565
609
|
"query.kind",
|
|
566
|
-
"must be tree, find, count, accessibility, nodes, focus, geometryRevision, tapTarget, hitTest, screen, or
|
|
610
|
+
"must be tree, find, count, accessibility, nodes, focus, geometryRevision, tapTarget, hitTest, screen, inspectAt, or inspectNode"
|
|
567
611
|
);
|
|
568
612
|
}
|
|
569
613
|
function semanticResolveSelector(value, path) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
parseSwiftDistributionLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4WIDTRBB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
cacheDir,
|
|
7
7
|
readActiveRuntime,
|
|
8
8
|
runtimeDir
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M3CSKAJE.mjs";
|
|
10
10
|
import {
|
|
11
11
|
SWIFT_WASM_TRIPLE,
|
|
12
12
|
registerSwiftHostCompiler
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LD4K2VBL.mjs";
|
|
14
14
|
import {
|
|
15
15
|
peachPublicBrand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-F6DZ4DS2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
isRecord
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PZPJJBAS.mjs";
|
|
20
20
|
|
|
21
21
|
// src/swift-distribution.ts
|
|
22
22
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -196,6 +196,12 @@ function parseAdapterLock(family, value) {
|
|
|
196
196
|
throw new Error(`invalid ${label} lock archive`);
|
|
197
197
|
return {
|
|
198
198
|
headers: headerSet(family, entry.headers),
|
|
199
|
+
...entry.recipe !== void 0 && {
|
|
200
|
+
recipe: digestField(family, entry.recipe, "archive recipe")
|
|
201
|
+
},
|
|
202
|
+
...entry.distribution !== void 0 && {
|
|
203
|
+
distribution: text(family, entry.distribution, "archive distribution")
|
|
204
|
+
},
|
|
199
205
|
sha256: digestField(family, entry.sha256, "lock archive digest"),
|
|
200
206
|
size: entry.size
|
|
201
207
|
};
|