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;
@@ -16763,7 +16763,7 @@ function linuxBrowserLibsKey(id, arch) {
16763
16763
  return `linux-libs/${id}/${arch}.tar.gz`;
16764
16764
  }
16765
16765
  function missingLibraries(executablePath, libraryPath) {
16766
- const ldd = (0, import_node_child_process13.spawnSync)("ldd", [executablePath], {
16766
+ const ldd = (0, import_node_child_process14.spawnSync)("ldd", [executablePath], {
16767
16767
  encoding: "utf8",
16768
16768
  timeout: 3e4,
16769
16769
  env: libraryPath ? {
@@ -16826,11 +16826,11 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
16826
16826
  }
16827
16827
  return { ok: true, libraryPath };
16828
16828
  }
16829
- var import_node_child_process13, import_node_fs29, import_node_path26, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
16829
+ var import_node_child_process14, import_node_fs29, import_node_path26, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
16830
16830
  var init_linux_browser_libs = __esm({
16831
16831
  "cli/drivers/linux-browser-libs.ts"() {
16832
16832
  "use strict";
16833
- import_node_child_process13 = require("node:child_process");
16833
+ import_node_child_process14 = require("node:child_process");
16834
16834
  import_node_fs29 = require("node:fs");
16835
16835
  import_node_path26 = require("node:path");
16836
16836
  init_src();
@@ -19049,7 +19049,7 @@ function ensureSwiftLinuxRuntime(release) {
19049
19049
  `);
19050
19050
  const download2 = `${plan.dest}.${process.pid}.tmp`;
19051
19051
  try {
19052
- (0, import_node_child_process14.execFileSync)(
19052
+ (0, import_node_child_process15.execFileSync)(
19053
19053
  "curl",
19054
19054
  [
19055
19055
  "-fsSL",
@@ -19116,7 +19116,7 @@ function swiftCompilerRelease(release) {
19116
19116
  }
19117
19117
  function swiftToolchainBin(release) {
19118
19118
  if (process.platform === "darwin") {
19119
- const dirs = [import_node_os5.default.homedir(), "/"].map(
19119
+ const dirs = [import_node_os6.default.homedir(), "/"].map(
19120
19120
  (base) => import_node_path29.default.join(base, `Library/Developer/Toolchains/${release}.xctoolchain/usr/bin`)
19121
19121
  );
19122
19122
  return dirs.find((dir) => import_node_fs33.default.existsSync(import_node_path29.default.join(dir, "swift"))) ?? dirs[0];
@@ -19162,7 +19162,7 @@ exec ${JSON.stringify(import_node_path29.default.join(toolchainBin, "wasm-ld"))}
19162
19162
  }
19163
19163
  function peachHome() {
19164
19164
  const override = process.env.PEACH_HOME;
19165
- return override ? import_node_path29.default.resolve(override) : import_node_path29.default.join(import_node_os5.default.homedir(), ".peach");
19165
+ return override ? import_node_path29.default.resolve(override) : import_node_path29.default.join(import_node_os6.default.homedir(), ".peach");
19166
19166
  }
19167
19167
  function peachSwiftSdksDir() {
19168
19168
  return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path29.default.join(peachHome(), "swift", "sdks");
@@ -19171,7 +19171,7 @@ function agentSharedCacheRoot() {
19171
19171
  if (process.platform !== "darwin" || !process.env.TM_SESSION) return null;
19172
19172
  if (agentBuildersRoot) return agentBuildersRoot;
19173
19173
  const policy = JSON.parse(
19174
- (0, import_node_child_process14.execFileSync)("tm", ["machine", "policy", "--json"], {
19174
+ (0, import_node_child_process15.execFileSync)("tm", ["machine", "policy", "--json"], {
19175
19175
  encoding: "utf8",
19176
19176
  timeout: 3e4
19177
19177
  })
@@ -19179,7 +19179,7 @@ function agentSharedCacheRoot() {
19179
19179
  const mounts = policy.storage_mounts ?? [];
19180
19180
  if (!Array.isArray(mounts)) throw new Error("storage_mounts must be a list");
19181
19181
  const isMount = (directory2) => {
19182
- const lines = (0, import_node_child_process14.execFileSync)("/bin/df", ["-P", directory2], {
19182
+ const lines = (0, import_node_child_process15.execFileSync)("/bin/df", ["-P", directory2], {
19183
19183
  encoding: "utf8",
19184
19184
  timeout: 3e4
19185
19185
  }).trim().split("\n");
@@ -19194,13 +19194,13 @@ function agentSharedCacheRoot() {
19194
19194
  throw new Error(`configured storage is not mounted: ${mount}`);
19195
19195
  }
19196
19196
  const heavy = policy.heavy_data_dir;
19197
- if (heavy == null) return agentBuildersRoot = import_node_path29.default.join(import_node_os5.default.homedir(), "builders");
19197
+ if (heavy == null) return agentBuildersRoot = import_node_path29.default.join(import_node_os6.default.homedir(), "builders");
19198
19198
  if (typeof heavy !== "string" || !import_node_path29.default.isAbsolute(heavy) || !import_node_fs33.default.statSync(heavy).isDirectory())
19199
19199
  throw new Error(`configured heavy_data_dir is unavailable: ${heavy}`);
19200
19200
  const mounted = isMount(heavy);
19201
19201
  if (import_node_path29.default.dirname(heavy) === "/Volumes" && !mounted)
19202
19202
  throw new Error(`configured storage is not mounted: ${heavy}`);
19203
- return agentBuildersRoot = mounted && import_node_fs33.default.statSync(heavy).dev === import_node_fs33.default.statSync(import_node_os5.default.homedir()).dev ? import_node_path29.default.join(import_node_os5.default.homedir(), "builders") : import_node_path29.default.join(heavy, "builders");
19203
+ return agentBuildersRoot = mounted && import_node_fs33.default.statSync(heavy).dev === import_node_fs33.default.statSync(import_node_os6.default.homedir()).dev ? import_node_path29.default.join(import_node_os6.default.homedir(), "builders") : import_node_path29.default.join(heavy, "builders");
19204
19204
  }
19205
19205
  function buildersRootEnv() {
19206
19206
  const root = process.env[BUILDERS_ROOT_ENV]?.trim();
@@ -19298,7 +19298,7 @@ ${swiftInstallSteps(release, sdk2)}`
19298
19298
  const swift = import_node_path29.default.join(bin, "swift");
19299
19299
  const listed = [swift, sdk2.wasmSdkId, ...swiftSdkOptions()].join("\0");
19300
19300
  if (!listedSdks.has(listed)) {
19301
- const sdks = (0, import_node_child_process14.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
19301
+ const sdks = (0, import_node_child_process15.execFileSync)(swift, ["sdk", "list", ...swiftSdkOptions()], {
19302
19302
  encoding: "utf8",
19303
19303
  env: swiftEnvironment(),
19304
19304
  stdio: ["ignore", "pipe", "pipe"]
@@ -19328,7 +19328,7 @@ function swiftSdkBundle(swift, id, options) {
19328
19328
  const key2 = [swift, id, ...options].join("\0");
19329
19329
  const known = sdkBundles.get(key2);
19330
19330
  if (known && import_node_fs33.default.existsSync(known)) return known;
19331
- const configuration = (0, import_node_child_process14.execFileSync)(
19331
+ const configuration = (0, import_node_child_process15.execFileSync)(
19332
19332
  swift,
19333
19333
  ["sdk", "configure", ...options, "--show-configuration", id, "wasm64-unknown-wasip1"],
19334
19334
  { encoding: "utf8", env: swiftEnvironment(), stdio: ["ignore", "pipe", "pipe"] }
@@ -19430,7 +19430,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
19430
19430
  throw new Error("declared Swift SDK archive checksum mismatch");
19431
19431
  const store = import_node_path29.default.join(staging, "sdks");
19432
19432
  import_node_fs33.default.mkdirSync(store);
19433
- (0, import_node_child_process14.execFileSync)(
19433
+ (0, import_node_child_process15.execFileSync)(
19434
19434
  swift,
19435
19435
  [
19436
19436
  "sdk",
@@ -19450,7 +19450,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
19450
19450
  const expected = swiftSdkPayloadChecksum(stagedBundle);
19451
19451
  const locks = import_node_path29.default.join(import_node_path29.default.resolve(peachSwiftSdksDir()), ".peach-locks");
19452
19452
  import_node_fs33.default.mkdirSync(locks, { recursive: true });
19453
- (0, import_node_child_process14.execFileSync)(
19453
+ (0, import_node_child_process15.execFileSync)(
19454
19454
  "perl",
19455
19455
  [
19456
19456
  "-e",
@@ -19491,7 +19491,7 @@ function installSwiftSdkArchive(swift, sdk2, archive) {
19491
19491
  }
19492
19492
  }
19493
19493
  function swiftSdkStagingDirectory(prefix) {
19494
- const parent = scratch?.directory ?? import_node_os5.default.tmpdir();
19494
+ const parent = scratch?.directory ?? import_node_os6.default.tmpdir();
19495
19495
  if (!import_node_fs33.default.existsSync(parent)) throw new Error(`Swift SDK install is missing ${parent}`);
19496
19496
  return import_node_fs33.default.mkdtempSync(import_node_path29.default.join(parent, prefix));
19497
19497
  }
@@ -19510,7 +19510,7 @@ function installSwiftWasmSdk(release, sdk2) {
19510
19510
  if (sdk2.wasmSdkUrl.startsWith("file:"))
19511
19511
  import_node_fs33.default.copyFileSync((0, import_node_url3.fileURLToPath)(sdk2.wasmSdkUrl), archive);
19512
19512
  else
19513
- (0, import_node_child_process14.execFileSync)(
19513
+ (0, import_node_child_process15.execFileSync)(
19514
19514
  "curl",
19515
19515
  [
19516
19516
  "-fsSL",
@@ -19597,7 +19597,7 @@ async function swiftCompilerAsync(release, signal) {
19597
19597
  throw new Error(`Swift compiler binary mismatch: ${relative4}`);
19598
19598
  }
19599
19599
  }
19600
- const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process14.execFile)(binary2, ["--version"], {
19600
+ const { stdout } = await (0, import_node_util6.promisify)(import_node_child_process15.execFile)(binary2, ["--version"], {
19601
19601
  encoding: "utf8",
19602
19602
  env: swiftEnvironment(),
19603
19603
  signal
@@ -19616,7 +19616,7 @@ function swiftCompiler(release) {
19616
19616
  throw new Error(`Swift compiler ${release} is missing ${binary2}`);
19617
19617
  if (release.includes("-custom-"))
19618
19618
  verifySwiftHostCompiler(release, import_node_path29.default.resolve(bin, "../.."));
19619
- const version2 = (0, import_node_child_process14.execFileSync)(binary2, ["--version"], {
19619
+ const version2 = (0, import_node_child_process15.execFileSync)(binary2, ["--version"], {
19620
19620
  encoding: "utf8",
19621
19621
  env: swiftEnvironment(),
19622
19622
  stdio: ["ignore", "pipe", "pipe"]
@@ -19687,14 +19687,14 @@ function swiftCompilerInstall(release) {
19687
19687
  ]
19688
19688
  };
19689
19689
  }
19690
- var import_node_child_process14, import_node_crypto12, import_node_fs33, import_node_os5, import_node_path29, import_node_url3, import_node_util6, 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;
19690
+ var import_node_child_process15, import_node_crypto12, import_node_fs33, import_node_os6, import_node_path29, import_node_url3, import_node_util6, 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;
19691
19691
  var init_swift_toolchain = __esm({
19692
19692
  "src/swift-toolchain.ts"() {
19693
19693
  "use strict";
19694
- import_node_child_process14 = require("node:child_process");
19694
+ import_node_child_process15 = require("node:child_process");
19695
19695
  import_node_crypto12 = require("node:crypto");
19696
19696
  import_node_fs33 = __toESM(require("node:fs"), 1);
19697
- import_node_os5 = __toESM(require("node:os"), 1);
19697
+ import_node_os6 = __toESM(require("node:os"), 1);
19698
19698
  import_node_path29 = __toESM(require("node:path"), 1);
19699
19699
  import_node_url3 = require("node:url");
19700
19700
  import_node_util6 = require("node:util");
@@ -19986,7 +19986,7 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
19986
19986
  Math.floor(minimum % 1e4 / 100),
19987
19987
  minimum % 100
19988
19988
  ].join(".");
19989
- const result = (0, import_node_child_process15.spawnSync)(
19989
+ const result = (0, import_node_child_process16.spawnSync)(
19990
19990
  import_node_path30.default.join(toolchainBin, "clang"),
19991
19991
  [
19992
19992
  "-target",
@@ -20019,11 +20019,11 @@ function swiftObjCPlatformFlags(toolchainBin, minimum) {
20019
20019
  platforms.set(key2, flags);
20020
20020
  return flags;
20021
20021
  }
20022
- var import_node_child_process15, import_node_path30, platforms;
20022
+ var import_node_child_process16, import_node_path30, platforms;
20023
20023
  var init_swift_objc_platform = __esm({
20024
20024
  "src/swift-objc-platform.ts"() {
20025
20025
  "use strict";
20026
- import_node_child_process15 = require("node:child_process");
20026
+ import_node_child_process16 = require("node:child_process");
20027
20027
  import_node_path30 = __toESM(require("node:path"), 1);
20028
20028
  init_swift_toolchain();
20029
20029
  platforms = /* @__PURE__ */ new Map();
@@ -21759,7 +21759,7 @@ function developerDirs() {
21759
21759
  try {
21760
21760
  add(
21761
21761
  // runner-toolchain-platform: darwin
21762
- (0, import_node_child_process16.execFileSync)("xcode-select", ["-p"], {
21762
+ (0, import_node_child_process17.execFileSync)("xcode-select", ["-p"], {
21763
21763
  encoding: "utf8",
21764
21764
  stdio: ["ignore", "pipe", "pipe"]
21765
21765
  }).trim()
@@ -21778,7 +21778,7 @@ function readNativeSdk(developerDir2) {
21778
21778
  const env = { ...process.env, DEVELOPER_DIR: developerDir2 };
21779
21779
  const xcrun = (args) => (
21780
21780
  // runner-toolchain-platform: darwin
21781
- (0, import_node_child_process16.execFileSync)("xcrun", args, {
21781
+ (0, import_node_child_process17.execFileSync)("xcrun", args, {
21782
21782
  encoding: "utf8",
21783
21783
  env,
21784
21784
  stdio: ["ignore", "pipe", "pipe"]
@@ -21793,7 +21793,7 @@ function readNativeSdk(developerDir2) {
21793
21793
  sdk: xcrun(["--sdk", "iphonesimulator", "--show-sdk-version"]),
21794
21794
  settings: digest3("SDKSettings.json"),
21795
21795
  build: digest3("System/Library/CoreServices/SystemVersion.plist"),
21796
- compilerVersion: (0, import_node_child_process16.execFileSync)(compiler, ["--version"], {
21796
+ compilerVersion: (0, import_node_child_process17.execFileSync)(compiler, ["--version"], {
21797
21797
  encoding: "utf8",
21798
21798
  env,
21799
21799
  stdio: ["ignore", "pipe", "pipe"]
@@ -22263,7 +22263,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
22263
22263
  for (let round = 0; ; round++) {
22264
22264
  import_node_fs34.default.rmSync(out, { recursive: true, force: true });
22265
22265
  import_node_fs34.default.mkdirSync(out, { recursive: true });
22266
- const run13 = (0, import_node_child_process16.spawnSync)(
22266
+ const run13 = (0, import_node_child_process17.spawnSync)(
22267
22267
  ...withoutCoreDump(import_node_path32.default.join(toolchainBin, "swift-symbolgraph-extract"), [
22268
22268
  "-module-name",
22269
22269
  surface.module,
@@ -22448,7 +22448,7 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
22448
22448
  )
22449
22449
  ].join("\n")
22450
22450
  );
22451
- const run13 = (0, import_node_child_process16.spawnSync)(
22451
+ const run13 = (0, import_node_child_process17.spawnSync)(
22452
22452
  import_node_path32.default.join(toolchainBin, "swift-frontend"),
22453
22453
  [
22454
22454
  "-typecheck",
@@ -22576,7 +22576,7 @@ function inheritedDefaultInits(surface, graphs, toolchainBin, search, moduleCach
22576
22576
  )
22577
22577
  ].join("\n")
22578
22578
  );
22579
- const run13 = (0, import_node_child_process16.spawnSync)(
22579
+ const run13 = (0, import_node_child_process17.spawnSync)(
22580
22580
  import_node_path32.default.join(toolchainBin, "swift-frontend"),
22581
22581
  [
22582
22582
  "-dump-ast",
@@ -22649,7 +22649,7 @@ function requiredInits(surface, graphs, toolchainBin, search, moduleCache, work)
22649
22649
  )
22650
22650
  ].join("\n")
22651
22651
  );
22652
- const run13 = (0, import_node_child_process16.spawnSync)(
22652
+ const run13 = (0, import_node_child_process17.spawnSync)(
22653
22653
  import_node_path32.default.join(toolchainBin, "swift-frontend"),
22654
22654
  [
22655
22655
  "-typecheck",
@@ -22708,7 +22708,7 @@ function protocolProperties(surface, headersDir, graphs, toolchainBin, search, w
22708
22708
  ].map((file) => `#import ${JSON.stringify(file)}
22709
22709
  `).join("")
22710
22710
  );
22711
- const run13 = (0, import_node_child_process16.spawnSync)(
22711
+ const run13 = (0, import_node_child_process17.spawnSync)(
22712
22712
  import_node_path32.default.join(toolchainBin, "clang"),
22713
22713
  [
22714
22714
  "-x",
@@ -22791,7 +22791,7 @@ function objcDeclarationAST(surface, framework, toolchainBin, search, work, orig
22791
22791
  "-ast-dump-all=json"
22792
22792
  ];
22793
22793
  const dump2 = (filter) => {
22794
- const run13 = (0, import_node_child_process16.spawnSync)(
22794
+ const run13 = (0, import_node_child_process17.spawnSync)(
22795
22795
  import_node_path32.default.join(toolchainBin, "clang"),
22796
22796
  [
22797
22797
  ...args,
@@ -22873,7 +22873,7 @@ function enumValues(graphs, surface, framework, toolchainBin, search, work, orig
22873
22873
  if (flag === "-sdk") flags.push("-isysroot", dir);
22874
22874
  else flags.push(flag, dir);
22875
22875
  }
22876
- const run13 = (0, import_node_child_process16.spawnSync)(
22876
+ const run13 = (0, import_node_child_process17.spawnSync)(
22877
22877
  import_node_path32.default.join(toolchainBin, "clang"),
22878
22878
  [
22879
22879
  "-x",
@@ -22948,11 +22948,11 @@ function constantValue(node) {
22948
22948
  }
22949
22949
  return null;
22950
22950
  }
22951
- var import_node_child_process16, import_node_crypto13, import_node_fs34, import_node_path32, 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;
22951
+ var import_node_child_process17, import_node_crypto13, import_node_fs34, import_node_path32, 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;
22952
22952
  var init_swift_objc_standin = __esm({
22953
22953
  "src/swift-objc-standin.ts"() {
22954
22954
  "use strict";
22955
- import_node_child_process16 = require("node:child_process");
22955
+ import_node_child_process17 = require("node:child_process");
22956
22956
  import_node_crypto13 = require("node:crypto");
22957
22957
  import_node_fs34 = __toESM(require("node:fs"), 1);
22958
22958
  import_node_path32 = __toESM(require("node:path"), 1);
@@ -23213,7 +23213,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk2)
23213
23213
  ]);
23214
23214
  const cached3 = sdkViews.get(key2);
23215
23215
  if (cached3 && import_node_fs35.default.existsSync(cached3.manifest)) return touchSdkView(cached3.options);
23216
- const configuration = (0, import_node_child_process17.execFileSync)(
23216
+ const configuration = (0, import_node_child_process18.execFileSync)(
23217
23217
  import_node_path33.default.join(toolchainBin, "swift"),
23218
23218
  [
23219
23219
  "sdk",
@@ -23342,11 +23342,11 @@ function swiftSharedSdkInputFiles(moduleRoot) {
23342
23342
  const root = swiftSharedSdkRoot(moduleRoot, false);
23343
23343
  return (0, import_node_fs35.readdirSync)(root, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path33.default.relative(moduleRoot, import_node_path33.default.join(entry.parentPath, entry.name))).sort();
23344
23344
  }
23345
- var import_node_child_process17, import_node_crypto14, import_node_fs35, import_node_path33, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
23345
+ var import_node_child_process18, import_node_crypto14, import_node_fs35, import_node_path33, distributionHeaderRoots, WEAKEN_FOUNDATION_SYMS, sdkViews;
23346
23346
  var init_swift_shared_sdk = __esm({
23347
23347
  "src/swift-shared-sdk.ts"() {
23348
23348
  "use strict";
23349
- import_node_child_process17 = require("node:child_process");
23349
+ import_node_child_process18 = require("node:child_process");
23350
23350
  import_node_crypto14 = require("node:crypto");
23351
23351
  import_node_fs35 = __toESM(require("node:fs"), 1);
23352
23352
  import_node_path33 = __toESM(require("node:path"), 1);
@@ -23369,14 +23369,14 @@ var init_swift_shared_sdk = __esm({
23369
23369
  // src/swift-darwin-records.ts
23370
23370
  function compileDarwinRecords(args) {
23371
23371
  const records = import_node_path34.default.join(args.packageRoot, "Sources/DarwinRecords");
23372
- const runtime = (0, import_node_fs36.mkdtempSync)(import_node_path34.default.join((0, import_node_os6.tmpdir)(), "peach-objc-runtime-"));
23372
+ const runtime = (0, import_node_fs36.mkdtempSync)(import_node_path34.default.join((0, import_node_os7.tmpdir)(), "peach-objc-runtime-"));
23373
23373
  (0, import_node_fs36.symlinkSync)(import_node_path34.default.join(args.darwin, "usr/include/objc"), import_node_path34.default.join(runtime, "objc"));
23374
23374
  const objects = (0, import_node_fs36.readdirSync)(records).filter((file) => file.endsWith(".c") || file.endsWith(".m")).sort((a, b) => a < b ? -1 : a > b ? 1 : 0).map((file) => {
23375
23375
  const object7 = import_node_path34.default.join(
23376
23376
  args.out,
23377
23377
  `${DARWIN_RECORDS_PREFIX}${file.replace(/\.[cm]$/, ".o")}`
23378
23378
  );
23379
- (0, import_node_child_process18.execFileSync)(
23379
+ (0, import_node_child_process19.execFileSync)(
23380
23380
  import_node_path34.default.join(args.bin, "clang"),
23381
23381
  [
23382
23382
  "--target=wasm64-unknown-wasip1",
@@ -23411,13 +23411,13 @@ function compileDarwinRecords(args) {
23411
23411
  (0, import_node_fs36.rmSync)(runtime, { recursive: true });
23412
23412
  return objects;
23413
23413
  }
23414
- var import_node_child_process18, import_node_fs36, import_node_os6, import_node_path34, DARWIN_RECORDS_PREFIX, darwinRecordsMinimum;
23414
+ var import_node_child_process19, import_node_fs36, import_node_os7, import_node_path34, DARWIN_RECORDS_PREFIX, darwinRecordsMinimum;
23415
23415
  var init_swift_darwin_records = __esm({
23416
23416
  "src/swift-darwin-records.ts"() {
23417
23417
  "use strict";
23418
- import_node_child_process18 = require("node:child_process");
23418
+ import_node_child_process19 = require("node:child_process");
23419
23419
  import_node_fs36 = require("node:fs");
23420
- import_node_os6 = require("node:os");
23420
+ import_node_os7 = require("node:os");
23421
23421
  import_node_path34 = __toESM(require("node:path"), 1);
23422
23422
  init_swift_objc_platform();
23423
23423
  init_swift_objc_runtime();
@@ -26047,18 +26047,18 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
26047
26047
  transformations
26048
26048
  });
26049
26049
  } else
26050
- (0, import_node_child_process19.execFileSync)(import_node_path35.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
26050
+ (0, import_node_child_process20.execFileSync)(import_node_path35.default.join(toolchainBin, "wasm-ld"), [`@${prunedRspPath}`], {
26051
26051
  stdio: "pipe",
26052
26052
  maxBuffer: Infinity,
26053
26053
  ...owner
26054
26054
  });
26055
26055
  import_node_fs37.default.rmSync(rspPath, { force: true });
26056
26056
  }
26057
- var import_node_child_process19, import_node_crypto15, import_node_fs37, import_node_path35, 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;
26057
+ var import_node_child_process20, import_node_crypto15, import_node_fs37, import_node_path35, 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;
26058
26058
  var init_swift_wasm_prune = __esm({
26059
26059
  "src/swift-wasm-prune.ts"() {
26060
26060
  "use strict";
26061
- import_node_child_process19 = require("node:child_process");
26061
+ import_node_child_process20 = require("node:child_process");
26062
26062
  import_node_crypto15 = require("node:crypto");
26063
26063
  import_node_fs37 = __toESM(require("node:fs"), 1);
26064
26064
  import_node_path35 = __toESM(require("node:path"), 1);
@@ -26149,7 +26149,7 @@ var init_swift_wasm_prune = __esm({
26149
26149
  // src/swift-guest-archive.ts
26150
26150
  function aliasGuestArchive(options) {
26151
26151
  const original = readArMembers((0, import_node_fs38.readFileSync)(options.archive));
26152
- const listed = (0, import_node_child_process20.execFileSync)(options.llvmAr, ["t", options.archive], {
26152
+ const listed = (0, import_node_child_process21.execFileSync)(options.llvmAr, ["t", options.archive], {
26153
26153
  encoding: "utf8"
26154
26154
  }).trimEnd().split("\n");
26155
26155
  if (!original.length || listed.length !== original.length || original.some((member, index) => member.name !== listed[index]))
@@ -26175,7 +26175,7 @@ function aliasGuestArchive(options) {
26175
26175
  );
26176
26176
  const archive = import_node_path36.default.join(options.directory, "archive.a");
26177
26177
  (0, import_node_fs38.rmSync)(archive, { force: true });
26178
- (0, import_node_child_process20.execFileSync)(options.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
26178
+ (0, import_node_child_process21.execFileSync)(options.llvmAr, ["rcsD", archive, `@${response}`], { stdio: "pipe" });
26179
26179
  const rewritten = readArMembers((0, import_node_fs38.readFileSync)(archive));
26180
26180
  if (rewritten.length !== members2.length || rewritten.some(
26181
26181
  (member, index) => member.name !== members2[index].alias || (0, import_node_crypto16.createHash)("sha256").update(member.bytes).digest("hex") !== members2[index].sha256
@@ -26210,11 +26210,11 @@ function aliasGuestLinkIdentities(identities, archives) {
26210
26210
  }
26211
26211
  return result;
26212
26212
  }
26213
- var import_node_child_process20, import_node_crypto16, import_node_fs38, import_node_path36;
26213
+ var import_node_child_process21, import_node_crypto16, import_node_fs38, import_node_path36;
26214
26214
  var init_swift_guest_archive = __esm({
26215
26215
  "src/swift-guest-archive.ts"() {
26216
26216
  "use strict";
26217
- import_node_child_process20 = require("node:child_process");
26217
+ import_node_child_process21 = require("node:child_process");
26218
26218
  import_node_crypto16 = require("node:crypto");
26219
26219
  import_node_fs38 = require("node:fs");
26220
26220
  import_node_path36 = __toESM(require("node:path"), 1);
@@ -28553,7 +28553,7 @@ function linkGuestImages(options) {
28553
28553
  );
28554
28554
  const output2 = import_node_fs41.default.openSync(trace, "w");
28555
28555
  try {
28556
- (0, import_node_child_process21.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
28556
+ (0, import_node_child_process22.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
28557
28557
  } finally {
28558
28558
  import_node_fs41.default.closeSync(output2);
28559
28559
  }
@@ -28567,7 +28567,7 @@ function linkGuestImages(options) {
28567
28567
  source,
28568
28568
  '#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
28569
28569
  );
28570
- (0, import_node_child_process21.execFileSync)(
28570
+ (0, import_node_child_process22.execFileSync)(
28571
28571
  clang,
28572
28572
  [...options.projection.clangOptions, "-c", source, "-o", discoveryProjection],
28573
28573
  { stdio: "pipe" }
@@ -28681,7 +28681,7 @@ function linkGuestImages(options) {
28681
28681
  }
28682
28682
  const members2 = archives.get(artifact.path);
28683
28683
  if (!members2) continue;
28684
- const listed = (0, import_node_child_process21.execFileSync)(llvmAr, ["t", artifact.path], { encoding: "utf8" }).trimEnd().split("\n");
28684
+ const listed = (0, import_node_child_process22.execFileSync)(llvmAr, ["t", artifact.path], { encoding: "utf8" }).trimEnd().split("\n");
28685
28685
  if (listed.length !== members2.length || new Set(listed).size !== listed.length || members2.some(
28686
28686
  (member, i) => listed[i] !== member.name || import_node_path39.default.basename(member.name) !== member.name
28687
28687
  ))
@@ -28704,13 +28704,13 @@ function linkGuestImages(options) {
28704
28704
  import_node_fs41.default.rmSync(output2, { force: true });
28705
28705
  const response = import_node_path39.default.join(memberDir, "members.rsp");
28706
28706
  import_node_fs41.default.writeFileSync(response, inputs.map((input) => JSON.stringify(input)).join(" "));
28707
- (0, import_node_child_process21.execFileSync)(llvmAr, ["rcs", output2, `@${response}`], { stdio: "pipe" });
28707
+ (0, import_node_child_process22.execFileSync)(llvmAr, ["rcs", output2, `@${response}`], { stdio: "pipe" });
28708
28708
  replacements.set(artifact.path, output2);
28709
28709
  }
28710
28710
  const irPath = import_node_path39.default.join(directory2, "ledger.ll");
28711
28711
  const ledgerObject = import_node_path39.default.join(directory2, "ledger.o");
28712
28712
  import_node_fs41.default.writeFileSync(irPath, ledger.llvmIR);
28713
- (0, import_node_child_process21.execFileSync)(
28713
+ (0, import_node_child_process22.execFileSync)(
28714
28714
  clang,
28715
28715
  ["--target=wasm64-unknown-wasip1", "-c", irPath, "-o", ledgerObject],
28716
28716
  { stdio: "pipe" }
@@ -28752,7 +28752,7 @@ function linkGuestImages(options) {
28752
28752
  const projectionSource = import_node_path39.default.join(directory2, "projection.c");
28753
28753
  projectionObject = import_node_path39.default.join(directory2, "projection.o");
28754
28754
  import_node_fs41.default.writeFileSync(projectionSource, projectionStorage.source);
28755
- (0, import_node_child_process21.execFileSync)(
28755
+ (0, import_node_child_process22.execFileSync)(
28756
28756
  clang,
28757
28757
  [...projection.clangOptions, "-c", projectionSource, "-o", projectionObject],
28758
28758
  {
@@ -28929,7 +28929,7 @@ function discoverGuestLinkInputs(options) {
28929
28929
  const trace = import_node_path39.default.join(options.directory, "preselection-inputs.txt");
28930
28930
  const traceOutput = import_node_fs41.default.openSync(trace, "w");
28931
28931
  try {
28932
- (0, import_node_child_process21.execFileSync)(options.wasmLd, [`@${response}`], {
28932
+ (0, import_node_child_process22.execFileSync)(options.wasmLd, [`@${response}`], {
28933
28933
  stdio: ["ignore", traceOutput, "pipe"]
28934
28934
  });
28935
28935
  } finally {
@@ -29087,7 +29087,7 @@ function verifyGuestSymbolScopes(options) {
29087
29087
  const tracePath = import_node_path39.default.join(options.directory, "scope-trace.txt");
29088
29088
  const traceOutput = import_node_fs41.default.openSync(tracePath, "w");
29089
29089
  try {
29090
- (0, import_node_child_process21.execFileSync)(options.wasmLd, [`@${response}`], {
29090
+ (0, import_node_child_process22.execFileSync)(options.wasmLd, [`@${response}`], {
29091
29091
  stdio: ["ignore", traceOutput, "pipe"]
29092
29092
  });
29093
29093
  } finally {
@@ -29353,11 +29353,11 @@ function linkPrunedGuestImages(options) {
29353
29353
  if (!result) throw new Error("guest link did not receive pruned inputs");
29354
29354
  return result;
29355
29355
  }
29356
- var import_node_child_process21, import_node_fs41, import_node_path39, import_node_string_decoder;
29356
+ var import_node_child_process22, import_node_fs41, import_node_path39, import_node_string_decoder;
29357
29357
  var init_swift_guest_link = __esm({
29358
29358
  "src/swift-guest-link.ts"() {
29359
29359
  "use strict";
29360
- import_node_child_process21 = require("node:child_process");
29360
+ import_node_child_process22 = require("node:child_process");
29361
29361
  import_node_fs41 = __toESM(require("node:fs"), 1);
29362
29362
  import_node_path39 = __toESM(require("node:path"), 1);
29363
29363
  import_node_string_decoder = require("node:string_decoder");
@@ -29461,7 +29461,7 @@ function sourceGuestClangLinkOptions(options) {
29461
29461
  throw new Error(`missing clang ${flag} for ${file}`);
29462
29462
  args[index2 + 1] = flag === "-o" ? output2 : `${output2}.d`;
29463
29463
  }
29464
- (0, import_node_child_process22.execFileSync)(command.args[0], [...args, "-S", "-emit-llvm"], { stdio: "inherit" });
29464
+ (0, import_node_child_process23.execFileSync)(command.args[0], [...args, "-S", "-emit-llvm"], { stdio: "inherit" });
29465
29465
  const flags = clangIrLinkOptions((0, import_node_fs42.readFileSync)(output2, "utf8"));
29466
29466
  for (let index2 = 0; index2 < flags.length; index2++) {
29467
29467
  const flag = flags[index2];
@@ -29599,7 +29599,7 @@ function sourceGuestRuntimeLinks(options) {
29599
29599
  response,
29600
29600
  image.objects.map((file) => JSON.stringify(file)).join("\n") + "\n"
29601
29601
  );
29602
- const autolink = image.objects.length ? (0, import_node_child_process22.execFileSync)(
29602
+ const autolink = image.objects.length ? (0, import_node_child_process23.execFileSync)(
29603
29603
  import_node_path40.default.join(options.toolchainBin, "swift-autolink-extract"),
29604
29604
  [`@${response}`, "-o", "-"],
29605
29605
  { encoding: "utf8" }
@@ -29692,11 +29692,11 @@ function logicalGuestLinkOptions(args, identities, roots) {
29692
29692
  }
29693
29693
  return output2;
29694
29694
  }
29695
- var import_node_child_process22, import_node_crypto19, import_node_fs42, import_node_path40, CLANG_TARGET_MODULE_WRAPPER;
29695
+ var import_node_child_process23, import_node_crypto19, import_node_fs42, import_node_path40, CLANG_TARGET_MODULE_WRAPPER;
29696
29696
  var init_swift_guest_source_inputs = __esm({
29697
29697
  "src/swift-guest-source-inputs.ts"() {
29698
29698
  "use strict";
29699
- import_node_child_process22 = require("node:child_process");
29699
+ import_node_child_process23 = require("node:child_process");
29700
29700
  import_node_crypto19 = require("node:crypto");
29701
29701
  import_node_fs42 = require("node:fs");
29702
29702
  import_node_path40 = __toESM(require("node:path"), 1);
@@ -29965,7 +29965,7 @@ async function runWasmOpt(file, output2, optimize, skipPasses, binary2) {
29965
29965
  const thunks = `${output2}.thunks.wat`;
29966
29966
  (0, import_node_fs43.writeFileSync)(guest, narrowed.module);
29967
29967
  (0, import_node_fs43.writeFileSync)(thunks, narrowed.thunks);
29968
- await (0, import_node_util7.promisify)(import_node_child_process23.execFile)((0, import_node_path41.join)((0, import_node_path41.dirname)(binary2), "wasm-merge"), [
29968
+ await (0, import_node_util7.promisify)(import_node_child_process24.execFile)((0, import_node_path41.join)((0, import_node_path41.dirname)(binary2), "wasm-merge"), [
29969
29969
  ...features,
29970
29970
  ...names,
29971
29971
  guest,
@@ -30024,11 +30024,11 @@ async function lowerWasm(file, output2, options) {
30024
30024
  await installWasmOpt()
30025
30025
  );
30026
30026
  }
30027
- var import_node_child_process23, import_node_fs43, import_node_path41, import_node_util7, import_wasm_opt, FEATURES, KEEP_WASM_NAMES, LOWERING, WASM_LOWER_IDENTITY, PINNED_BINARYEN_VERSION, BINARYEN_RELEASES;
30027
+ var import_node_child_process24, import_node_fs43, import_node_path41, import_node_util7, import_wasm_opt, FEATURES, KEEP_WASM_NAMES, LOWERING, WASM_LOWER_IDENTITY, PINNED_BINARYEN_VERSION, BINARYEN_RELEASES;
30028
30028
  var init_wasm_optimize = __esm({
30029
30029
  "src/wasm-optimize.ts"() {
30030
30030
  "use strict";
30031
- import_node_child_process23 = require("node:child_process");
30031
+ import_node_child_process24 = require("node:child_process");
30032
30032
  import_node_fs43 = require("node:fs");
30033
30033
  import_node_path41 = require("node:path");
30034
30034
  import_node_util7 = require("node:util");
@@ -30127,7 +30127,7 @@ async function compileGuestLink(options) {
30127
30127
  stubSource,
30128
30128
  '#include "guest-image-projection.h"\nconst struct peach_guest_image __peach_guest_images[] = {{0}};\nconst uint32_t __peach_guest_image_count = 0;\n'
30129
30129
  );
30130
- (0, import_node_child_process24.execFileSync)(
30130
+ (0, import_node_child_process25.execFileSync)(
30131
30131
  import_node_path42.default.join(options.toolchainBin, "clang"),
30132
30132
  [...clangOptions, "-c", stubSource, "-o", stub],
30133
30133
  { stdio: "pipe" }
@@ -30444,11 +30444,11 @@ async function compileGuestLink(options) {
30444
30444
  });
30445
30445
  (0, import_node_fs44.writeFileSync)(options.optimized, finalized.wasm);
30446
30446
  }
30447
- var import_node_child_process24, import_node_fs44, import_node_path42;
30447
+ var import_node_child_process25, import_node_fs44, import_node_path42;
30448
30448
  var init_swift_guest_compile = __esm({
30449
30449
  "src/swift-guest-compile.ts"() {
30450
30450
  "use strict";
30451
- import_node_child_process24 = require("node:child_process");
30451
+ import_node_child_process25 = require("node:child_process");
30452
30452
  import_node_fs44 = require("node:fs");
30453
30453
  import_node_path42 = __toESM(require("node:path"), 1);
30454
30454
  init_swift_guest_archive();
@@ -30536,7 +30536,7 @@ async function cachedBrotli(bytes, quality, cacheKey) {
30536
30536
  const cacheId = `${quality}:${key2}`;
30537
30537
  const cached3 = brotliMemoryCache.get(cacheId);
30538
30538
  if (cached3) return cached3;
30539
- const dir = import_node_path43.default.join(import_node_os7.default.homedir(), ".peach", "cache", "swift-brotli");
30539
+ const dir = import_node_path43.default.join(import_node_os8.default.homedir(), ".peach", "cache", "swift-brotli");
30540
30540
  const file = import_node_path43.default.join(dir, `${key2}${quality === 11 ? "" : "-q4"}.br`);
30541
30541
  let compressed;
30542
30542
  try {
@@ -30670,7 +30670,7 @@ function swiftIcuAddress(icu) {
30670
30670
  function swiftIcuPacked(icu) {
30671
30671
  return memo(packedFiles, icu.sha256, async () => {
30672
30672
  const file = import_node_path43.default.join(
30673
- import_node_os7.default.homedir(),
30673
+ import_node_os8.default.homedir(),
30674
30674
  ".peach",
30675
30675
  "cache",
30676
30676
  "swift-brotli",
@@ -30690,21 +30690,21 @@ function swiftIcuPacked(icu) {
30690
30690
  return packed;
30691
30691
  });
30692
30692
  }
30693
- var import_node_child_process25, import_node_crypto20, import_node_fs45, import_promises4, import_node_os7, import_node_path43, import_node_util8, import_node_zlib2, run5, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
30693
+ var import_node_child_process26, import_node_crypto20, import_node_fs45, import_promises4, import_node_os8, import_node_path43, import_node_util8, import_node_zlib2, run5, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
30694
30694
  var init_swift_icu = __esm({
30695
30695
  "src/swift-icu.ts"() {
30696
30696
  "use strict";
30697
- import_node_child_process25 = require("node:child_process");
30697
+ import_node_child_process26 = require("node:child_process");
30698
30698
  import_node_crypto20 = require("node:crypto");
30699
30699
  import_node_fs45 = require("node:fs");
30700
30700
  import_promises4 = require("node:fs/promises");
30701
- import_node_os7 = __toESM(require("node:os"), 1);
30701
+ import_node_os8 = __toESM(require("node:os"), 1);
30702
30702
  import_node_path43 = __toESM(require("node:path"), 1);
30703
30703
  import_node_util8 = require("node:util");
30704
30704
  import_node_zlib2 = require("node:zlib");
30705
30705
  init_icuData();
30706
30706
  init_swift_toolchain();
30707
- run5 = (0, import_node_util8.promisify)(import_node_child_process25.execFile);
30707
+ run5 = (0, import_node_util8.promisify)(import_node_child_process26.execFile);
30708
30708
  deflate = (0, import_node_util8.promisify)(import_node_zlib2.gzip);
30709
30709
  compressBrotli = (0, import_node_util8.promisify)(import_node_zlib2.brotliCompress);
30710
30710
  inflateGzip = (0, import_node_util8.promisify)(import_node_zlib2.gunzip);
@@ -30888,7 +30888,7 @@ function prepareSwiftProjectProcess(root, user) {
30888
30888
  (0, import_node_fs47.mkdirSync)(tmp, { recursive: true });
30889
30889
  const caches = ["cache", "config", "security"].map((name3) => import_node_path45.default.join(swiftpm, name3));
30890
30890
  for (const directory2 of caches) (0, import_node_fs47.mkdirSync)(directory2, { recursive: true });
30891
- (0, import_node_child_process26.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
30891
+ (0, import_node_child_process27.execFileSync)("chown", ["-R", "-P", `${user.uid}:${user.gid}`, root, home]);
30892
30892
  (0, import_node_fs47.chmodSync)(root, 448);
30893
30893
  (0, import_node_fs47.chmodSync)(home, 448);
30894
30894
  return {
@@ -30911,7 +30911,7 @@ function prepareSwiftProjectProcess(root, user) {
30911
30911
  };
30912
30912
  }
30913
30913
  function endSwiftProjectProcesses(user) {
30914
- (0, import_node_child_process26.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
30914
+ (0, import_node_child_process27.execFileSync)("sh", ["-c", "kill -s KILL -- -1 2>/dev/null || true"], {
30915
30915
  uid: user.uid,
30916
30916
  gid: user.gid
30917
30917
  });
@@ -30938,11 +30938,11 @@ function removeProjectLinks(root) {
30938
30938
  }
30939
30939
  }
30940
30940
  }
30941
- var import_node_child_process26, import_node_fs47, import_node_path45;
30941
+ var import_node_child_process27, import_node_fs47, import_node_path45;
30942
30942
  var init_swift_project_user = __esm({
30943
30943
  "src/swift-project-user.ts"() {
30944
30944
  "use strict";
30945
- import_node_child_process26 = require("node:child_process");
30945
+ import_node_child_process27 = require("node:child_process");
30946
30946
  import_node_fs47 = require("node:fs");
30947
30947
  import_node_path45 = __toESM(require("node:path"), 1);
30948
30948
  }
@@ -30950,7 +30950,7 @@ var init_swift_project_user = __esm({
30950
30950
 
30951
30951
  // src/swift-reproducible.ts
30952
30952
  function swiftReproducibleBuildFlags(roots) {
30953
- return [[import_node_os8.default.homedir(), "home"], ...roots].flatMap(
30953
+ return [[import_node_os9.default.homedir(), "home"], ...roots].flatMap(
30954
30954
  ([root, name3]) => [.../* @__PURE__ */ new Set([root, (0, import_node_fs48.realpathSync)(root)])].map((from) => `${from}=/peach/${name3}`)
30955
30955
  ).flatMap((map2) => [
30956
30956
  "-Xswiftc",
@@ -30963,12 +30963,12 @@ function swiftReproducibleBuildFlags(roots) {
30963
30963
  `-ffile-prefix-map=${map2}`
30964
30964
  ]);
30965
30965
  }
30966
- var import_node_fs48, import_node_os8;
30966
+ var import_node_fs48, import_node_os9;
30967
30967
  var init_swift_reproducible = __esm({
30968
30968
  "src/swift-reproducible.ts"() {
30969
30969
  "use strict";
30970
30970
  import_node_fs48 = require("node:fs");
30971
- import_node_os8 = __toESM(require("node:os"), 1);
30971
+ import_node_os9 = __toESM(require("node:os"), 1);
30972
30972
  }
30973
30973
  });
30974
30974
 
@@ -31055,11 +31055,11 @@ function groupAlive(table, leader) {
31055
31055
  return table.some((candidate) => candidate.pgid === leader.pid && !candidate.zombie);
31056
31056
  }
31057
31057
  function swiftRootLocksDir() {
31058
- return import_node_path46.default.join((0, import_node_os9.homedir)(), ".peach", "cache", "swift-root-locks");
31058
+ return import_node_path46.default.join((0, import_node_os10.homedir)(), ".peach", "cache", "swift-root-locks");
31059
31059
  }
31060
31060
  function withCocoaPodsCacheLock(work) {
31061
31061
  return withSwiftRootLock(
31062
- process.env.CP_CACHE_DIR || import_node_path46.default.join((0, import_node_os9.homedir)(), "Library/Caches/CocoaPods"),
31062
+ process.env.CP_CACHE_DIR || import_node_path46.default.join((0, import_node_os10.homedir)(), "Library/Caches/CocoaPods"),
31063
31063
  work
31064
31064
  );
31065
31065
  }
@@ -31136,7 +31136,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
31136
31136
  }
31137
31137
  },
31138
31138
  spawn(command, args, options, companion) {
31139
- const child = (0, import_node_child_process27.spawn)(
31139
+ const child = (0, import_node_child_process28.spawn)(
31140
31140
  "/bin/sh",
31141
31141
  ["-c", 'IFS= read -r go || exit 1; exec "$@" </dev/null', "sh", command, ...args],
31142
31142
  { ...options, detached: true, stdio: ["pipe", "pipe", "pipe"] }
@@ -31166,14 +31166,14 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
31166
31166
  (0, import_node_fs49.writeFileSync)(import_node_path46.default.join(directory2, name2(held, "released")), "");
31167
31167
  }
31168
31168
  }
31169
- var import_node_child_process27, import_node_crypto21, import_node_fs49, import_node_os9, import_node_path46, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name2;
31169
+ var import_node_child_process28, import_node_crypto21, import_node_fs49, import_node_os10, import_node_path46, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name2;
31170
31170
  var init_swift_root_lock = __esm({
31171
31171
  "src/swift-root-lock.ts"() {
31172
31172
  "use strict";
31173
- import_node_child_process27 = require("node:child_process");
31173
+ import_node_child_process28 = require("node:child_process");
31174
31174
  import_node_crypto21 = require("node:crypto");
31175
31175
  import_node_fs49 = require("node:fs");
31176
- import_node_os9 = require("node:os");
31176
+ import_node_os10 = require("node:os");
31177
31177
  import_node_path46 = __toESM(require("node:path"), 1);
31178
31178
  init_process_group();
31179
31179
  init_process_table();
@@ -31188,7 +31188,7 @@ var init_swift_root_lock = __esm({
31188
31188
  function compileUniformTypeConstants(args) {
31189
31189
  const source = import_node_path47.default.join(args.packageRoot, "runtime/UniformTypeIdentifiersConstants.m");
31190
31190
  const object7 = import_node_path47.default.join(args.out, "UniformTypeIdentifiers-NativeConstants.o");
31191
- (0, import_node_child_process28.execFileSync)(
31191
+ (0, import_node_child_process29.execFileSync)(
31192
31192
  import_node_path47.default.join(args.bin, "clang"),
31193
31193
  [
31194
31194
  "--target=wasm64-unknown-wasip1",
@@ -31209,11 +31209,11 @@ function compileUniformTypeConstants(args) {
31209
31209
  );
31210
31210
  return object7;
31211
31211
  }
31212
- var import_node_child_process28, import_node_path47;
31212
+ var import_node_child_process29, import_node_path47;
31213
31213
  var init_swift_uniform_type_constants = __esm({
31214
31214
  "src/swift-uniform-type-constants.ts"() {
31215
31215
  "use strict";
31216
- import_node_child_process28 = require("node:child_process");
31216
+ import_node_child_process29 = require("node:child_process");
31217
31217
  import_node_path47 = __toESM(require("node:path"), 1);
31218
31218
  init_swift_objc_runtime();
31219
31219
  init_swift_objc_standin();
@@ -31353,7 +31353,7 @@ async function runCompiler(command, args, options, stream = false, quiet) {
31353
31353
  detached: true,
31354
31354
  stdio: ["ignore", "pipe", "pipe"]
31355
31355
  };
31356
- const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process29.spawn)(command, args, launch);
31356
+ const child = options.lease ? options.lease.spawn(command, args, launch, options.frameworkLease) : (0, import_node_child_process30.spawn)(command, args, launch);
31357
31357
  let stopping;
31358
31358
  try {
31359
31359
  return await new Promise((resolve7, reject) => {
@@ -31431,7 +31431,7 @@ function swiftBuildJobs() {
31431
31431
  const admittedCores = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
31432
31432
  return Math.min(
31433
31433
  process.platform === "darwin" ? Infinity : 4,
31434
- Math.max(1, Math.floor(import_node_os10.default.availableParallelism() / 2)),
31434
+ Math.max(1, Math.floor(import_node_os11.default.availableParallelism() / 2)),
31435
31435
  Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
31436
31436
  );
31437
31437
  }
@@ -31885,7 +31885,7 @@ function swiftSdkPaths(moduleRoot, toolchainBin) {
31885
31885
  const key2 = JSON.stringify([toolchainBin, sdk2, options]);
31886
31886
  const cached3 = sdkPaths.get(key2);
31887
31887
  if (cached3) return cached3;
31888
- const configuration = (0, import_node_child_process29.execFileSync)(
31888
+ const configuration = (0, import_node_child_process30.execFileSync)(
31889
31889
  import_node_path50.default.join(toolchainBin, "swift"),
31890
31890
  [
31891
31891
  "sdk",
@@ -36187,14 +36187,14 @@ function compileSwiftProjectOnce(input, options) {
36187
36187
  options.signal
36188
36188
  );
36189
36189
  }
36190
- var import_node_child_process29, import_node_crypto22, import_node_fs52, import_node_os10, import_node_path50, 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, cPredefineTable, cPredefineCache, 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;
36190
+ var import_node_child_process30, import_node_crypto22, import_node_fs52, import_node_os11, import_node_path50, 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, cPredefineTable, cPredefineCache, 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;
36191
36191
  var init_swift_compile = __esm({
36192
36192
  "src/swift-compile.ts"() {
36193
36193
  "use strict";
36194
- import_node_child_process29 = require("node:child_process");
36194
+ import_node_child_process30 = require("node:child_process");
36195
36195
  import_node_crypto22 = require("node:crypto");
36196
36196
  import_node_fs52 = require("node:fs");
36197
- import_node_os10 = __toESM(require("node:os"), 1);
36197
+ import_node_os11 = __toESM(require("node:os"), 1);
36198
36198
  import_node_path50 = __toESM(require("node:path"), 1);
36199
36199
  v5 = __toESM(require("valibot"), 1);
36200
36200
  init_admitted_mac_build();
@@ -37414,7 +37414,7 @@ async function swiftDistributionRoot(signal) {
37414
37414
  }
37415
37415
  async function installSwiftToolchain(release, sdk2, signal, compilerOnly = false) {
37416
37416
  const root = import_node_path52.default.resolve(swiftToolchainBin(release), "../..");
37417
- const owned = process.platform === "darwin" ? import_node_path52.default.join(import_node_os11.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path52.default.join(rnxHomeDir(), "swift", "toolchains", release);
37417
+ const owned = process.platform === "darwin" ? import_node_path52.default.join(import_node_os12.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path52.default.join(rnxHomeDir(), "swift", "toolchains", release);
37418
37418
  const selectedCompiler = process.platform === "darwin" && import_node_fs54.default.existsSync(import_node_path52.default.join(root, "usr/bin/swift"));
37419
37419
  if (release.includes("-custom-") && root === owned && !selectedCompiler && !swiftCompilerReady(release)) {
37420
37420
  const archive = swiftHostCompilerArchive(release);
@@ -37517,12 +37517,12 @@ function swiftModuleToolchain(root) {
37517
37517
  const { release } = swiftModuleCompiler(root);
37518
37518
  return { release, toolchainBin: swiftToolchain(release, swiftModuleSdk(root)) };
37519
37519
  }
37520
- var import_node_fs54, import_node_os11, import_node_path52, SWIFT_ENDPOINT_ENV, DEFAULT_SWIFT_ENDPOINT, installs, staleWarned;
37520
+ var import_node_fs54, import_node_os12, import_node_path52, SWIFT_ENDPOINT_ENV, DEFAULT_SWIFT_ENDPOINT, installs, staleWarned;
37521
37521
  var init_swift_distribution = __esm({
37522
37522
  "src/swift-distribution.ts"() {
37523
37523
  "use strict";
37524
37524
  import_node_fs54 = __toESM(require("node:fs"), 1);
37525
- import_node_os11 = __toESM(require("node:os"), 1);
37525
+ import_node_os12 = __toESM(require("node:os"), 1);
37526
37526
  import_node_path52 = __toESM(require("node:path"), 1);
37527
37527
  init_src();
37528
37528
  init_linux_browser_libs();
@@ -37613,7 +37613,7 @@ function dumpInputs(dir) {
37613
37613
  path: command,
37614
37614
  realpath: import_node_fs55.default.realpathSync(command),
37615
37615
  sha256: (0, import_node_crypto24.createHash)("sha256").update(import_node_fs55.default.readFileSync(command)).digest("hex"),
37616
- version: (0, import_node_child_process30.execFileSync)(command, ["--version"], {
37616
+ version: (0, import_node_child_process31.execFileSync)(command, ["--version"], {
37617
37617
  encoding: "utf8",
37618
37618
  env: swiftEnvironment(),
37619
37619
  stdio: ["ignore", "pipe", "pipe"]
@@ -37676,7 +37676,7 @@ function dump(dir, requirePrepared = false) {
37676
37676
  if (requirePrepared) throw new SwiftManifestPreparationRequired(dir);
37677
37677
  let output2;
37678
37678
  try {
37679
- output2 = (0, import_node_child_process30.execFileSync)(
37679
+ output2 = (0, import_node_child_process31.execFileSync)(
37680
37680
  command,
37681
37681
  [
37682
37682
  "package",
@@ -38016,7 +38016,7 @@ let package = Package(
38016
38016
  ]
38017
38017
  )
38018
38018
  `;
38019
- const dir = import_node_fs55.default.mkdtempSync(import_node_path53.default.join(import_node_os12.default.tmpdir(), "peach-resolve-"));
38019
+ const dir = import_node_fs55.default.mkdtempSync(import_node_path53.default.join(import_node_os13.default.tmpdir(), "peach-resolve-"));
38020
38020
  import_node_fs55.default.writeFileSync(import_node_path53.default.join(dir, "Package.swift"), manifest);
38021
38021
  const args = [
38022
38022
  "package",
@@ -38056,7 +38056,7 @@ async function resolveSwiftPackageRequirementsAsync(requirements, destination, s
38056
38056
  const { dir, args, options, failed, publish } = resolveRequest(requirements);
38057
38057
  try {
38058
38058
  try {
38059
- await (0, import_node_util9.promisify)(import_node_child_process30.execFile)(swiftCommand(), args, { ...options, signal });
38059
+ await (0, import_node_util9.promisify)(import_node_child_process31.execFile)(swiftCommand(), args, { ...options, signal });
38060
38060
  } catch (error) {
38061
38061
  throw failed(error);
38062
38062
  }
@@ -38097,14 +38097,14 @@ function swiftTargetFiles(manifest, target) {
38097
38097
  }
38098
38098
  return [...new Set(files2)].sort();
38099
38099
  }
38100
- var import_node_child_process30, import_node_crypto24, import_node_fs55, import_node_os12, import_node_path53, import_node_util9, TARGET_TYPES, targetRelative, isTargetType, record, array3, string4, cacheDir3, evaluated, execFileAsync, cachedToolchain, SwiftManifestPreparationRequired, manifestPreparations, GUEST_PLATFORMS, within, requirementClause;
38100
+ var import_node_child_process31, import_node_crypto24, import_node_fs55, import_node_os13, import_node_path53, import_node_util9, TARGET_TYPES, targetRelative, isTargetType, record, array3, string4, cacheDir3, evaluated, execFileAsync, cachedToolchain, SwiftManifestPreparationRequired, manifestPreparations, GUEST_PLATFORMS, within, requirementClause;
38101
38101
  var init_swift_package_manifest = __esm({
38102
38102
  "src/swift-package-manifest.ts"() {
38103
38103
  "use strict";
38104
- import_node_child_process30 = require("node:child_process");
38104
+ import_node_child_process31 = require("node:child_process");
38105
38105
  import_node_crypto24 = require("node:crypto");
38106
38106
  import_node_fs55 = __toESM(require("node:fs"), 1);
38107
- import_node_os12 = __toESM(require("node:os"), 1);
38107
+ import_node_os13 = __toESM(require("node:os"), 1);
38108
38108
  import_node_path53 = __toESM(require("node:path"), 1);
38109
38109
  import_node_util9 = require("node:util");
38110
38110
  init_home_paths();
@@ -38128,7 +38128,7 @@ var init_swift_package_manifest = __esm({
38128
38128
  string4 = (value) => typeof value === "string" ? value : void 0;
38129
38129
  cacheDir3 = import_node_path53.default.join(cacheDir(), "swift-manifests");
38130
38130
  evaluated = /* @__PURE__ */ new Map();
38131
- execFileAsync = (0, import_node_util9.promisify)(import_node_child_process30.execFile);
38131
+ execFileAsync = (0, import_node_util9.promisify)(import_node_child_process31.execFile);
38132
38132
  SwiftManifestPreparationRequired = class extends Error {
38133
38133
  constructor(dir) {
38134
38134
  super(`swift package manifest requires preparation: ${dir}`);
@@ -38813,7 +38813,7 @@ function loadProject(xcodeproj) {
38813
38813
  function selectedDeveloperDir() {
38814
38814
  developerDir ??= process.platform === "darwin" ? (
38815
38815
  // runner-toolchain-platform: darwin
38816
- (0, import_node_child_process31.execFileSync)("xcode-select", ["-p"], {
38816
+ (0, import_node_child_process32.execFileSync)("xcode-select", ["-p"], {
38817
38817
  encoding: "utf8",
38818
38818
  stdio: ["ignore", "pipe", "pipe"]
38819
38819
  }).trim()
@@ -39217,7 +39217,7 @@ function targetMembers(ref, settings, options, settingKeys, projectInputs) {
39217
39217
  str(phase.shellPath) ?? "/bin/sh",
39218
39218
  str(phase.shellScript) ?? ""
39219
39219
  );
39220
- (0, import_node_child_process31.execFileSync)(shell, args, {
39220
+ (0, import_node_child_process32.execFileSync)(shell, args, {
39221
39221
  cwd: project2.projectDir,
39222
39222
  env,
39223
39223
  stdio: ["ignore", "pipe", "pipe"],
@@ -39325,7 +39325,7 @@ ${output2}`
39325
39325
  const families = settings("TARGETED_DEVICE_FAMILY").split(",").map((value) => value.trim());
39326
39326
  if (families.includes("1")) args.push("--target-device", "iphone");
39327
39327
  if (families.includes("2")) args.push("--target-device", "ipad");
39328
- (0, import_node_child_process31.execFileSync)("xcrun", args, {
39328
+ (0, import_node_child_process32.execFileSync)("xcrun", args, {
39329
39329
  cwd: project2.projectDir,
39330
39330
  stdio: ["ignore", "pipe", "pipe"],
39331
39331
  timeout: runScriptTimeoutMs
@@ -39370,7 +39370,7 @@ ${output2}`
39370
39370
  args.push("-swiftVersion", settings("SWIFT_VERSION") || "5.0");
39371
39371
  if (settings("DEFINES_MODULE") === "YES")
39372
39372
  args.push("-moduleName", settings("PRODUCT_MODULE_NAME"));
39373
- (0, import_node_child_process31.execFileSync)("xcrun", args, {
39373
+ (0, import_node_child_process32.execFileSync)("xcrun", args, {
39374
39374
  cwd: project2.projectDir,
39375
39375
  stdio: ["ignore", "pipe", "pipe"],
39376
39376
  timeout: runScriptTimeoutMs
@@ -40778,11 +40778,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
40778
40778
  cocoapods
40779
40779
  };
40780
40780
  }
40781
- var import_node_child_process31, import_node_crypto25, import_node_fs56, import_node_path55, 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, loaded, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
40781
+ var import_node_child_process32, import_node_crypto25, import_node_fs56, import_node_path55, 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, loaded, developerDir, preparedSourcePhases, isPodsProject, targetRefs, NativeAppTargetSelectionError, workspaceResolvedFile, SwiftPackageResolutionRequired;
40782
40782
  var init_xcode_project = __esm({
40783
40783
  "src/xcode-project.ts"() {
40784
40784
  "use strict";
40785
- import_node_child_process31 = require("node:child_process");
40785
+ import_node_child_process32 = require("node:child_process");
40786
40786
  import_node_crypto25 = require("node:crypto");
40787
40787
  import_node_fs56 = __toESM(require("node:fs"), 1);
40788
40788
  import_node_path55 = __toESM(require("node:path"), 1);
@@ -40882,12 +40882,12 @@ function compiledSwiftHelper(swift, name3) {
40882
40882
  try {
40883
40883
  import_node_fs61.default.mkdirSync(cacheDir(), { recursive: true });
40884
40884
  const source = import_node_path60.default.join(
40885
- import_node_fs61.default.mkdtempSync(import_node_path60.default.join(import_node_os14.default.tmpdir(), `${name3}-`)),
40885
+ import_node_fs61.default.mkdtempSync(import_node_path60.default.join(import_node_os15.default.tmpdir(), `${name3}-`)),
40886
40886
  "main.swift"
40887
40887
  );
40888
40888
  import_node_fs61.default.writeFileSync(source, swift);
40889
40889
  try {
40890
- (0, import_node_child_process34.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
40890
+ (0, import_node_child_process35.execFileSync)("xcrun", ["swiftc", "-o", binary2, source], { stdio: "pipe" });
40891
40891
  } finally {
40892
40892
  import_node_fs61.default.rmSync(import_node_path60.default.dirname(source), { recursive: true, force: true });
40893
40893
  }
@@ -40899,14 +40899,14 @@ function compiledSwiftHelper(swift, name3) {
40899
40899
  );
40900
40900
  }
40901
40901
  }
40902
- var import_node_child_process34, import_node_crypto29, import_node_fs61, import_node_os14, import_node_path60;
40902
+ var import_node_child_process35, import_node_crypto29, import_node_fs61, import_node_os15, import_node_path60;
40903
40903
  var init_swift_helper = __esm({
40904
40904
  "src/swift-helper.ts"() {
40905
40905
  "use strict";
40906
- import_node_child_process34 = require("node:child_process");
40906
+ import_node_child_process35 = require("node:child_process");
40907
40907
  import_node_crypto29 = require("node:crypto");
40908
40908
  import_node_fs61 = __toESM(require("node:fs"), 1);
40909
- import_node_os14 = __toESM(require("node:os"), 1);
40909
+ import_node_os15 = __toESM(require("node:os"), 1);
40910
40910
  import_node_path60 = __toESM(require("node:path"), 1);
40911
40911
  init_home_paths();
40912
40912
  }
@@ -41488,12 +41488,12 @@ function rustStaticLibrary(file, moduleRoot) {
41488
41488
  const flags = ["--no-sort", "--extern-only", "--defined-only", "--format=just-symbols"];
41489
41489
  const options = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
41490
41490
  const symbols = (input) => {
41491
- const raw2 = (0, import_node_child_process36.execFileSync)(
41491
+ const raw2 = (0, import_node_child_process37.execFileSync)(
41492
41492
  import_node_path69.default.join(toolchain.toolchainBin, "llvm-nm"),
41493
41493
  [...flags, input],
41494
41494
  options
41495
41495
  ).trim().split("\n");
41496
- const demangled = (0, import_node_child_process36.execFileSync)(
41496
+ const demangled = (0, import_node_child_process37.execFileSync)(
41497
41497
  import_node_path69.default.join(toolchain.toolchainBin, "llvm-nm"),
41498
41498
  [...flags, "--demangle", input],
41499
41499
  options
@@ -41508,7 +41508,7 @@ function rustStaticLibrary(file, moduleRoot) {
41508
41508
  const stage = import_node_fs70.default.mkdtempSync(import_node_path69.default.join(directory2, "build-"));
41509
41509
  try {
41510
41510
  const object7 = import_node_path69.default.join(stage, "library.o");
41511
- (0, import_node_child_process36.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "wasm-ld"), [
41511
+ (0, import_node_child_process37.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "wasm-ld"), [
41512
41512
  "-mwasm64",
41513
41513
  "-r",
41514
41514
  "--whole-archive",
@@ -41524,7 +41524,7 @@ function rustStaticLibrary(file, moduleRoot) {
41524
41524
  );
41525
41525
  import_node_fs70.default.writeFileSync(object7, localizeDefinedWasmSymbols(import_node_fs70.default.readFileSync(object7), names));
41526
41526
  const output2 = import_node_path69.default.join(stage, "library.a");
41527
- (0, import_node_child_process36.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object7]);
41527
+ (0, import_node_child_process37.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object7]);
41528
41528
  import_node_fs70.default.renameSync(output2, archive);
41529
41529
  } finally {
41530
41530
  import_node_fs70.default.rmSync(stage, { recursive: true, force: true });
@@ -41543,7 +41543,7 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
41543
41543
  import_node_fs70.default.mkdirSync(directory2, { recursive: true });
41544
41544
  const temporary = import_node_path69.default.join(directory2, `combined-${(0, import_node_crypto35.randomUUID)()}.a`);
41545
41545
  try {
41546
- (0, import_node_child_process36.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "llvm-ar"), [
41546
+ (0, import_node_child_process37.execFileSync)(import_node_path69.default.join(toolchain.toolchainBin, "llvm-ar"), [
41547
41547
  "qcsDL",
41548
41548
  temporary,
41549
41549
  ...files2
@@ -41554,11 +41554,11 @@ function combineNativeStaticLibraries(files2, moduleRoot) {
41554
41554
  }
41555
41555
  return archive;
41556
41556
  }
41557
- var import_node_child_process36, import_node_crypto35, import_node_fs70, import_node_path69, NATIVE_STATIC_LIBRARY_RECIPES;
41557
+ var import_node_child_process37, import_node_crypto35, import_node_fs70, import_node_path69, NATIVE_STATIC_LIBRARY_RECIPES;
41558
41558
  var init_native_static_libraries = __esm({
41559
41559
  "src/native-static-libraries.ts"() {
41560
41560
  "use strict";
41561
- import_node_child_process36 = require("node:child_process");
41561
+ import_node_child_process37 = require("node:child_process");
41562
41562
  import_node_crypto35 = require("node:crypto");
41563
41563
  import_node_fs70 = __toESM(require("node:fs"), 1);
41564
41564
  import_node_path69 = __toESM(require("node:path"), 1);
@@ -42591,11 +42591,11 @@ function resolveSwiftPackages(options) {
42591
42591
  result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
42592
42592
  return result;
42593
42593
  }
42594
- var import_node_child_process37, import_node_crypto37, import_node_fs72, import_node_path71, import_promises7, import_node_util13, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
42594
+ var import_node_child_process38, import_node_crypto37, import_node_fs72, import_node_path71, import_promises7, import_node_util13, swiftBinaryOnDisk, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync2, checkoutKey;
42595
42595
  var init_swift_packages = __esm({
42596
42596
  "src/swift-packages.ts"() {
42597
42597
  "use strict";
42598
- import_node_child_process37 = require("node:child_process");
42598
+ import_node_child_process38 = require("node:child_process");
42599
42599
  import_node_crypto37 = require("node:crypto");
42600
42600
  import_node_fs72 = __toESM(require("node:fs"), 1);
42601
42601
  import_node_path71 = __toESM(require("node:path"), 1);
@@ -42616,7 +42616,7 @@ var init_swift_packages = __esm({
42616
42616
  BINARY = "is a binary framework";
42617
42617
  blockers = (reasons) => [...new Set(reasons.flat())];
42618
42618
  verified = /* @__PURE__ */ new Set();
42619
- execFileAsync2 = (0, import_node_util13.promisify)(import_node_child_process37.execFile);
42619
+ execFileAsync2 = (0, import_node_util13.promisify)(import_node_child_process38.execFile);
42620
42620
  checkoutKey = (dir, pin2) => `${dir}\0${pin2.revision}`;
42621
42621
  }
42622
42622
  });
@@ -42683,10 +42683,10 @@ function privateSentrySlice(entry, moduleRoot) {
42683
42683
  throw new Error(
42684
42684
  "the Sentry slice for a private Swift distribution builds from a Contrast source checkout"
42685
42685
  );
42686
- const staging = import_node_fs73.default.mkdtempSync(import_node_path72.default.join(import_node_fs73.default.realpathSync(import_node_os15.default.tmpdir()), "sentry-slice-"));
42686
+ const staging = import_node_fs73.default.mkdtempSync(import_node_path72.default.join(import_node_fs73.default.realpathSync(import_node_os16.default.tmpdir()), "sentry-slice-"));
42687
42687
  try {
42688
42688
  process.stderr.write("peach: building the Sentry slice for a private distribution\u2026\n");
42689
- (0, import_node_child_process38.execFileSync)("bun", [script, "--output", staging, "--module-root", moduleRoot], {
42689
+ (0, import_node_child_process39.execFileSync)("bun", [script, "--output", staging, "--module-root", moduleRoot], {
42690
42690
  cwd: import_node_path72.default.resolve(sourceSwiftCheckout(), "../.."),
42691
42691
  stdio: ["ignore", 2, 2]
42692
42692
  });
@@ -42761,14 +42761,14 @@ function nativeSwiftSlice(standin, moduleRoot, generator, configured, artifact)
42761
42761
  }
42762
42762
  };
42763
42763
  }
42764
- var import_node_child_process38, import_node_crypto38, import_node_fs73, import_node_os15, import_node_path72, SENTRY_SWIFT_SLICE;
42764
+ var import_node_child_process39, import_node_crypto38, import_node_fs73, import_node_os16, import_node_path72, SENTRY_SWIFT_SLICE;
42765
42765
  var init_native_swift_slices = __esm({
42766
42766
  "src/native-swift-slices.ts"() {
42767
42767
  "use strict";
42768
- import_node_child_process38 = require("node:child_process");
42768
+ import_node_child_process39 = require("node:child_process");
42769
42769
  import_node_crypto38 = require("node:crypto");
42770
42770
  import_node_fs73 = __toESM(require("node:fs"), 1);
42771
- import_node_os15 = __toESM(require("node:os"), 1);
42771
+ import_node_os16 = __toESM(require("node:os"), 1);
42772
42772
  import_node_path72 = __toESM(require("node:path"), 1);
42773
42773
  init_native_prebuilt();
42774
42774
  init_swift_compile();
@@ -43056,7 +43056,7 @@ async function emitCxxStandin(input) {
43056
43056
  "-I",
43057
43057
  input.headers
43058
43058
  ];
43059
- const includes = (0, import_node_child_process39.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
43059
+ const includes = (0, import_node_child_process40.spawnSync)(input.clang, [...flags, "-M", "-MT", "peach", probe], {
43060
43060
  encoding: "utf8",
43061
43061
  env: swiftEnvironment(),
43062
43062
  maxBuffer: 16 * 1024 * 1024
@@ -43076,7 +43076,7 @@ async function emitCxxStandin(input) {
43076
43076
  const output2 = import_node_fs76.default.openSync(ast, "w");
43077
43077
  let parsed;
43078
43078
  try {
43079
- parsed = (0, import_node_child_process39.spawnSync)(
43079
+ parsed = (0, import_node_child_process40.spawnSync)(
43080
43080
  input.clang,
43081
43081
  [...flags, "-fsyntax-only", "-Xclang", "-ast-dump=json", probe],
43082
43082
  { stdio: ["ignore", output2, "pipe"], encoding: "utf8", env: swiftEnvironment() }
@@ -43134,7 +43134,7 @@ async function emitCxxStandin(input) {
43134
43134
  sourceFile,
43135
43135
  [...prelude, ...live.map((item) => item.text)].join("\n") + "\n"
43136
43136
  );
43137
- const checked = (0, import_node_child_process39.spawnSync)(
43137
+ const checked = (0, import_node_child_process40.spawnSync)(
43138
43138
  input.clang,
43139
43139
  [
43140
43140
  ...flags,
@@ -43168,11 +43168,11 @@ async function emitCxxStandin(input) {
43168
43168
  excluded
43169
43169
  };
43170
43170
  }
43171
- var import_node_child_process39, import_node_fs76, import_node_path74, QUALIFIERS, UNNAMEABLE;
43171
+ var import_node_child_process40, import_node_fs76, import_node_path74, QUALIFIERS, UNNAMEABLE;
43172
43172
  var init_swift_cxx_standin = __esm({
43173
43173
  "src/swift-cxx-standin.ts"() {
43174
43174
  "use strict";
43175
- import_node_child_process39 = require("node:child_process");
43175
+ import_node_child_process40 = require("node:child_process");
43176
43176
  import_node_fs76 = __toESM(require("node:fs"), 1);
43177
43177
  import_node_path74 = __toESM(require("node:path"), 1);
43178
43178
  init_swift_cxx_declarations();
@@ -43424,7 +43424,7 @@ var init_swift_standin_builtin_behavior = __esm({
43424
43424
 
43425
43425
  // src/swift-standins.ts
43426
43426
  function exec(file, args, cwd) {
43427
- return (0, import_node_child_process40.execFileSync)(file, args, {
43427
+ return (0, import_node_child_process41.execFileSync)(file, args, {
43428
43428
  cwd,
43429
43429
  encoding: "utf8",
43430
43430
  env: swiftEnvironment(),
@@ -44110,7 +44110,7 @@ function placeholderStandin(surface, binary2, toolchain, work, behavior, sibling
44110
44110
  const out = import_node_path75.default.join(work, "graphs");
44111
44111
  import_node_fs77.default.mkdirSync(import_node_path75.default.join(work, "interface"), { recursive: true });
44112
44112
  import_node_fs77.default.mkdirSync(out, { recursive: true });
44113
- const extracted = (0, import_node_child_process40.spawnSync)(
44113
+ const extracted = (0, import_node_child_process41.spawnSync)(
44114
44114
  import_node_path75.default.join(toolchain.toolchainBin, "swiftc"),
44115
44115
  [
44116
44116
  "-emit-module",
@@ -44511,7 +44511,7 @@ function graphStandin(module2, graphs, values, wasm, binary2, toolchain, work, r
44511
44511
  );
44512
44512
  }
44513
44513
  import_node_fs77.default.writeFileSync(file, source + trailer);
44514
- const check2 = (0, import_node_child_process40.spawnSync)(
44514
+ const check2 = (0, import_node_child_process41.spawnSync)(
44515
44515
  import_node_path75.default.join(toolchain.toolchainBin, "swiftc"),
44516
44516
  // emitting the module runs the diagnostics a typecheck skips, such as
44517
44517
  // literal overflow, which the app's build of the stand-in reaches
@@ -44879,7 +44879,7 @@ async function cxxStandin(surface, binary2, toolchain, work) {
44879
44879
  roots.map((root) => `#include ${JSON.stringify(root)}
44880
44880
  `).join("")
44881
44881
  );
44882
- const language = (0, import_node_child_process40.spawnSync)(
44882
+ const language = (0, import_node_child_process41.spawnSync)(
44883
44883
  import_node_path75.default.join(toolchain.toolchainBin, "clang"),
44884
44884
  [
44885
44885
  "-target",
@@ -45100,7 +45100,7 @@ function buildRustCrate(manifest, library, searchRoot, moduleRoot, entry = rustC
45100
45100
  import_node_path75.default.relative(common2, crateWorkspace(manifest)),
45101
45101
  "Cargo.lock"
45102
45102
  );
45103
- const result = (0, import_node_child_process40.spawnSync)(
45103
+ const result = (0, import_node_child_process41.spawnSync)(
45104
45104
  process.execPath,
45105
45105
  [
45106
45106
  runner,
@@ -45248,7 +45248,7 @@ async function sourceStandins(binaries, toolchain, provided, behavior) {
45248
45248
  })
45249
45249
  );
45250
45250
  const build = await new Promise((resolve7) => {
45251
- const child = (0, import_node_child_process40.spawn)(
45251
+ const child = (0, import_node_child_process41.spawn)(
45252
45252
  "bun",
45253
45253
  [
45254
45254
  import_node_path75.default.join(repo, "scripts/build/swift-standins-submit.ts"),
@@ -45777,11 +45777,11 @@ async function buildStandins(binaries, toolchain, provided, behavior) {
45777
45777
  import_node_fs77.default.rmSync(modules, { recursive: true, force: true });
45778
45778
  }
45779
45779
  }
45780
- var import_node_child_process40, import_node_crypto39, import_node_fs77, 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;
45780
+ var import_node_child_process41, import_node_crypto39, import_node_fs77, 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;
45781
45781
  var init_swift_standins = __esm({
45782
45782
  "src/swift-standins.ts"() {
45783
45783
  "use strict";
45784
- import_node_child_process40 = require("node:child_process");
45784
+ import_node_child_process41 = require("node:child_process");
45785
45785
  import_node_crypto39 = require("node:crypto");
45786
45786
  import_node_fs77 = __toESM(require("node:fs"), 1);
45787
45787
  import_node_path75 = __toESM(require("node:path"), 1);
@@ -46506,7 +46506,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
46506
46506
  provided: [...providers.keys()]
46507
46507
  };
46508
46508
  try {
46509
- const lock = (0, import_node_child_process41.spawnSync)(
46509
+ const lock = (0, import_node_child_process42.spawnSync)(
46510
46510
  "perl",
46511
46511
  ["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
46512
46512
  { stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
@@ -46677,7 +46677,7 @@ function prepareXcodeSwiftProducts(app, binaries, moduleRoot) {
46677
46677
  import_node_path76.default.join(work, `${target.moduleName}.o`)
46678
46678
  ]
46679
46679
  ];
46680
- const result = (0, import_node_child_process41.spawnSync)(frontend, args, {
46680
+ const result = (0, import_node_child_process42.spawnSync)(frontend, args, {
46681
46681
  cwd: work,
46682
46682
  encoding: "utf8",
46683
46683
  env: swiftEnvironment(),
@@ -46797,7 +46797,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
46797
46797
  const work = import_node_path76.default.join(parent, key2);
46798
46798
  const descriptor = import_node_fs78.default.openSync(`${work}.lock`, "a");
46799
46799
  try {
46800
- const locked = (0, import_node_child_process41.spawnSync)(
46800
+ const locked = (0, import_node_child_process42.spawnSync)(
46801
46801
  "perl",
46802
46802
  ["-e", 'open(my $f, ">&=", 3) or die $!; flock($f, 2) or die $!'],
46803
46803
  { stdio: ["ignore", "pipe", "pipe", descriptor], encoding: "utf8" }
@@ -47045,7 +47045,7 @@ async function prepareXcodeObjCImplementations(app, binaries, moduleRoot) {
47045
47045
  ...dependencies ? ["-MD", "-MF", dependencies, "-H"] : []
47046
47046
  ];
47047
47047
  const result = await new Promise((resolve7) => {
47048
- const child = (0, import_node_child_process41.spawn)(
47048
+ const child = (0, import_node_child_process42.spawn)(
47049
47049
  import_node_path76.default.join(toolchain.toolchainBin, cxx ? "clang++" : "clang"),
47050
47050
  args,
47051
47051
  {
@@ -47126,11 +47126,11 @@ ${reported.trimEnd() || `Clang exited with status ${result.status}`}`;
47126
47126
  import_node_fs78.default.closeSync(descriptor);
47127
47127
  }
47128
47128
  }
47129
- var import_node_child_process41, import_node_crypto40, import_node_fs78, import_node_path76, SwiftObjCCompilationError, isDirectory2, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
47129
+ var import_node_child_process42, import_node_crypto40, import_node_fs78, import_node_path76, SwiftObjCCompilationError, isDirectory2, isSdkInclude, FRAMEWORK_IMPORT, OWN_IMPORT;
47130
47130
  var init_swift_objc_compile = __esm({
47131
47131
  "src/swift-objc-compile.ts"() {
47132
47132
  "use strict";
47133
- import_node_child_process41 = require("node:child_process");
47133
+ import_node_child_process42 = require("node:child_process");
47134
47134
  import_node_crypto40 = require("node:crypto");
47135
47135
  import_node_fs78 = __toESM(require("node:fs"), 1);
47136
47136
  import_node_path76 = __toESM(require("node:path"), 1);
@@ -47224,7 +47224,7 @@ function privateAdapterArchive(family, roots, moduleRoot) {
47224
47224
  "--distribution",
47225
47225
  moduleRoot
47226
47226
  ];
47227
- const verified2 = import_node_fs80.default.existsSync(import_node_path78.default.join(dir, ADAPTER_MANIFEST)) && (0, import_node_child_process42.spawnSync)("bun", [script, "--verify", ...args(dir)], { stdio: "ignore" }).status === 0;
47227
+ const verified2 = import_node_fs80.default.existsSync(import_node_path78.default.join(dir, ADAPTER_MANIFEST)) && (0, import_node_child_process43.spawnSync)("bun", [script, "--verify", ...args(dir)], { stdio: "ignore" }).status === 0;
47228
47228
  if (!verified2) {
47229
47229
  process.stderr.write(
47230
47230
  `peach: building ${label} for private distribution ${distribution.id}\u2026
@@ -47232,7 +47232,7 @@ function privateAdapterArchive(family, roots, moduleRoot) {
47232
47232
  );
47233
47233
  const staged = `${dir}.${process.pid}`;
47234
47234
  import_node_fs80.default.rmSync(staged, { recursive: true, force: true });
47235
- (0, import_node_child_process42.execFileSync)("bun", [script, ...args(staged)], { stdio: ["ignore", 2, 2] });
47235
+ (0, import_node_child_process43.execFileSync)("bun", [script, ...args(staged)], { stdio: ["ignore", 2, 2] });
47236
47236
  import_node_fs80.default.rmSync(dir, { recursive: true, force: true });
47237
47237
  import_node_fs80.default.renameSync(staged, dir);
47238
47238
  }
@@ -47274,11 +47274,11 @@ async function resolveAdapterArchive(family, roots, moduleRoot, lock, signal) {
47274
47274
  base64: import_node_fs80.default.readFileSync(import_node_path78.default.join(dir, manifest.archive.path)).toString("base64")
47275
47275
  };
47276
47276
  }
47277
- var import_node_child_process42, import_node_fs80, import_node_path78, installedVersion;
47277
+ var import_node_child_process43, import_node_fs80, import_node_path78, installedVersion;
47278
47278
  var init_nitro_adapter = __esm({
47279
47279
  "src/nitro-adapter.ts"() {
47280
47280
  "use strict";
47281
- import_node_child_process42 = require("node:child_process");
47281
+ import_node_child_process43 = require("node:child_process");
47282
47282
  import_node_fs80 = __toESM(require("node:fs"), 1);
47283
47283
  import_node_path78 = __toESM(require("node:path"), 1);
47284
47284
  init_src();
@@ -49665,7 +49665,7 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
49665
49665
  failed = captured.failed;
49666
49666
  reached = captured.reached;
49667
49667
  } else {
49668
- const result2 = (0, import_node_child_process43.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
49668
+ const result2 = (0, import_node_child_process44.spawnSync)(clang, [...cleaned, "-M", "-MT", "peach", "-H"], {
49669
49669
  cwd: work,
49670
49670
  encoding: "utf8",
49671
49671
  env: swiftEnvironment(),
@@ -49788,11 +49788,11 @@ async function xcodeCxxReachable(app, binaries, moduleRoot, clang) {
49788
49788
  );
49789
49789
  return result;
49790
49790
  }
49791
- var import_node_child_process43, import_node_crypto42, import_node_fs83, import_node_path81, cachedInputs;
49791
+ var import_node_child_process44, import_node_crypto42, import_node_fs83, import_node_path81, cachedInputs;
49792
49792
  var init_swift_cxx_reachable = __esm({
49793
49793
  "src/swift-cxx-reachable.ts"() {
49794
49794
  "use strict";
49795
- import_node_child_process43 = require("node:child_process");
49795
+ import_node_child_process44 = require("node:child_process");
49796
49796
  import_node_crypto42 = require("node:crypto");
49797
49797
  import_node_fs83 = __toESM(require("node:fs"), 1);
49798
49798
  import_node_path81 = __toESM(require("node:path"), 1);
@@ -49881,19 +49881,19 @@ function rasterizePdfFile(diskPath, pdfSha256) {
49881
49881
  } catch {
49882
49882
  }
49883
49883
  const out = import_node_path83.default.join(
49884
- import_node_fs85.default.mkdtempSync(import_node_path83.default.join(import_node_os16.default.tmpdir(), "swift-pdf-png-")),
49884
+ import_node_fs85.default.mkdtempSync(import_node_path83.default.join(import_node_os17.default.tmpdir(), "swift-pdf-png-")),
49885
49885
  "out.png"
49886
49886
  );
49887
49887
  try {
49888
49888
  if (process.platform === "darwin") {
49889
- (0, import_node_child_process44.execFileSync)(
49889
+ (0, import_node_child_process45.execFileSync)(
49890
49890
  compiledSwiftHelper(RASTER_SWIFT, "swift-pdf-raster"),
49891
49891
  [diskPath, "3", out],
49892
49892
  { stdio: "pipe" }
49893
49893
  );
49894
49894
  } else {
49895
49895
  const { executable, prefixArgs } = rnxSelfInvocation();
49896
- (0, import_node_child_process44.execFileSync)(
49896
+ (0, import_node_child_process45.execFileSync)(
49897
49897
  executable,
49898
49898
  [
49899
49899
  ...prefixArgs,
@@ -49928,11 +49928,11 @@ function rasterizeSvgFile(diskPath, svgSha256) {
49928
49928
  const cached3 = import_node_path83.default.join(cacheDir(), `swift-svg-png-${tag}-${svgSha256}.png`);
49929
49929
  if (import_node_fs85.default.existsSync(cached3)) return { bytes: import_node_fs85.default.readFileSync(cached3) };
49930
49930
  const out = import_node_path83.default.join(
49931
- import_node_fs85.default.mkdtempSync(import_node_path83.default.join(import_node_os16.default.tmpdir(), "swift-svg-png-")),
49931
+ import_node_fs85.default.mkdtempSync(import_node_path83.default.join(import_node_os17.default.tmpdir(), "swift-svg-png-")),
49932
49932
  "out.png"
49933
49933
  );
49934
49934
  try {
49935
- (0, import_node_child_process44.execFileSync)(binary2, [diskPath, "3", out], { stdio: "pipe" });
49935
+ (0, import_node_child_process45.execFileSync)(binary2, [diskPath, "3", out], { stdio: "pipe" });
49936
49936
  const bytes = import_node_fs85.default.readFileSync(out);
49937
49937
  import_node_fs85.default.mkdirSync(cacheDir(), { recursive: true });
49938
49938
  import_node_fs85.default.copyFileSync(out, cached3);
@@ -49945,14 +49945,14 @@ function rasterizeSvgFile(diskPath, svgSha256) {
49945
49945
  import_node_fs85.default.rmSync(import_node_path83.default.dirname(out), { recursive: true, force: true });
49946
49946
  }
49947
49947
  }
49948
- var import_node_child_process44, import_node_crypto43, import_node_fs85, import_node_os16, import_node_path83, RASTER_SWIFT, RASTER_SVG_SWIFT;
49948
+ var import_node_child_process45, import_node_crypto43, import_node_fs85, import_node_os17, import_node_path83, RASTER_SWIFT, RASTER_SVG_SWIFT;
49949
49949
  var init_swift_pdf_raster = __esm({
49950
49950
  "src/swift-pdf-raster.ts"() {
49951
49951
  "use strict";
49952
- import_node_child_process44 = require("node:child_process");
49952
+ import_node_child_process45 = require("node:child_process");
49953
49953
  import_node_crypto43 = require("node:crypto");
49954
49954
  import_node_fs85 = __toESM(require("node:fs"), 1);
49955
- import_node_os16 = __toESM(require("node:os"), 1);
49955
+ import_node_os17 = __toESM(require("node:os"), 1);
49956
49956
  import_node_path83 = __toESM(require("node:path"), 1);
49957
49957
  init_internal_child_contract();
49958
49958
  init_self_invocation();
@@ -50169,7 +50169,7 @@ async function wasmPortableAssembly(binaries, toolchainBin, moduleRoot) {
50169
50169
  const known = emptyWasmAssembly.get(key2);
50170
50170
  if (known) return known;
50171
50171
  const result = new Promise(
50172
- (resolve7) => (0, import_node_child_process45.execFile)(
50172
+ (resolve7) => (0, import_node_child_process46.execFile)(
50173
50173
  clang,
50174
50174
  [
50175
50175
  "-target",
@@ -51413,7 +51413,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
51413
51413
  }
51414
51414
  }
51415
51415
  if (xcode?.app.postBundleScripts.length) {
51416
- const dir = import_node_fs86.default.mkdtempSync(import_node_path84.default.join(import_node_os17.default.tmpdir(), "peach-xcode-bundle-"));
51416
+ const dir = import_node_fs86.default.mkdtempSync(import_node_path84.default.join(import_node_os18.default.tmpdir(), "peach-xcode-bundle-"));
51417
51417
  const wrapper = import_node_path84.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
51418
51418
  const bundle = import_node_path84.default.join(dir, wrapper);
51419
51419
  try {
@@ -51464,7 +51464,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
51464
51464
  });
51465
51465
  try {
51466
51466
  const [shell, ...args] = phase.command;
51467
- (0, import_node_child_process45.execFileSync)(shell, args, {
51467
+ (0, import_node_child_process46.execFileSync)(shell, args, {
51468
51468
  cwd: phase.directory,
51469
51469
  env,
51470
51470
  stdio: ["ignore", "pipe", "pipe"],
@@ -52317,15 +52317,15 @@ async function serveSwiftPackageAsset(pathname, res) {
52317
52317
  res.end("swift artifact is stale");
52318
52318
  return true;
52319
52319
  }
52320
- var import_node_async_hooks2, import_node_child_process45, import_node_crypto44, import_node_fs86, import_node_os17, import_node_path84, ARTIFACT_PATH, 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;
52320
+ var import_node_async_hooks2, import_node_child_process46, import_node_crypto44, import_node_fs86, import_node_os18, import_node_path84, ARTIFACT_PATH, 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;
52321
52321
  var init_swift_host = __esm({
52322
52322
  "src/swift-host.ts"() {
52323
52323
  "use strict";
52324
52324
  import_node_async_hooks2 = require("node:async_hooks");
52325
- import_node_child_process45 = require("node:child_process");
52325
+ import_node_child_process46 = require("node:child_process");
52326
52326
  import_node_crypto44 = require("node:crypto");
52327
52327
  import_node_fs86 = __toESM(require("node:fs"), 1);
52328
- import_node_os17 = __toESM(require("node:os"), 1);
52328
+ import_node_os18 = __toESM(require("node:os"), 1);
52329
52329
  import_node_path84 = __toESM(require("node:path"), 1);
52330
52330
  init_bundleAssets();
52331
52331
  init_stringCatalog();
@@ -54720,11 +54720,11 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
54720
54720
  files: hashTree(generatedRoot)
54721
54721
  };
54722
54722
  }
54723
- var import_node_child_process46, import_node_crypto45, import_node_fs90, import_node_module10, import_node_path88, import_node_util14, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
54723
+ var import_node_child_process47, import_node_crypto45, import_node_fs90, import_node_module10, import_node_path88, import_node_util14, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS, LEGACY_BRIDGE_PODS_VERSIONED;
54724
54724
  var init_turbo_codegen_intake = __esm({
54725
54725
  "src/turbo-codegen-intake.ts"() {
54726
54726
  "use strict";
54727
- import_node_child_process46 = require("node:child_process");
54727
+ import_node_child_process47 = require("node:child_process");
54728
54728
  import_node_crypto45 = require("node:crypto");
54729
54729
  import_node_fs90 = __toESM(require("node:fs"), 1);
54730
54730
  import_node_module10 = require("node:module");
@@ -54734,7 +54734,7 @@ var init_turbo_codegen_intake = __esm({
54734
54734
  init_is_record();
54735
54735
  init_nitro_source();
54736
54736
  init_podspec_sources();
54737
- run6 = (0, import_node_util14.promisify)(import_node_child_process46.execFile);
54737
+ run6 = (0, import_node_util14.promisify)(import_node_child_process47.execFile);
54738
54738
  RENDERER_PODS = /* @__PURE__ */ new Set([
54739
54739
  "React-Fabric",
54740
54740
  "React-FabricComponents",
@@ -57170,11 +57170,11 @@ extern "C" __attribute__((export_name("peach_fabric_component_names"))) const ch
57170
57170
  }
57171
57171
  `;
57172
57172
  }
57173
- var import_node_child_process47, import_node_crypto46, import_node_fs91, import_node_path89, import_node_util15, 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;
57173
+ var import_node_child_process48, import_node_crypto46, import_node_fs91, import_node_path89, import_node_util15, 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;
57174
57174
  var init_turbo_source = __esm({
57175
57175
  "src/turbo-source.ts"() {
57176
57176
  "use strict";
57177
- import_node_child_process47 = require("node:child_process");
57177
+ import_node_child_process48 = require("node:child_process");
57178
57178
  import_node_crypto46 = require("node:crypto");
57179
57179
  import_node_fs91 = __toESM(require("node:fs"), 1);
57180
57180
  import_node_path89 = __toESM(require("node:path"), 1);
@@ -57191,7 +57191,7 @@ var init_turbo_source = __esm({
57191
57191
  init_swift_submit();
57192
57192
  init_turbo_codegen_intake();
57193
57193
  init_xcode_project();
57194
- execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process47.execFile);
57194
+ execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process48.execFile);
57195
57195
  TURBO_CORE_TARGET = "TurboCore";
57196
57196
  TURBO_FMT_TARGET = "TurboFmt";
57197
57197
  TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
@@ -57537,7 +57537,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
57537
57537
  async function prepareTurboCompileInput(options) {
57538
57538
  await prepareTurboSourceDependencies(options.reactNativeRoot);
57539
57539
  const key2 = (0, import_node_crypto47.createHash)("sha256").update(options.providers.map(({ root }) => import_node_fs92.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs92.default.realpathSync(options.moduleRoot)).digest("hex");
57540
- const scratch2 = import_node_path90.default.join(import_node_os18.default.tmpdir(), "peach-turbo-swift", key2);
57540
+ const scratch2 = import_node_path90.default.join(import_node_os19.default.tmpdir(), "peach-turbo-swift", key2);
57541
57541
  import_node_fs92.default.mkdirSync(scratch2, { recursive: true });
57542
57542
  const codegenDir = import_node_fs92.default.mkdtempSync(import_node_path90.default.join(scratch2, "codegen-"));
57543
57543
  const collection = await collectTurboSources({
@@ -57751,14 +57751,14 @@ async function compileTurboModule(options) {
57751
57751
  collection
57752
57752
  };
57753
57753
  }
57754
- var import_node_crypto47, import_node_fs92, import_node_module11, import_node_os18, import_node_path90;
57754
+ var import_node_crypto47, import_node_fs92, import_node_module11, import_node_os19, import_node_path90;
57755
57755
  var init_turbo_compile = __esm({
57756
57756
  "src/turbo-compile.ts"() {
57757
57757
  "use strict";
57758
57758
  import_node_crypto47 = require("node:crypto");
57759
57759
  import_node_fs92 = __toESM(require("node:fs"), 1);
57760
57760
  import_node_module11 = require("node:module");
57761
- import_node_os18 = __toESM(require("node:os"), 1);
57761
+ import_node_os19 = __toESM(require("node:os"), 1);
57762
57762
  import_node_path90 = __toESM(require("node:path"), 1);
57763
57763
  init_native_app_identity_project();
57764
57764
  init_nitro_adapter();
@@ -57849,7 +57849,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57849
57849
  import_node_fs93.default.mkdirSync(members2, { recursive: true });
57850
57850
  const stripped2 = objects.map((file, index) => {
57851
57851
  const output2 = import_node_path91.default.join(members2, `${index}-${import_node_path91.default.basename(file)}`);
57852
- (0, import_node_child_process48.execFileSync)(import_node_path91.default.join(module2.toolchainBin, "llvm-objcopy"), [
57852
+ (0, import_node_child_process49.execFileSync)(import_node_path91.default.join(module2.toolchainBin, "llvm-objcopy"), [
57853
57853
  "--strip-debug",
57854
57854
  file,
57855
57855
  output2
@@ -57858,7 +57858,7 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57858
57858
  });
57859
57859
  const archive = import_node_path91.default.join(work, `lib${target.name}.a`);
57860
57860
  import_node_fs93.default.rmSync(archive, { force: true });
57861
- (0, import_node_child_process48.execFileSync)(import_node_path91.default.join(module2.toolchainBin, "llvm-ar"), [
57861
+ (0, import_node_child_process49.execFileSync)(import_node_path91.default.join(module2.toolchainBin, "llvm-ar"), [
57862
57862
  "rcsD",
57863
57863
  archive,
57864
57864
  ...stripped2
@@ -57911,11 +57911,11 @@ async function buildReactNativeCore(project2, reactNativeRoot, mode, moduleRoot)
57911
57911
  return directory2;
57912
57912
  });
57913
57913
  }
57914
- var import_node_child_process48, import_node_fs93, import_node_path91;
57914
+ var import_node_child_process49, import_node_fs93, import_node_path91;
57915
57915
  var init_react_native_core_build = __esm({
57916
57916
  "src/react-native-core-build.ts"() {
57917
57917
  "use strict";
57918
- import_node_child_process48 = require("node:child_process");
57918
+ import_node_child_process49 = require("node:child_process");
57919
57919
  import_node_fs93 = __toESM(require("node:fs"), 1);
57920
57920
  import_node_path91 = __toESM(require("node:path"), 1);
57921
57921
  init_home_paths();
@@ -58244,7 +58244,7 @@ var init_nitro_superset = __esm({
58244
58244
  init_nitroContract();
58245
58245
  init_swift_standin_digest();
58246
58246
  NITRO_SUPERSET_ENTRY_NAME = "superset";
58247
- NITRO_COMPILER_DIGEST = true ? "3f4226b3727dae50227ba7f4fd8d517c59939e4f4d2f56ef11e1dafd09705f5c" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
58247
+ NITRO_COMPILER_DIGEST = true ? "f44c818b566c9e2f13cc675454c9e5c38d346e0fb6fc47d33d179495a14f8580" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
58248
58248
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
58249
58249
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
58250
58250
  published2 = /* @__PURE__ */ new Map();
@@ -58265,7 +58265,7 @@ var init_nitro_superset = __esm({
58265
58265
  var runtime_companion_default;
58266
58266
  var init_runtime_companion = __esm({
58267
58267
  "runtime-companion.json"() {
58268
- runtime_companion_default = { abi: 1, sha256: "60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2", file: "node/cli-60900a3af6e6213c855e6682baa0ebdb6a6865510e4e3a51a24d4c584b3fdec2.cjs" };
58268
+ runtime_companion_default = { abi: 1, sha256: "0688d30cb1cc3cd8d500d66cefa68e1e54456e3a4cd15b621932e4800fc69b1d", file: "node/cli-0688d30cb1cc3cd8d500d66cefa68e1e54456e3a4cd15b621932e4800fc69b1d.cjs" };
58269
58269
  }
58270
58270
  });
58271
58271
 
@@ -58894,11 +58894,11 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
58894
58894
  }
58895
58895
  return linked;
58896
58896
  }
58897
- var import_node_child_process53, import_node_fs116, import_node_module18, import_node_path118, import_node_util19, run8, resolving;
58897
+ var import_node_child_process54, import_node_fs116, import_node_module18, import_node_path118, import_node_util19, run8, resolving;
58898
58898
  var init_android_autolinking = __esm({
58899
58899
  "src/android-autolinking.ts"() {
58900
58900
  "use strict";
58901
- import_node_child_process53 = require("node:child_process");
58901
+ import_node_child_process54 = require("node:child_process");
58902
58902
  import_node_fs116 = __toESM(require("node:fs"), 1);
58903
58903
  import_node_module18 = require("node:module");
58904
58904
  import_node_path118 = __toESM(require("node:path"), 1);
@@ -58907,7 +58907,7 @@ var init_android_autolinking = __esm({
58907
58907
  init_forked_script_contract();
58908
58908
  init_is_record();
58909
58909
  init_react_native_autolinking();
58910
- run8 = (0, import_node_util19.promisify)(import_node_child_process53.execFile);
58910
+ run8 = (0, import_node_util19.promisify)(import_node_child_process54.execFile);
58911
58911
  resolving = /* @__PURE__ */ new Map();
58912
58912
  }
58913
58913
  });
@@ -59002,11 +59002,11 @@ async function resolveAndroidGradleSources(request) {
59002
59002
  import_node_fs117.default.rmSync(work, { recursive: true, force: true });
59003
59003
  }
59004
59004
  }
59005
- var import_node_child_process54, import_node_crypto60, import_node_fs117, import_node_path119, import_node_util20, run9, modelQuery;
59005
+ var import_node_child_process55, import_node_crypto60, import_node_fs117, import_node_path119, import_node_util20, run9, modelQuery;
59006
59006
  var init_android_gradle_sources = __esm({
59007
59007
  "src/android-gradle-sources.ts"() {
59008
59008
  "use strict";
59009
- import_node_child_process54 = require("node:child_process");
59009
+ import_node_child_process55 = require("node:child_process");
59010
59010
  import_node_crypto60 = require("node:crypto");
59011
59011
  import_node_fs117 = __toESM(require("node:fs"), 1);
59012
59012
  import_node_path119 = __toESM(require("node:path"), 1);
@@ -59014,7 +59014,7 @@ var init_android_gradle_sources = __esm({
59014
59014
  init_forked_script_contract();
59015
59015
  init_is_record();
59016
59016
  init_kotlin_toolchain();
59017
- run9 = (0, import_node_util20.promisify)(import_node_child_process54.execFile);
59017
+ run9 = (0, import_node_util20.promisify)(import_node_child_process55.execFile);
59018
59018
  modelQuery = `
59019
59019
  import groovy.json.JsonOutput
59020
59020
  import groovy.json.JsonSlurper
@@ -59387,11 +59387,11 @@ async function compileJavaModuleAbi(input) {
59387
59387
  );
59388
59388
  return library;
59389
59389
  }
59390
- var import_node_child_process55, import_node_crypto61, import_node_fs119, import_node_path121, import_node_util21, run10, JAVA_BINDINGS_INITIALIZER;
59390
+ var import_node_child_process56, import_node_crypto61, import_node_fs119, import_node_path121, import_node_util21, run10, JAVA_BINDINGS_INITIALIZER;
59391
59391
  var init_java_module_abi = __esm({
59392
59392
  "src/java-module-abi.ts"() {
59393
59393
  "use strict";
59394
- import_node_child_process55 = require("node:child_process");
59394
+ import_node_child_process56 = require("node:child_process");
59395
59395
  import_node_crypto61 = require("node:crypto");
59396
59396
  import_node_fs119 = __toESM(require("node:fs"), 1);
59397
59397
  import_node_path121 = __toESM(require("node:path"), 1);
@@ -59399,7 +59399,7 @@ var init_java_module_abi = __esm({
59399
59399
  init_android_bridge_packages();
59400
59400
  init_is_record();
59401
59401
  init_kotlin_toolchain();
59402
- run10 = (0, import_node_util21.promisify)(import_node_child_process55.execFile);
59402
+ run10 = (0, import_node_util21.promisify)(import_node_child_process56.execFile);
59403
59403
  JAVA_BINDINGS_INITIALIZER = "initializeJavaBindings";
59404
59404
  }
59405
59405
  });
@@ -59533,18 +59533,18 @@ async function installKotlinSdkArchive(archive, compilerSha256) {
59533
59533
  import_node_fs120.default.rmSync(work, { recursive: true, force: true });
59534
59534
  }
59535
59535
  }
59536
- var import_node_child_process56, import_node_crypto62, import_node_fs120, import_node_path122, import_node_util22, run11;
59536
+ var import_node_child_process57, import_node_crypto62, import_node_fs120, import_node_path122, import_node_util22, run11;
59537
59537
  var init_kotlin_sdk = __esm({
59538
59538
  "src/kotlin-sdk.ts"() {
59539
59539
  "use strict";
59540
- import_node_child_process56 = require("node:child_process");
59540
+ import_node_child_process57 = require("node:child_process");
59541
59541
  import_node_crypto62 = require("node:crypto");
59542
59542
  import_node_fs120 = __toESM(require("node:fs"), 1);
59543
59543
  import_node_path122 = __toESM(require("node:path"), 1);
59544
59544
  import_node_util22 = require("node:util");
59545
59545
  init_kotlin_toolchain();
59546
59546
  init_kotlinSdkContract();
59547
- run11 = (0, import_node_util22.promisify)(import_node_child_process56.execFile);
59547
+ run11 = (0, import_node_util22.promisify)(import_node_child_process57.execFile);
59548
59548
  }
59549
59549
  });
59550
59550
 
@@ -61149,11 +61149,11 @@ async function serveKotlinRequest(pathname, res, app) {
61149
61149
  }
61150
61150
  return true;
61151
61151
  }
61152
- var import_node_child_process57, import_node_crypto64, import_node_fs123, import_node_module19, import_node_path125, import_node_util23, import_acorn3, run12, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
61152
+ var import_node_child_process58, import_node_crypto64, import_node_fs123, import_node_module19, import_node_path125, import_node_util23, import_acorn3, run12, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal3, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
61153
61153
  var init_kotlin_host = __esm({
61154
61154
  "src/kotlin-host.ts"() {
61155
61155
  "use strict";
61156
- import_node_child_process57 = require("node:child_process");
61156
+ import_node_child_process58 = require("node:child_process");
61157
61157
  import_node_crypto64 = require("node:crypto");
61158
61158
  import_node_fs123 = __toESM(require("node:fs"), 1);
61159
61159
  import_node_module19 = require("node:module");
@@ -61169,7 +61169,7 @@ var init_kotlin_host = __esm({
61169
61169
  init_kotlin_toolchain();
61170
61170
  init_kotlin_view_models();
61171
61171
  init_kotlin_module();
61172
- run12 = (0, import_node_util23.promisify)(import_node_child_process57.execFile);
61172
+ run12 = (0, import_node_util23.promisify)(import_node_child_process58.execFile);
61173
61173
  KOTLIN_ARTIFACT_PREFIX = "/__peach/kotlin-artifact/";
61174
61174
  SKIP_DIRS = /* @__PURE__ */ new Set([
61175
61175
  "node_modules",
@@ -64339,15 +64339,15 @@ function placeMetroDescriptor(listing, descriptor) {
64339
64339
  }
64340
64340
  return { files: files2, ambiguous, verified: false, mismatched: true };
64341
64341
  }
64342
- function unverifiedContentKey(dest, fileDigests) {
64342
+ function unverifiedContentKey(dest, fileDigests2) {
64343
64343
  return JSON.stringify(
64344
64344
  dest.placements.map(
64345
64345
  (placement) => placement.verified ? null : [...placement.files].map(([scale, relative4]) => {
64346
64346
  const file = (0, import_node_path130.join)(dest.directory, relative4);
64347
- let digest3 = fileDigests.get(file);
64347
+ let digest3 = fileDigests2.get(file);
64348
64348
  if (digest3 === void 0) {
64349
64349
  digest3 = (0, import_node_crypto66.createHash)("sha256").update((0, import_node_fs128.readFileSync)(file)).digest("hex");
64350
- fileDigests.set(file, digest3);
64350
+ fileDigests2.set(file, digest3);
64351
64351
  }
64352
64352
  return [scale, digest3];
64353
64353
  }).sort(([first], [second]) => first - second)
@@ -64438,9 +64438,9 @@ function searchMetroAssetDest(bundlePath, descriptors, command, assetsDirectory)
64438
64438
  }
64439
64439
  const best = Math.max(...holders.map((holder) => holder.verified));
64440
64440
  const rivals = holders.filter((holder) => holder.verified === best);
64441
- const fileDigests = /* @__PURE__ */ new Map();
64441
+ const fileDigests2 = /* @__PURE__ */ new Map();
64442
64442
  const distinct = new Set(
64443
- rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests))
64443
+ rivals.map((rival) => unverifiedContentKey(rival.dest, fileDigests2))
64444
64444
  );
64445
64445
  const winner = rivals[0];
64446
64446
  if (!winner) return { dest: null, searched, truncated, unconfirmed: false };
@@ -64858,13 +64858,13 @@ function commandWritesSim(msg) {
64858
64858
 
64859
64859
  // src/chromium-admission.ts
64860
64860
  function readChromiumQueue(deps, verified2, own) {
64861
- const { fs: fs89, os: os17, path: path114, childProcess: childProcess2 } = deps;
64861
+ const { fs: fs89, os: os18, path: path114, childProcess: childProcess2 } = deps;
64862
64862
  const dir = path114.join(
64863
- process.platform === "win32" ? os17.tmpdir() : "/tmp",
64863
+ process.platform === "win32" ? os18.tmpdir() : "/tmp",
64864
64864
  "chromium-admission"
64865
64865
  );
64866
64866
  fs89.mkdirSync(dir, { recursive: true });
64867
- const limit = Math.max(2, Math.floor(os17.cpus().length / 2));
64867
+ const limit = Math.max(2, Math.floor(os18.cpus().length / 2));
64868
64868
  const alive = (pid) => {
64869
64869
  try {
64870
64870
  process.kill(pid, 0);
@@ -65016,11 +65016,11 @@ function activeDesktopHostApp() {
65016
65016
 
65017
65017
  // src/expo-swift-host.ts
65018
65018
  var import_node_async_hooks3 = require("node:async_hooks");
65019
- var import_node_child_process49 = require("node:child_process");
65019
+ var import_node_child_process50 = require("node:child_process");
65020
65020
  var import_node_crypto49 = require("node:crypto");
65021
65021
  var import_node_fs95 = __toESM(require("node:fs"), 1);
65022
65022
  var import_node_module13 = require("node:module");
65023
- var import_node_os19 = __toESM(require("node:os"), 1);
65023
+ var import_node_os20 = __toESM(require("node:os"), 1);
65024
65024
  var import_node_path93 = __toESM(require("node:path"), 1);
65025
65025
  var import_node_url6 = require("node:url");
65026
65026
  var import_node_util17 = require("node:util");
@@ -66220,7 +66220,7 @@ var import_node_url4 = require("node:url");
66220
66220
  init_answeredNativePackages();
66221
66221
 
66222
66222
  // src/expo-native-workspace.ts
66223
- var import_node_child_process35 = require("node:child_process");
66223
+ var import_node_child_process36 = require("node:child_process");
66224
66224
  var import_node_crypto30 = require("node:crypto");
66225
66225
  var import_node_fs63 = __toESM(require("node:fs"), 1);
66226
66226
  var import_node_module6 = require("node:module");
@@ -66324,9 +66324,11 @@ function failedOutputLine(command, cwd, output2) {
66324
66324
  init_native_git();
66325
66325
 
66326
66326
  // src/one-sdk-preparation.ts
66327
+ var import_node_child_process13 = require("node:child_process");
66327
66328
  var import_node_crypto7 = require("node:crypto");
66328
66329
  var import_node_fs24 = __toESM(require("node:fs"), 1);
66329
66330
  var import_node_module4 = require("node:module");
66331
+ var import_node_os5 = __toESM(require("node:os"), 1);
66330
66332
  var import_node_path21 = __toESM(require("node:path"), 1);
66331
66333
  var import_node_url2 = require("node:url");
66332
66334
  init_native_prebuilt();
@@ -66347,6 +66349,53 @@ function readOneSDKSourceManifest(value) {
66347
66349
  }
66348
66350
 
66349
66351
  // src/one-sdk-preparation.ts
66352
+ var GENERATE_SCRIPT = `
66353
+ import { writeFileSync } from 'node:fs'
66354
+ import { pathToFileURL } from 'node:url'
66355
+ const [generatorFile, resultFile, frameworks] = process.argv.slice(1)
66356
+ const generator = await import(pathToFileURL(generatorFile).href)
66357
+ const { files, generation } = await generator.generateAppSdk(JSON.parse(frameworks))
66358
+ writeFileSync(resultFile, JSON.stringify({ generation, files: [...files] }))
66359
+ `;
66360
+ async function generateAppSdkInChild(generatorFile, frameworks) {
66361
+ const directory2 = import_node_fs24.default.mkdtempSync(import_node_path21.default.join(import_node_os5.default.tmpdir(), "peach-one-sdk-"));
66362
+ const resultFile = import_node_path21.default.join(directory2, "result.json");
66363
+ try {
66364
+ const child = (0, import_node_child_process13.spawn)(
66365
+ "node",
66366
+ [
66367
+ "--input-type=module",
66368
+ "-e",
66369
+ GENERATE_SCRIPT,
66370
+ generatorFile,
66371
+ resultFile,
66372
+ JSON.stringify(frameworks)
66373
+ ],
66374
+ { stdio: ["ignore", "ignore", "pipe"] }
66375
+ );
66376
+ let stderr = "";
66377
+ child.stderr.setEncoding("utf8");
66378
+ child.stderr.on("data", (chunk) => {
66379
+ stderr += chunk;
66380
+ });
66381
+ const [status, signal] = await new Promise(
66382
+ (resolve7, reject) => {
66383
+ child.once("error", reject);
66384
+ child.once("close", (code, closeSignal) => resolve7([code, closeSignal]));
66385
+ }
66386
+ );
66387
+ if (status !== 0)
66388
+ throw new Error(
66389
+ `One SDK source generation failed (${signal ?? `exit ${status}`})${stderr ? `: ${stderr.trim().slice(-2e3)}` : ""}`
66390
+ );
66391
+ const result = JSON.parse(
66392
+ import_node_fs24.default.readFileSync(resultFile, "utf8")
66393
+ );
66394
+ return { generation: result.generation, files: new Map(result.files) };
66395
+ } finally {
66396
+ import_node_fs24.default.rmSync(directory2, { recursive: true, force: true });
66397
+ }
66398
+ }
66350
66399
  async function selectOneSDK(appRoot) {
66351
66400
  const require2 = (0, import_node_module4.createRequire)(import_node_path21.default.join(appRoot, "package.json"));
66352
66401
  let onePackage;
@@ -66403,7 +66452,10 @@ async function prepareOneSDKSources(appRoot, output2) {
66403
66452
  import_node_fs24.default.copyFileSync(import_node_path21.default.join(published3, name3), import_node_path21.default.join(directory2, name3));
66404
66453
  return;
66405
66454
  }
66406
- const generated = await selected.generator.generateAppSdk(selected.frameworks);
66455
+ const generated = await generateAppSdkInChild(
66456
+ import_node_path21.default.join(selected.one, "dist/sdk/app.mjs"),
66457
+ selected.frameworks
66458
+ );
66407
66459
  if (generated.generation !== generation)
66408
66460
  throw new Error("One SDK source generation differs from the installed facades");
66409
66461
  import_node_fs24.default.rmSync(directory2, { recursive: true, force: true });
@@ -66425,9 +66477,9 @@ var import_node_path59 = __toESM(require("node:path"), 1);
66425
66477
  init_is_record();
66426
66478
 
66427
66479
  // src/native-firebase-config.ts
66428
- var import_node_child_process32 = require("node:child_process");
66480
+ var import_node_child_process33 = require("node:child_process");
66429
66481
  var import_node_fs57 = __toESM(require("node:fs"), 1);
66430
- var import_node_os13 = __toESM(require("node:os"), 1);
66482
+ var import_node_os14 = __toESM(require("node:os"), 1);
66431
66483
  var import_node_path56 = __toESM(require("node:path"), 1);
66432
66484
  init_is_record();
66433
66485
  init_plist();
@@ -66490,13 +66542,13 @@ function readExpoConfigResult(resultPath, status, signal, stderr) {
66490
66542
  if (!isRecord(resolved)) throw new Error("Expo native configuration is unavailable.");
66491
66543
  return resolved;
66492
66544
  }
66493
- var resultDirectory = () => import_node_fs57.default.mkdtempSync(import_node_path56.default.join(import_node_os13.default.tmpdir(), "peach-expo-config-"));
66545
+ var resultDirectory = () => import_node_fs57.default.mkdtempSync(import_node_path56.default.join(import_node_os14.default.tmpdir(), "peach-expo-config-"));
66494
66546
  async function readExpoConfigAsync(projectRoot) {
66495
66547
  if (!hasExpoConfig(projectRoot)) return {};
66496
66548
  const directory2 = resultDirectory();
66497
66549
  const resultPath = import_node_path56.default.join(directory2, "config.json");
66498
66550
  try {
66499
- const child = (0, import_node_child_process32.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
66551
+ const child = (0, import_node_child_process33.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
66500
66552
  cwd: projectRoot,
66501
66553
  stdio: ["ignore", "ignore", "pipe"],
66502
66554
  timeout: EXPO_CONFIG_TIMEOUT_MS
@@ -66553,7 +66605,7 @@ function portableInterfaceHash(directory2) {
66553
66605
  }
66554
66606
 
66555
66607
  // src/prepared-native-inventory.ts
66556
- var import_node_child_process33 = require("node:child_process");
66608
+ var import_node_child_process34 = require("node:child_process");
66557
66609
  var import_node_crypto27 = require("node:crypto");
66558
66610
  var import_node_fs59 = __toESM(require("node:fs"), 1);
66559
66611
  var import_node_module5 = require("node:module");
@@ -66573,7 +66625,7 @@ async function preparedNativeInventory(app, selected, signal) {
66573
66625
  paths: [import_node_path58.default.dirname(require2.resolve("expo/package.json"))]
66574
66626
  });
66575
66627
  const cli = import_node_path58.default.join(import_node_path58.default.dirname(expo), "bin/expo-modules-autolinking.js");
66576
- const searched = await (0, import_node_util10.promisify)(import_node_child_process33.execFile)(
66628
+ const searched = await (0, import_node_util10.promisify)(import_node_child_process34.execFile)(
66577
66629
  process.execPath,
66578
66630
  [cli, "search", ...autolinkerAppleFlags(expo, app), "--json"],
66579
66631
  {
@@ -66770,6 +66822,7 @@ function workspacePackageManager(root, declared, excluded) {
66770
66822
  }
66771
66823
  var 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)\//;
66772
66824
  var NATIVE_SOURCE_FILE2 = /\.(swift|mm?|hpp?|c|cc|cpp|kt|java)$/;
66825
+ var fileDigests = /* @__PURE__ */ new Map();
66773
66826
  var NATIVE_PACKAGE_ENTRY = /^(ios|android|.*\.podspec|expo-module\.config\.json|react-native\.config\.[cm]?[jt]s|app\.plugin\.[cm]?js)$/;
66774
66827
  async function hashExpoWorkspace(app, signal) {
66775
66828
  if (process.platform !== "darwin") {
@@ -66871,40 +66924,67 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
66871
66924
  const steersNative = (relative4) => !relative4.includes(import_node_path62.default.sep) || relative4.startsWith(`patches${import_node_path62.default.sep}`) || nativeDirectories.some(
66872
66925
  (directory2) => directory2 === "" || relative4 === directory2 || relative4.startsWith(directory2 + import_node_path62.default.sep)
66873
66926
  );
66874
- const walk3 = async (directory2) => {
66875
- const entries = await import_node_fs63.default.promises.readdir(directory2, { withFileTypes: true });
66876
- for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
66927
+ const steps = [];
66928
+ const unread = [];
66929
+ const walk3 = (directory2) => {
66930
+ const entries = import_node_fs63.default.readdirSync(directory2, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name));
66931
+ for (const entry of entries) {
66877
66932
  signal?.throwIfAborted();
66878
66933
  const file = import_node_path62.default.join(directory2, entry.name);
66879
66934
  const relative4 = import_node_path62.default.relative(root, file);
66880
66935
  if (excluded(relative4, entry.isDirectory())) continue;
66881
- hash.update(`${relative4}\0`);
66936
+ steps.push(() => hash.update(`${relative4}\0`));
66882
66937
  if (entry.isSymbolicLink()) {
66883
- const link = `link\0${await import_node_fs63.default.promises.readlink(file)}\0`;
66884
- hash.update(link);
66885
- if (steersNative(relative4)) native.update(`${relative4}\0${link}`);
66938
+ const link = `link\0${import_node_fs63.default.readlinkSync(file)}\0`;
66939
+ steps.push(() => {
66940
+ hash.update(link);
66941
+ if (steersNative(relative4)) native.update(`${relative4}\0${link}`);
66942
+ });
66886
66943
  } else if (entry.isDirectory()) {
66887
- hash.update("directory\0");
66888
- await walk3(file);
66944
+ steps.push(() => hash.update("directory\0"));
66945
+ walk3(file);
66889
66946
  } else if (entry.isFile()) {
66890
66947
  const posix2 = relative4.split(import_node_path62.default.sep).join("/");
66891
66948
  if (NATIVE_CONFIG_FILE.test(posix2)) {
66892
- const bytes = await import_node_fs63.default.promises.readFile(file);
66893
- if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
66894
- if (steersNative(relative4))
66895
- native.update(`${posix2}\0`).update(nativeConfigBytes(posix2, bytes));
66896
- } else {
66897
- if (everyByte) {
66898
- const bytes = await import_node_fs63.default.promises.readFile(file);
66899
- hash.update(`file\0${bytes.length}\0`).update(bytes);
66900
- }
66901
- if (NATIVE_SOURCE_FILE2.test(posix2) && steersNative(relative4))
66902
- native.update(`${posix2}\0`);
66949
+ const bytes = import_node_fs63.default.readFileSync(file);
66950
+ steps.push(() => {
66951
+ if (everyByte) hash.update(`file\0${bytes.length}\0`).update(bytes);
66952
+ if (steersNative(relative4))
66953
+ native.update(`${posix2}\0`).update(nativeConfigBytes(posix2, bytes));
66954
+ });
66955
+ continue;
66903
66956
  }
66957
+ if (everyByte) {
66958
+ const stat2 = import_node_fs63.default.statSync(file);
66959
+ const known = fileDigests.get(file);
66960
+ const content = known?.ino === stat2.ino && known.size === stat2.size && known.mtimeMs === stat2.mtimeMs && known.ctimeMs === stat2.ctimeMs ? known : {
66961
+ ino: stat2.ino,
66962
+ size: stat2.size,
66963
+ mtimeMs: stat2.mtimeMs,
66964
+ ctimeMs: stat2.ctimeMs,
66965
+ digest: ""
66966
+ };
66967
+ if (content !== known) unread.push({ file, content });
66968
+ steps.push(() => hash.update(`file\0${content.size}\0${content.digest}`));
66969
+ }
66970
+ if (NATIVE_SOURCE_FILE2.test(posix2) && steersNative(relative4))
66971
+ steps.push(() => native.update(`${posix2}\0`));
66904
66972
  }
66905
66973
  }
66906
66974
  };
66907
- await walk3(root);
66975
+ walk3(root);
66976
+ for (let start = 0; start < unread.length; start += 32) {
66977
+ signal?.throwIfAborted();
66978
+ await Promise.all(
66979
+ unread.slice(start, start + 32).map(async ({ file, content }) => {
66980
+ const bytes = await import_node_fs63.default.promises.readFile(file);
66981
+ content.size = bytes.length;
66982
+ content.digest = (0, import_node_crypto30.createHash)("sha256").update(bytes).digest("hex");
66983
+ fileDigests.set(file, content);
66984
+ })
66985
+ );
66986
+ }
66987
+ for (const step of steps) step();
66908
66988
  if (sourceOnly) {
66909
66989
  hash.update(`\0${appRelative}\0`);
66910
66990
  return {
@@ -66915,29 +66995,32 @@ async function hashWorkspaceInputs(app, everyByte, signal, sourceOnly = false, p
66915
66995
  excluded
66916
66996
  };
66917
66997
  }
66918
- const execFileAsync4 = (0, import_node_util11.promisify)(import_node_child_process35.execFile);
66919
- const mac = process.platform === "darwin" ? await Promise.all([
66920
- // runner-toolchain-platform: darwin
66921
- execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
66922
- (cause) => {
66923
- throw new Error("CocoaPods is required to install source dependencies", {
66924
- cause
66925
- });
66926
- }
66927
- ),
66928
- // runner-toolchain-platform: darwin
66929
- execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
66930
- ]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {};
66998
+ const execFileAsync4 = (0, import_node_util11.promisify)(import_node_child_process36.execFile);
66931
66999
  const pinnedNode = typeof manifest.engines?.node === "string" && /^\d+(\.\d+){0,2}$/.test(manifest.engines.node) ? `node@${manifest.engines.node}` : null;
67000
+ const [mac, node] = await Promise.all([
67001
+ process.platform === "darwin" ? Promise.all([
67002
+ // runner-toolchain-platform: darwin
67003
+ execFileAsync4("pod", ["--version"], { env: utf8Env, signal }).catch(
67004
+ (cause) => {
67005
+ throw new Error("CocoaPods is required to install source dependencies", {
67006
+ cause
67007
+ });
67008
+ }
67009
+ ),
67010
+ // runner-toolchain-platform: darwin
67011
+ execFileAsync4("xcodebuild", ["-version"], { env: utf8Env, signal })
67012
+ ]).then(([pod, xcode]) => ({ podVersion: pod.stdout, xcode: xcode.stdout })) : {},
67013
+ execFileAsync4(
67014
+ pinnedNode ? "mise" : "node",
67015
+ pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
67016
+ { cwd: root, signal }
67017
+ )
67018
+ ]);
66932
67019
  const toolchain = JSON.stringify({
66933
67020
  preparation: 7,
66934
67021
  appRelative,
66935
67022
  ...mac,
66936
- node: (await execFileAsync4(
66937
- pinnedNode ? "mise" : "node",
66938
- pinnedNode ? ["exec", pinnedNode, "--", "node", "--version"] : ["--version"],
66939
- { cwd: root, signal }
66940
- )).stdout.trim(),
67023
+ node: node.stdout.trim(),
66941
67024
  packageManager: workspacePackageManager(root, manifest.packageManager, excluded),
66942
67025
  podsEnvironment
66943
67026
  });
@@ -67134,7 +67217,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
67134
67217
  });
67135
67218
  if (process.platform === "darwin") {
67136
67219
  await new Promise((resolve7, reject) => {
67137
- const child = (0, import_node_child_process35.execFile)(
67220
+ const child = (0, import_node_child_process36.execFile)(
67138
67221
  compiledSwiftHelper(CLONE_SWIFT, "peach-clone-entries"),
67139
67222
  (error) => error ? reject(error) : resolve7()
67140
67223
  );
@@ -67150,7 +67233,7 @@ async function copyInstalledWorkspace(root, destination, excluded) {
67150
67233
  const clone = async () => {
67151
67234
  const relative4 = entries.pop();
67152
67235
  if (relative4 === void 0) return;
67153
- await (0, import_node_util11.promisify)(import_node_child_process35.execFile)("cp", [
67236
+ await (0, import_node_util11.promisify)(import_node_child_process36.execFile)("cp", [
67154
67237
  "-R",
67155
67238
  "-p",
67156
67239
  import_node_path62.default.join(root, relative4),
@@ -67174,7 +67257,7 @@ function nativeWorkspacesDir(root) {
67174
67257
  return import_node_path62.default.join(mount, ".peach-cache", "expo-native-workspaces");
67175
67258
  }
67176
67259
  function trackedSourceEntries(root, work) {
67177
- const listed = (0, import_node_child_process35.spawnSync)("git", ["ls-files", "--stage", "-z"], {
67260
+ const listed = (0, import_node_child_process36.spawnSync)("git", ["ls-files", "--stage", "-z"], {
67178
67261
  cwd: root,
67179
67262
  env: { ...process.env, ...isolatedGitEnv },
67180
67263
  maxBuffer: 256 * 1024 * 1024
@@ -67188,8 +67271,8 @@ function trackedSourceEntries(root, work) {
67188
67271
  function initializeWorkspaceGit(root, work) {
67189
67272
  requireNativeGit();
67190
67273
  const env = { ...process.env, ...isolatedGitEnv };
67191
- (0, import_node_child_process35.execFileSync)("git", ["init", "--quiet"], { cwd: work, env });
67192
- (0, import_node_child_process35.execFileSync)(
67274
+ (0, import_node_child_process36.execFileSync)("git", ["init", "--quiet"], { cwd: work, env });
67275
+ (0, import_node_child_process36.execFileSync)(
67193
67276
  "git",
67194
67277
  [
67195
67278
  "-c",
@@ -67209,7 +67292,7 @@ function initializeWorkspaceGit(root, work) {
67209
67292
  );
67210
67293
  const tracked = trackedSourceEntries(root, work);
67211
67294
  if (tracked.length > 0)
67212
- (0, import_node_child_process35.execFileSync)("git", ["update-index", "-z", "--index-info"], {
67295
+ (0, import_node_child_process36.execFileSync)("git", ["update-index", "-z", "--index-info"], {
67213
67296
  cwd: work,
67214
67297
  env,
67215
67298
  input: tracked.join("\0")
@@ -67265,7 +67348,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
67265
67348
  }
67266
67349
  const trustedConfigs = /* @__PURE__ */ new Set();
67267
67350
  for (const cwd of [root, app]) {
67268
- const result2 = (0, import_node_child_process35.spawnSync)("mise", ["config", "ls", "--json"], {
67351
+ const result2 = (0, import_node_child_process36.spawnSync)("mise", ["config", "ls", "--json"], {
67269
67352
  cwd,
67270
67353
  encoding: "utf8"
67271
67354
  });
@@ -67308,7 +67391,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
67308
67391
  const command = [...prefix, ...args];
67309
67392
  await run13(command[0], command.slice(1), cwd, env);
67310
67393
  };
67311
- const installedBun = manager.startsWith("bun@") ? (0, import_node_child_process35.spawnSync)(bunExecutable, ["--version"], { encoding: "utf8" }) : null;
67394
+ const installedBun = manager.startsWith("bun@") ? (0, import_node_child_process36.spawnSync)(bunExecutable, ["--version"], { encoding: "utf8" }) : null;
67312
67395
  if (manager.startsWith("bun@") && (installedBun?.status !== 0 || installedBun.stdout.trim() !== manager.slice(4)))
67313
67396
  await execute(
67314
67397
  [
@@ -67427,7 +67510,7 @@ function stageCachedQuickCryptoOpenSsl(app) {
67427
67510
  return;
67428
67511
  import_node_fs63.default.rmSync(opensslDir, { recursive: true, force: true });
67429
67512
  import_node_fs63.default.mkdirSync(opensslDir, { recursive: true });
67430
- (0, import_node_child_process35.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
67513
+ (0, import_node_child_process36.execFileSync)("unzip", ["-q", "-o", archive, "-d", opensslDir]);
67431
67514
  }
67432
67515
  async function runAdmitted(lease, command, args, cwd, extraEnv) {
67433
67516
  const admitted = teamMachineInstalled();
@@ -67993,7 +68076,7 @@ init_swift_native_pin();
67993
68076
  init_xcode_project();
67994
68077
  var EXPO_NATIVE_ENTRY_NAME = "ios";
67995
68078
  function expoNativeCompilerDigestValue() {
67996
- return true ? "064dc6aa590b7937e7499edee9ff07b0ef387a59a35ed48a2d820ab27209917a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
68079
+ return true ? "2a7438510b7fddb608c748003fbaa32b5c765b3782603cb2e309e2729ddbb4aa" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
67997
68080
  }
67998
68081
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
67999
68082
  function readSources(value) {
@@ -68811,7 +68894,7 @@ init_swift_standins();
68811
68894
  init_swift_submit();
68812
68895
  init_swift_toolchain();
68813
68896
  init_turbo_source();
68814
- var run7 = (0, import_node_util17.promisify)(import_node_child_process49.execFile);
68897
+ var run7 = (0, import_node_util17.promisify)(import_node_child_process50.execFile);
68815
68898
  var scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
68816
68899
  var EXPO_SWIFT_ROUTE = "/__peach/expo-swift";
68817
68900
  var EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
@@ -70417,7 +70500,7 @@ function expoUnitAppPaths(unit2) {
70417
70500
  });
70418
70501
  }
70419
70502
  function expoSwiftPackage(appKey, name3) {
70420
- return import_node_path93.default.join(import_node_os19.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
70503
+ return import_node_path93.default.join(import_node_os20.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
70421
70504
  }
70422
70505
  var ExpoSwiftLinkRefusal = class extends Error {
70423
70506
  };
@@ -71188,7 +71271,7 @@ async function handleExpoSwiftRequest(req, res) {
71188
71271
  }
71189
71272
 
71190
71273
  // src/expo-widgets-bundle.ts
71191
- var import_node_child_process50 = require("node:child_process");
71274
+ var import_node_child_process51 = require("node:child_process");
71192
71275
  var import_promises9 = __toESM(require("node:fs/promises"), 1);
71193
71276
  var import_node_module15 = require("node:module");
71194
71277
  var import_node_path100 = __toESM(require("node:path"), 1);
@@ -71484,7 +71567,7 @@ init_native_app_identity_project();
71484
71567
  // src/nitro-compile.ts
71485
71568
  var import_node_crypto53 = require("node:crypto");
71486
71569
  var import_node_fs99 = __toESM(require("node:fs"), 1);
71487
- var import_node_os20 = __toESM(require("node:os"), 1);
71570
+ var import_node_os21 = __toESM(require("node:os"), 1);
71488
71571
  var import_node_path97 = __toESM(require("node:path"), 1);
71489
71572
  init_installed_native_libraries();
71490
71573
  init_native_app_identity_project();
@@ -72158,7 +72241,7 @@ async function prepareNitroCompileInput(options) {
72158
72241
  projectRoot: options.projectRoot,
72159
72242
  providers: reactProviders,
72160
72243
  reactNativeRoot: collection.reactNative.root,
72161
- codegenDir: import_node_fs99.default.mkdtempSync(import_node_path97.default.join(import_node_os20.default.tmpdir(), "peach-nitro-react-")),
72244
+ codegenDir: import_node_fs99.default.mkdtempSync(import_node_path97.default.join(import_node_os21.default.tmpdir(), "peach-nitro-react-")),
72162
72245
  configuration: options.configuration,
72163
72246
  installedPods: nativeLibraries
72164
72247
  });
@@ -72213,7 +72296,7 @@ async function prepareNitroCompileInput(options) {
72213
72296
  const key2 = (0, import_node_crypto53.createHash)("sha256").update(
72214
72297
  collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
72215
72298
  ).update("\0").update(import_node_fs99.default.realpathSync(options.moduleRoot)).update("\0").update(options.configuration).digest("hex");
72216
- const packagePath = import_node_path97.default.join(import_node_os20.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
72299
+ const packagePath = import_node_path97.default.join(import_node_os21.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
72217
72300
  const sharedLibrary = [...nativeLibraries.values()].find(
72218
72301
  (pod) => pod.sharedLibrary
72219
72302
  )?.sharedLibrary;
@@ -72437,7 +72520,7 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
72437
72520
  const runtimeBundle = await withSwiftRootLock(
72438
72521
  import_node_path100.default.join(await import_promises9.default.realpath(packageDir), "bundle"),
72439
72522
  async () => {
72440
- await (0, import_node_util18.promisify)(import_node_child_process50.execFile)(
72523
+ await (0, import_node_util18.promisify)(import_node_child_process51.execFile)(
72441
72524
  process.env.NODE_BINARY || "node",
72442
72525
  [import_node_path100.default.join(packageDir, "scripts/build-bundle.mjs"), appRoot],
72443
72526
  { cwd: appRoot, maxBuffer: 16 * 1024 * 1024 }
@@ -73047,7 +73130,7 @@ var import_promises11 = require("fs/promises");
73047
73130
  var import_http = __toESM(require("http"), 1);
73048
73131
  var import_net = __toESM(require("net"), 1);
73049
73132
  var import_node_fs106 = require("node:fs");
73050
- var import_node_os21 = require("node:os");
73133
+ var import_node_os22 = require("node:os");
73051
73134
  var import_node_path107 = require("node:path");
73052
73135
  init_backend_origin();
73053
73136
 
@@ -73644,8 +73727,8 @@ function parseSwiftHostDiscovery(value) {
73644
73727
 
73645
73728
  // scripts/dev-server-scanner.ts
73646
73729
  init_optional_demo_registry();
73647
- var LISTENER_LOCK_PATH = (0, import_node_path107.join)((0, import_node_os21.tmpdir)(), "peach-listener-scan.lock");
73648
- var LISTENER_RESULT_PATH = (0, import_node_path107.join)((0, import_node_os21.tmpdir)(), "peach-listener-scan.result");
73730
+ var LISTENER_LOCK_PATH = (0, import_node_path107.join)((0, import_node_os22.tmpdir)(), "peach-listener-scan.lock");
73731
+ var LISTENER_RESULT_PATH = (0, import_node_path107.join)((0, import_node_os22.tmpdir)(), "peach-listener-scan.result");
73649
73732
  var LISTENER_LOCK_STALE_MS = 25e3;
73650
73733
  var LISTENER_LOCK_WAIT_MS = 8e3;
73651
73734
  function sleep3(ms) {
@@ -74788,7 +74871,7 @@ async function scanDevServers(opts = {}) {
74788
74871
  }
74789
74872
 
74790
74873
  // src/agent-sessions.ts
74791
- var import_node_child_process51 = require("node:child_process");
74874
+ var import_node_child_process52 = require("node:child_process");
74792
74875
  var import_node_crypto57 = require("node:crypto");
74793
74876
  var import_node_fs108 = __toESM(require("node:fs"), 1);
74794
74877
  var import_node_path109 = __toESM(require("node:path"), 1);
@@ -75306,7 +75389,7 @@ function mkfifoSync(p) {
75306
75389
  import_node_fs108.default.unlinkSync(p);
75307
75390
  }
75308
75391
  }
75309
- const result = (0, import_node_child_process51.spawnSync)("mkfifo", ["-m", "600", p]);
75392
+ const result = (0, import_node_child_process52.spawnSync)("mkfifo", ["-m", "600", p]);
75310
75393
  if (result.status !== 0) {
75311
75394
  throw new Error(
75312
75395
  `mkfifo(${p}) failed: ${result.stderr?.toString().trim() || "unknown error"}`
@@ -75381,7 +75464,7 @@ async function startSession(opts) {
75381
75464
  if (claudeSessionUuid) {
75382
75465
  wrapperArgs.push("--claude-session-uuid", claudeSessionUuid);
75383
75466
  }
75384
- const child = (0, import_node_child_process51.spawn)(executable, wrapperArgs, {
75467
+ const child = (0, import_node_child_process52.spawn)(executable, wrapperArgs, {
75385
75468
  detached: true,
75386
75469
  stdio: "ignore",
75387
75470
  env: {
@@ -80452,7 +80535,7 @@ async function dispatchPlaneCommand(plane, type, msg, mutationOptions) {
80452
80535
  }
80453
80536
 
80454
80537
  // cli/commands/box/checkout-plane.ts
80455
- var import_node_child_process52 = require("node:child_process");
80538
+ var import_node_child_process53 = require("node:child_process");
80456
80539
  var import_node_fs113 = __toESM(require("node:fs"), 1);
80457
80540
  var import_node_path115 = __toESM(require("node:path"), 1);
80458
80541
  var CheckoutRequiresGitError = class extends Error {
@@ -80494,7 +80577,7 @@ var CheckoutFilePlane = class {
80494
80577
  }
80495
80578
  listFiles() {
80496
80579
  const args = this.trackedOnly ? ["ls-files", "-z"] : ["ls-files", "-co", "--exclude-standard", "-z"];
80497
- const stdout = (0, import_node_child_process52.execFileSync)("git", args, {
80580
+ const stdout = (0, import_node_child_process53.execFileSync)("git", args, {
80498
80581
  cwd: this.root,
80499
80582
  encoding: "utf8",
80500
80583
  maxBuffer: 64 * 1024 * 1024,