peachsim 0.1.2385 → 0.1.2387

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 (99) hide show
  1. package/cli/commands/flow.ts +5 -5
  2. package/cli/commands/maestro-generate.ts +1 -1
  3. package/cli/commands/maestro.ts +2 -2
  4. package/cli/commands/map.ts +1 -1
  5. package/cli/commands/preview.ts +2 -2
  6. package/cli/commands/record.ts +4 -4
  7. package/cli/commands/stream.ts +1 -1
  8. package/cli/commands/test.ts +3 -3
  9. package/cli/commands/upload.ts +3 -3
  10. package/detox/index.ts +7 -2
  11. package/dist-lib/agent-daemon-client.cjs +1 -1
  12. package/dist-lib/agent-events.cjs +1 -1
  13. package/dist-lib/attached-projects.cjs +1 -1
  14. package/dist-lib/auth/shared-session.cjs +1 -1
  15. package/dist-lib/backend-origin.cjs +1 -1
  16. package/dist-lib/beta.cjs +1 -1
  17. package/dist-lib/beta.mjs +1 -1
  18. package/dist-lib/bridge-constants.cjs +1 -1
  19. package/dist-lib/bridge-contract-input.cjs +1 -1
  20. package/dist-lib/bridge-contract-input.mjs +1 -1
  21. package/dist-lib/bridge-contract.cjs +1 -1
  22. package/dist-lib/bridge-contract.mjs +1 -1
  23. package/dist-lib/bundle-channel.cjs +44 -29
  24. package/dist-lib/capture-contract.cjs +1 -1
  25. package/dist-lib/capture-contract.mjs +1 -1
  26. package/dist-lib/cloud-contract.cjs +1 -1
  27. package/dist-lib/cloud-contract.mjs +1 -1
  28. package/dist-lib/cloud-test-args.cjs +1 -1
  29. package/dist-lib/cloud-test-args.mjs +1 -1
  30. package/dist-lib/cloud.cjs +1 -1
  31. package/dist-lib/cloud.mjs +1 -1
  32. package/dist-lib/config.cjs +1 -1
  33. package/dist-lib/config.mjs +1 -1
  34. package/dist-lib/detox/index.cjs +4 -3
  35. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  36. package/dist-lib/expo-swift-bundle.cjs +43 -28
  37. package/dist-lib/expo-swift-metadata.cjs +1 -1
  38. package/dist-lib/expo-swift-metadata.mjs +1 -1
  39. package/dist-lib/home-paths.cjs +1 -1
  40. package/dist-lib/host/bridge-host.cjs +44 -29
  41. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  42. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  43. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  44. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  45. package/dist-lib/host/websocket-proxy.cjs +1 -1
  46. package/dist-lib/index.cjs +4 -4
  47. package/dist-lib/jump-to-source-babel.cjs +1 -1
  48. package/dist-lib/jump-to-source-native.cjs +1 -1
  49. package/dist-lib/kotlin-host.cjs +1 -1
  50. package/dist-lib/menu.cjs +1 -1
  51. package/dist-lib/menu.mjs +1 -1
  52. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  53. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  54. package/dist-lib/metro-production-bundle.cjs +1 -1
  55. package/dist-lib/metro-production-bundle.mjs +1 -1
  56. package/dist-lib/metro.cjs +4 -4
  57. package/dist-lib/native-app-identity-project.cjs +2 -2
  58. package/dist-lib/native-app-identity-project.mjs +2 -2
  59. package/dist-lib/native-app-identity.cjs +1 -1
  60. package/dist-lib/native-app-identity.mjs +1 -1
  61. package/dist-lib/native-firebase-metadata.cjs +1 -1
  62. package/dist-lib/native-firebase-metadata.mjs +1 -1
  63. package/dist-lib/pdfium-raster.cjs +1 -1
  64. package/dist-lib/pdfium-raster.mjs +1 -1
  65. package/dist-lib/plist.cjs +1 -1
  66. package/dist-lib/plist.mjs +1 -1
  67. package/dist-lib/profiles.cjs +1 -1
  68. package/dist-lib/public-brand.cjs +1 -1
  69. package/dist-lib/public-origins-lib-esm.json +24 -24
  70. package/dist-lib/public-origins-lib.json +53 -53
  71. package/dist-lib/react-native-host-modules.cjs +1 -1
  72. package/dist-lib/react-native-host-modules.mjs +1 -1
  73. package/dist-lib/reap-browser.cjs +1 -1
  74. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  75. package/dist-lib/sdk.cjs +1 -1
  76. package/dist-lib/sdk.mjs +1 -1
  77. package/dist-lib/skills.cjs +64 -49
  78. package/dist-lib/swift-compile.cjs +34 -22
  79. package/dist-lib/swift-compile.mjs +34 -22
  80. package/dist-lib/swift-package.cjs +1 -1
  81. package/dist-lib/swift-package.mjs +1 -1
  82. package/dist-lib/swift-submit.cjs +1 -1
  83. package/dist-lib/swift-submit.mjs +1 -1
  84. package/dist-lib/swift-toolchain.cjs +1 -1
  85. package/dist-lib/swift.cjs +1 -1
  86. package/dist-lib/vite-swift.cjs +36 -24
  87. package/dist-lib/vite.cjs +4 -4
  88. package/dist-lib/worklet-executable.cjs +1 -1
  89. package/dist-lib/worklet-executable.mjs +1 -1
  90. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -2
  91. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +16 -1
  92. package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +1 -0
  93. package/kotlin/sdk.tar.gz +0 -0
  94. package/node-runtime.json +1 -1
  95. package/package.json +1 -1
  96. package/skills/contrast/SKILL.md +3 -4
  97. package/src/expo-native-workspace.ts +18 -15
  98. package/src/react-native-core-build.ts +2 -3
  99. package/src/swift-compile.ts +56 -30
