peachsim 0.1.1874 → 0.1.1876

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 (96) hide show
  1. package/README.md +1 -0
  2. package/cli/commands/do-chain.ts +1 -1
  3. package/cli/commands/inspect/settling.ts +132 -92
  4. package/cli/outbound-endpoints.ts +4 -0
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +174 -127
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +141 -102
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +55 -32
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +72 -38
  35. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +124 -96
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +6 -4
  51. package/dist-lib/native-app-identity-project.cjs +5 -3
  52. package/dist-lib/native-app-identity-project.mjs +5 -3
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +54 -54
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +119 -93
  70. package/dist-lib/sdk.mjs +119 -93
  71. package/dist-lib/skills.cjs +186 -128
  72. package/dist-lib/swift-compile.cjs +20 -16
  73. package/dist-lib/swift-compile.mjs +20 -16
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +1 -1
  77. package/dist-lib/swift-submit.mjs +1 -1
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +21 -17
  81. package/dist-lib/vite.cjs +2 -2
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/package.json +1 -1
  85. package/runtime-companion.json +1 -1
  86. package/skills/contrast/SKILL.md +3 -2
  87. package/src/bundle-channel.mjs +21 -11
  88. package/src/expo-native-prebuilt.ts +4 -2
  89. package/src/native-app-identity-project.ts +3 -1
  90. package/src/native-bundles.ts +5 -1
  91. package/src/nitroContract.ts +43 -12
  92. package/src/sim-client.ts +4 -2
  93. package/src/swift-compile.ts +22 -14
  94. package/src/swift-host.ts +5 -1
  95. package/src/turbo-bundle.ts +14 -1
  96. package/src/turbo-source.ts +4 -3
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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;
@@ -1606,6 +1606,105 @@ var IdleObservationError = class extends Error {
1606
1606
  }
1607
1607
  code = "idle_observation_failed";
1608
1608
  };
