peachsim 0.1.2301 → 0.1.2302

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 (89) hide show
  1. package/cli/commands/inspect.ts +2 -1
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +375 -292
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +2 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +326 -243
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +372 -289
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +2 -2
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.cjs +1 -1
  49. package/dist-lib/native-app-identity-project.mjs +1 -1
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +53 -53
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +425 -342
  69. package/dist-lib/swift-compile.cjs +1 -1
  70. package/dist-lib/swift-compile.mjs +1 -1
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +1 -1
  78. package/dist-lib/vite.cjs +2 -2
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/dist-types/packages/peach-engine/src/components/native-ui/webview-frame-bridge.d.ts +1 -0
  82. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  83. package/dist-types/packages/peach-kit/src/capabilities.d.ts +4 -0
  84. package/java-platform/licenses/fdlibm.txt +3 -0
  85. package/kotlin/sdk.tar.gz +0 -0
  86. package/package.json +1 -1
  87. package/runtime-companion.json +1 -1
  88. package/src/expo-native-workspace.ts +85 -37
  89. package/src/one-sdk-preparation.ts +61 -5
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2301 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2302 | (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;
@@ -10915,6 +10915,45 @@ var init_native_prebuilt = __esm({
10915
10915
  });
10916
10916
 
10917
10917
  // src/one-sdk-preparation.ts
10918
+ async function generateAppSdkInChild(generatorFile, frameworks) {
10919
+ const directory2 = import_node_fs13.default.mkdtempSync(import_node_path11.default.join(import_node_os5.default.tmpdir(), "peach-one-sdk-"));
10920
+ const resultFile = import_node_path11.default.join(directory2, "result.json");
10921
+ try {
10922
+ const child = (0, import_node_child_process8.spawn)(
10923
+ "node",
10924
+ [
10925
+ "--input-type=module",
10926
+ "-e",
10927
+ GENERATE_SCRIPT,
10928
+ generatorFile,
10929
+ resultFile,
10930
+ JSON.stringify(frameworks)
10931
+ ],
10932
+ { stdio: ["ignore", "ignore", "pipe"] }
10933
+ );
10934
+ let stderr = "";
10935
+ child.stderr.setEncoding("utf8");
10936
+ child.stderr.on("data", (chunk) => {
10937
+ stderr += chunk;
10938
+ });
10939
+ const [status, signal] = await new Promise(
10940
+ (resolve4, reject) => {
10941
+ child.once("error", reject);
10942
+ child.once("close", (code, closeSignal) => resolve4([code, closeSignal]));
10943
+ }
10944
+ );
10945
+ if (status !== 0)
10946
+ throw new Error(
10947
+ `One SDK source generation failed (${signal ?? `exit ${status}`})${stderr ? `: ${stderr.trim().slice(-2e3)}` : ""}`
10948
+ );
10949
+ const result = JSON.parse(
10950
+ import_node_fs13.default.readFileSync(resultFile, "utf8")
10951
+ );
10952
+ return { generation: result.generation, files: new Map(result.files) };
10953
+ } finally {
10954
+ import_node_fs13.default.rmSync(directory2, { recursive: true, force: true });
10955
+ }
10956
+ }
10918
10957
  async function selectOneSDK(appRoot) {
10919
10958
  const require2 = (0, import_node_module2.createRequire)(import_node_path11.default.join(appRoot, "package.json"));
10920
10959
  let onePackage;
@@ -10971,7 +11010,10 @@ async function prepareOneSDKSources(appRoot, output2) {
10971
11010
  import_node_fs13.default.copyFileSync(import_node_path11.default.join(published3, name3), import_node_path11.default.join(directory2, name3));
10972
11011
  return;
10973
11012
  }
10974
- const generated = await selected.generator.generateAppSdk(selected.frameworks);
11013
+ const generated = await generateAppSdkInChild(
11014
+ import_node_path11.default.join(selected.one, "dist/sdk/app.mjs"),
11015
+ selected.frameworks
11016
+ );
10975
11017
  if (generated.generation !== generation)
10976
11018
  throw new Error("One SDK source generation differs from the installed facades");
10977
11019
  import_node_fs13.default.rmSync(directory2, { recursive: true, force: true });
@@ -10985,17 +11027,27 @@ async function prepareOneSDKSources(appRoot, output2) {
10985
11027
  };
10986
11028
  import_node_fs13.default.writeFileSync(import_node_path11.default.join(directory2, "manifest.json"), JSON.stringify(manifest));
10987
11029
  }
10988
- var import_node_crypto4, import_node_fs13, import_node_module2, import_node_path11, import_node_url;
11030
+ var import_node_child_process8, import_node_crypto4, import_node_fs13, import_node_module2, import_node_os5, import_node_path11, import_node_url, GENERATE_SCRIPT;
10989
11031
  var init_one_sdk_preparation = __esm({
10990
11032
  "src/one-sdk-preparation.ts"() {
10991
11033
  "use strict";
11034
+ import_node_child_process8 = require("node:child_process");
10992
11035
  import_node_crypto4 = require("node:crypto");
10993
11036
  import_node_fs13 = __toESM(require("node:fs"), 1);
10994
11037
  import_node_module2 = require("node:module");
11038
+ import_node_os5 = __toESM(require("node:os"), 1);
10995
11039
  import_node_path11 = __toESM(require("node:path"), 1);
10996
11040
  import_node_url = require("node:url");
10997
11041
  init_native_prebuilt();
10998
11042
  init_oneSdkContract();
11043
+ GENERATE_SCRIPT = `
11044
+ import { writeFileSync } from 'node:fs'
11045
+ import { pathToFileURL } from 'node:url'
11046
+ const [generatorFile, resultFile, frameworks] = process.argv.slice(1)
11047
+ const generator = await import(pathToFileURL(generatorFile).href)
11048
+ const { files, generation } = await generator.generateAppSdk(JSON.parse(frameworks))
11049
+ writeFileSync(resultFile, JSON.stringify({ generation, files: [...files] }))
11050
+ `;
10999
11051
  }
11000
11052
  });
11001
11053
 
@@ -14718,7 +14770,7 @@ function linuxBrowserLibsKey(id, arch) {
14718
14770
  return `linux-libs/${id}/${arch}.tar.gz`;
14719
14771
  }
14720
14772
  function missingLibraries(executablePath, libraryPath) {
14721
- const ldd = (0, import_node_child_process8.spawnSync)("ldd", [executablePath], {
14773
+ const ldd = (0, import_node_child_process9.spawnSync)("ldd", [executablePath], {
14722
14774
  encoding: "utf8",
14723
14775
  timeout: 3e4,
14724
14776
  env: libraryPath ? {
@@ -14781,11 +14833,11 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
14781
14833
  }
14782
14834
  return { ok: true, libraryPath };
14783
14835
  }
14784
- var import_node_child_process8, import_node_fs18, import_node_path16, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
14836
+ var import_node_child_process9, import_node_fs18, import_node_path16, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
14785
14837
  var init_linux_browser_libs = __esm({
14786
14838
  "cli/drivers/linux-browser-libs.ts"() {
14787
14839
  "use strict";
14788
- import_node_child_process8 = require("node:child_process");
14840
+ import_node_child_process9 = require("node:child_process");
14789
14841
  import_node_fs18 = require("node:fs");
14790
14842
  import_node_path16 = require("node:path");
14791
14843
  init_src();
@@ -14953,7 +15005,7 @@ function ensureSwiftLinuxRuntime(release) {
14953
15005
  `);
14954
15006
  const download2 = `${plan.dest}.${process.pid}.tmp`;
14955
15007
  try {
14956
- (0, import_node_child_process9.execFileSync)(
15008
+ (0, import_node_child_process10.execFileSync)(
14957
15009
  "curl",
14958
15010
  [
14959
15011
  "-fsSL",
@@ -15020,7 +15072,7 @@ function swiftCompilerRelease(release) {
15020
15072
  }
15021
15073
  function swiftToolchainBin(release) {
15022
15074
  if (process.platform === "darwin") {
15023
- const dirs = [import_node_os5.default.homedir(), "/"].map(
15075
+ const dirs = [import_node_os6.default.homedir(), "/"].map(
15024
15076
  (base) => import_node_path19.default.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
15025
15077
  );
15026
15078
  return dirs.find((dir) => import_node_fs22.default.existsSync(import_node_path19.default.join(dir, "swift"))) ?? dirs[0];
@@ -15066,7 +15118,7 @@ exec ${JSON.stringify(import_node_path19.default.join(toolchainBin, "wasm-ld"))}
15066
15118
  }
15067
15119
  function peachHome() {
15068
15120
  const override = process.env.PEACH_HOME;
15069
- return override ? import_node_path19.default.resolve(override) : import_node_path19.default.join(import_node_os5.default.homedir(), ".peach");
15121
+ return override ? import_node_path19.default.resolve(override) : import_node_path19.default.join(import_node_os6.default.homedir(), ".peach");
15070
15122
  }
15071
15123
  function peachSwiftSdksDir() {
15072
15124
  return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path19.default.join(peachHome(), "swift", "sdks");
@@ -15075,7 +15127,7 @@ function agentSharedCacheRoot() {
15075
15127
  if (process.platform !== "darwin" || !process.env.TM_SESSION) return null;
15076
15128
  if (agentBuildersRoot) return agentBuildersRoot;
15077
15129
  const policy = JSON.parse(
15078
- (0, import_node_child_process9.execFileSync)("tm", ["machine", "policy", "--json"], {
15130
+ (0, import_node_child_process10.execFileSync)("tm", ["machine", "policy", "--json"], {
15079
15131
  encoding: "utf8",
15080
15132
  timeout: 3e4
15081
15133
  })
@@ -15083,7 +15135,7 @@ function agentSharedCacheRoot() {
15083
15135
  const mounts = policy.storage_mounts ?? [];
15084
15136
  if (!Array.isArray(mounts)) throw new Error("storage_mounts must be a list");
15085
15137
  const isMount = (directory2) => {
15086
- const lines = (0, import_node_child_process9.execFileSync)("/bin/df", ["-P", directory2], {
15138
+ const lines = (0, import_node_child_process10.execFileSync)("/bin/df", ["-P", directory2], {
15087
15139
  encoding: "utf8",
15088
15140
  timeout: 3e4
15089
15141
  }).trim().split("\n");
@@ -15098,13 +15150,13 @@ function agentSharedCacheRoot() {
15098
15150
  throw new Error(`configured storage is not mounted: ${mount}`);
15099
15151
  }
15100
15152
  const heavy = policy.heavy_data_dir;
15101
- if (heavy == null) return agentBuildersRoot = import_node_path19.default.join(import_node_os5.default.homedir(), "builders");
15153
+ if (heavy == null) return agentBuildersRoot = import_node_path19.default.join(import_node_os6.default.homedir(), "builders");
15102
15154
  if (typeof heavy !== "string" || !import_node_path19.default.isAbsolute(heavy) || !import_node_fs22.default.statSync(heavy).isDirectory())
15103
15155
  throw new Error(`configured heavy_data_dir is unavailable: ${heavy}`);
15104
15156
  const mounted = isMount(heavy);
15105
15157
  if (import_node_path19.default.dirname(heavy) === "/Volumes" && !mounted)
15106
15158
  throw new Error(`configured storage is not mounted: ${heavy}`);
15107
- return agentBuildersRoot = mounted && import_node_fs22.default.statSync(heavy).dev === import_node_fs22.default.statSync(import_node_os5.default.homedir()).dev ? import_node_path19.default.join(import_node_os5.default.homedir(), "builders") : import_node_path19.default.join(heavy, "builders");
15159
+ return agentBuildersRoot = mounted && import_node_fs22.default.statSync(heavy).dev === import_node_fs22.default.statSync(import_node_os6.default.homedir()).dev ? import_node_path19.default.join(import_node_os6.default.homedir(), "builders") : import_node_path19.default.join(heavy, "builders");
15108
15160
  }
15109
15161
  function buildersRootEnv() {
15110
15162
  const root = process.env[BUILDERS_ROOT_ENV]?.trim();
@@ -15202,7 +15254,7 @@ ${swiftInstallSteps(release, sdk2)}`
15202
15254
  const swift = import_node_path19.default.join(bin, "swift");
15203
15255
  const listed = [swift, sdk2.wasmSdkId, ...swiftSdkOptions()].join("\0");
15204
15256
  if (!listedSdks.has(listed)) {
15205
- const sdks = (0, import_node_child_process9.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
15257
+ const sdks = (0, import_node_child_process10.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
15206
15258
  encoding: "utf8",
15207
15259
  env: swiftEnvironment(),
15208
15260
  stdio: ["ignore", "pipe", "pipe"]
@@ -15232,7 +15284,7 @@ function swiftSdkBundle(swift, id, options) {
15232
15284
  const key2 = [swift, id, ...options].join("\0");
15233
15285
  const known = sdkBundles.get(key2);
15234
15286
  if (known && import_node_fs22.default.existsSync(known)) return known;
15235
- const configuration = (0, import_node_child_process9.execFileSync)(
15287
+ const configuration = (0, import_node_child_process10.execFileSync)(
15236
15288
  swift,
15237
15289
  ["sdk", "configure", ...options, "--show-configuration", id, "wasm64-unknown-wasip1"],
15238
15290
  { encoding: "utf8", env: swiftEnvironment(), stdio: ["ignore", "pipe", "pipe"] }
@@ -15334,7 +15386,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
15334
15386
  throw new Error("declared Swift SDK archive checksum mismatch");
15335
15387
  const store = import_node_path19.default.join(staging, "sdks");
15336
15388
  import_node_fs22.default.mkdirSync(store);
15337
- (0, import_node_child_process9.execFileSync)(
15389
+ (0, import_node_child_process10.execFileSync)(
15338
15390
  swift,
15339
15391
  [
15340
15392
  "sdk",
@@ -15354,7 +15406,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
15354
15406
  const expected = swiftSdkPayloadChecksum(stagedBundle);
15355
15407
  const locks = import_node_path19.default.join(import_node_path19.default.resolve(peachSwiftSdksDir()), ".peach-locks");
15356
15408
  import_node_fs22.default.mkdirSync(locks, { recursive: true });
15357
- (0, import_node_child_process9.execFileSync)(
15409
+ (0, import_node_child_process10.execFileSync)(
15358
15410
  "perl",
15359
15411
  [
15360
15412
  "-e",
@@ -15395,7 +15447,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
15395
15447
  }
15396
15448
  }
15397
15449
  function swiftSdkStagingDirectory(prefix) {
15398
- const parent = scratch?.directory ?? import_node_os5.default.tmpdir();
15450
+ const parent = scratch?.directory ?? import_node_os6.default.tmpdir();
15399
15451
  if (!import_node_fs22.default.existsSync(parent)) throw new Error(`Swift SDK install is missing ${parent}`);
15400
15452
  return import_node_fs22.default.mkdtempSync(import_node_path19.default.join(parent, prefix));
15401
15453
  }
@@ -15414,7 +15466,7 @@ function installSwiftWasmSdk(release, sdk2) {
15414
15466
  if (sdk2.wasmSdkUrl.startsWith("file:"))
15415
15467
  import_node_fs22.default.copyFileSync((0, import_node_url2.fileURLToPath)(sdk2.wasmSdkUrl), archive);
15416
15468
  else
15417
- (0, import_node_child_process9.execFileSync)(
15469
+ (0, import_node_child_process10.execFileSync)(
15418
15470
  "curl",
15419
15471
  [
15420
15472
  "-fsSL",
@@ -15501,7 +15553,7 @@ async function swiftCompilerAsync(release, signal) {
15501
15553
  throw new Error(`Swift compiler binary mismatch: ${relative4}`);
15502
15554
  }
15503
15555
  }
15504
- const { stdout } = await (0, import_node_util2.promisify)(import_node_child_process9.execFile)(binary2, ["--version"], {
15556
+ const { stdout } = await (0, import_node_util2.promisify)(import_node_child_process10.execFile)(binary2, ["--version"], {
15505
15557
  encoding: "utf8",
15506
15558
  env: swiftEnvironment(),
15507
15559
  signal
@@ -15520,7 +15572,7 @@ function swiftCompiler(release) {
15520
15572
  throw new Error(`Swift compiler ${release} is missing ${binary2}`);
15521
15573
  if (release.includes("-custom-"))
15522
15574
  verifySwiftHostCompiler(release, import_node_path19.default.resolve(bin, "../.."));
15523
- const version2 = (0, import_node_child_process9.execFileSync)(binary2, ["--version"], {
15575
+ const version2 = (0, import_node_child_process10.execFileSync)(binary2, ["--version"], {
15524
15576
  encoding: "utf8",
15525
15577
  env: swiftEnvironment(),
15526
15578
  stdio: ["ignore", "pipe", "pipe"]
@@ -15591,14 +15643,14 @@ function swiftCompilerInstall(release) {
15591
15643
  ]
15592
15644
  };
15593
15645
  }
15594
- var import_node_child_process9, import_node_crypto9, import_node_fs22, import_node_os5, import_node_path19, import_node_url2, import_node_util2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, linuxRuntimeLibs, SWIFT_PRIVATE_DISTRIBUTION_ENV, SWIFT_AUTOLINK_LINKER, BUILDERS_ROOT_ENV, agentBuildersRoot, scratch, linuxLibraryPath, linuxHostSdkRoot, listedSdks, sdkBundles, sdkFileHashes, sdkFilesHashed, loadedSdkHashFiles, verifiedCompilers;
15646
+ var import_node_child_process10, import_node_crypto9, import_node_fs22, import_node_os6, import_node_path19, import_node_url2, import_node_util2, SWIFT_HOST_COMPILER_RELEASE, SWIFT_HOST_COMPILER_ID, compilerArchives, linuxRuntimeLibs, SWIFT_PRIVATE_DISTRIBUTION_ENV, SWIFT_AUTOLINK_LINKER, BUILDERS_ROOT_ENV, agentBuildersRoot, scratch, linuxLibraryPath, linuxHostSdkRoot, listedSdks, sdkBundles, sdkFileHashes, sdkFilesHashed, loadedSdkHashFiles, verifiedCompilers;
15595
15647
  var init_swift_toolchain = __esm({
15596
15648
  "src/swift-toolchain.ts"() {
15597
15649
  "use strict";
15598
- import_node_child_process9 = require("node:child_process");
15650
+ import_node_child_process10 = require("node:child_process");
15599
15651
  import_node_crypto9 = require("node:crypto");
15600
15652
  import_node_fs22 = __toESM(require("node:fs"), 1);
15601
- import_node_os5 = __toESM(require("node:os"), 1);
15653
+ import_node_os6 = __toESM(require("node:os"), 1);
15602
15654
  import_node_path19 = __toESM(require("node:path"), 1);
15603
15655
  import_node_url2 = require("node:url");
15604
15656
  import_node_util2 = require("node:util");
@@ -15890,7 +15942,7 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
15890
15942
  Math.floor(minimum % 1e4 / 100),
15891
15943
  minimum % 100
15892
15944
  ].join(".");
15893
- const result = (0, import_node_child_process10.spawnSync)(
15945
+ const result = (0, import_node_child_process11.spawnSync)(
15894
15946
  import_node_path20.default.join(toolchainBin, "clang"),
15895
15947
  [
15896
15948
  "-target",
@@ -15923,11 +15975,11 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
15923
15975
  platforms.set(key2, flags);
15924
15976
  return flags;
15925
15977
  }
15926
- var import_node_child_process10, import_node_path20, platforms;
15978
+ var import_node_child_process11, import_node_path20, platforms;
15927
15979
  var init_swift_objc_platform = __esm({
15928
15980
  "src/swift-objc-platform.ts"() {
15929
15981
  "use strict";
15930
- import_node_child_process10 = require("node:child_process");
15982
+ import_node_child_process11 = require("node:child_process");
15931
15983
  import_node_path20 = __toESM(require("node:path"), 1);
15932
15984
  init_swift_toolchain();
15933
15985
  platforms = /* @__PURE__ */ new Map();
@@ -17663,7 +17715,7 @@ function developerDirs() {
17663
17715
  try {
17664
17716
  add(
17665
17717
  // runner-toolchain-platform: darwin
17666
- (0, import_node_child_process11.execFileSync)("xcode-select", ["-p"], {
17718
+ (0, import_node_child_process12.execFileSync)("xcode-select", ["-p"], {
17667
17719
  encoding: "utf8",
17668
17720
  stdio: ["ignore", "pipe", "pipe"]
17669
17721
  }).trim()
@@ -17682,7 +17734,7 @@ function readNativeSdk(developerDir2) {
17682
17734
  const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
17683
17735
  const xcrun = (args) => (
17684
17736
  // runner-toolchain-platform: darwin
17685
- (0, import_node_child_process11.execFileSync)("xcrun", args, {
17737
+ (0, import_node_child_process12.execFileSync)("xcrun", args, {
17686
17738
  encoding: "utf8",
17687
17739
  env,
17688
17740
  stdio: ["ignore", "pipe", "pipe"]
@@ -17697,7 +17749,7 @@ function readNativeSdk(developerDir2) {
17697
17749
  sdk: xcrun(["--sdk", "iphonesimulator", "--show-sdk-version"]),
17698
17750
  settings: digest4("SDKSettings.json"),
17699
17751
  build: digest4("System/Library/CoreServices/SystemVersion.plist"),
17700
- compilerVersion: (0, import_node_child_process11.execFileSync)(compiler, ["--version"], {
17752
+ compilerVersion: (0, import_node_child_process12.execFileSync)(compiler, ["--version"], {
17701
17753
  encoding: "utf8",
17702
17754
  env,
17703
17755
  stdio: ["ignore", "pipe", "pipe"]
@@ -18167,7 +18219,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
18167
18219
  for (let round = 0; ; round++) {
18168
18220
  import_node_fs23.default.rmSync(out, { recursive: true, force: true });
18169
18221
  import_node_fs23.default.mkdirSync(out, { recursive: true });
18170
- const run13 = (0, import_node_child_process11.spawnSync)(
18222
+ const run13 = (0, import_node_child_process12.spawnSync)(
18171
18223
  ...withoutCoreDump(import_node_path22.default.join(toolchainBin, "swift-symbolgraph-extract"), [
18172
18224
  "-module-name",
18173
18225
  surface.module,
@@ -18352,7 +18404,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
18352
18404
  )
18353
18405
  ].join("\n")
18354
18406
  );
18355
- const run13 = (0, import_node_child_process11.spawnSync)(
18407
+ const run13 = (0, import_node_child_process12.spawnSync)(
18356
18408
  import_node_path22.default.join(toolchainBin, "swift-frontend"),
18357
18409
  [
18358
18410
  "-typecheck",
@@ -18480,7 +18532,7 @@ function inheritedDefaultInits(surface, graphs, toolchainBin, search, moduleCach
18480
18532
  )
18481
18533
  ].join("\n")
18482
18534
  );
18483
- const run13 = (0, import_node_child_process11.spawnSync)(
18535
+ const run13 = (0, import_node_child_process12.spawnSync)(
18484
18536
  import_node_path22.default.join(toolchainBin, "swift-frontend"),
18485
18537
  [
18486
18538
  "-dump-ast",
@@ -18553,7 +18605,7 @@ function requiredInits(surface, graphs, toolchainBin, search, moduleCache, work)
18553
18605
  )
18554
18606
  ].join("\n")
18555
18607
  );
18556
- const run13 = (0, import_node_child_process11.spawnSync)(
18608
+ const run13 = (0, import_node_child_process12.spawnSync)(
18557
18609
  import_node_path22.default.join(toolchainBin, "swift-frontend"),
18558
18610
  [
18559
18611
  "-typecheck",
@@ -18612,7 +18664,7 @@ function protocolProperties(surface, headersDir, graphs, toolchainBin, search, w
18612
18664
  ].map((file) => `#import ${JSON.stringify(file)}
18613
18665
  `).join("")
18614
18666
  );
18615
- const run13 = (0, import_node_child_process11.spawnSync)(
18667
+ const run13 = (0, import_node_child_process12.spawnSync)(
18616
18668
  import_node_path22.default.join(toolchainBin, "clang"),
18617
18669
  [
18618
18670
  "-x",
@@ -18695,7 +18747,7 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
18695
18747
  "-ast-dump-all=json"
18696
18748
  ];
18697
18749
  const dump2 = (filter) => {
18698
- const run13 = (0, import_node_child_process11.spawnSync)(
18750
+ const run13 = (0, import_node_child_process12.spawnSync)(
18699
18751
  import_node_path22.default.join(toolchainBin, "clang"),
18700
18752
  [
18701
18753
  ...args,
@@ -18777,7 +18829,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
18777
18829
  if (flag === "-sdk") flags.push("-isysroot", dir);
18778
18830
  else flags.push(flag, dir);
18779
18831
  }
18780
- const run13 = (0, import_node_child_process11.spawnSync)(
18832
+ const run13 = (0, import_node_child_process12.spawnSync)(
18781
18833
  import_node_path22.default.join(toolchainBin, "clang"),
18782
18834
  [
18783
18835
  "-x",
@@ -18852,11 +18904,11 @@ function constantValue(node) {
18852
18904
  }
18853
18905
  return null;
18854
18906
  }
18855
- var import_node_child_process11, import_node_crypto10, import_node_fs23, import_node_path22, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
18907
+ var import_node_child_process12, import_node_crypto10, import_node_fs23, import_node_path22, REFINED_CONSTANT_TYPES, NATIVE_GRAPH_SDK_VERSION, WASI_EMULATION, WASI_EMULATION_FLAGS, NATIVE_GRAPH_INPUTS, NATIVE_GRAPH_ID, resolvedPinnedSdk, ROUNDS, sdkId, headerFiles, MISSING_IMPORT, FRAMEWORK_HEADER, FRAMEWORK_MODULEMAP, sdkDeclarations;
18856
18908
  var init_swift_objc_standin = __esm({
18857
18909
  "src/swift-objc-standin.ts"() {
18858
18910
  "use strict";
18859
- import_node_child_process11 = require("node:child_process");
18911
+ import_node_child_process12 = require("node:child_process");
18860
18912
  import_node_crypto10 = require("node:crypto");
18861
18913
  import_node_fs23 = __toESM(require("node:fs"), 1);
18862
18914
  import_node_path22 = __toESM(require("node:path"), 1);
@@ -19117,7 +19169,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
19117
19169
  ]);
19118
19170
  const cached2 = sdkViews.get(key2);
19119
19171
  if (cached2 && import_node_fs24.default.existsSync(cached2.manifest)) return touchSdkView(cached2.options);
19120
- const configuration = (0, import_node_child_process12.execFileSync)(
19172
+ const configuration = (0, import_node_child_process13.execFileSync)(
19121
19173
  import_node_path23.default.join(toolchainBin, "swift"),
19122
19174
  [
19123
19175
  "sdk",
@@ -19246,11 +19298,11 @@ function swiftSharedSdkInputFiles(moduleRoot) {
19246
19298
  const root = swiftSharedSdkRoot(moduleRoot, false);
19247
19299
  return (0, import_node_fs24.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path23.default.relative(moduleRoot, import_node_path23.default.join(entry.parentPath, entry.name))).sort();
19248
19300
  }
19249
- var import_node_child_process12, import_node_crypto11, import_node_fs24, import_node_path23, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
19301
+ var import_node_child_process13, import_node_crypto11, import_node_fs24, import_node_path23, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
19250
19302
  var init_swift_shared_sdk = __esm({
19251
19303
  "src/swift-shared-sdk.ts"() {
19252
19304
  "use strict";
19253
- import_node_child_process12 = require("node:child_process");
19305
+ import_node_child_process13 = require("node:child_process");
19254
19306
  import_node_crypto11 = require("node:crypto");
19255
19307
  import_node_fs24 = __toESM(require("node:fs"), 1);
19256
19308
  import_node_path23 = __toESM(require("node:path"), 1);
@@ -19273,14 +19325,14 @@ var init_swift_shared_sdk = __esm({
19273
19325
  // src/swift-darwin-records.ts
19274
19326
  function compileDarwinRecords(args) {
19275
19327
  const records = import_node_path24.default.join(args.packageRoot, "Sources/DarwinRecords");
19276
- const runtime = (0, import_node_fs25.mkdtempSync)(import_node_path24.default.join((0, import_node_os6.tmpdir)(), "peach-objc-runtime-"));
19328
+ const runtime = (0, import_node_fs25.mkdtempSync)(import_node_path24.default.join((0, import_node_os7.tmpdir)(), "peach-objc-runtime-"));
19277
19329
  (0, import_node_fs25.symlinkSync)(import_node_path24.default.join(args.darwin, "usr/include/objc"), import_node_path24.default.join(runtime, "objc"));
19278
19330
  const objects = (0, import_node_fs25.readdirSync)(records).filter((file) => file.endsWith(".c") || file.endsWith(".m")).sort((a, b) => a < b ? -1 : a > b ? 1 : 0).map((file) => {
19279
19331
  const object6 = import_node_path24.default.join(
19280
19332
  args.out,
19281
19333
  `${DARWIN_RECORDS_PREFIX}${file.replace(/\.[cm]$/, ".o")}`
19282
19334
  );
19283
- (0, import_node_child_process13.execFileSync)(
19335
+ (0, import_node_child_process14.execFileSync)(
19284
19336
  import_node_path24.default.join(args.bin, "clang"),
19285
19337
  [
19286
19338
  "--target=wasm64-unknown-wasip1",
@@ -19315,13 +19367,13 @@ function compileDarwinRecords(args) {
19315
19367
  (0, import_node_fs25.rmSync)(runtime, { recursive: true });
19316
19368
  return objects;
19317
19369
  }
19318
- var import_node_child_process13, import_node_fs25, import_node_os6, import_node_path24, DARWIN_RECORDS_PREFIX, darwinRecordsMinimum;
19370
+ var import_node_child_process14, import_node_fs25, import_node_os7, import_node_path24, DARWIN_RECORDS_PREFIX, darwinRecordsMinimum;
19319
19371
  var init_swift_darwin_records = __esm({
19320
19372
  "src/swift-darwin-records.ts"() {
19321
19373
  "use strict";
19322
- import_node_child_process13 = require("node:child_process");
19374
+ import_node_child_process14 = require("node:child_process");
19323
19375
  import_node_fs25 = require("node:fs");
19324
- import_node_os6 = require("node:os");
19376
+ import_node_os7 = require("node:os");
19325
19377
  import_node_path24 = __toESM(require("node:path"), 1);
19326
19378
  init_swift_objc_platform();
19327
19379
  init_swift_objc_runtime();
@@ -21951,18 +22003,18 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
21951
22003
  transformations
21952
22004
  });
21953
22005
  } else
21954
- (0, import_node_child_process14.execFileSync)(import_node_path25.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
22006
+ (0, import_node_child_process15.execFileSync)(import_node_path25.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
21955
22007
  stdio: "pipe",
21956
22008
  maxBuffer: Infinity,
21957
22009
  ...owner
21958
22010
  });
21959
22011
  import_node_fs26.default.rmSync(rspPath, { force: true });
21960
22012
  }
21961
- var import_node_child_process14, import_node_crypto12, import_node_fs26, import_node_path25, v2, HAS_ADDEND, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, parsedObjectCache, SWIFTUI_WRAPPER_HOST_PROTOCOLS;
22013
+ var import_node_child_process15, import_node_crypto12, import_node_fs26, import_node_path25, v2, HAS_ADDEND, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, parsedObjectCache, SWIFTUI_WRAPPER_HOST_PROTOCOLS;
21962
22014
  var init_swift_wasm_prune = __esm({
21963
22015
  "src/swift-wasm-prune.ts"() {
21964
22016
  "use strict";
21965
- import_node_child_process14 = require("node:child_process");
22017
+ import_node_child_process15 = require("node:child_process");
21966
22018
  import_node_crypto12 = require("node:crypto");
21967
22019
  import_node_fs26 = __toESM(require("node:fs"), 1);
21968
22020
  import_node_path25 = __toESM(require("node:path"), 1);
@@ -22053,7 +22105,7 @@ var init_swift_wasm_prune = __esm({
22053
22105
  // src/swift-guest-archive.ts
22054
22106
  function aliasGuestArchive(options) {
22055
22107
  const original = readArMembers((0, import_node_fs27.readFileSync)(options.archive));
22056
- const listed = (0, import_node_child_process15.execFileSync)(options.llvmAr, ["t", options.archive], {
22108
+ const listed = (0, import_node_child_process16.execFileSync)(options.llvmAr, ["t", options.archive], {
22057
22109
  encoding: "utf8"
22058
22110
  }).trimEnd().split("\n");
22059
22111
  if (!original.length || listed.length !== original.length || original.some((member, index) => member.name !== listed[index]))
@@ -22079,7 +22131,7 @@ function aliasGuestArchive(options) {
22079
22131
  );
22080
22132
  const archive = import_node_path26.default.join(options.directory, "archive.a");
22081
22133
  (0, import_node_fs27.rmSync)(archive, { force: true });
22082
- (0, import_node_child_process15.execFileSync)(options.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
22134
+ (0, import_node_child_process16.execFileSync)(options.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
22083
22135
  const rewritten = readArMembers((0, import_node_fs27.readFileSync)(archive));
22084
22136
  if (rewritten.length !== members2.length || rewritten.some(
22085
22137
  (member, index) => member.name !== members2[index].alias || (0, import_node_crypto13.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
@@ -22114,11 +22166,11 @@ function aliasGuestLinkIdentities(identities, archives) {
22114
22166
  }
22115
22167
  return result;
22116
22168
  }
22117
- var import_node_child_process15, import_node_crypto13, import_node_fs27, import_node_path26;
22169
+ var import_node_child_process16, import_node_crypto13, import_node_fs27, import_node_path26;
22118
22170
  var init_swift_guest_archive = __esm({
22119
22171
  "src/swift-guest-archive.ts"() {
22120
22172
  "use strict";
22121
- import_node_child_process15 = require("node:child_process");
22173
+ import_node_child_process16 = require("node:child_process");
22122
22174
  import_node_crypto13 = require("node:crypto");
22123
22175
  import_node_fs27 = require("node:fs");
22124
22176
  import_node_path26 = __toESM(require("node:path"), 1);
@@ -24457,7 +24509,7 @@ function linkGuestImages(options) {
24457
24509
  );
24458
24510
  const output2 = import_node_fs30.default.openSync(trace, "w");
24459
24511
  try {
24460
- (0, import_node_child_process16.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
24512
+ (0, import_node_child_process17.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
24461
24513
  } finally {
24462
24514
  import_node_fs30.default.closeSync(output2);
24463
24515
  }
@@ -24471,7 +24523,7 @@ function linkGuestImages(options) {
24471
24523
  source,
24472
24524
  '#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
24473
24525
  );
24474
- (0, import_node_child_process16.execFileSync)(
24526
+ (0, import_node_child_process17.execFileSync)(
24475
24527
  clang,
24476
24528
  [...options.projection.clangOptions, "-c", source, "-o", discoveryProjection],
24477
24529
  { stdio: "pipe" }
@@ -24585,7 +24637,7 @@ function linkGuestImages(options) {
24585
24637
  }
24586
24638
  const members2 = archives.get(artifact.path);
24587
24639
  if (!members2) continue;
24588
- const listed = (0, import_node_child_process16.execFileSync)(llvmAr, ["t", artifact.path], { encoding: "utf8" }).trimEnd().split("\n");
24640
+ const listed = (0, import_node_child_process17.execFileSync)(llvmAr, ["t", artifact.path], { encoding: "utf8" }).trimEnd().split("\n");
24589
24641
  if (listed.length !== members2.length || new Set(listed).size !== listed.length || members2.some(
24590
24642
  (member, i) => listed[i] !== member.name || import_node_path29.default.basename(member.name) !== member.name
24591
24643
  ))
@@ -24608,13 +24660,13 @@ function linkGuestImages(options) {
24608
24660
  import_node_fs30.default.rmSync(output2, { force: true });
24609
24661
  const response = import_node_path29.default.join(memberDir, "members.rsp");
24610
24662
  import_node_fs30.default.writeFileSync(response, inputs.map((input) => JSON.stringify(input)).join(" "));
24611
- (0, import_node_child_process16.execFileSync)(llvmAr, ["rcs", output2, `@${response}`], { stdio: "pipe" });
24663
+ (0, import_node_child_process17.execFileSync)(llvmAr, ["rcs", output2, `@${response}`], { stdio: "pipe" });
24612
24664
  replacements.set(artifact.path, output2);
24613
24665
  }
24614
24666
  const irPath = import_node_path29.default.join(directory2, "ledger.ll");
24615
24667
  const ledgerObject = import_node_path29.default.join(directory2, "ledger.o");
24616
24668
  import_node_fs30.default.writeFileSync(irPath, ledger.llvmIR);
24617
- (0, import_node_child_process16.execFileSync)(
24669
+ (0, import_node_child_process17.execFileSync)(
24618
24670
  clang,
24619
24671
  ["--target=wasm64-unknown-wasip1", "-c", irPath, "-o", ledgerObject],
24620
24672
  { stdio: "pipe" }
@@ -24656,7 +24708,7 @@ function linkGuestImages(options) {
24656
24708
  const projectionSource = import_node_path29.default.join(directory2, "projection.c");
24657
24709
  projectionObject = import_node_path29.default.join(directory2, "projection.o");
24658
24710
  import_node_fs30.default.writeFileSync(projectionSource, projectionStorage.source);
24659
- (0, import_node_child_process16.execFileSync)(
24711
+ (0, import_node_child_process17.execFileSync)(
24660
24712
  clang,
24661
24713
  [...projection.clangOptions, "-c", projectionSource, "-o", projectionObject],
24662
24714
  {
@@ -24833,7 +24885,7 @@ function discoverGuestLinkInputs(options) {
24833
24885
  const trace = import_node_path29.default.join(options.directory, "preselection-inputs.txt");
24834
24886
  const traceOutput = import_node_fs30.default.openSync(trace, "w");
24835
24887
  try {
24836
- (0, import_node_child_process16.execFileSync)(options.wasmLd, [`@${response}`], {
24888
+ (0, import_node_child_process17.execFileSync)(options.wasmLd, [`@${response}`], {
24837
24889
  stdio: ["ignore", traceOutput, "pipe"]
24838
24890
  });
24839
24891
  } finally {
@@ -24991,7 +25043,7 @@ function verifyGuestSymbolScopes(options) {
24991
25043
  const tracePath = import_node_path29.default.join(options.directory, "scope-trace.txt");
24992
25044
  const traceOutput = import_node_fs30.default.openSync(tracePath, "w");
24993
25045
  try {
24994
- (0, import_node_child_process16.execFileSync)(options.wasmLd, [`@${response}`], {
25046
+ (0, import_node_child_process17.execFileSync)(options.wasmLd, [`@${response}`], {
24995
25047
  stdio: ["ignore", traceOutput, "pipe"]
24996
25048
  });
24997
25049
  } finally {
@@ -25257,11 +25309,11 @@ function linkPrunedGuestImages(options) {
25257
25309
  if (!result) throw new Error("guest link did not receive pruned inputs");
25258
25310
  return result;
25259
25311
  }
25260
- var import_node_child_process16, import_node_fs30, import_node_path29, import_node_string_decoder;
25312
+ var import_node_child_process17, import_node_fs30, import_node_path29, import_node_string_decoder;
25261
25313
  var init_swift_guest_link = __esm({
25262
25314
  "src/swift-guest-link.ts"() {
25263
25315
  "use strict";
25264
- import_node_child_process16 = require("node:child_process");
25316
+ import_node_child_process17 = require("node:child_process");
25265
25317
  import_node_fs30 = __toESM(require("node:fs"), 1);
25266
25318
  import_node_path29 = __toESM(require("node:path"), 1);
25267
25319
  import_node_string_decoder = require("node:string_decoder");
@@ -25365,7 +25417,7 @@ function sourceGuestClangLinkOptions(options) {
25365
25417
  throw new Error(`missing clang ${flag} for ${file}`);
25366
25418
  args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
25367
25419
  }
25368
- (0, import_node_child_process17.execFileSync)(command.args[0], [...args, "-S", "-emit-llvm"], { stdio: "inherit" });
25420
+ (0, import_node_child_process18.execFileSync)(command.args[0], [...args, "-S", "-emit-llvm"], { stdio: "inherit" });
25369
25421
  const flags = clangIrLinkOptions((0, import_node_fs31.readFileSync)(output2, "utf8"));
25370
25422
  for (let index2 = 0; index2 < flags.length; index2++) {
25371
25423
  const flag = flags[index2];
@@ -25503,7 +25555,7 @@ function sourceGuestRuntimeLinks(options) {
25503
25555
  response,
25504
25556
  image.objects.map((file) => JSON.stringify(file)).join("\n") + "\n"
25505
25557
  );
25506
- const autolink = image.objects.length ? (0, import_node_child_process17.execFileSync)(
25558
+ const autolink = image.objects.length ? (0, import_node_child_process18.execFileSync)(
25507
25559
  import_node_path30.default.join(options.toolchainBin, "swift-autolink-extract"),
25508
25560
  [`@${response}`, "-o", "-"],
25509
25561
  { encoding: "utf8" }
@@ -25596,11 +25648,11 @@ function logicalGuestLinkOptions(args, identities, roots) {
25596
25648
  }
25597
25649
  return output2;
25598
25650
  }
25599
- var import_node_child_process17, import_node_crypto16, import_node_fs31, import_node_path30, CLANG_TARGET_MODULE_WRAPPER;
25651
+ var import_node_child_process18, import_node_crypto16, import_node_fs31, import_node_path30, CLANG_TARGET_MODULE_WRAPPER;
25600
25652
  var init_swift_guest_source_inputs = __esm({
25601
25653
  "src/swift-guest-source-inputs.ts"() {
25602
25654
  "use strict";
25603
- import_node_child_process17 = require("node:child_process");
25655
+ import_node_child_process18 = require("node:child_process");
25604
25656
  import_node_crypto16 = require("node:crypto");
25605
25657
  import_node_fs31 = require("node:fs");
25606
25658
  import_node_path30 = __toESM(require("node:path"), 1);
@@ -25869,7 +25921,7 @@ async function runWasmOpt(file, output2, optimize, skipPasses, binary2) {
25869
25921
  const thunks = `${output2}.thunks.wat`;
25870
25922
  (0, import_node_fs32.writeFileSync)(guest, narrowed.module);
25871
25923
  (0, import_node_fs32.writeFileSync)(thunks, narrowed.thunks);
25872
- await (0, import_node_util3.promisify)(import_node_child_process18.execFile)((0, import_node_path31.join)((0, import_node_path31.dirname)(binary2), "wasm-merge"), [
25924
+ await (0, import_node_util3.promisify)(import_node_child_process19.execFile)((0, import_node_path31.join)((0, import_node_path31.dirname)(binary2), "wasm-merge"), [
25873
25925
  ...features,
25874
25926
  ...names,
25875
25927
  guest,
@@ -25928,11 +25980,11 @@ async function lowerWasm(file, output2, options) {
25928
25980
  await installWasmOpt()
25929
25981
  );
25930
25982
  }
25931
- var import_node_child_process18, import_node_fs32, import_node_path31, import_node_util3, import_wasm_opt, FEATURES, KEEP_WASM_NAMES, LOWERING, WASM_LOWER_IDENTITY, PINNED_BINARYEN_VERSION, BINARYEN_RELEASES;
25983
+ var import_node_child_process19, import_node_fs32, import_node_path31, import_node_util3, import_wasm_opt, FEATURES, KEEP_WASM_NAMES, LOWERING, WASM_LOWER_IDENTITY, PINNED_BINARYEN_VERSION, BINARYEN_RELEASES;
25932
25984
  var init_wasm_optimize = __esm({
25933
25985
  "src/wasm-optimize.ts"() {
25934
25986
  "use strict";
25935
- import_node_child_process18 = require("node:child_process");
25987
+ import_node_child_process19 = require("node:child_process");
25936
25988
  import_node_fs32 = require("node:fs");
25937
25989
  import_node_path31 = require("node:path");
25938
25990
  import_node_util3 = require("node:util");
@@ -26031,7 +26083,7 @@ async function compileGuestLink(options) {
26031
26083
  stubSource,
26032
26084
  '#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
26033
26085
  );
26034
- (0, import_node_child_process19.execFileSync)(
26086
+ (0, import_node_child_process20.execFileSync)(
26035
26087
  import_node_path32.default.join(options.toolchainBin, "clang"),
26036
26088
  [...clangOptions, "-c", stubSource, "-o", stub],
26037
26089
  { stdio: "pipe" }
@@ -26348,11 +26400,11 @@ async function compileGuestLink(options) {
26348
26400
  });
26349
26401
  (0, import_node_fs33.writeFileSync)(options.optimized, finalized.wasm);
26350
26402
  }
26351
- var import_node_child_process19, import_node_fs33, import_node_path32;
26403
+ var import_node_child_process20, import_node_fs33, import_node_path32;
26352
26404
  var init_swift_guest_compile = __esm({
26353
26405
  "src/swift-guest-compile.ts"() {
26354
26406
  "use strict";
26355
- import_node_child_process19 = require("node:child_process");
26407
+ import_node_child_process20 = require("node:child_process");
26356
26408
  import_node_fs33 = require("node:fs");
26357
26409
  import_node_path32 = __toESM(require("node:path"), 1);
26358
26410
  init_swift_guest_archive();
@@ -26543,7 +26595,7 @@ function swiftIcuAddress(icu) {
26543
26595
  function swiftIcuPacked(icu) {
26544
26596
  return memo(packedFiles, icu.sha256, async () => {
26545
26597
  const file = import_node_path33.default.join(
26546
- import_node_os7.default.homedir(),
26598
+ import_node_os8.default.homedir(),
26547
26599
  ".peach",
26548
26600
  "cache",
26549
26601
  "swift-brotli",
@@ -26570,21 +26622,21 @@ async function swiftIcuBundleAsset(icu) {
26570
26622
  contentType: "application/octet-stream"
26571
26623
  };
26572
26624
  }
26573
- var import_node_child_process20, import_node_crypto17, import_node_fs34, import_promises4, import_node_os7, import_node_path33, import_node_util4, import_node_zlib3, run, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, packedFiles;
26625
+ var import_node_child_process21, import_node_crypto17, import_node_fs34, import_promises4, import_node_os8, import_node_path33, import_node_util4, import_node_zlib3, run, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, packedFiles;
26574
26626
  var init_swift_icu = __esm({
26575
26627
  "src/swift-icu.ts"() {
26576
26628
  "use strict";
26577
- import_node_child_process20 = require("node:child_process");
26629
+ import_node_child_process21 = require("node:child_process");
26578
26630
  import_node_crypto17 = require("node:crypto");
26579
26631
  import_node_fs34 = require("node:fs");
26580
26632
  import_promises4 = require("node:fs/promises");
26581
- import_node_os7 = __toESM(require("node:os"), 1);
26633
+ import_node_os8 = __toESM(require("node:os"), 1);
26582
26634
  import_node_path33 = __toESM(require("node:path"), 1);
26583
26635
  import_node_util4 = require("node:util");
26584
26636
  import_node_zlib3 = require("node:zlib");
26585
26637
  init_icuData();
26586
26638
  init_swift_toolchain();
26587
- run = (0, import_node_util4.promisify)(import_node_child_process20.execFile);
26639
+ run = (0, import_node_util4.promisify)(import_node_child_process21.execFile);
26588
26640
  deflate = (0, import_node_util4.promisify)(import_node_zlib3.gzip);
26589
26641
  compressBrotli = (0, import_node_util4.promisify)(import_node_zlib3.brotliCompress);
26590
26642
  inflateGzip = (0, import_node_util4.promisify)(import_node_zlib3.gunzip);
@@ -26767,7 +26819,7 @@ function prepareSwiftProjectProcess(root, user) {
26767
26819
  (0, import_node_fs36.mkdirSync)(tmp, { recursive: true });
26768
26820
  const caches = ["cache", "config", "security"].map((name3) => import_node_path35.default.join(swiftpm, name3));
26769
26821
  for (const directory2 of caches) (0, import_node_fs36.mkdirSync)(directory2, { recursive: true });
26770
- (0, import_node_child_process21.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
26822
+ (0, import_node_child_process22.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
26771
26823
  (0, import_node_fs36.chmodSync)(root, 448);
26772
26824
  (0, import_node_fs36.chmodSync)(home, 448);
26773
26825
  return {
@@ -26790,7 +26842,7 @@ function prepareSwiftProjectProcess(root, user) {
26790
26842
  };
26791
26843
  }
26792
26844
  function endSwiftProjectProcesses(user) {
26793
- (0, import_node_child_process21.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
26845
+ (0, import_node_child_process22.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
26794
26846
  uid: user.uid,
26795
26847
  gid: user.gid
26796
26848
  });
@@ -26817,11 +26869,11 @@ function removeProjectLinks(root) {
26817
26869
  }
26818
26870
  }
26819
26871
  }
26820
- var import_node_child_process21, import_node_fs36, import_node_path35;
26872
+ var import_node_child_process22, import_node_fs36, import_node_path35;
26821
26873
  var init_swift_project_user = __esm({
26822
26874
  "src/swift-project-user.ts"() {
26823
26875
  "use strict";
26824
- import_node_child_process21 = require("node:child_process");
26876
+ import_node_child_process22 = require("node:child_process");
26825
26877
  import_node_fs36 = require("node:fs");
26826
26878
  import_node_path35 = __toESM(require("node:path"), 1);
26827
26879
  }
@@ -26829,7 +26881,7 @@ var init_swift_project_user = __esm({
26829
26881
 
26830
26882
  // src/swift-reproducible.ts
26831
26883
  function swiftReproducibleBuildFlags(roots) {
26832
- return [[import_node_os8.default.homedir(), "home"], ...roots].flatMap(
26884
+ return [[import_node_os9.default.homedir(), "home"], ...roots].flatMap(
26833
26885
  ([root, name3]) => [.../* @__PURE__ */ new Set([root, (0, import_node_fs37.realpathSync)(root)])].map((from) => `${from}=/peach/${name3}`)
26834
26886
  ).flatMap((map2) => [
26835
26887
  "-Xswiftc",
@@ -26842,12 +26894,12 @@ function swiftReproducibleBuildFlags(roots) {
26842
26894
  `-ffile-prefix-map=${map2}`
26843
26895
  ]);
26844
26896
  }
26845
- var import_node_fs37, import_node_os8;
26897
+ var import_node_fs37, import_node_os9;
26846
26898
  var init_swift_reproducible = __esm({
26847
26899
  "src/swift-reproducible.ts"() {
26848
26900
  "use strict";
26849
26901
  import_node_fs37 = require("node:fs");
26850
- import_node_os8 = __toESM(require("node:os"), 1);
26902
+ import_node_os9 = __toESM(require("node:os"), 1);
26851
26903
  }
26852
26904
  });
26853
26905
 
@@ -26934,11 +26986,11 @@ function groupAlive(table, leader) {
26934
26986
  return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
26935
26987
  }
26936
26988
  function swiftRootLocksDir() {
26937
- return import_node_path36.default.join((0, import_node_os9.homedir)(), ".peach", "cache", "swift-root-locks");
26989
+ return import_node_path36.default.join((0, import_node_os10.homedir)(), ".peach", "cache", "swift-root-locks");
26938
26990
  }
26939
26991
  function withCocoaPodsCacheLock(work) {
26940
26992
  return withSwiftRootLock(
26941
- process.env.CP_CACHE_DIR || import_node_path36.default.join((0, import_node_os9.homedir)(), "Library/Caches/CocoaPods"),
26993
+ process.env.CP_CACHE_DIR || import_node_path36.default.join((0, import_node_os10.homedir)(), "Library/Caches/CocoaPods"),
26942
26994
  work
26943
26995
  );
26944
26996
  }
@@ -27015,7 +27067,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
27015
27067
  }
27016
27068
  },
27017
27069
  spawn(command, args, options, companion) {
27018
- const child = (0, import_node_child_process22.spawn)(
27070
+ const child = (0, import_node_child_process23.spawn)(
27019
27071
  "/bin/sh",
27020
27072
  ["-c", 'IFS= read -r go || exit 1; exec "$@" </dev/null', "sh", command, ...args],
27021
27073
  { ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
@@ -27045,14 +27097,14 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
27045
27097
  (0, import_node_fs38.writeFileSync)(import_node_path36.default.join(directory2, name(held, "released")), "");
27046
27098
  }
27047
27099
  }
27048
- var import_node_child_process22, import_node_crypto18, import_node_fs38, import_node_os9, import_node_path36, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name;
27100
+ var import_node_child_process23, import_node_crypto18, import_node_fs38, import_node_os10, import_node_path36, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name;
27049
27101
  var init_swift_root_lock = __esm({
27050
27102
  "src/swift-root-lock.ts"() {
27051
27103
  "use strict";
27052
- import_node_child_process22 = require("node:child_process");
27104
+ import_node_child_process23 = require("node:child_process");
27053
27105
  import_node_crypto18 = require("node:crypto");
27054
27106
  import_node_fs38 = require("node:fs");
27055
- import_node_os9 = require("node:os");
27107
+ import_node_os10 = require("node:os");
27056
27108
  import_node_path36 = __toESM(require("node:path"), 1);
27057
27109
  init_process_group();
27058
27110
  init_process_table();
@@ -27067,7 +27119,7 @@ var init_swift_root_lock = __esm({
27067
27119
  function compileUniformTypeConstants(args) {
27068
27120
  const source = import_node_path37.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
27069
27121
  const object6 = import_node_path37.default.join(args.out, "UniformTypeIdentifiers-NativeConstants.o");
27070
- (0, import_node_child_process23.execFileSync)(
27122
+ (0, import_node_child_process24.execFileSync)(
27071
27123
  import_node_path37.default.join(args.bin, "clang"),
27072
27124
  [
27073
27125
  "--target=wasm64-unknown-wasip1",
@@ -27088,11 +27140,11 @@ function compileUniformTypeConstants(args) {
27088
27140
  );
27089
27141
  return object6;
27090
27142
  }
27091
- var import_node_child_process23, import_node_path37;
27143
+ var import_node_child_process24, import_node_path37;
27092
27144
  var init_swift_uniform_type_constants = __esm({
27093
27145
  "src/swift-uniform-type-constants.ts"() {
27094
27146
  "use strict";
27095
- import_node_child_process23 = require("node:child_process");
27147
+ import_node_child_process24 = require("node:child_process");
27096
27148
  import_node_path37 = __toESM(require("node:path"), 1);
27097
27149
  init_swift_objc_runtime();
27098
27150
  init_swift_objc_standin();
@@ -27232,7 +27284,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
27232
27284
  detached: true,
27233
27285
  stdio: ["ignore", "pipe", "pipe"]
27234
27286
  };
27235
- const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process24.spawn)(command, args, launch);
27287
+ const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process25.spawn)(command, args, launch);
27236
27288
  let stopping;
27237
27289
  try {
27238
27290
  return await new Promise((resolve4, reject) => {
@@ -27310,7 +27362,7 @@ function swiftBuildJobs() {
27310
27362
  const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
27311
27363
  return Math.min(
27312
27364
  process.platform === "darwin" ? Infinity : 4,
27313
- Math.max(1, Math.floor(import_node_os10.default.availableParallelism() / 2)),
27365
+ Math.max(1, Math.floor(import_node_os11.default.availableParallelism() / 2)),
27314
27366
  Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
27315
27367
  );
27316
27368
  }
@@ -27764,7 +27816,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
27764
27816
  const key2 = JSON.stringify([toolchainBin, sdk2, options]);
27765
27817
  const cached2 = sdkPaths.get(key2);
27766
27818
  if (cached2) return cached2;
27767
- const configuration = (0, import_node_child_process24.execFileSync)(
27819
+ const configuration = (0, import_node_child_process25.execFileSync)(
27768
27820
  import_node_path40.default.join(toolchainBin, "swift"),
27769
27821
  [
27770
27822
  "sdk",
@@ -32048,14 +32100,14 @@ function compileSwiftProjectOnce(input, options) {
32048
32100
  options.signal
32049
32101
  );
32050
32102
  }
32051
- 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;
32103
+ var import_node_child_process25, import_node_crypto19, import_node_fs41, import_node_os11, 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;
32052
32104
  var init_swift_compile = __esm({
32053
32105
  "src/swift-compile.ts"() {
32054
32106
  "use strict";
32055
- import_node_child_process24 = require("node:child_process");
32107
+ import_node_child_process25 = require("node:child_process");
32056
32108
  import_node_crypto19 = require("node:crypto");
32057
32109
  import_node_fs41 = require("node:fs");
32058
- import_node_os10 = __toESM(require("node:os"), 1);
32110
+ import_node_os11 = __toESM(require("node:os"), 1);
32059
32111
  import_node_path40 = __toESM(require("node:path"), 1);
32060
32112
  v5 = __toESM(require("valibot"), 1);
32061
32113
  init_admitted_mac_build();
@@ -33272,7 +33324,7 @@ async function swiftDistributionRoot(signal) {
33272
33324
  }
33273
33325
  async function installSwiftToolchain(release, sdk2, signal, compilerOnly = false) {
33274
33326
  const root = import_node_path42.default.resolve(swiftToolchainBin(release), "../..");
33275
- const owned = process.platform === "darwin" ? import_node_path42.default.join(import_node_os11.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path42.default.join(rnxHomeDir(), "swift", "toolchains", release);
33327
+ const owned = process.platform === "darwin" ? import_node_path42.default.join(import_node_os12.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path42.default.join(rnxHomeDir(), "swift", "toolchains", release);
33276
33328
  const selectedCompiler = process.platform === "darwin" && import_node_fs43.default.existsSync(import_node_path42.default.join(root, "usr/bin/swift"));
33277
33329
  if (release.includes("-custom-") && root === owned && !selectedCompiler && !swiftCompilerReady(release)) {
33278
33330
  const archive = swiftHostCompilerArchive(release);
@@ -33375,12 +33427,12 @@ function swiftModuleToolchain(root) {
33375
33427
  const { release } = swiftModuleCompiler(root);
33376
33428
  return { release, toolchainBin: swiftToolchain(release, swiftModuleSdk(root)) };
33377
33429
  }
33378
- var import_node_fs43, import_node_os11, import_node_path42, SWIFT_ENDPOINT_ENV, DEFAULT_SWIFT_ENDPOINT, installs, staleWarned;
33430
+ var import_node_fs43, import_node_os12, import_node_path42, SWIFT_ENDPOINT_ENV, DEFAULT_SWIFT_ENDPOINT, installs, staleWarned;
33379
33431
  var init_swift_distribution = __esm({
33380
33432
  "src/swift-distribution.ts"() {
33381
33433
  "use strict";
33382
33434
  import_node_fs43 = __toESM(require("node:fs"), 1);
33383
- import_node_os11 = __toESM(require("node:os"), 1);
33435
+ import_node_os12 = __toESM(require("node:os"), 1);
33384
33436
  import_node_path42 = __toESM(require("node:path"), 1);
33385
33437
  init_src();
33386
33438
  init_linux_browser_libs();
@@ -33471,7 +33523,7 @@ function dumpInputs(dir) {
33471
33523
  path: command,
33472
33524
  realpath: import_node_fs44.default.realpathSync(command),
33473
33525
  sha256: (0, import_node_crypto21.createHash)("sha256").update(import_node_fs44.default.readFileSync(command)).digest("hex"),
33474
- version: (0, import_node_child_process25.execFileSync)(command, ["--version"], {
33526
+ version: (0, import_node_child_process26.execFileSync)(command, ["--version"], {
33475
33527
  encoding: "utf8",
33476
33528
  env: swiftEnvironment(),
33477
33529
  stdio: ["ignore", "pipe", "pipe"]
@@ -33534,7 +33586,7 @@ function dump(dir, requirePrepared = false) {
33534
33586
  if (requirePrepared) throw new SwiftManifestPreparationRequired(dir);
33535
33587
  let output2;
33536
33588
  try {
33537
- output2 = (0, import_node_child_process25.execFileSync)(
33589
+ output2 = (0, import_node_child_process26.execFileSync)(
33538
33590
  command,
33539
33591
  [
33540
33592
  "package",
@@ -33874,7 +33926,7 @@ let package = Package(
33874
33926
  ]
33875
33927
  )
33876
33928
  `;
33877
- const dir = import_node_fs44.default.mkdtempSync(import_node_path43.default.join(import_node_os12.default.tmpdir(), "peach-resolve-"));
33929
+ const dir = import_node_fs44.default.mkdtempSync(import_node_path43.default.join(import_node_os13.default.tmpdir(), "peach-resolve-"));
33878
33930
  import_node_fs44.default.writeFileSync(import_node_path43.default.join(dir, "Package.swift"), manifest);
33879
33931
  const args = [
33880
33932
  "package",
@@ -33914,7 +33966,7 @@ async function resolveSwiftPackageRequirementsAsync(requirements, destination, s
33914
33966
  const { dir, args, options, failed, publish } = resolveRequest(requirements);
33915
33967
  try {
33916
33968
  try {
33917
- await (0, import_node_util5.promisify)(import_node_child_process25.execFile)(swiftCommand(), args, { ...options, signal });
33969
+ await (0, import_node_util5.promisify)(import_node_child_process26.execFile)(swiftCommand(), args, { ...options, signal });
33918
33970
  } catch (error) {
33919
33971
  throw failed(error);
33920
33972
  }
@@ -33955,14 +34007,14 @@ function swiftTargetFiles(manifest, target) {
33955
34007
  }
33956
34008
  return [...new Set(files2)].sort();
33957
34009
  }
33958
- var import_node_child_process25, import_node_crypto21, import_node_fs44, import_node_os12, import_node_path43, import_node_util5, TARGET_TYPES, targetRelative, isTargetType, record, array3, string4, cacheDir3, evaluated, execFileAsync, cachedToolchain, SwiftManifestPreparationRequired, manifestPreparations, GUEST_PLATFORMS, within, requirementClause;
34010
+ var import_node_child_process26, import_node_crypto21, import_node_fs44, import_node_os13, import_node_path43, import_node_util5, TARGET_TYPES, targetRelative, isTargetType, record, array3, string4, cacheDir3, evaluated, execFileAsync, cachedToolchain, SwiftManifestPreparationRequired, manifestPreparations, GUEST_PLATFORMS, within, requirementClause;
33959
34011
  var init_swift_package_manifest = __esm({
33960
34012
  "src/swift-package-manifest.ts"() {
33961
34013
  "use strict";
33962
- import_node_child_process25 = require("node:child_process");
34014
+ import_node_child_process26 = require("node:child_process");
33963
34015
  import_node_crypto21 = require("node:crypto");
33964
34016
  import_node_fs44 = __toESM(require("node:fs"), 1);
33965
- import_node_os12 = __toESM(require("node:os"), 1);
34017
+ import_node_os13 = __toESM(require("node:os"), 1);
33966
34018
  import_node_path43 = __toESM(require("node:path"), 1);
33967
34019
  import_node_util5 = require("node:util");
33968
34020
  init_home_paths();
@@ -33986,7 +34038,7 @@ var init_swift_package_manifest = __esm({
33986
34038
  string4 = (value) => typeof value === "string" ? value : void 0;
33987
34039
  cacheDir3 = import_node_path43.default.join(cacheDir(), "swift-manifests");
33988
34040
  evaluated = /* @__PURE__ */ new Map();
33989
- execFileAsync = (0, import_node_util5.promisify)(import_node_child_process25.execFile);
34041
+ execFileAsync = (0, import_node_util5.promisify)(import_node_child_process26.execFile);
33990
34042
  SwiftManifestPreparationRequired = class extends Error {
33991
34043
  constructor(dir) {
33992
34044
  super(`swift package manifest requires preparation: ${dir}`);
@@ -34671,7 +34723,7 @@ function loadProject(xcodeproj) {
34671
34723
  function selectedDeveloperDir() {
34672
34724
  developerDir ??= process.platform === "darwin" ? (
34673
34725
  // runner-toolchain-platform: darwin
34674
- (0, import_node_child_process26.execFileSync)("xcode-select", ["-p"], {
34726
+ (0, import_node_child_process27.execFileSync)("xcode-select", ["-p"], {
34675
34727
  encoding: "utf8",
34676
34728
  stdio: ["ignore", "pipe", "pipe"]
34677
34729
  }).trim()
@@ -35075,7 +35127,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
35075
35127
  str(phase.shellPath) ?? "/bin/sh",
35076
35128
  str(phase.shellScript) ?? ""
35077
35129
  );
35078
- (0, import_node_child_process26.execFileSync)(shell, args, {
35130
+ (0, import_node_child_process27.execFileSync)(shell, args, {
35079
35131
  cwd: project2.projectDir,
35080
35132
  env,
35081
35133
  stdio: ["ignore", "pipe", "pipe"],
@@ -35183,7 +35235,7 @@ ${output2}`
35183
35235
  const families = settings("TARGETED_DEVICE_FAMILY").split(",").map((value) => value.trim());
35184
35236
  if (families.includes("1")) args.push("--target-device", "iphone");
35185
35237
  if (families.includes("2")) args.push("--target-device", "ipad");
35186
- (0, import_node_child_process26.execFileSync)("xcrun", args, {
35238
+ (0, import_node_child_process27.execFileSync)("xcrun", args, {
35187
35239
  cwd: project2.projectDir,
35188
35240
  stdio: ["ignore", "pipe", "pipe"],
35189
35241
  timeout: runScriptTimeoutMs
@@ -35228,7 +35280,7 @@ ${output2}`
35228
35280
  args.push("-swiftVersion", settings("SWIFT_VERSION") || "5.0");
35229
35281
  if (settings("DEFINES_MODULE") === "YES")
35230
35282
  args.push("-moduleName", settings("PRODUCT_MODULE_NAME"));
35231
- (0, import_node_child_process26.execFileSync)("xcrun", args, {
35283
+ (0, import_node_child_process27.execFileSync)("xcrun", args, {
35232
35284
  cwd: project2.projectDir,
35233
35285
  stdio: ["ignore", "pipe", "pipe"],
35234
35286
  timeout: runScriptTimeoutMs
@@ -36596,11 +36648,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
36596
36648
  cocoapods
36597
36649
  };
36598
36650
  }
36599
- var import_node_child_process26, import_node_crypto22, import_node_fs45, import_node_path45, import_plist2, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
36651
+ var import_node_child_process27, import_node_crypto22, import_node_fs45, import_node_path45, import_plist2, XCODE_DEFAULT_IOS_DEPLOYMENT_TARGET, runScriptTimeoutMs, CXX_STANDARD_ALIASES, PRE_CXX20_STANDARDS, APPLICATION, APP_EXTENSION, RESOURCE_BUNDLE, PRODUCT_MACH_O_TYPES, FRAMEWORK_PRODUCTS, HEADER_FILE, MODULE_PRODUCTS, CONDITIONS, isDirectory, loaded2, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
36600
36652
  var init_xcode_project = __esm({
36601
36653
  "src/xcode-project.ts"() {
36602
36654
  "use strict";
36603
- import_node_child_process26 = require("node:child_process");
36655
+ import_node_child_process27 = require("node:child_process");
36604
36656
  import_node_crypto22 = require("node:crypto");
36605
36657
  import_node_fs45 = __toESM(require("node:fs"), 1);
36606
36658
  import_node_path45 = __toESM(require("node:path"), 1);
@@ -36735,7 +36787,7 @@ async function readExpoConfigAsync(projectRoot) {
36735
36787
  const directory2 = resultDirectory();
36736
36788
  const resultPath = import_node_path46.default.join(directory2, "config.json");
36737
36789
  try {
36738
- const child = (0, import_node_child_process27.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
36790
+ const child = (0, import_node_child_process28.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
36739
36791
  cwd: projectRoot,
36740
36792
  stdio: ["ignore", "ignore", "pipe"],
36741
36793
  timeout: EXPO_CONFIG_TIMEOUT_MS
@@ -36756,13 +36808,13 @@ async function readExpoConfigAsync(projectRoot) {
36756
36808
  import_node_fs46.default.rmSync(directory2, { recursive: true, force: true });
36757
36809
  }
36758
36810
  }
36759
- var import_node_child_process27, import_node_fs46, import_node_os13, import_node_path46, EXPO_CONFIG_SCRIPT, EXPO_CONFIG_TIMEOUT_MS, resultDirectory;
36811
+ var import_node_child_process28, import_node_fs46, import_node_os14, import_node_path46, EXPO_CONFIG_SCRIPT, EXPO_CONFIG_TIMEOUT_MS, resultDirectory;
36760
36812
  var init_native_firebase_config = __esm({
36761
36813
  "src/native-firebase-config.ts"() {
36762
36814
  "use strict";
36763
- import_node_child_process27 = require("node:child_process");
36815
+ import_node_child_process28 = require("node:child_process");
36764
36816
  import_node_fs46 = __toESM(require("node:fs"), 1);
36765
- import_node_os13 = __toESM(require("node:os"), 1);
36817
+ import_node_os14 = __toESM(require("node:os"), 1);
36766
36818
  import_node_path46 = __toESM(require("node:path"), 1);
36767
36819
  init_is_record();
36768
36820
  init_plist();
@@ -36784,7 +36836,7 @@ const result = JSON.stringify(getConfig(root, { skipSDKVersionRequirement: true
36784
36836
  if (Buffer.byteLength(result) > 1024 * 1024) throw new Error('Expo native configuration exceeds 1 MiB.');
36785
36837
  writeFileSync(process.argv[2], result, { mode: 0o600 });`;
36786
36838
  EXPO_CONFIG_TIMEOUT_MS = 3e4;
36787
- resultDirectory = () => import_node_fs46.default.mkdtempSync(import_node_path46.default.join(import_node_os13.default.tmpdir(), "peach-expo-config-"));
36839
+ resultDirectory = () => import_node_fs46.default.mkdtempSync(import_node_path46.default.join(import_node_os14.default.tmpdir(), "peach-expo-config-"));
36788
36840
  }
36789
36841
  });
36790
36842
 
@@ -36915,18 +36967,18 @@ async function expoAutolinkedPods(appRoot) {
36915
36967
  }))
36916
36968
  );
36917
36969
  }
36918
- var import_node_child_process28, import_node_fs48, import_node_module3, import_node_path48, import_node_util6, run2;
36970
+ var import_node_child_process29, import_node_fs48, import_node_module3, import_node_path48, import_node_util6, run2;
36919
36971
  var init_expo_autolinking = __esm({
36920
36972
  "src/expo-autolinking.ts"() {
36921
36973
  "use strict";
36922
- import_node_child_process28 = require("node:child_process");
36974
+ import_node_child_process29 = require("node:child_process");
36923
36975
  import_node_fs48 = __toESM(require("node:fs"), 1);
36924
36976
  import_node_module3 = require("node:module");
36925
36977
  import_node_path48 = __toESM(require("node:path"), 1);
36926
36978
  import_node_util6 = require("node:util");
36927
36979
  init_forked_script_contract();
36928
36980
  init_is_record();
36929
- run2 = (0, import_node_util6.promisify)(import_node_child_process28.execFile);
36981
+ run2 = (0, import_node_util6.promisify)(import_node_child_process29.execFile);
36930
36982
  }
36931
36983
  });
36932
36984
 
@@ -37045,18 +37097,18 @@ function ensureToolchain(toolchain) {
37045
37097
  toolchains.set(key2, ready);
37046
37098
  return ready;
37047
37099
  }
37048
- var import_node_child_process29, import_node_crypto24, import_node_fs49, import_node_path49, import_node_util7, run3, toolchains;
37100
+ var import_node_child_process30, import_node_crypto24, import_node_fs49, import_node_path49, import_node_util7, run3, toolchains;
37049
37101
  var init_kotlin_toolchain = __esm({
37050
37102
  "src/kotlin-toolchain.ts"() {
37051
37103
  "use strict";
37052
- import_node_child_process29 = require("node:child_process");
37104
+ import_node_child_process30 = require("node:child_process");
37053
37105
  import_node_crypto24 = require("node:crypto");
37054
37106
  import_node_fs49 = __toESM(require("node:fs"), 1);
37055
37107
  import_node_path49 = __toESM(require("node:path"), 1);
37056
37108
  import_node_util7 = require("node:util");
37057
37109
  init_home_paths();
37058
37110
  init_is_record();
37059
- run3 = (0, import_node_util7.promisify)(import_node_child_process29.execFile);
37111
+ run3 = (0, import_node_util7.promisify)(import_node_child_process30.execFile);
37060
37112
  toolchains = /* @__PURE__ */ new Map();
37061
37113
  }
37062
37114
  });
@@ -37542,11 +37594,11 @@ function glogSources() {
37542
37594
  for (const unit2 of GLOG_UNITS) sources.push(read(unit2));
37543
37595
  return sources;
37544
37596
  }
37545
- var import_node_child_process30, import_node_crypto25, import_node_fs51, import_node_path51, import_node_util8, run4, DOUBLE_CONVERSION_WASM64_BACKPORT, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES, HEADER2, GLOG, GLOG_SUBSTITUTIONS, GLOG_CONFIGURE, GLOG_CONFIG_APPENDIX, GLOG_UNITS;
37597
+ var import_node_child_process31, import_node_crypto25, import_node_fs51, import_node_path51, import_node_util8, run4, DOUBLE_CONVERSION_WASM64_BACKPORT, RN_SHARED_DEPENDENCIES, RN_FMT_11_DEPENDENCIES, RN_FAST_FLOAT_6_DEPENDENCIES, RN_FMT_12_DEPENDENCIES, HEADER2, GLOG, GLOG_SUBSTITUTIONS, GLOG_CONFIGURE, GLOG_CONFIG_APPENDIX, GLOG_UNITS;
37546
37598
  var init_nitro_dependencies = __esm({
37547
37599
  "src/nitro-dependencies.ts"() {
37548
37600
  "use strict";
37549
- import_node_child_process30 = require("node:child_process");
37601
+ import_node_child_process31 = require("node:child_process");
37550
37602
  import_node_crypto25 = require("node:crypto");
37551
37603
  import_node_fs51 = __toESM(require("node:fs"), 1);
37552
37604
  import_node_path51 = __toESM(require("node:path"), 1);
@@ -37556,7 +37608,7 @@ var init_nitro_dependencies = __esm({
37556
37608
  init_kotlin_toolchain();
37557
37609
  init_swift_source_file();
37558
37610
  init_swift_submit();
37559
- run4 = (0, import_node_util8.promisify)(import_node_child_process30.execFile);
37611
+ run4 = (0, import_node_util8.promisify)(import_node_child_process31.execFile);
37560
37612
  DOUBLE_CONVERSION_WASM64_BACKPORT = {
37561
37613
  upstreamCommit: "8857767d5b2f5a035321e3712e8cd0008840ba6b",
37562
37614
  originalSha256: "b495b11f7b61693486894f747add5b454894b8b3ca41aa1610d370ba16407ab7",
@@ -37864,18 +37916,18 @@ async function readAutolinkingConfig(appRoot, platform2) {
37864
37916
  })
37865
37917
  );
37866
37918
  }
37867
- var import_node_child_process31, import_node_fs52, import_node_module4, import_node_path52, import_node_util9, run5, CLI_TIMEOUT_MS, inFlight;
37919
+ var import_node_child_process32, import_node_fs52, import_node_module4, import_node_path52, import_node_util9, run5, CLI_TIMEOUT_MS, inFlight;
37868
37920
  var init_react_native_autolinking = __esm({
37869
37921
  "src/react-native-autolinking.ts"() {
37870
37922
  "use strict";
37871
- import_node_child_process31 = require("node:child_process");
37923
+ import_node_child_process32 = require("node:child_process");
37872
37924
  import_node_fs52 = __toESM(require("node:fs"), 1);
37873
37925
  import_node_module4 = require("node:module");
37874
37926
  import_node_path52 = __toESM(require("node:path"), 1);
37875
37927
  import_node_util9 = require("node:util");
37876
37928
  init_forked_script_contract();
37877
37929
  init_is_record();
37878
- run5 = (0, import_node_util9.promisify)(import_node_child_process31.execFile);
37930
+ run5 = (0, import_node_util9.promisify)(import_node_child_process32.execFile);
37879
37931
  CLI_TIMEOUT_MS = 12e4;
37880
37932
  inFlight = /* @__PURE__ */ new Map();
37881
37933
  }
@@ -38727,7 +38779,7 @@ async function preparedNativeInventory(app, selected, signal) {
38727
38779
  paths: [import_node_path54.default.dirname(require2.resolve("expo/package.json"))]
38728
38780
  });
38729
38781
  const cli = import_node_path54.default.join(import_node_path54.default.dirname(expo), "bin/expo-modules-autolinking.js");
38730
- const searched = await (0, import_node_util10.promisify)(import_node_child_process32.execFile)(
38782
+ const searched = await (0, import_node_util10.promisify)(import_node_child_process33.execFile)(
38731
38783
  process.execPath,
38732
38784
  [cli, "search", ...autolinkerAppleFlags(expo, app), "--json"],
38733
38785
  {
@@ -38786,11 +38838,11 @@ async function preparedNativeInventory(app, selected, signal) {
38786
38838
  }
38787
38839
  return result;
38788
38840
  }
38789
- var import_node_child_process32, import_node_crypto27, import_node_fs54, import_node_module6, import_node_path54, import_promises5, import_node_util10;
38841
+ var import_node_child_process33, import_node_crypto27, import_node_fs54, import_node_module6, import_node_path54, import_promises5, import_node_util10;
38790
38842
  var init_prepared_native_inventory = __esm({
38791
38843
  "src/prepared-native-inventory.ts"() {
38792
38844
  "use strict";
38793
- import_node_child_process32 = require("node:child_process");
38845
+ import_node_child_process33 = require("node:child_process");
38794
38846
  import_node_crypto27 = require("node:crypto");
38795
38847
  import_node_fs54 = __toESM(require("node:fs"), 1);
38796
38848
  import_node_module6 = require("node:module");
@@ -38903,12 +38955,12 @@ function compiledSwiftHelper(swift, name3) {
38903
38955
  try {
38904
38956
  import_node_fs56.default.mkdirSync(cacheDir(), { recursive: true });
38905
38957
  const source = import_node_path56.default.join(
38906
- import_node_fs56.default.mkdtempSync(import_node_path56.default.join(import_node_os14.default.tmpdir(), `${name3}-`)),
38958
+ import_node_fs56.default.mkdtempSync(import_node_path56.default.join(import_node_os15.default.tmpdir(), `${name3}-`)),
38907
38959
  "main.swift"
38908
38960
  );
38909
38961
  import_node_fs56.default.writeFileSync(source, swift);
38910
38962
  try {
38911
- (0, import_node_child_process33.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
38963
+ (0, import_node_child_process34.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
38912
38964
  } finally {
38913
38965
  import_node_fs56.default.rmSync(import_node_path56.default.dirname(source), { recursive: true, force: true });
38914
38966
  }
@@ -38920,14 +38972,14 @@ function compiledSwiftHelper(swift, name3) {
38920
38972
  );
38921
38973
  }
38922
38974
  }
38923
- var import_node_child_process33, import_node_crypto29, import_node_fs56, import_node_os14, import_node_path56;
38975
+ var import_node_child_process34, import_node_crypto29, import_node_fs56, import_node_os15, import_node_path56;
38924
38976
  var init_swift_helper = __esm({
38925
38977
  "src/swift-helper.ts"() {
38926
38978
  "use strict";
38927
- import_node_child_process33 = require("node:child_process");
38979
+ import_node_child_process34 = require("node:child_process");
38928
38980
  import_node_crypto29 = require("node:crypto");
38929
38981
  import_node_fs56 = __toESM(require("node:fs"), 1);
38930
- import_node_os14 = __toESM(require("node:os"), 1);
38982
+ import_node_os15 = __toESM(require("node:os"), 1);
38931
38983
  import_node_path56 = __toESM(require("node:path"), 1);
38932
38984
  init_home_paths();
38933
38985
  }
@@ -39088,40 +39140,67 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
39088
39140
  const steersNative = (relative4) => !relative4.includes(import_node_path58.default.sep) || relative4.startsWith(`patches${import_node_path58.default.sep}`) || nativeDirectories.some(
39089
39141
  (directory2) => directory2 === "" || relative4 === directory2 || relative4.startsWith(directory2 + import_node_path58.default.sep)
39090
39142
  );
39091
- const walk3 = async (directory2) => {
39092
- const entries = await import_node_fs58.default.promises.readdir(directory2, { withFileTypes: true });
39093
- for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
39143
+ const steps = [];
39144
+ const unread = [];
39145
+ const walk3 = (directory2) => {
39146
+ const entries = import_node_fs58.default.readdirSync(directory2, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name));
39147
+ for (const entry of entries) {
39094
39148
  signal?.throwIfAborted();
39095
39149
  const file = import_node_path58.default.join(directory2, entry.name);
39096
39150
  const relative4 = import_node_path58.default.relative(root, file);
39097
39151
  if (excluded(relative4, entry.isDirectory())) continue;
39098
- hash.update(`${relative4}\0`);
39152
+ steps.push(() => hash.update(`${relative4}\0`));
39099
39153
  if (entry.isSymbolicLink()) {
39100
- const link = `link\0${await import_node_fs58.default.promises.readlink(file)}\0`;
39101
- hash.update(link);
39102
- if (steersNative(relative4)) native.update(`${relative4}\0${link}`);
39154
+ const link = `link\0${import_node_fs58.default.readlinkSync(file)}\0`;
39155
+ steps.push(() => {
39156
+ hash.update(link);
39157
+ if (steersNative(relative4)) native.update(`${relative4}\0${link}`);
39158
+ });
39103
39159
  } else if (entry.isDirectory()) {
39104
- hash.update("directory\0");
39105
- await walk3(file);
39160
+ steps.push(() => hash.update("directory\0"));
39161
+ walk3(file);
39106
39162
  } else if (entry.isFile()) {
39107
39163
  const posix2 = relative4.split(import_node_path58.default.sep).join("/");
39108
39164
  if (NATIVE_CONFIG_FILE.test(posix2)) {
39109
- const bytes = await import_node_fs58.default.promises.readFile(file);
39110
- if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
39111
- if (steersNative(relative4))
39112
- native.update(`${posix2}\0`).update(nativeConfigBytes(posix2, bytes));
39113
- } else {
39114
- if (everyByte) {
39115
- const bytes = await import_node_fs58.default.promises.readFile(file);
39116
- hash.update(`file\0${bytes.length}\0`).update(bytes);
39117
- }
39118
- if (NATIVE_SOURCE_FILE.test(posix2) && steersNative(relative4))
39119
- native.update(`${posix2}\0`);
39165
+ const bytes = import_node_fs58.default.readFileSync(file);
39166
+ steps.push(() => {
39167
+ if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
39168
+ if (steersNative(relative4))
39169
+ native.update(`${posix2}\0`).update(nativeConfigBytes(posix2, bytes));
39170
+ });
39171
+ continue;
39120
39172
  }
39173
+ if (everyByte) {
39174
+ const stat = import_node_fs58.default.statSync(file);
39175
+ const known = fileDigests.get(file);
39176
+ const content = known?.ino === stat.ino && known.size === stat.size && known.mtimeMs === stat.mtimeMs && known.ctimeMs === stat.ctimeMs ? known : {
39177
+ ino: stat.ino,
39178
+ size: stat.size,
39179
+ mtimeMs: stat.mtimeMs,
39180
+ ctimeMs: stat.ctimeMs,
39181
+ digest: ""
39182
+ };
39183
+ if (content !== known) unread.push({ file, content });
39184
+ steps.push(() => hash.update(`file\0${content.size}\0${content.digest}`));
39185
+ }
39186
+ if (NATIVE_SOURCE_FILE.test(posix2) && steersNative(relative4))
39187
+ steps.push(() => native.update(`${posix2}\0`));
39121
39188
  }
39122
39189
  }
39123
39190
  };
39124
- await walk3(root);
39191
+ walk3(root);
39192
+ for (let start = 0; start < unread.length; start += 32) {
39193
+ signal?.throwIfAborted();
39194
+ await Promise.all(
39195
+ unread.slice(start, start + 32).map(async ({ file, content }) => {
39196
+ const bytes = await import_node_fs58.default.promises.readFile(file);
39197
+ content.size = bytes.length;
39198
+ content.digest = (0, import_node_crypto30.createHash)("sha256").update(bytes).digest("hex");
39199
+ fileDigests.set(file, content);
39200
+ })
39201
+ );
39202
+ }
39203
+ for (const step of steps) step();
39125
39204
  if (sourceOnly) {
39126
39205
  hash.update(`\0${appRelative}\0`);
39127
39206
  return {
@@ -39132,29 +39211,32 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
39132
39211
  excluded
39133
39212
  };
39134
39213
  }
39135
- const execFileAsync4 = (0, import_node_util11.promisify)(import_node_child_process34.execFile);
39136
- const mac = process.platform === "darwin" ? await Promise.all([
39137
- // runner-toolchain-platform: darwin
39138
- execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
39139
- (cause) => {
39140
- throw new Error("CocoaPods is required to install source dependencies", {
39141
- cause
39142
- });
39143
- }
39144
- ),
39145
- // runner-toolchain-platform: darwin
39146
- execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
39147
- ]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {};
39214
+ const execFileAsync4 = (0, import_node_util11.promisify)(import_node_child_process35.execFile);
39148
39215
  const pinnedNode = typeof manifest.engines?.node === "string" && /^\d+(\.\d+){0,2}$/.test(manifest.engines.node) ? `node@${manifest.engines.node}` : null;
39216
+ const [mac, node] = await Promise.all([
39217
+ process.platform === "darwin" ? Promise.all([
39218
+ // runner-toolchain-platform: darwin
39219
+ execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
39220
+ (cause) => {
39221
+ throw new Error("CocoaPods is required to install source dependencies", {
39222
+ cause
39223
+ });
39224
+ }
39225
+ ),
39226
+ // runner-toolchain-platform: darwin
39227
+ execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
39228
+ ]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {},
39229
+ execFileAsync4(
39230
+ pinnedNode ? "mise" : "node",
39231
+ pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
39232
+ { cwd: root, signal }
39233
+ )
39234
+ ]);
39149
39235
  const toolchain = JSON.stringify({
39150
39236
  preparation: 7,
39151
39237
  appRelative,
39152
39238
  ...mac,
39153
- node: (await execFileAsync4(
39154
- pinnedNode ? "mise" : "node",
39155
- pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
39156
- { cwd: root, signal }
39157
- )).stdout.trim(),
39239
+ node: node.stdout.trim(),
39158
39240
  packageManager: workspacePackageManager(root, manifest.packageManager, excluded),
39159
39241
  podsEnvironment
39160
39242
  });
@@ -39333,7 +39415,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
39333
39415
  });
39334
39416
  if (process.platform === "darwin") {
39335
39417
  await new Promise((resolve4, reject) => {
39336
- const child = (0, import_node_child_process34.execFile)(
39418
+ const child = (0, import_node_child_process35.execFile)(
39337
39419
  compiledSwiftHelper(CLONE_SWIFT, "peach-clone-entries"),
39338
39420
  (error) => error ? reject(error) : resolve4()
39339
39421
  );
@@ -39349,7 +39431,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
39349
39431
  const clone = async () => {
39350
39432
  const relative4 = entries.pop();
39351
39433
  if (relative4 === void 0) return;
39352
- await (0, import_node_util11.promisify)(import_node_child_process34.execFile)("cp", [
39434
+ await (0, import_node_util11.promisify)(import_node_child_process35.execFile)("cp", [
39353
39435
  "-R",
39354
39436
  "-p",
39355
39437
  import_node_path58.default.join(root, relative4),
@@ -39373,7 +39455,7 @@ function nativeWorkspacesDir(root) {
39373
39455
  return import_node_path58.default.join(mount, ".peach-cache", "expo-native-workspaces");
39374
39456
  }
39375
39457
  function trackedSourceEntries(root, work) {
39376
- const listed = (0, import_node_child_process34.spawnSync)("git", ["ls-files", "--stage", "-z"], {
39458
+ const listed = (0, import_node_child_process35.spawnSync)("git", ["ls-files", "--stage", "-z"], {
39377
39459
  cwd: root,
39378
39460
  env: { ...process.env, ...isolatedGitEnv },
39379
39461
  maxBuffer: 256 * 1024 * 1024
@@ -39387,8 +39469,8 @@ function trackedSourceEntries(root, work) {
39387
39469
  function initializeWorkspaceGit(root, work) {
39388
39470
  requireNativeGit();
39389
39471
  const env = { ...process.env, ...isolatedGitEnv };
39390
- (0, import_node_child_process34.execFileSync)("git", ["init", "--quiet"], { cwd: work, env });
39391
- (0, import_node_child_process34.execFileSync)(
39472
+ (0, import_node_child_process35.execFileSync)("git", ["init", "--quiet"], { cwd: work, env });
39473
+ (0, import_node_child_process35.execFileSync)(
39392
39474
  "git",
39393
39475
  [
39394
39476
  "-c",
@@ -39408,7 +39490,7 @@ function initializeWorkspaceGit(root, work) {
39408
39490
  );
39409
39491
  const tracked = trackedSourceEntries(root, work);
39410
39492
  if (tracked.length > 0)
39411
- (0, import_node_child_process34.execFileSync)("git", ["update-index", "-z", "--index-info"], {
39493
+ (0, import_node_child_process35.execFileSync)("git", ["update-index", "-z", "--index-info"], {
39412
39494
  cwd: work,
39413
39495
  env,
39414
39496
  input: tracked.join("\0")
@@ -39464,7 +39546,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
39464
39546
  }
39465
39547
  const trustedConfigs = /* @__PURE__ */ new Set();
39466
39548
  for (const cwd of [root, app]) {
39467
- const result2 = (0, import_node_child_process34.spawnSync)("mise", ["config", "ls", "--json"], {
39549
+ const result2 = (0, import_node_child_process35.spawnSync)("mise", ["config", "ls", "--json"], {
39468
39550
  cwd,
39469
39551
  encoding: "utf8"
39470
39552
  });
@@ -39507,7 +39589,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
39507
39589
  const command = [...prefix, ...args];
39508
39590
  await run13(command[0], command.slice(1), cwd, env);
39509
39591
  };
39510
- const installedBun = manager.startsWith("bun@") ? (0, import_node_child_process34.spawnSync)(bunExecutable, ["--version"], { encoding: "utf8" }) : null;
39592
+ const installedBun = manager.startsWith("bun@") ? (0, import_node_child_process35.spawnSync)(bunExecutable, ["--version"], { encoding: "utf8" }) : null;
39511
39593
  if (manager.startsWith("bun@") && (installedBun?.status !== 0 || installedBun.stdout.trim() !== manager.slice(4)))
39512
39594
  await execute(
39513
39595
  [
@@ -39626,7 +39708,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
39626
39708
  return;
39627
39709
  import_node_fs58.default.rmSync(opensslDir, { recursive: true, force: true });
39628
39710
  import_node_fs58.default.mkdirSync(opensslDir, { recursive: true });
39629
- (0, import_node_child_process34.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
39711
+ (0, import_node_child_process35.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
39630
39712
  }
39631
39713
  async function runAdmitted(lease, command, args, cwd, extraEnv) {
39632
39714
  const admitted = teamMachineInstalled();
@@ -39662,11 +39744,11 @@ ${failedOutputLine(command, cwd, bytes)}`
39662
39744
  });
39663
39745
  });
39664
39746
  }
39665
- var import_node_child_process34, import_node_crypto30, import_node_fs58, import_node_module7, import_node_path58, import_node_util11, isolatedGitEnv, utf8Env, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE, NATIVE_PACKAGE_ENTRY, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_SWIFT;
39747
+ var import_node_child_process35, import_node_crypto30, import_node_fs58, import_node_module7, import_node_path58, import_node_util11, isolatedGitEnv, utf8Env, NATIVE_CONFIG_FILE, NATIVE_SOURCE_FILE, fileDigests, NATIVE_PACKAGE_ENTRY, KEPT_WORKSPACES, WORKSPACE_GRACE_MS, ABANDONED_WORKSPACE_MS, RETIRED_PREFIX2, preparing, watches, current, CLONE_SWIFT;
39666
39748
  var init_expo_native_workspace = __esm({
39667
39749
  "src/expo-native-workspace.ts"() {
39668
39750
  "use strict";
39669
- import_node_child_process34 = require("node:child_process");
39751
+ import_node_child_process35 = require("node:child_process");
39670
39752
  import_node_crypto30 = require("node:crypto");
39671
39753
  import_node_fs58 = __toESM(require("node:fs"), 1);
39672
39754
  import_node_module7 = require("node:module");
@@ -39693,6 +39775,7 @@ var init_expo_native_workspace = __esm({
39693
39775
  utf8Env = { ...process.env, LANG: "en_US.UTF-8", LC_ALL: "en_US.UTF-8" };
39694
39776
  NATIVE_CONFIG_FILE = /(^|\/)(package\.json|bun\.lockb?|package-lock\.json|pnpm-lock\.yaml|pnpm-workspace\.yaml|yarn\.lock|\.yarnrc\.yml|\.npmrc|app\.json|app\.config\.[cm]?[jt]s|Podfile(\.lock|\.properties)?|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|\.nvmrc|\.tool-versions|\.?mise(?:\.[^/]+)?\.toml)$|\.(podspec|patch|plist|entitlements|xcconfig|pbxproj|storyboard|xib|gradle|rb)$|(^|\/)(plugins|patches)\//;
39695
39777
  NATIVE_SOURCE_FILE = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/;
39778
+ fileDigests = /* @__PURE__ */ new Map();
39696
39779
  NATIVE_PACKAGE_ENTRY = /^(ios|android|.*\.podspec|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|app\.plugin\.[cm]?js)$/;
39697
39780
  KEPT_WORKSPACES = 2;
39698
39781
  WORKSPACE_GRACE_MS = 36e5;
@@ -41155,12 +41238,12 @@ function rustStaticLibrary(file, moduleRoot) {
41155
41238
  const flags = ["--no-sort", "--extern-only", "--defined-only", "--format=just-symbols"];
41156
41239
  const options = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
41157
41240
  const symbols = (input) => {
41158
- const raw2 = (0, import_node_child_process35.execFileSync)(
41241
+ const raw2 = (0, import_node_child_process36.execFileSync)(
41159
41242
  import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
41160
41243
  [...flags, input],
41161
41244
  options
41162
41245
  ).trim().split("\n");
41163
- const demangled = (0, import_node_child_process35.execFileSync)(
41246
+ const demangled = (0, import_node_child_process36.execFileSync)(
41164
41247
  import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
41165
41248
  [...flags, "--demangle", input],
41166
41249
  options
@@ -41175,7 +41258,7 @@ function rustStaticLibrary(file, moduleRoot) {
41175
41258
  const stage = import_node_fs64.default.mkdtempSync(import_node_path64.default.join(directory2, "build-"));
41176
41259
  try {
41177
41260
  const object6 = import_node_path64.default.join(stage, "library.o");
41178
- (0, import_node_child_process35.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "wasm-ld"), [
41261
+ (0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "wasm-ld"), [
41179
41262
  "-mwasm64",
41180
41263
  "-r",
41181
41264
  "--whole-archive",
@@ -41191,7 +41274,7 @@ function rustStaticLibrary(file, moduleRoot) {
41191
41274
  );
41192
41275
  import_node_fs64.default.writeFileSync(object6, localizeDefinedWasmSymbols(import_node_fs64.default.readFileSync(object6), names));
41193
41276
  const output2 = import_node_path64.default.join(stage, "library.a");
41194
- (0, import_node_child_process35.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object6]);
41277
+ (0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object6]);
41195
41278
  import_node_fs64.default.renameSync(output2, archive);
41196
41279
  } finally {
41197
41280
  import_node_fs64.default.rmSync(stage, { recursive: true, force: true });
@@ -41210,7 +41293,7 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
41210
41293
  import_node_fs64.default.mkdirSync(directory2, { recursive: true });
41211
41294
  const temporary = import_node_path64.default.join(directory2, `combined-${(0, import_node_crypto31.randomUUID)()}.a`);
41212
41295
  try {
41213
- (0, import_node_child_process35.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), [
41296
+ (0, import_node_child_process36.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), [
41214
41297
  "qcsDL",
41215
41298
  temporary,
41216
41299
  ...files2
@@ -41221,11 +41304,11 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
41221
41304
  }
41222
41305
  return archive;
41223
41306
  }
41224
- var import_node_child_process35, import_node_crypto31, import_node_fs64, import_node_path64, NATIVE_STATIC_LIBRARY_RECIPES;
41307
+ var import_node_child_process36, import_node_crypto31, import_node_fs64, import_node_path64, NATIVE_STATIC_LIBRARY_RECIPES;
41225
41308
  var init_native_static_libraries = __esm({
41226
41309
  "src/native-static-libraries.ts"() {
41227
41310
  "use strict";
41228
- import_node_child_process35 = require("node:child_process");
41311
+ import_node_child_process36 = require("node:child_process");
41229
41312
  import_node_crypto31 = require("node:crypto");
41230
41313
  import_node_fs64 = __toESM(require("node:fs"), 1);
41231
41314
  import_node_path64 = __toESM(require("node:path"), 1);
@@ -41746,7 +41829,7 @@ function privateAdapterArchive(family, roots, moduleRoot) {
41746
41829
  "--distribution",
41747
41830
  moduleRoot
41748
41831
  ];
41749
- const verified2 = import_node_fs66.default.existsSync(import_node_path66.default.join(dir, ADAPTER_MANIFEST)) && (0, import_node_child_process36.spawnSync)("bun", [script, "--verify", ...args(dir)], { stdio: "ignore" }).status === 0;
41832
+ const verified2 = import_node_fs66.default.existsSync(import_node_path66.default.join(dir, ADAPTER_MANIFEST)) && (0, import_node_child_process37.spawnSync)("bun", [script, "--verify", ...args(dir)], { stdio: "ignore" }).status === 0;
41750
41833
  if (!verified2) {
41751
41834
  process.stderr.write(
41752
41835
  `peach: building ${label} for private distribution ${distribution.id}\u2026
@@ -41754,7 +41837,7 @@ function privateAdapterArchive(family, roots, moduleRoot) {
41754
41837
  );
41755
41838
  const staged = `${dir}.${process.pid}`;
41756
41839
  import_node_fs66.default.rmSync(staged, { recursive: true, force: true });
41757
- (0, import_node_child_process36.execFileSync)("bun", [script, ...args(staged)], { stdio: ["ignore", 2, 2] });
41840
+ (0, import_node_child_process37.execFileSync)("bun", [script, ...args(staged)], { stdio: ["ignore", 2, 2] });
41758
41841
  import_node_fs66.default.rmSync(dir, { recursive: true, force: true });
41759
41842
  import_node_fs66.default.renameSync(staged, dir);
41760
41843
  }
@@ -41796,11 +41879,11 @@ async function resolveAdapterArchive(family, roots, moduleRoot, lock, signal) {
41796
41879
  base64: import_node_fs66.default.readFileSync(import_node_path66.default.join(dir, manifest.archive.path)).toString("base64")
41797
41880
  };
41798
41881
  }
41799
- var import_node_child_process36, import_node_fs66, import_node_path66, installedVersion;
41882
+ var import_node_child_process37, import_node_fs66, import_node_path66, installedVersion;
41800
41883
  var init_nitro_adapter = __esm({
41801
41884
  "src/nitro-adapter.ts"() {
41802
41885
  "use strict";
41803
- import_node_child_process36 = require("node:child_process");
41886
+ import_node_child_process37 = require("node:child_process");
41804
41887
  import_node_fs66 = __toESM(require("node:fs"), 1);
41805
41888
  import_node_path66 = __toESM(require("node:path"), 1);
41806
41889
  init_src();
@@ -44960,11 +45043,11 @@ function resolveSwiftPackages(options) {
44960
45043
  result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
44961
45044
  return result;
44962
45045
  }
44963
- var import_node_child_process37, import_node_crypto34, import_node_fs70, import_node_path70, import_promises6, import_node_util12, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
45046
+ var import_node_child_process38, import_node_crypto34, import_node_fs70, import_node_path70, import_promises6, import_node_util12, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
44964
45047
  var init_swift_packages = __esm({
44965
45048
  "src/swift-packages.ts"() {
44966
45049
  "use strict";
44967
- import_node_child_process37 = require("node:child_process");
45050
+ import_node_child_process38 = require("node:child_process");
44968
45051
  import_node_crypto34 = require("node:crypto");
44969
45052
  import_node_fs70 = __toESM(require("node:fs"), 1);
44970
45053
  import_node_path70 = __toESM(require("node:path"), 1);
@@ -44985,7 +45068,7 @@ var init_swift_packages = __esm({
44985
45068
  BINARY = "is a binary framework";
44986
45069
  blockers = (reasons) => [...new Set(reasons.flat())];
44987
45070
  verified = /* @__PURE__ */ new Set();
44988
- execFileAsync2 = (0, import_node_util12.promisify)(import_node_child_process37.execFile);
45071
+ execFileAsync2 = (0, import_node_util12.promisify)(import_node_child_process38.execFile);
44989
45072
  checkoutKey = (dir, pin2) => `${dir}\0${pin2.revision}`;
44990
45073
  }
44991
45074
  });
@@ -45109,10 +45192,10 @@ function privateSentrySlice(entry, moduleRoot) {
45109
45192
  throw new Error(
45110
45193
  "the Sentry slice for a private Swift distribution builds from a Contrast source checkout"
45111
45194
  );
45112
- const staging = import_node_fs72.default.mkdtempSync(import_node_path72.default.join(import_node_fs72.default.realpathSync(import_node_os15.default.tmpdir()), "sentry-slice-"));
45195
+ const staging = import_node_fs72.default.mkdtempSync(import_node_path72.default.join(import_node_fs72.default.realpathSync(import_node_os16.default.tmpdir()), "sentry-slice-"));
45113
45196
  try {
45114
45197
  process.stderr.write("peach: building the Sentry slice for a private distribution\u2026\n");
45115
- (0, import_node_child_process38.execFileSync)("bun", [script, "--output", staging, "--module-root", moduleRoot], {
45198
+ (0, import_node_child_process39.execFileSync)("bun", [script, "--output", staging, "--module-root", moduleRoot], {
45116
45199
  cwd: import_node_path72.default.resolve(sourceSwiftCheckout(), "../.."),
45117
45200
  stdio: ["ignore", 2, 2]
45118
45201
  });
@@ -45187,14 +45270,14 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
45187
45270
  }
45188
45271
  };
45189
45272
  }
45190
- var import_node_child_process38, import_node_crypto36, import_node_fs72, import_node_os15, import_node_path72, SENTRY_SWIFT_SLICE;
45273
+ var import_node_child_process39, import_node_crypto36, import_node_fs72, import_node_os16, import_node_path72, SENTRY_SWIFT_SLICE;
45191
45274
  var init_native_swift_slices = __esm({
45192
45275
  "src/native-swift-slices.ts"() {
45193
45276
  "use strict";
45194
- import_node_child_process38 = require("node:child_process");
45277
+ import_node_child_process39 = require("node:child_process");
45195
45278
  import_node_crypto36 = require("node:crypto");
45196
45279
  import_node_fs72 = __toESM(require("node:fs"), 1);
45197
- import_node_os15 = __toESM(require("node:os"), 1);
45280
+ import_node_os16 = __toESM(require("node:os"), 1);
45198
45281
  import_node_path72 = __toESM(require("node:path"), 1);
45199
45282
  init_native_prebuilt();
45200
45283
  init_swift_compile();
@@ -45434,7 +45517,7 @@ async function emitCxxStandin(input) {
45434
45517
  "-I",
45435
45518
  input.headers
45436
45519
  ];
45437
- const includes = (0, import_node_child_process39.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
45520
+ const includes = (0, import_node_child_process40.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
45438
45521
  encoding: "utf8",
45439
45522
  env: swiftEnvironment(),
45440
45523
  maxBuffer: 16 * 1024 * 1024
@@ -45454,7 +45537,7 @@ async function emitCxxStandin(input) {
45454
45537
  const output2 = import_node_fs75.default.openSync(ast, "w");
45455
45538
  let parsed;
45456
45539
  try {
45457
- parsed = (0, import_node_child_process39.spawnSync)(
45540
+ parsed = (0, import_node_child_process40.spawnSync)(
45458
45541
  input.clang,
45459
45542
  [...flags, "-fsyntax-only", "-Xclang", "-ast-dump=json", probe],
45460
45543
  { stdio: ["ignore", output2, "pipe"], encoding: "utf8", env: swiftEnvironment() }
@@ -45512,7 +45595,7 @@ async function emitCxxStandin(input) {
45512
45595
  sourceFile,
45513
45596
  [...prelude, ...live.map((item) => item.text)].join("\n") + "\n"
45514
45597
  );
45515
- const checked = (0, import_node_child_process39.spawnSync)(
45598
+ const checked = (0, import_node_child_process40.spawnSync)(
45516
45599
  input.clang,
45517
45600
  [
45518
45601
  ...flags,
@@ -45546,11 +45629,11 @@ async function emitCxxStandin(input) {
45546
45629
  excluded
45547
45630
  };
45548
45631
  }
45549
- var import_node_child_process39, import_node_fs75, import_node_path74, QUALIFIERS, UNNAMEABLE;
45632
+ var import_node_child_process40, import_node_fs75, import_node_path74, QUALIFIERS, UNNAMEABLE;
45550
45633
  var init_swift_cxx_standin = __esm({
45551
45634
  "src/swift-cxx-standin.ts"() {
45552
45635
  "use strict";
45553
- import_node_child_process39 = require("node:child_process");
45636
+ import_node_child_process40 = require("node:child_process");
45554
45637
  import_node_fs75 = __toESM(require("node:fs"), 1);
45555
45638
  import_node_path74 = __toESM(require("node:path"), 1);
45556
45639
  init_swift_cxx_declarations();
@@ -45802,7 +45885,7 @@ var init_swift_standin_builtin_behavior = __esm({
45802
45885
 
45803
45886
  // src/swift-standins.ts
45804
45887
  function exec(file, args, cwd) {
45805
- return (0, import_node_child_process40.execFileSync)(file, args, {
45888
+ return (0, import_node_child_process41.execFileSync)(file, args, {
45806
45889
  cwd,
45807
45890
  encoding: "utf8",
45808
45891
  env: swiftEnvironment(),
@@ -46488,7 +46571,7 @@ function placeholderStandin(surface, binary2, toolchain, work, behavior, sibling
46488
46571
  const out = import_node_path75.default.join(work, "graphs");
46489
46572
  import_node_fs76.default.mkdirSync(import_node_path75.default.join(work, "interface"), { recursive: true });
46490
46573
  import_node_fs76.default.mkdirSync(out, { recursive: true });
46491
- const extracted = (0, import_node_child_process40.spawnSync)(
46574
+ const extracted = (0, import_node_child_process41.spawnSync)(
46492
46575
  import_node_path75.default.join(toolchain.toolchainBin, "swiftc"),
46493
46576
  [
46494
46577
  "-emit-module",
@@ -46889,7 +46972,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
46889
46972
  );
46890
46973
  }
46891
46974
  import_node_fs76.default.writeFileSync(file, source + trailer);
46892
- const check2 = (0, import_node_child_process40.spawnSync)(
46975
+ const check2 = (0, import_node_child_process41.spawnSync)(
46893
46976
  import_node_path75.default.join(toolchain.toolchainBin, "swiftc"),
46894
46977
  // emitting the module runs the diagnostics a typecheck skips, such as
46895
46978
  // literal overflow, which the app's build of the stand-in reaches
@@ -47257,7 +47340,7 @@ async function cxxStandin(surface, binary2, toolchain, work) {
47257
47340
  roots.map((root) => `#include ${JSON.stringify(root)}
47258
47341
  `).join("")
47259
47342
  );
47260
- const language = (0, import_node_child_process40.spawnSync)(
47343
+ const language = (0, import_node_child_process41.spawnSync)(
47261
47344
  import_node_path75.default.join(toolchain.toolchainBin, "clang"),
47262
47345
  [
47263
47346
  "-target",
@@ -47478,7 +47561,7 @@ function buildRustCrate(manifest, library, searchRoot, moduleRoot, entry = rustC
47478
47561
  import_node_path75.default.relative(common2, crateWorkspace(manifest)),
47479
47562
  "Cargo.lock"
47480
47563
  );
47481
- const result = (0, import_node_child_process40.spawnSync)(
47564
+ const result = (0, import_node_child_process41.spawnSync)(
47482
47565
  process.execPath,
47483
47566
  [
47484
47567
  runner,
@@ -47626,7 +47709,7 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
47626
47709
  })
47627
47710
  );
47628
47711
  const build = await new Promise((resolve4) => {
47629
- const child = (0, import_node_child_process40.spawn)(
47712
+ const child = (0, import_node_child_process41.spawn)(
47630
47713
  "bun",
47631
47714
  [
47632
47715
  import_node_path75.default.join(repo, "scripts/build/swift-standins-submit.ts"),
@@ -48155,11 +48238,11 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
48155
48238
  import_node_fs76.default.rmSync(modules, { recursive: true, force: true });
48156
48239
  }
48157
48240
  }
48158
- var import_node_child_process40, import_node_crypto37, import_node_fs76, import_node_path75, TRIPLE, cacheDir4, key, digests, isBinaryLibraryFile, REACH_STAGED_FRAMEWORKS, OBJC_IMPORT, files, OBJC, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
48241
+ var import_node_child_process41, import_node_crypto37, import_node_fs76, import_node_path75, TRIPLE, cacheDir4, key, digests, isBinaryLibraryFile, REACH_STAGED_FRAMEWORKS, OBJC_IMPORT, files, OBJC, OBJC_ATTRIBUTE, TYPE_DECLARATION, OPTIONAL_REQUIREMENT, WASM_EH_FLAGS, OBJC_UNREPRESENTABLE, INERT_VALUE, identChar, RUST_TARGET, UNSEARCHED, RUST_TOOLCHAIN, built;
48159
48242
  var init_swift_standins = __esm({
48160
48243
  "src/swift-standins.ts"() {
48161
48244
  "use strict";
48162
- import_node_child_process40 = require("node:child_process");
48245
+ import_node_child_process41 = require("node:child_process");
48163
48246
  import_node_crypto37 = require("node:crypto");
48164
48247
  import_node_fs76 = __toESM(require("node:fs"), 1);
48165
48248
  import_node_path75 = __toESM(require("node:path"), 1);
@@ -48884,7 +48967,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
48884
48967
  provided: [...providers.keys()]
48885
48968
  };
48886
48969
  try {
48887
- const lock = (0, import_node_child_process41.spawnSync)(
48970
+ const lock = (0, import_node_child_process42.spawnSync)(
48888
48971
  "perl",
48889
48972
  ["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
48890
48973
  { stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
@@ -49055,7 +49138,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
49055
49138
  import_node_path76.default.join(work, `${target.moduleName}.o`)
49056
49139
  ]
49057
49140
  ];
49058
- const result = (0, import_node_child_process41.spawnSync)(frontend, args, {
49141
+ const result = (0, import_node_child_process42.spawnSync)(frontend, args, {
49059
49142
  cwd: work,
49060
49143
  encoding: "utf8",
49061
49144
  env: swiftEnvironment(),
@@ -49175,7 +49258,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
49175
49258
  const work = import_node_path76.default.join(parent, key2);
49176
49259
  const descriptor = import_node_fs77.default.openSync(`${work}.lock`, "a");
49177
49260
  try {
49178
- const locked = (0, import_node_child_process41.spawnSync)(
49261
+ const locked = (0, import_node_child_process42.spawnSync)(
49179
49262
  "perl",
49180
49263
  ["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
49181
49264
  { stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
@@ -49423,7 +49506,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
49423
49506
  ...dependencies ? ["-MD", "-MF", dependencies, "-H"] : []
49424
49507
  ];
49425
49508
  const result = await new Promise((resolve4) => {
49426
- const child = (0, import_node_child_process41.spawn)(
49509
+ const child = (0, import_node_child_process42.spawn)(
49427
49510
  import_node_path76.default.join(toolchain.toolchainBin, cxx ? "clang++" : "clang"),
49428
49511
  args,
49429
49512
  {
@@ -49504,11 +49587,11 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
49504
49587
  import_node_fs77.default.closeSync(descriptor);
49505
49588
  }
49506
49589
  }
49507
- var import_node_child_process41, import_node_crypto38, import_node_fs77, import_node_path76, SwiftObjCCompilationError, isDirectory2, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
49590
+ var import_node_child_process42, import_node_crypto38, import_node_fs77, import_node_path76, SwiftObjCCompilationError, isDirectory2, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
49508
49591
  var init_swift_objc_compile = __esm({
49509
49592
  "src/swift-objc-compile.ts"() {
49510
49593
  "use strict";
49511
- import_node_child_process41 = require("node:child_process");
49594
+ import_node_child_process42 = require("node:child_process");
49512
49595
  import_node_crypto38 = require("node:crypto");
49513
49596
  import_node_fs77 = __toESM(require("node:fs"), 1);
49514
49597
  import_node_path76 = __toESM(require("node:path"), 1);
@@ -49649,7 +49732,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
49649
49732
  failed = captured.failed;
49650
49733
  reached = captured.reached;
49651
49734
  } else {
49652
- const result2 = (0, import_node_child_process42.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
49735
+ const result2 = (0, import_node_child_process43.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
49653
49736
  cwd: work,
49654
49737
  encoding: "utf8",
49655
49738
  env: swiftEnvironment(),
@@ -49772,11 +49855,11 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
49772
49855
  );
49773
49856
  return result;
49774
49857
  }
49775
- var import_node_child_process42, import_node_crypto39, import_node_fs78, import_node_path77, cachedInputs;
49858
+ var import_node_child_process43, import_node_crypto39, import_node_fs78, import_node_path77, cachedInputs;
49776
49859
  var init_swift_cxx_reachable = __esm({
49777
49860
  "src/swift-cxx-reachable.ts"() {
49778
49861
  "use strict";
49779
- import_node_child_process42 = require("node:child_process");
49862
+ import_node_child_process43 = require("node:child_process");
49780
49863
  import_node_crypto39 = require("node:crypto");
49781
49864
  import_node_fs78 = __toESM(require("node:fs"), 1);
49782
49865
  import_node_path77 = __toESM(require("node:path"), 1);
@@ -49865,19 +49948,19 @@ function rasterizePdfFile(diskPath, pdfSha256) {
49865
49948
  } catch {
49866
49949
  }
49867
49950
  const out = import_node_path79.default.join(
49868
- import_node_fs80.default.mkdtempSync(import_node_path79.default.join(import_node_os16.default.tmpdir(), "swift-pdf-png-")),
49951
+ import_node_fs80.default.mkdtempSync(import_node_path79.default.join(import_node_os17.default.tmpdir(), "swift-pdf-png-")),
49869
49952
  "out.png"
49870
49953
  );
49871
49954
  try {
49872
49955
  if (process.platform === "darwin") {
49873
- (0, import_node_child_process43.execFileSync)(
49956
+ (0, import_node_child_process44.execFileSync)(
49874
49957
  compiledSwiftHelper(RASTER_SWIFT, "swift-pdf-raster"),
49875
49958
  [diskPath, "3", out],
49876
49959
  { stdio: "pipe" }
49877
49960
  );
49878
49961
  } else {
49879
49962
  const { executable, prefixArgs } = rnxSelfInvocation();
49880
- (0, import_node_child_process43.execFileSync)(
49963
+ (0, import_node_child_process44.execFileSync)(
49881
49964
  executable,
49882
49965
  [
49883
49966
  ...prefixArgs,
@@ -49912,11 +49995,11 @@ function rasterizeSvgFile(diskPath, svgSha256) {
49912
49995
  const cached2 = import_node_path79.default.join(cacheDir(), `swift-svg-png-${tag}-${svgSha256}.png`);
49913
49996
  if (import_node_fs80.default.existsSync(cached2)) return { bytes: import_node_fs80.default.readFileSync(cached2) };
49914
49997
  const out = import_node_path79.default.join(
49915
- import_node_fs80.default.mkdtempSync(import_node_path79.default.join(import_node_os16.default.tmpdir(), "swift-svg-png-")),
49998
+ import_node_fs80.default.mkdtempSync(import_node_path79.default.join(import_node_os17.default.tmpdir(), "swift-svg-png-")),
49916
49999
  "out.png"
49917
50000
  );
49918
50001
  try {
49919
- (0, import_node_child_process43.execFileSync)(binary2, [diskPath, "3", out], { stdio: "pipe" });
50002
+ (0, import_node_child_process44.execFileSync)(binary2, [diskPath, "3", out], { stdio: "pipe" });
49920
50003
  const bytes = import_node_fs80.default.readFileSync(out);
49921
50004
  import_node_fs80.default.mkdirSync(cacheDir(), { recursive: true });
49922
50005
  import_node_fs80.default.copyFileSync(out, cached2);
@@ -49929,14 +50012,14 @@ function rasterizeSvgFile(diskPath, svgSha256) {
49929
50012
  import_node_fs80.default.rmSync(import_node_path79.default.dirname(out), { recursive: true, force: true });
49930
50013
  }
49931
50014
  }
49932
- var import_node_child_process43, import_node_crypto40, import_node_fs80, import_node_os16, import_node_path79, RASTER_SWIFT, RASTER_SVG_SWIFT;
50015
+ var import_node_child_process44, import_node_crypto40, import_node_fs80, import_node_os17, import_node_path79, RASTER_SWIFT, RASTER_SVG_SWIFT;
49933
50016
  var init_swift_pdf_raster = __esm({
49934
50017
  "src/swift-pdf-raster.ts"() {
49935
50018
  "use strict";
49936
- import_node_child_process43 = require("node:child_process");
50019
+ import_node_child_process44 = require("node:child_process");
49937
50020
  import_node_crypto40 = require("node:crypto");
49938
50021
  import_node_fs80 = __toESM(require("node:fs"), 1);
49939
- import_node_os16 = __toESM(require("node:os"), 1);
50022
+ import_node_os17 = __toESM(require("node:os"), 1);
49940
50023
  import_node_path79 = __toESM(require("node:path"), 1);
49941
50024
  init_internal_child_contract();
49942
50025
  init_self_invocation();
@@ -50153,7 +50236,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
50153
50236
  const known = emptyWasmAssembly.get(key2);
50154
50237
  if (known) return known;
50155
50238
  const result = new Promise(
50156
- (resolve4) => (0, import_node_child_process44.execFile)(
50239
+ (resolve4) => (0, import_node_child_process45.execFile)(
50157
50240
  clang,
50158
50241
  [
50159
50242
  "-target",
@@ -51397,7 +51480,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
51397
51480
  }
51398
51481
  }
51399
51482
  if (xcode?.app.postBundleScripts.length) {
51400
- const dir = import_node_fs81.default.mkdtempSync(import_node_path80.default.join(import_node_os17.default.tmpdir(), "peach-xcode-bundle-"));
51483
+ const dir = import_node_fs81.default.mkdtempSync(import_node_path80.default.join(import_node_os18.default.tmpdir(), "peach-xcode-bundle-"));
51401
51484
  const wrapper = import_node_path80.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
51402
51485
  const bundle = import_node_path80.default.join(dir, wrapper);
51403
51486
  try {
@@ -51448,7 +51531,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
51448
51531
  });
51449
51532
  try {
51450
51533
  const [shell, ...args] = phase.command;
51451
- (0, import_node_child_process44.execFileSync)(shell, args, {
51534
+ (0, import_node_child_process45.execFileSync)(shell, args, {
51452
51535
  cwd: phase.directory,
51453
51536
  env,
51454
51537
  stdio: ["ignore", "pipe", "pipe"],
@@ -52135,15 +52218,15 @@ function scopedArtifact(project2, entry, moduleRoot, signal) {
52135
52218
  project2.building = { stamp, promise: fresh, signal };
52136
52219
  return fresh;
52137
52220
  }
52138
- var import_node_async_hooks2, import_node_child_process44, import_node_crypto41, import_node_fs81, import_node_os17, import_node_path80, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
52221
+ var import_node_async_hooks2, import_node_child_process45, import_node_crypto41, import_node_fs81, import_node_os18, import_node_path80, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
52139
52222
  var init_swift_host = __esm({
52140
52223
  "src/swift-host.ts"() {
52141
52224
  "use strict";
52142
52225
  import_node_async_hooks2 = require("node:async_hooks");
52143
- import_node_child_process44 = require("node:child_process");
52226
+ import_node_child_process45 = require("node:child_process");
52144
52227
  import_node_crypto41 = require("node:crypto");
52145
52228
  import_node_fs81 = __toESM(require("node:fs"), 1);
52146
- import_node_os17 = __toESM(require("node:os"), 1);
52229
+ import_node_os18 = __toESM(require("node:os"), 1);
52147
52230
  import_node_path80 = __toESM(require("node:path"), 1);
52148
52231
  init_bundleAssets();
52149
52232
  init_stringCatalog();
@@ -54582,11 +54665,11 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
54582
54665
  files: hashTree(generatedRoot)
54583
54666
  };
54584
54667
  }
54585
- var import_node_child_process45, import_node_crypto43, import_node_fs85, import_node_module9, import_node_path84, import_node_util13, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
54668
+ var import_node_child_process46, import_node_crypto43, import_node_fs85, import_node_module9, import_node_path84, import_node_util13, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
54586
54669
  var init_turbo_codegen_intake = __esm({
54587
54670
  "src/turbo-codegen-intake.ts"() {
54588
54671
  "use strict";
54589
- import_node_child_process45 = require("node:child_process");
54672
+ import_node_child_process46 = require("node:child_process");
54590
54673
  import_node_crypto43 = require("node:crypto");
54591
54674
  import_node_fs85 = __toESM(require("node:fs"), 1);
54592
54675
  import_node_module9 = require("node:module");
@@ -54596,7 +54679,7 @@ var init_turbo_codegen_intake = __esm({
54596
54679
  init_is_record();
54597
54680
  init_nitro_source();
54598
54681
  init_podspec_sources();
54599
- run6 = (0, import_node_util13.promisify)(import_node_child_process45.execFile);
54682
+ run6 = (0, import_node_util13.promisify)(import_node_child_process46.execFile);
54600
54683
  RENDERER_PODS = /* @__PURE__ */ new Set([
54601
54684
  "React-Fabric",
54602
54685
  "React-FabricComponents",
@@ -57032,11 +57115,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
57032
57115
  }
57033
57116
  `;
57034
57117
  }
57035
- var import_node_child_process46, import_node_crypto44, import_node_fs86, import_node_path85, import_node_util14, execFileAsync3, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES;
57118
+ var import_node_child_process47, import_node_crypto44, import_node_fs86, import_node_path85, import_node_util14, execFileAsync3, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, TURBO_CORE_PUBLIC_HEADERS, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, DECLARED_MODULE_NAME, EXPORTED_MODULE, sha2564, versionParts, iosOf, JS_CALL_INVOKER, FABRIC_HOST_INCLUDES;
57036
57119
  var init_turbo_source = __esm({
57037
57120
  "src/turbo-source.ts"() {
57038
57121
  "use strict";
57039
- import_node_child_process46 = require("node:child_process");
57122
+ import_node_child_process47 = require("node:child_process");
57040
57123
  import_node_crypto44 = require("node:crypto");
57041
57124
  import_node_fs86 = __toESM(require("node:fs"), 1);
57042
57125
  import_node_path85 = __toESM(require("node:path"), 1);
@@ -57053,7 +57136,7 @@ var init_turbo_source = __esm({
57053
57136
  init_swift_submit();
57054
57137
  init_turbo_codegen_intake();
57055
57138
  init_xcode_project();
57056
- execFileAsync3 = (0, import_node_util14.promisify)(import_node_child_process46.execFile);
57139
+ execFileAsync3 = (0, import_node_util14.promisify)(import_node_child_process47.execFile);
57057
57140
  TURBO_CORE_TARGET = "TurboCore";
57058
57141
  TURBO_FMT_TARGET = "TurboFmt";
57059
57142
  TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
@@ -57290,7 +57373,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57290
57373
  import_node_fs87.default.mkdirSync(members2, { recursive: true });
57291
57374
  const stripped2 = objects.map((file, index) => {
57292
57375
  const output2 = import_node_path86.default.join(members2, `${index}-${import_node_path86.default.basename(file)}`);
57293
- (0, import_node_child_process47.execFileSync)(import_node_path86.default.join(module2.toolchainBin, "llvm-objcopy"), [
57376
+ (0, import_node_child_process48.execFileSync)(import_node_path86.default.join(module2.toolchainBin, "llvm-objcopy"), [
57294
57377
  "--strip-debug",
57295
57378
  file,
57296
57379
  output2
@@ -57299,7 +57382,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57299
57382
  });
57300
57383
  const archive = import_node_path86.default.join(work, `lib${target.name}.a`);
57301
57384
  import_node_fs87.default.rmSync(archive, { force: true });
57302
- (0, import_node_child_process47.execFileSync)(import_node_path86.default.join(module2.toolchainBin, "llvm-ar"), [
57385
+ (0, import_node_child_process48.execFileSync)(import_node_path86.default.join(module2.toolchainBin, "llvm-ar"), [
57303
57386
  "rcsD",
57304
57387
  archive,
57305
57388
  ...stripped2
@@ -57352,11 +57435,11 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57352
57435
  return directory2;
57353
57436
  });
57354
57437
  }
57355
- var import_node_child_process47, import_node_fs87, import_node_path86;
57438
+ var import_node_child_process48, import_node_fs87, import_node_path86;
57356
57439
  var init_react_native_core_build = __esm({
57357
57440
  "src/react-native-core-build.ts"() {
57358
57441
  "use strict";
57359
- import_node_child_process47 = require("node:child_process");
57442
+ import_node_child_process48 = require("node:child_process");
57360
57443
  import_node_fs87 = __toESM(require("node:fs"), 1);
57361
57444
  import_node_path86 = __toESM(require("node:path"), 1);
57362
57445
  init_home_paths();
@@ -57730,7 +57813,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
57730
57813
  async function prepareTurboCompileInput(options) {
57731
57814
  await prepareTurboSourceDependencies(options.reactNativeRoot);
57732
57815
  const key2 = (0, import_node_crypto46.createHash)("sha256").update(options.providers.map(({ root }) => import_node_fs89.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs89.default.realpathSync(options.moduleRoot)).digest("hex");
57733
- const scratch2 = import_node_path88.default.join(import_node_os18.default.tmpdir(), "peach-turbo-swift", key2);
57816
+ const scratch2 = import_node_path88.default.join(import_node_os19.default.tmpdir(), "peach-turbo-swift", key2);
57734
57817
  import_node_fs89.default.mkdirSync(scratch2, { recursive: true });
57735
57818
  const codegenDir = import_node_fs89.default.mkdtempSync(import_node_path88.default.join(scratch2, "codegen-"));
57736
57819
  const collection = await collectTurboSources({
@@ -57944,14 +58027,14 @@ async function compileTurboModule(options) {
57944
58027
  collection
57945
58028
  };
57946
58029
  }
57947
- var import_node_crypto46, import_node_fs89, import_node_module11, import_node_os18, import_node_path88;
58030
+ var import_node_crypto46, import_node_fs89, import_node_module11, import_node_os19, import_node_path88;
57948
58031
  var init_turbo_compile = __esm({
57949
58032
  "src/turbo-compile.ts"() {
57950
58033
  "use strict";
57951
58034
  import_node_crypto46 = require("node:crypto");
57952
58035
  import_node_fs89 = __toESM(require("node:fs"), 1);
57953
58036
  import_node_module11 = require("node:module");
57954
- import_node_os18 = __toESM(require("node:os"), 1);
58037
+ import_node_os19 = __toESM(require("node:os"), 1);
57955
58038
  import_node_path88 = __toESM(require("node:path"), 1);
57956
58039
  init_native_app_identity_project();
57957
58040
  init_nitro_adapter();
@@ -58313,7 +58396,7 @@ async function prepareNitroCompileInput(options) {
58313
58396
  projectRoot: options.projectRoot,
58314
58397
  providers: reactProviders,
58315
58398
  reactNativeRoot: collection.reactNative.root,
58316
- codegenDir: import_node_fs90.default.mkdtempSync(import_node_path89.default.join(import_node_os19.default.tmpdir(), "peach-nitro-react-")),
58399
+ codegenDir: import_node_fs90.default.mkdtempSync(import_node_path89.default.join(import_node_os20.default.tmpdir(), "peach-nitro-react-")),
58317
58400
  configuration: options.configuration,
58318
58401
  installedPods: nativeLibraries
58319
58402
  });
@@ -58368,7 +58451,7 @@ async function prepareNitroCompileInput(options) {
58368
58451
  const key2 = (0, import_node_crypto47.createHash)("sha256").update(
58369
58452
  collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
58370
58453
  ).update("\0").update(import_node_fs90.default.realpathSync(options.moduleRoot)).update("\0").update(options.configuration).digest("hex");
58371
- const packagePath = import_node_path89.default.join(import_node_os19.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
58454
+ const packagePath = import_node_path89.default.join(import_node_os20.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
58372
58455
  const sharedLibrary = [...nativeLibraries.values()].find(
58373
58456
  (pod) => pod.sharedLibrary
58374
58457
  )?.sharedLibrary;
@@ -58421,13 +58504,13 @@ function nitrogenGeneratedSources(podDirectory) {
58421
58504
  ...sources(import_node_path89.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
58422
58505
  ];
58423
58506
  }
58424
- var import_node_crypto47, import_node_fs90, import_node_os19, import_node_path89, BUNDLED_CXX_NAMESPACES;
58507
+ var import_node_crypto47, import_node_fs90, import_node_os20, import_node_path89, BUNDLED_CXX_NAMESPACES;
58425
58508
  var init_nitro_compile = __esm({
58426
58509
  "src/nitro-compile.ts"() {
58427
58510
  "use strict";
58428
58511
  import_node_crypto47 = require("node:crypto");
58429
58512
  import_node_fs90 = __toESM(require("node:fs"), 1);
58430
- import_node_os19 = __toESM(require("node:os"), 1);
58513
+ import_node_os20 = __toESM(require("node:os"), 1);
58431
58514
  import_node_path89 = __toESM(require("node:path"), 1);
58432
58515
  init_installed_native_libraries();
58433
58516
  init_native_app_identity_project();
@@ -58629,7 +58712,7 @@ var init_nitro_superset = __esm({
58629
58712
  init_nitroContract();
58630
58713
  init_swift_standin_digest();
58631
58714
  NITRO_SUPERSET_ENTRY_NAME = "superset";
58632
- NITRO_COMPILER_DIGEST = true ? "3f4226b3727dae50227ba7f4fd8d517c59939e4f4d2f56ef11e1dafd09705f5c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
58715
+ NITRO_COMPILER_DIGEST = true ? "f44c818b566c9e2f13cc675454c9e5c38d346e0fb6fc47d33d179495a14f8580" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
58633
58716
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
58634
58717
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
58635
58718
  published = /* @__PURE__ */ new Map();
@@ -59888,7 +59971,7 @@ var init_expo_native_compiler_digest = __esm({
59888
59971
 
59889
59972
  // src/expo-native-prebuilt.ts
59890
59973
  function expoNativeCompilerDigestValue() {
59891
- return true ? "064dc6aa590b7937e7499edee9ff07b0ef387a59a35ed48a2d820ab27209917a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
59974
+ return true ? "2a7438510b7fddb608c748003fbaa32b5c765b3782603cb2e309e2729ddbb4aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
59892
59975
  }
59893
59976
  function readSources(value) {
59894
59977
  const sources = isRecord(value) ? value.sources : null;
@@ -62279,7 +62362,7 @@ function expoUnitAppPaths(unit2) {
62279
62362
  });
62280
62363
  }
62281
62364
  function expoSwiftPackage(appKey, name3) {
62282
- return import_node_path97.default.join(import_node_os20.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
62365
+ return import_node_path97.default.join(import_node_os21.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
62283
62366
  }
62284
62367
  function failureRecordPath(packagePath) {
62285
62368
  const app = import_node_path97.default.dirname(import_node_path97.default.dirname(packagePath));
@@ -62936,16 +63019,16 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
62936
63019
  throw failure2;
62937
63020
  }
62938
63021
  }
62939
- var import_node_async_hooks3, import_node_child_process48, import_node_crypto52, import_node_fs99, import_node_module15, import_node_os20, import_node_path97, import_node_url6, import_node_util17, run7, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
63022
+ var import_node_async_hooks3, import_node_child_process49, import_node_crypto52, import_node_fs99, import_node_module15, import_node_os21, import_node_path97, import_node_url6, import_node_util17, run7, scriptEnv, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
62940
63023
  var init_expo_swift_host = __esm({
62941
63024
  "src/expo-swift-host.ts"() {
62942
63025
  "use strict";
62943
63026
  import_node_async_hooks3 = require("node:async_hooks");
62944
- import_node_child_process48 = require("node:child_process");
63027
+ import_node_child_process49 = require("node:child_process");
62945
63028
  import_node_crypto52 = require("node:crypto");
62946
63029
  import_node_fs99 = __toESM(require("node:fs"), 1);
62947
63030
  import_node_module15 = require("node:module");
62948
- import_node_os20 = __toESM(require("node:os"), 1);
63031
+ import_node_os21 = __toESM(require("node:os"), 1);
62949
63032
  import_node_path97 = __toESM(require("node:path"), 1);
62950
63033
  import_node_url6 = require("node:url");
62951
63034
  import_node_util17 = require("node:util");
@@ -62979,7 +63062,7 @@ var init_expo_swift_host = __esm({
62979
63062
  init_swift_submit();
62980
63063
  init_swift_toolchain();
62981
63064
  init_turbo_source();
62982
- run7 = (0, import_node_util17.promisify)(import_node_child_process48.execFile);
63065
+ run7 = (0, import_node_util17.promisify)(import_node_child_process49.execFile);
62983
63066
  scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
62984
63067
  EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
62985
63068
  WITNESS_BATCH = 200;
@@ -63235,11 +63318,11 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
63235
63318
  }
63236
63319
  return linked;
63237
63320
  }
63238
- var import_node_child_process49, import_node_fs100, import_node_module17, import_node_path99, import_node_util18, run8, resolving;
63321
+ var import_node_child_process50, import_node_fs100, import_node_module17, import_node_path99, import_node_util18, run8, resolving;
63239
63322
  var init_android_autolinking = __esm({
63240
63323
  "src/android-autolinking.ts"() {
63241
63324
  "use strict";
63242
- import_node_child_process49 = require("node:child_process");
63325
+ import_node_child_process50 = require("node:child_process");
63243
63326
  import_node_fs100 = __toESM(require("node:fs"), 1);
63244
63327
  import_node_module17 = require("node:module");
63245
63328
  import_node_path99 = __toESM(require("node:path"), 1);
@@ -63248,7 +63331,7 @@ var init_android_autolinking = __esm({
63248
63331
  init_forked_script_contract();
63249
63332
  init_is_record();
63250
63333
  init_react_native_autolinking();
63251
- run8 = (0, import_node_util18.promisify)(import_node_child_process49.execFile);
63334
+ run8 = (0, import_node_util18.promisify)(import_node_child_process50.execFile);
63252
63335
  resolving = /* @__PURE__ */ new Map();
63253
63336
  }
63254
63337
  });
@@ -63343,11 +63426,11 @@ async function resolveAndroidGradleSources(request) {
63343
63426
  import_node_fs101.default.rmSync(work, { recursive: true, force: true });
63344
63427
  }
63345
63428
  }
63346
- var import_node_child_process50, import_node_crypto53, import_node_fs101, import_node_path100, import_node_util19, run9, modelQuery;
63429
+ var import_node_child_process51, import_node_crypto53, import_node_fs101, import_node_path100, import_node_util19, run9, modelQuery;
63347
63430
  var init_android_gradle_sources = __esm({
63348
63431
  "src/android-gradle-sources.ts"() {
63349
63432
  "use strict";
63350
- import_node_child_process50 = require("node:child_process");
63433
+ import_node_child_process51 = require("node:child_process");
63351
63434
  import_node_crypto53 = require("node:crypto");
63352
63435
  import_node_fs101 = __toESM(require("node:fs"), 1);
63353
63436
  import_node_path100 = __toESM(require("node:path"), 1);
@@ -63355,7 +63438,7 @@ var init_android_gradle_sources = __esm({
63355
63438
  init_forked_script_contract();
63356
63439
  init_is_record();
63357
63440
  init_kotlin_toolchain();
63358
- run9 = (0, import_node_util19.promisify)(import_node_child_process50.execFile);
63441
+ run9 = (0, import_node_util19.promisify)(import_node_child_process51.execFile);
63359
63442
  modelQuery = `
63360
63443
  import groovy.json.JsonOutput
63361
63444
  import groovy.json.JsonSlurper
@@ -63728,11 +63811,11 @@ async function compileJavaModuleAbi(input) {
63728
63811
  );
63729
63812
  return library;
63730
63813
  }
63731
- var import_node_child_process51, import_node_crypto54, import_node_fs103, import_node_path102, import_node_util20, run10, JAVA_BINDINGS_INITIALIZER;
63814
+ var import_node_child_process52, import_node_crypto54, import_node_fs103, import_node_path102, import_node_util20, run10, JAVA_BINDINGS_INITIALIZER;
63732
63815
  var init_java_module_abi = __esm({
63733
63816
  "src/java-module-abi.ts"() {
63734
63817
  "use strict";
63735
- import_node_child_process51 = require("node:child_process");
63818
+ import_node_child_process52 = require("node:child_process");
63736
63819
  import_node_crypto54 = require("node:crypto");
63737
63820
  import_node_fs103 = __toESM(require("node:fs"), 1);
63738
63821
  import_node_path102 = __toESM(require("node:path"), 1);
@@ -63740,7 +63823,7 @@ var init_java_module_abi = __esm({
63740
63823
  init_android_bridge_packages();
63741
63824
  init_is_record();
63742
63825
  init_kotlin_toolchain();
63743
- run10 = (0, import_node_util20.promisify)(import_node_child_process51.execFile);
63826
+ run10 = (0, import_node_util20.promisify)(import_node_child_process52.execFile);
63744
63827
  JAVA_BINDINGS_INITIALIZER = "initializeJavaBindings";
63745
63828
  }
63746
63829
  });
@@ -63874,18 +63957,18 @@ async function installKotlinSdkArchive(archive, compilerSha256) {
63874
63957
  import_node_fs104.default.rmSync(work, { recursive: true, force: true });
63875
63958
  }
63876
63959
  }
63877
- var import_node_child_process52, import_node_crypto55, import_node_fs104, import_node_path103, import_node_util21, run11;
63960
+ var import_node_child_process53, import_node_crypto55, import_node_fs104, import_node_path103, import_node_util21, run11;
63878
63961
  var init_kotlin_sdk = __esm({
63879
63962
  "src/kotlin-sdk.ts"() {
63880
63963
  "use strict";
63881
- import_node_child_process52 = require("node:child_process");
63964
+ import_node_child_process53 = require("node:child_process");
63882
63965
  import_node_crypto55 = require("node:crypto");
63883
63966
  import_node_fs104 = __toESM(require("node:fs"), 1);
63884
63967
  import_node_path103 = __toESM(require("node:path"), 1);
63885
63968
  import_node_util21 = require("node:util");
63886
63969
  init_kotlin_toolchain();
63887
63970
  init_kotlinSdkContract();
63888
- run11 = (0, import_node_util21.promisify)(import_node_child_process52.execFile);
63971
+ run11 = (0, import_node_util21.promisify)(import_node_child_process53.execFile);
63889
63972
  }
63890
63973
  });
63891
63974
 
@@ -65490,11 +65573,11 @@ async function serveKotlinRequest(pathname, res, app) {
65490
65573
  }
65491
65574
  return true;
65492
65575
  }
65493
- var import_node_child_process53, import_node_crypto57, import_node_fs107, import_node_module18, import_node_path106, import_node_util22, import_acorn3, run12, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
65576
+ var import_node_child_process54, import_node_crypto57, import_node_fs107, import_node_module18, import_node_path106, import_node_util22, import_acorn3, run12, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal2, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
65494
65577
  var init_kotlin_host = __esm({
65495
65578
  "src/kotlin-host.ts"() {
65496
65579
  "use strict";
65497
- import_node_child_process53 = require("node:child_process");
65580
+ import_node_child_process54 = require("node:child_process");
65498
65581
  import_node_crypto57 = require("node:crypto");
65499
65582
  import_node_fs107 = __toESM(require("node:fs"), 1);
65500
65583
  import_node_module18 = require("node:module");
@@ -65510,7 +65593,7 @@ var init_kotlin_host = __esm({
65510
65593
  init_kotlin_toolchain();
65511
65594
  init_kotlin_view_models();
65512
65595
  init_kotlin_module();
65513
- run12 = (0, import_node_util22.promisify)(import_node_child_process53.execFile);
65596
+ run12 = (0, import_node_util22.promisify)(import_node_child_process54.execFile);
65514
65597
  KOTLIN_ARTIFACT_PREFIX = "/__peach/kotlin-artifact/";
65515
65598
  SKIP_DIRS = /* @__PURE__ */ new Set([
65516
65599
  "node_modules",
@@ -66658,7 +66741,7 @@ var import_node_path5 = require("node:path");
66658
66741
  init_src();
66659
66742
 
66660
66743
  // runtime-companion.json
66661
- var runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
66744
+ var runtime_companion_default = { abi: 1, sha256: "0688d30cb1cc3cd8d500d66cefa68e1e54456e3a4cd15b621932e4800fc69b1d", file: "node/cli-0688d30cb1cc3cd8d500d66cefa68e1e54456e3a4cd15b621932e4800fc69b1d.cjs" };
66662
66745
 
66663
66746
  // src/cli-runtime.ts
66664
66747
  init_answeredNativePackages();
@@ -70044,7 +70127,7 @@ init_node_http_fetch();
70044
70127
  init_process_group();
70045
70128
 
70046
70129
  // cli/app-catalog.ts
70047
- var import_node_child_process54 = require("node:child_process");
70130
+ var import_node_child_process55 = require("node:child_process");
70048
70131
  var import_node_fs110 = __toESM(require("node:fs"), 1);
70049
70132
  var import_node_module19 = require("node:module");
70050
70133
  var import_node_path110 = __toESM(require("node:path"), 1);
@@ -70332,7 +70415,7 @@ async function readProjectOneNativeAppCatalog(projectRoot, env, runtimeExecutabl
70332
70415
  const loader = (0, import_node_url8.pathToFileURL)(
70333
70416
  import_node_path110.default.join(import_node_path110.default.dirname(onePackage), "dist/esm/vite/loadConfig.mjs")
70334
70417
  ).href;
70335
- const { stdout } = await (0, import_node_util23.promisify)(import_node_child_process54.execFile)(
70418
+ const { stdout } = await (0, import_node_util23.promisify)(import_node_child_process55.execFile)(
70336
70419
  runtimeExecutable,
70337
70420
  [
70338
70421
  "--input-type=module",
@@ -70787,7 +70870,7 @@ async function snapshotOneProductionBundle(projectRoot, entryFile, env = {}, { r
70787
70870
  return { platforms: snapshots };
70788
70871
  }
70789
70872
  async function snapshotOneDevBundle(projectRoot, env = {}, { runtimeExecutable = process.execPath, platforms: platforms2 = ["ios", "android"] } = {}) {
70790
- const { spawn: spawn9 } = await import("node:child_process");
70873
+ const { spawn: spawn10 } = await import("node:child_process");
70791
70874
  const { createServer } = await import("node:net");
70792
70875
  const { createRequire: createRequire20 } = await import("node:module");
70793
70876
  const onePackage = createRequire20((0, import_node_path113.join)(projectRoot, "package.json")).resolve(
@@ -70803,7 +70886,7 @@ async function snapshotOneDevBundle(projectRoot, env = {}, { runtimeExecutable =
70803
70886
  server.close(() => resolve4(port2));
70804
70887
  }).on("error", reject);
70805
70888
  });
70806
- const child = spawn9(runtimeExecutable, [oneBin, "dev", "--port", String(port)], {
70889
+ const child = spawn10(runtimeExecutable, [oneBin, "dev", "--port", String(port)], {
70807
70890
  cwd: projectRoot,
70808
70891
  env: { ...process.env, ...env, CI: "1", PEACH_NO_OPEN: "1" },
70809
70892
  stdio: ["ignore", "inherit", "inherit"],