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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "../esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "../esm-chunks/chunk-LTE7YMEG.mjs";
|
|
3
3
|
|
|
4
4
|
// src/host/fetch-proxy-overrides.ts
|
|
5
5
|
var NativeURL = globalThis.URL;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -89,6 +89,24 @@ var import_node_child_process = require("node:child_process");
|
|
|
89
89
|
var import_node_fs = require("node:fs");
|
|
90
90
|
var import_node_os = require("node:os");
|
|
91
91
|
|
|
92
|
+
// src/process-group.ts
|
|
93
|
+
var stopCompilerTree = [
|
|
94
|
+
"stop_tree() {",
|
|
95
|
+
' kill -STOP "$1" 2>/dev/null || return',
|
|
96
|
+
process.platform === "linux" ? [
|
|
97
|
+
"children=",
|
|
98
|
+
'for file in /proc/"$1"/task/*/children; do',
|
|
99
|
+
' [ -r "$file" ] || continue',
|
|
100
|
+
" pids=",
|
|
101
|
+
' IFS= read -r pids <"$file" || :',
|
|
102
|
+
' children="$children $pids"',
|
|
103
|
+
"done"
|
|
104
|
+
].join("\n") : 'children=$(/usr/bin/pgrep -P "$1")',
|
|
105
|
+
' for child in $children; do stop_tree "$child"; done',
|
|
106
|
+
' kill -KILL "$1" 2>/dev/null || :',
|
|
107
|
+
"}"
|
|
108
|
+
].join("\n");
|
|
109
|
+
|
|
92
110
|
// ../contrast-runtime-delivery/src/product.ts
|
|
93
111
|
var import_node_fs3 = __toESM(require("node:fs"), 1);
|
|
94
112
|
var import_node_path2 = __toESM(require("node:path"), 1);
|
|
@@ -406,7 +424,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
406
424
|
"@expo/ui",
|
|
407
425
|
"@expo/ui/community/menu",
|
|
408
426
|
"@extrieve_technologies/quickcapture_react_native",
|
|
409
|
-
"@fingerprintjs/fingerprintjs-pro-react-native",
|
|
410
427
|
"@fishjam-cloud/react-native-client",
|
|
411
428
|
"@fishjam-cloud/react-native-webrtc",
|
|
412
429
|
"@flitzinteractive/react-native-nitro-html-pdf",
|
|
@@ -463,7 +480,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
463
480
|
"@mhpdev/react-native-haptics",
|
|
464
481
|
"@mhpdev/react-native-speech",
|
|
465
482
|
"@mj-studio/react-native-naver-map",
|
|
466
|
-
"@mozzius/expo-dynamic-app-icon",
|
|
467
483
|
"@nandorojo/galeria",
|
|
468
484
|
"@notifee/react-native",
|
|
469
485
|
"@novastera-oss/rn-google-signin",
|
|
@@ -936,6 +952,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
936
952
|
"react-native-keep-awake",
|
|
937
953
|
"react-native-key-command",
|
|
938
954
|
"react-native-key-pair",
|
|
955
|
+
"react-native-keyboard-controller",
|
|
939
956
|
"react-native-keyboard-manager",
|
|
940
957
|
"react-native-keychain",
|
|
941
958
|
"react-native-keyevent",
|
|
@@ -1174,7 +1191,6 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
1174
1191
|
"react-native-urovo",
|
|
1175
1192
|
"react-native-ux-cam",
|
|
1176
1193
|
"react-native-variable-blur",
|
|
1177
|
-
"react-native-vector-icons",
|
|
1178
1194
|
"react-native-version-check",
|
|
1179
1195
|
"react-native-version-info",
|
|
1180
1196
|
"react-native-version-number",
|
|
@@ -1257,8 +1273,7 @@ var NATIVE_STUB_PACKAGE_NAMES = [
|
|
|
1257
1273
|
];
|
|
1258
1274
|
var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
1259
1275
|
...NATIVE_STUB_PACKAGE_NAMES,
|
|
1260
|
-
...LIGHT_NATIVE_PACKAGE_NAMES
|
|
1261
|
-
"@one/native-engine"
|
|
1276
|
+
...LIGHT_NATIVE_PACKAGE_NAMES
|
|
1262
1277
|
];
|
|
1263
1278
|
|
|
1264
1279
|
// ../peach-globals/src/guest-modules/wrapper-real-packages.ts
|
|
@@ -1267,25 +1282,13 @@ var SOOTSIM_COMPAT_WRAPPER_REAL_PACKAGES = {
|
|
|
1267
1282
|
specifier: "@peach-internal/expo-coded-error",
|
|
1268
1283
|
packageName: "expo-modules-core/build/errors/CodedError.js"
|
|
1269
1284
|
},
|
|
1270
|
-
|
|
1271
|
-
specifier: "@peach-internal/expo-
|
|
1272
|
-
packageName: "expo-modules-core/build/
|
|
1273
|
-
},
|
|
1274
|
-
expoPlatform: {
|
|
1275
|
-
specifier: "@peach-internal/expo-platform",
|
|
1276
|
-
packageName: "expo-modules-core/build/Platform.js"
|
|
1277
|
-
},
|
|
1278
|
-
expoLegacyEventEmitter: {
|
|
1279
|
-
specifier: "@peach-internal/expo-legacy-event-emitter",
|
|
1280
|
-
packageName: "expo-modules-core/build/LegacyEventEmitter.js"
|
|
1285
|
+
expoBrowserUuid: {
|
|
1286
|
+
specifier: "@peach-internal/expo-browser-uuid",
|
|
1287
|
+
packageName: "expo-modules-core/build/uuid/index.web.js"
|
|
1281
1288
|
},
|
|
1282
1289
|
expoSharedObjectHook: {
|
|
1283
1290
|
specifier: "@peach-internal/expo-shared-object-hook",
|
|
1284
1291
|
packageName: "expo-modules-core/build/hooks/useReleasingSharedObject.js"
|
|
1285
|
-
},
|
|
1286
|
-
expoSharedObjectLifecycleHook: {
|
|
1287
|
-
specifier: "@peach-internal/expo-shared-object-lifecycle-hook",
|
|
1288
|
-
packageName: "expo-modules-core/build/hooks/useReleasingSharedObjectWithLifecycle.js"
|
|
1289
1292
|
}
|
|
1290
1293
|
};
|
|
1291
1294
|
var PEACH_REACT_NATIVE_UPSTREAM_MODULES = {
|
|
@@ -2045,6 +2048,8 @@ function describeStep(step) {
|
|
|
2045
2048
|
return step.action === "shake" ? "Shaking the device" : "Setting ring mode";
|
|
2046
2049
|
case "setOrientation":
|
|
2047
2050
|
return `Rotating to ${step.orientation}`;
|
|
2051
|
+
case "setPosture":
|
|
2052
|
+
return `Folding to ${step.rest ?? step.posture ?? "open"}`;
|
|
2048
2053
|
case "incrementElement":
|
|
2049
2054
|
case "decrementElement":
|
|
2050
2055
|
return verb("Adjusting", step.id);
|
|
@@ -2053,6 +2058,11 @@ function describeStep(step) {
|
|
|
2053
2058
|
case "wait":
|
|
2054
2059
|
case "waitFor":
|
|
2055
2060
|
case "deviceInfo":
|
|
2061
|
+
case "stepFrame":
|
|
2062
|
+
case "releaseClock":
|
|
2063
|
+
case "screenshot":
|
|
2064
|
+
case "describe":
|
|
2065
|
+
case "scrollStateAt":
|
|
2056
2066
|
case "discoverStoreKitConfig":
|
|
2057
2067
|
case "clearStoreKitConfig":
|
|
2058
2068
|
return null;
|
|
@@ -4502,7 +4512,8 @@ async function waitForSootsimIdle({
|
|
|
4502
4512
|
await bridge.send({
|
|
4503
4513
|
type: "settle",
|
|
4504
4514
|
simId,
|
|
4505
|
-
maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16)))
|
|
4515
|
+
maxFrames: Math.min(600, Math.max(4, Math.ceil(maxMs / 16))),
|
|
4516
|
+
timeoutMs: Math.max(1, maxMs)
|
|
4506
4517
|
});
|
|
4507
4518
|
return { elapsed: Date.now() - started, settled: true, blockedBy: "" };
|
|
4508
4519
|
} catch (error) {
|
|
@@ -6101,43 +6112,59 @@ async function connect(options = {}) {
|
|
|
6101
6112
|
|
|
6102
6113
|
// src/capture-contract.ts
|
|
6103
6114
|
var RNX_SCREEN_CAPTURE_VERSION = 1;
|
|
6104
|
-
function
|
|
6115
|
+
function imageSourceUri(node) {
|
|
6105
6116
|
const source = node.props?.source;
|
|
6106
|
-
return node.type === "image" && !!source && typeof source === "object" && "uri" in source && typeof source.uri === "string"
|
|
6117
|
+
return node.type === "image" && !!source && typeof source === "object" && "uri" in source && typeof source.uri === "string" ? source.uri : null;
|
|
6107
6118
|
}
|
|
6108
|
-
function
|
|
6119
|
+
function isGuestProjectImage(uri) {
|
|
6120
|
+
return uri !== null && /^(?:https?:\/\/[^/?#]+)?\/__contrast_project_asset\//.test(uri);
|
|
6121
|
+
}
|
|
6122
|
+
function rasterLayerFrame(node, viewport) {
|
|
6109
6123
|
const visible = node.visibleFrame;
|
|
6110
|
-
|
|
6124
|
+
const uri = imageSourceUri(node);
|
|
6125
|
+
if (visible && visible.width > 0 && visible.height > 0 && isGuestProjectImage(uri)) {
|
|
6111
6126
|
return { x: visible.x, y: visible.y, width: visible.width, height: visible.height };
|
|
6112
6127
|
}
|
|
6113
|
-
|
|
6128
|
+
const frame = node.frame ?? {
|
|
6114
6129
|
x: node.absolutePosition.x,
|
|
6115
6130
|
y: node.absolutePosition.y,
|
|
6116
6131
|
width: node.layout.width,
|
|
6117
6132
|
height: node.layout.height
|
|
6118
6133
|
};
|
|
6134
|
+
if (!uri?.startsWith("live:")) return frame;
|
|
6135
|
+
const x = Math.max(frame.x, 0);
|
|
6136
|
+
const y = Math.max(frame.y, 0);
|
|
6137
|
+
return {
|
|
6138
|
+
x,
|
|
6139
|
+
y,
|
|
6140
|
+
width: Math.max(0, Math.min(frame.x + frame.width, viewport.width) - x),
|
|
6141
|
+
height: Math.max(0, Math.min(frame.y + frame.height, viewport.height) - y)
|
|
6142
|
+
};
|
|
6119
6143
|
}
|
|
6120
6144
|
function selectRnxRasterNodeIds(tree, pixelRatio) {
|
|
6121
6145
|
const nodesById = new Map(tree.nodes.map((node) => [node.nodeId, node]));
|
|
6122
6146
|
const maxLayerArea = tree.width * tree.height * 0.25;
|
|
6123
6147
|
const eligible = /* @__PURE__ */ new Map();
|
|
6124
6148
|
for (const node of tree.nodes) {
|
|
6125
|
-
const
|
|
6126
|
-
const
|
|
6149
|
+
const uri = imageSourceUri(node);
|
|
6150
|
+
const liveSource = uri?.startsWith("live:") ?? false;
|
|
6151
|
+
const visibleFrame = liveSource ? rasterLayerFrame(node, tree) : node.visibleFrame ?? node.frame;
|
|
6127
6152
|
if (!visibleFrame || visibleFrame.width <= 0 || visibleFrame.height <= 0) continue;
|
|
6128
6153
|
const glass = node.style._liquidGlass !== void 0 || node.style._liquidGlassEdge !== void 0 || node.style._liquidGlassMaterialTint !== void 0;
|
|
6129
6154
|
const background = node.style.experimental_backgroundImage;
|
|
6130
6155
|
const layers = Array.isArray(background) ? background : [background];
|
|
6156
|
+
const guestImage = isGuestProjectImage(uri);
|
|
6131
6157
|
const imageBackground = (node.type === "view" || node.type === "root" || node.type === "scroll-view") && layers.some((layer) => typeof layer === "string" && layer.startsWith("@"));
|
|
6132
|
-
const unsupported = imageBackground || node.type === "masked-view" || node.props?.__peachCaptureSvgRaster === true || liveSource || node.type === "text" && typeof node.text === "string" && (new RegExp("\\p{Emoji_Presentation}", "u").test(node.text) || new RegExp("\\uFE0F|\\u200D|\\u20E3|\\p{Emoji_Modifier}|\\p{Regional_Indicator}", "u").test(
|
|
6158
|
+
const unsupported = guestImage || imageBackground || node.type === "masked-view" || node.props?.__peachCaptureSvgRaster === true || liveSource || node.type === "text" && typeof node.text === "string" && (new RegExp("\\p{Emoji_Presentation}", "u").test(node.text) || new RegExp("\\uFE0F|\\u200D|\\u20E3|\\p{Emoji_Modifier}|\\p{Regional_Indicator}", "u").test(
|
|
6133
6159
|
node.text
|
|
6134
6160
|
)) || glass;
|
|
6135
6161
|
if (!unsupported) continue;
|
|
6136
|
-
const captured = rasterLayerFrame(node);
|
|
6162
|
+
const captured = liveSource ? visibleFrame : rasterLayerFrame(node, tree);
|
|
6137
6163
|
const area = captured.width * captured.height;
|
|
6138
6164
|
const ownPaint = imageBackground || glass && area > maxLayerArea;
|
|
6139
|
-
|
|
6140
|
-
|
|
6165
|
+
const priority = liveSource ? 2 : guestImage || ownPaint ? 1 : 0;
|
|
6166
|
+
if (priority > 0 || area <= maxLayerArea) {
|
|
6167
|
+
eligible.set(node.nodeId, { nodeId: node.nodeId, area, priority, ownPaint });
|
|
6141
6168
|
}
|
|
6142
6169
|
}
|
|
6143
6170
|
for (const [nodeId, layer] of eligible) {
|
|
@@ -6145,7 +6172,7 @@ function selectRnxRasterNodeIds(tree, pixelRatio) {
|
|
|
6145
6172
|
while (parentNodeId !== null) {
|
|
6146
6173
|
const parent = eligible.get(parentNodeId);
|
|
6147
6174
|
if (parent && !parent.ownPaint) {
|
|
6148
|
-
parent.
|
|
6175
|
+
parent.priority = Math.max(parent.priority, layer.priority);
|
|
6149
6176
|
eligible.delete(nodeId);
|
|
6150
6177
|
break;
|
|
6151
6178
|
}
|
|
@@ -6153,20 +6180,23 @@ function selectRnxRasterNodeIds(tree, pixelRatio) {
|
|
|
6153
6180
|
}
|
|
6154
6181
|
}
|
|
6155
6182
|
const candidates = [...eligible.values()].sort(
|
|
6156
|
-
(left, right) =>
|
|
6183
|
+
(left, right) => right.priority - left.priority || left.area - right.area || left.nodeId - right.nodeId
|
|
6157
6184
|
);
|
|
6158
6185
|
const screenArea = tree.width * tree.height;
|
|
6159
6186
|
const selection = { nodeIds: /* @__PURE__ */ new Set(), ownPaint: /* @__PURE__ */ new Set() };
|
|
6160
6187
|
let atlasArea = 0;
|
|
6161
6188
|
let layerArea = 0;
|
|
6189
|
+
let hasLiveLayer = false;
|
|
6162
6190
|
for (const candidate of candidates) {
|
|
6163
|
-
const leading = candidate.
|
|
6164
|
-
|
|
6191
|
+
const leading = candidate.priority > 0;
|
|
6192
|
+
const reserveHeadroom = candidate.priority === 2 || leading && !hasLiveLayer;
|
|
6193
|
+
if (atlasArea + candidate.area > screenArea * (reserveHeadroom ? 1 : 1.25) || !leading && layerArea + candidate.area > screenArea * 0.5) {
|
|
6165
6194
|
continue;
|
|
6166
6195
|
}
|
|
6167
6196
|
selection.nodeIds.add(candidate.nodeId);
|
|
6168
6197
|
if (candidate.ownPaint) selection.ownPaint.add(candidate.nodeId);
|
|
6169
6198
|
atlasArea += candidate.area;
|
|
6199
|
+
hasLiveLayer ||= candidate.priority === 2;
|
|
6170
6200
|
if (!leading) layerArea += candidate.area;
|
|
6171
6201
|
}
|
|
6172
6202
|
const picked = [...selection.nodeIds];
|
|
@@ -6190,7 +6220,7 @@ function rnxRasterFrames(tree, nodeIds) {
|
|
|
6190
6220
|
const frames = /* @__PURE__ */ new Map();
|
|
6191
6221
|
for (const node of tree.nodes) {
|
|
6192
6222
|
if (!nodeIds.has(node.nodeId)) continue;
|
|
6193
|
-
const frame = rasterLayerFrame(node);
|
|
6223
|
+
const frame = rasterLayerFrame(node, tree);
|
|
6194
6224
|
const glassOutset = liquidGlassPaintOutset(node.style._liquidGlass, frame);
|
|
6195
6225
|
const shadowRadius = typeof node.style.shadowRadius === "number" ? node.style.shadowRadius : 0;
|
|
6196
6226
|
const shadowOffset = node.style.shadowOffset;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -137,6 +137,57 @@ var init_process_table = __esm({
|
|
|
137
137
|
});
|
|
138
138
|
|
|
139
139
|
// src/process-group.ts
|
|
140
|
+
function spawnOwnedProcessGroup(command, args, options, register) {
|
|
141
|
+
const { output, ...launch } = options;
|
|
142
|
+
const child = (0, import_node_child_process2.spawn)(
|
|
143
|
+
"/bin/sh",
|
|
144
|
+
[
|
|
145
|
+
"-c",
|
|
146
|
+
[
|
|
147
|
+
"IFS= read -r start || exit 1",
|
|
148
|
+
"exec 3<&0",
|
|
149
|
+
'"$@" </dev/null 3<&- &',
|
|
150
|
+
"compiler=$!",
|
|
151
|
+
"(",
|
|
152
|
+
' trap "" HUP INT TERM',
|
|
153
|
+
" IFS= read -r _ <&3",
|
|
154
|
+
stopCompilerTree,
|
|
155
|
+
' stop_tree "$compiler"',
|
|
156
|
+
" kill -KILL 0",
|
|
157
|
+
") >/dev/null 2>&1 &",
|
|
158
|
+
"monitor=$!",
|
|
159
|
+
'wait "$compiler"',
|
|
160
|
+
"status=$?",
|
|
161
|
+
'kill -KILL "$monitor" 2>/dev/null',
|
|
162
|
+
'wait "$monitor" 2>/dev/null',
|
|
163
|
+
'exit "$status"'
|
|
164
|
+
].join("\n"),
|
|
165
|
+
"process-group",
|
|
166
|
+
command,
|
|
167
|
+
...args
|
|
168
|
+
],
|
|
169
|
+
{
|
|
170
|
+
...launch,
|
|
171
|
+
detached: true,
|
|
172
|
+
stdio: output ? ["pipe", ...output] : ["pipe", "pipe", "pipe"]
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
ownedProcessGroups.add(child);
|
|
176
|
+
const control = child.stdin;
|
|
177
|
+
control.on("error", () => {
|
|
178
|
+
});
|
|
179
|
+
try {
|
|
180
|
+
if (child.pid === void 0) control.destroy();
|
|
181
|
+
else {
|
|
182
|
+
register?.(child);
|
|
183
|
+
control.write("go\n");
|
|
184
|
+
}
|
|
185
|
+
} catch (error) {
|
|
186
|
+
control.destroy();
|
|
187
|
+
throw error;
|
|
188
|
+
}
|
|
189
|
+
return child;
|
|
190
|
+
}
|
|
140
191
|
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
141
192
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
142
193
|
throw new Error("process inspection requires valid parent pids");
|
|
@@ -339,6 +390,11 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
339
390
|
if (child.exitCode !== null || child.signalCode !== null) {
|
|
340
391
|
if (groupIsEmpty(child.pid)) return;
|
|
341
392
|
}
|
|
393
|
+
if (ownedProcessGroups.has(child) && child.exitCode === null && child.signalCode === null) {
|
|
394
|
+
child.stdin.end();
|
|
395
|
+
if (await waitForExit([], child.pid, EXIT_SCAN_TIMEOUT_MS)) return;
|
|
396
|
+
throw new Error(`owned process group ${child.pid} exit could not be confirmed`);
|
|
397
|
+
}
|
|
342
398
|
const freeze = await protectProcessFreeze(child.pid);
|
|
343
399
|
const descendants = /* @__PURE__ */ new Set();
|
|
344
400
|
let inspectionError = null;
|
|
@@ -443,7 +499,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
443
499
|
}
|
|
444
500
|
if (inspectionError) throw inspectionError;
|
|
445
501
|
}
|
|
446
|
-
var import_node_child_process2, import_node_fs3, import_node_os2, import_node_path2, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, EXIT_SCAN_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
502
|
+
var import_node_child_process2, import_node_fs3, import_node_os2, import_node_path2, import_node_stream, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, EXIT_SCAN_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME, ownedProcessGroups, stopCompilerTree;
|
|
447
503
|
var init_process_group = __esm({
|
|
448
504
|
"src/process-group.ts"() {
|
|
449
505
|
"use strict";
|
|
@@ -459,6 +515,23 @@ var init_process_group = __esm({
|
|
|
459
515
|
EXIT_SCAN_TIMEOUT_MS = 1e4;
|
|
460
516
|
INSPECTION_TIMEOUT_MS = 1e4;
|
|
461
517
|
FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
518
|
+
ownedProcessGroups = /* @__PURE__ */ new WeakSet();
|
|
519
|
+
stopCompilerTree = [
|
|
520
|
+
"stop_tree() {",
|
|
521
|
+
' kill -STOP "$1" 2>/dev/null || return',
|
|
522
|
+
process.platform === "linux" ? [
|
|
523
|
+
"children=",
|
|
524
|
+
'for file in /proc/"$1"/task/*/children; do',
|
|
525
|
+
' [ -r "$file" ] || continue',
|
|
526
|
+
" pids=",
|
|
527
|
+
' IFS= read -r pids <"$file" || :',
|
|
528
|
+
' children="$children $pids"',
|
|
529
|
+
"done"
|
|
530
|
+
].join("\n") : 'children=$(/usr/bin/pgrep -P "$1")',
|
|
531
|
+
' for child in $children; do stop_tree "$child"; done',
|
|
532
|
+
' kill -KILL "$1" 2>/dev/null || :',
|
|
533
|
+
"}"
|
|
534
|
+
].join("\n");
|
|
462
535
|
}
|
|
463
536
|
});
|
|
464
537
|
|
|
@@ -1024,7 +1097,7 @@ var init_swiftPackageId = __esm({
|
|
|
1024
1097
|
"use strict";
|
|
1025
1098
|
import_node_fs15 = require("node:fs");
|
|
1026
1099
|
import_node_path14 = require("node:path");
|
|
1027
|
-
frameworkGeneratedHeader = "// generated by
|
|
1100
|
+
frameworkGeneratedHeader = "// generated by one; edits will be replaced\n";
|
|
1028
1101
|
PREVIOUS_IOS_DIR = "ios.previous";
|
|
1029
1102
|
NON_SOURCE_DIRS = /* @__PURE__ */ new Set([
|
|
1030
1103
|
"node_modules",
|
|
@@ -3866,11 +3939,11 @@ function readDependencySources(value) {
|
|
|
3866
3939
|
};
|
|
3867
3940
|
});
|
|
3868
3941
|
}
|
|
3869
|
-
var
|
|
3942
|
+
var import_node_child_process8, import_node_crypto11, import_node_fs17, import_node_path16, import_node_util5, run4, modelQuery;
|
|
3870
3943
|
var init_android_gradle_sources = __esm({
|
|
3871
3944
|
"src/android-gradle-sources.ts"() {
|
|
3872
3945
|
"use strict";
|
|
3873
|
-
|
|
3946
|
+
import_node_child_process8 = require("node:child_process");
|
|
3874
3947
|
import_node_crypto11 = require("node:crypto");
|
|
3875
3948
|
import_node_fs17 = __toESM(require("node:fs"), 1);
|
|
3876
3949
|
import_node_path16 = __toESM(require("node:path"), 1);
|
|
@@ -3878,7 +3951,7 @@ var init_android_gradle_sources = __esm({
|
|
|
3878
3951
|
init_forked_script_contract();
|
|
3879
3952
|
init_is_record();
|
|
3880
3953
|
init_kotlin_toolchain();
|
|
3881
|
-
run4 = (0, import_node_util5.promisify)(
|
|
3954
|
+
run4 = (0, import_node_util5.promisify)(import_node_child_process8.execFile);
|
|
3882
3955
|
modelQuery = `
|
|
3883
3956
|
import groovy.json.JsonOutput
|
|
3884
3957
|
import groovy.json.JsonSlurper
|
|
@@ -4104,7 +4177,7 @@ __export(kotlin_host_exports, {
|
|
|
4104
4177
|
serveKotlinRequest: () => serveKotlinRequest
|
|
4105
4178
|
});
|
|
4106
4179
|
module.exports = __toCommonJS(kotlin_host_exports);
|
|
4107
|
-
var
|
|
4180
|
+
var import_node_child_process9 = require("node:child_process");
|
|
4108
4181
|
var import_node_crypto12 = require("node:crypto");
|
|
4109
4182
|
var import_node_fs18 = __toESM(require("node:fs"), 1);
|
|
4110
4183
|
var import_node_module = require("node:module");
|
|
@@ -4255,7 +4328,7 @@ ${diagnostic.trim()}`, { cause });
|
|
|
4255
4328
|
}
|
|
4256
4329
|
}
|
|
4257
4330
|
async function compileJavaModuleAbi(input) {
|
|
4258
|
-
const { specs, work, hash, toolchain, libraries, sdkRoot,
|
|
4331
|
+
const { specs, work, hash, toolchain, libraries, sdkRoot, friendModules, language } = input;
|
|
4259
4332
|
const directory = import_node_path7.default.join(work, "java-abi");
|
|
4260
4333
|
import_node_fs8.default.mkdirSync(directory);
|
|
4261
4334
|
const sources = specs.specs.map((spec, index) => {
|
|
@@ -4280,7 +4353,7 @@ async function compileJavaModuleAbi(input) {
|
|
|
4280
4353
|
"-libraries",
|
|
4281
4354
|
libraries.join(import_node_path7.default.delimiter),
|
|
4282
4355
|
`-Xplugin=${import_node_path7.default.join(sdkRoot, "plugin.jar")}`,
|
|
4283
|
-
`-Xfriend-modules=${
|
|
4356
|
+
`-Xfriend-modules=${friendModules.join(import_node_path7.default.delimiter)}`,
|
|
4284
4357
|
"-language-version",
|
|
4285
4358
|
language,
|
|
4286
4359
|
"-api-version",
|
|
@@ -4321,14 +4394,14 @@ var import_node_fs11 = __toESM(require("node:fs"), 1);
|
|
|
4321
4394
|
var import_node_path10 = __toESM(require("node:path"), 1);
|
|
4322
4395
|
|
|
4323
4396
|
// src/kotlin-library-sources.ts
|
|
4324
|
-
var import_node_child_process6 = require("node:child_process");
|
|
4325
4397
|
var import_node_fs9 = __toESM(require("node:fs"), 1);
|
|
4326
4398
|
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
4327
4399
|
init_is_record();
|
|
4328
4400
|
init_kotlin_toolchain();
|
|
4401
|
+
init_process_group();
|
|
4329
4402
|
function runCompiler(file, args, options, operation) {
|
|
4330
4403
|
return new Promise((resolve, reject) => {
|
|
4331
|
-
const child = (
|
|
4404
|
+
const child = spawnOwnedProcessGroup(file, args, options);
|
|
4332
4405
|
child.once("error", reject);
|
|
4333
4406
|
child.once("close", (code, signal) => {
|
|
4334
4407
|
if (code === 0) resolve();
|
|
@@ -4459,7 +4532,7 @@ async function compileKotlinLibrarySources(input) {
|
|
|
4459
4532
|
await runCompiler(
|
|
4460
4533
|
members.file,
|
|
4461
4534
|
members.args,
|
|
4462
|
-
{
|
|
4535
|
+
{ output: [fd, "inherit"] },
|
|
4463
4536
|
"Android library " + name + " metadata read"
|
|
4464
4537
|
);
|
|
4465
4538
|
} finally {
|
|
@@ -4524,7 +4597,10 @@ ${diagnostics.trimEnd()}`
|
|
|
4524
4597
|
...kotlinSources2,
|
|
4525
4598
|
...translatedSources
|
|
4526
4599
|
],
|
|
4527
|
-
{
|
|
4600
|
+
{
|
|
4601
|
+
output: ["inherit", "inherit"],
|
|
4602
|
+
env: { ...process.env, JAVA_HOME: ready.javaHome }
|
|
4603
|
+
},
|
|
4528
4604
|
"Android library " + name + " compilation"
|
|
4529
4605
|
);
|
|
4530
4606
|
const compiled = import_node_path8.default.join(raw, `${name}.klib`);
|
|
@@ -4872,7 +4948,7 @@ return { peachDisposeInstance, ${exports2.map((item) => `${JSON.stringify(item.e
|
|
|
4872
4948
|
}
|
|
4873
4949
|
|
|
4874
4950
|
// src/kotlin-sdk.ts
|
|
4875
|
-
var
|
|
4951
|
+
var import_node_child_process6 = require("node:child_process");
|
|
4876
4952
|
var import_node_crypto7 = require("node:crypto");
|
|
4877
4953
|
var import_node_fs12 = __toESM(require("node:fs"), 1);
|
|
4878
4954
|
var import_node_path11 = __toESM(require("node:path"), 1);
|
|
@@ -4960,7 +5036,7 @@ function readKotlinSdkManifest(source, compilerSha256) {
|
|
|
4960
5036
|
}
|
|
4961
5037
|
|
|
4962
5038
|
// src/kotlin-sdk.ts
|
|
4963
|
-
var run3 = (0, import_node_util3.promisify)(
|
|
5039
|
+
var run3 = (0, import_node_util3.promisify)(import_node_child_process6.execFile);
|
|
4964
5040
|
function verifyKotlinSdkDirectory(root, compiler) {
|
|
4965
5041
|
const expectedNames = ["manifest.json", ...KOTLIN_SDK_FILES];
|
|
4966
5042
|
const names = import_node_fs12.default.readdirSync(root);
|
|
@@ -5163,7 +5239,7 @@ init_home_paths();
|
|
|
5163
5239
|
init_is_record();
|
|
5164
5240
|
|
|
5165
5241
|
// src/swift-toolchain.ts
|
|
5166
|
-
var
|
|
5242
|
+
var import_node_child_process7 = require("node:child_process");
|
|
5167
5243
|
var import_node_crypto8 = require("node:crypto");
|
|
5168
5244
|
var import_node_fs13 = __toESM(require("node:fs"), 1);
|
|
5169
5245
|
var import_node_os6 = __toESM(require("node:os"), 1);
|
|
@@ -5229,7 +5305,7 @@ function peachKotlinModuleRoot() {
|
|
|
5229
5305
|
}
|
|
5230
5306
|
|
|
5231
5307
|
// src/kotlin-host.ts
|
|
5232
|
-
var run5 = (0, import_node_util6.promisify)(
|
|
5308
|
+
var run5 = (0, import_node_util6.promisify)(import_node_child_process9.execFile);
|
|
5233
5309
|
function loadKotlinSdk(moduleRoot, toolchain) {
|
|
5234
5310
|
return installKotlinSdkArchive(
|
|
5235
5311
|
import_node_fs18.default.readFileSync(import_node_path17.default.join(moduleRoot, "sdk.tar.gz")),
|
|
@@ -6232,10 +6308,10 @@ async function compileKotlin(input, origin) {
|
|
|
6232
6308
|
const { kotlinc } = ready;
|
|
6233
6309
|
const profileConfig = KOTLIN_SDK_PROFILES[sdkProfile];
|
|
6234
6310
|
const baseLibrary = "base" in profileConfig ? import_node_path17.default.join(sdk.root, `${profileConfig.base}.klib`) : null;
|
|
6311
|
+
const sdkLibraries = baseLibrary ? [baseLibrary, sdkLibrary] : [sdkLibrary];
|
|
6235
6312
|
const libraries = [
|
|
6236
6313
|
...ready.libraries,
|
|
6237
|
-
...
|
|
6238
|
-
sdkLibrary,
|
|
6314
|
+
...sdkLibraries,
|
|
6239
6315
|
import_node_path17.default.join(sdk.root, "java.klib")
|
|
6240
6316
|
];
|
|
6241
6317
|
const compose = usesCompose ? await ensureCompose(toolchain) : null;
|
|
@@ -6267,7 +6343,7 @@ async function compileKotlin(input, origin) {
|
|
|
6267
6343
|
[
|
|
6268
6344
|
...common(),
|
|
6269
6345
|
`-Xplugin=${plugin}`,
|
|
6270
|
-
`-Xfriend-modules=${
|
|
6346
|
+
`-Xfriend-modules=${(javaLibrary ? [...sdkLibraries, javaLibrary] : sdkLibraries).join(import_node_path17.default.delimiter)}`,
|
|
6271
6347
|
...usesCompose ? [
|
|
6272
6348
|
`-Xplugin=${import_node_path17.default.resolve(import_node_path17.default.dirname(kotlinc), "../lib/compose-compiler-plugin.jar")}`
|
|
6273
6349
|
] : [],
|
|
@@ -6311,7 +6387,7 @@ async function compileKotlin(input, origin) {
|
|
|
6311
6387
|
toolchain: ready,
|
|
6312
6388
|
libraries: libraries.filter((library) => library !== javaLibrary),
|
|
6313
6389
|
sdkRoot: sdk.root,
|
|
6314
|
-
|
|
6390
|
+
friendModules: sdkLibraries,
|
|
6315
6391
|
language
|
|
6316
6392
|
});
|
|
6317
6393
|
if (viewModels && inputs.some(
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
rnxPublicBrand
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
5
|
-
import "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-F6DZ4DS2.mjs";
|
|
5
|
+
import "./esm-chunks/chunk-LTE7YMEG.mjs";
|
|
6
6
|
|
|
7
7
|
// src/menuContract.ts
|
|
8
8
|
var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isRecord
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
5
|
-
import "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-PZPJJBAS.mjs";
|
|
5
|
+
import "./esm-chunks/chunk-LTE7YMEG.mjs";
|
|
6
6
|
|
|
7
7
|
// src/metro-fingerprint-registry.ts
|
|
8
8
|
var RNX_METRO_FINGERPRINT_SCHEMA_VERSION = 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2937 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -103,9 +103,11 @@ __export(metro_production_bundle_exports, {
|
|
|
103
103
|
createRNXMetroModuleIdentityFooter: () => createRNXMetroModuleIdentityFooter,
|
|
104
104
|
detachRNXMetroSourceMapUrl: () => detachRNXMetroSourceMapUrl,
|
|
105
105
|
detectBundleModeFromText: () => detectBundleModeFromText,
|
|
106
|
+
packagedMetroAssetDirectory: () => packagedMetroAssetDirectory,
|
|
106
107
|
readRNXMetroBundleLayout: () => readRNXMetroBundleLayout,
|
|
107
108
|
readRNXMetroDeclaredModulePaths: () => readRNXMetroDeclaredModulePaths,
|
|
108
109
|
readRNXMetroModuleIdentity: () => readRNXMetroModuleIdentity,
|
|
110
|
+
relocateMetroAssetLocations: () => relocateMetroAssetLocations,
|
|
109
111
|
toPeachDevelopmentBundleUrl: () => toPeachDevelopmentBundleUrl,
|
|
110
112
|
toPeachProductionBundleUrl: () => toPeachProductionBundleUrl,
|
|
111
113
|
validateRNXMetroModuleIdentity: () => validateRNXMetroModuleIdentity,
|
|
@@ -133,6 +135,24 @@ function isFooterBlockLine(source, line, end) {
|
|
|
133
135
|
// src/metro-production-bundle.ts
|
|
134
136
|
var RNXSIM_METRO_MODULE_PATHS_PREFIX = "globalThis.__sootsimModulePaths=";
|
|
135
137
|
var RNX_METRO_MODULE_IDENTITY_VERSION = 2;
|
|
138
|
+
function packagedMetroAssetDirectory(location) {
|
|
139
|
+
const base = "https://packaged.invalid";
|
|
140
|
+
const parsed = new URL(location, base);
|
|
141
|
+
if (parsed.origin !== base) throw new Error(`non-packaged asset location: ${location}`);
|
|
142
|
+
const outside = parsed.searchParams.get("unstable_path");
|
|
143
|
+
if (outside === null) return parsed.pathname.replace(/^\/+/, "");
|
|
144
|
+
return `assets/${outside.replace(/^\.\//, "").replace(/\.\.\//g, "_")}`;
|
|
145
|
+
}
|
|
146
|
+
function relocateMetroAssetLocations(source, locate) {
|
|
147
|
+
return source.replace(
|
|
148
|
+
/("?httpServerLocation"?\s*:\s*)(?:"((?:[^"\\]|\\.)*)"|`([^`\\$]*)`)/g,
|
|
149
|
+
(match, property, quoted, template) => {
|
|
150
|
+
const location = quoted === void 0 ? template : JSON.parse(`"${quoted}"`);
|
|
151
|
+
const next = locate(location);
|
|
152
|
+
return next === location ? match : `${property}${JSON.stringify(next)}`;
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
136
156
|
function toPeachProductionBundleUrl(bundleUrl) {
|
|
137
157
|
const relative = bundleUrl.startsWith("/");
|
|
138
158
|
const url = new URL(bundleUrl, "http://peachsim.local");
|
|
@@ -412,9 +432,11 @@ async function detectBundleModeFromText(bundleText) {
|
|
|
412
432
|
createRNXMetroModuleIdentityFooter,
|
|
413
433
|
detachRNXMetroSourceMapUrl,
|
|
414
434
|
detectBundleModeFromText,
|
|
435
|
+
packagedMetroAssetDirectory,
|
|
415
436
|
readRNXMetroBundleLayout,
|
|
416
437
|
readRNXMetroDeclaredModulePaths,
|
|
417
438
|
readRNXMetroModuleIdentity,
|
|
439
|
+
relocateMetroAssetLocations,
|
|
418
440
|
toPeachDevelopmentBundleUrl,
|
|
419
441
|
toPeachProductionBundleUrl,
|
|
420
442
|
validateRNXMetroModuleIdentity,
|