peachsim 0.1.761 → 0.1.763
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 +5 -0
- package/cli/bridge-flow-runner.ts +3 -4
- package/cli/commands/inspect/settling.ts +193 -162
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +44 -37
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +191 -159
- 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 +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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +191 -159
- package/dist-lib/sdk.mjs +191 -159
- package/dist-lib/skills.cjs +240 -202
- 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 +1 -1
- package/package.json +1 -1
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.763 | (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);
|
|
@@ -1427,179 +1427,211 @@ async function waitForSootsimIdle({
|
|
|
1427
1427
|
const start = Date.now()
|
|
1428
1428
|
const deadline = start + ${Math.max(0, Math.round(maxMs))}
|
|
1429
1429
|
const pollMs = ${Math.max(1, Math.round(pollMs))}
|
|
1430
|
-
const requiredStillMs = ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
|
|
1431
|
-
const minimumStablePolls = ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
|
|
1432
1430
|
const strict = ${strict ? "true" : "false"}
|
|
1433
1431
|
const paintStill = ${paintStill ? "true" : "false"}
|
|
1432
|
+
const requiredStillMs = paintStill ? 0 : ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
|
|
1433
|
+
const minimumStablePolls = paintStill ? 1 : ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
|
|
1434
1434
|
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
//
|
|
1440
|
-
//
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1435
|
+
const composite = paintStill ? window.SootSim?.bridges?.liveComposite : null
|
|
1436
|
+
if (paintStill && !composite) {
|
|
1437
|
+
return { settled: false, elapsed: Date.now() - start, blockedBy: 'screen pixels unavailable' }
|
|
1438
|
+
}
|
|
1439
|
+
// subscribe to presented frames; authoritative screenshots force a
|
|
1440
|
+
// worker render, which changes the very counter we used to inspect.
|
|
1441
|
+
const unsubscribe = composite?.subscribe(() => {})
|
|
1442
|
+
let pixelFrameToken = -1
|
|
1443
|
+
let screenPixels = null
|
|
1444
1444
|
try {
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1445
|
+
|
|
1446
|
+
// route-aware settle: a tap that pushes/pops a screen is async \u2014 the
|
|
1447
|
+
// old screen still renders for a moment, then the new one mounts and
|
|
1448
|
+
// its content loads. a pure layout-hash check reports "idle" on the
|
|
1449
|
+
// outgoing screen or on the incoming skeleton, so a driver re-taps
|
|
1450
|
+
// and stacks duplicate navigations. drain any in-flight screen
|
|
1451
|
+
// transition FIRST, bounded by the overall budget. when no
|
|
1452
|
+
// transition is happening this returns in ~80ms (startWindowMs), so
|
|
1453
|
+
// a plain button tap barely pays for it.
|
|
1454
|
+
try {
|
|
1455
|
+
const wfst = window.__sootsimTest?.waitForScreenTransitions
|
|
1456
|
+
if (typeof wfst === 'function') {
|
|
1457
|
+
const remaining = deadline - Date.now()
|
|
1458
|
+
if (remaining > 120) {
|
|
1459
|
+
await wfst({
|
|
1460
|
+
timeoutMs: Math.min(remaining - 80, 4000),
|
|
1461
|
+
settleMs: 64,
|
|
1462
|
+
startWindowMs: 80,
|
|
1463
|
+
})
|
|
1464
|
+
}
|
|
1454
1465
|
}
|
|
1455
|
-
}
|
|
1456
|
-
} catch {}
|
|
1466
|
+
} catch {}
|
|
1457
1467
|
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1468
|
+
const readSnapshot = async () => {
|
|
1469
|
+
let animating = false
|
|
1470
|
+
let layoutDirty = false
|
|
1471
|
+
let pendingFetches = 0
|
|
1472
|
+
let requestTotal = 0
|
|
1473
|
+
let requestInFlight = 0
|
|
1474
|
+
let renderStatsAvailable = false
|
|
1475
|
+
let shellAnimating = false
|
|
1476
|
+
// strict also waits out shell motion: a system alert, sheet or menu
|
|
1477
|
+
// animates in the shell worker while the app's own stats read still,
|
|
1478
|
+
// so its presentation is complete only once the shell's list empties.
|
|
1479
|
+
if (strict) {
|
|
1480
|
+
try {
|
|
1481
|
+
const motion = await window.__sootsimTest?.listAnimations?.()
|
|
1482
|
+
shellAnimating = Array.isArray(motion) && motion.some((anim) => anim.realm === 'shell')
|
|
1483
|
+
} catch {}
|
|
1484
|
+
}
|
|
1471
1485
|
try {
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1486
|
+
const stats = await window.__sootsimRenderHost?.queryStats?.()
|
|
1487
|
+
if (stats) {
|
|
1488
|
+
renderStatsAvailable = true
|
|
1489
|
+
animating =
|
|
1490
|
+
stats.hasActiveAnims === true ||
|
|
1491
|
+
stats.hasActiveNativeAnimations === true ||
|
|
1492
|
+
stats.hasPendingAnimationFrames === true
|
|
1493
|
+
layoutDirty =
|
|
1494
|
+
stats.layoutDirty === true && stats.renderRequested === true
|
|
1495
|
+
// a freshly-pushed screen showing a skeleton is layout-stable
|
|
1496
|
+
// but not actually settled \u2014 its data/images are still in
|
|
1497
|
+
// flight. treat bounded image-loader fetches as not-idle so
|
|
1498
|
+
// settle waits for real content, capped by the budget.
|
|
1499
|
+
const pf = stats.memory && stats.memory.imageLoader
|
|
1500
|
+
? stats.memory.imageLoader.pendingFetches
|
|
1501
|
+
: 0
|
|
1502
|
+
pendingFetches = typeof pf === 'number' ? pf : 0
|
|
1503
|
+
}
|
|
1474
1504
|
} catch {}
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
// settle waits for real content, capped by the budget.
|
|
1491
|
-
const pf = stats.memory && stats.memory.imageLoader
|
|
1492
|
-
? stats.memory.imageLoader.pendingFetches
|
|
1493
|
-
: 0
|
|
1494
|
-
pendingFetches = typeof pf === 'number' ? pf : 0
|
|
1505
|
+
try {
|
|
1506
|
+
const counts = await window.__sootsimTest?.getRequestCounts?.()
|
|
1507
|
+
requestTotal = typeof counts?.total === 'number' ? counts.total : 0
|
|
1508
|
+
requestInFlight = typeof counts?.inFlight === 'number' ? counts.inFlight : 0
|
|
1509
|
+
} catch {}
|
|
1510
|
+
const root = window.__sootsimRoot
|
|
1511
|
+
const nodes = []
|
|
1512
|
+
if (root) {
|
|
1513
|
+
const walk = (n) => {
|
|
1514
|
+
if (n.layout && n.layout.width > 0) {
|
|
1515
|
+
nodes.push(Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width))
|
|
1516
|
+
}
|
|
1517
|
+
for (const c of n.children || []) walk(c)
|
|
1518
|
+
}
|
|
1519
|
+
walk(root)
|
|
1495
1520
|
}
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
if (n.layout && n.layout.width > 0) {
|
|
1507
|
-
nodes.push(Math.round(n.layout.x) + ',' + Math.round(n.layout.y) + ',' + Math.round(n.layout.width))
|
|
1521
|
+
if (paintStill) {
|
|
1522
|
+
const canvas = composite.getCanvas()
|
|
1523
|
+
const token = composite.getFrameToken()
|
|
1524
|
+
if (!canvas || canvas.width <= 1 || canvas.height <= 1) {
|
|
1525
|
+
screenPixels = null
|
|
1526
|
+
} else if (token !== pixelFrameToken || canvas.width !== screenPixels?.width || canvas.height !== screenPixels?.height) {
|
|
1527
|
+
const context = canvas.getContext('2d')
|
|
1528
|
+
const image = context?.getImageData(0, 0, canvas.width, canvas.height)
|
|
1529
|
+
screenPixels = image ? { width: image.width, height: image.height, data: new Uint32Array(image.data.buffer) } : null
|
|
1530
|
+
pixelFrameToken = token
|
|
1508
1531
|
}
|
|
1509
|
-
for (const c of n.children || []) walk(c)
|
|
1510
1532
|
}
|
|
1511
|
-
|
|
1533
|
+
return { layout: nodes.join(';'), screenPixels, animating, shellAnimating, layoutDirty, pendingFetches, renderStatsAvailable, requestTotal, requestInFlight }
|
|
1512
1534
|
}
|
|
1513
|
-
return { layout: nodes.join(';'), frameCount, animating, shellAnimating, layoutDirty, pendingFetches, renderStatsAvailable, requestTotal, requestInFlight }
|
|
1514
|
-
}
|
|
1515
1535
|
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
if (polls > 1 && snapshot.layout !== lastLayout) layoutChangedPolls++
|
|
1546
|
-
const painted = paintStill && snapshot.frameCount !== lastFrameCount
|
|
1547
|
-
if (polls > 1 && painted) paintedPolls++
|
|
1548
|
-
const strictOk =
|
|
1549
|
-
!strict ||
|
|
1550
|
-
(snapshot.renderStatsAvailable &&
|
|
1551
|
-
!snapshot.animating &&
|
|
1552
|
-
!snapshot.shellAnimating &&
|
|
1553
|
-
!snapshot.layoutDirty)
|
|
1554
|
-
// visually settled: no animations, no image content loading, layout
|
|
1555
|
-
// unchanged since the last poll.
|
|
1556
|
-
const visuallyStill =
|
|
1557
|
-
strictOk &&
|
|
1558
|
-
!painted &&
|
|
1559
|
-
snapshot.pendingFetches === 0 &&
|
|
1560
|
-
snapshot.layout === lastLayout
|
|
1561
|
-
// generic network quiet: nothing in flight and no new requests issued.
|
|
1562
|
-
const networkQuiet =
|
|
1563
|
-
snapshot.requestInFlight === 0 && snapshot.requestTotal === lastRequestTotal
|
|
1564
|
-
if (visuallyStill) {
|
|
1565
|
-
stable++
|
|
1566
|
-
if (visuallyStillSince === 0) visuallyStillSince = Date.now()
|
|
1567
|
-
// settle once the screen has held still long enough AND either the
|
|
1568
|
-
// network is genuinely quiet OR it has refused to quiet within the
|
|
1569
|
-
// grace (continuous background traffic must not block forever).
|
|
1570
|
-
if (
|
|
1571
|
-
stable >= minimumStablePolls &&
|
|
1572
|
-
Date.now() - visuallyStillSince >= requiredStillMs &&
|
|
1573
|
-
(networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
|
|
1574
|
-
) {
|
|
1575
|
-
return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
|
|
1536
|
+
// how long generic background network is allowed to keep us waiting AFTER
|
|
1537
|
+
// the screen is otherwise visually settled. apps with continuous traffic
|
|
1538
|
+
// (polling, realtime sockets, a tap that fires 20-50 fetches) never reach
|
|
1539
|
+
// requestInFlight===0 / a stable requestTotal, so requiring full network
|
|
1540
|
+
// quiet burns the ENTIRE budget on every command \u2014 the leading idle that
|
|
1541
|
+
// failed PR-preview recordings for network-heavy apps (3pc fight-pulse).
|
|
1542
|
+
// layout-stability + the image-loader already prove visible content
|
|
1543
|
+
// loaded (a data load changes layout; an image load shows in the loader),
|
|
1544
|
+
// so the generic request counters are a courtesy, not a gate: honor them
|
|
1545
|
+
// only within this grace once the screen is visually still.
|
|
1546
|
+
const networkQuietGraceMs = 1200
|
|
1547
|
+
let lastLayout = ''
|
|
1548
|
+
let lastScreenPixels = null
|
|
1549
|
+
let screenChangedPolls = 0
|
|
1550
|
+
let lastRequestTotal = -1
|
|
1551
|
+
let stable = 0
|
|
1552
|
+
let visuallyStillSince = 0
|
|
1553
|
+
// counts across the whole budget: a flag that is true on every poll is a
|
|
1554
|
+
// different bug from one that is true intermittently, and the two need
|
|
1555
|
+
// opposite fixes (engine vs budget).
|
|
1556
|
+
let polls = 0
|
|
1557
|
+
let dirtyPolls = 0
|
|
1558
|
+
let animatingPolls = 0
|
|
1559
|
+
let layoutChangedPolls = 0
|
|
1560
|
+
const screenUnchanged = (pixels) => {
|
|
1561
|
+
if (!pixels || !lastScreenPixels || pixels.width !== lastScreenPixels.width || pixels.height !== lastScreenPixels.height) return false
|
|
1562
|
+
if (pixels === lastScreenPixels) return true
|
|
1563
|
+
for (let i = 0; i < pixels.data.length; i++) {
|
|
1564
|
+
if (pixels.data[i] !== lastScreenPixels.data[i]) return false
|
|
1576
1565
|
}
|
|
1577
|
-
|
|
1578
|
-
stable = 0
|
|
1579
|
-
visuallyStillSince = 0
|
|
1566
|
+
return true
|
|
1580
1567
|
}
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1568
|
+
while (Date.now() < deadline) {
|
|
1569
|
+
const snapshot = await readSnapshot()
|
|
1570
|
+
polls++
|
|
1571
|
+
if (snapshot.layoutDirty) dirtyPolls++
|
|
1572
|
+
if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
|
|
1573
|
+
if (polls > 1 && snapshot.layout !== lastLayout) layoutChangedPolls++
|
|
1574
|
+
const screenChanged = paintStill && !screenUnchanged(snapshot.screenPixels)
|
|
1575
|
+
if (polls > 1 && screenChanged) screenChangedPolls++
|
|
1576
|
+
const strictOk =
|
|
1577
|
+
!strict ||
|
|
1578
|
+
(snapshot.renderStatsAvailable &&
|
|
1579
|
+
!snapshot.animating &&
|
|
1580
|
+
!snapshot.shellAnimating &&
|
|
1581
|
+
!snapshot.layoutDirty)
|
|
1582
|
+
// visually settled: no animations, no image content loading, layout
|
|
1583
|
+
// unchanged since the last poll.
|
|
1584
|
+
const visuallyStill =
|
|
1585
|
+
strictOk &&
|
|
1586
|
+
!screenChanged &&
|
|
1587
|
+
snapshot.pendingFetches === 0 &&
|
|
1588
|
+
snapshot.layout === lastLayout
|
|
1589
|
+
// generic network quiet: nothing in flight and no new requests issued.
|
|
1590
|
+
const networkQuiet =
|
|
1591
|
+
snapshot.requestInFlight === 0 && snapshot.requestTotal === lastRequestTotal
|
|
1592
|
+
if (visuallyStill) {
|
|
1593
|
+
stable++
|
|
1594
|
+
if (visuallyStillSince === 0) visuallyStillSince = Date.now()
|
|
1595
|
+
// settle once the screen has held still long enough AND either the
|
|
1596
|
+
// network is genuinely quiet OR it has refused to quiet within the
|
|
1597
|
+
// grace (continuous background traffic must not block forever).
|
|
1598
|
+
if (
|
|
1599
|
+
stable >= minimumStablePolls &&
|
|
1600
|
+
Date.now() - visuallyStillSince >= requiredStillMs &&
|
|
1601
|
+
(networkQuiet || Date.now() - visuallyStillSince >= networkQuietGraceMs)
|
|
1602
|
+
) {
|
|
1603
|
+
return { settled: true, elapsed: Date.now() - start, blockedBy: '' }
|
|
1604
|
+
}
|
|
1605
|
+
} else {
|
|
1606
|
+
stable = 0
|
|
1607
|
+
visuallyStillSince = 0
|
|
1608
|
+
}
|
|
1609
|
+
lastLayout = snapshot.layout
|
|
1610
|
+
lastScreenPixels = snapshot.screenPixels
|
|
1611
|
+
lastRequestTotal = snapshot.requestTotal
|
|
1612
|
+
await sleep(pollMs)
|
|
1613
|
+
}
|
|
1614
|
+
const last = await readSnapshot()
|
|
1615
|
+
const blockers = []
|
|
1616
|
+
if (strict && !last.renderStatsAvailable) blockers.push('render stats unavailable')
|
|
1617
|
+
if (last.animating) blockers.push('animations still running')
|
|
1618
|
+
if (last.shellAnimating) blockers.push('shell animations still running')
|
|
1619
|
+
if (last.layoutDirty) blockers.push('layout still dirty')
|
|
1620
|
+
if (last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
|
|
1621
|
+
if (last.layout !== lastLayout) blockers.push('layout still changing')
|
|
1622
|
+
if (paintStill && !last.screenPixels) blockers.push('screen pixels unavailable')
|
|
1623
|
+
else if (paintStill && !screenUnchanged(last.screenPixels)) blockers.push('screen pixels still changing')
|
|
1624
|
+
if (last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
|
|
1625
|
+
return {
|
|
1626
|
+
settled: false,
|
|
1627
|
+
elapsed: Date.now() - start,
|
|
1628
|
+
blockedBy:
|
|
1629
|
+
(blockers.length ? blockers.join(', ') : 'unknown') +
|
|
1630
|
+
' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
|
|
1631
|
+
'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, screen changed ' + screenChangedPolls + 'x)',
|
|
1632
|
+
}
|
|
1633
|
+
} finally {
|
|
1634
|
+
unsubscribe?.()
|
|
1603
1635
|
}
|
|
1604
1636
|
})()`
|
|
1605
1637
|
},
|