peachsim 0.1.1716 → 0.1.1728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/cli/app-bundle-resources.ts +2 -1
- package/cli/app-fonts.ts +4 -4
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +17 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +82 -822
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +19 -2
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +5 -1
- package/cli/commands/inspect/settling.ts +5 -2
- package/cli/commands/inspect/wait-ready.ts +6 -0
- package/cli/commands/inspect.ts +48 -45
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +750 -0
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +834 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +20 -0
- package/cli/commands/upload.ts +1 -1
- package/cli/device-option.ts +1 -1
- package/cli/main.ts +13 -1
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +26 -1
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/scene-video.ts +13 -6
- package/detox/index.ts +187 -23
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +38000 -31658
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +184 -60
- package/dist-lib/dev-bundle-resolution.cjs +14 -13
- package/dist-lib/expo-swift-bundle.cjs +18199 -11834
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +21 -2
- package/dist-lib/host/bridge-host.cjs +26509 -23850
- package/dist-lib/host/fetch-proxy-handler.cjs +221 -222
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +876 -389
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +127 -16
- package/dist-lib/menu.cjs +7 -1
- package/dist-lib/menu.mjs +7 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +883 -404
- package/dist-lib/native-app-identity-project.cjs +694 -280
- package/dist-lib/native-app-identity-project.mjs +490 -83
- package/dist-lib/native-app-identity.cjs +13 -2
- package/dist-lib/native-app-identity.mjs +13 -2
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +28 -23
- package/dist-lib/public-origins-lib.json +392 -224
- package/dist-lib/react-native-host-modules.cjs +32 -2
- package/dist-lib/react-native-host-modules.mjs +32 -2
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
- package/dist-lib/sdk.cjs +17 -7
- package/dist-lib/sdk.mjs +16 -7
- package/dist-lib/skills.cjs +61838 -47851
- package/dist-lib/swift-compile.cjs +583 -360
- package/dist-lib/swift-compile.mjs +496 -275
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +105 -17
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4453 -2231
- package/dist-lib/vite.cjs +230 -228
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +7 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -11
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +23 -1
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +12 -25
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +75 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/cdefs.h +5 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -0
- package/sdk/ios/usr/include/sys/syslog.h +236 -0
- package/sdk/ios/usr/include/syslog.h +24 -0
- package/sdk/ios/wasm/include/fcntl.h +4 -2
- package/sdk/ios/wasm/include/stdio.h +24 -0
- package/sdk/ios/wasm/include/stdlib.h +32 -7
- package/sdk/ios/wasm/include/sys/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
- package/sdk/ios/wasm/include/sys/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -0
- package/sdk/ios/wasm/include/unistd.h +12 -3
- package/sdk/native-hashes.json +1 -0
- package/skills/contrast/SKILL.md +2 -1
- package/skills/peach-test/SKILL.md +7 -3
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-root-module.ts +9 -9
- package/src/appPackageContract.ts +81 -0
- package/src/bridge-contract.ts +50 -0
- package/src/bundle-channel.mjs +21 -4
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +127 -23
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +38 -13
- package/src/expo-swift-host.ts +264 -62
- package/src/expoSwiftContract.ts +3 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +35 -1
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +3 -0
- package/src/host/staged-host-files.ts +18 -0
- package/src/index.ts +3 -0
- package/src/kotlin-host.ts +21 -18
- package/src/kotlin-instance-source.ts +126 -0
- package/src/menu.ts +7 -0
- package/src/native-app-identity-project.ts +7 -2
- package/src/native-app-identity.ts +11 -0
- package/src/native-firebase-config.ts +24 -1
- package/src/nitro-adapter.lock.json +268 -268
- package/src/nitro-bundle.ts +8 -0
- package/src/nitro-compile.ts +35 -9
- package/src/nitro-dependencies.ts +21 -19
- package/src/nitro-source.ts +4 -0
- package/src/nitroContract.ts +7 -0
- package/src/react-native-bridge-modules.ts +68 -42
- package/src/react-native-host-modules.ts +31 -1
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +27 -1
- package/src/sim-client.ts +4 -1
- package/src/storageSnapshotContract.ts +3 -0
- package/src/swift-compile.ts +221 -41
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +89 -131
- package/src/swift-coverage/xcode.ts +1 -1
- package/src/swift-cxx-reachable.ts +2 -1
- package/src/swift-distribution.lock.json +14 -13
- package/src/swift-host.ts +95 -22
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +144 -22
- package/src/swift-objc-import.ts +6 -0
- package/src/swift-objc-standin.ts +2 -14
- package/src/swift-package-manifest.ts +14 -6
- package/src/swift-packages.ts +75 -11
- package/src/swift-pdf-raster.ts +1 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-emit.ts +592 -57
- package/src/swift-standins.ts +430 -49
- package/src/swift-submit.ts +3 -1
- package/src/swift-toolchain.ts +140 -17
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/vite-plugin-one.ts +13 -9
- package/src/vite-plugin.ts +28 -15
- package/src/xcode-project.ts +223 -22
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -31,6 +31,18 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
31
31
|
// one's native bootstrap runs the upstream environment entry.
|
|
32
32
|
"react-native/setup-env",
|
|
33
33
|
"react-native/src/setup-env",
|
|
34
|
+
// upstream initialization owns the native DOM constructors for its version.
|
|
35
|
+
"react-native/Libraries/Core/InitializeCore",
|
|
36
|
+
"react-native/Libraries/Core/setUpGlobals",
|
|
37
|
+
"react-native/Libraries/Core/setUpRegeneratorRuntime",
|
|
38
|
+
"react-native/src/private/setup/setUpDefaultReactNativeEnvironment",
|
|
39
|
+
"react-native/src/private/setup/setUpDefaltReactNativeEnvironment",
|
|
40
|
+
"react-native/src/private/setup/setUpDOM",
|
|
41
|
+
"react-native/src/private/core/setUpDOM",
|
|
42
|
+
"react-native/Libraries/Utilities/PolyfillFunctions",
|
|
43
|
+
"react-native/Libraries/Utilities/GlobalPerformanceLogger",
|
|
44
|
+
"react-native/Libraries/Utilities/createPerformanceLogger",
|
|
45
|
+
"react-native/Libraries/Utilities/infoLog",
|
|
34
46
|
// sdk 58 reads these upstream getters and wraps the original metro logger.
|
|
35
47
|
"react-native/unstable-internals-do-not-use",
|
|
36
48
|
"react-native/src/unstable-internals-do-not-use",
|
|
@@ -53,12 +65,16 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
53
65
|
"react-native/Libraries/NativeModules/specs/NativeDevSettings",
|
|
54
66
|
"react-native/Libraries/NativeModules/specs/NativeLogBox",
|
|
55
67
|
"react-native/Libraries/NativeModules/specs/NativeRedBox",
|
|
68
|
+
"react-native/src/private/debugging/FuseboxSessionObserver",
|
|
56
69
|
"react-native/src/private/devsupport/rndevtools/FuseboxSessionObserver",
|
|
57
70
|
"react-native/src/private/devsupport/rndevtools/GlobalStateObserver",
|
|
58
71
|
"react-native/src/private/devsupport/rndevtools/TracingStateObserver",
|
|
59
72
|
"react-native/src/private/specs_DEPRECATED/modules/NativeDevSettings",
|
|
60
73
|
"react-native/src/private/specs_DEPRECATED/modules/NativeLogBox",
|
|
61
74
|
"react-native/src/private/specs_DEPRECATED/modules/NativeRedBox",
|
|
75
|
+
"react-native/src/private/specs/modules/NativeDevSettings",
|
|
76
|
+
"react-native/src/private/specs/modules/NativeLogBox",
|
|
77
|
+
"react-native/src/private/specs/modules/NativeRedBox",
|
|
62
78
|
"react-native/src/private/utilities/toError",
|
|
63
79
|
"react-native/src/private/utilities/toExtendedError",
|
|
64
80
|
// already-passthrough modules import these at evaluation.
|
|
@@ -86,6 +102,15 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
86
102
|
"react-native/src/private/specs_DEPRECATED/modules/NativeBlobModule",
|
|
87
103
|
"react-native/Libraries/vendor/emitter",
|
|
88
104
|
"react-native/Libraries/Components/View/ReactNativeStyleAttributes",
|
|
105
|
+
// view's javascript prop mapping runs over the registered RCTView native seam.
|
|
106
|
+
"react-native/Libraries/Components/View/View.js",
|
|
107
|
+
// text and press-target debugging retain their upstream javascript wrappers.
|
|
108
|
+
"react-native/Libraries/Text/Text.js",
|
|
109
|
+
"react-native/Libraries/Pressability/PressabilityDebug.js",
|
|
110
|
+
// pressable's upstream wrapper runs over the stubbed Pressability
|
|
111
|
+
// implementation and the passthrough View, like Text.js above.
|
|
112
|
+
"react-native/Libraries/Components/Pressable/Pressable.js",
|
|
113
|
+
"react-native/Libraries/Components/Pressable/useAndroidRippleForView.js",
|
|
89
114
|
"react-native/Libraries/StyleSheet",
|
|
90
115
|
"react-native/Libraries/Utilities/differ",
|
|
91
116
|
"react-native/Libraries/Utilities/stringifySafe",
|
|
@@ -94,10 +119,11 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
94
119
|
"react-native/Libraries/TurboModule/TurboModuleRegistry",
|
|
95
120
|
"react-native/Libraries/Utilities/Platform",
|
|
96
121
|
"react-native/Libraries/Utilities/NativePlatformConstants",
|
|
122
|
+
"react-native/src/private/specs/modules/NativePlatformConstants",
|
|
97
123
|
"react-native/src/private/specs_DEPRECATED/modules/NativePlatformConstants",
|
|
98
124
|
// pure javascript in Libraries/Core and Libraries/Utilities, from the
|
|
99
125
|
// eval-time graph of InitializeCore, ExceptionsManager, HMRClient, and
|
|
100
|
-
// LogBox.
|
|
126
|
+
// LogBox. host-owned installers stay overrides. Dimensions, DevLoadingView,
|
|
101
127
|
// NativeExceptionsManager, JSTimers, and BackHandler.android.js evaluate an
|
|
102
128
|
// unregistered native spec, so they stay on the explicit error. the
|
|
103
129
|
// BackHandler names include the extension so the android file stays out.
|
|
@@ -111,6 +137,10 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
111
137
|
"react-native/Libraries/Core/Timers/queueMicrotask",
|
|
112
138
|
"react-native/Libraries/Core/Devtools/openFileInEditor",
|
|
113
139
|
"react-native/Libraries/Utilities/Appearance",
|
|
140
|
+
// Appearance reads its spec through TurboModuleRegistry.get('Appearance'),
|
|
141
|
+
// which the engine registers.
|
|
142
|
+
"react-native/Libraries/Utilities/NativeAppearance",
|
|
143
|
+
"react-native/src/private/specs_DEPRECATED/modules/NativeAppearance",
|
|
114
144
|
"react-native/Libraries/Utilities/useColorScheme",
|
|
115
145
|
"react-native/Libraries/Utilities/FeatureDetection",
|
|
116
146
|
"react-native/Libraries/Utilities/HMRClientProdShim",
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/react-native-host-modules.ts
|
|
4
4
|
var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
5
5
|
// one's native bootstrap runs the upstream environment entry.
|
|
6
6
|
"react-native/setup-env",
|
|
7
7
|
"react-native/src/setup-env",
|
|
8
|
+
// upstream initialization owns the native DOM constructors for its version.
|
|
9
|
+
"react-native/Libraries/Core/InitializeCore",
|
|
10
|
+
"react-native/Libraries/Core/setUpGlobals",
|
|
11
|
+
"react-native/Libraries/Core/setUpRegeneratorRuntime",
|
|
12
|
+
"react-native/src/private/setup/setUpDefaultReactNativeEnvironment",
|
|
13
|
+
"react-native/src/private/setup/setUpDefaltReactNativeEnvironment",
|
|
14
|
+
"react-native/src/private/setup/setUpDOM",
|
|
15
|
+
"react-native/src/private/core/setUpDOM",
|
|
16
|
+
"react-native/Libraries/Utilities/PolyfillFunctions",
|
|
17
|
+
"react-native/Libraries/Utilities/GlobalPerformanceLogger",
|
|
18
|
+
"react-native/Libraries/Utilities/createPerformanceLogger",
|
|
19
|
+
"react-native/Libraries/Utilities/infoLog",
|
|
8
20
|
// sdk 58 reads these upstream getters and wraps the original metro logger.
|
|
9
21
|
"react-native/unstable-internals-do-not-use",
|
|
10
22
|
"react-native/src/unstable-internals-do-not-use",
|
|
@@ -27,12 +39,16 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
27
39
|
"react-native/Libraries/NativeModules/specs/NativeDevSettings",
|
|
28
40
|
"react-native/Libraries/NativeModules/specs/NativeLogBox",
|
|
29
41
|
"react-native/Libraries/NativeModules/specs/NativeRedBox",
|
|
42
|
+
"react-native/src/private/debugging/FuseboxSessionObserver",
|
|
30
43
|
"react-native/src/private/devsupport/rndevtools/FuseboxSessionObserver",
|
|
31
44
|
"react-native/src/private/devsupport/rndevtools/GlobalStateObserver",
|
|
32
45
|
"react-native/src/private/devsupport/rndevtools/TracingStateObserver",
|
|
33
46
|
"react-native/src/private/specs_DEPRECATED/modules/NativeDevSettings",
|
|
34
47
|
"react-native/src/private/specs_DEPRECATED/modules/NativeLogBox",
|
|
35
48
|
"react-native/src/private/specs_DEPRECATED/modules/NativeRedBox",
|
|
49
|
+
"react-native/src/private/specs/modules/NativeDevSettings",
|
|
50
|
+
"react-native/src/private/specs/modules/NativeLogBox",
|
|
51
|
+
"react-native/src/private/specs/modules/NativeRedBox",
|
|
36
52
|
"react-native/src/private/utilities/toError",
|
|
37
53
|
"react-native/src/private/utilities/toExtendedError",
|
|
38
54
|
// already-passthrough modules import these at evaluation.
|
|
@@ -60,6 +76,15 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
60
76
|
"react-native/src/private/specs_DEPRECATED/modules/NativeBlobModule",
|
|
61
77
|
"react-native/Libraries/vendor/emitter",
|
|
62
78
|
"react-native/Libraries/Components/View/ReactNativeStyleAttributes",
|
|
79
|
+
// view's javascript prop mapping runs over the registered RCTView native seam.
|
|
80
|
+
"react-native/Libraries/Components/View/View.js",
|
|
81
|
+
// text and press-target debugging retain their upstream javascript wrappers.
|
|
82
|
+
"react-native/Libraries/Text/Text.js",
|
|
83
|
+
"react-native/Libraries/Pressability/PressabilityDebug.js",
|
|
84
|
+
// pressable's upstream wrapper runs over the stubbed Pressability
|
|
85
|
+
// implementation and the passthrough View, like Text.js above.
|
|
86
|
+
"react-native/Libraries/Components/Pressable/Pressable.js",
|
|
87
|
+
"react-native/Libraries/Components/Pressable/useAndroidRippleForView.js",
|
|
63
88
|
"react-native/Libraries/StyleSheet",
|
|
64
89
|
"react-native/Libraries/Utilities/differ",
|
|
65
90
|
"react-native/Libraries/Utilities/stringifySafe",
|
|
@@ -68,10 +93,11 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
68
93
|
"react-native/Libraries/TurboModule/TurboModuleRegistry",
|
|
69
94
|
"react-native/Libraries/Utilities/Platform",
|
|
70
95
|
"react-native/Libraries/Utilities/NativePlatformConstants",
|
|
96
|
+
"react-native/src/private/specs/modules/NativePlatformConstants",
|
|
71
97
|
"react-native/src/private/specs_DEPRECATED/modules/NativePlatformConstants",
|
|
72
98
|
// pure javascript in Libraries/Core and Libraries/Utilities, from the
|
|
73
99
|
// eval-time graph of InitializeCore, ExceptionsManager, HMRClient, and
|
|
74
|
-
// LogBox.
|
|
100
|
+
// LogBox. host-owned installers stay overrides. Dimensions, DevLoadingView,
|
|
75
101
|
// NativeExceptionsManager, JSTimers, and BackHandler.android.js evaluate an
|
|
76
102
|
// unregistered native spec, so they stay on the explicit error. the
|
|
77
103
|
// BackHandler names include the extension so the android file stays out.
|
|
@@ -85,6 +111,10 @@ var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
|
85
111
|
"react-native/Libraries/Core/Timers/queueMicrotask",
|
|
86
112
|
"react-native/Libraries/Core/Devtools/openFileInEditor",
|
|
87
113
|
"react-native/Libraries/Utilities/Appearance",
|
|
114
|
+
// Appearance reads its spec through TurboModuleRegistry.get('Appearance'),
|
|
115
|
+
// which the engine registers.
|
|
116
|
+
"react-native/Libraries/Utilities/NativeAppearance",
|
|
117
|
+
"react-native/src/private/specs_DEPRECATED/modules/NativeAppearance",
|
|
88
118
|
"react-native/Libraries/Utilities/useColorScheme",
|
|
89
119
|
"react-native/Libraries/Utilities/FeatureDetection",
|
|
90
120
|
"react-native/Libraries/Utilities/HMRClientProdShim",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -823,8 +823,11 @@ async function launchWithPauseAwareDeadline(launch, opts) {
|
|
|
823
823
|
function platformChromeLaunch(launch, opts, rendererTarget, policy = {}) {
|
|
824
824
|
return async () => {
|
|
825
825
|
const runtime = policy.runtime ?? currentRuntime();
|
|
826
|
-
if (softwareChromeAllowed(runtime)) {
|
|
827
|
-
return launchWithPauseAwareDeadline(
|
|
826
|
+
if (policy.software ?? softwareChromeAllowed(runtime)) {
|
|
827
|
+
return launchWithPauseAwareDeadline(
|
|
828
|
+
launch,
|
|
829
|
+
softwareChromeLaunchOptions(opts, runtime)
|
|
830
|
+
);
|
|
828
831
|
}
|
|
829
832
|
const gpuOptions = chromeLaunchOptions(opts, runtime);
|
|
830
833
|
let browser;
|
|
@@ -919,7 +922,12 @@ function softwareChromeLaunchOptions(opts, runtime = currentRuntime()) {
|
|
|
919
922
|
}
|
|
920
923
|
function chromeLaunchOptions(opts = {}, runtime = currentRuntime()) {
|
|
921
924
|
if (signalShutdownClaimed) {
|
|
922
|
-
opts = {
|
|
925
|
+
opts = {
|
|
926
|
+
...opts,
|
|
927
|
+
handleSIGINT: false,
|
|
928
|
+
handleSIGTERM: false,
|
|
929
|
+
handleSIGHUP: false
|
|
930
|
+
};
|
|
923
931
|
}
|
|
924
932
|
return softwareChromeAllowed(runtime) ? softwareChromeLaunchOptions(opts, runtime) : gpuChromeLaunchOptions(opts, runtime);
|
|
925
933
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -240,6 +240,15 @@ function parseExpoManifestBody(body) {
|
|
|
240
240
|
}
|
|
241
241
|
throw new Error("Expo manifest response has no manifest part");
|
|
242
242
|
}
|
|
243
|
+
function readExpoManifestFields(manifest) {
|
|
244
|
+
if (typeof manifest?.bundleUrl === "string")
|
|
245
|
+
return { launchUrl: manifest.bundleUrl, client: manifest };
|
|
246
|
+
const launchUrl = manifest?.launchAsset?.url;
|
|
247
|
+
return {
|
|
248
|
+
launchUrl: typeof launchUrl === "string" ? launchUrl : void 0,
|
|
249
|
+
client: manifest?.extra?.expoClient || manifest?.extra || {}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
243
252
|
|
|
244
253
|
// src/native-dev-bundle-url.ts
|
|
245
254
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1504,17 +1513,16 @@ function applyManifest(result, manifestRes, buildIconProxyUrl) {
|
|
|
1504
1513
|
if (!manifestRes) return result;
|
|
1505
1514
|
try {
|
|
1506
1515
|
const manifest = parseExpoManifestBody(manifestRes.body);
|
|
1507
|
-
const
|
|
1516
|
+
const { launchUrl: manifestLaunchUrl, client } = readExpoManifestFields(manifest);
|
|
1508
1517
|
const root = client._internal?.projectRoot;
|
|
1509
|
-
if (
|
|
1518
|
+
if (manifestLaunchUrl || client.name)
|
|
1510
1519
|
result.manifestProjectRoot = typeof root === "string" && root.length > 0 ? root : null;
|
|
1511
1520
|
if (client.name) result.projectName = client.name;
|
|
1512
1521
|
if (typeof client.primaryColor === "string") result.primaryColor = client.primaryColor;
|
|
1513
1522
|
if (client.ios?.bundleIdentifier) result.bundleId = client.ios.bundleIdentifier;
|
|
1514
1523
|
if (result.framework === "metro" && client.sdkVersion) result.framework = "expo";
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1517
|
-
rawLaunchUrl,
|
|
1524
|
+
const launchUrl = manifestLaunchUrl ? alignLoopbackBundleUrlWithProbe(
|
|
1525
|
+
manifestLaunchUrl,
|
|
1518
1526
|
buildLoopbackProbeBaseUrl("http:", manifestRes.hostname, result.port)
|
|
1519
1527
|
) : void 0;
|
|
1520
1528
|
if (launchUrl && !result.patched && !isDirectOneBundleUrl(result.bundleUrl)) {
|
|
@@ -1648,8 +1656,7 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1648
1656
|
ownerPromise
|
|
1649
1657
|
]);
|
|
1650
1658
|
const manifestParsed = manifestRes ? safeParseManifest(manifestRes.body) : null;
|
|
1651
|
-
const
|
|
1652
|
-
const manifestClient = manifestParsed?.extra?.expoClient || manifestParsed?.extra || {};
|
|
1659
|
+
const { launchUrl: manifestLaunchUrl, client: manifestClient } = readExpoManifestFields(manifestParsed);
|
|
1653
1660
|
const manifestState = !manifestRes ? "no-answer" : manifestParsed && (manifestLaunchUrl || typeof manifestClient.name === "string") ? "resolved" : "no-manifest";
|
|
1654
1661
|
const metroPackager = !!statusRes?.body.includes("packager-status:running") && !(manifestState === "resolved" && manifestLaunchUrl?.includes("/one/metro-entry.bundle"));
|
|
1655
1662
|
const [sootsimRes, swiftRes, kotlinRes, oneScanRes] = metroPackager ? [null, null, null, null] : await Promise.all([
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (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;
|
|
@@ -83,6 +83,7 @@ __export(sdk_exports, {
|
|
|
83
83
|
isInspectModeActive: () => isInspectModeActive,
|
|
84
84
|
isInspectPickCommand: () => isInspectPickCommand,
|
|
85
85
|
isPeachAccessibilityTree: () => isPeachAccessibilityTree,
|
|
86
|
+
isResolvedTapPayload: () => isResolvedTapPayload,
|
|
86
87
|
isShellCommandUnavailable: () => isShellCommandUnavailable,
|
|
87
88
|
isSimSemanticTree: () => isSimSemanticTree,
|
|
88
89
|
isTapSuccess: () => isTapSuccess,
|
|
@@ -936,7 +937,7 @@ function waitReadyReason(status) {
|
|
|
936
937
|
if (status.bridgeError.includes(HEADLESS_TENANT_FETCH_HUNG_MARKER)) {
|
|
937
938
|
return status.bridgeError;
|
|
938
939
|
}
|
|
939
|
-
return `
|
|
940
|
+
return `readiness probe failed: ${status.bridgeError}; no readiness snapshot received (check \`peach list\` for connection state)`;
|
|
940
941
|
}
|
|
941
942
|
const waitingOnGuestFetch = status.externalReady === false && /https?:\/\//.test(status.externalStatus);
|
|
942
943
|
const base = status.externalError ? `guest app errored: ${status.externalError}` : waitingOnGuestFetch ? `waiting on a guest fetch: ${status.externalStatus}` : status.loadingText ? `still showing "${status.loadingText}"` : status.externalReady === false ? "guest app is still loading" : status.flag !== true && status.targets > 0 ? "native content is rendered but the ready signal has not settled" : status.flag !== true ? "guest app has not emitted sootsim:externalAppReady" : status.targets <= 0 && !status.paintedAppContent ? "ready flag emitted but no visible app content is inspectable yet" : "node tree is still changing";
|
|
@@ -996,6 +997,7 @@ async function inspectWaitReady(bridge, timeoutMs, options = {}) {
|
|
|
996
997
|
const status = waitReadyFromResult(result);
|
|
997
998
|
status.elapsedMs = now() - start;
|
|
998
999
|
lastStatus = status;
|
|
1000
|
+
if (status.bridgeError.startsWith("command timed out after ")) continue;
|
|
999
1001
|
if (status.ready || status.externalError || status.bridgeError) return status;
|
|
1000
1002
|
const key = waitReadyProgressKey(status);
|
|
1001
1003
|
if (key !== lastKey) {
|
|
@@ -2095,8 +2097,11 @@ async function waitForSootsimIdle({
|
|
|
2095
2097
|
}
|
|
2096
2098
|
const counts = await countsRead
|
|
2097
2099
|
if (counts === BUSY) workerBusy = true
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
+
// <Image> loads are left to the image loader, which counts only those
|
|
2101
|
+
// that can reach the window. a runtime older than the CLI reports none.
|
|
2102
|
+
const imageLoads = counts?.imageLoads ?? { total: 0, inFlight: 0 }
|
|
2103
|
+
requestTotal = typeof counts?.total === 'number' ? counts.total - imageLoads.total : 0
|
|
2104
|
+
requestInFlight = typeof counts?.inFlight === 'number' ? counts.inFlight - imageLoads.inFlight : 0
|
|
2100
2105
|
const total = await nodeCountRead
|
|
2101
2106
|
if (total === BUSY) workerBusy = true
|
|
2102
2107
|
nodeCount = typeof total === 'number' ? total : null
|
|
@@ -2502,6 +2507,9 @@ async function waitReadyAndSettle(bridge, timeoutMs, options = {}) {
|
|
|
2502
2507
|
}
|
|
2503
2508
|
|
|
2504
2509
|
// cli/commands/inspect/actions.ts
|
|
2510
|
+
function isResolvedTapPayload(payload) {
|
|
2511
|
+
return !!payload && typeof payload.cx === "number" && typeof payload.cy === "number";
|
|
2512
|
+
}
|
|
2505
2513
|
var DEFAULT_AGENT_TIMING = {
|
|
2506
2514
|
initialWaitMs: 3e3,
|
|
2507
2515
|
deadlineMs: 5e3,
|
|
@@ -2521,6 +2529,7 @@ function tapTiming(agent, opts = {}) {
|
|
|
2521
2529
|
function isTapSuccess(result) {
|
|
2522
2530
|
if (!result || result.hit === false || result.ok === false) return false;
|
|
2523
2531
|
if (result.handled === false) return false;
|
|
2532
|
+
if (result.hit !== true && result.handled !== true) return false;
|
|
2524
2533
|
if (result.requestedTargetMatched === false) return false;
|
|
2525
2534
|
if (result.pointerTapHandled === false && !(result.hit === true && result.requestedTargetMatched === true) && !result.keyboardOpened && !result.isTextInput) {
|
|
2526
2535
|
return false;
|
|
@@ -2651,7 +2660,7 @@ async function tapCoordinates(bridge, x, y, target) {
|
|
|
2651
2660
|
...target ? { target } : {}
|
|
2652
2661
|
});
|
|
2653
2662
|
}
|
|
2654
|
-
function payloadFromResolved(resolved, match, extra =
|
|
2663
|
+
function payloadFromResolved(resolved, match, extra = null) {
|
|
2655
2664
|
return {
|
|
2656
2665
|
cx: resolved.x,
|
|
2657
2666
|
cy: resolved.y,
|
|
@@ -2671,7 +2680,7 @@ function payloadFromResolved(resolved, match, extra = {}) {
|
|
|
2671
2680
|
type: resolved.type ?? match.type ?? null
|
|
2672
2681
|
},
|
|
2673
2682
|
strategy: "matched-node",
|
|
2674
|
-
...extra
|
|
2683
|
+
...extra ?? {}
|
|
2675
2684
|
};
|
|
2676
2685
|
}
|
|
2677
2686
|
function collectTextCandidates(nodes, ancestors = [], pressableOwnerText = "", actionableAncestor = false, actionableRole) {
|
|
@@ -3326,7 +3335,7 @@ var SimClient = class {
|
|
|
3326
3335
|
// --- internals ---
|
|
3327
3336
|
throwUnlessTapped(outcome, label) {
|
|
3328
3337
|
if (!outcome.failure && isTapSuccess(outcome.result)) return;
|
|
3329
|
-
const reason = outcome.failure === "not-found" ? "no matching node" : outcome.failure === "missed" ? outcome.result?.reason ?? "press missed" : outcome.payload?.ambiguous ? `ambiguous: ${outcome.payload.total} matches` : outcome.result?.reason ?? outcome.payload?.error ?? "tap failed";
|
|
3338
|
+
const reason = outcome.failure === "not-found" ? "no matching node" : outcome.failure === "missed" ? outcome.result?.reason ?? "press missed" : outcome.payload?.ambiguous ? outcome.payload.error ?? (outcome.payload.total === void 0 ? "ambiguous target" : `ambiguous: ${outcome.payload.total} matches`) : outcome.result?.reason ?? outcome.payload?.error ?? "tap failed";
|
|
3330
3339
|
throw new SimTapError(`tap ${JSON.stringify(label)} failed: ${reason}`, outcome);
|
|
3331
3340
|
}
|
|
3332
3341
|
coordsForTapTarget(target) {
|
|
@@ -3448,6 +3457,7 @@ var SimClient = class {
|
|
|
3448
3457
|
isInspectModeActive,
|
|
3449
3458
|
isInspectPickCommand,
|
|
3450
3459
|
isPeachAccessibilityTree,
|
|
3460
|
+
isResolvedTapPayload,
|
|
3451
3461
|
isShellCommandUnavailable,
|
|
3452
3462
|
isSimSemanticTree,
|
|
3453
3463
|
isTapSuccess,
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1728 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -824,7 +824,7 @@ function waitReadyReason(status) {
|
|
|
824
824
|
if (status.bridgeError.includes(HEADLESS_TENANT_FETCH_HUNG_MARKER)) {
|
|
825
825
|
return status.bridgeError;
|
|
826
826
|
}
|
|
827
|
-
return `
|
|
827
|
+
return `readiness probe failed: ${status.bridgeError}; no readiness snapshot received (check \`peach list\` for connection state)`;
|
|
828
828
|
}
|
|
829
829
|
const waitingOnGuestFetch = status.externalReady === false && /https?:\/\//.test(status.externalStatus);
|
|
830
830
|
const base = status.externalError ? `guest app errored: ${status.externalError}` : waitingOnGuestFetch ? `waiting on a guest fetch: ${status.externalStatus}` : status.loadingText ? `still showing "${status.loadingText}"` : status.externalReady === false ? "guest app is still loading" : status.flag !== true && status.targets > 0 ? "native content is rendered but the ready signal has not settled" : status.flag !== true ? "guest app has not emitted sootsim:externalAppReady" : status.targets <= 0 && !status.paintedAppContent ? "ready flag emitted but no visible app content is inspectable yet" : "node tree is still changing";
|
|
@@ -884,6 +884,7 @@ async function inspectWaitReady(bridge, timeoutMs, options = {}) {
|
|
|
884
884
|
const status = waitReadyFromResult(result);
|
|
885
885
|
status.elapsedMs = now() - start;
|
|
886
886
|
lastStatus = status;
|
|
887
|
+
if (status.bridgeError.startsWith("command timed out after ")) continue;
|
|
887
888
|
if (status.ready || status.externalError || status.bridgeError) return status;
|
|
888
889
|
const key = waitReadyProgressKey(status);
|
|
889
890
|
if (key !== lastKey) {
|
|
@@ -1983,8 +1984,11 @@ async function waitForSootsimIdle({
|
|
|
1983
1984
|
}
|
|
1984
1985
|
const counts = await countsRead
|
|
1985
1986
|
if (counts === BUSY) workerBusy = true
|
|
1986
|
-
|
|
1987
|
-
|
|
1987
|
+
// <Image> loads are left to the image loader, which counts only those
|
|
1988
|
+
// that can reach the window. a runtime older than the CLI reports none.
|
|
1989
|
+
const imageLoads = counts?.imageLoads ?? { total: 0, inFlight: 0 }
|
|
1990
|
+
requestTotal = typeof counts?.total === 'number' ? counts.total - imageLoads.total : 0
|
|
1991
|
+
requestInFlight = typeof counts?.inFlight === 'number' ? counts.inFlight - imageLoads.inFlight : 0
|
|
1988
1992
|
const total = await nodeCountRead
|
|
1989
1993
|
if (total === BUSY) workerBusy = true
|
|
1990
1994
|
nodeCount = typeof total === 'number' ? total : null
|
|
@@ -2390,6 +2394,9 @@ async function waitReadyAndSettle(bridge, timeoutMs, options = {}) {
|
|
|
2390
2394
|
}
|
|
2391
2395
|
|
|
2392
2396
|
// cli/commands/inspect/actions.ts
|
|
2397
|
+
function isResolvedTapPayload(payload) {
|
|
2398
|
+
return !!payload && typeof payload.cx === "number" && typeof payload.cy === "number";
|
|
2399
|
+
}
|
|
2393
2400
|
var DEFAULT_AGENT_TIMING = {
|
|
2394
2401
|
initialWaitMs: 3e3,
|
|
2395
2402
|
deadlineMs: 5e3,
|
|
@@ -2409,6 +2416,7 @@ function tapTiming(agent, opts = {}) {
|
|
|
2409
2416
|
function isTapSuccess(result) {
|
|
2410
2417
|
if (!result || result.hit === false || result.ok === false) return false;
|
|
2411
2418
|
if (result.handled === false) return false;
|
|
2419
|
+
if (result.hit !== true && result.handled !== true) return false;
|
|
2412
2420
|
if (result.requestedTargetMatched === false) return false;
|
|
2413
2421
|
if (result.pointerTapHandled === false && !(result.hit === true && result.requestedTargetMatched === true) && !result.keyboardOpened && !result.isTextInput) {
|
|
2414
2422
|
return false;
|
|
@@ -2539,7 +2547,7 @@ async function tapCoordinates(bridge, x, y, target) {
|
|
|
2539
2547
|
...target ? { target } : {}
|
|
2540
2548
|
});
|
|
2541
2549
|
}
|
|
2542
|
-
function payloadFromResolved(resolved, match, extra =
|
|
2550
|
+
function payloadFromResolved(resolved, match, extra = null) {
|
|
2543
2551
|
return {
|
|
2544
2552
|
cx: resolved.x,
|
|
2545
2553
|
cy: resolved.y,
|
|
@@ -2559,7 +2567,7 @@ function payloadFromResolved(resolved, match, extra = {}) {
|
|
|
2559
2567
|
type: resolved.type ?? match.type ?? null
|
|
2560
2568
|
},
|
|
2561
2569
|
strategy: "matched-node",
|
|
2562
|
-
...extra
|
|
2570
|
+
...extra ?? {}
|
|
2563
2571
|
};
|
|
2564
2572
|
}
|
|
2565
2573
|
function collectTextCandidates(nodes, ancestors = [], pressableOwnerText = "", actionableAncestor = false, actionableRole) {
|
|
@@ -3214,7 +3222,7 @@ var SimClient = class {
|
|
|
3214
3222
|
// --- internals ---
|
|
3215
3223
|
throwUnlessTapped(outcome, label) {
|
|
3216
3224
|
if (!outcome.failure && isTapSuccess(outcome.result)) return;
|
|
3217
|
-
const reason = outcome.failure === "not-found" ? "no matching node" : outcome.failure === "missed" ? outcome.result?.reason ?? "press missed" : outcome.payload?.ambiguous ? `ambiguous: ${outcome.payload.total} matches` : outcome.result?.reason ?? outcome.payload?.error ?? "tap failed";
|
|
3225
|
+
const reason = outcome.failure === "not-found" ? "no matching node" : outcome.failure === "missed" ? outcome.result?.reason ?? "press missed" : outcome.payload?.ambiguous ? outcome.payload.error ?? (outcome.payload.total === void 0 ? "ambiguous target" : `ambiguous: ${outcome.payload.total} matches`) : outcome.result?.reason ?? outcome.payload?.error ?? "tap failed";
|
|
3218
3226
|
throw new SimTapError(`tap ${JSON.stringify(label)} failed: ${reason}`, outcome);
|
|
3219
3227
|
}
|
|
3220
3228
|
coordsForTapTarget(target) {
|
|
@@ -3335,6 +3343,7 @@ export {
|
|
|
3335
3343
|
isInspectModeActive,
|
|
3336
3344
|
isInspectPickCommand,
|
|
3337
3345
|
isPeachAccessibilityTree,
|
|
3346
|
+
isResolvedTapPayload,
|
|
3338
3347
|
isShellCommandUnavailable,
|
|
3339
3348
|
isSimSemanticTree,
|
|
3340
3349
|
isTapSuccess,
|