peachsim 0.1.1873 → 0.1.1875
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/commands/do-chain.ts +1 -1
- package/cli/commands/inspect/settling.ts +132 -92
- package/cli/outbound-endpoints.ts +4 -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 +53 -21
- 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 +141 -102
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +32 -15
- 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 +49 -21
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +120 -94
- 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 +2 -2
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +119 -93
- package/dist-lib/sdk.mjs +119 -93
- package/dist-lib/skills.cjs +163 -111
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/skills/contrast/SKILL.md +3 -2
- package/src/expo-native-prebuilt.ts +4 -2
- package/src/native-bundles.ts +5 -1
- package/src/nitroContract.ts +43 -12
- package/src/sim-client.ts +4 -2
- package/src/swift-host.ts +5 -1
- package/src/turbo-bundle.ts +14 -1
- package/src/turbo-source.ts +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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;
|
|
@@ -6922,7 +6922,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
6922
6922
|
init_version();
|
|
6923
6923
|
|
|
6924
6924
|
// runtime-companion.json
|
|
6925
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
6925
|
+
var runtime_companion_default = { abi: 1, sha256: "f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467", file: "node/cli-f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467.cjs" };
|
|
6926
6926
|
|
|
6927
6927
|
// src/answeredNativePackages.ts
|
|
6928
6928
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -9972,6 +9972,105 @@ var IdleObservationError = class extends Error {
|
|
|
9972
9972
|
}
|
|
9973
9973
|
code = "idle_observation_failed";
|
|
9974
9974
|
};
|
|
9975
|
+
function renderActivityIdleScript({
|
|
9976
|
+
maxMs,
|
|
9977
|
+
requiredStillMs,
|
|
9978
|
+
transitionStartWindowMs,
|
|
9979
|
+
transitionTimeoutMs
|
|
9980
|
+
}) {
|
|
9981
|
+
return `(async () => {
|
|
9982
|
+
const start = Date.now()
|
|
9983
|
+
const budgetMs = ${Math.max(0, Math.round(maxMs))}
|
|
9984
|
+
const requiredStillMs = ${Math.max(1, Math.round(requiredStillMs))}
|
|
9985
|
+
let deadline = start + budgetMs
|
|
9986
|
+
// with no tenant running, nothing an app draws can move.
|
|
9987
|
+
const host = window.__sootsimRenderHost ?? null
|
|
9988
|
+
const initial = host ? host.getRenderActivity() : null
|
|
9989
|
+
// a published frame proves the idle flag is an observed worker state, not
|
|
9990
|
+
// the host's pre-boot default, so its idle interval counts from now even
|
|
9991
|
+
// when the busy-to-idle edge preceded this wait.
|
|
9992
|
+
let busySeen = !initial || initial.busy || initial.frameToken > 0
|
|
9993
|
+
let idleSince = !initial || (!initial.busy && initial.frameToken > 0) ? start : null
|
|
9994
|
+
let wake = null
|
|
9995
|
+
const notify = () => {
|
|
9996
|
+
const resolve = wake
|
|
9997
|
+
wake = null
|
|
9998
|
+
resolve?.()
|
|
9999
|
+
}
|
|
10000
|
+
const unsubscribe = host?.subscribeRenderActivity(() => {
|
|
10001
|
+
if (host.getRenderActivity().busy) {
|
|
10002
|
+
busySeen = true
|
|
10003
|
+
idleSince = null
|
|
10004
|
+
} else if (busySeen && idleSince === null) {
|
|
10005
|
+
idleSince = Date.now()
|
|
10006
|
+
}
|
|
10007
|
+
notify()
|
|
10008
|
+
})
|
|
10009
|
+
// a started screen transition moves the deadline: it drains, then the
|
|
10010
|
+
// budget proves the new screen. a loaded host runs a push past a tap's
|
|
10011
|
+
// budget, so the transition carries its own timeout.
|
|
10012
|
+
let transitionEndedAt = null
|
|
10013
|
+
let transitionPending = budgetMs > 120 && typeof window.__sootsimTest?.waitForScreenTransitions === 'function'
|
|
10014
|
+
if (transitionPending) {
|
|
10015
|
+
Promise.resolve()
|
|
10016
|
+
.then(() => window.__sootsimTest.waitForScreenTransitions({
|
|
10017
|
+
timeoutMs: ${Math.max(0, Math.round(transitionTimeoutMs))},
|
|
10018
|
+
settleMs: 64,
|
|
10019
|
+
startWindowMs: ${Math.max(0, Math.round(transitionStartWindowMs))},
|
|
10020
|
+
}))
|
|
10021
|
+
.then((transition) => {
|
|
10022
|
+
if (transition?.started !== true) return
|
|
10023
|
+
// a loaded worker replies after the motion stopped and says how long ago.
|
|
10024
|
+
transitionEndedAt = Date.now() - Math.max(0, transition.restedMs ?? 0)
|
|
10025
|
+
deadline = Math.max(deadline, transitionEndedAt + budgetMs)
|
|
10026
|
+
}, () => {})
|
|
10027
|
+
.finally(() => {
|
|
10028
|
+
transitionPending = false
|
|
10029
|
+
notify()
|
|
10030
|
+
})
|
|
10031
|
+
}
|
|
10032
|
+
try {
|
|
10033
|
+
while (true) {
|
|
10034
|
+
const now = Date.now()
|
|
10035
|
+
const quietSince = idleSince === null ? null : Math.max(idleSince, transitionEndedAt ?? idleSince)
|
|
10036
|
+
if (!transitionPending && quietSince !== null && now - quietSince >= requiredStillMs) {
|
|
10037
|
+
return { settled: true, elapsed: now - start, blockedBy: '' }
|
|
10038
|
+
}
|
|
10039
|
+
if (!transitionPending && now >= deadline) break
|
|
10040
|
+
const until = !transitionPending && quietSince !== null
|
|
10041
|
+
? Math.min(quietSince + requiredStillMs, deadline)
|
|
10042
|
+
: deadline
|
|
10043
|
+
let timer = null
|
|
10044
|
+
await new Promise((resolve) => {
|
|
10045
|
+
wake = resolve
|
|
10046
|
+
if (until > now) timer = setTimeout(notify, until - now)
|
|
10047
|
+
})
|
|
10048
|
+
clearTimeout(timer)
|
|
10049
|
+
}
|
|
10050
|
+
} finally {
|
|
10051
|
+
unsubscribe?.()
|
|
10052
|
+
}
|
|
10053
|
+
const blockers = []
|
|
10054
|
+
const stats = await Promise.race([
|
|
10055
|
+
Promise.resolve().then(() => host?.queryStats()).catch(() => null),
|
|
10056
|
+
new Promise((resolve) => setTimeout(() => resolve(null), 500)),
|
|
10057
|
+
])
|
|
10058
|
+
if (stats) {
|
|
10059
|
+
if (stats.hasActiveAnims) blockers.push('animations still running')
|
|
10060
|
+
if (stats.hasActiveBlockingNativeAnimations) blockers.push('native animations still running')
|
|
10061
|
+
if (stats.hasPendingBlockingAnimationFrames) blockers.push('frame callbacks still pending')
|
|
10062
|
+
if (stats.layoutDirty && stats.renderRequested) blockers.push('layout still dirty')
|
|
10063
|
+
}
|
|
10064
|
+
if (!blockers.length) blockers.push(idleSince === null ? 'tenant render activity still busy' : 'motion ended before stillness was proven')
|
|
10065
|
+
return {
|
|
10066
|
+
settled: false,
|
|
10067
|
+
elapsed: Date.now() - start,
|
|
10068
|
+
blockedBy: blockers.join(', ') + '; tenant activity ' + JSON.stringify({
|
|
10069
|
+
initial, current: host?.getRenderActivity() ?? null, busySeen, idleSince, transitionEndedAt, startedAt: start,
|
|
10070
|
+
}),
|
|
10071
|
+
}
|
|
10072
|
+
})()`;
|
|
10073
|
+
}
|
|
9975
10074
|
async function waitForSootsimIdle({
|
|
9976
10075
|
bridge,
|
|
9977
10076
|
simId,
|
|
@@ -9993,7 +10092,12 @@ async function waitForSootsimIdle({
|
|
|
9993
10092
|
{
|
|
9994
10093
|
type: "evaluate",
|
|
9995
10094
|
simId,
|
|
9996
|
-
code:
|
|
10095
|
+
code: motionOnly ? renderActivityIdleScript({
|
|
10096
|
+
maxMs,
|
|
10097
|
+
requiredStillMs: Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs)),
|
|
10098
|
+
transitionStartWindowMs,
|
|
10099
|
+
transitionTimeoutMs
|
|
10100
|
+
}) : `(async () => {
|
|
9997
10101
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
9998
10102
|
// tests inject a virtual clock as window.__sootsimIdleClock ({ now, sleep })
|
|
9999
10103
|
// so the stillness window is proven in virtual time: real-timer polls under
|
|
@@ -10016,13 +10120,12 @@ async function waitForSootsimIdle({
|
|
|
10016
10120
|
const maestro = ${maestro ? "true" : "false"}
|
|
10017
10121
|
const accessibilityBounds = ${accessibilityBounds.toString()}
|
|
10018
10122
|
const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
|
|
10019
|
-
const motionOnly = ${motionOnly ? "true" : "false"}
|
|
10020
10123
|
const readyPlayback = ${readyPlayback ? "true" : "false"}
|
|
10021
10124
|
// full mounted-geometry observation needs at least two hierarchy reads
|
|
10022
10125
|
// plus the stillness window, which a sub-second budget cannot afford:
|
|
10023
10126
|
// tight budgets (auto-wait) settle on worker stillness plus root
|
|
10024
10127
|
// membership, generous ones confirm the geometry too.
|
|
10025
|
-
const fullGeometry = ${!maestro &&
|
|
10128
|
+
const fullGeometry = ${!maestro && maxMs >= 1e3 ? "true" : "false"}
|
|
10026
10129
|
const requiredStillMs = paintStill ? 0 : ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
|
|
10027
10130
|
const minimumStablePolls = paintStill ? 1 : ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
|
|
10028
10131
|
const composite = paintStill ? window.SootSim?.bridges?.liveComposite : null
|
|
@@ -10032,50 +10135,7 @@ async function waitForSootsimIdle({
|
|
|
10032
10135
|
// subscribe to presented frames; authoritative screenshots force a
|
|
10033
10136
|
// worker render, which changes the very counter we used to inspect.
|
|
10034
10137
|
const unsubscribe = composite?.subscribe(() => {})
|
|
10035
|
-
// the tenant pushes each busy change to the page on the port its stats
|
|
10036
|
-
// replies use, so a wait on motion alone learns when the worker went
|
|
10037
|
-
// idle without asking it. its busy flag covers render work, guest and
|
|
10038
|
-
// blocking native animation, blocking frame callbacks and text waits,
|
|
10039
|
-
// everything a motion-only poll reads from it, so once it has held idle
|
|
10040
|
-
// for the still window that proves stillness without a poll: a worker
|
|
10041
|
-
// too loaded to answer twice within a gesture's budget still settles
|
|
10042
|
-
// once its motion ends.
|
|
10043
|
-
const activityHost = motionOnly ? window.__sootsimRenderHost : null
|
|
10044
|
-
const initialActivity = activityHost?.getRenderActivity?.()
|
|
10045
|
-
// a published frame proves this is an observed worker state, rather than
|
|
10046
|
-
// the host's pre-boot default. subscribe to its continuous idle interval
|
|
10047
|
-
// even when the busy-to-idle edge preceded this command.
|
|
10048
|
-
let busySeen = initialActivity?.busy === true || initialActivity?.frameToken > 0
|
|
10049
|
-
let idleSince = initialActivity?.busy === false && initialActivity?.frameToken > 0
|
|
10050
|
-
? clockNow()
|
|
10051
|
-
: null
|
|
10052
|
-
let idleWaiters = []
|
|
10053
|
-
const unsubscribeActivity = activityHost?.subscribeRenderActivity?.(() => {
|
|
10054
|
-
if (activityHost.getRenderActivity().busy) {
|
|
10055
|
-
busySeen = true
|
|
10056
|
-
idleSince = null
|
|
10057
|
-
} else if (busySeen && idleSince === null) {
|
|
10058
|
-
idleSince = clockNow()
|
|
10059
|
-
const waiters = idleWaiters
|
|
10060
|
-
idleWaiters = []
|
|
10061
|
-
for (const waiter of waiters) waiter()
|
|
10062
|
-
}
|
|
10063
|
-
})
|
|
10064
10138
|
let transitionEndedAt = null
|
|
10065
|
-
// resolves once both the tenant and any drained transition have held idle.
|
|
10066
|
-
const idleHeld = () =>
|
|
10067
|
-
new Promise((resolve) => {
|
|
10068
|
-
const check = () => {
|
|
10069
|
-
if (idleSince === null) idleWaiters.push(check)
|
|
10070
|
-
else {
|
|
10071
|
-
const quietSince = Math.max(idleSince, transitionEndedAt ?? idleSince)
|
|
10072
|
-
const remaining = requiredStillMs - (clockNow() - quietSince)
|
|
10073
|
-
if (remaining <= 0) resolve(true)
|
|
10074
|
-
else setTimeout(check, Math.max(1, remaining))
|
|
10075
|
-
}
|
|
10076
|
-
}
|
|
10077
|
-
check()
|
|
10078
|
-
})
|
|
10079
10139
|
let pixelFrameToken = -1
|
|
10080
10140
|
let screenPixels = null
|
|
10081
10141
|
// the hierarchy read last taken and the geometry revision it answered.
|
|
@@ -10157,7 +10217,7 @@ async function waitForSootsimIdle({
|
|
|
10157
10217
|
// and realizes its pixels. both owners must finish before settling.
|
|
10158
10218
|
// the compositor rejects a stats request it is too busy to answer.
|
|
10159
10219
|
const compositorRead = answer(() => window.__sootsimCompositor.getStats({ detail: 'readiness' })).catch(() => BUSY)
|
|
10160
|
-
const countsRead =
|
|
10220
|
+
const countsRead = answer(() => window.__sootsimTest?.getRequestCounts?.()).catch(() => null)
|
|
10161
10221
|
// the mounted hierarchy in render-worker mode comes from the test
|
|
10162
10222
|
// bridge: window.__sootsimRoot is an empty placeholder there, so a
|
|
10163
10223
|
// walk over it hashes every screen to the same empty string while
|
|
@@ -10446,7 +10506,6 @@ async function waitForSootsimIdle({
|
|
|
10446
10506
|
const hierarchyUnchanged = (current, previous) =>
|
|
10447
10507
|
current !== null && previous !== null && current.length === previous.length &&
|
|
10448
10508
|
current.every((node, index) => sameNativeAccessibilityShape(node, previous[index], accessibilityBounds))
|
|
10449
|
-
const IDLE_HELD = { idleHeld: true }
|
|
10450
10509
|
while (true) {
|
|
10451
10510
|
if (clockNow() >= deadline) {
|
|
10452
10511
|
if (!transitionWait) break
|
|
@@ -10458,33 +10517,7 @@ async function waitForSootsimIdle({
|
|
|
10458
10517
|
if (clockNow() >= deadline) break
|
|
10459
10518
|
}
|
|
10460
10519
|
const pollStarted = clockNow()
|
|
10461
|
-
const
|
|
10462
|
-
let snapshot = activityHost
|
|
10463
|
-
? await Promise.race([read, idleHeld().then(() => IDLE_HELD)])
|
|
10464
|
-
: await read
|
|
10465
|
-
// a completed read can win the race before a delayed timer callback.
|
|
10466
|
-
// the recorded idle interval remains evidence even on that turn.
|
|
10467
|
-
const idleProven = () => {
|
|
10468
|
-
const quietSince = Math.max(idleSince ?? Infinity, transitionEndedAt ?? 0)
|
|
10469
|
-
return idleSince !== null && quietSince + requiredStillMs <= deadline && clockNow() - quietSince >= requiredStillMs
|
|
10470
|
-
}
|
|
10471
|
-
while (activityHost && (snapshot === IDLE_HELD || idleProven())) {
|
|
10472
|
-
if (transitionWait) {
|
|
10473
|
-
await transitionWait
|
|
10474
|
-
transitionWait = null
|
|
10475
|
-
}
|
|
10476
|
-
if (idleProven()) {
|
|
10477
|
-
return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
|
|
10478
|
-
}
|
|
10479
|
-
if (clockNow() >= deadline) {
|
|
10480
|
-
snapshot = await read
|
|
10481
|
-
break
|
|
10482
|
-
}
|
|
10483
|
-
// a transition can drain after the first idle interval. keep the
|
|
10484
|
-
// pushed evidence armed while its remaining quiet interval holds;
|
|
10485
|
-
// awaiting only the in-flight stats read would discard that proof.
|
|
10486
|
-
snapshot = await Promise.race([read, idleHeld().then(() => IDLE_HELD)])
|
|
10487
|
-
}
|
|
10520
|
+
const snapshot = await readSnapshot()
|
|
10488
10521
|
if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
|
|
10489
10522
|
// a read the deadline cut short observed nothing: the last full poll
|
|
10490
10523
|
// names what held the settle, not a worker that ran out of budget.
|
|
@@ -10529,7 +10562,7 @@ async function waitForSootsimIdle({
|
|
|
10529
10562
|
!snapshot.animating &&
|
|
10530
10563
|
!snapshot.shellAnimating &&
|
|
10531
10564
|
!snapshot.layoutDirty &&
|
|
10532
|
-
|
|
10565
|
+
snapshot.pendingFetches === 0 &&
|
|
10533
10566
|
!snapshot.workerBusy &&
|
|
10534
10567
|
!snapshot.webViewStarting
|
|
10535
10568
|
const visuallyStill = maestro ? maestroStill :
|
|
@@ -10561,7 +10594,7 @@ async function waitForSootsimIdle({
|
|
|
10561
10594
|
// grace (continuous background traffic must not block forever).
|
|
10562
10595
|
if (
|
|
10563
10596
|
stillProven() &&
|
|
10564
|
-
(maestro ||
|
|
10597
|
+
(maestro || networkQuiet || clockNow() - visuallyStillSince >= networkQuietGraceMs)
|
|
10565
10598
|
) {
|
|
10566
10599
|
if (transitionWait) {
|
|
10567
10600
|
await transitionWait
|
|
@@ -10586,13 +10619,6 @@ async function waitForSootsimIdle({
|
|
|
10586
10619
|
const remainingPollMs = pollMs - (clockNow() - pollStarted)
|
|
10587
10620
|
if (remainingPollMs > 0) await clockSleep(remainingPollMs)
|
|
10588
10621
|
}
|
|
10589
|
-
if (activityHost && idleSince !== null && idleSince + requiredStillMs <= deadline) {
|
|
10590
|
-
if (transitionWait) await transitionWait
|
|
10591
|
-
const quietSince = Math.max(idleSince ?? Infinity, transitionEndedAt ?? 0)
|
|
10592
|
-
if (quietSince + requiredStillMs <= deadline && clockNow() - quietSince >= requiredStillMs) {
|
|
10593
|
-
return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
|
|
10594
|
-
}
|
|
10595
|
-
}
|
|
10596
10622
|
if (!report) {
|
|
10597
10623
|
return { settled: false, elapsed: clockNow() - start, blockedBy: 'no poll fit the budget' }
|
|
10598
10624
|
}
|
|
@@ -10604,15 +10630,15 @@ async function waitForSootsimIdle({
|
|
|
10604
10630
|
if (!maestro && last.layoutDirty) blockers.push('layout still dirty')
|
|
10605
10631
|
if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
|
|
10606
10632
|
if (!maestro && last.nodeCount !== null && report.nodeCount !== null && last.nodeCount !== report.nodeCount) blockers.push('node count still changing')
|
|
10607
|
-
if (!maestro &&
|
|
10633
|
+
if (!maestro && last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
|
|
10608
10634
|
if (last.workerBusy) blockers.push('a render worker too busy to report')
|
|
10609
10635
|
if (last.webViewStarting) blockers.push(last.webViewBlocker || 'webView still starting')
|
|
10610
10636
|
if (!maestro && last.layout !== report.layout) blockers.push('layout still changing')
|
|
10611
10637
|
if (maestro && !hierarchyUnchanged(last.nativeHierarchy, report.nativeHierarchy)) blockers.push(last.nativeHierarchy === null ? 'native accessibility hierarchy unavailable' : 'native accessibility hierarchy still changing')
|
|
10612
10638
|
if (paintStill && !last.screenPixels) blockers.push('screen pixels unavailable')
|
|
10613
10639
|
else if (paintStill && !screenUnchanged(last.screenPixels, report.screenPixels)) blockers.push('screen pixels still changing')
|
|
10614
|
-
if (!maestro &&
|
|
10615
|
-
else if (!maestro &&
|
|
10640
|
+
if (!maestro && last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
|
|
10641
|
+
else if (!maestro && last.requestTotal !== report.requestTotal) blockers.push('new requests issued')
|
|
10616
10642
|
if (polls < 2) blockers.push('sim too busy to poll twice')
|
|
10617
10643
|
// the last read is still: motion ended too near the deadline for the
|
|
10618
10644
|
// stillness window to hold before it.
|
|
@@ -10623,12 +10649,10 @@ async function waitForSootsimIdle({
|
|
|
10623
10649
|
blockedBy:
|
|
10624
10650
|
blockers.join(', ') + ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
|
|
10625
10651
|
'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, webViewStarting ' + webViewStartingPolls + 'x, screen changed ' + screenChangedPolls + 'x)' +
|
|
10626
|
-
(lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : '')
|
|
10627
|
-
(activityHost ? '; tenant activity ' + JSON.stringify({ initial: initialActivity, current: activityHost.getRenderActivity?.(), busySeen, idleSince, transitionEndedAt, startedAt: start }) : ''),
|
|
10652
|
+
(lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : ''),
|
|
10628
10653
|
}
|
|
10629
10654
|
} finally {
|
|
10630
10655
|
unsubscribe?.()
|
|
10631
|
-
unsubscribeActivity?.()
|
|
10632
10656
|
}
|
|
10633
10657
|
})()`
|
|
10634
10658
|
},
|
|
@@ -11233,13 +11257,15 @@ var SimClient = class {
|
|
|
11233
11257
|
* wait for layout/animation/transition settle after an interaction.
|
|
11234
11258
|
* a still-busy guest returns settled false with its own elapsed time.
|
|
11235
11259
|
* a failed idle read throws IdleObservationError with the host elapsed
|
|
11236
|
-
* time and the original failure.
|
|
11260
|
+
* time and the original failure. motionOnly waits on pushed render activity
|
|
11261
|
+
* and screen transitions alone, the settle that follows a gesture.
|
|
11237
11262
|
*/
|
|
11238
11263
|
settle(opts = {}) {
|
|
11239
11264
|
return waitForSootsimIdle({
|
|
11240
11265
|
bridge: this,
|
|
11241
11266
|
maxMs: opts.maxMs ?? 3e3,
|
|
11242
|
-
strict: opts.strict
|
|
11267
|
+
strict: opts.strict,
|
|
11268
|
+
...opts.motionOnly ? { motionOnly: true, pollMs: 32, stablePolls: 2 } : {}
|
|
11243
11269
|
});
|
|
11244
11270
|
}
|
|
11245
11271
|
// --- read verbs ---
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (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;
|
package/dist-lib/kotlin-host.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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/menu.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __esm = (fn, res) => function __init() {
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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;
|
|
@@ -11189,7 +11189,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
11189
11189
|
init_version();
|
|
11190
11190
|
|
|
11191
11191
|
// runtime-companion.json
|
|
11192
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
11192
|
+
var runtime_companion_default = { abi: 1, sha256: "f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467", file: "node/cli-f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467.cjs" };
|
|
11193
11193
|
|
|
11194
11194
|
// src/answeredNativePackages.ts
|
|
11195
11195
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (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.1875 | (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/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1875 | (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.1875 | (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;
|