peachsim 0.1.2190 → 0.1.2192

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 (101) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +126 -181
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +115 -175
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -6
  30. package/dist-lib/host/bridge-host.cjs +126 -181
  31. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +7 -5
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +7 -2
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +7 -5
  47. package/dist-lib/native-app-identity-project.cjs +6 -4
  48. package/dist-lib/native-app-identity-project.mjs +6 -4
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +126 -182
  68. package/dist-lib/swift-compile.cjs +20 -132
  69. package/dist-lib/swift-compile.mjs +20 -132
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +41 -23
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +97 -157
  77. package/dist-lib/vite.cjs +4 -4
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/engine/node.d.ts +3 -0
  81. package/dist-types/packages/peach-engine/src/engine/scroll-momentum-math.d.ts +2 -1
  82. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +1 -0
  83. package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
  84. package/kotlin/sdk.tar.gz +0 -0
  85. package/package.json +1 -1
  86. package/src/expo-native-workspace.ts +21 -20
  87. package/src/home-paths.ts +0 -5
  88. package/src/kotlin-host.ts +6 -1
  89. package/src/nitro-adapter.lock.json +265 -265
  90. package/src/nitro-superset.lock.json +4 -4
  91. package/src/swift-compile.ts +21 -114
  92. package/src/swift-distribution.lock.json +17 -11
  93. package/src/swift-distribution.ts +3 -3
  94. package/src/swift-host.ts +12 -8
  95. package/src/swift-interface-bodies.ts +7 -1
  96. package/src/swift-objc-standin.ts +46 -8
  97. package/src/swift-packages.ts +1 -0
  98. package/src/swift-toolchain.ts +40 -30
  99. package/src/swift-wasm-prune.ts +3 -2
  100. package/src/turbo-runtime.lock.json +21 -21
  101. package/src/xcode-project.ts +6 -4
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/capture-contract.ts
4
4
  var RNX_SCREEN_CAPTURE_VERSION = 1;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-contract.ts
4
4
  var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/cloud-test-args.ts
4
4
  var CLOUD_TEST_ARGS_MAX_COUNT = 32;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (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;
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
39
39
  var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
40
40
  var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
41
41
  "<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
42
- define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "e7cf8a143d47ff86b4ee2db4a8266e96b100926104990dba795321bc5923df3e", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "8ffd57670829ddd2b10e812defbd9016859744be88713c5ba65847aa6e26dff4", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
42
+ define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "338cfef9a34a930206ac2e1a8a90b85c8d61f776d9a41e6445dc18e0c5385cdb", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "25505683ca29a0b380413bf2a5026d4967eacf886e35bc11ece6e15317e5bb02", "home-paths.ts": "673205c02bbc8e342a9b43585a3a1b5f6b64eb5fb474e1a8647e9d2c2e62e67d", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "86f79e98323ec065e0e5195324c75ca608f490efbd95dcc25c53d5aa0b9aecc9", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
43
43
  }
44
44
  });
45
45
 
@@ -1739,9 +1739,6 @@ function rnxHomeDir() {
1739
1739
  const override = process.env[PEACH_HOME_ENV];
1740
1740
  return override && override.length > 0 ? import_node_path2.default.resolve(override) : ambientHomeDir();
1741
1741
  }
1742
- function peachSwiftSdksDir() {
1743
- return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path2.default.join(rnxHomeDir(), "swift", "sdks");
1744
- }
1745
1742
  function runtimesDir() {
1746
1743
  return import_node_path2.default.join(rnxHomeDir(), "runtimes");
1747
1744
  }
@@ -10954,18 +10951,7 @@ function sourceSwiftCheckout() {
10954
10951
  return import_node_path24.default.resolve(peachsimPackageRoot(), "../sootsim-swift");
10955
10952
  }
10956
10953
  function swiftSdkOptions() {
10957
- const directory = process.env.PEACH_SWIFT_SDKS_PATH;
10958
- if (directory) return ["--swift-sdks-path", import_node_path24.default.resolve(directory)];
10959
- if (scratch && process.platform === "linux") {
10960
- const config = process.env.XDG_CONFIG_HOME;
10961
- if (config !== void 0 && !import_node_path24.default.isAbsolute(config))
10962
- throw new Error("XDG_CONFIG_HOME must be an absolute path");
10963
- return [
10964
- "--swift-sdks-path",
10965
- config === void 0 ? import_node_path24.default.join(import_node_os5.default.userInfo().homedir, ".swiftpm", "swift-sdks") : import_node_path24.default.join(config, "swiftpm", "swift-sdks")
10966
- ];
10967
- }
10968
- return [];
10954
+ return ["--swift-sdks-path", import_node_path24.default.resolve(peachSwiftSdksDir())];
10969
10955
  }
