peachsim 0.1.2274 → 0.1.2276
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/outbound-endpoints.ts +12 -0
- package/detox/index.ts +109 -29
- 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 +11 -8
- 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 +63 -10
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +5 -5
- 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 +11 -8
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -5
- 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 +4 -5
- 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 +4 -5
- 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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +18 -12
- package/dist-lib/swift-compile.cjs +3 -3
- package/dist-lib/swift-compile.mjs +3 -3
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4 -4
- package/dist-lib/vite.cjs +4 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +14 -2
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +41 -0
- package/dist-types/packages/peach-engine/src/platform/personality.d.ts +32 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -28
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +12 -5
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +7 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +3 -3
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +2 -1
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +3 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPasteConfigurationSupporting.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h +1 -1
- package/src/nitro-compile.ts +4 -0
- package/src/swift-compile.ts +5 -4
|
@@ -243,6 +243,14 @@ export const OUTBOUND_ENDPOINTS: Record<string, OutboundEndpointDeclaration> = {
|
|
|
243
243
|
payload:
|
|
244
244
|
'HTTP GET of the public Compose BOM artifact and version declared by the app; no source, paths, credentials or app data',
|
|
245
245
|
},
|
|
246
|
+
android_framework_sources: {
|
|
247
|
+
category: 'explicit-user-action',
|
|
248
|
+
destination:
|
|
249
|
+
'android.googlesource.com: the framework, libcore and module source directories and files at the commits pinned in packages/peachsim/scripts/build-android-framework.ts',
|
|
250
|
+
preConsent: false,
|
|
251
|
+
payload:
|
|
252
|
+
'HTTP GET of a public AOSP tarball or file at a pinned commit; fires only when a developer runs the framework build and the download is not cached. No project or app data is sent',
|
|
253
|
+
},
|
|
246
254
|
kotlin_app_library_sources: {
|
|
247
255
|
category: 'explicit-user-action',
|
|
248
256
|
destination:
|
|
@@ -1036,6 +1044,10 @@ export const DECLARED_OUTBOUND_CALLS: Record<string, OutboundCallDeclaration> =
|
|
|
1036
1044
|
category: 'kotlin_toolchain_download',
|
|
1037
1045
|
count: 1,
|
|
1038
1046
|
},
|
|
1047
|
+
'packages/peachsim/scripts/build-android-framework.ts :: fetch :: url': {
|
|
1048
|
+
category: 'android_framework_sources',
|
|
1049
|
+
count: 2,
|
|
1050
|
+
},
|
|
1039
1051
|
'packages/peachsim/src/kotlin-compose-bom.ts :: fetch :: url': {
|
|
1040
1052
|
category: 'kotlin_dependency_metadata',
|
|
1041
1053
|
count: 1,
|
package/detox/index.ts
CHANGED
|
@@ -62,6 +62,11 @@ import type {
|
|
|
62
62
|
SootSimInteractBridge,
|
|
63
63
|
SootSimNodeInfo,
|
|
64
64
|
} from '../../peach-globals/src/index'
|
|
65
|
+
import type { NativeScreenTransitionClock } from '../../peach-globals/src/lockstepCaptureBridgeContract'
|
|
66
|
+
import type {
|
|
67
|
+
FrameProducerClockSample,
|
|
68
|
+
FrameProducerFrameReceipt,
|
|
69
|
+
} from '../../peach-globals/src/testBridgeContract'
|
|
65
70
|
import type { SootSimElement } from './element-types'
|
|
66
71
|
import type {
|
|
67
72
|
LockstepInputReceipt,
|
|
@@ -2923,6 +2928,8 @@ export const device = {
|
|
|
2923
2928
|
producerKind?: string
|
|
2924
2929
|
nativeOffsetMs: number
|
|
2925
2930
|
nativeFirstFrameOffsetMs: number
|
|
2931
|
+
nativeAnimationClock?: NativeScreenTransitionClock
|
|
2932
|
+
nativeProducerFrames?: FrameProducerClockSample[]
|
|
2926
2933
|
}
|
|
2927
2934
|
// witnessed input replays native delivered times and samples the
|
|
2928
2935
|
// declared offsets directly, as the native lane does.
|
|
@@ -2946,11 +2953,8 @@ export const device = {
|
|
|
2946
2953
|
guestNowMs?: number | null
|
|
2947
2954
|
guestClockFrozen?: boolean | null
|
|
2948
2955
|
}
|
|
2949
|
-
producerFrameWitness:
|
|
2950
|
-
|
|
2951
|
-
registeredMs: number
|
|
2952
|
-
firstFrameMs: number | null
|
|
2953
|
-
} | null
|
|
2956
|
+
producerFrameWitness: FrameProducerFrameReceipt | null
|
|
2957
|
+
screenAnimationClock: NativeScreenTransitionClock | null
|
|
2954
2958
|
frames: Array<{
|
|
2955
2959
|
label: string
|
|
2956
2960
|
offsetMs: number
|
|
@@ -3070,11 +3074,8 @@ export const device = {
|
|
|
3070
3074
|
const capturePromise: Promise<{
|
|
3071
3075
|
workletFirstDelivery: { first: number | null; initial: number } | null
|
|
3072
3076
|
inputReceipts: LockstepInputReceipt[]
|
|
3073
|
-
producerFrameWitness:
|
|
3074
|
-
|
|
3075
|
-
registeredMs: number
|
|
3076
|
-
firstFrameMs: number | null
|
|
3077
|
-
} | null
|
|
3077
|
+
producerFrameWitness: FrameProducerFrameReceipt | null
|
|
3078
|
+
screenAnimationClock: NativeScreenTransitionClock | null
|
|
3078
3079
|
anchors: Array<{
|
|
3079
3080
|
changedPixelPercent: number
|
|
3080
3081
|
frameIndex: number
|
|
@@ -3127,9 +3128,11 @@ export const device = {
|
|
|
3127
3128
|
id: string,
|
|
3128
3129
|
) => Promise<{ accessibilityValue?: { text?: string } } | null>
|
|
3129
3130
|
startProducerFrameCapture: (kind: string) => Promise<void>
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3131
|
+
replayProducerFrameClock: (
|
|
3132
|
+
id: number,
|
|
3133
|
+
frames: FrameProducerClockSample[],
|
|
3134
|
+
) => Promise<void>
|
|
3135
|
+
readProducerFrameCapture: () => Promise<FrameProducerFrameReceipt[]>
|
|
3133
3136
|
stopProducerFrameCapture: () => Promise<void>
|
|
3134
3137
|
}
|
|
3135
3138
|
liveComposite?: {
|
|
@@ -3270,11 +3273,7 @@ export const device = {
|
|
|
3270
3273
|
if (!producerTest) throw new Error('producer capture requires the test bridge')
|
|
3271
3274
|
await producerTest.startProducerFrameCapture(input.producerWitness.producerKind)
|
|
3272
3275
|
}
|
|
3273
|
-
let producerFrameWitness:
|
|
3274
|
-
id: number
|
|
3275
|
-
registeredMs: number
|
|
3276
|
-
firstFrameMs: number | null
|
|
3277
|
-
} | null = null
|
|
3276
|
+
let producerFrameWitness: FrameProducerFrameReceipt | null = null
|
|
3278
3277
|
let heldInput: Promise<void> | null = null
|
|
3279
3278
|
const releaseReceipt = () =>
|
|
3280
3279
|
controller.inputReceipts.find((receipt) => receipt.phase === 'up')
|
|
@@ -3499,11 +3498,45 @@ export const device = {
|
|
|
3499
3498
|
}
|
|
3500
3499
|
let producerOffsetMs = 0
|
|
3501
3500
|
let nextFrameDurationMs = input.hold?.firstFrameOffsetMs
|
|
3502
|
-
if (
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3501
|
+
if (
|
|
3502
|
+
input.producerWitness &&
|
|
3503
|
+
(input.anchorAtTouch !== 'up' || !driveStart.tenantFrame?.guestClockFrozen)
|
|
3504
|
+
)
|
|
3505
|
+
throw new Error('producer witness requires a frozen delivered release clock')
|
|
3506
|
+
const nativeAnimationClock = input.producerWitness?.nativeAnimationClock
|
|
3507
|
+
const producerFrames = input.producerWitness?.nativeProducerFrames?.map(
|
|
3508
|
+
(frame) => ({
|
|
3509
|
+
deliveryTimeMs: driveStart.virtualTimestampMs + frame.deliveryTimeMs,
|
|
3510
|
+
elapsedMs: frame.elapsedMs,
|
|
3511
|
+
}),
|
|
3512
|
+
)
|
|
3513
|
+
const producerFirstFrameMs =
|
|
3514
|
+
producerFrames?.[0]?.deliveryTimeMs ??
|
|
3515
|
+
(input.producerWitness
|
|
3516
|
+
? driveStart.virtualTimestampMs +
|
|
3517
|
+
input.producerWitness.nativeFirstFrameOffsetMs
|
|
3518
|
+
: null)
|
|
3519
|
+
const screenAnimationClock = nativeAnimationClock
|
|
3520
|
+
? await controller.setScreenTransitionClock({
|
|
3521
|
+
startTimeMs:
|
|
3522
|
+
driveStart.virtualTimestampMs + nativeAnimationClock.startTimeMs,
|
|
3523
|
+
headerStartTimeMs:
|
|
3524
|
+
driveStart.virtualTimestampMs + nativeAnimationClock.headerStartTimeMs,
|
|
3525
|
+
frames: nativeAnimationClock.frames.map((frame) => ({
|
|
3526
|
+
callbackTimeMs: driveStart.virtualTimestampMs + frame.callbackTimeMs,
|
|
3527
|
+
timestampMs: driveStart.virtualTimestampMs + frame.timestampMs,
|
|
3528
|
+
})),
|
|
3529
|
+
})
|
|
3530
|
+
: null
|
|
3531
|
+
if (nativeAnimationClock) {
|
|
3532
|
+
const test = captureWindow.SootSim?.bridges?.test
|
|
3533
|
+
const entries = await test?.readProducerFrameCapture()
|
|
3534
|
+
const entry = entries?.[0]
|
|
3535
|
+
if (!test || entries?.length !== 1 || !entry || !producerFrames?.length)
|
|
3536
|
+
throw new Error('native frame replay requires one mounted producer')
|
|
3537
|
+
await test.replayProducerFrameClock(entry.id, producerFrames)
|
|
3538
|
+
}
|
|
3539
|
+
if (input.producerWitness && !nativeAnimationClock) {
|
|
3507
3540
|
const test = captureWindow.SootSim?.bridges?.test
|
|
3508
3541
|
if (!test) throw new Error('producer witness requires the test bridge')
|
|
3509
3542
|
let witnessed = false
|
|
@@ -3526,7 +3559,7 @@ export const device = {
|
|
|
3526
3559
|
input.producerWitness.nativeFirstFrameOffsetMs
|
|
3527
3560
|
if (1000 / 60 + producerOffsetMs <= 0)
|
|
3528
3561
|
throw new Error(
|
|
3529
|
-
`producer alignment precedes the next guest refresh: guest first callback ${entry.firstFrameMs - driveStart.virtualTimestampMs}ms after release, native first callback ${input.producerWitness.nativeFirstFrameOffsetMs}ms after release`,
|
|
3562
|
+
`producer alignment precedes the next guest refresh: guest registered ${entry.registeredMs - driveStart.virtualTimestampMs}ms after release, guest first callback ${entry.firstFrameMs - driveStart.virtualTimestampMs}ms after release, native first callback ${input.producerWitness.nativeFirstFrameOffsetMs}ms after release`,
|
|
3530
3563
|
)
|
|
3531
3564
|
nextFrameDurationMs = 1000 / 60 + producerOffsetMs
|
|
3532
3565
|
witnessed = true
|
|
@@ -3545,6 +3578,8 @@ export const device = {
|
|
|
3545
3578
|
?.accessibilityValue?.text
|
|
3546
3579
|
const times = value?.split(',').map(Number)
|
|
3547
3580
|
if (times?.length === 6 && times.every(Number.isFinite)) {
|
|
3581
|
+
if (!driveStart.tenantFrame)
|
|
3582
|
+
throw new Error('producer witness has no tenant release frame')
|
|
3548
3583
|
const guestInputMs = driveStart.tenantFrame.guestNowMs
|
|
3549
3584
|
if (
|
|
3550
3585
|
Math.abs(times[0]! * 1000 - guestInputMs) > 0.01 ||
|
|
@@ -3734,16 +3769,45 @@ export const device = {
|
|
|
3734
3769
|
label = '',
|
|
3735
3770
|
) => {
|
|
3736
3771
|
let receipt = currentReceipt
|
|
3772
|
+
const nextFrameTime = () => {
|
|
3773
|
+
if (!nativeAnimationClock || producerFirstFrameMs === null)
|
|
3774
|
+
return receipt.virtualTimestampMs + (nextFrameDurationMs ?? 1000 / 60)
|
|
3775
|
+
const producerFrame =
|
|
3776
|
+
producerFrames?.find(
|
|
3777
|
+
(frame) => frame.deliveryTimeMs > receipt.virtualTimestampMs + 0.000001,
|
|
3778
|
+
)?.deliveryTimeMs ?? Infinity
|
|
3779
|
+
const baselineFrame =
|
|
3780
|
+
driveStart.virtualTimestampMs +
|
|
3781
|
+
(Math.floor(
|
|
3782
|
+
(receipt.virtualTimestampMs -
|
|
3783
|
+
driveStart.virtualTimestampMs +
|
|
3784
|
+
0.000001) /
|
|
3785
|
+
(1000 / 60),
|
|
3786
|
+
) +
|
|
3787
|
+
1) *
|
|
3788
|
+
(1000 / 60)
|
|
3789
|
+
const managerFrame = nativeAnimationClock.frames.find(
|
|
3790
|
+
(frame) =>
|
|
3791
|
+
driveStart.virtualTimestampMs + frame.callbackTimeMs >
|
|
3792
|
+
receipt.virtualTimestampMs + 0.000001,
|
|
3793
|
+
)
|
|
3794
|
+
return Math.min(
|
|
3795
|
+
producerFrame,
|
|
3796
|
+
baselineFrame,
|
|
3797
|
+
managerFrame
|
|
3798
|
+
? driveStart.virtualTimestampMs + managerFrame.callbackTimeMs
|
|
3799
|
+
: Infinity,
|
|
3800
|
+
)
|
|
3801
|
+
}
|
|
3737
3802
|
if (targetMs < receipt.virtualTimestampMs - 0.01) {
|
|
3738
3803
|
throw new Error(
|
|
3739
3804
|
`sample time ${targetMs}ms of ${label} precedes the frames already stepped to ${receipt.virtualTimestampMs}ms (anchor ${driveStart.virtualTimestampMs}ms, producer offset ${producerOffsetMs}ms)`,
|
|
3740
3805
|
)
|
|
3741
3806
|
}
|
|
3742
|
-
while (
|
|
3743
|
-
receipt
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
receipt = await controller.stepFrame(nextFrameDurationMs)
|
|
3807
|
+
while (nextFrameTime() <= targetMs + 0.000001) {
|
|
3808
|
+
receipt = await controller.stepFrame(
|
|
3809
|
+
nextFrameTime() - receipt.virtualTimestampMs,
|
|
3810
|
+
)
|
|
3747
3811
|
nextFrameDurationMs = undefined
|
|
3748
3812
|
}
|
|
3749
3813
|
if (!sampledRefresh && targetMs - receipt.virtualTimestampMs > 0.01) {
|
|
@@ -4115,6 +4179,20 @@ export const device = {
|
|
|
4115
4179
|
const stats = input.workletFrameTimestampsSeconds
|
|
4116
4180
|
? await pairedPeerStats()
|
|
4117
4181
|
: null
|
|
4182
|
+
if (nativeAnimationClock) {
|
|
4183
|
+
const entries =
|
|
4184
|
+
await captureWindow.SootSim?.bridges?.test?.readProducerFrameCapture()
|
|
4185
|
+
const entry = entries?.[0]
|
|
4186
|
+
if (
|
|
4187
|
+
entries?.length !== 1 ||
|
|
4188
|
+
!entry ||
|
|
4189
|
+
entry.firstFrameMs === null ||
|
|
4190
|
+
producerFirstFrameMs === null ||
|
|
4191
|
+
Math.abs(entry.firstFrameMs - producerFirstFrameMs) > 0.001
|
|
4192
|
+
)
|
|
4193
|
+
throw new Error('guest producer did not follow its witnessed frame clock')
|
|
4194
|
+
producerFrameWitness = entry
|
|
4195
|
+
}
|
|
4118
4196
|
return {
|
|
4119
4197
|
workletFirstDelivery: stats
|
|
4120
4198
|
? {
|
|
@@ -4124,6 +4202,7 @@ export const device = {
|
|
|
4124
4202
|
: null,
|
|
4125
4203
|
inputReceipts: controller.inputReceipts,
|
|
4126
4204
|
producerFrameWitness,
|
|
4205
|
+
screenAnimationClock,
|
|
4127
4206
|
anchors: anchorRecords,
|
|
4128
4207
|
driveStart: {
|
|
4129
4208
|
frameIndex: driveStart.frameIndex,
|
|
@@ -4271,6 +4350,7 @@ export const device = {
|
|
|
4271
4350
|
return {
|
|
4272
4351
|
inputReceipts: capture.inputReceipts,
|
|
4273
4352
|
producerFrameWitness: capture.producerFrameWitness,
|
|
4353
|
+
screenAnimationClock: capture.screenAnimationClock,
|
|
4274
4354
|
anchors: capture.anchors,
|
|
4275
4355
|
driveStart: capture.driveStart,
|
|
4276
4356
|
frames: writeFastScreenshotFrames(namePrefix, capture.frames),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -29772,7 +29772,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
29772
29772
|
const accessorFlags = accessor ? ["-include", accessorHeader] : [];
|
|
29773
29773
|
const nativeC = !entries.some(([file]) => file.endsWith(".swift"));
|
|
29774
29774
|
const originalModuleMap = Object.entries(settings.productHeaders).find(
|
|
29775
|
-
([product, file]) => product.endsWith("/Modules/module.modulemap") || file.endsWith(".modulemap") && moduleMapName(input.files[file] ?? "") === swiftTargetModuleName(target.name)
|
|
29775
|
+
([product, file]) => (product.endsWith("/Modules/module.modulemap") || file.endsWith(".modulemap")) && moduleMapName(input.files[file] ?? "") === swiftTargetModuleName(target.name)
|
|
29776
29776
|
);
|
|
29777
29777
|
const packageModuleMap = entries.find(
|
|
29778
29778
|
([file]) => file === includes + "module.modulemap"
|
|
@@ -32223,7 +32223,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
32223
32223
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
32224
32224
|
MULTI_MANIFEST_VERSION = 68;
|
|
32225
32225
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
32226
|
-
compilerSourceDigest = true ? "
|
|
32226
|
+
compilerSourceDigest = true ? "a20efac2c52e7bcc9aed9dd9f0b364d0c19ee2bbd112dcf0f29034b0f42226aa" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
32227
32227
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
32228
32228
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
32229
32229
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -44836,7 +44836,7 @@ var init_swift_standin_digest = __esm({
|
|
|
44836
44836
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
44837
44837
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
44838
44838
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
44839
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
44839
|
+
STANDIN_SOURCE_DIGEST = true ? "33d7c163402f4604d26954aab9ca3dda9e1873476bd187040d131fd629635bc2" : standinSourceDigest();
|
|
44840
44840
|
}
|
|
44841
44841
|
});
|
|
44842
44842
|
|
|
@@ -56956,6 +56956,10 @@ function collectNitroCompileInput(collection, adapter, dependencies, iosDeployme
|
|
|
56956
56956
|
...target,
|
|
56957
56957
|
swiftFlags: [
|
|
56958
56958
|
"-enable-bare-slash-regex",
|
|
56959
|
+
"-Xfrontend",
|
|
56960
|
+
"-import-module",
|
|
56961
|
+
"-Xfrontend",
|
|
56962
|
+
"Foundation",
|
|
56959
56963
|
...ndebug.flatMap((flag) => ["-Xcc", flag]),
|
|
56960
56964
|
...target.swiftFlags ?? []
|
|
56961
56965
|
]
|
|
@@ -57460,7 +57464,7 @@ var init_nitro_superset = __esm({
|
|
|
57460
57464
|
init_nitroContract();
|
|
57461
57465
|
init_swift_standin_digest();
|
|
57462
57466
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
57463
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
57467
|
+
NITRO_COMPILER_DIGEST = true ? "79ec31dd869200198ab4f6c0e7379d262d62e5d0a26f026f7bf944a4860c6111" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
57464
57468
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
57465
57469
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
57466
57470
|
published = /* @__PURE__ */ new Map();
|
|
@@ -58677,7 +58681,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
58677
58681
|
|
|
58678
58682
|
// src/expo-native-prebuilt.ts
|
|
58679
58683
|
function expoNativeCompilerDigestValue() {
|
|
58680
|
-
return true ? "
|
|
58684
|
+
return true ? "85793d8dccf51ab0c5c612863919f38f87f8f77c902572f53f2192ca9d843885" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
58681
58685
|
}
|
|
58682
58686
|
function readSources(value) {
|
|
58683
58687
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -66134,7 +66138,7 @@ var import_node_path5 = require("node:path");
|
|
|
66134
66138
|
init_src();
|
|
66135
66139
|
|
|
66136
66140
|
// runtime-companion.json
|
|
66137
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
66141
|
+
var runtime_companion_default = { abi: 1, sha256: "6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84", file: "node/cli-6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84.cjs" };
|
|
66138
66142
|
|
|
66139
66143
|
// src/cli-runtime.ts
|
|
66140
66144
|
init_answeredNativePackages();
|
|
@@ -68013,7 +68017,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
68013
68017
|
"@react-native-ml-kit/text-recognition",
|
|
68014
68018
|
"@react-native-segmented-control/segmented-control",
|
|
68015
68019
|
"@react-native-seoul/naver-login",
|
|
68016
|
-
"@renegades/react-native-tickle",
|
|
68017
68020
|
"@rnw-community/react-native-payments",
|
|
68018
68021
|
"@rudderstack/rudder-integration-firebase-react-native",
|
|
68019
68022
|
"@rudderstack/rudder-sdk-react-native",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2276 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2475,7 +2475,7 @@ function isValidRuntimeVersion(value) {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
|
|
2477
2477
|
// runtime-companion.json
|
|
2478
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
2478
|
+
var runtime_companion_default = { abi: 1, sha256: "6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84", file: "node/cli-6a03f19d3f1cc74ffb32c491c983f6961cb6e11a559fa4943655bbcc786cda84.cjs" };
|
|
2479
2479
|
|
|
2480
2480
|
// src/answeredNativePackages.ts
|
|
2481
2481
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -10900,11 +10900,33 @@ var device = {
|
|
|
10900
10900
|
}
|
|
10901
10901
|
let producerOffsetMs = 0;
|
|
10902
10902
|
let nextFrameDurationMs = input.hold?.firstFrameOffsetMs;
|
|
10903
|
-
if (input.producerWitness)
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10903
|
+
if (input.producerWitness && (input.anchorAtTouch !== "up" || !driveStart.tenantFrame?.guestClockFrozen))
|
|
10904
|
+
throw new Error("producer witness requires a frozen delivered release clock");
|
|
10905
|
+
const nativeAnimationClock = input.producerWitness?.nativeAnimationClock;
|
|
10906
|
+
const producerFrames = input.producerWitness?.nativeProducerFrames?.map(
|
|
10907
|
+
(frame) => ({
|
|
10908
|
+
deliveryTimeMs: driveStart.virtualTimestampMs + frame.deliveryTimeMs,
|
|
10909
|
+
elapsedMs: frame.elapsedMs
|
|
10910
|
+
})
|
|
10911
|
+
);
|
|
10912
|
+
const producerFirstFrameMs = producerFrames?.[0]?.deliveryTimeMs ?? (input.producerWitness ? driveStart.virtualTimestampMs + input.producerWitness.nativeFirstFrameOffsetMs : null);
|
|
10913
|
+
const screenAnimationClock = nativeAnimationClock ? await controller.setScreenTransitionClock({
|
|
10914
|
+
startTimeMs: driveStart.virtualTimestampMs + nativeAnimationClock.startTimeMs,
|
|
10915
|
+
headerStartTimeMs: driveStart.virtualTimestampMs + nativeAnimationClock.headerStartTimeMs,
|
|
10916
|
+
frames: nativeAnimationClock.frames.map((frame) => ({
|
|
10917
|
+
callbackTimeMs: driveStart.virtualTimestampMs + frame.callbackTimeMs,
|
|
10918
|
+
timestampMs: driveStart.virtualTimestampMs + frame.timestampMs
|
|
10919
|
+
}))
|
|
10920
|
+
}) : null;
|
|
10921
|
+
if (nativeAnimationClock) {
|
|
10922
|
+
const test = captureWindow.SootSim?.bridges?.test;
|
|
10923
|
+
const entries = await test?.readProducerFrameCapture();
|
|
10924
|
+
const entry = entries?.[0];
|
|
10925
|
+
if (!test || entries?.length !== 1 || !entry || !producerFrames?.length)
|
|
10926
|
+
throw new Error("native frame replay requires one mounted producer");
|
|
10927
|
+
await test.replayProducerFrameClock(entry.id, producerFrames);
|
|
10928
|
+
}
|
|
10929
|
+
if (input.producerWitness && !nativeAnimationClock) {
|
|
10908
10930
|
const test = captureWindow.SootSim?.bridges?.test;
|
|
10909
10931
|
if (!test) throw new Error("producer witness requires the test bridge");
|
|
10910
10932
|
let witnessed = false;
|
|
@@ -10921,7 +10943,7 @@ var device = {
|
|
|
10921
10943
|
producerOffsetMs = entry.firstFrameMs - driveStart.virtualTimestampMs - input.producerWitness.nativeFirstFrameOffsetMs;
|
|
10922
10944
|
if (1e3 / 60 + producerOffsetMs <= 0)
|
|
10923
10945
|
throw new Error(
|
|
10924
|
-
`producer alignment precedes the next guest refresh: guest first callback ${entry.firstFrameMs - driveStart.virtualTimestampMs}ms after release, native first callback ${input.producerWitness.nativeFirstFrameOffsetMs}ms after release`
|
|
10946
|
+
`producer alignment precedes the next guest refresh: guest registered ${entry.registeredMs - driveStart.virtualTimestampMs}ms after release, guest first callback ${entry.firstFrameMs - driveStart.virtualTimestampMs}ms after release, native first callback ${input.producerWitness.nativeFirstFrameOffsetMs}ms after release`
|
|
10925
10947
|
);
|
|
10926
10948
|
nextFrameDurationMs = 1e3 / 60 + producerOffsetMs;
|
|
10927
10949
|
witnessed = true;
|
|
@@ -10937,6 +10959,8 @@ var device = {
|
|
|
10937
10959
|
const value = (await test.findByTestId(input.producerWitness.testId))?.accessibilityValue?.text;
|
|
10938
10960
|
const times = value?.split(",").map(Number);
|
|
10939
10961
|
if (times?.length === 6 && times.every(Number.isFinite)) {
|
|
10962
|
+
if (!driveStart.tenantFrame)
|
|
10963
|
+
throw new Error("producer witness has no tenant release frame");
|
|
10940
10964
|
const guestInputMs = driveStart.tenantFrame.guestNowMs;
|
|
10941
10965
|
if (Math.abs(times[0] * 1e3 - guestInputMs) > 0.01 || times[1] < times[0] || times[2] < times[1] || times[5] < times[0] || times[5] > times[2])
|
|
10942
10966
|
throw new Error(
|
|
@@ -11067,13 +11091,33 @@ var device = {
|
|
|
11067
11091
|
const snapshots = [];
|
|
11068
11092
|
const stepToTime = async (targetMs, sampledRefresh = false, label = "") => {
|
|
11069
11093
|
let receipt = currentReceipt;
|
|
11094
|
+
const nextFrameTime = () => {
|
|
11095
|
+
if (!nativeAnimationClock || producerFirstFrameMs === null)
|
|
11096
|
+
return receipt.virtualTimestampMs + (nextFrameDurationMs ?? 1e3 / 60);
|
|
11097
|
+
const producerFrame = producerFrames?.find(
|
|
11098
|
+
(frame) => frame.deliveryTimeMs > receipt.virtualTimestampMs + 1e-6
|
|
11099
|
+
)?.deliveryTimeMs ?? Infinity;
|
|
11100
|
+
const baselineFrame = driveStart.virtualTimestampMs + (Math.floor(
|
|
11101
|
+
(receipt.virtualTimestampMs - driveStart.virtualTimestampMs + 1e-6) / (1e3 / 60)
|
|
11102
|
+
) + 1) * (1e3 / 60);
|
|
11103
|
+
const managerFrame = nativeAnimationClock.frames.find(
|
|
11104
|
+
(frame) => driveStart.virtualTimestampMs + frame.callbackTimeMs > receipt.virtualTimestampMs + 1e-6
|
|
11105
|
+
);
|
|
11106
|
+
return Math.min(
|
|
11107
|
+
producerFrame,
|
|
11108
|
+
baselineFrame,
|
|
11109
|
+
managerFrame ? driveStart.virtualTimestampMs + managerFrame.callbackTimeMs : Infinity
|
|
11110
|
+
);
|
|
11111
|
+
};
|
|
11070
11112
|
if (targetMs < receipt.virtualTimestampMs - 0.01) {
|
|
11071
11113
|
throw new Error(
|
|
11072
11114
|
`sample time ${targetMs}ms of ${label} precedes the frames already stepped to ${receipt.virtualTimestampMs}ms (anchor ${driveStart.virtualTimestampMs}ms, producer offset ${producerOffsetMs}ms)`
|
|
11073
11115
|
);
|
|
11074
11116
|
}
|
|
11075
|
-
while (
|
|
11076
|
-
receipt = await controller.stepFrame(
|
|
11117
|
+
while (nextFrameTime() <= targetMs + 1e-6) {
|
|
11118
|
+
receipt = await controller.stepFrame(
|
|
11119
|
+
nextFrameTime() - receipt.virtualTimestampMs
|
|
11120
|
+
);
|
|
11077
11121
|
nextFrameDurationMs = void 0;
|
|
11078
11122
|
}
|
|
11079
11123
|
if (!sampledRefresh && targetMs - receipt.virtualTimestampMs > 0.01) {
|
|
@@ -11353,6 +11397,13 @@ var device = {
|
|
|
11353
11397
|
await new Promise((resolve3) => setTimeout(resolve3, 0));
|
|
11354
11398
|
}
|
|
11355
11399
|
const stats = input.workletFrameTimestampsSeconds ? await pairedPeerStats() : null;
|
|
11400
|
+
if (nativeAnimationClock) {
|
|
11401
|
+
const entries = await captureWindow.SootSim?.bridges?.test?.readProducerFrameCapture();
|
|
11402
|
+
const entry = entries?.[0];
|
|
11403
|
+
if (entries?.length !== 1 || !entry || entry.firstFrameMs === null || producerFirstFrameMs === null || Math.abs(entry.firstFrameMs - producerFirstFrameMs) > 1e-3)
|
|
11404
|
+
throw new Error("guest producer did not follow its witnessed frame clock");
|
|
11405
|
+
producerFrameWitness = entry;
|
|
11406
|
+
}
|
|
11356
11407
|
return {
|
|
11357
11408
|
workletFirstDelivery: stats ? {
|
|
11358
11409
|
first: stats.nativeFrameFirstTimestampMs,
|
|
@@ -11360,6 +11411,7 @@ var device = {
|
|
|
11360
11411
|
} : null,
|
|
11361
11412
|
inputReceipts: controller.inputReceipts,
|
|
11362
11413
|
producerFrameWitness,
|
|
11414
|
+
screenAnimationClock,
|
|
11363
11415
|
anchors: anchorRecords,
|
|
11364
11416
|
driveStart: {
|
|
11365
11417
|
frameIndex: driveStart.frameIndex,
|
|
@@ -11474,6 +11526,7 @@ var device = {
|
|
|
11474
11526
|
return {
|
|
11475
11527
|
inputReceipts: capture.inputReceipts,
|
|
11476
11528
|
producerFrameWitness: capture.producerFrameWitness,
|
|
11529
|
+
screenAnimationClock: capture.screenAnimationClock,
|
|
11477
11530
|
anchors: capture.anchors,
|
|
11478
11531
|
driveStart: capture.driveStart,
|
|
11479
11532
|
frames: writeFastScreenshotFrames(namePrefix, capture.frames),
|