peachsim 0.1.1728 → 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 +68 -16
- package/cli/commands/coverage-swift.ts +112 -4
- 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 +33 -21
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +41 -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 +28 -7
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +18 -5
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- 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 +9932 -4561
- 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 +30 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6886 -3303
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +7 -2
- package/dist-lib/host/bridge-host.cjs +8513 -3085
- package/dist-lib/host/fetch-proxy-handler.cjs +19 -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 +175 -80
- 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 +209 -32
- 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 +146 -76
- package/dist-lib/native-app-identity-project.cjs +76 -39
- package/dist-lib/native-app-identity-project.mjs +76 -39
- 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 +5 -2
- 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 +138 -80
- package/dist-lib/react-native-host-modules.cjs +5 -2
- package/dist-lib/react-native-host-modules.mjs +5 -2
- 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 +41126 -36493
- package/dist-lib/swift-compile.cjs +2103 -444
- package/dist-lib/swift-compile.mjs +2025 -369
- 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 +84 -24
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6094 -2687
- package/dist-lib/vite.cjs +32 -10
- 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/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- 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 +6 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.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/native-preview-bundle.d.ts +2 -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 +15 -2
- 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 +6 -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 +14 -1
- 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 +8 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- 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 +58 -9
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +992 -98
- 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/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +5 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/native-hashes.json +3 -3
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -265
- 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 -402
- 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 -217
- 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 -285
- 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 -106
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/appPackageContract.ts +14 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +152 -60
- package/src/cli-runtime.ts +3 -0
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +10 -3
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-native-workspace.ts +211 -52
- package/src/expo-swift-host.ts +149 -123
- package/src/expo-swift-ready.ts +5 -1
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +21 -2
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +6 -1
- package/src/host/bridge-host.ts +5 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/websocket-proxy.ts +7 -2
- package/src/kotlin-host.ts +204 -30
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +7 -0
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +261 -261
- package/src/nitro-adapter.ts +118 -50
- package/src/nitro-bundle.ts +134 -96
- package/src/nitro-compile.ts +16 -6
- package/src/nitro-dependencies.ts +43 -28
- package/src/nitro-source.ts +142 -30
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +68 -21
- package/src/react-bridge-importers.ts +1 -0
- package/src/react-native-bridge-modules.ts +2 -0
- package/src/react-native-host-modules.ts +4 -1
- package/src/settingsContract.ts +37 -1
- package/src/storageSnapshotContract.ts +29 -81
- package/src/swift-compile.ts +315 -117
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +19 -13
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +18 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +51 -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-standin-emit.ts +6 -1
- package/src/swift-standins.ts +403 -19
- package/src/swift-submit.ts +17 -1
- package/src/swift-toolchain.ts +98 -23
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +82 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +15 -3
- 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
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2020 Apple Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
|
|
5
|
+
*
|
|
6
|
+
* This file contains Original Code and/or Modifications of Original Code
|
|
7
|
+
* as defined in and that are subject to the Apple Public Source License
|
|
8
|
+
* Version 2.0 (the 'License'). You may not use this file except in
|
|
9
|
+
* compliance with the License. The rights granted to you under the License
|
|
10
|
+
* may not be used to create, or enable the creation or redistribution of,
|
|
11
|
+
* unlawful or unlicensed copies of an Apple operating system, or to
|
|
12
|
+
* circumvent, violate, or enable the circumvention or violation of, any
|
|
13
|
+
* terms of an Apple operating system software license agreement.
|
|
14
|
+
*
|
|
15
|
+
* Please obtain a copy of the License at
|
|
16
|
+
* http://www.opensource.apple.com/apsl/ and read it before using this file.
|
|
17
|
+
*
|
|
18
|
+
* The Original Code and all software distributed under the License are
|
|
19
|
+
* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
|
|
20
|
+
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
|
|
21
|
+
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
|
|
23
|
+
* Please see the License for the specific language governing rights and
|
|
24
|
+
* limitations under the License.
|
|
25
|
+
*
|
|
26
|
+
* @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
#ifndef _VSOCK_H_
|
|
30
|
+
#define _VSOCK_H_
|
|
31
|
+
|
|
32
|
+
#include <sys/cdefs.h>
|
|
33
|
+
|
|
34
|
+
#include <sys/_types/_sa_family_t.h>
|
|
35
|
+
#include <sys/ucred.h>
|
|
36
|
+
#include <sys/socketvar.h>
|
|
37
|
+
|
|
38
|
+
__BEGIN_DECLS
|
|
39
|
+
|
|
40
|
+
#define VMADDR_CID_ANY (-1U)
|
|
41
|
+
#define VMADDR_CID_HYPERVISOR 0
|
|
42
|
+
#define VMADDR_CID_RESERVED 1
|
|
43
|
+
#define VMADDR_CID_HOST 2
|
|
44
|
+
|
|
45
|
+
#define VMADDR_PORT_ANY (-1U)
|
|
46
|
+
|
|
47
|
+
#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IOR('s', 209, uint32_t)
|
|
48
|
+
|
|
49
|
+
struct sockaddr_vm {
|
|
50
|
+
__uint8_t svm_len; /* total length */
|
|
51
|
+
sa_family_t svm_family; /* Address family: AF_VSOCK */
|
|
52
|
+
__uint16_t svm_reserved1;
|
|
53
|
+
__uint32_t svm_port; /* Port # in host byte order */
|
|
54
|
+
__uint32_t svm_cid; /* Address in host byte order */
|
|
55
|
+
} __attribute__((__packed__));
|
|
56
|
+
|
|
57
|
+
typedef u_quad_t vsock_gen_t;
|
|
58
|
+
|
|
59
|
+
struct xvsockpcb {
|
|
60
|
+
u_int32_t xv_len; /* length of this structure */
|
|
61
|
+
u_int64_t xv_vsockpp;
|
|
62
|
+
u_int32_t xvp_local_cid; /* local address cid */
|
|
63
|
+
u_int32_t xvp_local_port; /* local address port */
|
|
64
|
+
u_int32_t xvp_remote_cid; /* remote address cid */
|
|
65
|
+
u_int32_t xvp_remote_port; /* remote address port */
|
|
66
|
+
u_int32_t xvp_rxcnt; /* bytes received */
|
|
67
|
+
u_int32_t xvp_txcnt; /* bytes transmitted */
|
|
68
|
+
u_int32_t xvp_peer_rxhiwat; /* peer's receive buffer */
|
|
69
|
+
u_int32_t xvp_peer_rxcnt; /* bytes received by peer */
|
|
70
|
+
pid_t xvp_last_pid; /* last pid */
|
|
71
|
+
vsock_gen_t xvp_gencnt; /* vsock generation count */
|
|
72
|
+
struct xsocket xv_socket;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
struct xvsockpgen {
|
|
76
|
+
u_int32_t xvg_len; /* length of this structure */
|
|
77
|
+
u_int64_t xvg_count; /* number of PCBs at this time */
|
|
78
|
+
vsock_gen_t xvg_gen; /* generation count at this time */
|
|
79
|
+
so_gen_t xvg_sogen; /* current socket generation count */
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
__END_DECLS
|
|
83
|
+
|
|
84
|
+
#endif /* _VSOCK_H_ */
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
#pragma once
|
|
2
|
-
// the installed libc owns errno
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
2
|
+
// the installed libc owns errno, a thread-local where darwin's sys/errno.h
|
|
3
|
+
// reads __error(). its numbers are darwin's, every name of darwin's
|
|
4
|
+
// sys/errno.h at darwin's value, so this overlay only routes darwin's
|
|
5
|
+
// errno.h to it.
|
|
6
6
|
#include_next <errno.h>
|
|
7
|
-
#define EFTYPE 79
|
|
8
|
-
#define EAUTH 80
|
|
9
|
-
#define ENEEDAUTH 81
|
|
10
|
-
#define EPWROFF 82
|
|
11
|
-
#define EDEVERR 83
|
|
12
|
-
#define EBADEXEC 85
|
|
13
|
-
#define EBADARCH 86
|
|
14
|
-
#define ESHLIBVERS 87
|
|
15
|
-
#define EBADMACHO 88
|
|
16
|
-
#define ENOATTR 93
|
|
17
|
-
#define ENODATA 96
|
|
18
|
-
#define ENOSR 98
|
|
19
|
-
#define ENOSTR 99
|
|
20
|
-
#define ETIME 101
|
|
21
|
-
#define ENOPOLICY 103
|
|
22
|
-
#define EQFULL 106
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
#undef pthread_setname_np
|
|
7
7
|
#include <sys/_pthread/_pthread_types.h>
|
|
8
8
|
#include <peach/pthread.h>
|
|
9
|
+
#include <pthread/pthread_impl.h>
|
|
9
10
|
#include <pthread/qos.h>
|
|
10
11
|
|
|
11
12
|
// darwin numbers its cancel states and types its own way, keeps cleanup
|
|
@@ -31,6 +32,8 @@
|
|
|
31
32
|
#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER {{{PTHREAD_MUTEX_RECURSIVE}}}
|
|
32
33
|
|
|
33
34
|
__BEGIN_DECLS
|
|
35
|
+
// wasi hides scheduling parameters, but its attribute owns their stored value.
|
|
36
|
+
int pthread_attr_setschedparam(pthread_attr_t *__restrict, const struct sched_param *__restrict);
|
|
34
37
|
int pthread_is_threaded_np(void);
|
|
35
38
|
int pthread_main_np(void);
|
|
36
39
|
// the installed libc's pthread_t is an integer, so it takes no nullability.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// darwin's setjmp.h over the installed libc's. setjmp, longjmp, _setjmp and
|
|
2
|
+
// _longjmp are the compiler backend's under -mllvm -wasm-enable-sjlj, which
|
|
3
|
+
// every native target passes; the backend lowers those direct calls by name
|
|
4
|
+
// and -lsetjmp carries the four primitives. sigsetjmp and siglongjmp add the
|
|
5
|
+
// real emulated signal mask around them.
|
|
6
|
+
//
|
|
7
|
+
// sigsetjmp must be a macro: only a setjmp call in the caller's own
|
|
8
|
+
// translation unit captures the caller's machine state. a plain function
|
|
9
|
+
// would capture its own frame, which has returned by the time siglongjmp
|
|
10
|
+
// runs. statement expressions evaluate env and the value operand exactly
|
|
11
|
+
// once, as the native functions do. the mask lives in the musl-ABI __ss
|
|
12
|
+
// words of jmp_buf, which nothing else on this target uses, and __fl records
|
|
13
|
+
// whether this buffer saved one, as musl does.
|
|
14
|
+
//
|
|
15
|
+
// boundary, matching upstream WASI: only direct calls lower. indirect uses
|
|
16
|
+
// fail loudly: the backend refuses address-taken setjmp, and every other
|
|
17
|
+
// address-taking fails at link time, as it does today. there is no
|
|
18
|
+
// addressable setjmp symbol on this target or upstream. direct calls have
|
|
19
|
+
// full native semantics, proved against the macOS oracle.
|
|
20
|
+
#ifndef __peach_darwin_setjmp_h
|
|
21
|
+
#define __peach_darwin_setjmp_h
|
|
22
|
+
|
|
23
|
+
#include_next <setjmp.h>
|
|
24
|
+
|
|
25
|
+
#ifdef __cplusplus
|
|
26
|
+
extern "C" {
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
// mask round-trip through the real sigprocmask provider. declared here so
|
|
30
|
+
// this header needs no signal types; defined beside the signal provider.
|
|
31
|
+
void __peach_sigmask_save(unsigned long *slot);
|
|
32
|
+
void __peach_sigmask_restore(const unsigned long *slot);
|
|
33
|
+
|
|
34
|
+
#ifdef __cplusplus
|
|
35
|
+
}
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
#undef sigsetjmp
|
|
39
|
+
#define sigsetjmp(env, savesigs) \
|
|
40
|
+
({ \
|
|
41
|
+
__typeof__((env)[0]) *_e = &(env)[0]; \
|
|
42
|
+
int _s = (savesigs); \
|
|
43
|
+
_s ? (__peach_sigmask_save(_e->__ss), _e->__fl = 1, setjmp(_e)) \
|
|
44
|
+
: (_e->__fl = 0, setjmp(_e)); \
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
#undef siglongjmp
|
|
48
|
+
#define siglongjmp(env, val) \
|
|
49
|
+
({ \
|
|
50
|
+
__typeof__((env)[0]) *_e = &(env)[0]; \
|
|
51
|
+
int _v = (val); \
|
|
52
|
+
_e->__fl ? (__peach_sigmask_restore((const unsigned long *)_e->__ss), \
|
|
53
|
+
longjmp(_e, _v)) \
|
|
54
|
+
: longjmp(_e, _v); \
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
#endif
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
// darwin's resource limit numbers and record, and the rusage_info_t handle,
|
|
3
3
|
// which the installed libc leaves out because wasi has no resource limits.
|
|
4
|
-
// getrlimit and setrlimit bind to
|
|
5
|
-
//
|
|
4
|
+
// getrlimit and setrlimit bind to the descriptor table's darwin provider.
|
|
5
|
+
// only RLIMIT_NOFILE has a resource owner in this single wasm instance.
|
|
6
6
|
#include_next <sys/resource.h>
|
|
7
7
|
#include <sys/cdefs.h>
|
|
8
8
|
#include <stdint.h>
|
package/sdk/native-hashes.json
CHANGED
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
{
|
|
67
67
|
"path": "System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes",
|
|
68
68
|
"nativeSha256": "025956c54d34391f2c422b736710641a860694436f5b8a34d719ade2d9ed3220",
|
|
69
|
-
"sha256": "
|
|
70
|
-
"change": "
|
|
71
|
-
"reason": "the
|
|
69
|
+
"sha256": "2ce4e93a7ca3ff6438afa189c043b366a226165afb5b90dbd85827996909ce8c",
|
|
70
|
+
"change": "hide NSArray arrayWithObjects:count: from Swift, nest FileManager sync control and URLSession delayed request and multipath enums, import networking singleton and selector names, and hide native members whose Swift implementation supplies the existing typed declaration",
|
|
71
|
+
"reason": "the Objective-C header owns the networking classes and categories; their Swift implementation must use the native imported names without the obsolete moved-type aliases or duplicate Swift-owned session classes"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"path": "wasm/include/AvailabilityInternal.h",
|
package/skills/contrast/SKILL.md
CHANGED
|
@@ -30,6 +30,7 @@ automation, inspecting the render tree, and managing sims.
|
|
|
30
30
|
| `peach storage` | manage guest app storage and launch profiles |
|
|
31
31
|
| `peach permissions` | inspect and change simulated operating-system permissions |
|
|
32
32
|
| `peach location` | control the simulator's simulated device location |
|
|
33
|
+
| `peach push` | deliver an APNs payload to an installed app |
|
|
33
34
|
| `peach state` | capture the current app state in one call |
|
|
34
35
|
| `peach reset` | clear the current guest app and relaunch it |
|
|
35
36
|
| `peach camera` | control the simulator camera source |
|
|
@@ -106,11 +107,11 @@ skills for working with the Peach native preview engine:
|
|
|
106
107
|
|
|
107
108
|
| skill | description |
|
|
108
109
|
| --- | --- |
|
|
109
|
-
| `/peach-debug` |
|
|
110
|
-
| `/peach-perf` |
|
|
111
|
-
| `/peach-setup` |
|
|
112
|
-
| `/peach-test` | Run
|
|
113
|
-
| `/peach-visual` |
|
|
110
|
+
| `/peach-debug` | 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. |
|
|
111
|
+
| `/peach-perf` | Diagnose and optimize measured scroll jank, dropped frames, animation latency, idle CPU, or memory growth in an app running in Peach. Use for performance profiling and before/after comparisons; use peach-debug for general rendering or interaction bugs and peach-setup for connection problems. |
|
|
112
|
+
| `/peach-setup` | Connect Peach to a React Native app's dev server or bundle, select the correct simulator, or recover a missing runtime or bridge connection. Use for initial setup and connection failures; skip when peach describe already returns the intended app tree. |
|
|
113
|
+
| `/peach-test` | Run or author automated React Native app flows in Peach using Maestro YAML, or run an existing Detox/Jest suite with the Peach driver. Use for test execution, live flow recording, and runner configuration; use peach-debug for investigating app failures. |
|
|
114
|
+
| `/peach-visual` | Compare static rendering in Peach with native iOS or an app baseline using lossless screenshots and pixel diffs. Use for font metrics, gradients, shadows, blur, colors, or image fidelity; use peach-debug for tree/props and peach-perf for motion or frame timing. |
|
|
114
115
|
|
|
115
116
|
## automatic settling
|
|
116
117
|
|
|
@@ -1,307 +1,110 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: peach-debug
|
|
3
|
-
|
|
4
|
-
description: Debug rendering, animation, gesture, performance, and accessibility issues in a React Native app under Peach. Use when an animation janks, snaps, or stalls, a gesture misbehaves, scrolling drops frames, the tree or props look wrong, or a screen reader cannot reach something. Use the peach CLI first.
|
|
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.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
6
|
# Peach debug
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
event-order, or correctness question. for pixel-level rendering fidelity
|
|
14
|
-
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`.
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
> `/peach-setup` first.
|
|
18
|
-
|
|
19
|
-
## principle — drive the CLI, don't probe by hand
|
|
20
|
-
|
|
21
|
-
for any rendering, animation, gesture, or interaction bug, reach for the
|
|
22
|
-
peach CLI debug tooling **first** — `describe` and `find` to read the
|
|
23
|
-
tree, `debug snapshot` + `debug diff` to capture before/after, `debug
|
|
24
|
-
recent` on a channel and `perf shell` for frame-by-frame stats, and the
|
|
25
|
-
timeline for "what just happened". **do not** debug these by eye with
|
|
26
|
-
screenshots, sprinkle `console.log` through the render path, or spin up a
|
|
27
|
-
one-off browser-automation script. visual rendering uses canvas; the
|
|
28
|
-
accessibility mirror exposes semantic DOM. a
|
|
29
|
-
CLI capture is reproducible, diffable, and shareable in a way a screenshot
|
|
30
|
-
never is.
|
|
31
|
-
|
|
32
|
-
if the existing CLI tools don't capture the issue cleanly — the animation
|
|
33
|
-
is too fast to read, the signal you need isn't on any channel, the
|
|
34
|
-
interaction spans a boundary the timeline doesn't section — the right move
|
|
35
|
-
is to **improve the debug tooling**, not to paper over it with throwaway
|
|
36
|
-
probes. add a durable, channel-gated, start/stop instrument that's off by
|
|
37
|
-
default (so baseline performance is untouched) and emits exactly the signal
|
|
38
|
-
you're chasing. a good capture command is one-shot reproducible, every
|
|
39
|
-
agent after you benefits from it, and the same capture can become a
|
|
40
|
-
regression test. a pile of ad-hoc logs helps no one and gets deleted.
|
|
41
|
-
|
|
42
|
-
## route in
|
|
43
|
-
|
|
44
|
-
- "my app renders wrong / wrong props / wrong tree" → [debugging](#branch--debugging)
|
|
45
|
-
- "feels slow / drops frames / janks on scroll" → [performance](#branch--performance)
|
|
46
|
-
- "screen reader can't find this / wrong label / tap target too small" → [accessibility](#branch--accessibility)
|
|
47
|
-
- "I want to see what just happened" (ephemeral toast, async navigation,
|
|
48
|
-
fetch + alert sequence) → [the timeline](#the-timeline-what-happened)
|
|
49
|
-
- "I want pixel-level fidelity to iOS" → load `/peach-visual`
|
|
50
|
-
- "I want to author a test" → load `/peach-test`
|
|
51
|
-
|
|
52
|
-
## anti-patterns (apply to every branch)
|
|
53
|
-
|
|
54
|
-
- **`a1`/`a2`/`b0` style ids mean Peach sims, never browser tabs.** when a user
|
|
55
|
-
says "look at a3", that's the `peach list` sim id. do not open chrome
|
|
56
|
-
MCP unless the user explicitly says "use chrome". use Peach's node-tree
|
|
57
|
-
inspection for the visual surface and its accessibility tools for semantics.
|
|
58
|
-
- **the CLI auto-settles. don't add `sleep`.** every read waits up to
|
|
59
|
-
1800 ms for in-flight transitions to start; every write polls layout
|
|
60
|
-
hash until stable. if a read keeps racing its write, the fix is **never**
|
|
61
|
-
a blind `sleep` — it's `wait selector`, `wait ready`, `wait idle`, or
|
|
62
|
-
fixing the underlying animation-completion signal.
|
|
63
|
-
- **prefer `--testid` over text matching.** text drifts under i18n, copy
|
|
64
|
-
changes, and duplicate strings. add `testID` during implementation and
|
|
65
|
-
query against it.
|
|
66
|
-
- **pin a sim once.** if more than one is live, an unpinned command
|
|
67
|
-
refuses to choose. run `peach use <id>` at the start of the workflow.
|
|
68
|
-
- **keep one sim and reuse its browser tab.** before `peach open`, run
|
|
69
|
-
`peach list --all`. pin the target and use `peach do reload`; a plain
|
|
70
|
-
`peach open <target>` also navigates the saved sim. reserve `--new` for a
|
|
71
|
-
genuinely concurrent sim. repeated browser trees consume memory and CPU on a
|
|
72
|
-
shared machine.
|
|
73
|
-
- **`debug eval` is an escape hatch.** if a top-level command feels
|
|
74
|
-
broken or missing, file an issue — every agent after you benefits from
|
|
75
|
-
a better CLI, not a pile of ad-hoc scripts.
|
|
76
|
-
- **sweep `get errors` and `get requests` after every repro.** the
|
|
77
|
-
one-line summary tells you the count grew; you still have to *look at
|
|
78
|
-
them*. a "fixed" behavior with a new console error is not fixed.
|
|
79
|
-
- **"found a testID" is not done.** done is: reliable repro + identified
|
|
80
|
-
root cause (specific node + prop, or event + handler) + verified fix.
|
|
81
|
-
- **an empty `find --pressable` is not proof there is no affordance.** it
|
|
82
|
-
lists registered touch responders, and a tamagui `styled()` view whose
|
|
83
|
-
`onPress` comes from the call site is tappable without ever appearing there.
|
|
84
|
-
before concluding a screen has no way out, corroborate with `get a11y` or an
|
|
85
|
-
actual `do tap-text`.
|
|
86
|
-
- **after an unexplained restart, re-establish which sim you are on.** a sim
|
|
87
|
-
that reconnected, or a dev stack that came back on a port another process now
|
|
88
|
-
holds, is a fresh instrument; a port answering 200 says something is
|
|
89
|
-
listening, not that it is yours. every Peach command prints its own `→ <sim>`
|
|
90
|
-
line, so reading that line is the check.
|
|
91
|
-
|
|
92
|
-
## the timeline ("what happened")
|
|
93
|
-
|
|
94
|
-
between two CLI calls, things happen invisibly — toasts flash, keyboards
|
|
95
|
-
open and close, screens push and pop, alerts fire and dismiss, async
|
|
96
|
-
fetches resolve. the timeline records them so you can ask "what
|
|
97
|
-
happened" instead of racing the UI with `find`.
|
|
98
|
-
|
|
99
|
-
```sh
|
|
100
|
-
peach timeline start # arm recording (cheap kinds default-on)
|
|
101
|
-
# reproduce the flow
|
|
102
|
-
peach what-happened # events since the last CLI call
|
|
103
|
-
peach what-happened --since 10s # absolute window
|
|
104
|
-
peach what-happened --kinds toast,fetch # filter to a few kinds
|
|
105
|
-
peach what-happened --summary # one-line counts
|
|
106
|
-
peach what-happened --flow # section events by screen/route
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
semantic kinds the timeline understands: `keyboard`, `screen`, `route`,
|
|
110
|
-
`alert`, `actionsheet`, `picker`, `notification`, `toast`, `scroll`,
|
|
111
|
-
`gesture`, `text-input`, `reanimated`, `animation`, `fetch`, `console`,
|
|
112
|
-
`app-launch`, `shell`. cheap kinds record by default; heavier kinds
|
|
113
|
-
(scroll, gesture, text-input, reanimated, animation) opt in via
|
|
114
|
-
`peach timeline start scroll,gesture,…`.
|
|
115
|
-
|
|
116
|
-
every other CLI command also prints a one-line footer for events since
|
|
117
|
-
the last call — that's the headline indicator. when the footer is empty,
|
|
118
|
-
there's nothing new to look at; when it says `since last: 1 error · 1
|
|
119
|
-
toast · 1 screen push`, run `peach what-happened` to see the detail.
|
|
120
|
-
|
|
121
|
-
> reach for the timeline first when the question involves *something
|
|
122
|
-
> that appeared briefly and disappeared*. it's faster than a screenshot
|
|
123
|
-
> and tells you the duration too.
|
|
124
|
-
|
|
125
|
-
## automatic settling — when you actually need a manual wait
|
|
126
|
-
|
|
127
|
-
every CLI command already participates in a two-phase settle. you only
|
|
128
|
-
need a manual wait when:
|
|
129
|
-
|
|
130
|
-
1. the CLI explicitly printed `⚠ auto-wait timed out after Nms (<what
|
|
131
|
-
still moved>) — next command may see mid-animation state` *and* your next read depends on
|
|
132
|
-
the animation finishing.
|
|
133
|
-
2. the transition is longer than ~800 ms (full stack navigation,
|
|
134
|
-
crossfades, video first-frame, network-backed render).
|
|
135
|
-
3. you want `--strict` settle, which also requires animation flags to
|
|
136
|
-
clear — only safe for apps with no perpetual background animation
|
|
137
|
-
(no pulsing dots, no shimmer, no looping Lottie).
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
peach do settle 5 # wait up to 5s for layout stability
|
|
141
|
-
peach wait idle --max-ms 5000 # same thing under the `wait` verb
|
|
142
|
-
peach wait idle --strict # also require animation flags clear
|
|
143
|
-
peach do tap play --no-wait # skip auto-settle on one command
|
|
144
|
-
PEACH_NO_AUTO_WAIT=1 peach ... # disable auto-settle for a lane
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
## branch — debugging
|
|
148
|
-
|
|
149
|
-
the playbook for "wrong tree / wrong props / wrong handler":
|
|
13
|
+
## Reproduce and locate the cause
|
|
150
14
|
|
|
151
15
|
```sh
|
|
152
|
-
peach
|
|
153
|
-
peach
|
|
154
|
-
peach
|
|
16
|
+
peach list
|
|
17
|
+
peach use <id>
|
|
18
|
+
peach describe
|
|
19
|
+
peach get errors 5
|
|
20
|
+
peach find --testid <node>
|
|
155
21
|
peach debug snapshot before
|
|
156
|
-
# reproduce
|
|
22
|
+
# reproduce with peach do actions
|
|
157
23
|
peach debug snapshot after
|
|
158
|
-
peach debug diff before after
|
|
159
|
-
peach what-happened
|
|
24
|
+
peach debug diff before after
|
|
25
|
+
peach what-happened
|
|
26
|
+
peach get requests 5
|
|
160
27
|
```
|
|
161
28
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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.
|
|
165
33
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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.
|
|
169
39
|
|
|
170
|
-
|
|
171
|
-
|
|
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.
|
|
172
43
|
|
|
173
|
-
|
|
174
|
-
peach debug state scroll-input
|
|
175
|
-
peach debug state scroll-mirror
|
|
176
|
-
```
|
|
44
|
+
## Events and gestures
|
|
177
45
|
|
|
178
|
-
for
|
|
179
|
-
|
|
180
|
-
```sh
|
|
181
|
-
peach debug enable touch
|
|
182
|
-
# reproduce the drag
|
|
183
|
-
peach debug recent touch 40
|
|
184
|
-
peach debug disable touch
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
`gesture` is a timeline kind; responder debug events use `touch`.
|
|
188
|
-
|
|
189
|
-
reading `describe` output:
|
|
190
|
-
|
|
191
|
-
```
|
|
192
|
-
[button] "Sign in" #loginButton @(0,347) 402x44 [bg:#006AFF fg:#fff] (tap)
|
|
193
|
-
<text> "Forgot?" @(341,287) 55x28 [fg:#666 fontSize:14]
|
|
194
|
-
```
|
|
195
|
-
|
|
196
|
-
format: `[type] "text" #testID @(x,y) WxH [styles] (flags)`. coordinates
|
|
197
|
-
are points (CSS pixels), origin top-left, parent-relative.
|
|
198
|
-
|
|
199
|
-
for transitions, alerts, native UI, or anything spanning the shell ↔
|
|
200
|
-
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:
|
|
201
48
|
|
|
202
49
|
```sh
|
|
203
50
|
peach timeline start
|
|
204
|
-
# reproduce
|
|
51
|
+
# reproduce
|
|
52
|
+
peach what-happened --since 10s
|
|
205
53
|
peach what-happened --kinds shell,alert,screen,animation
|
|
206
54
|
```
|
|
207
55
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
2. root cause is identified (specific node + prop, or event + handler,
|
|
212
|
-
not "something in the navigation stack")
|
|
213
|
-
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.
|
|
214
59
|
|
|
215
|
-
|
|
60
|
+
For closely timed inputs, run one ordered engine batch:
|
|
216
61
|
|
|
217
62
|
```sh
|
|
218
|
-
peach
|
|
219
|
-
# reproduce the slow interaction
|
|
220
|
-
peach perf shell stop # full report, including worst frames
|
|
221
|
-
peach perf shell stop --json # machine-readable summary
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
`perf shell` output:
|
|
225
|
-
|
|
226
|
-
```
|
|
227
|
-
frames: 847
|
|
228
|
-
total: 14123ms
|
|
229
|
-
avg: 16.7ms
|
|
230
|
-
max: 42ms (⚠ dropped frames)
|
|
231
|
-
p95: 22.3ms
|
|
232
|
-
layout frames: 123
|
|
233
|
-
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
|
|
234
64
|
```
|
|
235
65
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
budget. **p95 >20 ms is visible jank for a scrolling surface.**
|
|
239
|
-
|
|
240
|
-
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:
|
|
241
68
|
|
|
242
69
|
```sh
|
|
243
|
-
peach
|
|
244
|
-
|
|
70
|
+
peach debug enable touch
|
|
71
|
+
# reproduce
|
|
72
|
+
peach debug recent touch 40
|
|
73
|
+
peach debug disable touch
|
|
245
74
|
```
|
|
246
75
|
|
|
247
|
-
|
|
76
|
+
For nested scroll ownership, compare `peach debug state scroll-input` with
|
|
77
|
+
`peach debug state scroll-mirror`.
|
|
248
78
|
|
|
249
|
-
|
|
250
|
-
| --- | --- | --- |
|
|
251
|
-
| scroll jank | layout firing during scroll | `debug enable layout` + `debug recent layout 40` |
|
|
252
|
-
| anim stutter | `Animated.Value` on `width`/`height` | switch to `transform: [{ scale }]` or `translate` |
|
|
253
|
-
| first-tap lag | font / image still loading | `get requests` + `debug state image` |
|
|
254
|
-
| memory growth | live animation drivers not cleaned up | `debug state animations` |
|
|
255
|
-
| slow initial render | many text measurements | `debug recent text` on first paint |
|
|
79
|
+
## Wait for state
|
|
256
80
|
|
|
257
|
-
|
|
258
|
-
|
|
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:
|
|
259
84
|
|
|
260
85
|
```sh
|
|
261
|
-
peach
|
|
262
|
-
|
|
263
|
-
peach
|
|
264
|
-
peach debug recent render 20 # last 20 draw passes
|
|
265
|
-
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
|
|
266
89
|
```
|
|
267
90
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
watch out for:
|
|
273
|
-
|
|
274
|
-
- **dynamic format strings bust the text-measurement cache.** `${count}
|
|
275
|
-
messages` re-measures every change — render the number and the word as
|
|
276
|
-
separate `<Text>` nodes.
|
|
277
|
-
- **`--strict` settle hangs forever on perpetual animation.** anything
|
|
278
|
-
with a pulsing dot or looping Lottie will never go quiet under
|
|
279
|
-
`--strict`. use plain `wait idle` there.
|
|
280
|
-
- **p95 over a single run is noise.** take three runs minimum.
|
|
281
|
-
|
|
282
|
-
## branch — accessibility
|
|
283
|
-
|
|
284
|
-
Read [accessibility](references/accessibility.md) for contrast capture, labels,
|
|
285
|
-
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.
|
|
286
94
|
|
|
287
|
-
##
|
|
95
|
+
## Choose a specialized investigation
|
|
288
96
|
|
|
289
|
-
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
-
|
|
294
|
-
first, or the capture window closed before any frame committed.
|
|
295
|
-
- **`get a11y` returns 100+ items** — narrow with `find --role`,
|
|
296
|
-
`find --pressable`, or `find --no-label`; the a11y tree is descriptive and
|
|
297
|
-
intentionally does not invent an `--issues` grading mode.
|
|
298
|
-
- **styled layout cannot capture pixels** — open a tenant app, dismiss system
|
|
299
|
-
overlays, and let the launch transition finish before retrying.
|
|
300
|
-
- **timeline footer keeps showing 1 error but `get errors` is empty** —
|
|
301
|
-
the footer reads "since last cursor advance"; `get errors` is absolute.
|
|
302
|
-
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`.
|
|
303
102
|
|
|
304
|
-
|
|
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.
|
|
305
106
|
|
|
306
|
-
|
|
307
|
-
|
|
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.
|