peachsim 0.1.1886 → 0.1.1887

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 (90) hide show
  1. package/cli/native-input.ts +1 -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 +206 -82
  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 +1 -1
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +136 -42
  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 +146 -23
  32. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  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 +15 -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 +15 -2
  48. package/dist-lib/native-app-identity-project.cjs +15 -2
  49. package/dist-lib/native-app-identity-project.mjs +22 -3
  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 +27 -24
  61. package/dist-lib/public-origins-lib.json +70 -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 +170 -31
  69. package/dist-lib/swift-compile.cjs +100 -12
  70. package/dist-lib/swift-compile.mjs +104 -11
  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 +2 -2
  74. package/dist-lib/swift-submit.mjs +2 -2
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +116 -18
  78. package/dist-lib/vite.cjs +1 -1
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/package.json +1 -1
  82. package/src/expo-swift-bundle.ts +2 -7
  83. package/src/nitro-bundle.ts +7 -10
  84. package/src/podspec-sources.ts +20 -0
  85. package/src/swift-compile.ts +10 -5
  86. package/src/swift-host.ts +32 -19
  87. package/src/swift-icu.ts +60 -18
  88. package/src/swift-submit.ts +3 -1
  89. package/src/turbo-bundle.ts +1 -1
  90. package/src/turbo-codegen-intake.ts +10 -3
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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;
@@ -1175,7 +1175,7 @@ var import_node_child_process43 = require("node:child_process");
1175
1175
  var import_node_crypto37 = require("node:crypto");
1176
1176
  var import_node_fs73 = __toESM(require("node:fs"), 1);
1177
1177
  var import_node_module6 = require("node:module");
1178
- var import_node_os17 = __toESM(require("node:os"), 1);
1178
+ var import_node_os18 = __toESM(require("node:os"), 1);
1179
1179
  var import_node_path70 = __toESM(require("node:path"), 1);
1180
1180
  var import_node_url5 = require("node:url");
1181
1181
  var import_node_util15 = require("node:util");
@@ -2034,7 +2034,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
2034
2034
  var MAX_SWIFT_COMPILE_IMAGES = 256;
2035
2035
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
2036
2036
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
2037
- var SWIFT_HOST_ABI = 68;
2037
+ var SWIFT_HOST_ABI = 69;
2038
2038
  var POLL_INTERVAL_MS = 1500;