10970
10956
  var SWIFT_HOST_COMPILER_RELEASE = "swift-6.4.0-RELEASE-custom-81b2c791c27276bf";
10971
10957
  var SWIFT_HOST_COMPILER_ID = "81b2c791c27276bf";
@@ -11254,9 +11240,22 @@ function ensureSwiftLinuxRuntime(release) {
11254
11240
  `);
11255
11241
  const download2 = `${plan.dest}.${process.pid}.tmp`;
11256
11242
  try {
11257
- (0, import_node_child_process13.execFileSync)("curl", ["-fsSL", "--show-error", plan.url, "-o", download2], {
11258
- stdio: "inherit"
11259
- });
11243
+ (0, import_node_child_process13.execFileSync)(
11244
+ "curl",
11245
+ [
11246
+ "-fsSL",
11247
+ "--show-error",
11248
+ "--retry",
11249
+ "3",
11250
+ "--retry-all-errors",
11251
+ plan.url,
11252
+ "-o",
11253
+ download2
11254
+ ],
11255
+ {
11256
+ stdio: "inherit"
11257
+ }
11258
+ );
11260
11259
  if (swiftFileChecksum(download2) !== plan.checksum)
11261
11260
  throw new Error("declared Linux runtime checksum mismatch");
11262
11261
  import_node_fs29.default.renameSync(download2, plan.dest);
@@ -11357,6 +11356,9 @@ function peachHome() {
11357
11356
  const override = process.env.PEACH_HOME;
11358
11357
  return override ? import_node_path24.default.resolve(override) : import_node_path24.default.join(import_node_os5.default.homedir(), ".peach");
11359
11358
  }
11359
+ function peachSwiftSdksDir() {
11360
+ return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path24.default.join(peachHome(), "swift", "sdks");
11361
+ }
11360
11362
  var BUILDERS_ROOT_ENV = "CONTRAST_BUILDERS_ROOT";
11361
11363
  var agentBuildersRoot;
11362
11364
  function agentSharedCacheRoot() {
@@ -11608,8 +11610,7 @@ function installSwiftSdkArchive(swift, sdk, archive) {
11608
11610
  store
11609
11611
  ]);
11610
11612
  const expected = swiftSdkPayloadChecksum(stagedBundle);
11611
- const directory = process.env.PEACH_SWIFT_SDKS_PATH;
11612
- const locks = directory ? import_node_path24.default.join(import_node_path24.default.resolve(directory), ".peach-locks") : import_node_path24.default.join(import_node_os5.default.homedir(), ".swiftpm", "builder-locks");
11613
+ const locks = import_node_path24.default.join(import_node_path24.default.resolve(peachSwiftSdksDir()), ".peach-locks");
11613
11614
  import_node_fs29.default.mkdirSync(locks, { recursive: true });
11614
11615
  (0, import_node_child_process13.execFileSync)(
11615
11616
  "perl",
@@ -11671,9 +11672,22 @@ function installSwiftWasmSdk(release, sdk) {
11671
11672
  if (sdk.wasmSdkUrl.startsWith("file:"))
11672
11673
  import_node_fs29.default.copyFileSync((0, import_node_url3.fileURLToPath)(sdk.wasmSdkUrl), archive);
11673
11674
  else
11674
- (0, import_node_child_process13.execFileSync)("curl", ["-fsSL", "--show-error", sdk.wasmSdkUrl, "-o", archive], {
11675
- stdio: "inherit"
11676
- });
11675
+ (0, import_node_child_process13.execFileSync)(
11676
+ "curl",
11677
+ [
11678
+ "-fsSL",
11679
+ "--show-error",
11680
+ "--retry",
11681
+ "3",
11682
+ "--retry-all-errors",
11683
+ sdk.wasmSdkUrl,
11684
+ "-o",
11685
+ archive
11686
+ ],
11687
+ {
11688
+ stdio: "inherit"
11689
+ }
11690
+ );
11677
11691
  installSwiftSdkArchive(swift, sdk, archive);
11678
11692
  swiftToolchain(release, sdk);
11679
11693
  } finally {
@@ -11782,8 +11796,7 @@ function swiftSdkInstallStep(release, wasmSdk) {
11782
11796
  function swiftSdkInstallCommand(release, wasmSdk) {
11783
11797
  const { wasmSdkId, wasmSdkUrl, wasmSdkChecksum } = wasmSdk;
11784
11798
  const program = `import { installSwiftWasmSdk } from "peachsim/swift-toolchain"; installSwiftWasmSdk(${JSON.stringify(release)}, ${JSON.stringify({ wasmSdkId, wasmSdkUrl, wasmSdkChecksum })})`;
11785
- const directory = process.env.PEACH_SWIFT_SDKS_PATH;
11786
- const environment = directory ? `PEACH_SWIFT_SDKS_PATH='${import_node_path24.default.resolve(directory).replaceAll("'", "'\\''")}' ` : "";
11799
+ const environment = `PEACH_SWIFT_SDKS_PATH='${import_node_path24.default.resolve(peachSwiftSdksDir()).replaceAll("'", "'\\''")}' `;
11787
11800
  return `${environment}node --input-type=module -e '${program.replaceAll("'", "'\\''")}'`;
11788
11801
  }
11789
11802
  function swiftInstallSteps(release, wasmSdk) {
@@ -11988,7 +12001,7 @@ function swiftInterfaceWithoutBodies(text5, keepDefaults = false) {
11988
12001
  continue;
11989
12002
  }
11990
12003
  const char = text5[i];
11991
- if (char === "=" && parens > 0 && text5[i - 1] === " " && text5[i + 1] === " ") {
12004
+ if (!keepDefaults && char === "=" && parens > 0 && text5[i - 1] === " " && text5[i + 1] === " ") {
11992
12005
  out = out.trimEnd();
11993
12006
  i = skipExpression(text5, i + 1);
11994
12007
  continue;
@@ -14134,10 +14147,11 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
14134
14147
  "-module-cache-path",
14135
14148
  moduleCache,
14136
14149
  "-minimum-access-level",
14137
- // symbol graphs hide public underscored names at the public threshold.
14138
- // original clang headers remain the declaration boundary, and a swift
14139
- // overlay names its underscored and spi declarations.
14140
- original || surface.interface ? "internal" : "public",
14150
+ // symbol graphs hide public underscored names at the public threshold,
14151
+ // including a function with an underscored parameter. clang headers
14152
+ // remain the declaration boundary, and a swift overlay names its
14153
+ // underscored and spi declarations.
14154
+ "internal",
14141
14155
  ...surface.interface ? ["-include-spi-symbols"] : [],
14142
14156
  "-skip-synthesized-members",
14143
14157
  "-omit-extension-block-symbols",
@@ -14236,6 +14250,13 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
14236
14250
  writeHeaders();
14237
14251
  }
14238
14252
  const ownHeaders = new Set(headerFiles(headersDir).map((name3) => import_node_path27.default.basename(name3)));
14253
+ const functionPointers = new Set(
14254
+ [...originals.values()].flatMap(
14255
+ (text5) => [...text5.matchAll(/\btypedef\b[^;{}]*?\(\s*\*\s*(\w+)\s*\)\s*\(/g)].map(
14256
+ (match) => match[1]
14257
+ )
14258
+ )
14259
+ );
14239
14260
  const graphs = import_node_fs30.default.readdirSync(out).filter((name3) => name3.endsWith(".symbols.json")).sort().map((name3) => {
14240
14261
  const graph = JSON.parse(import_node_fs30.default.readFileSync(import_node_path27.default.join(out, name3), "utf8"));
14241
14262
  return {
@@ -14243,6 +14264,22 @@ function objcView(surface, toolchainBin, stdlib, cacheDir5, work, original, vend
14243
14264
  symbols: graph.symbols.filter((symbol2) => {
14244
14265
  const header = /^c:([^@]+\.h)@/.exec(symbol2.identifier.precise)?.[1];
14245
14266
  return !header || ownHeaders.has(header);
14267
+ }).map((symbol2) => {
14268
+ if (symbol2.kind.identifier !== "swift.typealias" || !symbol2.identifier.precise.startsWith("c:") || !functionPointers.has(symbol2.pathComponents.at(-1) ?? ""))
14269
+ return symbol2;
14270
+ const fragments = symbol2.declarationFragments ?? [];
14271
+ const equals = fragments.findIndex(
14272
+ (fragment) => fragment.spelling.includes("=")
14273
+ );
14274
+ const arrow = fragments.findLastIndex(
14275
+ (fragment) => fragment.spelling.includes("->")
14276
+ );
14277
+ return {
14278
+ ...symbol2,
14279
+ declarationFragments: fragments.map(
14280
+ (fragment, index) => index > equals && index < arrow && fragment.kind === "typeIdentifier" && functionPointers.has(fragment.spelling) ? { ...fragment, spelling: `@escaping ${fragment.spelling}` } : fragment
14281
+ )
14282
+ };
14246
14283
  })
14247
14284
  };
14248
14285
  });
@@ -16685,7 +16722,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
16685
16722
  throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`);
