peachsim 0.1.1738 → 0.1.1744
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 +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +67 -16
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +22 -20
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +37 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +4 -0
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +9 -4
- 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 +7372 -3675
- 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 +22 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6340 -3064
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6524 -2720
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
- 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 +6 -3
- package/dist-lib/index.cjs +97 -31
- 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 +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -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 +71 -29
- package/dist-lib/native-app-identity-project.cjs +53 -22
- package/dist-lib/native-app-identity-project.mjs +53 -22
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- 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 +25 -23
- package/dist-lib/public-origins-lib.json +111 -79
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +40549 -37613
- package/dist-lib/swift-compile.cjs +2054 -388
- package/dist-lib/swift-compile.mjs +1976 -312
- 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 +68 -8
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5867 -2646
- package/dist-lib/vite.cjs +18 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/native-hashes.json +1 -1
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -264
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -401
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -216
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -284
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -105
- package/src/appPackageContract.ts +12 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +133 -59
- package/src/cli-runtime.ts +8 -9
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +3 -0
- package/src/expo-native-workspace.ts +81 -17
- package/src/expo-swift-host.ts +57 -104
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoSwiftContract.ts +13 -1
- package/src/host/websocket-proxy.ts +7 -2
- package/src/native-prebuilt.ts +3 -3
- package/src/nitro-adapter.lock.json +263 -263
- package/src/nitro-adapter.ts +69 -7
- package/src/nitro-bundle.ts +52 -24
- package/src/nitro-compile.ts +6 -1
- package/src/nitro-source.ts +82 -4
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroContract.ts +5 -1
- package/src/react-bridge-importers.ts +1 -0
- package/src/settingsContract.ts +26 -1
- package/src/swift-compile.ts +267 -68
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +10 -12
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +15 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +48 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standins.ts +233 -11
- package/src/swift-submit.ts +13 -1
- package/src/swift-toolchain.ts +82 -7
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +11 -10
- package/src/turbo-runtime.lock.json +16 -16
- package/src/vite-plugin-one.ts +12 -1
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -1,306 +1,110 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: peach-debug
|
|
3
|
-
description:
|
|
3
|
+
description: Investigate incorrect rendering, props, gestures, navigation, event order, or accessibility in a React Native app already connected to Peach. Use the CLI to reproduce and locate the cause. Use peach-perf for performance profiling, peach-visual for pixel comparisons, and peach-setup for connection failures.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Peach debug
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
event-order, or correctness question. for pixel-level rendering fidelity
|
|
13
|
-
load `/peach-visual` instead.
|
|
8
|
+
Use Peach's tree, event, and snapshot tools first. Canvas pixels and the
|
|
9
|
+
accessibility mirror answer different questions; a DOM query alone does not
|
|
10
|
+
explain rendering. Start with `peach describe`. If it cannot reach your app,
|
|
11
|
+
use `peach-setup`.
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
> `/peach-setup` first.
|
|
17
|
-
|
|
18
|
-
## principle — drive the CLI, don't probe by hand
|
|
19
|
-
|
|
20
|
-
for any rendering, animation, gesture, or interaction bug, reach for the
|
|
21
|
-
peach CLI debug tooling **first** — `describe` and `find` to read the
|
|
22
|
-
tree, `debug snapshot` + `debug diff` to capture before/after, `debug
|
|
23
|
-
recent` on a channel and `perf shell` for frame-by-frame stats, and the
|
|
24
|
-
timeline for "what just happened". **do not** debug these by eye with
|
|
25
|
-
screenshots, sprinkle `console.log` through the render path, or spin up a
|
|
26
|
-
one-off browser-automation script. visual rendering uses canvas; the
|
|
27
|
-
accessibility mirror exposes semantic DOM. a
|
|
28
|
-
CLI capture is reproducible, diffable, and shareable in a way a screenshot
|
|
29
|
-
never is.
|
|
30
|
-
|
|
31
|
-
if the existing CLI tools don't capture the issue cleanly — the animation
|
|
32
|
-
is too fast to read, the signal you need isn't on any channel, the
|
|
33
|
-
interaction spans a boundary the timeline doesn't section — the right move
|
|
34
|
-
is to **improve the debug tooling**, not to paper over it with throwaway
|
|
35
|
-
probes. add a durable, channel-gated, start/stop instrument that's off by
|
|
36
|
-
default (so baseline performance is untouched) and emits exactly the signal
|
|
37
|
-
you're chasing. a good capture command is one-shot reproducible, every
|
|
38
|
-
agent after you benefits from it, and the same capture can become a
|
|
39
|
-
regression test. a pile of ad-hoc logs helps no one and gets deleted.
|
|
40
|
-
|
|
41
|
-
## route in
|
|
42
|
-
|
|
43
|
-
- "my app renders wrong / wrong props / wrong tree" → [debugging](#branch--debugging)
|
|
44
|
-
- "feels slow / drops frames / janks on scroll" → [performance](#branch--performance)
|
|
45
|
-
- "screen reader can't find this / wrong label / tap target too small" → [accessibility](#branch--accessibility)
|
|
46
|
-
- "I want to see what just happened" (ephemeral toast, async navigation,
|
|
47
|
-
fetch + alert sequence) → [the timeline](#the-timeline-what-happened)
|
|
48
|
-
- "I want pixel-level fidelity to iOS" → load `/peach-visual`
|
|
49
|
-
- "I want to author a test" → load `/peach-test`
|
|
50
|
-
|
|
51
|
-
## anti-patterns (apply to every branch)
|
|
52
|
-
|
|
53
|
-
- **`a1`/`a2`/`b0` style ids mean Peach sims, never browser tabs.** when a user
|
|
54
|
-
says "look at a3", that's the `peach list` sim id. do not open chrome
|
|
55
|
-
MCP unless the user explicitly says "use chrome". use Peach's node-tree
|
|
56
|
-
inspection for the visual surface and its accessibility tools for semantics.
|
|
57
|
-
- **the CLI auto-settles. don't add `sleep`.** every read waits up to
|
|
58
|
-
1800 ms for in-flight transitions to start; every write polls layout
|
|
59
|
-
hash until stable. if a read keeps racing its write, the fix is **never**
|
|
60
|
-
a blind `sleep` — it's `wait selector`, `wait ready`, `wait idle`, or
|
|
61
|
-
fixing the underlying animation-completion signal.
|
|
62
|
-
- **prefer `--testid` over text matching.** text drifts under i18n, copy
|
|
63
|
-
changes, and duplicate strings. add `testID` during implementation and
|
|
64
|
-
query against it.
|
|
65
|
-
- **pin a sim once.** if more than one is live, an unpinned command
|
|
66
|
-
refuses to choose. run `peach use <id>` at the start of the workflow.
|
|
67
|
-
- **keep one sim and reuse its browser tab.** before `peach open`, run
|
|
68
|
-
`peach list --all`. pin the target and use `peach do reload`; a plain
|
|
69
|
-
`peach open <target>` also navigates the saved sim. reserve `--new` for a
|
|
70
|
-
genuinely concurrent sim. repeated browser trees consume memory and CPU on a
|
|
71
|
-
shared machine.
|
|
72
|
-
- **`debug eval` is an escape hatch.** if a top-level command feels
|
|
73
|
-
broken or missing, file an issue — every agent after you benefits from
|
|
74
|
-
a better CLI, not a pile of ad-hoc scripts.
|
|
75
|
-
- **sweep `get errors` and `get requests` after every repro.** the
|
|
76
|
-
one-line summary tells you the count grew; you still have to *look at
|
|
77
|
-
them*. a "fixed" behavior with a new console error is not fixed.
|
|
78
|
-
- **"found a testID" is not done.** done is: reliable repro + identified
|
|
79
|
-
root cause (specific node + prop, or event + handler) + verified fix.
|
|
80
|
-
- **an empty `find --pressable` is not proof there is no affordance.** it
|
|
81
|
-
lists registered touch responders, and a tamagui `styled()` view whose
|
|
82
|
-
`onPress` comes from the call site is tappable without ever appearing there.
|
|
83
|
-
before concluding a screen has no way out, corroborate with `get a11y` or an
|
|
84
|
-
actual `do tap-text`.
|
|
85
|
-
- **after an unexplained restart, re-establish which sim you are on.** a sim
|
|
86
|
-
that reconnected, or a dev stack that came back on a port another process now
|
|
87
|
-
holds, is a fresh instrument; a port answering 200 says something is
|
|
88
|
-
listening, not that it is yours. every Peach command prints its own `→ <sim>`
|
|
89
|
-
line, so reading that line is the check.
|
|
90
|
-
|
|
91
|
-
## the timeline ("what happened")
|
|
92
|
-
|
|
93
|
-
between two CLI calls, things happen invisibly — toasts flash, keyboards
|
|
94
|
-
open and close, screens push and pop, alerts fire and dismiss, async
|
|
95
|
-
fetches resolve. the timeline records them so you can ask "what
|
|
96
|
-
happened" instead of racing the UI with `find`.
|
|
97
|
-
|
|
98
|
-
```sh
|
|
99
|
-
peach timeline start # arm recording (cheap kinds default-on)
|
|
100
|
-
# reproduce the flow
|
|
101
|
-
peach what-happened # events since the last CLI call
|
|
102
|
-
peach what-happened --since 10s # absolute window
|
|
103
|
-
peach what-happened --kinds toast,fetch # filter to a few kinds
|
|
104
|
-
peach what-happened --summary # one-line counts
|
|
105
|
-
peach what-happened --flow # section events by screen/route
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
semantic kinds the timeline understands: `keyboard`, `screen`, `route`,
|
|
109
|
-
`alert`, `actionsheet`, `picker`, `notification`, `toast`, `scroll`,
|
|
110
|
-
`gesture`, `text-input`, `reanimated`, `animation`, `fetch`, `console`,
|
|
111
|
-
`app-launch`, `shell`. cheap kinds record by default; heavier kinds
|
|
112
|
-
(scroll, gesture, text-input, reanimated, animation) opt in via
|
|
113
|
-
`peach timeline start scroll,gesture,…`.
|
|
114
|
-
|
|
115
|
-
every other CLI command also prints a one-line footer for events since
|
|
116
|
-
the last call — that's the headline indicator. when the footer is empty,
|
|
117
|
-
there's nothing new to look at; when it says `since last: 1 error · 1
|
|
118
|
-
toast · 1 screen push`, run `peach what-happened` to see the detail.
|
|
119
|
-
|
|
120
|
-
> reach for the timeline first when the question involves *something
|
|
121
|
-
> that appeared briefly and disappeared*. it's faster than a screenshot
|
|
122
|
-
> and tells you the duration too.
|
|
123
|
-
|
|
124
|
-
## automatic settling — when you actually need a manual wait
|
|
125
|
-
|
|
126
|
-
every CLI command already participates in a two-phase settle. you only
|
|
127
|
-
need a manual wait when:
|
|
128
|
-
|
|
129
|
-
1. the CLI explicitly printed `⚠ auto-wait timed out after Nms (<what
|
|
130
|
-
still moved>) — next command may see mid-animation state` *and* your next read depends on
|
|
131
|
-
the animation finishing.
|
|
132
|
-
2. the transition is longer than ~800 ms (full stack navigation,
|
|
133
|
-
crossfades, video first-frame, network-backed render).
|
|
134
|
-
3. you want `--strict` settle, which also requires animation flags to
|
|
135
|
-
clear — only safe for apps with no perpetual background animation
|
|
136
|
-
(no pulsing dots, no shimmer, no looping Lottie).
|
|
137
|
-
|
|
138
|
-
```sh
|
|
139
|
-
peach do settle 5 # wait up to 5s for layout stability
|
|
140
|
-
peach wait idle --max-ms 5000 # same thing under the `wait` verb
|
|
141
|
-
peach wait idle --strict # also require animation flags clear
|
|
142
|
-
peach do tap play --no-wait # skip auto-settle on one command
|
|
143
|
-
PEACH_NO_AUTO_WAIT=1 peach ... # disable auto-settle for a lane
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
## branch — debugging
|
|
147
|
-
|
|
148
|
-
the playbook for "wrong tree / wrong props / wrong handler":
|
|
13
|
+
## Reproduce and locate the cause
|
|
149
14
|
|
|
150
15
|
```sh
|
|
151
|
-
peach
|
|
152
|
-
peach
|
|
153
|
-
peach
|
|
16
|
+
peach list
|
|
17
|
+
peach use <id>
|
|
18
|
+
peach describe
|
|
19
|
+
peach get errors 5
|
|
20
|
+
peach find --testid <node>
|
|
154
21
|
peach debug snapshot before
|
|
155
|
-
# reproduce
|
|
22
|
+
# reproduce with peach do actions
|
|
156
23
|
peach debug snapshot after
|
|
157
|
-
peach debug diff before after
|
|
158
|
-
peach what-happened
|
|
24
|
+
peach debug diff before after
|
|
25
|
+
peach what-happened
|
|
26
|
+
peach get requests 5
|
|
159
27
|
```
|
|
160
28
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
29
|
+
Sim ids such as `a1` identify Peach sims. Keep the same sim pinned throughout
|
|
30
|
+
the investigation and check the target printed by commands after a reconnect.
|
|
31
|
+
Use `peach do reload` to reload it. Use `peach open --new` only for a concurrent
|
|
32
|
+
sim; do not create browser trees to retry a broken connection.
|
|
164
33
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
34
|
+
Prefer testIDs over text. For large virtualized screens, query the relevant
|
|
35
|
+
node instead of enumerating the whole tree. `describe` rows show type, text,
|
|
36
|
+
testID, geometry in points, styles, and interaction flags. Read
|
|
37
|
+
[commands](references/commands.md) only when you need more inspection or input
|
|
38
|
+
syntax.
|
|
168
39
|
|
|
169
|
-
|
|
170
|
-
|
|
40
|
+
An empty `find --pressable` is not proof that a screen has no affordance. Check
|
|
41
|
+
`peach get a11y` or try the expected interaction; some handlers do not appear in
|
|
42
|
+
the registered-responder list.
|
|
171
43
|
|
|
172
|
-
|
|
173
|
-
peach debug state scroll-input
|
|
174
|
-
peach debug state scroll-mirror
|
|
175
|
-
```
|
|
44
|
+
## Events and gestures
|
|
176
45
|
|
|
177
|
-
for
|
|
178
|
-
|
|
179
|
-
```sh
|
|
180
|
-
peach debug enable touch
|
|
181
|
-
# reproduce the drag
|
|
182
|
-
peach debug recent touch 40
|
|
183
|
-
peach debug disable touch
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
`gesture` is a timeline kind; responder debug events use `touch`.
|
|
187
|
-
|
|
188
|
-
reading `describe` output:
|
|
189
|
-
|
|
190
|
-
```
|
|
191
|
-
[button] "Sign in" #loginButton @(0,347) 402x44 [bg:#006AFF fg:#fff] (tap)
|
|
192
|
-
<text> "Forgot?" @(341,287) 55x28 [fg:#666 fontSize:14]
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
format: `[type] "text" #testID @(x,y) WxH [styles] (flags)`. coordinates
|
|
196
|
-
are points (CSS pixels), origin top-left, parent-relative.
|
|
197
|
-
|
|
198
|
-
for transitions, alerts, native UI, or anything spanning the shell ↔
|
|
199
|
-
tenant boundary, lean on the timeline before reaching for traces:
|
|
46
|
+
Use the timeline for transient toasts, alerts, keyboard changes, async routing,
|
|
47
|
+
and fetch sequences:
|
|
200
48
|
|
|
201
49
|
```sh
|
|
202
50
|
peach timeline start
|
|
203
|
-
# reproduce
|
|
51
|
+
# reproduce
|
|
52
|
+
peach what-happened --since 10s
|
|
204
53
|
peach what-happened --kinds shell,alert,screen,animation
|
|
205
54
|
```
|
|
206
55
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
2. root cause is identified (specific node + prop, or event + handler,
|
|
211
|
-
not "something in the navigation stack")
|
|
212
|
-
3. fix re-verified through the same `snapshot → reproduce → diff` loop
|
|
56
|
+
The command footer summarizes new events; `what-happened` provides the detail.
|
|
57
|
+
Read [events and settling](references/events.md) for opt-in timeline kinds,
|
|
58
|
+
manual waits, and gesture diagnostics.
|
|
213
59
|
|
|
214
|
-
|
|
60
|
+
For closely timed inputs, run one ordered engine batch:
|
|
215
61
|
|
|
216
62
|
```sh
|
|
217
|
-
peach
|
|
218
|
-
# reproduce the slow interaction
|
|
219
|
-
peach perf shell stop # full report, including worst frames
|
|
220
|
-
peach perf shell stop --json # machine-readable summary
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
`perf shell` output:
|
|
224
|
-
|
|
225
|
-
```
|
|
226
|
-
frames: 847
|
|
227
|
-
total: 14123ms
|
|
228
|
-
avg: 16.7ms
|
|
229
|
-
max: 42ms (⚠ dropped frames)
|
|
230
|
-
p95: 22.3ms
|
|
231
|
-
layout frames: 123
|
|
232
|
-
layout avg: 2.1ms
|
|
63
|
+
peach do touch down 200 600 --then sleep 0.03 --then touch move 200 250 --then touch up 200 250
|
|
233
64
|
```
|
|
234
65
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
budget. **p95 >20 ms is visible jank for a scrolling surface.**
|
|
238
|
-
|
|
239
|
-
profiling a whole flow:
|
|
66
|
+
Use the `touch` debug channel for responder negotiation; `gesture` is a timeline
|
|
67
|
+
kind. Enable only the needed channels and disable them after collecting events:
|
|
240
68
|
|
|
241
69
|
```sh
|
|
242
|
-
peach
|
|
243
|
-
|
|
70
|
+
peach debug enable touch
|
|
71
|
+
# reproduce
|
|
72
|
+
peach debug recent touch 40
|
|
73
|
+
peach debug disable touch
|
|
244
74
|
```
|
|
245
75
|
|
|
246
|
-
|
|
76
|
+
For nested scroll ownership, compare `peach debug state scroll-input` with
|
|
77
|
+
`peach debug state scroll-mirror`.
|
|
247
78
|
|
|
248
|
-
|
|
249
|
-
| --- | --- | --- |
|
|
250
|
-
| scroll jank | layout firing during scroll | `debug enable layout` + `debug recent layout 40` |
|
|
251
|
-
| anim stutter | `Animated.Value` on `width`/`height` | switch to `transform: [{ scale }]` or `translate` |
|
|
252
|
-
| first-tap lag | font / image still loading | `get requests` + `debug state image` |
|
|
253
|
-
| memory growth | live animation drivers not cleaned up | `debug state animations` |
|
|
254
|
-
| slow initial render | many text measurements | `debug recent text` on first paint |
|
|
79
|
+
## Wait for state
|
|
255
80
|
|
|
256
|
-
|
|
257
|
-
|
|
81
|
+
CLI reads and writes already settle transitions and layout. When a command
|
|
82
|
+
reports an auto-wait timeout, or your read depends on delayed data or longer
|
|
83
|
+
motion, wait for the actual condition:
|
|
258
84
|
|
|
259
85
|
```sh
|
|
260
|
-
peach
|
|
261
|
-
|
|
262
|
-
peach
|
|
263
|
-
peach debug recent render 20 # last 20 draw passes
|
|
264
|
-
peach debug disable layout,onlayout,render,animated
|
|
86
|
+
peach wait selector dashboard --max-ms 10000
|
|
87
|
+
peach wait ready
|
|
88
|
+
peach wait idle --max-ms 5000
|
|
265
89
|
```
|
|
266
90
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
watch out for:
|
|
272
|
-
|
|
273
|
-
- **dynamic format strings bust the text-measurement cache.** `${count}
|
|
274
|
-
messages` re-measures every change — render the number and the word as
|
|
275
|
-
separate `<Text>` nodes.
|
|
276
|
-
- **`--strict` settle hangs forever on perpetual animation.** anything
|
|
277
|
-
with a pulsing dot or looping Lottie will never go quiet under
|
|
278
|
-
`--strict`. use plain `wait idle` there.
|
|
279
|
-
- **p95 over a single run is noise.** take three runs minimum.
|
|
280
|
-
|
|
281
|
-
## branch — accessibility
|
|
282
|
-
|
|
283
|
-
Read [accessibility](references/accessibility.md) for contrast capture, labels,
|
|
284
|
-
roles, touch targets and the verification commands.
|
|
91
|
+
Avoid blind sleeps. `wait idle --strict` also requires animation flags to clear
|
|
92
|
+
and is unsuitable for perpetual shimmer, pulsing, or looping animation. A
|
|
93
|
+
short sleep inside a touch chain represents gesture timing, not app readiness.
|
|
285
94
|
|
|
286
|
-
##
|
|
95
|
+
## Choose a specialized investigation
|
|
287
96
|
|
|
288
|
-
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
-
|
|
293
|
-
first, or the capture window closed before any frame committed.
|
|
294
|
-
- **`get a11y` returns 100+ items** — narrow with `find --role`,
|
|
295
|
-
`find --pressable`, or `find --no-label`; the a11y tree is descriptive and
|
|
296
|
-
intentionally does not invent an `--issues` grading mode.
|
|
297
|
-
- **styled layout cannot capture pixels** — open a tenant app, dismiss system
|
|
298
|
-
overlays, and let the launch transition finish before retrying.
|
|
299
|
-
- **timeline footer keeps showing 1 error but `get errors` is empty** —
|
|
300
|
-
the footer reads "since last cursor advance"; `get errors` is absolute.
|
|
301
|
-
the error already scrolled out of the absolute ring buffer.
|
|
97
|
+
- Performance: load `peach-perf` for frame costs, cadence, CPU, and memory.
|
|
98
|
+
- Accessibility: read [accessibility](references/accessibility.md) for labels,
|
|
99
|
+
roles, target geometry, contrast capture, and verification.
|
|
100
|
+
- Pixel fidelity: load `peach-visual` to compare captured rendering.
|
|
101
|
+
- Reusable automated flows: load `peach-test`.
|
|
302
102
|
|
|
303
|
-
|
|
103
|
+
Use `peach debug js` only when the existing commands cannot expose the needed
|
|
104
|
+
state. Report a missing diagnostic with a minimal reproduction rather than
|
|
105
|
+
adding render-path logs or assuming users can edit the engine's tooling.
|
|
304
106
|
|
|
305
|
-
|
|
306
|
-
|
|
107
|
+
Finish when the same input reliably reproduces the issue, the cause identifies
|
|
108
|
+
a specific node/prop or event/handler, and the repaired behavior passes that
|
|
109
|
+
same sequence. Inspect errors and failed requests after the fix, then disable
|
|
110
|
+
instrumentation you enabled.
|
|
@@ -1,84 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Accessibility
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
peach get layout --styling # boxes, styles, and native pixel contrast
|
|
6
|
-
peach describe --a11y # inline a11y info on every node
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
native styled layout reads rendered pixels rather than inferring contrast from
|
|
10
|
-
tokens. it compares the normal frame with one CanvasKit capture where text is
|
|
11
|
-
suppressed and adds each text score to the existing layout row and issue list.
|
|
12
|
-
|
|
13
|
-
contrast summary format:
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
#loginButton @(24,347) 120x24 font:16 color:#777 contrast:1.4/4.5 FAIL on:#888888 "Sign in"
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
finding offenders fast:
|
|
3
|
+
Use the semantic tree for accessible names, roles, hints, and target geometry.
|
|
4
|
+
Use styled layout for rendered text contrast:
|
|
20
5
|
|
|
21
6
|
```sh
|
|
22
|
-
peach
|
|
23
|
-
peach
|
|
24
|
-
peach find --
|
|
7
|
+
peach get a11y
|
|
8
|
+
peach get layout --styling
|
|
9
|
+
peach find --role button
|
|
10
|
+
peach find --pressable
|
|
25
11
|
```
|
|
26
12
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- **missing labels** — interactive nodes without `accessibilityLabel`
|
|
30
|
-
- **missing roles** — `Pressable`/`Touchable` without `accessibilityRole`
|
|
31
|
-
- **missing hints** — complex interactions without `accessibilityHint`
|
|
32
|
-
- **touch target size** — tappable nodes with hitSlop-expanded rect <44×44
|
|
33
|
-
- **contrast** — run `peach get layout --styling`; it samples final text and
|
|
34
|
-
text-suppressed background pixels, including gradients and composited opacity
|
|
35
|
-
- **label / visible-text mismatch** — label that reads differently from
|
|
36
|
-
the text VoiceOver would fall back to (often a translation bug)
|
|
37
|
-
- **duplicate labels** — two reachable nodes with identical labels on
|
|
38
|
-
one screen ("Open" + "Open" leaves no way to disambiguate)
|
|
13
|
+
An empty responder list does not prove that no control is reachable. Inspect
|
|
14
|
+
the accessibility tree and try the expected action as well.
|
|
39
15
|
|
|
40
|
-
|
|
16
|
+
Styled layout samples final text pixels and a text-suppressed background capture,
|
|
17
|
+
including gradients and composited opacity. It adds contrast scores to the
|
|
18
|
+
layout rows and issue list. It requires a local app surface that can capture
|
|
19
|
+
pixels; dismiss system overlays and let the launch finish first.
|
|
41
20
|
|
|
42
|
-
|
|
43
|
-
reader entirely)
|
|
44
|
-
- **P1** — tap target <44×44, duplicate labels
|
|
45
|
-
- **P2** — contrast, label/visible-text mismatch
|
|
21
|
+
## Inspect and repair
|
|
46
22
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
peach get layout --styling --json > before-layout.json
|
|
52
|
-
# apply the fix
|
|
53
|
-
peach get a11y > after-a11y.txt
|
|
54
|
-
peach get layout --styling --json > after-layout.json
|
|
55
|
-
diff before-a11y.txt after-a11y.txt
|
|
56
|
-
diff before-layout.json after-layout.json
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
fixing common cases:
|
|
23
|
+
Check the accessible name and role of each interactive control, useful hints
|
|
24
|
+
for complex interactions, duplicate or misleading names, and touch-target
|
|
25
|
+
geometry. On iOS, aim for at least 44 by 44 points. Compare names with visible
|
|
26
|
+
text and verify that hidden/decorative subtrees do not hide useful controls.
|
|
60
27
|
|
|
61
28
|
```tsx
|
|
62
|
-
// bad: icon button with no accessible name
|
|
63
|
-
<Pressable onPress={onBack}>
|
|
64
|
-
<ChevronLeftIcon />
|
|
65
|
-
</Pressable>
|
|
66
|
-
|
|
67
|
-
// good: labeled + roled + hinted + hitSlop'd
|
|
68
29
|
<Pressable
|
|
69
30
|
onPress={onBack}
|
|
70
31
|
accessibilityRole="button"
|
|
71
32
|
accessibilityLabel="Back"
|
|
72
33
|
accessibilityHint="Returns to the previous screen"
|
|
73
|
-
hitSlop={12}
|
|
34
|
+
hitSlop={12}
|
|
74
35
|
>
|
|
75
36
|
<ChevronLeftIcon />
|
|
76
37
|
</Pressable>
|
|
77
38
|
|
|
78
|
-
// bad: text input with no programmatic label
|
|
79
|
-
<TextInput placeholder="Email" onChangeText={setEmail} />
|
|
80
|
-
|
|
81
|
-
// good: label survives even when placeholder is hidden
|
|
82
39
|
<TextInput
|
|
83
40
|
placeholder="Email"
|
|
84
41
|
accessibilityLabel="Email address"
|
|
@@ -86,17 +43,24 @@ fixing common cases:
|
|
|
86
43
|
/>
|
|
87
44
|
```
|
|
88
45
|
|
|
89
|
-
|
|
46
|
+
The required hitSlop depends on the control's original size and surrounding
|
|
47
|
+
controls; verify the resulting geometry. A placeholder disappears after typing,
|
|
48
|
+
so an explicit input label keeps its purpose clear. An image role still needs
|
|
49
|
+
an accessible name when the image conveys information.
|
|
50
|
+
`importantForAccessibility="no-hide-descendants"` hides an entire subtree.
|
|
90
51
|
|
|
91
|
-
|
|
92
|
-
- **hitSlop expands the a11y rect too.** rarely need to make the
|
|
93
|
-
rendered button bigger — `hitSlop={12}` is usually enough.
|
|
94
|
-
- **`accessibilityRole="image"` is not an `alt` tag.** pair it with
|
|
95
|
-
`accessibilityLabel` or VoiceOver reads "image" and nothing else.
|
|
96
|
-
- **`importantForAccessibility="no-hide-descendants"` hides an entire
|
|
97
|
-
subtree.** useful for decorative chrome, dangerous if you forget it.
|
|
52
|
+
## Verify
|
|
98
53
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
54
|
+
```sh
|
|
55
|
+
peach get a11y > before-a11y.txt
|
|
56
|
+
peach get layout --styling --json > before-layout.json
|
|
57
|
+
# apply the fix
|
|
58
|
+
peach get a11y > after-a11y.txt
|
|
59
|
+
peach get layout --styling --json > after-layout.json
|
|
60
|
+
diff before-a11y.txt after-a11y.txt
|
|
61
|
+
diff before-layout.json after-layout.json
|
|
62
|
+
```
|
|
102
63
|
|
|
64
|
+
Prioritize controls that cannot be identified or activated, then ambiguous
|
|
65
|
+
names, undersized targets, and contrast. Check actual screen-reader navigation
|
|
66
|
+
on a device for behavior that a semantic dump cannot demonstrate.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
```sh
|
|
6
6
|
peach describe # all visible elements with styles
|
|
7
7
|
peach describe button # filter by text/role/label/testID
|
|
8
|
-
peach describe --
|
|
8
|
+
peach describe --subtree foo # only the subtree under a testID
|
|
9
9
|
peach describe --verbose # include every style property
|
|
10
10
|
|
|
11
11
|
peach find "Sign in" # by text content
|
|
@@ -19,7 +19,7 @@ peach do tap-text "Submit" # tap by text
|
|
|
19
19
|
peach do tap 196 400 # tap at coordinates
|
|
20
20
|
peach do type "hello world" # type into focused input
|
|
21
21
|
peach do type-into emailInput "a@b" # focus then type
|
|
22
|
-
peach do key return # special key (return,
|
|
22
|
+
peach do key return # special key (return, delete, space)
|
|
23
23
|
peach do scroll feed-list 0 500 # scroll a testID to absolute x/y offsets
|
|
24
24
|
peach do swipe 196 700 196 300 # swipe between screen coordinates
|
|
25
25
|
peach do long-press messageRow 800 # ms hold
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Events and settling
|
|
2
|
+
|
|
3
|
+
## Timeline
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
peach timeline start
|
|
7
|
+
peach what-happened
|
|
8
|
+
peach what-happened --since 10s
|
|
9
|
+
peach what-happened --kinds toast,fetch
|
|
10
|
+
peach what-happened --summary
|
|
11
|
+
peach what-happened --flow
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The timeline preserves transient events between CLI calls. Cheap kinds record
|
|
15
|
+
by default. Opt into high-volume kinds only when needed:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
peach timeline start scroll,gesture,text-input,reanimated,animation
|
|
19
|
+
# reproduce and read the timeline
|
|
20
|
+
peach timeline stop scroll,gesture,text-input,reanimated,animation
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Kinds include `keyboard`, `screen`, `route`, `alert`, `actionsheet`, `picker`,
|
|
24
|
+
`notification`, `toast`, `scroll`, `gesture`, `text-input`, `reanimated`,
|
|
25
|
+
`animation`, `fetch`, `console`, `app-launch`, and `shell`.
|
|
26
|
+
|
|
27
|
+
The footer reports events since the last cursor advance. `get errors` reads the
|
|
28
|
+
absolute error ring, so an old footer count can survive an error that has
|
|
29
|
+
already left that ring. Inspect the timeline detail before treating the two as
|
|
30
|
+
contradictory.
|
|
31
|
+
|
|
32
|
+
## Settling
|
|
33
|
+
|
|
34
|
+
Manual waits are useful when auto-wait timed out, a transition or network-backed
|
|
35
|
+
render is still pending, or an assertion needs a particular selector.
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
peach do settle 5
|
|
39
|
+
peach wait idle --max-ms 5000
|
|
40
|
+
peach wait idle --strict
|
|
41
|
+
peach wait selector dashboard --max-ms 10000
|
|
42
|
+
peach wait selector loading --gone
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Strict idle requires animation flags to clear; perpetual background animations
|
|
46
|
+
can prevent that. Use ordinary idle or a selector for those apps.
|
|
47
|
+
`PEACH_NO_AUTO_WAIT=1` disables auto-settling when deliberately measuring or
|
|
48
|
+
driving intermediate animation state. Do not use it to hide a completion bug.
|
|
49
|
+
|
|
50
|
+
## Gesture diagnostics
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
peach debug state scroll-input
|
|
54
|
+
peach debug state scroll-mirror
|
|
55
|
+
peach debug enable touch
|
|
56
|
+
# reproduce the drag
|
|
57
|
+
peach debug recent touch 40
|
|
58
|
+
peach debug disable touch
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The resolved scroll-input chain and published scroll registry help distinguish
|
|
62
|
+
nested ownership from momentum transfer. Responder debug events use `touch`;
|
|
63
|
+
semantic gesture events use the timeline kind `gesture`.
|
|
64
|
+
|
|
65
|
+
## Recovery
|
|
66
|
+
|
|
67
|
+
- Empty `describe`: check the pinned sim and app readiness with `peach-setup`.
|
|
68
|
+
- Multiple node matches: use a testID and inspect visibility.
|
|
69
|
+
- Zero frame capture: start `peach perf shell start` before reproducing and
|
|
70
|
+
keep the capture open through the interaction.
|
|
71
|
+
- Huge accessibility output: inspect the relevant role or node. There is no invented
|
|
72
|
+
`get a11y --issues` grading mode.
|
|
73
|
+
- Styled layout cannot capture pixels: open the app surface, dismiss system
|
|
74
|
+
overlays, and let the launch finish.
|