@@ -319,8 +319,8 @@ options:
319
319
  --sim <id> target a specific current sim
320
320
  --validate replay the drafted flow before clearing it
321
321
  --video replay and record the drafted flow before clearing it
322
- --preview record events+video, upload, and print /preview/<id>
323
- --preview-open open the uploaded preview link after a successful run
322
+ --preview upload a Recording of events and video and print its link
323
+ --preview-open open the uploaded Recording after a successful run
324
324
  --preview-origin <url>
325
325
  upload target for --preview (default: auto)
326
326
  --preview-public-origin <url>
@@ -329,7 +329,7 @@ options:
329
329
  --billing-kind test_run
330
330
  the chained upload is a hosted test job's recording,
331
331
  covered by the job's minutes (set by the hosted recorder)
332
- --owner <org> associate preview upload with a linked org repo
332
+ --owner <org> associate the Recording with a linked org repo
333
333
  --repo <repo> repo name for --owner; user must belong to the team
334
334
 
335
335
  frontmatter (top of flow.yaml between --- markers):
@@ -1175,7 +1175,7 @@ flow extension:
1175
1175
  if (previewBillingKind) {
1176
1176
  uploadArgs.push('--billing-kind', previewBillingKind)
1177
1177
  }
1178
- console.log(`\n preparing preview upload…`)
1178
+ console.log(`\n preparing Recording upload…`)
1179
1179
  const flowTraceSteps = driver.getFlowTraceSteps()
1180
1180
  if (flowTraceSteps.length > 0) {
1181
1181
  uploadArgs.push(
@@ -1224,7 +1224,7 @@ flow extension:
1224
1224
  err instanceof PeachExit && err.reason
1225
1225
  ? err.reason
1226
1226
  : String(err?.message || err)
1227
- console.error(` preview upload failed: ${lastPreviewUploadError}`)
1227
+ console.error(` Recording upload failed: ${lastPreviewUploadError}`)
1228
1228
  exitCode = 1
1229
1229
  }
1230
1230
  }
@@ -560,7 +560,7 @@ export async function runMaestroGenerate(args: string[]): Promise<number> {
560
560
  )
561
561
  console.log(`\n result: ${status}`)
562
562
  if (run) console.log(` run: ${run.id}`)