16686
16723
  const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
16687
16724
  const distDir = import_node_path30.default.join(moduleRoot, "lib");
16688
- const dropsReflection = (obj, name3) => !!name3 && !/^(SwiftUI|Combine)-/.test(import_node_path30.default.basename(obj.file)) && (name3.startsWith("l__swift5_reflection_descriptor") || name3.startsWith("$s") && (name3.endsWith("CMF") || name3.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
16725
+ const dropsReflection = (obj, name3) => !!name3 && !/^(SwiftUI|Combine|_[A-Za-z0-9]+_SwiftUI)-/.test(import_node_path30.default.basename(obj.file)) && (name3.startsWith("l__swift5_reflection_descriptor") || name3.startsWith("$s") && (name3.endsWith("CMF") || name3.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
16689
16726
  const prunedObjsDir = import_node_path30.default.join(directory, ".peach-pruned-objs");
16690
16727
  import_node_fs33.default.rmSync(prunedObjsDir, { recursive: true, force: true });
16691
16728
  import_node_fs33.default.mkdirSync(prunedObjsDir, { recursive: true });
@@ -23013,7 +23050,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
23013
23050
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
23014
23051
  var MULTI_MANIFEST_VERSION = 68;
23015
23052
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
23016
- var compilerSourceDigest = true ? "382ff03994dc241ff825d788eb5f8eb92462420da0b20538d9fcc1ff79e096c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
23053
+ var compilerSourceDigest = true ? "e10a6af53455b2d2b6d58c2abd62834b0ca3a02445b4778b18f9fcbb90fa3747" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
23017
23054
  function swiftArtifactHash(input, release, moduleRoot) {
23018
23055
  const hash = (0, import_node_crypto19.createHash)("sha256");
23019
23056
  hash.update(`swift-compile
@@ -23422,6 +23459,9 @@ function emitSwiftPackageManifest(args) {
23422
23459
  ' publicHeadersPath: "include",'
23423
23460
  ] : native?.flags ? [` sources: ${JSON.stringify(native.sources)},`] : target.sources !== void 0 ? [` sources: ${JSON.stringify(target.sources)},`] : [],
23424
23461
  ...!native?.clang && target.publicHeadersPath !== void 0 ? [` publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)},`] : [],
23462
+ // swiftpm appends the root package's name after a target's own flags
23463
+ // unless the target opts out of package access
23464
+ ...!clang && target.swiftFlags?.includes("-package-name") ? [" packageAccess: false,"] : [],
23425
23465
  // the native backend supplies dependency module maps without their
23426
23466
  // compiled modules. textual c++ includes keep those dependencies usable.
23427
23467
  ` ${clang ? nativeSettings : swiftSettings}${link}`,
@@ -23812,117 +23852,6 @@ var FOUNDATION_OVERLAY_GLOBALS = /* @__PURE__ */ new Set([
23812
23852
  "NSFileErrorMinimum",
23813
23853
  "NSFormattingErrorMaximum",
23814
23854
  "NSFormattingErrorMinimum",
23815
- "NSFoundationVersionNumber",
23816
- "NSFoundationVersionNumber10_0",
23817
- "NSFoundationVersionNumber10_1",
23818
- "NSFoundationVersionNumber10_10",
23819
- "NSFoundationVersionNumber10_10_1",
23820
- "NSFoundationVersionNumber10_10_2",
23821
- "NSFoundationVersionNumber10_10_3",
23822
- "NSFoundationVersionNumber10_10_4",
23823
- "NSFoundationVersionNumber10_10_5",
23824
- "NSFoundationVersionNumber10_10_Max",
23825
- "NSFoundationVersionNumber10_11",
23826
- "NSFoundationVersionNumber10_11_1",
23827
- "NSFoundationVersionNumber10_11_2",
23828
- "NSFoundationVersionNumber10_11_3",
23829
- "NSFoundationVersionNumber10_11_4",
23830
- "NSFoundationVersionNumber10_11_Max",
23831
- "NSFoundationVersionNumber10_1_1",
23832
- "NSFoundationVersionNumber10_1_2",
23833
- "NSFoundationVersionNumber10_1_3",
23834
- "NSFoundationVersionNumber10_1_4",
23835
- "NSFoundationVersionNumber10_2",
23836
- "NSFoundationVersionNumber10_2_1",
23837
- "NSFoundationVersionNumber10_2_2",
23838
- "NSFoundationVersionNumber10_2_3",
23839
- "NSFoundationVersionNumber10_2_4",
23840
- "NSFoundationVersionNumber10_2_5",
23841
- "NSFoundationVersionNumber10_2_6",
23842
- "NSFoundationVersionNumber10_2_7",
23843
- "NSFoundationVersionNumber10_2_8",
23844
- "NSFoundationVersionNumber10_3",
23845
- "NSFoundationVersionNumber10_3_1",
23846
- "NSFoundationVersionNumber10_3_2",
23847
- "NSFoundationVersionNumber10_3_3",
23848
- "NSFoundationVersionNumber10_3_4",
23849
- "NSFoundationVersionNumber10_3_5",
23850
- "NSFoundationVersionNumber10_3_6",
23851
- "NSFoundationVersionNumber10_3_7",
23852
- "NSFoundationVersionNumber10_3_8",
23853
- "NSFoundationVersionNumber10_3_9",
23854
- "NSFoundationVersionNumber10_4",
23855
- "NSFoundationVersionNumber10_4_1",
23856
- "NSFoundationVersionNumber10_4_10",
23857
- "NSFoundationVersionNumber10_4_11",
23858
- "NSFoundationVersionNumber10_4_2",
23859
- "NSFoundationVersionNumber10_4_3",
23860
- "NSFoundationVersionNumber10_4_4_Intel",
23861
- "NSFoundationVersionNumber10_4_4_PowerPC",
23862
- "NSFoundationVersionNumber10_4_5",
23863
- "NSFoundationVersionNumber10_4_6",
23864
- "NSFoundationVersionNumber10_4_7",
23865
- "NSFoundationVersionNumber10_4_8",
23866
- "NSFoundationVersionNumber10_4_9",
23867
- "NSFoundationVersionNumber10_5",
23868
- "NSFoundationVersionNumber10_5_1",
23869
- "NSFoundationVersionNumber10_5_2",
23870
- "NSFoundationVersionNumber10_5_3",
23871
- "NSFoundationVersionNumber10_5_4",
23872
- "NSFoundationVersionNumber10_5_5",
23873
- "NSFoundationVersionNumber10_5_6",
23874
- "NSFoundationVersionNumber10_5_7",
23875
- "NSFoundationVersionNumber10_5_8",
23876
- "NSFoundationVersionNumber10_6",
23877
- "NSFoundationVersionNumber10_6_1",
23878
- "NSFoundationVersionNumber10_6_2",
23879
- "NSFoundationVersionNumber10_6_3",
23880
- "NSFoundationVersionNumber10_6_4",
23881
- "NSFoundationVersionNumber10_6_5",
23882
- "NSFoundationVersionNumber10_6_6",
23883
- "NSFoundationVersionNumber10_6_7",
23884
- "NSFoundationVersionNumber10_6_8",
23885
- "NSFoundationVersionNumber10_7",
23886
- "NSFoundationVersionNumber10_7_1",
23887
- "NSFoundationVersionNumber10_7_2",
23888
- "NSFoundationVersionNumber10_7_3",
23889
- "NSFoundationVersionNumber10_7_4",
23890
- "NSFoundationVersionNumber10_8",
23891
- "NSFoundationVersionNumber10_8_1",
23892
- "NSFoundationVersionNumber10_8_2",
23893
- "NSFoundationVersionNumber10_8_3",
23894
- "NSFoundationVersionNumber10_8_4",
23895
- "NSFoundationVersionNumber10_9",
23896
- "NSFoundationVersionNumber10_9_1",
23897
- "NSFoundationVersionNumber10_9_2",
23898
- "NSFoundationVersionNumber_iOS_4_0",
23899
- "NSFoundationVersionNumber_iOS_4_1",
23900
- "NSFoundationVersionNumber_iOS_4_2",
23901
- "NSFoundationVersionNumber_iOS_4_3",
23902
- "NSFoundationVersionNumber_iOS_5_0",
23903
- "NSFoundationVersionNumber_iOS_5_1",
23904
- "NSFoundationVersionNumber_iOS_6_0",
23905
- "NSFoundationVersionNumber_iOS_6_1",
23906
- "NSFoundationVersionNumber_iOS_7_0",
23907
- "NSFoundationVersionNumber_iOS_7_1",
23908
- "NSFoundationVersionNumber_iOS_8_0",
23909
- "NSFoundationVersionNumber_iOS_8_1",
23910
- "NSFoundationVersionNumber_iOS_8_2",
23911
- "NSFoundationVersionNumber_iOS_8_3",
23912
- "NSFoundationVersionNumber_iOS_8_4",
23913
- "NSFoundationVersionNumber_iOS_8_x_Max",
23914
- "NSFoundationVersionNumber_iOS_9_0",
23915
- "NSFoundationVersionNumber_iOS_9_1",
23916
- "NSFoundationVersionNumber_iOS_9_2",
23917
- "NSFoundationVersionNumber_iOS_9_3",
23918
- "NSFoundationVersionNumber_iOS_9_4",
23919
- "NSFoundationVersionNumber_iOS_9_x_Max",
23920
- "NSFoundationVersionNumber_iPhoneOS_2_0",
23921
- "NSFoundationVersionNumber_iPhoneOS_2_1",
23922
- "NSFoundationVersionNumber_iPhoneOS_2_2",
23923
- "NSFoundationVersionNumber_iPhoneOS_3_0",
23924
- "NSFoundationVersionNumber_iPhoneOS_3_1",
23925
- "NSFoundationVersionNumber_iPhoneOS_3_2",
23926
23855
  "NSFoundationVersionWithFileManagerResourceForkSupport",
23927
23856
  "NSFreeHashTable",
23928
23857
  "NSFreeMapTable",
@@ -25001,7 +24930,10 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
25001
24930
  for (const file of Object.keys(input.files)) {
25002
24931
  if (!file.endsWith(".swift")) continue;
25003
24932
  const target = bySourcePath.find(
25004
- (candidate) => candidate.path === "." || file.startsWith(`${candidate.path}/`)
24933
+ (candidate) => (candidate.path === "." || file.startsWith(`${candidate.path}/`)) && (candidate.sources === void 0 || candidate.sources.some((source) => {
24934
+ const selected = import_node_path45.default.posix.join(candidate.path, source);
24935
+ return file === selected || file.startsWith(`${selected}/`);
24936
+ }))
25005
24937
  );
25006
24938
  const excluded = target?.exclude?.some(
25007
24939
  (name3) => file === import_node_path45.default.posix.join(target.path, name3)
@@ -25054,7 +24986,10 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
25054
24986
  const targetEntries = (target) => {
25055
24987
  const prefix = target.path === "." ? "" : `${target.path}/`;
25056
24988
  return Object.entries(input.files).filter(
25057
- ([file]) => file.startsWith(prefix) && !target.exclude?.some(
24989
+ ([file]) => file.startsWith(prefix) && (target.sources === void 0 || !(file.endsWith(".swift") || isSwiftNativeTranslationUnit(file)) || target.sources.some((source) => {
24990
+ const selected = import_node_path45.default.posix.join(prefix, source);
24991
+ return file === selected || file.startsWith(`${selected}/`);
24992
+ })) && !target.exclude?.some(
25058
24993
  (excluded) => file === `${prefix}${excluded}` || file.startsWith(`${prefix}${excluded}/`)
25059
24994
  ) && !targets.some(
25060
24995
  (candidate) => candidate.name !== target.name && candidate.path !== "." && candidate.path.startsWith(prefix) && file.startsWith(`${candidate.path}/`)
@@ -25209,8 +25144,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
25209
25144
  )) {
25210
25145
  const include2 = match[1];
25211
25146
  const producer = /(?:^|\/)([^/]+)-Swift\.h$/.exec(include2)?.[1];
25212
- if (producer && targets.some((value) => value.name === producer))
25213
- producers2.add(producer);
25147
+ if (producer && swiftTargets.has(producer)) producers2.add(producer);
25214
25148
  const local = [
25215
25149
  import_node_path45.default.posix.join(import_node_path45.default.posix.dirname(file), include2),
25216
25150
  `${includes}${include2}`,
@@ -27670,7 +27604,6 @@ async function swiftDistributionRoot(signal) {
27670
27604
  }
27671
27605
  }
27672
27606
  async function installSwiftToolchain(release, sdk, signal, compilerOnly = false) {
27673
- process.env.PEACH_SWIFT_SDKS_PATH = peachSwiftSdksDir();
27674
27607
  const root = import_node_path46.default.resolve(swiftToolchainBin(release), "../..");
27675
27608
  const owned = process.platform === "darwin" ? import_node_path46.default.join(import_node_os12.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path46.default.join(rnxHomeDir(), "swift", "toolchains", release);
27676
27609
  const selectedCompiler = process.platform === "darwin" && import_node_fs49.default.existsSync(import_node_path46.default.join(root, "usr/bin/swift"));
@@ -27713,7 +27646,7 @@ then run the command again; it installs the SDK.`,
27713
27646
  const ready = swiftToolchainReady(release, sdk);
27714
27647
  if (ready) return ready;
27715
27648
  signal?.throwIfAborted();
27716
- const directory = process.env.PEACH_SWIFT_SDKS_PATH;
27649
+ const directory = peachSwiftSdksDir();
27717
27650
  process.stderr.write(`peach: installing Swift SDK ${sdk.wasmSdkId} to ${directory}\u2026
27718
27651
  `);
27719
27652
  try {
@@ -29729,8 +29662,10 @@ function isIosAppTarget(ref, options = {}) {
29729
29662
  },
29730
29663
  options
29731
29664
  );
29665
+ const platforms2 = settingList(get("SUPPORTED_PLATFORMS"));
29666
+ if (platforms2.length > 0) return platforms2.some(isIosPlatform);
29732
29667
  const sdk = get("SDKROOT");
29733
- return sdk === "auto" ? settingList(get("SUPPORTED_PLATFORMS")).some(isIosPlatform) : sdk === "" || isIosPlatform(sdk);
29668
+ return sdk === "" || isIosPlatform(sdk);
29734
29669
  }
29735
29670
  function isIosPlatform(name3) {
29736
29671
  return name3.startsWith("iphoneos") || name3.startsWith("iphonesimulator");
@@ -31497,30 +31432,22 @@ async function copyInstalledWorkspace(root, destination, excluded) {
31497
31432
  };
31498
31433
  await Promise.all(Array.from({ length: 8 }, clone));
31499
31434
  }
31500
- function trackedSourceFiles(root, work) {
31501
- const listed = (0, import_node_child_process32.spawnSync)("git", ["ls-files", "-z"], {
31435
+ function trackedSourceEntries(root, work) {
31436
+ const listed = (0, import_node_child_process32.spawnSync)("git", ["ls-files", "--stage", "-z"], {
31502
31437
  cwd: root,
31503
31438
  env: { ...process.env, ...isolatedGitEnv },
31504
31439
  maxBuffer: 256 * 1024 * 1024
31505
31440
  });
31506
31441
  if (listed.status !== 0) return [];
31507
- return listed.stdout.toString("utf8").split("\0").filter((file) => file !== "" && import_node_fs57.default.existsSync(import_node_path55.default.join(work, file)));
31442
+ return listed.stdout.toString("utf8").split("\0").filter((entry) => {
31443
+ const tab = entry.indexOf(" ");
31444
+ return tab > 0 && import_node_fs57.default.existsSync(import_node_path55.default.join(work, entry.slice(tab + 1)));
31445
+ });
31508
31446
  }
31509
31447
  function initializeWorkspaceGit(root, work) {
31510
31448
  requireNativeGit();
31511
- (0, import_node_child_process32.execFileSync)("git", ["init", "--quiet"], {
31512
- cwd: work,
31513
- env: { ...process.env, ...isolatedGitEnv },
31514
- timeout: 6e4
31515
- });
31516
- const tracked = trackedSourceFiles(root, work);
31517
- if (tracked.length > 0)
31518
- (0, import_node_child_process32.execFileSync)("git", ["update-index", "--add", "-z", "--stdin"], {
31519
- cwd: work,
31520
- env: { ...process.env, ...isolatedGitEnv },
31521
- input: tracked.join("\0"),
31522
- timeout: 12e4
31523
- });
31449
+ const env = { ...process.env, ...isolatedGitEnv };
31450
+ (0, import_node_child_process32.execFileSync)("git", ["init", "--quiet"], { cwd: work, env, timeout: 6e4 });
31524
31451
  (0, import_node_child_process32.execFileSync)(
31525
31452
  "git",
31526
31453
  [
@@ -31537,8 +31464,16 @@ function initializeWorkspaceGit(root, work) {
31537
31464
  "-m",
31538
31465
  "prepared workspace"
31539
31466
  ],
31540
- { cwd: work, env: { ...process.env, ...isolatedGitEnv }, timeout: 6e4 }
31467
+ { cwd: work, env, timeout: 6e4 }
31541
31468
  );
31469
+ const tracked = trackedSourceEntries(root, work);
31470
+ if (tracked.length > 0)
31471
+ (0, import_node_child_process32.execFileSync)("git", ["update-index", "-z", "--index-info"], {
31472
+ cwd: work,
31473
+ env,
31474
+ input: tracked.join("\0"),
31475
+ timeout: 6e4
31476
+ });
31542
31477
  }
31543
31478
  async function prepareWorkspace(app, stage, key2, podsEnvironment) {
31544
31479
  if (process.platform !== "darwin" && (stage === "workspace" || nativeWorkspaceAvailable())) {
@@ -32275,7 +32210,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
32275
32210
  return hash.digest("hex");
32276
32211
  }
32277
32212
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
32278
- var STANDIN_SOURCE_DIGEST = true ? "8357df1eb62bbe4eb3a2bc4588867a6b75d1052c41e274e31fec2fde3700676e" : standinSourceDigest();
32213
+ var STANDIN_SOURCE_DIGEST = true ? "c387958abbb31d4eec2c99667ca99ccf6efb1328361a47445d476c520ae3c310" : standinSourceDigest();
32279
32214
 
32280
32215
  // src/expoSwiftContract.ts
32281
32216
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -32546,7 +32481,7 @@ async function packageTreeDigest(root) {
32546
32481
  // src/expo-native-prebuilt.ts
32547
32482
  var EXPO_NATIVE_ENTRY_NAME = "ios";
32548
32483
  function expoNativeCompilerDigestValue() {
32549
- return true ? "347a3817790d125635d3da812f1b02e5afa65f685f34090eb75b530d62d0a28c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32484
+ return true ? "ff30268837b899221bcfb2834bb226625e3edf1ebd4298fe4f1fe0c4c3e777e4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
32550
32485
  }
32551
32486
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
32552
32487
  function readSources(value) {
@@ -33496,6 +33431,7 @@ function resolveSwiftPackages(options) {
33496
33431
  dir: target.dir,
33497
33432
  files: files2,
33498
33433
  exclude: target.exclude,
33434
+ ...target.sources ? { sources: target.sources } : {},
33499
33435
  packageDir: pkg.manifest.dir,
33500
33436
  remote: pkg.remote,
33501
33437
  iosDeployment: pkg.manifest.iosDeployment,
@@ -41565,9 +41501,13 @@ async function buildXcodeLayout(root) {
41565
41501
  upcomingFeatures: target.packageUpcomingFeatures.filter(
41566
41502
  (feature) => feature.configuration === null || feature.configuration === packageConfiguration
41567
41503
  ).map((feature) => feature.name),
41568
- swiftFlags: target.packageSwiftFlags.filter(
41569
- (setting) => setting.configuration === null || setting.configuration === packageConfiguration
41570
- ).flatMap((setting) => setting.flags),
41504
+ // the flat build gives every module one package; swiftpm names each
41505
+ // module for its own package, which `@retroactive` and `package` read
41506
+ swiftFlags: ["-package-name", swiftPackageIdentity(target.packageDir)].concat(
41507
+ target.packageSwiftFlags.filter(
41508
+ (setting) => setting.configuration === null || setting.configuration === packageConfiguration
41509
+ ).flatMap((setting) => setting.flags)
41510
+ ),
41571
41511
  linkedLibraries: target.packageLibraries.filter(
41572
41512
  (library) => library.configuration === null || library.configuration === packageConfiguration
41573
41513
  ).map((library) => library.name),
@@ -41925,7 +41865,7 @@ function xcodeManifest(layout2) {
41925
41865
  `let package = Package(name: "app", ${layout2.app.iosDeploymentTarget ? `platforms: [.iOS(${JSON.stringify(layout2.app.iosDeploymentTarget)})], ` : ""}dependencies: [${[...nativePaths].map(([name3, directory]) => `.package(name: ${JSON.stringify(name3)}, path: ${JSON.stringify(directory)})`).join(", ")}], targets: [`,
41926
41866
  ` .executableTarget(name: "${layout2.app.moduleName}", dependencies: [${[...appProducts, ...layout2.targets.map((target) => JSON.stringify(target.name)), ...sdkProducts].join(", ")}], path: "${XCODE_APP_DIR}", ${appSettings}),`,
41927
41867
  ...layout2.targets.map(
41928
- (target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", ${target.dependencies === void 0 ? "" : `dependencies: [${dependencies(target)}], `}path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${target.publicHeadersPath === void 0 ? "" : `publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)}, `}${clangSettings(target)}${swiftManifestSettings(target)}${libraries(target)}),`
41868
+ (target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", ${target.dependencies === void 0 ? "" : `dependencies: [${dependencies(target)}], `}path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.sources === void 0 ? "" : `sources: ${JSON.stringify(target.sources)}, `}${target.resources ? "resources: [], " : ""}${target.publicHeadersPath === void 0 ? "" : `publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)}, `}${clangSettings(target)}${swiftManifestSettings(target)}${libraries(target)}),`
41929
41869
  ),
41930
41870
  "])",
41931
41871
  ""
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2190 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2192 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {