peachsim 0.1.2241 → 0.1.2243
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/cli/bridge-flow-runner.ts +10 -9
- package/cli/commands/flow.ts +4 -0
- package/cli/commands/inspect/settling.ts +496 -515
- package/cli/commands/platform.ts +2 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +115 -28
- 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 +498 -518
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +114 -27
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +122 -40
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +496 -516
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +492 -512
- package/dist-lib/sdk.mjs +492 -512
- package/dist-lib/skills.cjs +632 -569
- package/dist-lib/swift-compile.cjs +13 -4
- package/dist-lib/swift-compile.mjs +13 -4
- 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 +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +507 -419
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/host/bridge-host.ts +12 -13
- package/src/native-static-libraries.ts +98 -17
- package/src/swift-shared-sdk.ts +6 -1
- package/src/swift-standins.ts +11 -4
- package/src/swift-submit.ts +3 -1
- package/src/swift-wasm-prune.ts +28 -0
|
@@ -2806,11 +2806,11 @@ export class SootSimBridgeFlowRunner {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
}
|
|
2808
2808
|
|
|
2809
|
-
// maestro's waitForAnimationToEnd
|
|
2810
|
-
//
|
|
2811
|
-
//
|
|
2812
|
-
// like maestro, a screen that never holds
|
|
2813
|
-
// ends the wait at the timeout
|
|
2809
|
+
// maestro's waitForAnimationToEnd waits until the screen holds still, so
|
|
2810
|
+
// motion the screen does not show (an endless loop under a full-screen
|
|
2811
|
+
// sheet) never holds it. the engine knows which motion is visible, so the
|
|
2812
|
+
// wait reads that instead of pixels. like maestro, a screen that never holds
|
|
2813
|
+
// still (a looping illustration) ends the wait at the timeout
|
|
2814
2814
|
async waitForAnimationToEnd(timeoutMs: number = 2000) {
|
|
2815
2815
|
const maxMs = Math.max(0, Math.round(timeoutMs))
|
|
2816
2816
|
if (maxMs <= 0) return
|
|
@@ -2819,7 +2819,7 @@ export class SootSimBridgeFlowRunner {
|
|
|
2819
2819
|
simId: this.opts.simId,
|
|
2820
2820
|
maxMs,
|
|
2821
2821
|
pollMs: 32,
|
|
2822
|
-
|
|
2822
|
+
screenStill: true,
|
|
2823
2823
|
})
|
|
2824
2824
|
}
|
|
2825
2825
|
|
|
@@ -3197,7 +3197,8 @@ export class SootSimBridgeFlowRunner {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
}
|
|
3199
3199
|
|
|
3200
|
-
// ios
|
|
3200
|
+
// ios waits up to three seconds for a still screen, then compares native
|
|
3201
|
+
// hierarchies.
|
|
3201
3202
|
// the observer overlaps those reads to keep this command's existing budget.
|
|
3202
3203
|
private async waitForAppToSettle() {
|
|
3203
3204
|
try {
|
|
@@ -3207,7 +3208,7 @@ export class SootSimBridgeFlowRunner {
|
|
|
3207
3208
|
maxMs: 3000,
|
|
3208
3209
|
pollMs: 32,
|
|
3209
3210
|
maestro: true,
|
|
3210
|
-
|
|
3211
|
+
screenStill: true,
|
|
3211
3212
|
})
|
|
3212
3213
|
if (!result.settled) {
|
|
3213
3214
|
console.warn(
|
|
@@ -3231,7 +3232,7 @@ export class SootSimBridgeFlowRunner {
|
|
|
3231
3232
|
pollMs: 32,
|
|
3232
3233
|
stablePolls: 3,
|
|
3233
3234
|
maestro: true,
|
|
3234
|
-
|
|
3235
|
+
screenStill: true,
|
|
3235
3236
|
})
|
|
3236
3237
|
if (!result.settled) {
|
|
3237
3238
|
throw new Error(
|
package/cli/commands/flow.ts
CHANGED
|
@@ -621,6 +621,8 @@ flow extension:
|
|
|
621
621
|
const openArgs = [openTarget]
|
|
622
622
|
if (pinnedShellBaseUrl) openArgs.push('--base-url', pinnedShellBaseUrl)
|
|
623
623
|
if (targetDevice) openArgs.push('--device', targetDevice)
|
|
624
|
+
// the app boots in the flow's posture, as native unfolds before its launch
|
|
625
|
+
if (targetPosture) openArgs.push('--posture', targetPosture)
|
|
624
626
|
if (
|
|
625
627
|
firstLaunchPermissions &&
|
|
626
628
|
(targetTheme === 'light' || targetTheme === 'dark' || targetTheme === 'auto')
|
|
@@ -896,6 +898,8 @@ flow extension:
|
|
|
896
898
|
}
|
|
897
899
|
const deviceChanged = await applySimSettings()
|
|
898
900
|
if (deviceChanged && !startsWithLaunchApp) await driver.waitForTree(120000)
|
|
901
|
+
// a reused sim, or the reload a device change makes, still holds another rest
|
|
902
|
+
if ((await applyPosture()) && !startsWithLaunchApp) await driver.waitForTree(120000)
|
|
899
903
|
// a device change reloads the page, which is a second boot without the seed
|
|
900
904
|
if (!deviceChanged) driver.seededLaunchPermissions = seededLaunchPermissions
|
|
901
905
|
// preview replay must reproduce the SAME initial conditions the agent
|