563
- if (upload?.previewUrl) console.log(` preview: ${upload.previewUrl}`)
563
+ if (upload?.previewUrl) console.log(` recording: ${upload.previewUrl}`)
564
564
  if (run?.traceUrl) console.log(` replay: ${run.traceUrl}`)
565
565
  return exitCode
566
566
  }
@@ -110,8 +110,8 @@ options:
110
110
  --headed force a fresh, VISIBLE window (implies --new,
111
111
  overrides --headless) — watch the flow run live
112
112
  --record record a webm while the flow runs
113
- --preview record events+video, upload, and print /preview/<id>
114
- --preview-open open the uploaded preview link after a successful run
113
+ --preview upload a Recording of events and video and print its link
114
+ --preview-open open the uploaded Recording after a successful run
115
115
  --preview-origin <url> upload target for --preview
116
116
  --preview-public-origin <url>
117
117
  public link origin for --preview
@@ -594,6 +594,6 @@ async function publish(file: string, args: string[]): Promise<number> {
594
594
  throw new Error(`publish failed (${res.status}): ${(await res.text()).slice(0, 300)}`)
595
595
  }
596
596
  const url = `${origin.replace(/\/$/, '')}/org/${owner}/${repo}/map?branch=${encodeURIComponent(body.branch)}&appearance=${body.appearance}`
597
- console.log(` published ${map.screens.length} screens: ${url}`)
597
+ console.log(` map: ${url} (${map.screens.length} screens)`)
598
598
  return 0
599
599
  }
@@ -129,7 +129,7 @@ export async function runPreview(args: string[]): Promise<number> {
129
129
  )
130
130
  if (json) console.log(JSON.stringify(receipt))
131
131
  else {
132
- console.log(` preview: ${receipt.previewUrl}`)
132
+ console.log(` build: ${receipt.previewUrl}`)
133
133
  console.log(` job: ${receipt.jobId}`)
134
134
  console.log(` artifact: ${JSON.stringify(receipt.artifact)}`)
135
135
  }
@@ -184,7 +184,7 @@ export async function runPreview(args: string[]): Promise<number> {
184
184
  }),
185
185
  )
