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
@@ -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;
@@ -11547,7 +11547,7 @@ var init_registry = __esm({
11547
11547
  {
11548
11548
  range: ">=4.0.0",
11549
11549
  coverage: 0.7,
11550
- note: "real upstream package \u2014 not intercepted. on iOS Peach compiles the package own ExpoShareIntentModule.swift and a share arrives through `peach defaults write` plus `peach open <scheme>://dataUrl=<key>#<type>`; the Android seam below answers Android only. useShareIntent, ShareIntentProvider, useShareIntentContext and utils run from the bundle against the ExpoShareIntentModule native module (native-seams/expo-share-intent.ts, ported from the 4.1.2 Swift and Kotlin): sync hasShareIntent/clearShareIntent, async getShareIntent, and onChange/onError/onStateChange with upstream payloads, error strings and the single-file files-array quirk. apps with no share see exactly what upstream reports: no events, hasShareIntent false, and the no-plugin AppGroupIdentifier onError through reset",
11550
+ note: "Upstream JavaScript runs unchanged on both platforms. iOS compiles ExpoShareIntentModule.swift and receives shares through `peach defaults write` and `peach open <scheme>://dataUrl=<key>#<type>`. The Android seam implements the Kotlin activity listener, intent drain and event payloads.",
11551
11551
  working: "module presence, getShareIntent/hasShareIntent/clearShareIntent shape and sync/async contract, iOS dataUrl store read per fragment with empty and invalid-type paths, no-plugin AppGroupIdentifier-nil onError, Android singleton drain and OnNewIntent live path with text/file ACTION_SEND payloads, task-root launch, reset lifecycle, hook/provider/context initial state, getScheme/getShareExtensionKey/parseShareIntent utils",
11552
11552
  missing: "Android has no ACTION_SEND writer (Android native intake is paused), so an Android payload cannot arrive; iOS media shares need the share extension target Peach does not build, so file shares resolve only for paths the app container holds; photo-library identifiers never resolve (entries drop as upstream drops unresolvable assets); content-resolver metadata errors are unreachable"
11553
11553
  }
@@ -62454,6 +62454,8 @@ function compileSwiftProjectOnce(input, options) {
62454
62454
  const moduleRoot = import_node_path57.default.resolve(options.moduleRoot);
62455
62455
  const distribution = swiftDistributionAt(moduleRoot);
62456
62456
  const guestGraph = distribution ? input.sourceLinkGraph : void 0;
62457
+ if (options.linkOnly && guestGraph)
62458
+ throw new Error("swift-compile: link-only builds do not support guest image graphs");
62457
62459
  const layout2 = {
62458
62460
  root,
62459
62461
  sources: import_node_path57.default.join(root, "Sources", "App"),
@@ -62466,24 +62468,26 @@ function compileSwiftProjectOnce(input, options) {
62466
62468
  console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
62467
62469
  options.onStage?.(message);
62468
62470
  };
62469
- report("checking verified artifacts");
62470
62471
  return serialize(
62471
62472
  root,
62472
62473
  async () => {
62473
- const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
62474
- if (retained && !options.intermediates) {
62475
- report("reusing memory artifact");
62476
- return retain(root, retained);
62477
- }
62478
- const cached4 = readCompiledArtifact(import_node_path57.default.join(sharedRoot, "artifact"), hash);
62479
- const previous = cached4 ?? (options.project ? null : readCompiledArtifact(import_node_path57.default.join(root, "artifact"), hash));
62480
- if (previous && !options.intermediates) {
62481
- if (cached4) renewSharedArtifact(sharedRoot);
62482
- else saveSharedArtifact(sharedRoot, previous);
62483
- report("reusing verified disk artifact");
62484
- return retain(root, previous);
62485
- }
62486
- if (!options.intermediates && process.platform === "darwin" && !options.intermediates && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
62474
+ if (!options.intermediates) {
62475
+ report("checking verified artifacts");
62476
+ const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
62477
+ if (retained) {
62478
+ report("reusing memory artifact");
62479
+ return retain(root, retained);
62480
+ }
62481
+ const cached4 = readCompiledArtifact(import_node_path57.default.join(sharedRoot, "artifact"), hash);
62482
+ const previous = cached4 ?? (options.project ? null : readCompiledArtifact(import_node_path57.default.join(root, "artifact"), hash));
62483
+ if (previous) {
62484
+ if (cached4) renewSharedArtifact(sharedRoot);
62485
+ else saveSharedArtifact(sharedRoot, previous);
62486
+ report("reusing verified disk artifact");
62487
+ return retain(root, previous);
62488
+ }
62489
+ }
62490
+ if (!options.intermediates && process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
62487
62491
  const requestRoot = (0, import_node_fs60.mkdtempSync)(`${root}.builder-request-`);
62488
62492
  const output2 = import_node_path57.default.join(requestRoot, "output");
62489
62493
  const request = import_node_path57.default.join(requestRoot, "request.json");
@@ -62540,10 +62544,12 @@ function compileSwiftProjectOnce(input, options) {
62540
62544
  return withSwiftRootLock(
62541
62545
  root,
62542
62546
  async (lease) => {
62543
- const built2 = readCompiledArtifact(import_node_path57.default.join(sharedRoot, "artifact"), hash);
62544
- if (built2 && !options.intermediates) {
62545
- report("reusing verified disk artifact");
62546
- return retain(root, built2);
62547
+ if (!options.intermediates) {
62548
+ const built2 = readCompiledArtifact(import_node_path57.default.join(sharedRoot, "artifact"), hash);
62549
+ if (built2) {
62550
+ report("reusing verified disk artifact");
62551
+ return retain(root, built2);
62552
+ }
62547
62553
  }
62548
62554
  const swift = import_node_path57.default.join(options.toolchainBin, "swift");
62549
62555
  if (!(0, import_node_fs60.existsSync)(swift)) {
@@ -62573,7 +62579,7 @@ function compileSwiftProjectOnce(input, options) {
62573
62579
  );
62574
62580
  const macroPlugins = distribution ? await withSwiftRootLock(frameworkScratch, pluginsFor, budget.signal) : await pluginsFor(frameworkLease);
62575
62581
  const sdk2 = swiftModuleSdk(frameworkRoot).wasmSdkId;
62576
- const icu = swiftIcuAsset(options.toolchainBin, sdk2);
62582
+ const icu = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk2);
62577
62583
  const buildOptions = {
62578
62584
  env: {
62579
62585
  ...options.project?.env ?? process.env,
@@ -62715,7 +62721,7 @@ function compileSwiftProjectOnce(input, options) {
62715
62721
  ];
62716
62722
  const linked = builtArtifact(layout2);
62717
62723
  (0, import_node_fs60.rmSync)(import_node_path57.default.join(root, ".peach-link.rsp"), { force: true });
62718
- if ((0, import_node_fs60.existsSync)(linked) && (0, import_node_fs60.statSync)(linked).size <= 8)
62724
+ if (options.linkOnly || (0, import_node_fs60.existsSync)(linked) && (0, import_node_fs60.statSync)(linked).size <= 8)
62719
62725
  (0, import_node_fs60.rmSync)(linked, { force: true });
62720
62726
  report("compiling and linking Swift modules");
62721
62727
  const frameworkInterfaces = /* @__PURE__ */ new Map();
@@ -62924,6 +62930,12 @@ function compileSwiftProjectOnce(input, options) {
62924
62930
  void 0,
62925
62931
  resourceReferences
62926
62932
  );
62933
+ if (options.linkOnly) {
62934
+ if ((0, import_node_fs60.statSync)(linked).size <= 8)
62935
+ throw new Error("swift-compile: deferred linker produced no executable");
62936
+ report("project link verified");
62937
+ return;
62938
+ }
62927
62939
  const output2 = options.project ? projectOutputFile(root, linked, options.project) : linked;
62928
62940
  const optimized = `${output2}.optimized`;
62929
62941
  if (guestGraph)
@@ -63208,7 +63220,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
63208
63220
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
63209
63221
  MULTI_MANIFEST_VERSION = 69;
63210
63222
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
63211
- compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
63223
+ compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
63212
63224
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
63213
63225
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
63214
63226
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -68708,6 +68720,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
68708
68720
  const file = import_node_path68.default.join(directory2, entry.name);
68709
68721
  const relative6 = import_node_path68.default.relative(root, file);
68710
68722
  if (excluded(relative6, entry.isDirectory())) continue;
68723
+ const firstStep = steps.length;
68711
68724
  steps.push(() => hash.update(`${relative6}\0`));
68712
68725
  if (entry.isSymbolicLink()) {
68713
68726
  const link = `link\0${import_node_fs70.default.readlinkSync(file)}\0`;
@@ -68718,6 +68731,7 @@ async function walkWorkspaceInputs(app, everyByte, sourceOnly, podsEnvironment)
68718
68731
  } else if (entry.isDirectory()) {
68719
68732
  steps.push(() => hash.update("directory\0"));
68720
68733
  walk3(file);
68734
+ if (sourceOnly && steps.length === firstStep + 2) steps.length = firstStep;
68721
68735
  } else if (entry.isFile()) {
68722
68736
  const posix2 = relative6.split(import_node_path68.default.sep).join("/");
68723
68737
  if (NATIVE_CONFIG_FILE.test(posix2)) {
@@ -69935,7 +69949,7 @@ var init_swift_standin_digest = __esm({
69935
69949
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
69936
69950
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
69937
69951
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
69938
- STANDIN_SOURCE_DIGEST = true ? "762c4967fecca300c01dc513758217fca907a14a03c418d63d2cfcbfd7486c9d" : standinSourceDigest();
69952
+ STANDIN_SOURCE_DIGEST = true ? "4a21735d60d5c3e629b478af2bb3e725e89a01e8291b31fcc4e4f3174d7c9b4f" : standinSourceDigest();
69939
69953
  }
69940
69954
  });
69941
69955
 
@@ -70430,7 +70444,7 @@ __export(expo_native_prebuilt_exports, {
70430
70444
  servedExpoSwift: () => servedExpoSwift
70431
70445
  });
70432
70446
  function expoNativeCompilerDigestValue() {
70433
- return true ? "b96f394d7402014e1585ab28eeb3e138f99e4241e51cb8eb3ea50aa95c767a26" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
70447
+ return true ? "c0a9caa08d93ceace645e91aa241a482f2e38e14d7423cee7a2d4d92a65d1793" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
70434
70448
  }
70435
70449
  function readSources(value) {
70436
70450
  const sources = isRecord(value) ? value.sources : null;
@@ -88606,7 +88620,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
88606
88620
  producer.files["Sources/PeachCoreProducerHost/include/PeachCoreProducerHost.h"] = "#pragma once\n";
88607
88621
  producer.files["Sources/PeachCoreProducerHost/Dispatch.m"] = "#import <dispatch/dispatch.h>\nvoid peachTurboDispatchAsync(dispatch_block_t block) { dispatch_async(dispatch_get_main_queue(), block); }\n";
88608
88622
  }
88609
- const input = { ...collectTurboCompileInput(producer, null, floor), optimize: false };
88623
+ const input = collectTurboCompileInput(producer, null, floor);
88610
88624
  input.files[input.entry] = input.entry.endsWith(".swift") ? "@main struct PeachCoreProducer { static func main() {} }\n" : "int main() { return 0; }\n";
88611
88625
  const { compiler: _compiler, recipe: _recipe, ...nativeInputs } = entry.inputs;
88612
88626
  const buildRoot = import_node_path95.default.join(
@@ -88618,7 +88632,8 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
88618
88632
  ...module2,
88619
88633
  moduleRoot: module2.root,
88620
88634
  buildRoot,
88621
- intermediates: true
88635
+ intermediates: true,
88636
+ linkOnly: true
88622
88637
  });
88623
88638
  const products = import_node_path95.default.join(buildRoot, ".build", WASM_TRIPLE, "release");
88624
88639
  const emitted = swiftManifestTargets(
@@ -88890,7 +88905,7 @@ var init_react_native_core = __esm({
88890
88905
  init_swift_distribution();
88891
88906
  init_swift_package();
88892
88907
  init_swiftContract();
88893
- recipe = true ? "001a7b655dd7e7159ffd4ccf0bded8179bce9b48b6d0f5c3b56c41bdaaa78340" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
88908
+ recipe = true ? "87bfef7f0e28d8a323a1069ee1002e9d9344e3b78b1f991164d392cacd10bde5" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
88894
88909
  strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
88895
88910
  building = /* @__PURE__ */ new Map();
88896
88911
  }
@@ -93221,7 +93236,7 @@ var init_nitro_superset = __esm({
93221
93236
  init_nitroContract();
93222
93237
  init_swift_standin_digest();
93223
93238
  NITRO_SUPERSET_ENTRY_NAME = "superset";
93224
- NITRO_COMPILER_DIGEST = true ? "38b3e4458677b821a8f3ba6ca2f6e430e73362795380b935ae4f8367f31c3dcb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
93239
+ NITRO_COMPILER_DIGEST = true ? "3850bd0ed6a53b6884a892f2931f95bce16c9ebfde267321be9b146a2e7b88e2" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
93225
93240
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
93226
93241
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
93227
93242
  published2 = /* @__PURE__ */ new Map();
@@ -117251,8 +117266,8 @@ var init_meta = __esm({
117251
117266
  slug: "record",
117252
117267
  navTitle: "record",
117253
117268
  title: "peach record",
117254
- description: "record a scene and render webm/mp4, capture a gif, or sample N png frames",
117255
- summary: "Video recording captures the app scene during the take and renders a video after stop in an isolated viewer. The render subcommand exports a saved scene stream at 60 fps by default. Use atomic mode for a fixed duration or start and stop around interactions. GIF and PNG capture use atomic mode. Scene uploads default to recording-only shares; add --live-bundle to include Live. Combined recordings include events and upload automatically. Bundle-bearing `live` and `combined` uploads reuse the bundle-derived preview URL when the same app is recorded again. `--three` films a flow on the 3D device stage: the flow runs at full speed on the flat canvas while the screen is captured, then the capture plays back on the 3D phone under a camera script and the stage is saved as a clip; stage decor takes the same flags as `peach mode three configure`. Recording needs a signed-in account: `peach login` or PEACH_API_KEY.",
117269
+ description: "create a Recording, render webm/mp4, capture a gif, or sample N png frames",
117270
+ summary: "Video recording captures the app scene during the take and renders a video after stop in an isolated viewer. The render subcommand exports a saved scene stream at 60 fps by default. Use atomic mode for a fixed duration or start and stop around interactions. GIF and PNG capture use atomic mode. Upload a Recording with `peach record upload`; add --live-bundle to include Live. Combined recordings include events and upload automatically. Bundle-bearing `live` and `combined` uploads reuse the bundle-derived URL when the same app is recorded again. `--three` films a flow on the 3D device stage: the flow runs at full speed on the flat canvas while the screen is captured, then the capture plays back on the 3D phone under a camera script and the stage is saved as a clip; stage decor takes the same flags as `peach mode three configure`. Recording needs a signed-in account: `peach login` or PEACH_API_KEY.",
117256
117271
  order: 60,
117257
117272
  usage: [
117258
117273
  "peach record [options]",
@@ -117272,7 +117287,7 @@ var init_meta = __esm({
117272
117287
  ),
117273
117288
  option(
117274
117289
  "--mode <kind>",
117275
- "video | live | combined (default: video). live captures the event stream; combined captures both and uploads automatically. NOTE: live/combined upload to /preview/<id> whose id is bundle-derived, so re-recording the same app overwrites the previous preview"
117290
+ "video | live | combined (default: video). live captures the event stream; combined captures both and uploads automatically. live/combined upload to /preview/<id> whose id is bundle-derived, so re-recording the same app overwrites the previous Recording"
117276
117291
  ),
117277
117292
  option(
117278
117293
  "--duration <seconds>",
@@ -117317,7 +117332,7 @@ var init_meta = __esm({
117317
117332
  option("--shell-only", "record only the shell chrome"),
117318
117333
  option(
117319
117334
  "--open",
117320
- "open the uploaded preview URL in the browser after stop (live/combined)"
117335
+ "open the uploaded Recording in the browser after stop (live/combined)"
117321
117336
  ),
117322
117337
  option("--sim <sim>", "target a specific sim"),
117323
117338
  option(
@@ -117326,7 +117341,7 @@ var init_meta = __esm({
117326
117341
  ),
117327
117342
  option(
117328
117343
  "--owner <org>",
117329
- "associate live/combined preview uploads with a linked org repo; pass with --repo"
117344
+ "associate live/combined Recordings with a linked org repo; pass with --repo"
117330
117345
  ),
117331
117346
  option(
117332
117347
  "--repo <repo>",
@@ -117347,7 +117362,7 @@ var init_meta = __esm({
117347
117362
  example("peach record --frames 10 --output ./frames/"),
117348
117363
  example(
117349
117364
  "peach record --mode combined --duration 8 --open --owner my-org --repo my-app",
117350
- "capture video + events and upload a repo-associated preview link"
117365
+ "capture video + events and upload a repo-associated Recording"
117351
117366
  ),
117352
117367
  example(
117353
117368
  "peach record start --format mp4",
@@ -117355,7 +117370,7 @@ var init_meta = __esm({
117355
117370
  ),
117356
117371
  example(
117357
117372
  "peach record start --mode combined",
117358
- "start a stateful preview-share recording"
117373
+ "start a Recording with events and video"
117359
117374
  ),
117360
117375
  example(
117361
117376
  "peach record prelude-start",
@@ -118386,8 +118401,8 @@ var init_meta = __esm({
118386
118401
  slug: "preview",
118387
118402
  navTitle: "preview",
118388
118403
  title: "peach preview",
118389
- description: "publish an Expo export or bundle as a standalone preview",
118390
- summary: "Uploads a prebuilt Metro or One Rolldown JavaScript bundle, including the output of `npx expo export --no-bytecode` (a dist directory or a single exported .js bundle with its hashed assets). Publishes an immutable build share using your account or API key and prints the preview link and artifact receipt. A bundle preview starts private: only signed-in members of your account can open it until you turn on **Public link** in the preview page's share menu.",
118404
+ description: "publish an Expo export or bundle as a Build",
118405
+ summary: "Uploads a prebuilt Metro or One Rolldown JavaScript bundle, including the output of `npx expo export --no-bytecode` (a dist directory or a single exported .js bundle with its hashed assets). Publishes an immutable Build using your account or API key and prints its link and artifact receipt. A Build starts private: only signed-in members of your account can open it until you turn on **Public link** in its share menu.",
118391
118406
  order: 101,
118392
118407
  usage: ["peach preview <dist|bundle> [--platform ios|android] [--open] [--json]"],
118393
118408
  options: [
@@ -118395,8 +118410,8 @@ var init_meta = __esm({
118395
118410
  "--platform ios|android",
118396
118411
  "select the viewer device platform, defaults to ios"
118397
118412
  ),
118398
- option("--open", "open the published preview in a browser"),
118399
- option("--json", "print the preview link and artifact receipt as JSON")
118413
+ option("--open", "open the published Build in a browser"),
118414
+ option("--json", "print the Build link and artifact receipt as JSON")
118400
118415
  ],
118401
118416
  examples: [
118402
118417
  example(
@@ -118554,7 +118569,7 @@ var init_meta = __esm({
118554
118569
  slug: "box",
118555
118570
  navTitle: "box",
118556
118571
  title: "peach box",
118557
- docsPending: true,
118572
+ hidden: true,
118558
118573
  description: "start a local Box or create a cloud Box",
118559
118574
  summary: "A Box is an environment holding the project filesystem, a shell, peach tools, a bundler, an app server, and a simulator. Bare `peach box` is intentionally local: it mounts the current checkout at /project and enters a shell with ls, cat, find, rg, sed, pipes and redirects, plus peach itself registered as a shell command. Writes go straight to the checkout, and the local Box never creates a second copy of the project. `peach box create` imports the Git-tracked checkout through the configured cloud Box service, prints the Box identity and available live URL, then enters its shell. Add `--json` to return the created identity without opening a shell. `peach box create --env-file <file>` hands the Box credentials such as an app login: every Box shell, the agent\u2019s included, starts with them as variables, and output shows `$NAME` in place of each value. `peach box create --bundle <file>` creates a Box from an app that is already built instead: the bundle is the whole project, the Box records that it holds one, and its page boots that bundle rather than building anything, so the simulator paints without waiting for a build. `peach box connect <id-or-name>` attaches to a Box that already exists, from any machine: your account resolves the name and hands back the Box\u2019s own reference, so the CLI never stores a Box token. `peach box open <id-or-name>` opens that Box in your browser, so you can watch its terminal and its simulator while an agent works in it. `peach box use <id-or-name>` targets a Box from every box command: connect, open, stop and delete act on it whenever you name none, and `peach box use` with no name prints the Box they target. `peach box ls` lists the cloud Boxes running on your account, and never starts one. `peach box stop <id-or-name>` ends a Box and its billing while keeping its files; `peach box delete <id-or-name>` also wipes them. `peach box send` sends the app running in your local dev server to a Box and prints the URL to watch it on.",
118560
118575
  order: 97,
@@ -119379,8 +119394,8 @@ var init_meta = __esm({
119379
119394
  "--test-output-dir <dir>",
119380
119395
  "save flow artifacts and result JSON here; result JSON defaults to --out or /tmp/peach-recordings"
119381
119396
  ),
119382
- option("--preview", "record events and video, upload, and print /preview/<id>"),
119383
- option("--preview-open", "open the uploaded preview link after a successful run"),
119397
+ option("--preview", "upload a Recording of events and video and print its link"),
119398
+ option("--preview-open", "open the uploaded Recording after a successful run"),
119384
119399
  option("--slow <ms>", "delay between flow steps for natural pacing"),
119385
119400
  option("--new", "force a fresh sim for this run"),
119386
119401
  option("--headed", "watch the run in a fresh visible window"),
@@ -119397,7 +119412,7 @@ var init_meta = __esm({
119397
119412
  "with init, scaffold a Detox config and sample test instead of a flow"
119398
119413
  ),
119399
119414
  option("--list-compat", "print supported and unsupported Maestro verbs"),
119400
- option("--cloud", "submit the bundle and suite to the hosted executor"),
119415
+ option("--cloud", "run the bundle and suite in the cloud and create a Recording"),
119401
119416
  option("--origin <url>", "use a specific Peach API origin"),
119402
119417
  option("--poll-interval <ms>", "set the hosted result polling interval"),
119403
119418
  option(
@@ -119546,7 +119561,7 @@ var init_meta = __esm({
119546
119561
  navTitle: "auth",
119547
119562
  title: "peach auth",
119548
119563
  description: "inspect active CLI auth",
119549
- summary: "Print the auth source the CLI will use, and for a desktop session the account that remote simulators and boxes bill to. An API key comes from PEACH_API_KEY or the one `peach setup` saved. Use `peach login` and `peach logout` for the browser-backed desktop session.",
119564
+ summary: "Print the auth source the CLI will use, and for a desktop session the account that remote simulators bill to. An API key comes from PEACH_API_KEY or the one `peach setup` saved. Use `peach login` and `peach logout` for the browser-backed desktop session.",
119550
119565
  order: 190,
119551
119566
  usage: ["peach auth", "peach auth key create [--label <name>]"],
119552
119567
  options: [
@@ -119564,7 +119579,7 @@ var init_meta = __esm({
119564
119579
  slug: "login",
119565
119580
  navTitle: "login",
119566
119581
  title: "peach login",
119567
- description: "sign in for preview uploads",
119582
+ description: "sign in to publish Builds and Recordings",
119568
119583
  summary: "Sign in with the browser-backed desktop session so uploads and App Store screenshot capture can attach to your account. Local development origins use the dev-login fast path; CI should pass PEACH_API_KEY instead.",
119569
119584
  order: 191,
119570
119585
  usage: ["peach login [--origin <url>] [--account <name-or-id>]"],
@@ -119575,7 +119590,7 @@ var init_meta = __esm({
119575
119590
  ),
119576
119591
  option(
119577
119592
  "--account <name-or-id>",
119578
- "the account remote simulators and boxes bill to. With one account it is chosen for you; with several, an interactive login asks and a non-interactive one needs this flag"
119593
+ "the account remote simulators bill to. With one account it is chosen for you; with several, an interactive login asks and a non-interactive one needs this flag"
119579
119594
  )
119580
119595
  ],
119581
119596
  examples: [
@@ -123981,7 +123996,7 @@ async function runStreamCommand(args, opts = {}) {
123981
123996
  });
123982
123997
  writeSecureJsonAtomic(file, record5);
123983
123998
  removeRecord = () => (0, import_node_fs148.rmSync)(file, { force: true });
123984
- console.log(` ${record5.watchUrl}`);
123999
+ console.log(` simulator: ${record5.watchUrl}`);
123985
124000
  console.log(" Press Ctrl+C to stop streaming.");
123986
124001
  await new Promise((resolve14) => {
123987
124002
  const finish = () => {
@@ -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;
@@ -13762,7 +13762,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13762
13762
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13763
13763
  var MULTI_MANIFEST_VERSION = 69;
13764
13764
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13765
- var compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13765
+ var compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
13766
13766
  function swiftArtifactHash(input, release, moduleRoot) {
13767
13767
  const hash = (0, import_node_crypto14.createHash)("sha256");
13768
13768
  hash.update(`swift-compile
@@ -17961,6 +17961,8 @@ function compileSwiftProjectOnce(input, options) {
17961
17961
  const moduleRoot = import_node_path26.default.resolve(options.moduleRoot);
17962
17962
  const distribution = swiftDistributionAt(moduleRoot);
17963
17963
  const guestGraph = distribution ? input.sourceLinkGraph : void 0;
17964
+ if (options.linkOnly && guestGraph)
17965
+ throw new Error("swift-compile: link-only builds do not support guest image graphs");
17964
17966
  const layout2 = {
17965
17967
  root,
17966
17968
  sources: import_node_path26.default.join(root, "Sources", "App"),
@@ -17973,24 +17975,26 @@ function compileSwiftProjectOnce(input, options) {
17973
17975
  console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
17974
17976
  options.onStage?.(message);
17975
17977
  };
17976
- report("checking verified artifacts");
17977
17978
  return serialize(
17978
17979
  root,
17979
17980
  async () => {
17980
- const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
17981
- if (retained && !options.intermediates) {
17982
- report("reusing memory artifact");
17983
- return retain(root, retained);
17984
- }
17985
- const cached = readCompiledArtifact(import_node_path26.default.join(sharedRoot, "artifact"), hash);
17986
- const previous = cached ?? (options.project ? null : readCompiledArtifact(import_node_path26.default.join(root, "artifact"), hash));
17987
- if (previous && !options.intermediates) {
17988
- if (cached) renewSharedArtifact(sharedRoot);
17989
- else saveSharedArtifact(sharedRoot, previous);
17990
- report("reusing verified disk artifact");
17991
- return retain(root, previous);
17981
+ if (!options.intermediates) {
17982
+ report("checking verified artifacts");
17983
+ const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
17984
+ if (retained) {
17985
+ report("reusing memory artifact");
17986
+ return retain(root, retained);
17987
+ }
17988
+ const cached = readCompiledArtifact(import_node_path26.default.join(sharedRoot, "artifact"), hash);
17989
+ const previous = cached ?? (options.project ? null : readCompiledArtifact(import_node_path26.default.join(root, "artifact"), hash));
17990
+ if (previous) {
17991
+ if (cached) renewSharedArtifact(sharedRoot);
17992
+ else saveSharedArtifact(sharedRoot, previous);
17993
+ report("reusing verified disk artifact");
17994
+ return retain(root, previous);
17995
+ }
17992
17996
  }
17993
- if (!options.intermediates && process.platform === "darwin" && !options.intermediates && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
17997
+ if (!options.intermediates && process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
17994
17998
  const requestRoot = (0, import_node_fs25.mkdtempSync)(`${root}.builder-request-`);
17995
17999
  const output = import_node_path26.default.join(requestRoot, "output");
17996
18000
  const request = import_node_path26.default.join(requestRoot, "request.json");
@@ -18047,10 +18051,12 @@ function compileSwiftProjectOnce(input, options) {
18047
18051
  return withSwiftRootLock(
18048
18052
  root,
18049
18053
  async (lease) => {
18050
- const built = readCompiledArtifact(import_node_path26.default.join(sharedRoot, "artifact"), hash);
18051
- if (built && !options.intermediates) {
18052
- report("reusing verified disk artifact");
18053
- return retain(root, built);
18054
+ if (!options.intermediates) {
18055
+ const built = readCompiledArtifact(import_node_path26.default.join(sharedRoot, "artifact"), hash);
18056
+ if (built) {
18057
+ report("reusing verified disk artifact");
18058
+ return retain(root, built);
18059
+ }
18054
18060
  }
18055
18061
  const swift = import_node_path26.default.join(options.toolchainBin, "swift");
18056
18062
  if (!(0, import_node_fs25.existsSync)(swift)) {
@@ -18080,7 +18086,7 @@ function compileSwiftProjectOnce(input, options) {
18080
18086
  );
18081
18087
  const macroPlugins = distribution ? await withSwiftRootLock(frameworkScratch, pluginsFor, budget.signal) : await pluginsFor(frameworkLease);
18082
18088
  const sdk = swiftModuleSdk(frameworkRoot).wasmSdkId;
18083
- const icu = swiftIcuAsset(options.toolchainBin, sdk);
18089
+ const icu = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk);
18084
18090
  const buildOptions = {
18085
18091
  env: {
18086
18092
  ...options.project?.env ?? process.env,
@@ -18222,7 +18228,7 @@ function compileSwiftProjectOnce(input, options) {
18222
18228
  ];
18223
18229
  const linked = builtArtifact(layout2);
18224
18230
  (0, import_node_fs25.rmSync)(import_node_path26.default.join(root, ".peach-link.rsp"), { force: true });
18225
- if ((0, import_node_fs25.existsSync)(linked) && (0, import_node_fs25.statSync)(linked).size <= 8)
18231
+ if (options.linkOnly || (0, import_node_fs25.existsSync)(linked) && (0, import_node_fs25.statSync)(linked).size <= 8)
18226
18232
  (0, import_node_fs25.rmSync)(linked, { force: true });
18227
18233
  report("compiling and linking Swift modules");
18228
18234
  const frameworkInterfaces = /* @__PURE__ */ new Map();
@@ -18431,6 +18437,12 @@ function compileSwiftProjectOnce(input, options) {
18431
18437
  void 0,
18432
18438
  resourceReferences
18433
18439
  );
18440
+ if (options.linkOnly) {
18441
+ if ((0, import_node_fs25.statSync)(linked).size <= 8)
18442
+ throw new Error("swift-compile: deferred linker produced no executable");
18443
+ report("project link verified");
18444
+ return;
18445
+ }
18434
18446
  const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
18435
18447
  const optimized = `${output}.optimized`;
18436
18448
  if (guestGraph)
@@ -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);
@@ -13750,7 +13750,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
13750
13750
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
13751
13751
  var MULTI_MANIFEST_VERSION = 69;
13752
13752
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
13753
- var compilerSourceDigest = true ? "7d6f914e0fa45023e39a96f6b22a9b77a3805c230d28c1614ccf77e8cda77665" : swiftCompilerSourceDigest(import.meta.dirname);
13753
+ var compilerSourceDigest = true ? "a8ef2b0211672814d4cff10c3aa4c1e77c8c8a87b90e00fe66a2e674c2e5f014" : swiftCompilerSourceDigest(import.meta.dirname);
13754
13754
  function swiftArtifactHash(input, release, moduleRoot) {
13755
13755
  const hash = createHash14("sha256");
13756
13756
  hash.update(`swift-compile
@@ -17949,6 +17949,8 @@ function compileSwiftProjectOnce(input, options) {
17949
17949
  const moduleRoot = path28.resolve(options.moduleRoot);
17950
17950
  const distribution = swiftDistributionAt(moduleRoot);
17951
17951
  const guestGraph = distribution ? input.sourceLinkGraph : void 0;
17952
+ if (options.linkOnly && guestGraph)
17953
+ throw new Error("swift-compile: link-only builds do not support guest image graphs");
17952
17954
  const layout2 = {
17953
17955
  root,
17954
17956
  sources: path28.join(root, "Sources", "App"),
@@ -17961,24 +17963,26 @@ function compileSwiftProjectOnce(input, options) {
17961
17963
  console.error(`[swift-project ${hash.slice(0, 16)}] ${message}`);
17962
17964
  options.onStage?.(message);
17963
17965
  };
17964
- report("checking verified artifacts");
17965
17966
  return serialize(
17966
17967
  root,
17967
17968
  async () => {
17968
- const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
17969
- if (retained && !options.intermediates) {
17970
- report("reusing memory artifact");
17971
- return retain(root, retained);
17972
- }
17973
- const cached = readCompiledArtifact(path28.join(sharedRoot, "artifact"), hash);
17974
- const previous = cached ?? (options.project ? null : readCompiledArtifact(path28.join(root, "artifact"), hash));
17975
- if (previous && !options.intermediates) {
17976
- if (cached) renewSharedArtifact(sharedRoot);
17977
- else saveSharedArtifact(sharedRoot, previous);
17978
- report("reusing verified disk artifact");
17979
- return retain(root, previous);
17969
+ if (!options.intermediates) {
17970
+ report("checking verified artifacts");
17971
+ const retained = retainedArtifacts.get(root)?.find((old) => old.hash === hash);
17972
+ if (retained) {
17973
+ report("reusing memory artifact");
17974
+ return retain(root, retained);
17975
+ }
17976
+ const cached = readCompiledArtifact(path28.join(sharedRoot, "artifact"), hash);
17977
+ const previous = cached ?? (options.project ? null : readCompiledArtifact(path28.join(root, "artifact"), hash));
17978
+ if (previous) {
17979
+ if (cached) renewSharedArtifact(sharedRoot);
17980
+ else saveSharedArtifact(sharedRoot, previous);
17981
+ report("reusing verified disk artifact");
17982
+ return retain(root, previous);
17983
+ }
17980
17984
  }
17981
- if (!options.intermediates && process.platform === "darwin" && !options.intermediates && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
17985
+ if (!options.intermediates && process.platform === "darwin" && process.env.TM_SESSION && !windowAdmission() && process.env.CI !== "true" && moduleRoot === sourceSwiftCheckout() && !swiftDistributionAt(moduleRoot)) {
17982
17986
  const requestRoot = mkdtempSync3(`${root}.builder-request-`);
17983
17987
  const output = path28.join(requestRoot, "output");
17984
17988
  const request = path28.join(requestRoot, "request.json");
@@ -18035,10 +18039,12 @@ function compileSwiftProjectOnce(input, options) {
18035
18039
  return withSwiftRootLock(
18036
18040
  root,
18037
18041
  async (lease) => {
18038
- const built = readCompiledArtifact(path28.join(sharedRoot, "artifact"), hash);
18039
- if (built && !options.intermediates) {
18040
- report("reusing verified disk artifact");
18041
- return retain(root, built);
18042
+ if (!options.intermediates) {
18043
+ const built = readCompiledArtifact(path28.join(sharedRoot, "artifact"), hash);
18044
+ if (built) {
18045
+ report("reusing verified disk artifact");
18046
+ return retain(root, built);
18047
+ }
18042
18048
  }
18043
18049
  const swift = path28.join(options.toolchainBin, "swift");
18044
18050
  if (!existsSync6(swift)) {
@@ -18068,7 +18074,7 @@ function compileSwiftProjectOnce(input, options) {
18068
18074
  );
18069
18075
  const macroPlugins = distribution ? await withSwiftRootLock(frameworkScratch, pluginsFor, budget.signal) : await pluginsFor(frameworkLease);
18070
18076
  const sdk = swiftModuleSdk(frameworkRoot).wasmSdkId;
18071
- const icu = swiftIcuAsset(options.toolchainBin, sdk);
18077
+ const icu = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk);
18072
18078
  const buildOptions = {
18073
18079
  env: {
18074
18080
  ...options.project?.env ?? process.env,
@@ -18210,7 +18216,7 @@ function compileSwiftProjectOnce(input, options) {
18210
18216
  ];
18211
18217
  const linked = builtArtifact(layout2);
18212
18218
  rmSync7(path28.join(root, ".peach-link.rsp"), { force: true });
18213
- if (existsSync6(linked) && statSync2(linked).size <= 8)
18219
+ if (options.linkOnly || existsSync6(linked) && statSync2(linked).size <= 8)
18214
18220
  rmSync7(linked, { force: true });
18215
18221
  report("compiling and linking Swift modules");
18216
18222
  const frameworkInterfaces = /* @__PURE__ */ new Map();
@@ -18419,6 +18425,12 @@ function compileSwiftProjectOnce(input, options) {
18419
18425
  void 0,
18420
18426
  resourceReferences
18421
18427
  );
18428
+ if (options.linkOnly) {
18429
+ if (statSync2(linked).size <= 8)
18430
+ throw new Error("swift-compile: deferred linker produced no executable");
18431
+ report("project link verified");
18432
+ return;
18433
+ }
18422
18434
  const output = options.project ? projectOutputFile(root, linked, options.project) : linked;
18423
18435
  const optimized = `${output}.optimized`;
18424
18436
  if (guestGraph)
@@ -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/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -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/is-record.ts
4
4
  function isRecord(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;
@@ -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;