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
package/cli/commands/package.ts
CHANGED
|
@@ -30,9 +30,10 @@ import {
|
|
|
30
30
|
} from '../../src/host/staged-host-files'
|
|
31
31
|
import { readInstalledNativePackageVersionsAsync } from '../../src/installed-package-versions'
|
|
32
32
|
import { isRecord } from '../../src/is-record'
|
|
33
|
+
import { detectBundleModeFromText } from '../../src/metro-production-bundle'
|
|
33
34
|
import { readNativeAppIdentityFromProject } from '../../src/native-app-identity-project'
|
|
34
35
|
import { readExpoConfigAsync } from '../../src/native-firebase-config'
|
|
35
|
-
import { insertNitroFooter } from '../../src/nitroContract'
|
|
36
|
+
import { insertNitroFooter, insertTurboFooter } from '../../src/nitroContract'
|
|
36
37
|
import {
|
|
37
38
|
insertPackageVersionsFooter,
|
|
38
39
|
readPackageVersions,
|
|
@@ -154,9 +155,14 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
154
155
|
...readPackageVersionsFooter(source),
|
|
155
156
|
...versions,
|
|
156
157
|
})
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
const runtime = getCliRuntime()
|
|
159
|
+
// the package's bytes never change, so each launch evaluates the executable
|
|
160
|
+
// prepared here instead of analyzing and transforming the bundle again.
|
|
161
|
+
return runtime.render_worker_prepared_boot_bundle.prepareBootBundle(
|
|
162
|
+
await runtime.rolldown_bundle_inventory.attachRolldownBundleHttpPayload(
|
|
163
|
+
source,
|
|
164
|
+
'application/javascript',
|
|
165
|
+
),
|
|
160
166
|
)
|
|
161
167
|
}
|
|
162
168
|
const selectedHost =
|
|
@@ -190,6 +196,17 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
190
196
|
routes[pathname] = { file: path.basename(new URL(url).pathname), contentType }
|
|
191
197
|
return origin + pathname
|
|
192
198
|
}
|
|
199
|
+
// the shell picks its tenant artifact from the bundle url before fetching the
|
|
200
|
+
// bundle, so the url names the bundle's mode; a production bundle behind a bare
|
|
201
|
+
// url boots the development tenant first and restarts on every launch.
|
|
202
|
+
const routeBundle = async (pathname: string, source: string) => {
|
|
203
|
+
const bundle = new URL(route(pathname, Buffer.from(source), 'application/javascript'))
|
|
204
|
+
const mode = await detectBundleModeFromText(source)
|
|
205
|
+
if (mode) bundle.searchParams.set('dev', String(mode === 'development'))
|
|
206
|
+
const url = new URL('/rn', origin)
|
|
207
|
+
url.searchParams.set('bundle', bundle.href)
|
|
208
|
+
return url.href
|
|
209
|
+
}
|
|
193
210
|
try {
|
|
194
211
|
const captured = await captureStagedHostFiles(async () => {
|
|
195
212
|
let launchUrl: string
|
|
@@ -226,14 +243,7 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
226
243
|
Buffer.from(JSON.stringify(app.metadata)),
|
|
227
244
|
'application/json',
|
|
228
245
|
)
|
|
229
|
-
|
|
230
|
-
app.guestPath,
|
|
231
|
-
Buffer.from(app.guestSource),
|
|
232
|
-
'application/javascript',
|
|
233
|
-
)
|
|
234
|
-
const url = new URL('/rn', origin)
|
|
235
|
-
url.searchParams.set('bundle', bundle)
|
|
236
|
-
launchUrl = url.href
|
|
246
|
+
launchUrl = await routeBundle(app.guestPath, app.guestSource)
|
|
237
247
|
if (!icon && app.icon) {
|
|
238
248
|
icon = path.join(scratch, 'icon.png')
|
|
239
249
|
fs.writeFileSync(icon, app.icon.bytes)
|
|
@@ -289,6 +299,7 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
289
299
|
source = detachBundleGlobalFooter(source, '__peachExpoSwift').source
|
|
290
300
|
source = detachBundleGlobalFooter(source, '__peachExpoKotlin').source
|
|
291
301
|
source = stripBundleMetadataFooter(source, 'nitro')
|
|
302
|
+
source = stripBundleMetadataFooter(source, 'turbo')
|
|
292
303
|
if (channel.platform === 'android') {
|
|
293
304
|
const native = await (
|
|
294
305
|
await import('../../src/expo-kotlin-bundle')
|
|
@@ -315,6 +326,14 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
315
326
|
route('/' + asset.path, asset.bytes, asset.contentType)
|
|
316
327
|
source = insertNitroFooter(source, nitro.metadata)
|
|
317
328
|
}
|
|
329
|
+
const turbo = await (
|
|
330
|
+
await import('../../src/turbo-bundle')
|
|
331
|
+
).buildTurboBundle(root)
|
|
332
|
+
if (turbo) {
|
|
333
|
+
for (const asset of turbo.assets)
|
|
334
|
+
route('/' + asset.path, asset.bytes, asset.contentType)
|
|
335
|
+
source = insertTurboFooter(source, turbo.metadata)
|
|
336
|
+
}
|
|
318
337
|
}
|
|
319
338
|
source = await produceConfiguredBundle(
|
|
320
339
|
source,
|
|
@@ -325,6 +344,7 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
325
344
|
visit(channel.expoSwift)
|
|
326
345
|
visit(channel.expoKotlin)
|
|
327
346
|
visit(channel.nitro)
|
|
347
|
+
visit(channel.turbo)
|
|
328
348
|
}
|
|
329
349
|
for (const descriptor of extractAssetDescriptors(source)) {
|
|
330
350
|
if (!descriptor.httpServerLocation) continue
|
|
@@ -371,15 +391,7 @@ export async function runPackage(args: string[]): Promise<void> {
|
|
|
371
391
|
icon = path.join(scratch, 'icon.png')
|
|
372
392
|
fs.writeFileSync(icon, Buffer.from(await artwork.arrayBuffer()))
|
|
373
393
|
}
|
|
374
|
-
|
|
375
|
-
const bundle = route(
|
|
376
|
-
'/__peach/app.js',
|
|
377
|
-
Buffer.from(prepared),
|
|
378
|
-
'application/javascript',
|
|
379
|
-
)
|
|
380
|
-
const url = new URL('/rn', origin)
|
|
381
|
-
url.searchParams.set('bundle', bundle)
|
|
382
|
-
launchUrl = url.href
|
|
394
|
+
launchUrl = await routeBundle('/__peach/app.js', await prepareBundle(source))
|
|
383
395
|
} else if (local?.isDirectory()) {
|
|
384
396
|
const { snapshotOneDevBundle, prepareBundleChannel } =
|
|
385
397
|
await import('../../src/bundle-channel.mjs')
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs'
|
|
2
|
+
import {
|
|
3
|
+
callInBridgeWrite,
|
|
4
|
+
createBridgeFromParsed,
|
|
5
|
+
parseBridgeCliArgs,
|
|
6
|
+
} from '../ws-bridge'
|
|
7
|
+
import type { PushNotificationReceipt } from '../../src/bridge-contract'
|
|
8
|
+
|
|
9
|
+
export async function runPush(
|
|
10
|
+
args: string[],
|
|
11
|
+
opts: { port?: number } = {},
|
|
12
|
+
): Promise<number> {
|
|
13
|
+
const parsed = parseBridgeCliArgs(args, {
|
|
14
|
+
port: opts.port,
|
|
15
|
+
stripBooleanFlags: ['--help', '-h', '--json'],
|
|
16
|
+
})
|
|
17
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
18
|
+
console.log(
|
|
19
|
+
'usage: peach push <bundle-id> <payload.json|inline-json|-> [--sim <id>] [--json]',
|
|
20
|
+
)
|
|
21
|
+
return 0
|
|
22
|
+
}
|
|
23
|
+
const [bundleId, input] = parsed.positional
|
|
24
|
+
if (!bundleId || !input || parsed.positional.length !== 2) {
|
|
25
|
+
console.error('usage: peach push <bundle-id> <payload.json|inline-json|->')
|
|
26
|
+
return 1
|
|
27
|
+
}
|
|
28
|
+
const bridge = createBridgeFromParsed(parsed)
|
|
29
|
+
try {
|
|
30
|
+
const source = input.trimStart().startsWith('{')
|
|
31
|
+
? input
|
|
32
|
+
: readFileSync(input === '-' ? 0 : input, 'utf8')
|
|
33
|
+
const payload: unknown = JSON.parse(source)
|
|
34
|
+
const result = await callInBridgeWrite<PushNotificationReceipt>(
|
|
35
|
+
bridge,
|
|
36
|
+
'SootSim.bridges.mainShell.callTestBridge',
|
|
37
|
+
'deliverPushNotification',
|
|
38
|
+
bundleId,
|
|
39
|
+
payload,
|
|
40
|
+
)
|
|
41
|
+
if (!result) throw new Error('simulator shell unavailable')
|
|
42
|
+
console.log(
|
|
43
|
+
args.includes('--json')
|
|
44
|
+
? JSON.stringify(result)
|
|
45
|
+
: `notification delivered to ${bundleId}`,
|
|
46
|
+
)
|
|
47
|
+
return 0
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error(
|
|
50
|
+
`push failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
51
|
+
)
|
|
52
|
+
return 1
|
|
53
|
+
} finally {
|
|
54
|
+
bridge.close()
|
|
55
|
+
}
|
|
56
|
+
}
|
package/cli/commands/serve.ts
CHANGED
|
@@ -125,6 +125,9 @@ examples:
|
|
|
125
125
|
getCliRuntime()
|
|
126
126
|
|
|
127
127
|
ensureRnxHome()
|
|
128
|
+
// the bridge outlives whatever checkout started it; a deleted inherited cwd
|
|
129
|
+
// would make every child it spawns fail, so it lives in peach home.
|
|
130
|
+
process.chdir(rnxHomeDir())
|
|
128
131
|
// use the explicit upload/auth origin when configured, otherwise production.
|
|
129
132
|
// never probe a local Contrast stack during bridge startup.
|
|
130
133
|
const contrastOrigin = await resolveDefaultUploadOrigin()
|
|
@@ -206,6 +209,12 @@ examples:
|
|
|
206
209
|
// closing the terminal that spawned us sends SIGHUP — treat it like a
|
|
207
210
|
// clean shutdown so the lockfile doesn't linger.
|
|
208
211
|
process.on('SIGHUP', () => shutdown('SIGHUP'))
|
|
212
|
+
// a launcher of another app version asks a bridge its quit starter left
|
|
213
|
+
// behind to exit now rather than after the unused grace period.
|
|
214
|
+
if (exitWhenUnused)
|
|
215
|
+
process.on('SIGUSR2', () => {
|
|
216
|
+
if (starterGoneAt && host.listSims().length === 0) void shutdown('unused')
|
|
217
|
+
})
|
|
209
218
|
// last-ditch lockfile cleanup on any synchronous exit path. the
|
|
210
219
|
// close() call above is async so we can't await it here, but removing
|
|
211
220
|
// the lockfile is cheap + idempotent.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import fs from 'node:fs'
|
|
2
2
|
import os from 'node:os'
|
|
3
3
|
import path from 'node:path'
|
|
4
|
+
import { oneNativeAppIdentity } from '../../../contrast-bundler/src/oneViteAliases.ts'
|
|
4
5
|
import { pinSharedListenerScan, probePort } from '../../scripts/dev-server-scanner'
|
|
5
6
|
import { readAndroidLauncherRootModuleName } from '../../src/android-root-module'
|
|
6
7
|
import { ANDROID_ROOT_MODULE_QUERY_PARAM } from '../../src/androidRootModuleContract'
|
|
@@ -493,13 +494,17 @@ export interface BuildShellUrlOptions {
|
|
|
493
494
|
// uses the same param. without this, every driver-opened sim silently ran
|
|
494
495
|
// whatever profile the shell last persisted.
|
|
495
496
|
device?: string
|
|
496
|
-
//
|
|
497
|
+
// display posture (open|closed) stamped onto the engine URL as ?posture= next
|
|
497
498
|
// to ?device=. the shell reads it at boot (readUrlSettingOverrides) and
|
|
498
499
|
// keeps it in the URL on every pose change, so it round-trips the way
|
|
499
500
|
// device and orientation do. without this a manual ?posture= appended
|
|
500
501
|
// after the app path lands inside the bundle param and never reaches the
|
|
501
502
|
// shell. non-foldable devices resolve it to closed at boot.
|
|
502
503
|
posture?: string
|
|
504
|
+
// the fold rest (closed|book|open|laptop|tent) stamped as ?rest=, which the
|
|
505
|
+
// fold engine seeds the hinge from at boot. ?posture= names only the display
|
|
506
|
+
// the rest lights, so book, laptop and tent need this beside it.
|
|
507
|
+
rest?: string
|
|
503
508
|
// raster quality (high|medium|low) stamped as ?renderResolution=. high
|
|
504
509
|
// renders at the device's native scale, so a native-parity capture is not
|
|
505
510
|
// left at the interactive medium default of 2.
|
|
@@ -508,6 +513,9 @@ export interface BuildShellUrlOptions {
|
|
|
508
513
|
// which the shell reads at boot over the device's default: an open duo
|
|
509
514
|
// boots landscape unless this asks for it upright.
|
|
510
515
|
orientation?: string
|
|
516
|
+
// the dynamic device's window size in points, stamped as ?dynamicWidth= and
|
|
517
|
+
// ?dynamicHeight=
|
|
518
|
+
windowSize?: { width: number; height: number }
|
|
511
519
|
// portrayed os version (major.minor) stamped as ?osVersion=, which the
|
|
512
520
|
// shell pins at boot over the device profile's own version. an oracle on a
|
|
513
521
|
// newer os than the profile compares only when the sim runs that os era.
|
|
@@ -545,6 +553,8 @@ export interface BuildShellUrlOptions {
|
|
|
545
553
|
// launch-time environment variables, stamped as repeated ?env=KEY%3DVALUE.
|
|
546
554
|
// see the --env flag above.
|
|
547
555
|
env?: string[]
|
|
556
|
+
// launch arguments, stamped as repeated ?arg=. see the --arg flag above.
|
|
557
|
+
args?: string[]
|
|
548
558
|
// the project's env file as react-native-config's iOS build compiles it,
|
|
549
559
|
// stamped as ?dotEnv=<json>. set by `peach open --load-env` only.
|
|
550
560
|
dotEnv?: Record<string, string>
|
|
@@ -629,6 +639,16 @@ function stageBuiltBundleManifest(
|
|
|
629
639
|
}
|
|
630
640
|
}
|
|
631
641
|
|
|
642
|
+
// a One project with no ios/ yet declares its identity and permission strings in
|
|
643
|
+
// vite.config.ts, the same literal the Contrast preview bundler reads.
|
|
644
|
+
function readOneConfigNativeAppIdentity(appDir: string, platform: 'ios' | 'android') {
|
|
645
|
+
if (platform !== 'ios') return null
|
|
646
|
+
const config = path.join(appDir, 'vite.config.ts')
|
|
647
|
+
return fs.existsSync(config)
|
|
648
|
+
? oneNativeAppIdentity(fs.readFileSync(config, 'utf8'))
|
|
649
|
+
: null
|
|
650
|
+
}
|
|
651
|
+
|
|
632
652
|
// a plain Metro carries no identity footer or header, so the page carries the
|
|
633
653
|
// identity the Peach Metro plugin reads from the same project. its icon
|
|
634
654
|
// artwork stays with bundle builders, where data uris cannot swell a url. a
|
|
@@ -642,14 +662,15 @@ function readProjectNativeAppIdentityWire(
|
|
|
642
662
|
): string | null {
|
|
643
663
|
if (!canExtractNativeAppIdentity(platform)) return null
|
|
644
664
|
try {
|
|
645
|
-
const identity =
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
665
|
+
const identity =
|
|
666
|
+
readNativeAppIdentityFromProject(
|
|
667
|
+
project.appDir,
|
|
668
|
+
platform,
|
|
669
|
+
undefined,
|
|
670
|
+
iosTarget,
|
|
671
|
+
undefined,
|
|
672
|
+
environment,
|
|
673
|
+
) ?? readOneConfigNativeAppIdentity(project.appDir, platform)
|
|
653
674
|
return (
|
|
654
675
|
identity &&
|
|
655
676
|
createNativeAppIdentityHeader({ ...identity, appIconArtwork: undefined })
|
|
@@ -797,6 +818,10 @@ export async function buildShellUrl(
|
|
|
797
818
|
'nitro',
|
|
798
819
|
`${nativeAssetOrigin}/__peach/nitro?root=${encodeURIComponent(expoRoot)}`,
|
|
799
820
|
)
|
|
821
|
+
expoStamped.searchParams.set(
|
|
822
|
+
'turbo',
|
|
823
|
+
`${nativeAssetOrigin}/__peach/turbo?root=${encodeURIComponent(expoRoot)}`,
|
|
824
|
+
)
|
|
800
825
|
// the engine fetches only its device platform's build
|
|
801
826
|
expoStamped.searchParams.set(
|
|
802
827
|
'expoKotlin',
|
|
@@ -813,6 +838,7 @@ export async function buildShellUrl(
|
|
|
813
838
|
!opts.osVersion &&
|
|
814
839
|
!opts.theme &&
|
|
815
840
|
!opts.env?.length &&
|
|
841
|
+
!opts.args?.length &&
|
|
816
842
|
!opts.dotEnv
|
|
817
843
|
)
|
|
818
844
|
return opts.offline
|
|
@@ -822,13 +848,19 @@ export async function buildShellUrl(
|
|
|
822
848
|
if (opts.dotEnv) url.searchParams.set('dotEnv', JSON.stringify(opts.dotEnv))
|
|
823
849
|
if (opts.device) url.searchParams.set('device', opts.device)
|
|
824
850
|
if (opts.posture) url.searchParams.set('posture', opts.posture)
|
|
851
|
+
if (opts.rest) url.searchParams.set('rest', opts.rest)
|
|
825
852
|
if (opts.renderResolution)
|
|
826
853
|
url.searchParams.set('renderResolution', opts.renderResolution)
|
|
827
854
|
if (opts.orientation) url.searchParams.set('orientation', opts.orientation)
|
|
855
|
+
if (opts.windowSize) {
|
|
856
|
+
url.searchParams.set('dynamicWidth', String(opts.windowSize.width))
|
|
857
|
+
url.searchParams.set('dynamicHeight', String(opts.windowSize.height))
|
|
858
|
+
}
|
|
828
859
|
if (opts.osVersion) url.searchParams.set('osVersion', opts.osVersion)
|
|
829
860
|
if (opts.theme) url.searchParams.set('theme', opts.theme)
|
|
830
861
|
if (opts.proof) url.searchParams.set('proof', '1')
|
|
831
862
|
if (opts.ephemeral) url.searchParams.set('ephemeral', '1')
|
|
832
863
|
for (const entry of opts.env ?? []) url.searchParams.append('env', entry)
|
|
864
|
+
for (const entry of opts.args ?? []) url.searchParams.append('arg', entry)
|
|
833
865
|
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin)
|
|
834
866
|
}
|
package/cli/commands/swift.ts
CHANGED
|
@@ -93,7 +93,7 @@ export async function runSwift(
|
|
|
93
93
|
openArgs.find((_, index) => openArgs[index - 1] === '--device') ?? opts.device
|
|
94
94
|
if (openPreview && !validateDeviceOption(device)) return 1
|
|
95
95
|
// local by default: this machine's swift.org toolchain compiles against the
|
|
96
|
-
// checkout's module or the
|
|
96
|
+
// checkout's module or the downloaded Swift distribution, and no
|
|
97
97
|
// source leaves it. --upload-source compiles on Contrast instead.
|
|
98
98
|
const auth = uploadSource ? resolveCliAuth() : null
|
|
99
99
|
if (uploadSource && (!auth || auth.kind === 'github')) {
|
package/cli/current-sim.ts
CHANGED
|
@@ -257,6 +257,33 @@ export function replaceCurrentSimId(simId: string) {
|
|
|
257
257
|
writeCurrentSim(simId, readCurrentTarget()?.bridgePort)
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
// the name this caller chose with `peach open --id`. it lives beside the pin,
|
|
261
|
+
// keyed by the same identity, so every later command from the caller sends it
|
|
262
|
+
// as its label and the agent indicator shows it.
|
|
263
|
+
function getAgentIdPath() {
|
|
264
|
+
return `${getCurrentSimPath()}.agent-id`
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export function saveAgentId(agentId: string) {
|
|
268
|
+
writeSecureJsonAtomic(getAgentIdPath(), { agentId })
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export function readAgentId(): string | undefined {
|
|
272
|
+
const filepath = getAgentIdPath()
|
|
273
|
+
if (!existsSync(filepath)) return undefined
|
|
274
|
+
try {
|
|
275
|
+
const parsed: unknown = JSON.parse(readFileSync(filepath, 'utf8'))
|
|
276
|
+
const agentId =
|
|
277
|
+
parsed !== null && typeof parsed === 'object'
|
|
278
|
+
? Reflect.get(parsed, 'agentId')
|
|
279
|
+
: undefined
|
|
280
|
+
return typeof agentId === 'string' && agentId.trim() ? agentId.trim() : undefined
|
|
281
|
+
} catch {
|
|
282
|
+
rmSync(filepath, { force: true })
|
|
283
|
+
return undefined
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
260
287
|
export function clearCurrentSimId() {
|
|
261
288
|
rmSync(getCurrentSimPath(), { force: true })
|
|
262
289
|
}
|