peachsim 0.1.1905 → 0.1.1906

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 (82) 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 +30 -10
  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 +29 -9
  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 -1
  30. package/dist-lib/host/bridge-host.cjs +30 -10
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  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 +2 -2
  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 +1 -1
  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 +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  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 +34 -14
  68. package/dist-lib/swift-compile.cjs +25 -6
  69. package/dist-lib/swift-compile.mjs +25 -6
  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 +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +26 -7
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/package.json +1 -1
  81. package/src/expo-swift-host.ts +2 -1
  82. package/src/swift-shared-sdk.ts +35 -7
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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;
@@ -4115,7 +4115,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4115
4115
  const overlay = import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
4116
4116
  const overlayFiles = (0, import_node_fs7.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path8.default.join(entry.parentPath, entry.name)).sort();
4117
4117
  const key = JSON.stringify([
4118
- "v18",
4118
+ "v19",
4119
4119
  toolchainBin,
4120
4120
  sdk,
4121
4121
  frameworks,
@@ -4151,7 +4151,18 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4151
4151
  (0, import_node_crypto4.createHash)("sha256").update(key).digest("hex").slice(0, 16)
4152
4152
  );
4153
4153
  const manifest = import_node_path8.default.join(view, import_node_path8.default.basename(bundle), "info.json");
4154
- if (!import_node_fs7.default.existsSync(manifest)) {
4154
+ const intact = () => import_node_fs7.default.existsSync(manifest) && import_node_fs7.default.readdirSync(
4155
+ import_node_path8.default.join(
4156
+ view,
4157
+ import_node_path8.default.relative(import_node_path8.default.dirname(bundle), sysroot),
4158
+ "darwin/usr/include"
4159
+ ),
4160
+ { withFileTypes: true }
4161
+ ).every(
4162
+ (entry) => !entry.isSymbolicLink() || import_node_fs7.default.existsSync(import_node_path8.default.join(entry.parentPath, entry.name))
4163
+ );
4164
+ if (!intact()) {
4165
+ import_node_fs7.default.rmSync(view, { recursive: true, force: true });
4155
4166
  import_node_fs7.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
4156
4167
  const staging = import_node_fs7.default.mkdtempSync(`${view}-`);
4157
4168
  import_node_fs7.default.chmodSync(staging, 493);
@@ -4165,7 +4176,15 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4165
4176
  "notify.modulemap",
4166
4177
  "module.modulemap",
4167
4178
  "darwin.modulemap"
4168
- ].map((header) => [
4179
+ ].filter(
4180
+ (header) => import_node_fs7.default.existsSync(
4181
+ import_node_path8.default.join(
4182
+ swiftSharedSdkRoot(moduleRoot, distribution),
4183
+ "usr/include",
4184
+ header
4185
+ )
4186
+ )
4187
+ ).map((header) => [
4169
4188
  import_node_path8.default.join(sysroot, "darwin/usr/include", header),
4170
4189
  import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
4171
4190
  ])
@@ -4205,7 +4224,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4205
4224
  import_node_fs7.default.renameSync(staging, view);
4206
4225
  } catch (error) {
4207
4226
  import_node_fs7.default.rmSync(staging, { recursive: true, force: true });
4208
- if (!import_node_fs7.default.existsSync(manifest)) throw error;
4227
+ if (!intact()) throw error;
4209
4228
  }
4210
4229
  }
4211
4230
  const options = ["--swift-sdks-path", view];
@@ -12098,7 +12117,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12098
12117
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12099
12118
  var MULTI_MANIFEST_VERSION = 66;
12100
12119
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12101
- var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12120
+ var compilerSourceDigest = true ? "f9ded47ea29fd640b25cdd1f0699d55b2732f89c46497a8bf64c8e8cf409fbbe" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
12102
12121
  function swiftArtifactHash(input, release, moduleRoot) {
12103
12122
  const hash = (0, import_node_crypto12.createHash)("sha256");
12104
12123
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -4063,7 +4063,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4063
4063
  const overlay = path8.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
4064
4064
  const overlayFiles = readdirSync4(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path8.join(entry.parentPath, entry.name)).sort();
4065
4065
  const key = JSON.stringify([
4066
- "v18",
4066
+ "v19",
4067
4067
  toolchainBin,
4068
4068
  sdk,
4069
4069
  frameworks,
@@ -4099,7 +4099,18 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4099
4099
  createHash4("sha256").update(key).digest("hex").slice(0, 16)
4100
4100
  );
4101
4101
  const manifest = path8.join(view, path8.basename(bundle), "info.json");
4102
- if (!fs3.existsSync(manifest)) {
4102
+ const intact = () => fs3.existsSync(manifest) && fs3.readdirSync(
4103
+ path8.join(
4104
+ view,
4105
+ path8.relative(path8.dirname(bundle), sysroot),
4106
+ "darwin/usr/include"
4107
+ ),
4108
+ { withFileTypes: true }
4109
+ ).every(
4110
+ (entry) => !entry.isSymbolicLink() || fs3.existsSync(path8.join(entry.parentPath, entry.name))
4111
+ );
4112
+ if (!intact()) {
4113
+ fs3.rmSync(view, { recursive: true, force: true });
4103
4114
  fs3.mkdirSync(path8.dirname(view), { recursive: true });
4104
4115
  const staging = fs3.mkdtempSync(`${view}-`);
4105
4116
  fs3.chmodSync(staging, 493);
@@ -4113,7 +4124,15 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4113
4124
  "notify.modulemap",
4114
4125
  "module.modulemap",
4115
4126
  "darwin.modulemap"
4116
- ].map((header) => [
4127
+ ].filter(
4128
+ (header) => fs3.existsSync(
4129
+ path8.join(
4130
+ swiftSharedSdkRoot(moduleRoot, distribution),
4131
+ "usr/include",
4132
+ header
4133
+ )
4134
+ )
4135
+ ).map((header) => [
4117
4136
  path8.join(sysroot, "darwin/usr/include", header),
4118
4137
  path8.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
4119
4138
  ])
@@ -4153,7 +4172,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4153
4172
  fs3.renameSync(staging, view);
4154
4173
  } catch (error) {
4155
4174
  fs3.rmSync(staging, { recursive: true, force: true });
4156
- if (!fs3.existsSync(manifest)) throw error;
4175
+ if (!intact()) throw error;
4157
4176
  }
4158
4177
  }
4159
4178
  const options = ["--swift-sdks-path", view];
@@ -12074,7 +12093,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
12074
12093
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
12075
12094
  var MULTI_MANIFEST_VERSION = 66;
12076
12095
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
12077
- var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(import.meta.dirname);
12096
+ var compilerSourceDigest = true ? "f9ded47ea29fd640b25cdd1f0699d55b2732f89c46497a8bf64c8e8cf409fbbe" : swiftCompilerSourceDigest(import.meta.dirname);
12078
12097
  function swiftArtifactHash(input, release, moduleRoot) {
12079
12098
  const hash = createHash13("sha256");
12080
12099
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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;
@@ -8470,7 +8470,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
8470
8470
  const overlay = import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
8471
8471
  const overlayFiles = (0, import_node_fs8.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path8.default.join(entry.parentPath, entry.name)).sort();
8472
8472
  const key2 = JSON.stringify([
8473
- "v18",
8473
+ "v19",
8474
8474
  toolchainBin,
8475
8475
  sdk,
8476
8476
  frameworks,
@@ -8506,7 +8506,18 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
8506
8506
  (0, import_node_crypto4.createHash)("sha256").update(key2).digest("hex").slice(0, 16)
8507
8507
  );
8508
8508
  const manifest = import_node_path8.default.join(view, import_node_path8.default.basename(bundle), "info.json");
8509
- if (!import_node_fs8.default.existsSync(manifest)) {
8509
+ const intact = () => import_node_fs8.default.existsSync(manifest) && import_node_fs8.default.readdirSync(
8510
+ import_node_path8.default.join(
8511
+ view,
8512
+ import_node_path8.default.relative(import_node_path8.default.dirname(bundle), sysroot),
8513
+ "darwin/usr/include"
8514
+ ),
8515
+ { withFileTypes: true }
8516
+ ).every(
8517
+ (entry) => !entry.isSymbolicLink() || import_node_fs8.default.existsSync(import_node_path8.default.join(entry.parentPath, entry.name))
8518
+ );
8519
+ if (!intact()) {
8520
+ import_node_fs8.default.rmSync(view, { recursive: true, force: true });
8510
8521
  import_node_fs8.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
8511
8522
  const staging = import_node_fs8.default.mkdtempSync(`${view}-`);
8512
8523
  import_node_fs8.default.chmodSync(staging, 493);
@@ -8520,7 +8531,15 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
8520
8531
  "notify.modulemap",
8521
8532
  "module.modulemap",
8522
8533
  "darwin.modulemap"
8523
- ].map((header) => [
8534
+ ].filter(
8535
+ (header) => import_node_fs8.default.existsSync(
8536
+ import_node_path8.default.join(
8537
+ swiftSharedSdkRoot(moduleRoot, distribution),
8538
+ "usr/include",
8539
+ header
8540
+ )
8541
+ )
8542
+ ).map((header) => [
8524
8543
  import_node_path8.default.join(sysroot, "darwin/usr/include", header),
8525
8544
  import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
8526
8545
  ])
@@ -8560,7 +8579,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
8560
8579
  import_node_fs8.default.renameSync(staging, view);
8561
8580
  } catch (error) {
8562
8581
  import_node_fs8.default.rmSync(staging, { recursive: true, force: true });
8563
- if (!import_node_fs8.default.existsSync(manifest)) throw error;
8582
+ if (!intact()) throw error;
8564
8583
  }
8565
8584
  }
8566
8585
  const options = ["--swift-sdks-path", view];
@@ -16411,7 +16430,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
16411
16430
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16412
16431
  var MULTI_MANIFEST_VERSION = 66;
16413
16432
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16414
- var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16433
+ var compilerSourceDigest = true ? "f9ded47ea29fd640b25cdd1f0699d55b2732f89c46497a8bf64c8e8cf409fbbe" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
16415
16434
  function swiftArtifactHash(input, release, moduleRoot) {
16416
16435
  const hash = (0, import_node_crypto12.createHash)("sha256");
16417
16436
  hash.update(`swift-compile
@@ -29554,7 +29573,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
29554
29573
  return hash.digest("hex");
29555
29574
  }
29556
29575
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
29557
- var STANDIN_SOURCE_DIGEST = true ? "17e16935fef21af485fe45bc60239cd60c2f1137827bd8f5cf749096bf988cb9" : standinSourceDigest();
29576
+ var STANDIN_SOURCE_DIGEST = true ? "b8bf93b3ff5046ccd963bddb62a023e6ba918cbdd9f730fc12ca118912d4d5f7" : standinSourceDigest();
29558
29577
 
29559
29578
  // src/swift-standins.ts
29560
29579
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (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.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1906 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1905",
3
+ "version": "0.1.1906",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -693,7 +693,8 @@ function enrichInstalledUnits(
693
693
  const visit = (name: string, root = false) => {
694
694
  // React's SDK module declares the upstream bridge surface; its installed
695
695
  // native target owns the implementations and shared handler state.
696
- if (included.has(name) || (!root && provided.has(name) && name !== 'React')) return
696
+ if (included.has(name) || (!root && provided.has(name) && (bridge || name !== 'React')))
697
+ return
697
698
  const dependency = targetByName.get(name)
698
699
  if (!dependency) return
699
700
  included.add(name)
@@ -260,7 +260,7 @@ export function swiftSharedSdkViewOptions(
260
260
  .map((entry) => path.join(entry.parentPath, entry.name))
261
261
  .sort()
262
262
  const key = JSON.stringify([
263
- 'v18',
263
+ 'v19',
264
264
  toolchainBin,
265
265
  sdk,
266
266
  frameworks,
@@ -296,7 +296,25 @@ export function swiftSharedSdkViewOptions(
296
296
  createHash('sha256').update(key).digest('hex').slice(0, 16),
297
297
  )
298
298
  const manifest = path.join(view, path.basename(bundle), 'info.json')
299
- if (!fs.existsSync(manifest)) {
299
+ // a view whose header links point at files that have since gone is rebuilt.
300
+ const intact = () =>
301
+ fs.existsSync(manifest) &&
302
+ fs
303
+ .readdirSync(
304
+ path.join(
305
+ view,
306
+ path.relative(path.dirname(bundle), sysroot),
307
+ 'darwin/usr/include',
308
+ ),
309
+ { withFileTypes: true },
310
+ )
311
+ .every(
312
+ (entry) =>
313
+ !entry.isSymbolicLink() ||
314
+ fs.existsSync(path.join(entry.parentPath, entry.name)),
315
+ )
316
+ if (!intact()) {
317
+ fs.rmSync(view, { recursive: true, force: true })
300
318
  fs.mkdirSync(path.dirname(view), { recursive: true })
301
319
  const staging = fs.mkdtempSync(`${view}-`)
302
320
  // mkdtemp is owner-only; the unprivileged project compiler reads the view
@@ -319,10 +337,20 @@ export function swiftSharedSdkViewOptions(
319
337
  'notify.modulemap',
320
338
  'module.modulemap',
321
339
  'darwin.modulemap',
322
- ].map((header): [string, string] => [
323
- path.join(sysroot, 'darwin/usr/include', header),
324
- path.join(swiftSharedSdkRoot(moduleRoot, distribution), 'usr/include', header),
325
- ]),
340
+ ]
341
+ .filter((header) =>
342
+ fs.existsSync(
343
+ path.join(
344
+ swiftSharedSdkRoot(moduleRoot, distribution),
345
+ 'usr/include',
346
+ header,
347
+ ),
348
+ ),
349
+ )
350
+ .map((header): [string, string] => [
351
+ path.join(sysroot, 'darwin/usr/include', header),
352
+ path.join(swiftSharedSdkRoot(moduleRoot, distribution), 'usr/include', header),
353
+ ]),
326
354
  ])
327
355
  // preserve bundle-only support headers while taking the shared darwin
328
356
  // overlays from the same owner as the framework declarations.
@@ -363,7 +391,7 @@ export function swiftSharedSdkViewOptions(
363
391
  } catch (error) {
364
392
  // another process built the same view first
365
393
  fs.rmSync(staging, { recursive: true, force: true })
366
- if (!fs.existsSync(manifest)) throw error
394
+ if (!intact()) throw error
367
395
  }
368
396
  }
369
397
  const options = ['--swift-sdks-path', view]