2039
2039
  function httpSwiftCompileSubmit(context) {
2040
2040
  const { assetReadToken, authorization, endpoint } = context;
@@ -6505,7 +6505,7 @@ var run4 = (0, import_node_util4.promisify)(import_node_child_process7.execFile)
6505
6505
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6506
6506
  var import_node_crypto24 = require("node:crypto");
6507
6507
  var import_node_fs53 = __toESM(require("node:fs"), 1);
6508
- var import_node_os14 = require("node:os");
6508
+ var import_node_os15 = require("node:os");
6509
6509
  var import_node_path51 = __toESM(require("node:path"), 1);
6510
6510
  var import_node_url3 = require("node:url");
6511
6511
 
@@ -6638,7 +6638,7 @@ var import_node_path48 = __toESM(require("node:path"), 1);
6638
6638
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
6639
6639
  var import_node_child_process29 = require("node:child_process");
6640
6640
  var import_node_fs47 = __toESM(require("node:fs"), 1);
6641
- var import_node_os13 = __toESM(require("node:os"), 1);
6641
+ var import_node_os14 = __toESM(require("node:os"), 1);
6642
6642
  var import_node_path45 = __toESM(require("node:path"), 1);
6643
6643
 
6644
6644
  // src/plist.ts
@@ -9029,14 +9029,14 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
9029
9029
  var import_node_child_process27 = require("node:child_process");
9030
9030
  var import_node_crypto18 = require("node:crypto");
9031
9031
  var import_node_fs45 = __toESM(require("node:fs"), 1);
9032
- var import_node_os12 = __toESM(require("node:os"), 1);
9032
+ var import_node_os13 = __toESM(require("node:os"), 1);
9033
9033
  var import_node_path42 = __toESM(require("node:path"), 1);
9034
9034
  var import_node_util8 = require("node:util");
9035
9035
 
9036
9036
  // src/swift-distribution.ts
9037
9037
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
9038
9038
  var import_node_fs44 = __toESM(require("node:fs"), 1);
9039
- var import_node_os11 = __toESM(require("node:os"), 1);
9039
+ var import_node_os12 = __toESM(require("node:os"), 1);
9040
9040
  var import_node_path41 = __toESM(require("node:path"), 1);
9041
9041
 
9042
9042
  // cli/drivers/linux-browser-libs.ts
@@ -10560,7 +10560,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
10560
10560
  var import_node_child_process26 = require("node:child_process");
10561
10561
  var import_node_crypto17 = require("node:crypto");
10562
10562
  var import_node_fs43 = require("node:fs");
10563
- var import_node_os10 = __toESM(require("node:os"), 1);
10563
+ var import_node_os11 = __toESM(require("node:os"), 1);
10564
10564
  var import_node_path40 = __toESM(require("node:path"), 1);
10565
10565
 
10566
10566
  // src/retired-cache-directory.ts
@@ -20418,9 +20418,73 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20418
20418
  var import_node_child_process22 = require("node:child_process");
20419
20419
  var import_node_crypto15 = require("node:crypto");
20420
20420
  var import_node_fs36 = require("node:fs");
20421
+ var import_promises4 = require("node:fs/promises");
20422
+ var import_node_os8 = __toESM(require("node:os"), 1);
20421
20423
  var import_node_path33 = __toESM(require("node:path"), 1);
20422
20424
  var import_node_util7 = require("node:util");
20423
20425
  var import_node_zlib2 = require("node:zlib");
20426
+
20427
+ // ../sootsim-swift/src/icuData.ts
20428
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20429
+
20430
+ // ../peach-compat/src/stubs/wasm-memory.ts
20431
+ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20432
+
20433
+ // ../sootsim-swift/src/icuData.ts
20434
+ var PACK_BYTES = 64 * 1024;
20435
+ var MAGIC = 1430473040;
20436
+ var VERSION = 1;
20437
+ var SWIFT_ICU_PACKED = `picu${VERSION}`;
20438
+ function swiftIcuLayout(head, blobBytes) {
20439
+ const view = new DataView(head.buffer, head.byteOffset, head.byteLength);
20440
+ const toc = view.getUint16(0, true);
20441
+ if (head[2] !== 218 || head[3] !== 39)
20442
+ throw new Error("swift icu data has no icu header");
20443
+ const count = view.getUint32(toc, true);
20444
+ const names = [];
20445
+ const offsets = new Uint32Array(count + 1);
20446
+ const decoder = new TextDecoder("latin1");
20447
+ for (let index = 0; index < count; index++) {
20448
+ const name3 = toc + view.getUint32(toc + 4 + index * 8, true);
20449
+ offsets[index] = toc + view.getUint32(toc + 8 + index * 8, true);
20450
+ names.push(decoder.decode(head.subarray(name3, head.indexOf(0, name3))));
20451
+ }
20452
+ offsets[count] = blobBytes;
20453
+ const packOf = new Uint32Array(count);
20454
+ const packs = [];
20455
+ for (let index = 0; index < count; index++) {
20456
+ const last = packs[packs.length - 1];
20457
+ if (last && offsets[index + 1] - last[0] <= PACK_BYTES) last[1] = offsets[index + 1];
20458
+ else packs.push([offsets[index], offsets[index + 1]]);
20459
+ packOf[index] = packs.length - 1;
20460
+ }
20461
+ return { headBytes: offsets[0], names, packOf, packs };
20462
+ }
20463
+ function swiftIcuPack(blob, deflate2) {
20464
+ const layout2 = swiftIcuLayout(blob, blob.byteLength);
20465
+ const parts = [
20466
+ deflate2(blob.subarray(0, layout2.headBytes)),
20467
+ ...layout2.packs.map(([start, end]) => deflate2(blob.subarray(start, end)))
20468
+ ];
20469
+ const index = new DataView(new ArrayBuffer(16 + parts.length * 4));
20470
+ index.setUint32(0, MAGIC, true);
20471
+ index.setUint32(4, VERSION, true);
20472
+ index.setUint32(8, blob.byteLength, true);
20473
+ index.setUint32(12, layout2.packs.length, true);
20474
+ parts.forEach((part, at2) => index.setUint32(16 + at2 * 4, part.byteLength, true));
20475
+ const packed = new Uint8Array(
20476
+ index.byteLength + parts.reduce((total, part) => total + part.byteLength, 0)
20477
+ );
20478
+ packed.set(new Uint8Array(index.buffer));
20479
+ let at = index.byteLength;
20480
+ for (const part of parts) {
20481
+ packed.set(part, at);
20482
+ at += part.byteLength;
20483
+ }
20484
+ return packed;
20485
+ }
20486
+
20487
+ // src/swift-icu.ts
20424
20488
  var run5 = (0, import_node_util7.promisify)(import_node_child_process22.execFile);
20425
20489
  var deflate = (0, import_node_util7.promisify)(import_node_zlib2.gzip);
20426
20490
  var compressBrotli = (0, import_node_util7.promisify)(import_node_zlib2.brotliCompress);
@@ -20531,6 +20595,40 @@ function icuSegment(object5) {
20531
20595
  throw new Error(`swift-icu: expected one icu data segment, found ${found.length}`);
20532
20596
  return found[0];
20533
20597
  }
20598
+ function swiftIcuAddress(icu) {
20599
+ return `${icu.sha256}.${SWIFT_ICU_PACKED}`;
20600
+ }
20601
+ var packedFiles = /* @__PURE__ */ new Map();
20602
+ function swiftIcuPacked(icu) {
20603
+ return memo(packedFiles, icu.sha256, async () => {
20604
+ const file = import_node_path33.default.join(
20605
+ import_node_os8.default.homedir(),
20606
+ ".peach",
20607
+ "cache",
20608
+ "swift-brotli",
20609
+ swiftIcuAddress(icu)
20610
+ );
20611
+ if ((0, import_node_fs36.existsSync)(file)) return (0, import_promises4.readFile)(file);
20612
+ const packed = Buffer.from(
20613
+ swiftIcuPack(
20614
+ await inflateGzip(icu.gzip),
20615
+ (bytes) => (0, import_node_zlib2.deflateRawSync)(bytes, { level: 9 })
20616
+ )
20617
+ );
20618
+ await (0, import_promises4.mkdir)(import_node_path33.default.dirname(file), { recursive: true });
20619
+ const tmp = `${file}.${(0, import_node_crypto15.randomUUID)()}.tmp`;
20620
+ await (0, import_promises4.writeFile)(tmp, packed);
20621
+ await (0, import_promises4.rename)(tmp, file);
20622
+ return packed;
20623
+ });
20624
+ }
20625
+ async function swiftIcuBundleAsset(icu) {
20626
+ return {
20627
+ path: `__peach/swift-icu/${swiftIcuAddress(icu)}`,
20628
+ bytes: await swiftIcuPacked(icu),
20629
+ contentType: "application/octet-stream"
20630
+ };
20631
+ }
20534
20632
 
20535
20633
  // src/swift-link-roots.ts
20536
20634
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -20736,9 +20834,9 @@ function removeProjectLinks(root) {
20736
20834
  // src/swift-reproducible.ts
20737
20835
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20738
20836
  var import_node_fs39 = require("node:fs");
20739
- var import_node_os8 = __toESM(require("node:os"), 1);
20837
+ var import_node_os9 = __toESM(require("node:os"), 1);
20740
20838
  function swiftReproducibleBuildFlags(roots) {
20741
- return [[import_node_os8.default.homedir(), "home"], ...roots].flatMap(
20839
+ return [[import_node_os9.default.homedir(), "home"], ...roots].flatMap(
20742
20840
  ([root, name3]) => [.../* @__PURE__ */ new Set([root, (0, import_node_fs39.realpathSync)(root)])].map((from) => `${from}=/peach/${name3}`)
20743
20841
  ).flatMap((map2) => [
20744
20842
  "-Xswiftc",
@@ -20757,7 +20855,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
20757
20855
  var import_node_child_process24 = require("node:child_process");
20758
20856
  var import_node_crypto16 = require("node:crypto");
20759
20857
  var import_node_fs40 = require("node:fs");
20760
- var import_node_os9 = require("node:os");
20858
+ var import_node_os10 = require("node:os");
20761
20859
  var import_node_path36 = __toESM(require("node:path"), 1);
20762
20860
  var POLL_MS = 250;
20763
20861
  var START_TOLERANCE_MS = 2e3;
@@ -20834,7 +20932,7 @@ function groupAlive(table, leader) {
20834
20932
  }
20835
20933
  function withCocoaPodsCacheLock(work) {
20836
20934
  return withSwiftRootLock(
20837
- process.env.CP_CACHE_DIR || import_node_path36.default.join((0, import_node_os9.homedir)(), "Library/Caches/CocoaPods"),
20935
+ process.env.CP_CACHE_DIR || import_node_path36.default.join((0, import_node_os10.homedir)(), "Library/Caches/CocoaPods"),
20838
20936
  work
20839
20937
  );
20840
20938
  }
@@ -21171,7 +21269,7 @@ var SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '
21171
21269
  var admittedCores = Number(process.env.TM_EXEC_CPU_CORES);
21172
21270
  var SWIFT_BUILD_JOBS = Math.min(
21173
21271
  4,
21174
- Math.max(1, Math.floor(import_node_os10.default.availableParallelism() / 2)),
21272
+ Math.max(1, Math.floor(import_node_os11.default.availableParallelism() / 2)),
21175
21273
  Number.isInteger(admittedCores) && admittedCores > 0 ? admittedCores : 4
21176
21274
  );
21177
21275
  var BUILD_JOBS = String(SWIFT_BUILD_JOBS);
@@ -21947,12 +22045,14 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
21947
22045
  "-Xlinker", "-lsetjmp",
21948
22046
  "-Xlinker", "--export-table",
21949
22047
  "-Xlinker", "--growable-table",
22048
+ "-Xlinker", "--wrap=swift_udata_open",
22049
+ "-Xlinker", "--wrap=swift_udata_openChoice",
21950
22050
  `;
21951
22051
  var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
21952
22052
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
21953
22053
  var MULTI_MANIFEST_VERSION = 66;
21954
22054
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
21955
- var compilerSourceDigest = true ? "a3a3606aced607c5458fcb143386bc40e87f886a19f283b511374ac04ba02293" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
22055
+ var compilerSourceDigest = true ? "d46232537a993bc7418818ab7d2dc159518328882280b8b4bfd459cffd910921" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
21956
22056
  function swiftArtifactHash(input, release, moduleRoot) {
21957
22057
  const hash = (0, import_node_crypto17.createHash)("sha256");
21958
22058
  hash.update(`swift-compile
@@ -26479,7 +26579,7 @@ async function swiftDistributionRoot(signal) {
26479
26579
  async function installSwiftToolchain(release, sdk, signal, compilerOnly = false) {
26480
26580
  process.env.PEACH_SWIFT_SDKS_PATH ??= import_node_path41.default.join(rnxHomeDir(), "swift", "sdks");
26481
26581
  const root = import_node_path41.default.resolve(swiftToolchainBin(release), "../..");
26482
- const owned = process.platform === "darwin" ? import_node_path41.default.join(import_node_os11.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path41.default.join(rnxHomeDir(), "swift", "toolchains", release);
26582
+ const owned = process.platform === "darwin" ? import_node_path41.default.join(import_node_os12.default.homedir(), "Library/Developer/Toolchains", `${release}.xctoolchain`) : import_node_path41.default.join(rnxHomeDir(), "swift", "toolchains", release);
26483
26583
  const selectedCompiler = process.platform === "darwin" && import_node_fs44.default.existsSync(import_node_path41.default.join(root, "usr/bin/swift"));
26484
26584
  if (release.includes("-custom-") && root === owned && !selectedCompiler && !swiftCompilerReady(release)) {
26485
26585
  const archive = swiftHostCompilerArchive(release);
@@ -27097,7 +27197,7 @@ let package = Package(
27097
27197
  ]
27098
27198
  )
27099
27199
  `;
27100
- const dir = import_node_fs45.default.mkdtempSync(import_node_path42.default.join(import_node_os12.default.tmpdir(), "peach-resolve-"));
27200
+ const dir = import_node_fs45.default.mkdtempSync(import_node_path42.default.join(import_node_os13.default.tmpdir(), "peach-resolve-"));
27101
27201
  import_node_fs45.default.writeFileSync(import_node_path42.default.join(dir, "Package.swift"), manifest);
27102
27202
  const args = [
27103
27203
  "package",
@@ -29550,7 +29650,7 @@ function readExpoConfigResult(resultPath, status, stderr) {
29550
29650
  if (!isRecord(resolved)) throw new Error("Expo native configuration is unavailable.");
29551
29651
  return resolved;
29552
29652
  }
29553
- var resultDirectory = () => import_node_fs47.default.mkdtempSync(import_node_path45.default.join(import_node_os13.default.tmpdir(), "peach-expo-config-"));
29653
+ var resultDirectory = () => import_node_fs47.default.mkdtempSync(import_node_path45.default.join(import_node_os14.default.tmpdir(), "peach-expo-config-"));
29554
29654
  async function readExpoConfigAsync(projectRoot) {
29555
29655
  if (!hasExpoConfig(projectRoot)) return {};
29556
29656
  const directory = resultDirectory();
@@ -29617,7 +29717,7 @@ var import_node_crypto21 = require("node:crypto");
29617
29717
  var import_node_fs49 = __toESM(require("node:fs"), 1);
29618
29718
  var import_node_module2 = require("node:module");
29619
29719
  var import_node_path47 = __toESM(require("node:path"), 1);
29620
- var import_promises4 = require("node:timers/promises");
29720
+ var import_promises5 = require("node:timers/promises");
29621
29721
  var import_node_util9 = require("node:util");
29622
29722
  async function preparedNativeInventory(app, selected, signal) {
29623
29723
  const require2 = (0, import_node_module2.createRequire)(import_node_path47.default.join(app, "package.json"));
@@ -29650,7 +29750,7 @@ async function preparedNativeInventory(app, selected, signal) {
29650
29750
  }
29651
29751
  const result = [];
29652
29752
  for (const [name3, root] of [...roots].sort(([a], [b]) => a.localeCompare(b))) {
29653
- await (0, import_promises4.setImmediate)(void 0, { signal });
29753
+ await (0, import_promises5.setImmediate)(void 0, { signal });
29654
29754
  const hash = (0, import_node_crypto21.createHash)("sha256");
29655
29755
  const canonicalRoot = import_node_fs49.default.realpathSync(root);
29656
29756
  const walk3 = (directory, relative3) => {
@@ -30398,7 +30498,7 @@ async function expoDiscoveryKey(options) {
30398
30498
  return { key: key2, root };
30399
30499
  }
30400
30500
  function sharedDir() {
30401
- return import_node_path51.default.join((0, import_node_os14.homedir)(), ".peach", "cache", "expo-discovery");
30501
+ return import_node_path51.default.join((0, import_node_os15.homedir)(), ".peach", "cache", "expo-discovery");
30402
30502
  }
30403
30503
  var strings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
30404
30504
  var stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
@@ -30789,7 +30889,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
30789
30889
  return hash.digest("hex");
30790
30890
  }
30791
30891
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
30792
- var STANDIN_SOURCE_DIGEST = true ? "90cf6a7c52efb9dc2256de1e8db220ebfeaccb64f6b7661fd2380ceba5f70d78" : standinSourceDigest();
30892
+ var STANDIN_SOURCE_DIGEST = true ? "2340b1684e4aa046dace7fdc861bb6a39fde0a6ee06003187e6af39416313d98" : standinSourceDigest();
30793
30893
 
30794
30894
  // src/expoSwiftContract.ts
30795
30895
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -31092,7 +31192,7 @@ function readTurboMetadata(value) {
31092
31192
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
31093
31193
  var import_node_crypto27 = require("node:crypto");
31094
31194
  var import_node_fs57 = require("node:fs");
31095
- var import_promises5 = require("node:fs/promises");
31195
+ var import_promises6 = require("node:fs/promises");
31096
31196
  var import_node_path55 = require("node:path");
31097
31197
  var READ_AHEAD = 64;
31098
31198
  async function packageTreeDigest(root) {
@@ -31111,7 +31211,7 @@ async function packageTreeDigest(root) {
31111
31211
  const hash = (0, import_node_crypto27.createHash)("sha256");
31112
31212
  for (let start = 0; start < files2.length; start += READ_AHEAD) {
31113
31213
  const batch = files2.slice(start, start + READ_AHEAD);
31114
- const bytes = await Promise.all(batch.map((file) => (0, import_promises5.readFile)((0, import_node_path55.join)(root, file))));
31214
+ const bytes = await Promise.all(batch.map((file) => (0, import_promises6.readFile)((0, import_node_path55.join)(root, file))));
31115
31215
  batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
31116
31216
  }
31117
31217
  return hash.digest("hex");
@@ -31119,7 +31219,7 @@ async function packageTreeDigest(root) {
31119
31219
 
31120
31220
  // src/expo-native-prebuilt.ts
31121
31221
  var EXPO_NATIVE_ENTRY_NAME = "ios";
31122
- var EXPO_NATIVE_COMPILER_DIGEST = true ? "444cda48ba9b9c74b0dc463609e87f9f1381fedfa296d91acfd7c2f201645ae4" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31222
+ var EXPO_NATIVE_COMPILER_DIGEST = true ? "4585315f71394b53ace3ffe5eaedd20a11f727ce4eaa50a1cbc934b5c7f189d1" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
31123
31223
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
31124
31224
  function readSources(value) {
31125
31225
  const sources = isRecord(value) ? value.sources : null;
@@ -31658,7 +31758,7 @@ var import_node_child_process34 = require("node:child_process");
31658
31758
  var import_node_crypto31 = require("node:crypto");
31659
31759
  var import_node_fs62 = __toESM(require("node:fs"), 1);
31660
31760
  var import_node_path60 = __toESM(require("node:path"), 1);
31661
- var import_promises6 = require("node:timers/promises");
31761
+ var import_promises7 = require("node:timers/promises");
31662
31762
  var import_node_util12 = require("node:util");
31663
31763
 
31664
31764
  // src/numbered-lock.ts
@@ -31825,7 +31925,7 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
31825
31925
  const lock = async () => {
31826
31926
  let release = tryAcquireNumberedLock(`${dir}.lock`);
31827
31927
  while (!release) {
31828
- await (0, import_promises6.setTimeout)(25, void 0, { signal });
31928
+ await (0, import_promises7.setTimeout)(25, void 0, { signal });
31829
31929
  release = tryAcquireNumberedLock(`${dir}.lock`);
31830
31930
  }
31831
31931
  return release;
@@ -32473,7 +32573,7 @@ var import_node_path62 = __toESM(require("node:path"), 1);
32473
32573
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
32474
32574
  var import_node_fs64 = __toESM(require("node:fs"), 1);
32475
32575
  var import_node_path61 = __toESM(require("node:path"), 1);
32476
- var import_promises7 = require("node:stream/promises");
32576
+ var import_promises8 = require("node:stream/promises");
32477
32577
  var import_stream_json = __toESM(require("stream-json"), 1);
32478
32578
  var DECLARATIONS = /* @__PURE__ */ new Set([
32479
32579
  "FunctionDecl",
@@ -32488,7 +32588,7 @@ async function cxxDeclarations(astFile, headers) {
32488
32588
  const result = [];
32489
32589
  let lastFile = "";
32490
32590
  let rootComplete = false;
32491
- await (0, import_promises7.pipeline)(import_node_fs64.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
32591
+ await (0, import_promises8.pipeline)(import_node_fs64.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
32492
32592
  for await (const value of tokens2) {
32493
32593
  if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
32494
32594
  throw new Error("invalid clang AST token");
@@ -36736,7 +36836,7 @@ var import_node_async_hooks = require("node:async_hooks");
36736
36836
  var import_node_child_process40 = require("node:child_process");
36737
36837
  var import_node_crypto36 = require("node:crypto");
36738
36838
  var import_node_fs72 = __toESM(require("node:fs"), 1);
36739
- var import_node_os16 = __toESM(require("node:os"), 1);
36839
+ var import_node_os17 = __toESM(require("node:os"), 1);
36740
36840
  var import_node_path69 = __toESM(require("node:path"), 1);
36741
36841
 
36742
36842
  // ../sootsim-swift/src/bundleAssets.ts
@@ -38712,7 +38812,7 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
38712
38812
  var import_node_child_process39 = require("node:child_process");
38713
38813
  var import_node_crypto35 = require("node:crypto");
38714
38814
  var import_node_fs71 = __toESM(require("node:fs"), 1);
38715
- var import_node_os15 = __toESM(require("node:os"), 1);
38815
+ var import_node_os16 = __toESM(require("node:os"), 1);
38716
38816
  var import_node_path68 = __toESM(require("node:path"), 1);
38717
38817
 
38718
38818
  // cli/internal-child-contract.ts
@@ -38801,7 +38901,7 @@ function rasterBinary() {
38801
38901
  try {
38802
38902
  import_node_fs71.default.mkdirSync(cacheDir(), { recursive: true });
38803
38903
  const source = import_node_path68.default.join(
38804
- import_node_fs71.default.mkdtempSync(import_node_path68.default.join(import_node_os15.default.tmpdir(), "swift-pdf-raster-")),
38904
+ import_node_fs71.default.mkdtempSync(import_node_path68.default.join(import_node_os16.default.tmpdir(), "swift-pdf-raster-")),
38805
38905
  "raster.swift"
38806
38906
  );
38807
38907
  import_node_fs71.default.writeFileSync(source, RASTER_SWIFT);
@@ -38826,7 +38926,7 @@ function rasterizePdfFile(diskPath, pdfSha256) {
38826
38926
  } catch {
38827
38927
  }
38828
38928
  const out = import_node_path68.default.join(
38829
- import_node_fs71.default.mkdtempSync(import_node_path68.default.join(import_node_os15.default.tmpdir(), "swift-pdf-png-")),
38929
+ import_node_fs71.default.mkdtempSync(import_node_path68.default.join(import_node_os16.default.tmpdir(), "swift-pdf-png-")),
38830
38930
  "out.png"
38831
38931
  );
38832
38932
  try {
@@ -40143,7 +40243,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
40143
40243
  }
40144
40244
  }
40145
40245
  if (xcode?.app.postBundleScripts.length) {
40146
- const dir = import_node_fs72.default.mkdtempSync(import_node_path69.default.join(import_node_os16.default.tmpdir(), "peach-xcode-bundle-"));
40246
+ const dir = import_node_fs72.default.mkdtempSync(import_node_path69.default.join(import_node_os17.default.tmpdir(), "peach-xcode-bundle-"));
40147
40247
  const wrapper = import_node_path69.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
40148
40248
  const bundle = import_node_path69.default.join(dir, wrapper);
40149
40249
  try {
@@ -40287,7 +40387,7 @@ function otherInputs(input) {
40287
40387
  return (0, import_node_crypto36.createHash)("sha256").update(JSON.stringify(rest)).digest("hex");
40288
40388
  }
40289
40389
  function icuUrl(origin, artifact) {
40290
- return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${artifact.icu.sha256}`;
40390
+ return "url" in artifact.icu ? artifact.icu.url : `${origin}${ICU_PATH}${swiftIcuAddress(artifact.icu)}`;
40291
40391
  }
40292
40392
  function standinLibraries(binaries, standins, rootDir, toolchain) {
40293
40393
  const linked = /* @__PURE__ */ new Map();
@@ -42187,7 +42287,7 @@ function expoUnitAppPaths(unit2) {
42187
42287
  });
42188
42288
  }
42189
42289
  function expoSwiftPackage(appKey, name3) {
42190
- return import_node_path70.default.join(import_node_os17.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
42290
+ return import_node_path70.default.join(import_node_os18.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
42191
42291
  }
42192
42292
  var ExpoSwiftLinkRefusal = class extends Error {
42193
42293
  };
@@ -42734,13 +42834,7 @@ async function buildExpoSwiftBundle(appRoot) {
42734
42834
  bytes: artifact.bytes,
42735
42835
  contentType: "application/wasm"
42736
42836
  });
42737
- if ("gzip" in artifact.icu) {
42738
- assets2.push({
42739
- path: `__peach/swift-icu/${artifact.icu.sha256}`,
42740
- bytes: artifact.icu.gzip,
42741
- contentType: "application/gzip"
42742
- });
42743
- }
42837
+ if ("gzip" in artifact.icu) assets2.push(await swiftIcuBundleAsset(artifact.icu));
42744
42838
  }
42745
42839
  );
42746
42840
  if (!metadata) return null;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bundleGlobalFooter.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1886 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1887 | (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;