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,57 @@
|
|
|
1
|
+
# Render counters and memory
|
|
2
|
+
|
|
3
|
+
Read the compositor block for guest-app rendering. Read shell statistics for
|
|
4
|
+
shell work. An app can paint hundreds of times while shell raster counters
|
|
5
|
+
correctly remain zero.
|
|
6
|
+
|
|
7
|
+
## Cache activity
|
|
8
|
+
|
|
9
|
+
| Counter | Interpretation |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| Boundary records / replays | Replays should dominate for stable cached content during scroll |
|
|
12
|
+
| Why recorded: `invalidated` | Content was dirtied; look for unnecessary style writes or commits |
|
|
13
|
+
| Why recorded: `moved` | Record origin shifted |
|
|
14
|
+
| Why recorded: `first-record` | Cold boundary; examine warm-up and idle pre-recording |
|
|
15
|
+
| Pre-recorded boundaries | Content prepared while idle; compare first-interaction cost with warm cost |
|
|
16
|
+
| Raster promotions / blits | Candidates became textures and were reused |
|
|
17
|
+
| Raster skips | The first eligibility gate each candidate failed |
|
|
18
|
+
| Draw calls | Whether the cached content is dense enough for rasterization to pay off |
|
|
19
|
+
|
|
20
|
+
Before widening a rejection gate, read `also fail a later gate`. A large
|
|
21
|
+
first-failure bucket may be blocked entirely by another gate, so changing the
|
|
22
|
+
first gate can move counts without promoting anything. Even successful blits
|
|
23
|
+
can consume GPU memory without reducing frame time. Compare the measured cost.
|
|
24
|
+
|
|
25
|
+
## Existing performance mechanisms
|
|
26
|
+
|
|
27
|
+
| Mechanism | Evidence to inspect |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| Demand-gated frames | Idle skipped ticks and lack of unnecessary paints |
|
|
30
|
+
| Per-surface dirty scoping | Only the changed surface repaints |
|
|
31
|
+
| Dirty layout and text caching | Steady transform/color/opacity frames avoid layout and repeated shaping |
|
|
32
|
+
| Boundary picture caching | Replays dominate records for unchanged content |
|
|
33
|
+
| Idle pre-recording | Cold record work moves before the first interaction |
|
|
34
|
+
| Damage rectangles | Small changes avoid repainting unrelated pixels |
|
|
35
|
+
| Raster caching | Promotions, blits, draw density, memory, and lower work cost together |
|
|
36
|
+
| Input coalescing and clock gating | Bounded message activity at rest and during gestures |
|
|
37
|
+
| Worker frame clocks | Display/timer ticks and paint cadence during page-thread stalls |
|
|
38
|
+
|
|
39
|
+
Scroll reuse must preserve floating chrome and translucent backdrops. Moving a
|
|
40
|
+
whole-screen rectangle is not equivalent to moving a scroll subtree.
|
|
41
|
+
|
|
42
|
+
## Memory interpretation
|
|
43
|
+
|
|
44
|
+
A profile can suppress GPU cache cleanup, so its cache snapshot alone cannot
|
|
45
|
+
establish a leak. Capture a fresh compositor snapshot after profiling stops,
|
|
46
|
+
including before/after cleanup counters. Distinguish GPU Context and Recorder
|
|
47
|
+
budgets; combining them can hide one over-limit cache.
|
|
48
|
+
|
|
49
|
+
An over-limit Context needs evidence of a fresh submitted-work cleanup attempt
|
|
50
|
+
and completion. An over-limit Recorder also needs a fresh cleanup. Distinguish
|
|
51
|
+
locked resources from purgeable overage. A zero-purgeable-byte snapshot can
|
|
52
|
+
still conceal a returned-resource queue awaiting maintenance.
|
|
53
|
+
|
|
54
|
+
At the app level, correlate repeated navigation with live objects, active
|
|
55
|
+
animations, requests, and memory. Check for remount or polling loops. Preserve
|
|
56
|
+
upstream semantics when repairing animation work; do not replace valid worklet
|
|
57
|
+
behavior with per-frame React commits or an app-specific fast path.
|
|
@@ -1,249 +1,98 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: peach-setup
|
|
3
|
-
|
|
4
|
-
description: Get Peach connected to your React Native app with no project setup
|
|
3
|
+
description: 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.
|
|
5
4
|
---
|
|
6
5
|
|
|
7
|
-
# Peach
|
|
6
|
+
# Connect an app to Peach
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
after opening and pinning a sim, run this whenever you finish a turn and can
|
|
12
|
-
accept feedback from the simulator:
|
|
13
|
-
|
|
14
|
-
```sh
|
|
15
|
-
peach agent listen
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
it returns one pending inspect message immediately, or waits for the next one,
|
|
19
|
-
then exits. handle the request and run it again. the printed context is meant
|
|
20
|
-
to be sufficient for the usual edit. only open the saved `describe.txt` when
|
|
21
|
-
you need more screen context, `inspect.json` for exact inspect data, or the
|
|
22
|
-
screenshot when color, clipping, spacing, or another visual detail matters.
|
|
23
|
-
`peach agent info <message-id>` prints the complete message and artifact paths.
|
|
24
|
-
|
|
25
|
-
you want to drive a React Native app with Peach from the CLI. this skill
|
|
26
|
-
takes you from a running development server to a connected, pinned sim that
|
|
27
|
-
every other Peach skill assumes exists. Peach requires no project setup or per-app
|
|
28
|
-
install. if
|
|
29
|
-
`peach describe` already
|
|
30
|
-
returns a tree, you're past this skill — load `/peach-debug` for
|
|
31
|
-
debugging or `/peach-test` for writing tests.
|
|
32
|
-
|
|
33
|
-
## anti-patterns (read first)
|
|
34
|
-
|
|
35
|
-
- **never `peach claim --force` a sim held by another CLI.** the lease
|
|
36
|
-
exists for a reason. forcing strands the other agent and corrupts the
|
|
37
|
-
bridge state. use `peach open --new` to start a fresh sim instead.
|
|
38
|
-
- **don't switch sims mid-investigation.** pin once with `peach use
|
|
39
|
-
<id>` and keep it pinned. an unpinned command refuses to choose when more
|
|
40
|
-
than one driveable sim is live.
|
|
41
|
-
- **an empty `peach list` is not "broken Peach".** it usually means the
|
|
42
|
-
daemon is down, the dev server port is wrong, or the runtime is missing.
|
|
43
|
-
walk the recovery checklist before reinstalling.
|
|
44
|
-
- **keep one sim for your whole session.** the first `peach open <port>`
|
|
45
|
-
launches the simulator window: the native desktop app on Apple silicon macOS
|
|
46
|
-
and Linux x64, otherwise Chrome for Testing with an isolated profile. later opens reuse the
|
|
47
|
-
saved sim and navigate it in place. use `peach do reload` when the target
|
|
48
|
-
has not changed:
|
|
49
|
-
|
|
50
|
-
```sh
|
|
51
|
-
peach open 8086 # first call creates your isolated sim
|
|
52
|
-
peach open 8090 # same sim, different app
|
|
53
|
-
peach do reload # same sim, same app
|
|
54
|
-
peach close <id> # dispose it when you are done
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
`--new`, `--profile`, and `--ephemeral` create another isolated browser
|
|
58
|
-
tree. use them only when separate storage or a genuinely concurrent sim is
|
|
59
|
-
required. repeated new trees consume enough memory and CPU to starve other
|
|
60
|
-
work on a shared machine. `--ephemeral` also boots on default settings and
|
|
61
|
-
keeps its setting changes to itself, so use it for proof captures.
|
|
62
|
-
- **pin the sim before driving it.** `peach open` records the new sim for the
|
|
63
|
-
current CLI identity. read its id and pin it explicitly before a longer flow:
|
|
64
|
-
|
|
65
|
-
```sh
|
|
66
|
-
peach open 8086
|
|
67
|
-
peach list
|
|
68
|
-
peach use <id>
|
|
69
|
-
peach describe --sim <id>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
- **never retry-loop `peach open` against a wedged or slow stack.** a
|
|
73
|
-
connect timeout means diagnose the stack. do not retry. if the first launch
|
|
74
|
-
never connects, each retry can create another browser tree before there is a
|
|
75
|
-
saved sim to reuse. verify the development server and Peach runtime, then
|
|
76
|
-
retry once after fixing the cause.
|
|
77
|
-
|
|
78
|
-
## the simulator window
|
|
79
|
-
|
|
80
|
-
on Apple silicon macOS and Linux x64, `peach open` shows the app in the native
|
|
81
|
-
desktop app, which is faster than the browser. setup installs it, and on a Mac
|
|
82
|
-
the first `peach open` installs it if it is missing. do not pass a driver flag
|
|
83
|
-
for the user's own viewing.
|
|
84
|
-
|
|
85
|
-
the Linux desktop app needs a desktop session; its `.deb` installer uses
|
|
86
|
-
`sudo apt-get install`. `peach desktop install --native` on Linux installs the
|
|
87
|
-
standalone headless host instead of the desktop app. Intel Mac and Linux arm64
|
|
88
|
-
use the browser. `peach open 8081 --driver playwright --headed` explicitly opens
|
|
89
|
-
a browser window. a yellow "GPU disabled" item in the browser simulator's menu
|
|
90
|
-
bar means it is drawing without a GPU and will be slow; move the user to the
|
|
91
|
-
desktop app.
|
|
92
|
-
|
|
93
|
-
the background service below keeps the bridge ready for either window and is a
|
|
94
|
-
separate optional choice.
|
|
95
|
-
|
|
96
|
-
## first move
|
|
8
|
+
Peach can open a running app without per-project installation. Start the app's
|
|
9
|
+
usual development server, then select it explicitly:
|
|
97
10
|
|
|
98
11
|
```sh
|
|
99
|
-
peach
|
|
100
|
-
peach
|
|
101
|
-
peach
|
|
102
|
-
peach
|
|
103
|
-
peach
|
|
104
|
-
peach
|
|
105
|
-
peach
|
|
12
|
+
peach doctor --json
|
|
13
|
+
peach open 8081
|
|
14
|
+
peach list
|
|
15
|
+
peach use <id>
|
|
16
|
+
peach describe
|
|
17
|
+
peach get errors 5
|
|
18
|
+
peach get requests 5
|
|
106
19
|
```
|
|
107
20
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
declined it during onboarding, `peach daemon install` is the direct way to enable
|
|
112
|
-
it. CI does not need or install the service.
|
|
21
|
+
Run `doctor` from the app root. Summarize partial, unsupported, unknown, and
|
|
22
|
+
version-mismatched packages; its aggregate score is not a pass/fail gate.
|
|
23
|
+
A connected tree proves setup, not that every native API works.
|
|
113
24
|
|
|
114
|
-
|
|
115
|
-
scripts should use `peach open <port-or-url>` so the target is explicit.
|
|
116
|
-
|
|
117
|
-
if you do not know the port, run `peach open` with no target and pick from
|
|
118
|
-
the detected dev servers. for hosted or unusual targets, pass the URL
|
|
119
|
-
explicitly. a built bundle file needs no dev server; `peach help open` shows
|
|
120
|
-
the build command for One, Expo and React Native:
|
|
25
|
+
## Select the target
|
|
121
26
|
|
|
122
27
|
```sh
|
|
123
|
-
peach open 8081
|
|
124
|
-
peach open https://my-app.local
|
|
125
|
-
peach open ./dist/ios.js
|
|
28
|
+
peach open 8081
|
|
29
|
+
peach open https://my-app.local
|
|
30
|
+
peach open ./dist/ios.js
|
|
126
31
|
```
|
|
127
32
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
- the same sim id appears in `peach describe`, `peach find`, and
|
|
133
|
-
every subsequent command
|
|
134
|
-
- `peach get errors 5` and `peach get requests 5` are quiet (or the
|
|
135
|
-
warnings are ones you understand)
|
|
136
|
-
- the compatibility scan's partial, unsupported, unknown, and version-mismatched
|
|
137
|
-
packages have been summarized without treating its aggregate score as a pass/fail gate
|
|
138
|
-
|
|
139
|
-
## the app's own native code
|
|
140
|
-
|
|
141
|
-
an app's own native modules and views (a local Expo module, a
|
|
142
|
-
`requireNativeComponent` view written in Swift or Kotlin) have no Peach
|
|
143
|
-
implementation until the app supplies one. when the scan or the running app
|
|
144
|
-
shows one missing (an empty view where content belongs, a "native module not
|
|
145
|
-
found" error), add it to `peach.config.ts` at the app root:
|
|
146
|
-
|
|
147
|
-
```ts
|
|
148
|
-
import { defineConfig } from 'peachsim/config'
|
|
149
|
-
|
|
150
|
-
export default defineConfig({
|
|
151
|
-
packages: {
|
|
152
|
-
// keyed by the package the names live in; `peach doctor` prints it
|
|
153
|
-
'my-app': {
|
|
154
|
-
modules: { MyAppModule: './peach/my-app-module.ts' },
|
|
155
|
-
views: {
|
|
156
|
-
RNBalanceLabel: './peach/BalanceLabel.tsx', // requireNativeComponent name
|
|
157
|
-
MyModule_StatusView: './peach/StatusView.tsx', // requireNativeView('MyModule', 'StatusView')
|
|
158
|
-
},
|
|
159
|
-
},
|
|
160
|
-
'react-native-acme-analytics': 'noop', // every native name it asks for is inert
|
|
161
|
-
},
|
|
162
|
-
})
|
|
163
|
-
```
|
|
33
|
+
If the port is unknown, `peach open` without a target offers detected dev servers.
|
|
34
|
+
The app port is the positional argument. `--port` selects the WebSocket bridge,
|
|
35
|
+
so `peach open --port 8081` does not select an app on port 8081. Use
|
|
36
|
+
`peach open --help` for build inputs and launch options.
|
|
164
37
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
served to `TurboModuleRegistry`, `NativeModules` and Expo's
|
|
169
|
-
`requireNativeModule`. a third-party package's stub may already be
|
|
170
|
-
published: an installed `peach-stub-<package>` answers with no config line. a
|
|
171
|
-
file may import other project files by relative path, so a large view splits
|
|
172
|
-
into components and helpers. reopen the app to load the change.
|
|
38
|
+
A plain `peach open <target>` reuses your saved sim. Use `peach do reload` when
|
|
39
|
+
the target is unchanged. Pin once with `peach use <id>` and keep that sim for
|
|
40
|
+
the investigation; `--sim <id>` overrides the selection for one call.
|
|
173
41
|
|
|
174
|
-
|
|
42
|
+
- Run `peach list` before opening another sim. Use `--new` only for concurrent
|
|
43
|
+
work. `--profile` and `--ephemeral` also create isolated browser trees.
|
|
44
|
+
- Never force a lease held by another CLI. Use a separate sim instead; close
|
|
45
|
+
only sims you own with `peach close <id>`.
|
|
46
|
+
- After reconnecting, check the sim id printed by commands and confirm the tree.
|
|
47
|
+
- Do not retry-loop a timed-out open. Diagnose the dev server, runtime, and
|
|
48
|
+
printed driver diagnostic first; retry once after fixing the cause.
|
|
175
49
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
evidence that behavior is missing or broken specifically in Peach, summarize
|
|
181
|
-
the package, expected behavior, actual behavior, and runtime evidence for the
|
|
182
|
-
user. then offer to send that finding with `peach support report`.
|
|
50
|
+
For an explicit browser launch, use `--driver playwright`. `--headless` is
|
|
51
|
+
available for automation. Let ordinary opens select the supported window for
|
|
52
|
+
the platform. A yellow GPU-disabled indicator means software rendering; check
|
|
53
|
+
GPU configuration before treating its performance as representative.
|
|
183
54
|
|
|
184
|
-
|
|
185
|
-
|
|
55
|
+
For clean isolated captures use `--new --ephemeral --driver playwright`.
|
|
56
|
+
Native pixel comparisons also need `--render-resolution high`; use
|
|
57
|
+
`peach-visual` for capture conditions.
|
|
58
|
+
|
|
59
|
+
## Bridge and runtime recovery
|
|
186
60
|
|
|
187
61
|
```sh
|
|
188
|
-
peach
|
|
62
|
+
peach daemon status
|
|
63
|
+
peach runtime list
|
|
189
64
|
```
|
|
190
65
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
do not use `--yes` merely because the agent believes a report would be useful;
|
|
196
|
-
it records the user's approval after the offer.
|
|
197
|
-
|
|
198
|
-
## recovery — common failure modes
|
|
66
|
+
A persistent service avoids repeated startup costs. On a supported personal
|
|
67
|
+
machine, `peach daemon install` enables it; CI can use the on-demand bridge.
|
|
68
|
+
For a registered but stopped service, use `peach daemon restart`. `peach serve`
|
|
69
|
+
runs a foreground bridge when that is the intended lifecycle.
|
|
199
70
|
|
|
200
|
-
|
|
71
|
+
`peach open` installs a missing runtime. If it explicitly fails with a missing
|
|
72
|
+
runtime, use `peach runtime install`. If the app port is unreachable, fix the
|
|
73
|
+
app development server before opening again. For a timeout, read the diagnostic
|
|
74
|
+
path printed by the command and check the runtime and server. Do not open the
|
|
75
|
+
shell URL in the user's normal browser to bypass the failed driver.
|
|
201
76
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
peach runtime list # is at least one engine runtime installed?
|
|
205
|
-
peach open <port> # does loading explicitly work?
|
|
206
|
-
```
|
|
77
|
+
If native code is missing, read [native configuration](references/native-config.md)
|
|
78
|
+
for app-owned modules/views and third-party stub packages.
|
|
207
79
|
|
|
208
|
-
|
|
209
|
-
daemon is down, run `peach daemon restart`, or `peach serve` in another shell for
|
|
210
|
-
a foreground bridge. if no runtime is installed, `peach open` installs it
|
|
211
|
-
before launching. if open errors with "port unreachable": confirm your dev
|
|
212
|
-
server is actually serving — the bundler has to be up before Peach can
|
|
213
|
-
attach.
|
|
80
|
+
## Inspect feedback and support
|
|
214
81
|
|
|
215
|
-
|
|
216
|
-
`peach claim` only reserves an existing one. check ownership before closing
|
|
217
|
-
a sim left by your own earlier run:
|
|
82
|
+
When the task includes receiving feedback from the simulator, run:
|
|
218
83
|
|
|
219
84
|
```sh
|
|
220
|
-
peach
|
|
221
|
-
peach close <id> # release it cleanly
|
|
85
|
+
peach agent listen
|
|
222
86
|
```
|
|
223
87
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
do not retry in a loop. verify the app's development server is reachable and
|
|
229
|
-
`peach runtime list` shows an installed runtime. inspect the driver diagnostic
|
|
230
|
-
path printed by the failed command. restart the broken development stack at its
|
|
231
|
-
supervisor, then retry once. Peach owns the isolated browser profile and its
|
|
232
|
-
process tree; do not open the shell URL through an operating-system browser.
|
|
233
|
-
|
|
234
|
-
**bridge disconnects mid-sim.** the WebSocket dropped (laptop slept,
|
|
235
|
-
network blip). re-pin: `peach use <id>`. the daemon retries reconnection
|
|
236
|
-
automatically; you usually just need to re-issue the command.
|
|
237
|
-
|
|
238
|
-
**"sim held by another CLI".** another agent or your own previous CLI
|
|
239
|
-
process has the lease. find it (`peach list`), close it (`peach close
|
|
240
|
-
<id>`), or start a clean sim (`peach open --new`) — do **not**
|
|
241
|
-
`peach claim --force`.
|
|
88
|
+
It returns one pending inspect request or waits for the next, then exits.
|
|
89
|
+
Use the printed context first. `peach agent info <message-id>` provides the
|
|
90
|
+
complete request and artifact paths. Open saved tree, inspect data, or image
|
|
91
|
+
artifacts only when that extra detail is needed.
|
|
242
92
|
|
|
243
|
-
|
|
93
|
+
Compatibility and support reports require the user's explicit approval.
|
|
94
|
+
Read [reporting](references/reporting.md) before offering or sending one.
|
|
244
95
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
-
|
|
248
|
-
sim.
|
|
249
|
-
- `/peach-visual` — pixel-level rendering comparisons.
|
|
96
|
+
Setup is complete when `describe` returns the intended app, subsequent commands
|
|
97
|
+
target the same sim, and errors/failed requests are understood. Continue with
|
|
98
|
+
`peach-debug`, `peach-test`, `peach-perf`, or `peach-visual` as the task requires.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# App-owned native code
|
|
2
|
+
|
|
3
|
+
an app's own native modules and views (a local Expo module, a
|
|
4
|
+
`requireNativeComponent` view written in Swift or Kotlin) have no Peach
|
|
5
|
+
implementation until the app supplies one. when the scan or the running app
|
|
6
|
+
shows one missing (an empty view where content belongs, a "native module not
|
|
7
|
+
found" error), add it to `peach.config.ts` at the app root:
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineConfig } from 'peachsim/config'
|
|
11
|
+
|
|
12
|
+
export default defineConfig({
|
|
13
|
+
packages: {
|
|
14
|
+
// keyed by the package the names live in; `peach doctor` prints it
|
|
15
|
+
'my-app': {
|
|
16
|
+
modules: { MyAppModule: './peach/my-app-module.ts' },
|
|
17
|
+
views: {
|
|
18
|
+
RNBalanceLabel: './peach/BalanceLabel.tsx', // requireNativeComponent name
|
|
19
|
+
MyModule_StatusView: './peach/StatusView.tsx', // requireNativeView('MyModule', 'StatusView')
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
'react-native-acme-analytics': 'noop', // every native name it asks for is inert
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
a view file default-exports a component that receives the native view's
|
|
28
|
+
props and renders what it shows on device, using `react-native` and
|
|
29
|
+
`peach-kit` primitives. a module file default-exports the module object,
|
|
30
|
+
served to `TurboModuleRegistry`, `NativeModules` and Expo's
|
|
31
|
+
`requireNativeModule`. a third-party package's stub may already be
|
|
32
|
+
published: an installed `peach-stub-<package>` answers with no config line. a
|
|
33
|
+
file may import other project files by relative path, so a large view splits
|
|
34
|
+
into components and helpers. reopen the app to load the change.
|
|
35
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Compatibility and support reports
|
|
2
|
+
|
|
3
|
+
Run `peach doctor --json` from the app root to inspect compatibility locally.
|
|
4
|
+
It identifies package version mismatches, missing native code, and configured
|
|
5
|
+
stubs. Offer `peach doctor --report` if the user wants to send the findings;
|
|
6
|
+
it requires no login. Do not send it automatically.
|
|
7
|
+
|
|
8
|
+
For a runtime problem specific to Peach, describe the package, expected
|
|
9
|
+
behavior, actual behavior, and observed evidence. Preview a report locally:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
peach support report --dry-run "<package; expected; actual; observed evidence>"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Show the preview to the user and ask for explicit approval. Only after approval:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
peach support report --yes "<package; expected; actual; observed evidence>"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`--yes` records that approval; the agent's belief that a report is useful does
|
|
22
|
+
not supply it. Use `--app <dir>` to scope the scan to a specific app directory.
|
|
23
|
+
|
|
24
|
+
The command attaches a local compatibility scan and bounded CLI, runtime,
|
|
25
|
+
operating-system, and architecture metadata. It does not automatically attach
|
|
26
|
+
source files, environment variables, terminal output, logs, screenshots, git
|
|
27
|
+
data, or app data. The description itself is sent, so include only the relevant
|
|
28
|
+
observations you intend to share. `--dry-run` previews without sending.
|