peachsim 0.1.2251 → 0.1.2253

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 (95) hide show
  1. package/cli/bridge-flow-runner.ts +20 -13
  2. package/cli/commands/control.ts +6 -5
  3. package/cli/commands/inspect/core.ts +18 -3
  4. package/dist-lib/agent-daemon-client.cjs +1 -1
  5. package/dist-lib/agent-events.cjs +1 -1
  6. package/dist-lib/attached-projects.cjs +1 -1
  7. package/dist-lib/auth/shared-session.cjs +1 -1
  8. package/dist-lib/backend-origin.cjs +1 -1
  9. package/dist-lib/beta.cjs +1 -1
  10. package/dist-lib/beta.mjs +1 -1
  11. package/dist-lib/bridge-constants.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.cjs +6 -2
  13. package/dist-lib/bridge-contract-input.mjs +6 -2
  14. package/dist-lib/bridge-contract.cjs +1 -1
  15. package/dist-lib/bridge-contract.mjs +1 -1
  16. package/dist-lib/bundle-channel.cjs +23 -16
  17. package/dist-lib/capture-contract.cjs +1 -1
  18. package/dist-lib/capture-contract.mjs +1 -1
  19. package/dist-lib/cloud-contract.cjs +1 -1
  20. package/dist-lib/cloud-contract.mjs +1 -1
  21. package/dist-lib/cloud-test-args.cjs +1 -1
  22. package/dist-lib/cloud-test-args.mjs +1 -1
  23. package/dist-lib/cloud.cjs +1 -1
  24. package/dist-lib/cloud.mjs +1 -1
  25. package/dist-lib/config.cjs +1 -1
  26. package/dist-lib/config.mjs +1 -1
  27. package/dist-lib/detox/index.cjs +33 -24
  28. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  29. package/dist-lib/expo-swift-bundle.cjs +21 -14
  30. package/dist-lib/expo-swift-metadata.cjs +1 -1
  31. package/dist-lib/expo-swift-metadata.mjs +1 -1
  32. package/dist-lib/home-paths.cjs +1 -1
  33. package/dist-lib/host/bridge-host.cjs +65 -40
  34. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  35. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  36. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  37. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  38. package/dist-lib/host/websocket-proxy.cjs +1 -1
  39. package/dist-lib/index.cjs +31 -10
  40. package/dist-lib/jump-to-source-babel.cjs +1 -1
  41. package/dist-lib/jump-to-source-native.cjs +1 -1
  42. package/dist-lib/kotlin-host.cjs +1 -1
  43. package/dist-lib/menu.cjs +1 -1
  44. package/dist-lib/menu.mjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  47. package/dist-lib/metro-production-bundle.cjs +1 -1
  48. package/dist-lib/metro-production-bundle.mjs +1 -1
  49. package/dist-lib/metro.cjs +15 -6
  50. package/dist-lib/native-app-identity-project.cjs +2 -2
  51. package/dist-lib/native-app-identity-project.mjs +2 -2
  52. package/dist-lib/native-app-identity.cjs +1 -1
  53. package/dist-lib/native-app-identity.mjs +1 -1
  54. package/dist-lib/native-firebase-metadata.cjs +1 -1
  55. package/dist-lib/native-firebase-metadata.mjs +1 -1
  56. package/dist-lib/pdfium-raster.cjs +1 -1
  57. package/dist-lib/pdfium-raster.mjs +1 -1
  58. package/dist-lib/plist.cjs +1 -1
  59. package/dist-lib/plist.mjs +1 -1
  60. package/dist-lib/profiles.cjs +1 -1
  61. package/dist-lib/public-brand.cjs +1 -1
  62. package/dist-lib/public-origins-lib-esm.json +24 -24
  63. package/dist-lib/public-origins-lib.json +53 -53
  64. package/dist-lib/react-native-host-modules.cjs +1 -1
  65. package/dist-lib/react-native-host-modules.mjs +1 -1
  66. package/dist-lib/reap-browser.cjs +32 -23
  67. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  68. package/dist-lib/sdk.cjs +17 -5
  69. package/dist-lib/sdk.mjs +17 -5
  70. package/dist-lib/skills.cjs +108 -66
  71. package/dist-lib/swift-compile.cjs +12 -9
  72. package/dist-lib/swift-compile.mjs +12 -9
  73. package/dist-lib/swift-package.cjs +1 -1
  74. package/dist-lib/swift-package.mjs +1 -1
  75. package/dist-lib/swift-submit.cjs +1 -1
  76. package/dist-lib/swift-submit.mjs +1 -1
  77. package/dist-lib/swift-toolchain.cjs +1 -1
  78. package/dist-lib/swift.cjs +1 -1
  79. package/dist-lib/vite-swift.cjs +16 -11
  80. package/dist-lib/vite.cjs +15 -6
  81. package/dist-lib/worklet-executable.cjs +1 -1
  82. package/dist-lib/worklet-executable.mjs +1 -1
  83. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  84. package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +2 -0
  86. package/package.json +1 -1
  87. package/runtime-companion.json +1 -1
  88. package/src/bridge-contract-input.ts +5 -1
  89. package/src/bridge-contract.ts +2 -1
  90. package/src/chromium-admission.ts +37 -29
  91. package/src/one-sdk-preparation.ts +3 -3
  92. package/src/runtime-delivery.ts +3 -2
  93. package/src/swift-compile.ts +6 -1
  94. package/src/swift-host.ts +4 -1
  95. package/src/swift-wasm-prune.ts +10 -6
