peachsim 0.1.762 → 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.
Files changed (73) hide show
  1. package/README.md +5 -0
  2. package/cli/bridge-flow-runner.ts +3 -4
  3. package/cli/commands/inspect/settling.ts +193 -162
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/agent-identity.cjs +1 -1
  7. package/dist-lib/agent-sessions.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cli-constants.cjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/detox/index.cjs +1 -1
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +191 -159
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +1 -1
  48. package/dist-lib/native-app-identity.cjs +1 -1
  49. package/dist-lib/native-app-identity.mjs +1 -1
  50. package/dist-lib/native-firebase-metadata.cjs +1 -1
  51. package/dist-lib/native-firebase-metadata.mjs +1 -1
  52. package/dist-lib/plist.cjs +1 -1
  53. package/dist-lib/plist.mjs +1 -1
  54. package/dist-lib/profiles.cjs +1 -1
  55. package/dist-lib/public-brand.cjs +1 -1
  56. package/dist-lib/react-native-host-modules.cjs +1 -1
  57. package/dist-lib/react-native-host-modules.mjs +1 -1
  58. package/dist-lib/render-mode.cjs +1 -1
  59. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  60. package/dist-lib/sdk.cjs +191 -159
  61. package/dist-lib/sdk.mjs +191 -159
  62. package/dist-lib/skills.cjs +197 -166
  63. package/dist-lib/swift-compile.cjs +1 -1
  64. package/dist-lib/swift-compile.mjs +1 -1
  65. package/dist-lib/swift-package.cjs +1 -1
  66. package/dist-lib/swift-package.mjs +1 -1
  67. package/dist-lib/swift-submit.cjs +1 -1
  68. package/dist-lib/swift-submit.mjs +1 -1
  69. package/dist-lib/swift-toolchain.cjs +1 -1
  70. package/dist-lib/swift.cjs +1 -1
  71. package/dist-lib/vite-swift.cjs +1 -1
  72. package/dist-lib/vite.cjs +1 -1
  73. package/package.json +1 -1
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! rnx v0.1.762 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
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
- // route-aware settle: a tap that pushes/pops a screen is async \u2014 the
1437
- // old screen still renders for a moment, then the new one mounts and
1438
- // its content loads. a pure layout-hash check reports "idle" on the
1439
- // outgoing screen or on the incoming skeleton, so a driver re-taps
1440
- // and stacks duplicate navigations. drain any in-flight screen
1441
- // transition FIRST, bounded by the overall budget. when no
1442
- // transition is happening this returns in ~80ms (startWindowMs), so
1443
- // a plain button tap barely pays for it.
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
- const wfst = window.__sootsimTest?.waitForScreenTransitions
1446
- if (typeof wfst === 'function') {
1447
- const remaining = deadline - Date.now()
1448
- if (remaining > 120) {
1449
- await wfst({
1450
- timeoutMs: Math.min(remaining - 80, 4000),
1451
- settleMs: 64,
1452
- startWindowMs: 80,
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
- const readSnapshot = async () => {
1459
- let animating = false
1460
- let layoutDirty = false
1461
- let pendingFetches = 0
1462
- let requestTotal = 0
1463
- let requestInFlight = 0
1464
- let renderStatsAvailable = false
1465
- let frameCount = -1
1466
- let shellAnimating = false
1467
- // strict also waits out shell motion: a system alert, sheet or menu
1468
- // animates in the shell worker while the app's own stats read still,
1469
- // so its presentation is complete only once the shell's list empties.
1470
- if (strict) {
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 motion = await window.__sootsimTest?.listAnimations?.()
1473
- shellAnimating = Array.isArray(motion) && motion.some((anim) => anim.realm === 'shell')
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
- try {
1477
- const stats = await window.__sootsimRenderHost?.queryStats?.()
1478
- if (stats) {
1479
- renderStatsAvailable = true
1480
- frameCount = typeof stats.frameCount === 'number' ? stats.frameCount : -1
1481
- animating =
1482
- stats.hasActiveAnims === true ||
1483
- stats.hasActiveNativeAnimations === true ||
1484
- stats.hasPendingAnimationFrames === true
1485
- layoutDirty =
1486
- stats.layoutDirty === true && stats.renderRequested === true
1487
- // a freshly-pushed screen showing a skeleton is layout-stable
1488
- // but not actually settled \u2014 its data/images are still in
1489
- // flight. treat bounded image-loader fetches as not-idle so
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
- } catch {}
1497
- try {
1498
- const counts = await window.__sootsimTest?.getRequestCounts?.()
1499
- requestTotal = typeof counts?.total === 'number' ? counts.total : 0
1500
- requestInFlight = typeof counts?.inFlight === 'number' ? counts.inFlight : 0
1501
- } catch {}
1502
- const root = window.__sootsimRoot
1503
- const nodes = []
1504
- if (root) {
1505
- const walk = (n) => {
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
- walk(root)
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
- // how long generic background network is allowed to keep us waiting AFTER
1517
- // the screen is otherwise visually settled. apps with continuous traffic
1518
- // (polling, realtime sockets, a tap that fires 20-50 fetches) never reach
1519
- // requestInFlight===0 / a stable requestTotal, so requiring full network
1520
- // quiet burns the ENTIRE budget on every command \u2014 the leading idle that
1521
- // failed PR-preview recordings for network-heavy apps (3pc fight-pulse).
1522
- // layout-stability + the image-loader already prove visible content
1523
- // loaded (a data load changes layout; an image load shows in the loader),
1524
- // so the generic request counters are a courtesy, not a gate: honor them
1525
- // only within this grace once the screen is visually still.
1526
- const networkQuietGraceMs = 1200
1527
- let lastLayout = ''
1528
- let lastFrameCount = -2
1529
- let paintedPolls = 0
1530
- let lastRequestTotal = -1
1531
- let stable = 0
1532
- let visuallyStillSince = 0
1533
- // counts across the whole budget: a flag that is true on every poll is a
1534
- // different bug from one that is true intermittently, and the two need
1535
- // opposite fixes (engine vs budget).
1536
- let polls = 0
1537
- let dirtyPolls = 0
1538
- let animatingPolls = 0
1539
- let layoutChangedPolls = 0
1540
- while (Date.now() < deadline) {
1541
- const snapshot = await readSnapshot()
1542
- polls++
1543
- if (snapshot.layoutDirty) dirtyPolls++
1544
- if (snapshot.animating || snapshot.shellAnimating) animatingPolls++
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
- } else {
1578
- stable = 0
1579
- visuallyStillSince = 0
1566
+ return true
1580
1567
  }
1581
- lastLayout = snapshot.layout
1582
- lastFrameCount = snapshot.frameCount
1583
- lastRequestTotal = snapshot.requestTotal
1584
- await sleep(pollMs)
1585
- }
1586
- const last = await readSnapshot()
1587
- const blockers = []
1588
- if (strict && !last.renderStatsAvailable) blockers.push('render stats unavailable')
1589
- if (last.animating) blockers.push('animations still running')
1590
- if (last.shellAnimating) blockers.push('shell animations still running')
1591
- if (last.layoutDirty) blockers.push('layout still dirty')
1592
- if (last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
1593
- if (last.layout !== lastLayout) blockers.push('layout still changing')
1594
- if (paintStill && last.frameCount !== lastFrameCount) blockers.push('still painting')
1595
- if (last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
1596
- return {
1597
- settled: false,
1598
- elapsed: Date.now() - start,
1599
- blockedBy:
1600
- (blockers.length ? blockers.join(', ') : 'unknown') +
1601
- ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
1602
- 'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, painted ' + paintedPolls + 'x)',
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
  },