186
186
  else {
187
- console.log(` preview: ${url}`)
187
+ console.log(` build: ${url}`)
188
188
  if (finalize.visibility === 'private') console.log(PRIVATE_PREVIEW_NOTE)
189
189
  console.log(
190
190
  ` artifact: sha256:${artifact.sha256} (${artifact.bytes.byteLength} bytes)`,
@@ -1196,7 +1196,7 @@ async function recordStart(args: string[], opts: RecordOptions) {
1196
1196
  )
1197
1197
  } else {
1198
1198
  console.log(
1199
- ` recording ${mode} — run \`peach record stop\` when done (add --open to launch the preview URL)`,
1199
+ ` recording ${mode} — run \`peach record stop\` when done (add --open to open the Recording)`,
1200
1200
  )
1201
1201
  }
1202
1202
  } finally {
@@ -1847,11 +1847,11 @@ function handleStoreUploadResult(
1847
1847
  peachExit(1)
1848
1848
  }
1849
1849
  if (!result.previewUrl) {
1850
- console.error(' upload returned no preview URL')
1850
+ console.error(' upload returned no Recording URL')
1851
1851
  peachExit(1)
1852
1852
  }
1853
- console.log(` preview: ${result.previewUrl}`)
1854
- if (result.previewId) console.log(` preview id: ${result.previewId}`)
1853
+ console.log(` recording: ${result.previewUrl}`)
1854
+ if (result.previewId) console.log(` recording id: ${result.previewId}`)
1855
1855
  if (result.visibility === 'private') console.log(PRIVATE_PREVIEW_NOTE)
1856
1856
  if (result.phases?.length) {
1857
1857
  console.log(
@@ -112,7 +112,7 @@ export async function runStreamCommand(
112
112
  })
113
113
  writeSecureJsonAtomic(file, record)
114
114
  removeRecord = () => rmSync(file, { force: true })
115
- console.log(` ${record.watchUrl}`)
115
+ console.log(` simulator: ${record.watchUrl}`)
116
116
  console.log(' Press Ctrl+C to stop streaming.')
117
117
  await new Promise<void>((resolve) => {
118
118
  const finish = () => {
@@ -1140,10 +1140,10 @@ export async function runCloudTest(
1140
1140
  console.log(` status: ${jobState.status}`)
1141
1141
  console.log(` exit code: ${exitCode}`)
1142
1142
  if (result?.previewUrl) {
1143
- console.log(` preview: ${result.previewUrl}`)
1143
+ console.log(` recording: ${result.previewUrl}`)
1144
1144
  } else if (result?.previewId) {
1145
1145
  console.log(
1146
- ` preview: ${origin.replace(/\/$/, '')}/preview/${result.previewId}`,
1146
+ ` recording: ${origin.replace(/\/$/, '')}/preview/${result.previewId}`,
1147
1147
  )
1148
1148
  }
1149
1149
  if (result?.runId) {
@@ -1152,7 +1152,7 @@ export async function runCloudTest(
1152
1152
  if (result?.flows && (result.flows.length > 1 || jobs.length > 1)) {
1153
1153
  result.flows.forEach((flow, flowIndex) => {
1154
1154
  console.log(
1155
- ` flow ${flowIndex + 1}: ${flow.flow ?? job.label ?? '(unknown flow)'} preview=${flow.previewUrl ?? flow.previewId ?? 'none'} run=${flow.runId ?? 'none'}`,
1155
+ ` flow ${flowIndex + 1}: ${flow.flow ?? job.label ?? '(unknown flow)'} recording=${flow.previewUrl ?? flow.previewId ?? 'none'} run=${flow.runId ?? 'none'}`,
1156
1156
  )
1157
1157
  })
1158
1158
  }
@@ -230,7 +230,7 @@ options:
230
230
  the recording of a hosted test job, covered by the
231
231
  job's minutes (set by the hosted recorder)
232
232
  --sim <sim> target a specific sim (see: peach list)
233
- --open open the resulting /preview/<id> url in the browser
233
+ --open open the resulting Recording in the browser
234
234
  --assets-only drop API/JSON/HTML records before upload; keep images,
235
235
  fonts, css, js, and binary blobs. live-data demos hit
236
236
  the real network at replay time instead of serving
@@ -1332,8 +1332,8 @@ export async function runUpload(
1332
1332
 
1333
1333
  const previewUrl = `${getCliRuntime().preview_presigned_upload.canonicalPublicPreviewOrigin(publicOrigin)}${finalize.shortUrl}`
1334
1334
  console.log(`\n stored ${finalize.filesStored ?? 0} extra files`)
1335
- console.log(` preview: ${previewUrl}`)
1336
- console.log(` preview id: ${finalize.id}`)
1335
+ console.log(` recording: ${previewUrl}`)
1336
+ console.log(` recording id: ${finalize.id}`)
1337
1337
 
1338
1338
  if (openResult) {
1339
1339
  await openUrl(previewUrl)
package/detox/index.ts CHANGED
@@ -2179,16 +2179,21 @@ export const device = {
2179
2179
 
2180
2180
  if (!_page || newInstance || opts?.delete || opts?.recordVideoDir) {
2181
2181
  await closeContext(!opts?.delete)
2182
+ // leave room for an iPhone at its logical size before sampling browser layers.
2183
+ const viewport =
2184
+ DETOX_PLATFORM === 'ios' && process.env.CONFORMANCE_PROOF === '1'
2185
+ ? { width: 601, height: 1101 }
2186
+ : { width: 500, height: 900 }
2182
2187
  const contextOpts: Parameters<NonNullable<typeof _browser>['newContext']>[0] = {
2183
2188
  hasTouch: true,
2184
- viewport: { width: 500, height: 900 },
2189
+ viewport,
2185
2190
  storageState: _appStorageState,
2186
2191
  }
2187
2192
  if (opts?.recordVideoDir) {
2188
2193
  fs.mkdirSync(opts.recordVideoDir, { recursive: true })
2189
2194
  contextOpts.recordVideo = {
2190
2195
  dir: opts.recordVideoDir,
2191
- size: { width: 500, height: 900 },
2196
+ size: viewport,
2192
2197
  }
2193
2198
  }
2194
2199
  const newContextIdentity = ++nextContextIdentity
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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;
@@ -35210,6 +35210,8 @@ function compileSwiftProjectOnce(input, options) {
35210
35210
  const moduleRoot = import_node_path42.default.resolve(options.moduleRoot);
35211
35211
  const distribution = swiftDistributionAt(moduleRoot);
35212
35212
  const guestGraph = distribution ? input.sourceLinkGraph : void 0;
35213
+ if (options.linkOnly && guestGraph)
35214
+ throw new Error("swift-compile: link-only builds do not support guest image graphs");
35213
35215
  const layout2 = {
35214
35216
  root,
35215
35217
  sources: import_node_path42.default.join(root, "Sources", "App"),
@@ -35222,24 +35224,26 @@ function compileSwiftProjectOnce(input, options) {
35222
35224
  console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
35223
35225
  options.onStage?.(message);
35224
35226
  };
35225
- report("checking verified artifacts");
35226
35227
  return serialize(
35227
35228
  root,
35228
35229
  async () => {
35229
- const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
35230
- if (retained && !options.intermediates) {
35231
- report("reusing memory artifact");
35232
- return retain(root, retained);
35233
- }
35234
- const cached2 = readCompiledArtifact(import_node_path42.default.join(sharedRoot, "artifact"), hash);
35235
- const previous = cached2 ?? (options.project ? null : readCompiledArtifact(import_node_path42.default.join(root, "artifact"), hash));
35236
- if (previous && !options.intermediates) {
35237
- if (cached2) renewSharedArtifact(sharedRoot);
35238
- else saveSharedArtifact(sharedRoot, previous);
35239
- report("reusing verified disk artifact");
35240
- return retain(root, previous);
35241
- }
35242
- if (!options.intermediates && process.platform === "darwin" && !options.intermediates && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
35230
+ if (!options.intermediates) {
35231
+ report("checking verified artifacts");
35232
+ const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
35233
+ if (retained) {
35234
+ report("reusing memory artifact");
35235
+ return retain(root, retained);
35236
+ }
35237
+ const cached2 = readCompiledArtifact(import_node_path42.default.join(sharedRoot, "artifact"), hash);
35238
+ const previous = cached2 ?? (options.project ? null : readCompiledArtifact(import_node_path42.default.join(root, "artifact"), hash));
35239
+ if (previous) {
35240
+ if (cached2) renewSharedArtifact(sharedRoot);
35241
+ else saveSharedArtifact(sharedRoot, previous);
35242
+ report("reusing verified disk artifact");
35243
+ return retain(root, previous);
35244
+ }
35245
+ }
35246
+ if (!options.intermediates && process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
35243
35247
  const requestRoot = (0, import_node_fs43.mkdtempSync)(`${root}.builder-request-`);
35244
35248
  const output2 = import_node_path42.default.join(requestRoot, "output");
35245
35249
  const request = import_node_path42.default.join(requestRoot, "request.json");
@@ -35296,10 +35300,12 @@ function compileSwiftProjectOnce(input, options) {
35296
35300
  return withSwiftRootLock(
35297
35301
  root,
35298
35302
  async (lease) => {
35299
- const built2 = readCompiledArtifact(import_node_path42.default.join(sharedRoot, "artifact"), hash);
35300
- if (built2 && !options.intermediates) {
35301
- report("reusing verified disk artifact");
35302
- return retain(root, built2);
35303
+ if (!options.intermediates) {
35304
+ const built2 = readCompiledArtifact(import_node_path42.default.join(sharedRoot, "artifact"), hash);
35305
+ if (built2) {
35306
+ report("reusing verified disk artifact");
35307
+ return retain(root, built2);
35308
+ }
35303
35309
  }
35304
35310
  const swift = import_node_path42.default.join(options.toolchainBin, "swift");
35305
35311
  if (!(0, import_node_fs43.existsSync)(swift)) {
@@ -35329,7 +35335,7 @@ function compileSwiftProjectOnce(input, options) {
35329
35335
  );
35330
35336
  const macroPlugins = distribution ? await withSwiftRootLock(frameworkScratch, pluginsFor, budget.signal) : await pluginsFor(frameworkLease);
35331
35337
  const sdk2 = swiftModuleSdk(frameworkRoot).wasmSdkId;
35332
- const icu = swiftIcuAsset(options.toolchainBin, sdk2);
35338
+ const icu = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk2);
35333
35339
  const buildOptions = {
35334
35340
  env: {
35335
35341
  ...options.project?.env ?? process.env,
@@ -35471,7 +35477,7 @@ function compileSwiftProjectOnce(input, options) {
35471
35477
  ];
35472
35478
  const linked = builtArtifact(layout2);
35473
35479
  (0, import_node_fs43.rmSync)(import_node_path42.default.join(root, ".peach-link.rsp"), { force: true });
35474
- if ((0, import_node_fs43.existsSync)(linked) && (0, import_node_fs43.statSync)(linked).size <= 8)
35480
+ if (options.linkOnly || (0, import_node_fs43.existsSync)(linked) && (0, import_node_fs43.statSync)(linked).size <= 8)
35475
35481
  (0, import_node_fs43.rmSync)(linked, { force: true });
35476
35482
  report("compiling and linking Swift modules");
35477
35483
  const frameworkInterfaces = /* @__PURE__ */ new Map();
@@ -35680,6 +35686,12 @@ function compileSwiftProjectOnce(input, options) {
35680
35686
  void 0,
35681
35687
  resourceReferences
35682
35688
  );
35689
+ if (options.linkOnly) {
35690
+ if ((0, import_node_fs43.statSync)(linked).size <= 8)
35691
+ throw new Error("swift-compile: deferred linker produced no executable");
35692
+ report("project link verified");
35693
+ return;
35694
+ }
35683
35695
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
35684
35696
  const optimized = `${output2}.optimized`;
35685
35697
  if (guestGraph)
@@ -35964,7 +35976,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
35964
35976
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
35965
35977
  MULTI_MANIFEST_VERSION = 69;
35966
35978
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
35967
- compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
35979
+ compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
35968
35980
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
35969
35981
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
35970
35982
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -44150,6 +44162,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
44150
44162
  const file = import_node_path63.default.join(directory2, entry.name);
44151
44163
  const relative4 = import_node_path63.default.relative(root, file);
44152
44164
  if (excluded(relative4, entry.isDirectory())) continue;
44165
+ const firstStep = steps.length;
44153
44166
  steps.push(() => hash.update(`${relative4}\0`));
44154
44167
  if (entry.isSymbolicLink()) {
44155
44168
  const link = `link\0${import_node_fs63.default.readlinkSync(file)}\0`;
@@ -44160,6 +44173,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
44160
44173
  } else if (entry.isDirectory()) {
44161
44174
  steps.push(() => hash.update("directory\0"));
44162
44175
  walk3(file);
44176
+ if (sourceOnly && steps.length === firstStep + 2) steps.length = firstStep;
44163
44177
  } else if (entry.isFile()) {
44164
44178
  const posix2 = relative4.split(import_node_path63.default.sep).join("/");
44165
44179
  if (NATIVE_CONFIG_FILE.test(posix2)) {
@@ -50502,7 +50516,7 @@ var init_swift_standin_digest = __esm({
50502
50516
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
50503
50517
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
50504
50518
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
50505
- STANDIN_SOURCE_DIGEST = true ? "762c4967fecca300c01dc513758217fca907a14a03c418d63d2cfcbfd7486c9d" : standinSourceDigest();
50519
+ STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
50506
50520
  }
50507
50521
  });
50508
50522
 
@@ -63269,7 +63283,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
63269
63283
  producer.files["Sources/PeachCoreProducerHost/include/PeachCoreProducerHost.h"] = "#pragma once\n";
63270
63284
  producer.files["Sources/PeachCoreProducerHost/Dispatch.m"] = "#import <dispatch/dispatch.h>\nvoid peachTurboDispatchAsync(dispatch_block_t block) { dispatch_async(dispatch_get_main_queue(), block); }\n";
63271
63285
  }
63272
- const input = { ...collectTurboCompileInput(producer, null, floor), optimize: false };
63286
+ const input = collectTurboCompileInput(producer, null, floor);
63273
63287
  input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
63274
63288
  const { compiler: _compiler, recipe: _recipe, ...nativeInputs } = entry.inputs;
63275
63289
  const buildRoot = import_node_path90.default.join(
@@ -63281,7 +63295,8 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
63281
63295
  ...module2,
63282
63296
  moduleRoot: module2.root,
63283
63297
  buildRoot,
63284
- intermediates: true
63298
+ intermediates: true,
63299
+ linkOnly: true
63285
63300
  });
63286
63301
  const products = import_node_path90.default.join(buildRoot, ".build", WASM_TRIPLE, "release");
63287
63302
  const emitted = swiftManifestTargets(
@@ -63553,7 +63568,7 @@ var init_react_native_core = __esm({
63553
63568
  init_swift_distribution();
63554
63569
  init_swift_package();
63555
63570
  init_swiftContract();
63556
- recipe = true ? "001a7b655dd7e7159ffd4ccf0bded8179bce9b48b6d0f5c3b56c41bdaaa78340" : reactNativeCoreDigest(__sootsim_import_meta_dirname);
63571
+ recipe = true ? "87bfef7f0e28d8a323a1069ee1002e9d9344e3b78b1f991164d392cacd10bde5" : reactNativeCoreDigest(__sootsim_import_meta_dirname);
63557
63572
  strings3 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
63558
63573
  building = /* @__PURE__ */ new Map();
63559
63574
  }
@@ -64828,7 +64843,7 @@ var init_nitro_superset = __esm({
64828
64843
  init_nitroContract();
64829
64844
  init_swift_standin_digest();
64830
64845
  NITRO_SUPERSET_ENTRY_NAME = "superset";
64831
- NITRO_COMPILER_DIGEST = true ? "38b3e4458677b821a8f3ba6ca2f6e430e73362795380b935ae4f8367f31c3dcb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
64846
+ NITRO_COMPILER_DIGEST = true ? "3850bd0ed6a53b6884a892f2931f95bce16c9ebfde267321be9b146a2e7b88e2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
64832
64847
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
64833
64848
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
64834
64849
  published = /* @__PURE__ */ new Map();
@@ -66067,7 +66082,7 @@ var init_expo_native_compiler_digest = __esm({
66067
66082
 
66068
66083
  // src/expo-native-prebuilt.ts
66069
66084
  function expoNativeCompilerDigestValue() {
66070
- return true ? "b96f394d7402014e1585ab28eeb3e138f99e4241e51cb8eb3ea50aa95c767a26" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66085
+ return true ? "c0a9caa08d93ceace645e91aa241a482f2e38e14d7423cee7a2d4d92a65d1793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66071
66086
  }
66072
66087
  function readSources(value) {
66073
66088
  const sources = isRecord(value) ? value.sources : null;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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;
@@ -10046,16 +10046,17 @@ var device = {
10046
10046
  }
10047
10047
  if (!_page || newInstance || opts?.delete || opts?.recordVideoDir) {
10048
10048
  await closeContext(!opts?.delete);
10049
+ const viewport = DETOX_PLATFORM === "ios" && process.env.CONFORMANCE_PROOF === "1" ? { width: 601, height: 1101 } : { width: 500, height: 900 };
10049
10050
  const contextOpts = {
10050
10051
  hasTouch: true,
10051
- viewport: { width: 500, height: 900 },
10052
+ viewport,
10052
10053
  storageState: _appStorageState
10053
10054
  };
10054
10055
  if (opts?.recordVideoDir) {
10055
10056
  fs4.mkdirSync(opts.recordVideoDir, { recursive: true });
10056
10057
  contextOpts.recordVideo = {
10057
10058
  dir: opts.recordVideoDir,
10058
- size: { width: 500, height: 900 }
10059
+ size: viewport
10059
10060
  };
10060
10061
  }
10061
10062
  const newContextIdentity = ++nextContextIdentity;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2385 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2387 | (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;