@@ -48,6 +48,9 @@ import type {
48
48
  import type { ProfileFile } from '@peach/globals/profiler'
49
49
 
50
50
  const DEFAULT_TIMEOUT = 10000
51
+ // maestro's launchApp returns once the app is up; the steps after it wait for their own
52
+ // element or still screen, so a launch waits for content without the quiet window
53
+ const LAUNCHED_READY_STABLE_MS = 0
51
54
  // how long maestro looks for a required assertion's element, counted from the
52
55
  // latest interaction (Orchestra lookupTimeoutMs and adjustedToLatestInteraction)
53
56
  const ASSERTION_LOOKUP_MS = 17_000
@@ -1232,9 +1235,10 @@ export class SootSimBridgeFlowRunner {
1232
1235
  })
1233
1236
  }
1234
1237
 
1235
- async waitForTree(timeout: number = DEFAULT_TIMEOUT) {
1238
+ async waitForTree(timeout: number = DEFAULT_TIMEOUT, stableMs?: number) {
1236
1239
  let status = await inspectWaitReady(this.bridge, scaledTimeout(timeout), {
1237
1240
  simId: this.opts.simId,
1241
+ stableMs,
1238
1242
  })
1239
1243
  if (status.ready) return
1240
1244
  if (status.externalError) {
@@ -1271,6 +1275,7 @@ export class SootSimBridgeFlowRunner {
1271
1275
  replaceCurrentSimId(successor)
1272
1276
  status = await inspectWaitReady(this.bridge, scaledTimeout(timeout), {
1273
1277
  simId: this.opts.simId,
1278
+ stableMs,
1274
1279
  })
1275
1280
  if (status.ready) return
1276
1281
  }
@@ -2464,7 +2469,7 @@ export class SootSimBridgeFlowRunner {
2464
2469
  let identicalFrames = 1
2465
2470
  let rawBuffer: Buffer | null = null
2466
2471
  for (let attempt = 0; attempt < 12; attempt++) {
2467
- await this.waitForVisualSettle()
2472
+ this.stillRevision = await this.waitForVisualSettle(this.stillRevision)
2468
2473
  const dataUrl: string = await this.bridge.send(screenshotRequest)
2469
2474
  const current = Buffer.from(
2470
2475
  dataUrl.replace(/^data:image\/png;base64,/, ''),
@@ -3101,7 +3106,7 @@ export class SootSimBridgeFlowRunner {
3101
3106
  launchArguments: hasLaunchArguments ? launchArguments : null,
3102
3107
  initialUrl: null,
3103
3108
  })
3104
- await this.waitForTree(120000)
3109
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3105
3110
  } else if (hasLaunchArguments) {
3106
3111
  const launched = await this.launchShellAppFromHomeIfNeeded(opts)
3107
3112
  if (launched) await this.waitForTree(120000)
@@ -3109,22 +3114,22 @@ export class SootSimBridgeFlowRunner {
3109
3114
  launchArguments,
3110
3115
  initialUrl: null,
3111
3116
  })
3112
- await this.waitForTree(120000)
3113
- await this.waitForTree(30000)
3117
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3118
+ await this.waitForTree(30000, LAUNCHED_READY_STABLE_MS)
3114
3119
  } else if (wantsResetRuntime) {
3115
3120
  const launched = await this.launchShellAppFromHomeIfNeeded(opts)
3116
3121
  if (launched) await this.waitForTree(120000)
3117
3122
  await this.reloadGuestAppRuntime({})
3118
- await this.waitForTree(120000)
3119
- await this.waitForTree(30000)
3123
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3124
+ await this.waitForTree(30000, LAUNCHED_READY_STABLE_MS)
3120
3125
  } else if (this.appStopped) {
3121
3126
  await this.launchShellAppFromHomeIfNeeded(opts)
3122
3127
  await this.reloadGuestAppRuntime({
3123
3128
  launchArguments: null,
3124
3129
  initialUrl: null,
3125
3130
  })
3126
- await this.waitForTree(120000)
3127
- await this.waitForTree(30000)
3131
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3132
+ await this.waitForTree(30000, LAUNCHED_READY_STABLE_MS)
3128
3133
  } else {
3129
3134
  const launched =
3130
3135
  !bootedByOpen && (await this.launchShellAppFromHomeIfNeeded(opts))
@@ -3135,8 +3140,8 @@ export class SootSimBridgeFlowRunner {
3135
3140
  initialUrl: null,
3136
3141
  })
3137
3142
  }
3138
- await this.waitForTree(120000)
3139
- await this.waitForTree(30000)
3143
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3144
+ await this.waitForTree(30000, LAUNCHED_READY_STABLE_MS)
3140
3145
  }
3141
3146
  } else {
3142
3147
  if (wantsClear) {
@@ -3150,7 +3155,7 @@ export class SootSimBridgeFlowRunner {
3150
3155
  initialUrl: null,
3151
3156
  })
3152
3157
  }