1609
+ function renderActivityIdleScript({
1610
+ maxMs,
1611
+ requiredStillMs,
1612
+ transitionStartWindowMs,
1613
+ transitionTimeoutMs
1614
+ }) {
1615
+ return `(async () => {
1616
+ const start = Date.now()
1617
+ const budgetMs = ${Math.max(0, Math.round(maxMs))}
1618
+ const requiredStillMs = ${Math.max(1, Math.round(requiredStillMs))}
1619
+ let deadline = start + budgetMs
1620
+ // with no tenant running, nothing an app draws can move.
1621
+ const host = window.__sootsimRenderHost ?? null
1622
+ const initial = host ? host.getRenderActivity() : null
1623
+ // a published frame proves the idle flag is an observed worker state, not
1624
+ // the host's pre-boot default, so its idle interval counts from now even
1625
+ // when the busy-to-idle edge preceded this wait.
1626
+ let busySeen = !initial || initial.busy || initial.frameToken > 0
1627
+ let idleSince = !initial || (!initial.busy && initial.frameToken > 0) ? start : null
1628
+ let wake = null
1629
+ const notify = () => {
1630
+ const resolve = wake
1631
+ wake = null
1632
+ resolve?.()
1633
+ }
1634
+ const unsubscribe = host?.subscribeRenderActivity(() => {
1635
+ if (host.getRenderActivity().busy) {
1636
+ busySeen = true
1637
+ idleSince = null
1638
+ } else if (busySeen && idleSince === null) {
1639
+ idleSince = Date.now()
1640
+ }
1641
+ notify()
1642
+ })
1643
+ // a started screen transition moves the deadline: it drains, then the
1644
+ // budget proves the new screen. a loaded host runs a push past a tap's
1645
+ // budget, so the transition carries its own timeout.
1646
+ let transitionEndedAt = null
1647
+ let transitionPending = budgetMs > 120 && typeof window.__sootsimTest?.waitForScreenTransitions === 'function'
1648
+ if (transitionPending) {
1649
+ Promise.resolve()
1650
+ .then(() => window.__sootsimTest.waitForScreenTransitions({
1651
+ timeoutMs: ${Math.max(0, Math.round(transitionTimeoutMs))},
1652
+ settleMs: 64,
1653
+ startWindowMs: ${Math.max(0, Math.round(transitionStartWindowMs))},
1654
+ }))
1655
+ .then((transition) => {
1656
+ if (transition?.started !== true) return
1657
+ // a loaded worker replies after the motion stopped and says how long ago.
1658
+ transitionEndedAt = Date.now() - Math.max(0, transition.restedMs ?? 0)
1659
+ deadline = Math.max(deadline, transitionEndedAt + budgetMs)
1660
+ }, () => {})
1661
+ .finally(() => {
1662
+ transitionPending = false
1663
+ notify()
1664
+ })
1665
+ }
1666
+ try {
1667
+ while (true) {
1668
+ const now = Date.now()
1669
+ const quietSince = idleSince === null ? null : Math.max(idleSince, transitionEndedAt ?? idleSince)
1670
+ if (!transitionPending && quietSince !== null && now - quietSince >= requiredStillMs) {
1671
+ return { settled: true, elapsed: now - start, blockedBy: '' }
1672
+ }
1673
+ if (!transitionPending && now >= deadline) break
1674
+ const until = !transitionPending && quietSince !== null
1675
+ ? Math.min(quietSince + requiredStillMs, deadline)
1676
+ : deadline
1677
+ let timer = null
1678
+ await new Promise((resolve) => {
1679
+ wake = resolve
1680
+ if (until > now) timer = setTimeout(notify, until - now)
1681
+ })
1682
+ clearTimeout(timer)
1683
+ }
1684
+ } finally {
1685
+ unsubscribe?.()
1686
+ }
1687
+ const blockers = []
1688
+ const stats = await Promise.race([
1689
+ Promise.resolve().then(() => host?.queryStats()).catch(() => null),
1690
+ new Promise((resolve) => setTimeout(() => resolve(null), 500)),
1691
+ ])
1692
+ if (stats) {
1693
+ if (stats.hasActiveAnims) blockers.push('animations still running')
1694
+ if (stats.hasActiveBlockingNativeAnimations) blockers.push('native animations still running')
1695
+ if (stats.hasPendingBlockingAnimationFrames) blockers.push('frame callbacks still pending')
1696
+ if (stats.layoutDirty && stats.renderRequested) blockers.push('layout still dirty')
1697
+ }
1698
+ if (!blockers.length) blockers.push(idleSince === null ? 'tenant render activity still busy' : 'motion ended before stillness was proven')
1699
+ return {
1700
+ settled: false,
1701
+ elapsed: Date.now() - start,
1702
+ blockedBy: blockers.join(', ') + '; tenant activity ' + JSON.stringify({
1703
+ initial, current: host?.getRenderActivity() ?? null, busySeen, idleSince, transitionEndedAt, startedAt: start,
1704
+ }),
1705
+ }
1706
+ })()`;
1707
+ }
1609
1708
  async function waitForSootsimIdle({
1610
1709
  bridge,
1611
1710
  simId,
@@ -1627,7 +1726,12 @@ async function waitForSootsimIdle({
1627
1726
  {
1628
1727
  type: "evaluate",
1629
1728
  simId,
1630
- code: `(async () => {
1729
+ code: motionOnly ? renderActivityIdleScript({
1730
+ maxMs,
1731
+ requiredStillMs: Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs)),
1732
+ transitionStartWindowMs,
1733
+ transitionTimeoutMs
1734
+ }) : `(async () => {
1631
1735
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
1632
1736
  // tests inject a virtual clock as window.__sootsimIdleClock ({ now, sleep })
1633
1737
  // so the stillness window is proven in virtual time: real-timer polls under
@@ -1650,13 +1754,12 @@ async function waitForSootsimIdle({
1650
1754
  const maestro = ${maestro ? "true" : "false"}
1651
1755
  const accessibilityBounds = ${accessibilityBounds.toString()}
1652
1756
  const sameNativeAccessibilityShape = ${sameNativeAccessibilityShape.toString()}
1653
- const motionOnly = ${motionOnly ? "true" : "false"}
1654
1757
  const readyPlayback = ${readyPlayback ? "true" : "false"}
1655
1758
  // full mounted-geometry observation needs at least two hierarchy reads
1656
1759
  // plus the stillness window, which a sub-second budget cannot afford:
1657
1760
  // tight budgets (auto-wait) settle on worker stillness plus root
1658
1761
  // membership, generous ones confirm the geometry too.
1659
- const fullGeometry = ${!maestro && !motionOnly && maxMs >= 1e3 ? "true" : "false"}
1762
+ const fullGeometry = ${!maestro && maxMs >= 1e3 ? "true" : "false"}
1660
1763
  const requiredStillMs = paintStill ? 0 : ${Math.max(1, Math.round(stablePolls)) * Math.max(1, Math.round(pollMs))}
1661
1764
  const minimumStablePolls = paintStill ? 1 : ${Math.min(2, Math.max(1, Math.round(stablePolls)))}
1662
1765
  const composite = paintStill ? window.SootSim?.bridges?.liveComposite : null
@@ -1666,50 +1769,7 @@ async function waitForSootsimIdle({
1666
1769
  // subscribe to presented frames; authoritative screenshots force a
1667
1770
  // worker render, which changes the very counter we used to inspect.
1668
1771
  const unsubscribe = composite?.subscribe(() => {})
1669
- // the tenant pushes each busy change to the page on the port its stats
1670
- // replies use, so a wait on motion alone learns when the worker went
1671
- // idle without asking it. its busy flag covers render work, guest and
1672
- // blocking native animation, blocking frame callbacks and text waits,
1673
- // everything a motion-only poll reads from it, so once it has held idle
1674
- // for the still window that proves stillness without a poll: a worker
1675
- // too loaded to answer twice within a gesture's budget still settles
1676
- // once its motion ends.
1677
- const activityHost = motionOnly ? window.__sootsimRenderHost : null
1678
- const initialActivity = activityHost?.getRenderActivity?.()
1679
- // a published frame proves this is an observed worker state, rather than
1680
- // the host's pre-boot default. subscribe to its continuous idle interval
1681
- // even when the busy-to-idle edge preceded this command.
1682
- let busySeen = initialActivity?.busy === true || initialActivity?.frameToken > 0
1683
- let idleSince = initialActivity?.busy === false && initialActivity?.frameToken > 0
1684
- ? clockNow()
1685
- : null
1686
- let idleWaiters = []
1687
- const unsubscribeActivity = activityHost?.subscribeRenderActivity?.(() => {
1688
- if (activityHost.getRenderActivity().busy) {
1689
- busySeen = true
1690
- idleSince = null
1691
- } else if (busySeen && idleSince === null) {
1692
- idleSince = clockNow()
1693
- const waiters = idleWaiters
1694
- idleWaiters = []
1695
- for (const waiter of waiters) waiter()
1696
- }
1697
- })
1698
1772
  let transitionEndedAt = null
1699
- // resolves once both the tenant and any drained transition have held idle.
1700
- const idleHeld = () =>
1701
- new Promise((resolve) => {
1702
- const check = () => {
1703
- if (idleSince === null) idleWaiters.push(check)
1704
- else {
1705
- const quietSince = Math.max(idleSince, transitionEndedAt ?? idleSince)
1706
- const remaining = requiredStillMs - (clockNow() - quietSince)
1707
- if (remaining <= 0) resolve(true)
1708
- else setTimeout(check, Math.max(1, remaining))
1709
- }
1710
- }
1711
- check()
1712
- })
1713
1773
  let pixelFrameToken = -1
1714
1774
  let screenPixels = null
1715
1775
  // the hierarchy read last taken and the geometry revision it answered.
@@ -1791,7 +1851,7 @@ async function waitForSootsimIdle({
1791
1851
  // and realizes its pixels. both owners must finish before settling.
1792
1852
  // the compositor rejects a stats request it is too busy to answer.
1793
1853
  const compositorRead = answer(() => window.__sootsimCompositor.getStats({ detail: 'readiness' })).catch(() => BUSY)
1794
- const countsRead = motionOnly ? null : answer(() => window.__sootsimTest?.getRequestCounts?.()).catch(() => null)
1854
+ const countsRead = answer(() => window.__sootsimTest?.getRequestCounts?.()).catch(() => null)
1795
1855
  // the mounted hierarchy in render-worker mode comes from the test
1796
1856
  // bridge: window.__sootsimRoot is an empty placeholder there, so a
1797
1857
  // walk over it hashes every screen to the same empty string while
@@ -2080,7 +2140,6 @@ async function waitForSootsimIdle({
2080
2140
  const hierarchyUnchanged = (current, previous) =>
2081
2141
  current !== null && previous !== null && current.length === previous.length &&
2082
2142
  current.every((node, index) => sameNativeAccessibilityShape(node, previous[index], accessibilityBounds))
2083
- const IDLE_HELD = { idleHeld: true }
2084
2143
  while (true) {
2085
2144
  if (clockNow() >= deadline) {
2086
2145
  if (!transitionWait) break
@@ -2092,33 +2151,7 @@ async function waitForSootsimIdle({
2092
2151
  if (clockNow() >= deadline) break
2093
2152
  }
2094
2153
  const pollStarted = clockNow()
2095
- const read = readSnapshot()
2096
- let snapshot = activityHost
2097
- ? await Promise.race([read, idleHeld().then(() => IDLE_HELD)])
2098
- : await read
2099
- // a completed read can win the race before a delayed timer callback.
2100
- // the recorded idle interval remains evidence even on that turn.
2101
- const idleProven = () => {
2102
- const quietSince = Math.max(idleSince ?? Infinity, transitionEndedAt ?? 0)
2103
- return idleSince !== null && quietSince + requiredStillMs <= deadline && clockNow() - quietSince >= requiredStillMs
2104
- }
2105
- while (activityHost && (snapshot === IDLE_HELD || idleProven())) {
2106
- if (transitionWait) {
2107
- await transitionWait
2108
- transitionWait = null
2109
- }
2110
- if (idleProven()) {
2111
- return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
2112
- }
2113
- if (clockNow() >= deadline) {
2114
- snapshot = await read
2115
- break
2116
- }
2117
- // a transition can drain after the first idle interval. keep the
2118
- // pushed evidence armed while its remaining quiet interval holds;
2119
- // awaiting only the in-flight stats read would discard that proof.
2120
- snapshot = await Promise.race([read, idleHeld().then(() => IDLE_HELD)])
2121
- }
2154
+ const snapshot = await readSnapshot()
2122
2155
  if (snapshot.runtimeUnsupported) return snapshot.runtimeUnsupported
2123
2156
  // a read the deadline cut short observed nothing: the last full poll
2124
2157
  // names what held the settle, not a worker that ran out of budget.
@@ -2163,7 +2196,7 @@ async function waitForSootsimIdle({
2163
2196
  !snapshot.animating &&
2164
2197
  !snapshot.shellAnimating &&
2165
2198
  !snapshot.layoutDirty &&
2166
- (motionOnly || snapshot.pendingFetches === 0) &&
2199
+ snapshot.pendingFetches === 0 &&
2167
2200
  !snapshot.workerBusy &&
2168
2201
  !snapshot.webViewStarting
2169
2202
  const visuallyStill = maestro ? maestroStill :
@@ -2195,7 +2228,7 @@ async function waitForSootsimIdle({
2195
2228
  // grace (continuous background traffic must not block forever).
2196
2229
  if (
2197
2230
  stillProven() &&
2198
- (maestro || motionOnly || networkQuiet || clockNow() - visuallyStillSince >= networkQuietGraceMs)
2231
+ (maestro || networkQuiet || clockNow() - visuallyStillSince >= networkQuietGraceMs)
2199
2232
  ) {
2200
2233
  if (transitionWait) {
2201
2234
  await transitionWait
@@ -2220,13 +2253,6 @@ async function waitForSootsimIdle({
2220
2253
  const remainingPollMs = pollMs - (clockNow() - pollStarted)
2221
2254
  if (remainingPollMs > 0) await clockSleep(remainingPollMs)
2222
2255
  }
2223
- if (activityHost && idleSince !== null && idleSince + requiredStillMs <= deadline) {
2224
- if (transitionWait) await transitionWait
2225
- const quietSince = Math.max(idleSince ?? Infinity, transitionEndedAt ?? 0)
2226
- if (quietSince + requiredStillMs <= deadline && clockNow() - quietSince >= requiredStillMs) {
2227
- return { settled: true, elapsed: clockNow() - start, blockedBy: '' }
2228
- }
2229
- }
2230
2256
  if (!report) {
2231
2257
  return { settled: false, elapsed: clockNow() - start, blockedBy: 'no poll fit the budget' }
2232
2258
  }
@@ -2238,15 +2264,15 @@ async function waitForSootsimIdle({
2238
2264
  if (!maestro && last.layoutDirty) blockers.push('layout still dirty')
2239
2265
  if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
2240
2266
  if (!maestro && last.nodeCount !== null && report.nodeCount !== null && last.nodeCount !== report.nodeCount) blockers.push('node count still changing')
2241
- if (!maestro && !motionOnly && last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
2267
+ if (!maestro && last.pendingFetches > 0) blockers.push(last.pendingFetches + ' image fetches pending')
2242
2268
  if (last.workerBusy) blockers.push('a render worker too busy to report')
2243
2269
  if (last.webViewStarting) blockers.push(last.webViewBlocker || 'webView still starting')
2244
2270
  if (!maestro && last.layout !== report.layout) blockers.push('layout still changing')
2245
2271
  if (maestro && !hierarchyUnchanged(last.nativeHierarchy, report.nativeHierarchy)) blockers.push(last.nativeHierarchy === null ? 'native accessibility hierarchy unavailable' : 'native accessibility hierarchy still changing')
2246
2272
  if (paintStill && !last.screenPixels) blockers.push('screen pixels unavailable')
2247
2273
  else if (paintStill && !screenUnchanged(last.screenPixels, report.screenPixels)) blockers.push('screen pixels still changing')
2248
- if (!maestro && !motionOnly && last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
2249
- else if (!maestro && !motionOnly && last.requestTotal !== report.requestTotal) blockers.push('new requests issued')
2274
+ if (!maestro && last.requestInFlight > 0) blockers.push(last.requestInFlight + ' requests in flight')
2275
+ else if (!maestro && last.requestTotal !== report.requestTotal) blockers.push('new requests issued')
2250
2276
  if (polls < 2) blockers.push('sim too busy to poll twice')
2251
2277
  // the last read is still: motion ended too near the deadline for the
2252
2278
  // stillness window to hold before it.
@@ -2257,12 +2283,10 @@ async function waitForSootsimIdle({
2257
2283
  blockedBy:
2258
2284
  blockers.join(', ') + ' over ' + polls + ' polls (layout changed ' + layoutChangedPolls +
2259
2285
  'x, layoutDirty ' + dirtyPolls + 'x, animating ' + animatingPolls + 'x, webViewStarting ' + webViewStartingPolls + 'x, screen changed ' + screenChangedPolls + 'x)' +
2260
- (lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : '') +
2261
- (activityHost ? '; tenant activity ' + JSON.stringify({ initial: initialActivity, current: activityHost.getRenderActivity?.(), busySeen, idleSince, transitionEndedAt, startedAt: start }) : ''),
2286
+ (lastLayoutChange ? '; last layout change ' + JSON.stringify(lastLayoutChange) : ''),
2262
2287
  }
2263
2288
  } finally {
2264
2289
  unsubscribe?.()
2265
- unsubscribeActivity?.()
2266
2290
  }
2267
2291
  })()`
2268
2292
  },
@@ -2461,7 +2485,7 @@ function isValidRuntimeVersion(value) {
2461
2485
  }
2462
2486
 
2463
2487
  // runtime-companion.json
2464
- var runtime_companion_default = { abi: 1, sha256: "1e9d1926d6b063b7e648e1d5c73450253a26fa9c9d64ed164b9cde20eb45f373", file: "node/cli-1e9d1926d6b063b7e648e1d5c73450253a26fa9c9d64ed164b9cde20eb45f373.cjs" };
2488
+ var runtime_companion_default = { abi: 1, sha256: "f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467", file: "node/cli-f4d0f1f81d2b1da32bc29c46144f871a0455de78cbad62a2eaa660f63aed2467.cjs" };
2465
2489
 
2466
2490
  // src/answeredNativePackages.ts
2467
2491
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -6118,22 +6142,37 @@ function readCompiledMetadata(label, value, readPackage, names) {
6118
6142
  return { platform: "ios", packages, url, hash, icuUrl, bundleFiles };
6119
6143
  }
6120
6144
  function readTurboMetadata(value) {
6145
+ if (value === null || value === void 0) return null;
6146
+ if (typeof value !== "object" || Array.isArray(value) || Reflect.get(value, "platform") !== NITRO_GUEST_PLATFORM)
6147
+ throw new Error("invalid TurboModule compilation metadata");
6148
+ const listed = Reflect.get(value, "unavailable");
6149
+ if (listed !== void 0 && !Array.isArray(listed))
6150
+ throw new Error("invalid TurboModule compilation metadata");
6151
+ const unavailable = listed?.map((entry) => {
6152
+ if (!isRecord(entry) || typeof entry.name !== "string" || !entry.name || typeof entry.diagnostic !== "string" || !entry.diagnostic)
6153
+ throw new Error("invalid TurboModule compilation metadata");
6154
+ return { name: entry.name, diagnostic: entry.diagnostic };
6155
+ });
6156
+ const packages = Reflect.get(value, "packages");
6157
+ const packed = Reflect.get(value, "bundleFiles");
6158
+ if (Array.isArray(packages) && packages.length === 0 && unavailable && unavailable.length > 0 && Reflect.get(value, "url") === "" && Reflect.get(value, "hash") === "" && Reflect.get(value, "icuUrl") === "" && isRecord(packed) && Object.keys(packed).length === 0) {
6159
+ return {
6160
+ platform: "ios",
6161
+ packages: [],
6162
+ url: "",
6163
+ hash: "",
6164
+ icuUrl: "",
6165
+ bundleFiles: {},
6166
+ unavailable
6167
+ };
6168
+ }
6121
6169
  const metadata = readCompiledMetadata(
6122
6170
  "TurboModule",
6123
6171
  value,
6124
6172
  readCompiledPackage,
6125
6173
  () => []
6126
6174
  );
6127
- if (!metadata) return null;
6128
- const listed = Reflect.get(Object(value), "unavailable");
6129
- if (listed === void 0) return metadata;
6130
- if (!Array.isArray(listed)) throw new Error("invalid TurboModule compilation metadata");
6131
- const unavailable = listed.map((entry) => {
6132
- if (!isRecord(entry) || typeof entry.name !== "string" || typeof entry.diagnostic !== "string")
6133
- throw new Error("invalid TurboModule compilation metadata");
6134
- return { name: entry.name, diagnostic: entry.diagnostic };
6135
- });
6136
- return { ...metadata, unavailable };
6175
+ return metadata && (unavailable ? { ...metadata, unavailable } : metadata);
6137
6176
  }
6138
6177
 
6139
6178
  // src/node-http-fetch.ts
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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;
@@ -17413,7 +17413,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
17413
17413
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
17414
17414
  var MULTI_MANIFEST_VERSION = 65;
17415
17415
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
17416
- var compilerSourceDigest = true ? "16355cfe66c10b553640a95acf7ed3b7f810db06602eb8edab8620da0ec7b94a" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17416
+ var compilerSourceDigest = true ? "bbb12360ef251bb3cd28572f60d5685f72ddb59c847cbbbf6d154c0bea302b2e" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
17417
17417
  function swiftArtifactHash(input, release, moduleRoot) {
17418
17418
  const hash = (0, import_node_crypto13.createHash)("sha256");
17419
17419
  hash.update(`swift-compile
@@ -17564,9 +17564,9 @@ function emitSwiftPackageManifest(args) {
17564
17564
  foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
17565
17565
  );
17566
17566
  const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
17567
- const eager = new Set(
17567
+ const eager = args.lazyDistribution ? new Set(
17568
17568
  objects.filter((object3) => roots.has(object3) || categoryObjects.has(object3))
17569
- );
17569
+ ) : new Set(objects);
17570
17570
  const list2 = [
17571
17571
  ...[...eager].map(quoted),
17572
17572
  "-Wl,--start-lib",
@@ -20439,7 +20439,8 @@ module ${moduleName}.Swift {
20439
20439
  distributionLink: {
20440
20440
  path: import_node_path34.default.join(layout.root, ".peach-distribution-objects.rsp"),
20441
20441
  files: files2
20442
- }
20442
+ },
20443
+ lazyDistribution: input.optimize
20443
20444
  } : {},
20444
20445
  ...prebuilt && frameworkLink ? {
20445
20446
  prebuilt: {
@@ -21266,7 +21267,7 @@ function compileSwiftProjectOnce(input, options) {
21266
21267
  process.env.LD_LIBRARY_PATH
21267
21268
  ].filter(Boolean).join(":")
21268
21269
  } : {},
21269
- PEACH_DEFER_WASM_LINK: "1"
21270
+ ...input.optimize ? { PEACH_DEFER_WASM_LINK: "1" } : {}
21270
21271
  },
21271
21272
  maxBuffer: 64 * 1024 * 1024,
21272
21273
  timeout: options.timeoutMs,
@@ -21366,9 +21367,11 @@ function compileSwiftProjectOnce(input, options) {
21366
21367
  ])
21367
21368
  ];
21368
21369
  const linked = builtArtifact(layout);
21369
- (0, import_node_fs37.rmSync)(import_node_path34.default.join(root, ".peach-link.rsp"), { force: true });
21370
- if ((0, import_node_fs37.existsSync)(linked) && (0, import_node_fs37.statSync)(linked).size <= 8)
21371
- (0, import_node_fs37.rmSync)(linked, { force: true });
21370
+ if (input.optimize) {
21371
+ (0, import_node_fs37.rmSync)(import_node_path34.default.join(root, ".peach-link.rsp"), { force: true });
21372
+ if ((0, import_node_fs37.existsSync)(linked) && (0, import_node_fs37.statSync)(linked).size <= 8)
21373
+ (0, import_node_fs37.rmSync)(linked, { force: true });
21374
+ }
21372
21375
  report("compiling and linking Swift modules");
21373
21376
  try {
21374
21377
  const headerBuilds = preparation.headerProductTarget ? [
@@ -21482,13 +21485,14 @@ function compileSwiftProjectOnce(input, options) {
21482
21485
  );
21483
21486
  }
21484
21487
  if (options.project) removeProjectLinks(root);
21485
- pruneSwiftWasmLink(
21486
- root,
21487
- options.toolchainBin,
21488
- frameworkRoot,
21489
- input.staticClangTargets,
21490
- options.project
21491
- );
21488
+ if (input.optimize)
21489
+ pruneSwiftWasmLink(
21490
+ root,
21491
+ options.toolchainBin,
21492
+ frameworkRoot,
21493
+ input.staticClangTargets,
21494
+ options.project
21495
+ );
21492
21496
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
21493
21497
  const optimized = `${output2}.optimized`;
21494
21498
  if (input.optimize) await optimizeWasm(output2, optimized);
@@ -26372,7 +26376,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
26372
26376
  return hash.digest("hex");
26373
26377
  }
26374
26378
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
26375
- var STANDIN_SOURCE_DIGEST = true ? "bd8e32c07fde4e95b32471690e07a890275838ac56295defcbb56b4b59a7f066" : standinSourceDigest();
26379
+ var STANDIN_SOURCE_DIGEST = true ? "3aae44df21589ccc4ee37b75dadeaabf7588816d438527b310b508e1e1c4833c" : standinSourceDigest();
26376
26380
 
26377
26381
  // src/expoSwiftContract.ts
26378
26382
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -26432,7 +26436,9 @@ function readNativeAppIdentityFromXcodeTarget(app, parseInfoPlist = parsePlistSo
26432
26436
  const appVersion = nonEmptyString2(dictionary2.CFBundleShortVersionString) ?? nonEmptyString2(settings?.("MARKETING_VERSION"));
26433
26437
  const buildVersion = nonEmptyString2(dictionary2.CFBundleVersion) ?? nonEmptyString2(settings?.("CURRENT_PROJECT_VERSION"));
26434
26438
  if (!appVersion || !buildVersion) {
26435
- throw new Error("native app has no version or build version");
26439
+ throw new Error(
26440
+ "native app has no version or build version; values its Xcode scheme derives in a build phase can be exported as process environment variables when opening"
26441
+ );
26436
26442
  }
26437
26443
  const bundleName = nonEmptyString2(dictionary2.CFBundleName) ?? nonEmptyString2(settings?.("PRODUCT_NAME")) ?? app.name;
26438
26444
  const applicationDisplayName = nonEmptyString2(dictionary2.CFBundleDisplayName);
@@ -26635,22 +26641,37 @@ function readCompiledMetadata(label, value, readPackage, names) {
26635
26641
  return { platform: "ios", packages, url, hash, icuUrl: icuUrl2, bundleFiles };
26636
26642
  }
26637
26643
  function readTurboMetadata(value) {
26644
+ if (value === null || value === void 0) return null;
26645
+ if (typeof value !== "object" || Array.isArray(value) || Reflect.get(value, "platform") !== NITRO_GUEST_PLATFORM)
26646
+ throw new Error("invalid TurboModule compilation metadata");
26647
+ const listed = Reflect.get(value, "unavailable");
26648
+ if (listed !== void 0 && !Array.isArray(listed))
26649
+ throw new Error("invalid TurboModule compilation metadata");
26650
+ const unavailable2 = listed?.map((entry) => {
26651
+ if (!isRecord(entry) || typeof entry.name !== "string" || !entry.name || typeof entry.diagnostic !== "string" || !entry.diagnostic)
26652
+ throw new Error("invalid TurboModule compilation metadata");
26653
+ return { name: entry.name, diagnostic: entry.diagnostic };
26654
+ });
26655
+ const packages = Reflect.get(value, "packages");
26656
+ const packed = Reflect.get(value, "bundleFiles");
26657
+ if (Array.isArray(packages) && packages.length === 0 && unavailable2 && unavailable2.length > 0 && Reflect.get(value, "url") === "" && Reflect.get(value, "hash") === "" && Reflect.get(value, "icuUrl") === "" && isRecord(packed) && Object.keys(packed).length === 0) {
26658
+ return {
26659
+ platform: "ios",
26660
+ packages: [],
26661
+ url: "",
26662
+ hash: "",
26663
+ icuUrl: "",
26664
+ bundleFiles: {},
26665
+ unavailable: unavailable2
26666
+ };
26667
+ }
26638
26668
  const metadata = readCompiledMetadata(
26639
26669
  "TurboModule",
26640
26670
  value,
26641
26671
  readCompiledPackage,
26642
26672
  () => []
26643
26673
  );
26644
- if (!metadata) return null;
26645
- const listed = Reflect.get(Object(value), "unavailable");
26646
- if (listed === void 0) return metadata;
26647
- if (!Array.isArray(listed)) throw new Error("invalid TurboModule compilation metadata");
26648
- const unavailable2 = listed.map((entry) => {
26649
- if (!isRecord(entry) || typeof entry.name !== "string" || typeof entry.diagnostic !== "string")
26650
- throw new Error("invalid TurboModule compilation metadata");
26651
- return { name: entry.name, diagnostic: entry.diagnostic };
26652
- });
26653
- return { ...metadata, unavailable: unavailable2 };
26674
+ return metadata && (unavailable2 ? { ...metadata, unavailable: unavailable2 } : metadata);
26654
26675
  }
26655
26676
 
26656
26677
  // src/package-tree-digest.ts
@@ -26684,7 +26705,7 @@ async function packageTreeDigest(root) {
26684
26705
 
26685
26706
  // src/expo-native-prebuilt.ts
26686
26707
  var EXPO_NATIVE_ENTRY_NAME = "ios";
26687
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "56768b586c8abed368bc0b809466dd18e971de9e5684301bed01591bcbb3a12c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26708
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "1651e5d5a4c1c41d29a8dfc1164aaf460a20a7ae8a359e302bcde615f26387b2" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
26688
26709
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
26689
26710
  function readSources(value) {
26690
26711
  const sources = isRecord(value) ? value.sources : null;
@@ -26704,8 +26725,9 @@ function readSources(value) {
26704
26725
  function packageRootOf(appRoot, file) {
26705
26726
  const parts = file.split("/");
26706
26727
  if (parts[0] !== "node_modules") return null;
26707
- const depth = parts[1]?.startsWith("@") ? 3 : 2;
26708
- return parts.length > depth ? import_node_path50.default.join(appRoot, ...parts.slice(0, depth)) : null;
26728
+ const at = parts.lastIndexOf("node_modules") + 1;
26729
+ const end = at + (parts[at]?.startsWith("@") ? 2 : 1);
26730
+ return parts.length > end ? import_node_path50.default.join(appRoot, ...parts.slice(0, end)) : null;
26709
26731
  }
26710
26732
  async function expoNativeInputs(appRoot) {
26711
26733
  appRoot = import_node_fs52.default.realpathSync(appRoot);
@@ -35659,8 +35681,9 @@ function sourceContentStamp(packagePath, moduleRootOverride) {
35659
35681
  hash.update(JSON.stringify(projects().get(packagePath)?.nativeFiles ?? {}));
35660
35682
  hash.update(JSON.stringify(projects().get(packagePath)?.resourceBundles ?? []));
35661
35683
  hash.update(JSON.stringify(projects().get(packagePath)?.bundleFiles ?? null));
35684
+ const root = import_node_fs66.default.realpathSync(packagePath);
35662
35685
  for (const file of [...new Set(packageFiles(packagePath))].sort()) {
35663
- hash.update(import_node_path63.default.relative(packagePath, file));
35686
+ hash.update(import_node_path63.default.relative(root, file));
35664
35687
  hash.update(import_node_fs66.default.readFileSync(file));
35665
35688
  }
35666
35689
  hash.update(moduleStamp(packagePath, moduleRootOverride, false));
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1874 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1876 | (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;