3153
- await this.waitForTree(120000)
3158
+ await this.waitForTree(120000, LAUNCHED_READY_STABLE_MS)
3154
3159
  if (this.opts.onAfterLaunch) {
3155
3160
  try {
3156
3161
  await this.opts.onAfterLaunch(this.opts.simId)
@@ -3233,7 +3238,7 @@ export class SootSimBridgeFlowRunner {
3233
3238
  }
3234
3239
  }
3235
3240
 
3236
- private async waitForVisualSettle() {
3241
+ private async waitForVisualSettle(stillSince: string | null = null) {
3237
3242
  const result = await waitForSootsimIdle({
3238
3243
  bridge: this.bridge,
3239
3244
  simId: this.opts.simId,
@@ -3242,12 +3247,14 @@ export class SootSimBridgeFlowRunner {
3242
3247
  stablePolls: 3,
3243
3248
  maestro: true,
3244
3249
  screenStill: true,
3250
+ stillSince,
3245
3251
  })
3246
3252
  if (!result.settled) {
3247
3253
  throw new Error(
3248
3254
  `visual state did not settle within ${result.elapsed}ms (${result.blockedBy})`,
3249
3255
  )
3250
3256
  }
3257
+ return result.stillRevision ?? null
3251
3258
  }
3252
3259
 
3253
3260
  private resolveShellLaunchAppId(opts: unknown, state: ShellState | null): string {
@@ -1098,7 +1098,7 @@ async function waitForProcessExit(pid: number, timeoutMs = 2_500): Promise<boole
1098
1098
  const deadline = Date.now() + timeoutMs
1099
1099
  while (Date.now() < deadline) {
1100
1100
  if (!isProcessRunning(pid)) return true
1101
- await sleep(100)
1101
+ await sleep(25)
1102
1102
  }
1103
1103
  return !isProcessRunning(pid)
1104
1104
  }
@@ -2580,7 +2580,9 @@ export async function closeSimsBulk(
2580
2580
  ),
2581
2581
  )
2582
2582
  const wanted = new Set(ids.filter((id) => !refused.includes(id)))
2583
- for (let i = 0; i < 40; i++) {
2583
+ // a closed sim disconnects within a few frames, and a flow waits on this before it exits
2584
+ const deadline = Date.now() + 10_000
2585
+ for (;;) {
2584
2586
  let stillOpen: string[] = []
2585
2587
  try {
2586
2588
  const probe = createBridge(wsPort, { commandTimeoutMs })
@@ -2598,16 +2600,15 @@ export async function closeSimsBulk(
2598
2600
  if (stillOpen.length === 0) {
2599
2601
  return { closed: [...wanted], remaining: refused, refused }
2600
2602
  }
2601
- if (i === 39) {
2603
+ if (Date.now() >= deadline) {
2602
2604
  return {
2603
2605
  closed: [...wanted].filter((id) => !stillOpen.includes(id)),
2604
2606
  remaining: [...stillOpen, ...refused],
2605
2607
  refused,
2606
2608
  }
2607
2609
  }
2608
- await sleep(250)
2610
+ await sleep(25)
2609
2611
  }
2610
- return { closed: [...wanted], remaining: refused, refused }
2611
2612
  }
2612
2613
 
2613
2614
  export interface BulkCloseRefusal {
@@ -1221,6 +1221,8 @@ export interface WaitReadyOptions {
1221
1221
  now?: () => number
1222
1222
  stallMs?: number
1223
1223
  capMs?: number
1224
+ // how long the node count must hold still once the app shows content
1225
+ stableMs?: number
1224
1226
  }
1225
1227
 
1226
1228
  export function waitReadyPhase(
@@ -1356,7 +1358,13 @@ export async function inspectWaitReady(
1356
1358
  options: WaitReadyOptions = {},
1357
1359
  ): Promise<WaitReadyStatus> {
1358
1360
  if (timeoutMs != null) {
1359
- const result = await sendReadyWait(bridge, timeoutMs, options.simId)
1361
+ const result = await sendReadyWait(
1362
+ bridge,
1363
+ timeoutMs,
1364
+ options.simId,
1365
+ undefined,
1366
+ options.stableMs,
1367
+ )
1360
1368
  const status = waitReadyFromResult(result)
1361
1369
  if (!status.ready && options.onProgress) options.onProgress(status)
1362
1370
  return status
@@ -1398,7 +1406,13 @@ export async function inspectWaitReady(
1398
1406
  : { progressCapped: true }),
1399
1407
  }
1400
1408
  }
1401
- const result = await sendReadyWait(bridge, slice, options.simId)
1409
+ const result = await sendReadyWait(
1410
+ bridge,
1411
+ slice,
1412
+ options.simId,
1413
+ undefined,
1414
+ options.stableMs,
1415
+ )
1402
1416
  const status = waitReadyFromResult(result)
1403
1417
  status.elapsedMs = now() - start
1404
1418
  lastStatus = status
@@ -1521,6 +1535,7 @@ async function sendReadyWait(
1521
1535
  timeoutMs: number,
1522
1536
  simId: string | undefined,
1523
1537
  transportMs?: number,
1538
+ stableMs?: number,
1524
1539
  ): Promise<SemanticWaitResult> {
1525
1540
  const start = Date.now()
1526
1541
  let targetSimId = simId
@@ -1529,7 +1544,7 @@ async function sendReadyWait(
1529
1544
  try {
1530
1545
  const result = await sendSemanticWait(
1531
1546
  bridge,
1532
- { type: 'ready' },
1547
+ { type: 'ready', ...(stableMs === undefined ? {} : { stableMs }) },
1533
1548
  remaining,
1534
1549
  targetSimId,
1535
1550
  transportMs,
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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;
@@ -544,8 +544,12 @@ function parseSemanticWaitOptions(value) {
544
544
  const type = stringValue(condition.type, "waitFor.condition.type");
545
545
  const timeoutMs = semanticWaitTimeout(input, "waitFor");
546
546
  if (type === "ready") {
547
+ const stableMs = optionalNumber(condition, "stableMs", "waitFor.condition");
548
+ if (stableMs !== void 0 && stableMs < 0) {
549
+ return validationFailure("waitFor.condition.stableMs", "must not be negative");
550
+ }
547
551
  return {
548
- condition: { type },
552
+ condition: { type, ...stableMs === void 0 ? {} : { stableMs } },
549
553
  ...timeoutMs === void 0 ? {} : { timeoutMs }
550
554
  };
551
555
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -505,8 +505,12 @@ function parseSemanticWaitOptions(value) {
505
505
  const type = stringValue(condition.type, "waitFor.condition.type");
506
506
  const timeoutMs = semanticWaitTimeout(input, "waitFor");
507
507
  if (type === "ready") {
508
+ const stableMs = optionalNumber(condition, "stableMs", "waitFor.condition");
509
+ if (stableMs !== void 0 && stableMs < 0) {
510
+ return validationFailure("waitFor.condition.stableMs", "must not be negative");
511
+ }
508
512
  return {
509
- condition: { type },
513
+ condition: { type, ...stableMs === void 0 ? {} : { stableMs } },
510
514
  ...timeoutMs === void 0 ? {} : { timeoutMs }
511
515
  };
512
516
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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;
@@ -10852,7 +10852,9 @@ async function selectOneSDK(appRoot) {
10852
10852
  throw error;
10853
10853
  }
10854
10854
  const one = import_node_path11.default.dirname(onePackage);
10855
- const generator = await import((0, import_node_url.pathToFileURL)(import_node_path11.default.join(one, "dist/sdk/app.mjs")).href);
10855
+ const generatorFile = import_node_path11.default.join(one, "dist/sdk/app.mjs");
10856
+ if (!import_node_fs13.default.existsSync(generatorFile)) return null;
10857
+ const generator = await import((0, import_node_url.pathToFileURL)(generatorFile).href);
10856
10858
  const frameworks = generator.importedFrameworks(appRoot).filter((name3) => name3 === "UIKit");
10857
10859
  return frameworks.length ? { one, generator, frameworks } : null;
10858
10860
  }
@@ -20464,13 +20466,15 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
20464
20466
  };
20465
20467
  }
20466
20468
  function parseWasmObjectCached(file, isDist, useCache) {
20469
+ if (!useCache)
20470
+ return parseWasmObjectBytes(file, new Uint8Array(import_node_fs26.default.readFileSync(file)), isDist);
20467
20471
  const key2 = `${isDist ? "1" : "0"}:${file}`;
20468
- if (useCache) {
20469
- const hit = parsedObjectCache.get(key2);
20470
- if (hit) return hit;
20471
- }
20472
+ const stat = import_node_fs26.default.statSync(file, { bigint: true });
20473
+ const stamp = `${stat.ino}:${stat.size}:${stat.mtimeNs}:${stat.ctimeNs}`;
20474
+ const hit = parsedObjectCache.get(key2);
20475
+ if (hit?.stamp === stamp) return hit.parsed;
20472
20476
  const parsed = parseWasmObjectBytes(file, new Uint8Array(import_node_fs26.default.readFileSync(file)), isDist);
20473
- if (useCache) parsedObjectCache.set(key2, parsed);
20477
+ parsedObjectCache.set(key2, { stamp, parsed });
20474
20478
  return parsed;
20475
20479
  }
20476
20480
  function localizeDefinedWasmSymbols(bytes, names) {
@@ -27308,7 +27312,7 @@ function swiftCondition(text6, available) {
27308
27312
  if (name3 === "canImport")
27309
27313
  return argument !== "FoundationNetworking" && available?.has(argument);
27310
27314
  if (name3 === "targetEnvironment") return argument === "simulator";
27311
- if (name3 === "arch") return argument === "wasm64";
27315
+ if (name3 === "arch") return argument === "wasm64" || argument === "arm64";
27312
27316
  return void 0;
27313
27317
  };
27314
27318
  const both = () => {
@@ -28364,7 +28368,7 @@ function swiftConditionsAsIOS(source, lineStarts, swiftPackage) {
28364
28368
  const start = offset;
28365
28369
  offset += line.length + 1;
28366
28370
  if (!lineStarts.has(start) || !DIRECTIVE.test(line)) return line;
28367
- const platform2 = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
28371
+ const platform2 = line.replace(OS_IOS, (match) => "true".padEnd(match.length)).replace(ARCH_ARM64, (match) => "true".padEnd(match.length)).replace(NOT_ON_IOS, (match) => "false".padEnd(match.length));
28368
28372
  return swiftPackage === false ? platform2.replace(/\bSWIFT_PACKAGE\b/g, (match) => "false".padEnd(match.length)) : platform2;
28369
28373
  }).join("\n");
28370
28374
  }
@@ -31636,7 +31640,7 @@ function compileSwiftProjectOnce(input, options) {
31636
31640
  options.signal
31637
31641
  );
31638
31642
  }
31639
- var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
31643
+ var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
31640
31644
  var init_swift_compile = __esm({
31641
31645
  "src/swift-compile.ts"() {
31642
31646
  "use strict";
@@ -31871,13 +31875,14 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
31871
31875
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
31872
31876
  MULTI_MANIFEST_VERSION = 68;
31873
31877
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
31874
- compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
31878
+ compilerSourceDigest = true ? "a0acd3d55350e702b64da3ee739e811f7963210d0eb97002ee7d2214bb99e47c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
31875
31879
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
31876
31880
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
31877
31881
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
31878
31882
  SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET = "12.0";
31879
31883
  DIRECTIVE = /^[ \t]*#(?:if|elseif)\b/;
31880
31884
  OS_IOS = /\b(?:os\(\s*iOS\s*\)|targetEnvironment\(\s*simulator\s*\))/g;
31885
+ ARCH_ARM64 = /\barch\(\s*arm64\s*\)/g;
31881
31886
  NOT_ON_IOS = /\b(?:os\(\s*WASI\s*\)|canImport\(\s*FoundationNetworking\s*\))/g;
31882
31887
  DELEGATE_CLASS = /^class\s+[A-Za-z_]\w*\s*(?:<[^>{]*>)?\s*:[^{]*\b(?:UIApplicationDelegate|UISceneDelegate|UIWindowSceneDelegate)\b[^{]*\{/;
31883
31888
  FOUNDATION_NETWORKING_TYPES = /* @__PURE__ */ new Set([
@@ -43812,7 +43817,7 @@ var init_swift_standin_digest = __esm({
43812
43817
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
43813
43818
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
43814
43819
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
43815
- STANDIN_SOURCE_DIGEST = true ? "977c30e838b3cb068d200b9a9a12851b01d2192d0d04e2b5a6abe8189c168d42" : standinSourceDigest();
43820
+ STANDIN_SOURCE_DIGEST = true ? "1f63cea9c23045599de30a6706e16844da16611e8d385fe31034727e8884380c" : standinSourceDigest();
43816
43821
  }
43817
43822
  });
43818
43823
 
@@ -49994,6 +49999,7 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
49994
49999
  let bytes;
49995
50000
  let ext = import_node_path78.default.posix.extname(file).toLowerCase();
49996
50001
  let uploadName = import_node_path78.default.posix.basename(file);
50002
+ let variantScale = scale;
49997
50003
  if (ext === ".pdf") {
49998
50004
  const pdfBytes = readPackageFile2(project2.packagePath, disk, limits.imageBytes);
49999
50005
  const pdfHash = (0, import_node_crypto39.createHash)("sha256").update(pdfBytes).digest("hex");
@@ -50012,6 +50018,7 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
50012
50018
  const svg = ext === ".svg" ? rasterizeSvgFile(disk, (0, import_node_crypto39.createHash)("sha256").update(bytes).digest("hex")) : null;
50013
50019
  if (svg) {
50014
50020
  bytes = svg.bytes;
50021
+ variantScale = 3;
50015
50022
  ext = ".png";
50016
50023
  uploadName = `${import_node_path78.default.posix.basename(file, import_node_path78.default.posix.extname(file))}.png`;
50017
50024
  }
@@ -50025,7 +50032,7 @@ function buildSwiftResourceTable(project2, baseUrl, inputs) {
50025
50032
  const variants = bundle[name3] ??= [];
50026
50033
  variants.push({
50027
50034
  uri: `${baseUrl}${RESOURCE_PATH}${hash}${ext}`,
50028
- scale,
50035
+ scale: variantScale,
50029
50036
  ...renderingMode ? { renderingMode } : {}
50030
50037
  });
50031
50038
  table[bundlePath] = bundle;
@@ -56400,7 +56407,7 @@ var init_nitro_superset = __esm({
56400
56407
  init_nitroContract();
56401
56408
  init_swift_standin_digest();
56402
56409
  NITRO_SUPERSET_ENTRY_NAME = "superset";
56403
- NITRO_COMPILER_DIGEST = true ? "0429b227e3c07f9b7eede2db1261fa41aed089c33099b22004c3776da007bf07" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
56410
+ NITRO_COMPILER_DIGEST = true ? "15e3c055218437b57cd4aaf5e04379e24084d7ef3c1661dd4640d4bfa0f8e45a" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
56404
56411
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
56405
56412
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
56406
56413
  published = /* @__PURE__ */ new Map();
@@ -57617,7 +57624,7 @@ var init_expo_native_compiler_digest = __esm({
57617
57624
 
57618
57625
  // src/expo-native-prebuilt.ts
57619
57626
  function expoNativeCompilerDigestValue() {
57620
- return true ? "61015852e514afc4871689bd71712eb2a5ac95c8b04829519dc81f6855f86b30" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
57627
+ return true ? "7948b0026a336ed76b04462c72d6ee290df53ba2c34cae533361bef6b206244b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
57621
57628
  }
57622
57629
  function readSources(value) {
57623
57630
  const sources = isRecord(value) ? value.sources : null;
@@ -65061,7 +65068,7 @@ var import_node_path5 = require("node:path");
65061
65068
  init_src();
65062
65069
 
65063
65070
  // runtime-companion.json
65064
- var runtime_companion_default = { abi: 1, sha256: "15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e", file: "node/cli-15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e.cjs" };
65071
+ var runtime_companion_default = { abi: 1, sha256: "3f866674ef9cb3c9dd8d40d8b28a4b9c1131b5c5f7fa6504651570ed7ce753a3", file: "node/cli-3f866674ef9cb3c9dd8d40d8b28a4b9c1131b5c5f7fa6504651570ed7ce753a3.cjs" };
65065
65072
 
65066
65073
  // src/cli-runtime.ts
65067
65074
  init_answeredNativePackages();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -2475,7 +2475,7 @@ function isValidRuntimeVersion(value) {
2475
2475
  }
2476
2476
 
2477
2477
  // runtime-companion.json
2478
- var runtime_companion_default = { abi: 1, sha256: "15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e", file: "node/cli-15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e.cjs" };
2478
+ var runtime_companion_default = { abi: 1, sha256: "3f866674ef9cb3c9dd8d40d8b28a4b9c1131b5c5f7fa6504651570ed7ce753a3", file: "node/cli-3f866674ef9cb3c9dd8d40d8b28a4b9c1131b5c5f7fa6504651570ed7ce753a3.cjs" };
2479
2479
 
2480
2480
  // src/runtime-assets.ts
2481
2481
  var import_fs = __toESM(require("fs"), 1);
@@ -6283,34 +6283,43 @@ function readChromiumQueue(deps, verified, own) {
6283
6283
  );
6284
6284
  fs5.mkdirSync(dir, { recursive: true });
6285
6285
  const limit = Math.max(2, Math.floor(os4.cpus().length / 2));
6286
- const live = (entry) => {
6287
- const match = /^(\d+)-(\d+)-/.exec(entry);
6288
- if (!match) return false;
6289
- const pid = Number(match[1]);
6286
+ const alive = (pid) => {
6290
6287
  try {
6291
6288
  process.kill(pid, 0);
6292
- } catch (err) {
6293
- if (!(err instanceof Error && "code" in err && err.code === "EPERM")) return false;
6294
- }
6295
- if (pid === process.pid) return true;
6296
- const known = verified.get(entry);
6297
- if (known !== void 0) return known;
6298
- let startedAt;
6299
- try {
6300
- startedAt = Date.parse(
6301
- childProcess2.execFileSync("ps", ["-p", String(pid), "-o", "lstart="], { encoding: "utf8" }).trim()
6302
- );
6303
- } catch {
6304
6289
  return true;
6290
+ } catch (err) {
6291
+ return err instanceof Error && "code" in err && err.code === "EPERM";
6305
6292
  }
6306
- if (Number.isNaN(startedAt)) return true;
6307
- const same = startedAt / 1e3 <= Number(match[2]) + 2;
6308
- verified.set(entry, same);
6309
- return same;
6310
6293
  };
6294
+ const entries = fs5.readdirSync(dir).map((entry) => {
6295
+ const match = /^(\d+)-(\d+)-/.exec(entry);
6296
+ const pid = match ? Number(match[1]) : 0;
6297
+ const held = entry === own || match !== null && alive(pid);
6298
+ return { entry, pid, start: match ? Number(match[2]) : 0, held };
6299
+ });
6300
+ const unread = entries.filter(
6301
+ (e) => e.held && e.entry !== own && e.pid !== process.pid && !verified.has(e.entry)
6302
+ );
6303
+ if (unread.length) {
6304
+ const startedAt = /* @__PURE__ */ new Map();
6305
+ const out = childProcess2.spawnSync(
6306
+ "ps",
6307
+ ["-p", unread.map((e) => e.pid).join(","), "-o", "pid=,lstart="],
6308
+ { encoding: "utf8" }
6309
+ ).stdout;
6310
+ for (const line of (out ?? "").split("\n")) {
6311
+ const m = /^\s*(\d+)\s+(.+?)\s*$/.exec(line);
6312
+ if (m) startedAt.set(Number(m[1]), Date.parse(m[2]));
6313
+ }
6314
+ for (const e of unread) {
6315
+ const at = startedAt.get(e.pid);
6316
+ if (at === void 0 || Number.isNaN(at)) continue;
6317
+ verified.set(e.entry, at / 1e3 <= e.start + 2);
6318
+ }
6319
+ }
6311
6320
  const tickets = [];
6312
- for (const entry of fs5.readdirSync(dir)) {
6313
- if (entry !== own && !live(entry)) {
6321
+ for (const { entry, held } of entries) {
6322
+ if (!held || verified.get(entry) === false) {
6314
6323
  try {
6315
6324
  fs5.unlinkSync(path7.join(dir, entry));
6316
6325
  } catch {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2251 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2253 | (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;