peachsim 0.1.2241 → 0.1.2243

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 (92) hide show
  1. package/cli/bridge-flow-runner.ts +10 -9
  2. package/cli/commands/flow.ts +4 -0
  3. package/cli/commands/inspect/settling.ts +496 -515
  4. package/cli/commands/platform.ts +2 -0
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +115 -28
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +498 -518
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +114 -27
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +122 -40
  35. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +496 -516
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +3 -3
  51. package/dist-lib/native-app-identity-project.cjs +2 -2
  52. package/dist-lib/native-app-identity-project.mjs +2 -2
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +53 -53
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +492 -512
  70. package/dist-lib/sdk.mjs +492 -512
  71. package/dist-lib/skills.cjs +632 -569
  72. package/dist-lib/swift-compile.cjs +13 -4
  73. package/dist-lib/swift-compile.mjs +13 -4
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +2 -2
  77. package/dist-lib/swift-submit.mjs +2 -2
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +507 -419
  81. package/dist-lib/vite.cjs +3 -3
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -0
  85. package/kotlin/sdk.tar.gz +0 -0
  86. package/package.json +1 -1
  87. package/src/host/bridge-host.ts +12 -13
  88. package/src/native-static-libraries.ts +98 -17
  89. package/src/swift-shared-sdk.ts +6 -1
  90. package/src/swift-standins.ts +11 -4
  91. package/src/swift-submit.ts +3 -1
  92. package/src/swift-wasm-prune.ts +28 -0
@@ -216,9 +216,11 @@ export async function runPlatformCommand(
216
216
  // leftover `--*` tokens are not bundle targets. parse the same flags `open`
217
217
  // consumes, then refuse anything still starting with `-`.
218
218
  const { parseBridgeCliArgs } = await import('../ws-bridge')
219
+ const { STREAM_FLAG } = await import('./stream')
219
220
  const leftover = parseBridgeCliArgs(args, {
220
221
  port: opts.port,
221
222
  stripBooleanFlags: [
223
+ STREAM_FLAG,
222
224
  '--new',
223
225
  '--headless',
224
226
  '--headed',
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var SIM_LONG_PRESS_MAX_MS = 5e3;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/bridge-contract.ts
4
4
  var REFUSED_PERFORM_STEP_TYPES = [
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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;
@@ -19105,7 +19105,7 @@ function weakenFoundationOverridesInArchive(arBuf) {
19105
19105
  } else if (name3.endsWith("/")) {
19106
19106
  name3 = name3.slice(0, -1);
19107
19107
  }
19108
- if (name3.endsWith("NSSortDescriptor.o")) {
19108
+ if (name3.endsWith("Bundle.o") || name3.endsWith("NSSortDescriptor.o")) {
19109
19109
  weakenFoundationSymbolsInWasmObj(arBuf.subarray(bodyStart, bodyEnd));
19110
19110
  }
19111
19111
  pos = bodyEnd + (size & 1);
@@ -19311,6 +19311,9 @@ var init_swift_shared_sdk = __esm({
19311
19311
  init_swift_toolchain();
19312
19312
  distributionHeaderRoots = /* @__PURE__ */ new Map();
19313
19313
  WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
19314
+ "$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
19315
+ "$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
19316
+ "$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
19314
19317
  "$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
19315
19318
  "$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
19316
19319
  "$s10Foundation16NSSortDescriptorC3keySSSgvg",
@@ -20227,7 +20230,7 @@ function patchSwiftrtObject(src) {
20227
20230
  }
20228
20231
  return buf;
20229
20232
  }
20230
- function parseWasmObjectBytes(file, buf, isDist) {
20233
+ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
20231
20234
  let pos = 8;
20232
20235
  let numImportFuncs = 0;
20233
20236
  const importFuncNames = [];
@@ -20383,6 +20386,7 @@ function parseWasmObjectBytes(file, buf, isDist) {
20383
20386
  let cur = p2;
20384
20387
  for (let i = 0; i < cnt; i++) {
20385
20388
  const kind = buf[cur++];
20389
+ if (symbolFlagOffsets) symbolFlagOffsets[i] = cur;
20386
20390
  const [fl, c2] = readULEB2(buf, cur);
20387
20391
  cur = c2;
20388
20392
  symKind[i] = kind;
@@ -20640,6 +20644,23 @@ function parseWasmObjectCached(file, isDist, useCache) {
20640
20644
  if (useCache) parsedObjectCache.set(key2, parsed);
20641
20645
  return parsed;
20642
20646
  }
20647
+ function localizeDefinedWasmSymbols(bytes, names) {
20648
+ const offsets = [];
20649
+ const object6 = parseWasmObjectBytes("", bytes, false, offsets);
20650
+ const output2 = Uint8Array.from(bytes);
20651
+ let changed = 0;
20652
+ for (let index = 0; index < object6.symNames.length; index++) {
20653
+ if (!names.has(object6.symNames[index])) continue;
20654
+ if ((object6.symFlags[index] & 3) === 2) continue;
20655
+ if (object6.symFlags[index] & 16)
20656
+ throw new Error("cannot localize an undefined symbol");
20657
+ const offset = offsets[index];
20658
+ output2[offset] = output2[offset] & ~35 | 2;
20659
+ changed++;
20660
+ }
20661
+ if (changed !== names.size) throw new Error("Wasm symbols to localize were not defined");
20662
+ return output2;
20663
+ }
20643
20664
  function guestWasmSymbols(bytes) {
20644
20665
  const object6 = parseWasmObjectBytes("", bytes, false);
20645
20666
  return {
@@ -21264,6 +21285,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
21264
21285
  if (def) activateSymbolInObj(def.obj, def.symIdx);
21265
21286
  }
21266
21287
  const WEAKEN_SDK_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
21288
+ "$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
21289
+ "$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
21290
+ "$s10Foundation6BundleC22preferredLocalizationsSaySSGvg",
21291
+ "$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZTf4nnd_n",
21292
+ "$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n",
21267
21293
  "$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_SbtcfC",
21268
21294
  "$s10Foundation16NSSortDescriptorC3key9ascendingACSSSg_Sbtcfc",
21269
21295
  "$s10Foundation16NSSortDescriptorC3keySSSgvg",
@@ -31847,7 +31873,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
31847
31873
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
31848
31874
  MULTI_MANIFEST_VERSION = 68;
31849
31875
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
31850
- compilerSourceDigest = true ? "3bbc36e39985b08e87a73a633978d40d8856f485ad28dbc7caf18e13cba6bf81" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
31876
+ compilerSourceDigest = true ? "b60df189803fef5c8b8fd902ae0a694ffbefe056af8f5fc06f707750dc97f09b" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
31851
31877
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
31852
31878
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
31853
31879
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -36777,7 +36803,7 @@ var init_swift_submit = __esm({
36777
36803
  MAX_SWIFT_COMPILE_IMAGES = 256;
36778
36804
  MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
36779
36805
  MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
36780
- SWIFT_HOST_ABI = 71;
36806
+ SWIFT_HOST_ABI = 72;
36781
36807
  POLL_INTERVAL_MS = 1500;
36782
36808
  }
36783
36809
  });
@@ -40450,7 +40476,63 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
40450
40476
  throw new Error(
40451
40477
  `${file}: native WebAssembly archive ${entry.name}/${entry.key} is not built for this compiler and SDK`
40452
40478
  );
40453
- return import_node_path64.default.join(dir, recipe2.archive);
40479
+ const archive = import_node_path64.default.join(dir, recipe2.archive);
40480
+ return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
40481
+ }
40482
+ function isRustSymbol(name3, demangled) {
40483
+ return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
40484
+ }
40485
+ function rustStaticLibrary(file, moduleRoot) {
40486
+ const toolchain = swiftModuleToolchain(moduleRoot);
40487
+ const key2 = (0, import_node_crypto31.createHash)("sha256").update("rust-c-abi-v2\0").update(toolchain.release).update("\0").update(import_node_fs64.default.readFileSync(file)).digest("hex");
40488
+ const directory2 = import_node_path64.default.join(cacheDir(), "native-archives", key2);
40489
+ const archive = import_node_path64.default.join(directory2, "library.a");
40490
+ if (import_node_fs64.default.existsSync(archive)) return archive;
40491
+ const flags = ["--no-sort", "--extern-only", "--defined-only", "--format=just-symbols"];
40492
+ const options = { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 };
40493
+ const symbols = (input) => {
40494
+ const raw2 = (0, import_node_child_process34.execFileSync)(
40495
+ import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
40496
+ [...flags, input],
40497
+ options
40498
+ ).trim().split("\n");
40499
+ const demangled = (0, import_node_child_process34.execFileSync)(
40500
+ import_node_path64.default.join(toolchain.toolchainBin, "llvm-nm"),
40501
+ [...flags, "--demangle", input],
40502
+ options
40503
+ ).trim().split("\n");
40504
+ if (raw2.length !== demangled.length)
40505
+ throw new Error(`${file}: Rust symbol table changed during intake`);
40506
+ return raw2.map((name3, index) => ({ name: name3, demangled: demangled[index] }));
40507
+ };
40508
+ if (!symbols(file).some(({ name: name3, demangled }) => isRustSymbol(name3, demangled)))
40509
+ return file;
40510
+ import_node_fs64.default.mkdirSync(directory2, { recursive: true });
40511
+ const stage = import_node_fs64.default.mkdtempSync(import_node_path64.default.join(directory2, "build-"));
40512
+ try {
40513
+ const object6 = import_node_path64.default.join(stage, "library.o");
40514
+ (0, import_node_child_process34.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "wasm-ld"), [
40515
+ "-mwasm64",
40516
+ "-r",
40517
+ "--whole-archive",
40518
+ file,
40519
+ "--no-whole-archive",
40520
+ "-o",
40521
+ object6
40522
+ ]);
40523
+ const names = new Set(
40524
+ symbols(object6).filter(
40525
+ ({ name: name3, demangled }) => isRustSymbol(name3, demangled) || name3.startsWith("anon.")
40526
+ ).map(({ name: name3 }) => name3)
40527
+ );
40528
+ import_node_fs64.default.writeFileSync(object6, localizeDefinedWasmSymbols(import_node_fs64.default.readFileSync(object6), names));
40529
+ const output2 = import_node_path64.default.join(stage, "library.a");
40530
+ (0, import_node_child_process34.execFileSync)(import_node_path64.default.join(toolchain.toolchainBin, "llvm-ar"), ["rcsD", output2, object6]);
40531
+ import_node_fs64.default.renameSync(output2, archive);
40532
+ } finally {
40533
+ import_node_fs64.default.rmSync(stage, { recursive: true, force: true });
40534
+ }
40535
+ return archive;
40454
40536
  }
40455
40537
  function combineNativeStaticLibraries(files2, moduleRoot) {
40456
40538
  if (files2.length === 1) return files2[0];
@@ -40488,6 +40570,7 @@ var init_native_static_libraries = __esm({
40488
40570
  init_native_prebuilt();
40489
40571
  init_swift_compile();
40490
40572
  init_swift_distribution();
40573
+ init_swift_wasm_prune();
40491
40574
  init_swift_xcframework();
40492
40575
  NATIVE_STATIC_LIBRARY_RECIPES = [
40493
40576
  // react-native-libsodium's minimal apple build of the 1.0.20 release
@@ -40516,6 +40599,7 @@ var init_native_static_libraries = __esm({
40516
40599
  },
40517
40600
  {
40518
40601
  name: "anydoc_mobile",
40602
+ runtime: "rust",
40519
40603
  nativeSha256: "03b721dd9e98ec2767f7952aa65cde57d0c33d7ec80c9aaf7ab5ba77e055a25c",
40520
40604
  upstream: "e41ad6375fd80b64c4183d1a3f901d1f640a7953",
40521
40605
  recipe: "c180538533a79fe1c8babda204170806abe80dd4a546689dcc34c109c9fbfcfc",
@@ -40523,6 +40607,7 @@ var init_native_static_libraries = __esm({
40523
40607
  },
40524
40608
  {
40525
40609
  name: "ratex_ffi",
40610
+ runtime: "rust",
40526
40611
  nativeSha256: "8c41abcd8dd4e562e65cf5b88467a3493089c359d0863360dc65a5b88149e837",
40527
40612
  upstream: "a4296fa21cd40a56543602511bcf417014f4fee7cf5e1eaab58e0ac9610e3f63",
40528
40613
  // the unchanged source build, pinned Rust release and committed Cargo.lock.
@@ -40531,6 +40616,7 @@ var init_native_static_libraries = __esm({
40531
40616
  },
40532
40617
  {
40533
40618
  name: "ratex_ffi_0_1_14",
40619
+ runtime: "rust",
40534
40620
  nativeSha256: "bdd2bf679fcc981d98d36733b3bd083225a7397bb82bbd462c89088c6e0580a8",
40535
40621
  upstream: "2da907eb5dfcb464c7eef3b4c657fbdee144e3c6633e81efb1e56dcf1c76e01b",
40536
40622
  recipe: "537054295b8230548b3959b38459af2606cae69b226e37f6a2e0c227a8ad3cb1",
@@ -40541,112 +40627,112 @@ var init_native_static_libraries = __esm({
40541
40627
  name: "skia",
40542
40628
  nativeSha256: "5312f2b194b1f6b6721388028bf919e56400278245b039f47136aa98f0582333",
40543
40629
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40544
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40630
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40545
40631
  archive: "libskia.a"
40546
40632
  },
40547
40633
  {
40548
40634
  name: "skia_svg",
40549
40635
  nativeSha256: "77adc498cff85db7850fb713c306681c6337f9b4ec42991b3764c8f3eff9d8d0",
40550
40636
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40551
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40637
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40552
40638
  archive: "libsvg.a"
40553
40639
  },
40554
40640
  {
40555
40641
  name: "skia_skshaper",
40556
40642
  nativeSha256: "830bcf260bd24fd79ee5d323e26ec667638795e3a0e555f1093371b8342c345c",
40557
40643
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40558
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40644
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40559
40645
  archive: "libskshaper.a"
40560
40646
  },
40561
40647
  {
40562
40648
  name: "skia_skparagraph",
40563
40649
  nativeSha256: "26afd4e5b11d46b0820a2cd7fd9918eb5a041946e1a1c0d4b91a5d54877e9dda",
40564
40650
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40565
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40651
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40566
40652
  archive: "libskparagraph.a"
40567
40653
  },
40568
40654
  {
40569
40655
  name: "skia_skunicode_core",
40570
40656
  nativeSha256: "629f58c4e81157d42e353b2b255bebb2fd94d1f31d8f8157e982fa4367710526",
40571
40657
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40572
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40658
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40573
40659
  archive: "libskunicode_core.a"
40574
40660
  },
40575
40661
  {
40576
40662
  name: "skia_skunicode_libgrapheme",
40577
40663
  nativeSha256: "047bd82306ba688453a3ff9dc02e203cdf16f2084551cca54f5d2b099baf1895",
40578
40664
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40579
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40665
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40580
40666
  archive: "libskunicode_libgrapheme.a"
40581
40667
  },
40582
40668
  {
40583
40669
  name: "skia_skottie",
40584
40670
  nativeSha256: "75c0dfd82a256e761cddc45475b8109ed8c9a442767cf3a8bf8720eef0dd4af7",
40585
40671
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40586
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40672
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40587
40673
  archive: "libskottie.a"
40588
40674
  },
40589
40675
  {
40590
40676
  name: "skia_sksg",
40591
40677
  nativeSha256: "df9652a46505d3c5c74d55b52295ef39218d2b5856e074117461fa2348312c8d",
40592
40678
  upstream: "9f9e6beb751091ef69163d2b4fdcd1e711b594ac",
40593
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40679
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40594
40680
  archive: "libsksg.a"
40595
40681
  },
40596
40682
  {
40597
40683
  name: "skia",
40598
40684
  nativeSha256: "c9b007c4da16f66d84b2f108af719b424ef91ee0759e58df0b76930bc6f82e31",
40599
40685
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40600
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40686
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40601
40687
  archive: "libskia.a"
40602
40688
  },
40603
40689
  {
40604
40690
  name: "skia_svg",
40605
40691
  nativeSha256: "159705737769610b60216b114a28ba833840aa1df7833424df99edec4405b86f",
40606
40692
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40607
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40693
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40608
40694
  archive: "libsvg.a"
40609
40695
  },
40610
40696
  {
40611
40697
  name: "skia_skshaper",
40612
40698
  nativeSha256: "934f3dbf3f38bca87b463b664a17c1588840f86ec89cf6961fb2a89b6336b35b",
40613
40699
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40614
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40700
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40615
40701
  archive: "libskshaper.a"
40616
40702
  },
40617
40703
  {
40618
40704
  name: "skia_skparagraph",
40619
40705
  nativeSha256: "29a48349fc9b75c252b22fc6ca5ade90636900f82beec58780f03fd66ab345b3",
40620
40706
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40621
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40707
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40622
40708
  archive: "libskparagraph.a"
40623
40709
  },
40624
40710
  {
40625
40711
  name: "skia_skunicode_core",
40626
40712
  nativeSha256: "096e5139c4de528dbba5a9605895f4c725853e48225503bdfa9c1d70241e5f58",
40627
40713
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40628
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40714
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40629
40715
  archive: "libskunicode_core.a"
40630
40716
  },
40631
40717
  {
40632
40718
  name: "skia_skunicode_libgrapheme",
40633
40719
  nativeSha256: "d1ec3c2d5ad6889eb4fbf4a6bab74f39946739501d40de903f7d8cb2181ac37d",
40634
40720
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40635
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40721
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40636
40722
  archive: "libskunicode_libgrapheme.a"
40637
40723
  },
40638
40724
  {
40639
40725
  name: "skia_skottie",
40640
40726
  nativeSha256: "52ea2e046f45f51df6027d783e923864e8c4ef94a1fe4fc5971e436574d8ae57",
40641
40727
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40642
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40728
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40643
40729
  archive: "libskottie.a"
40644
40730
  },
40645
40731
  {
40646
40732
  name: "skia_sksg",
40647
40733
  nativeSha256: "541a74d8f83dc411efe8eeac377486a5054fab4c7710afe406a20a27efe8f627",
40648
40734
  upstream: "b94213a11b3a2edadfae89f0c57a7f4ab72772c9",
40649
- recipe: "91591e98be98542547d3ea972803b7929675c3569d98c7a3d92d266896f84545",
40735
+ recipe: "8675d17f45d09403bc82f0377f57a6258eb2e44e0a301278cb8e737517d9e6c5",
40650
40736
  archive: "libsksg.a"
40651
40737
  },
40652
40738
  {
@@ -43773,7 +43859,7 @@ var init_swift_standin_digest = __esm({
43773
43859
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
43774
43860
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
43775
43861
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
43776
- STANDIN_SOURCE_DIGEST = true ? "a337dfa692c4f84cc4b30522d000cdd1c7c4c140d002f00e11c12179ed99631e" : standinSourceDigest();
43862
+ STANDIN_SOURCE_DIGEST = true ? "9d24428078636d005cc1401363f5f50704e049f52802b0493da7eea674470942" : standinSourceDigest();
43777
43863
  }
43778
43864
  });
43779
43865
 
@@ -46151,7 +46237,8 @@ function standinLibrary(binary2, searchRoot, toolchain) {
46151
46237
  throw new Error(
46152
46238
  `${import_node_path74.default.relative(searchRoot, supplied)} holds no single static library${library ? ` named ${library}` : ""}`
46153
46239
  );
46154
- return import_node_path74.default.join(supplied, chosen);
46240
+ if (!toolchain) throw new Error("supplied native libraries need the Swift SDK");
46241
+ return rustStaticLibrary(import_node_path74.default.join(supplied, chosen), toolchain.moduleRoot);
46155
46242
  }
46156
46243
  if (native && toolchain && import_node_fs75.default.existsSync(native.file)) {
46157
46244
  const recipe2 = nativeStaticLibraryRecipe(import_node_fs75.default.readFileSync(native.file));
@@ -46176,8 +46263,8 @@ function standinLibrary(binary2, searchRoot, toolchain) {
46176
46263
  if (!toolchain) throw new Error("Rust native libraries need the Swift SDK");
46177
46264
  const entry = rustCrateEntry(manifest, library, toolchain.moduleRoot, searchRoot);
46178
46265
  const prebuilt = fetchNativeEntry("rust", entry.name, entry.key);
46179
- if (prebuilt) return import_node_path74.default.join(prebuilt, library);
46180
- return buildRustCrate(manifest, library, searchRoot, toolchain.moduleRoot, entry);
46266
+ const archive = prebuilt ? import_node_path74.default.join(prebuilt, library) : buildRustCrate(manifest, library, searchRoot, toolchain.moduleRoot, entry);
46267
+ return rustStaticLibrary(archive, toolchain.moduleRoot);
46181
46268
  }
46182
46269
  function buildRustCrate(manifest, library, searchRoot, moduleRoot, entry = rustCrateEntry(manifest, library, moduleRoot, searchRoot)) {
46183
46270
  const compiler = swiftModuleToolchain(moduleRoot);
@@ -56362,7 +56449,7 @@ var init_nitro_superset = __esm({
56362
56449
  init_nitroContract();
56363
56450
  init_swift_standin_digest();
56364
56451
  NITRO_SUPERSET_ENTRY_NAME = "superset";
56365
- NITRO_COMPILER_DIGEST = true ? "2654de7d6f4ee1bfbf3d26bee2e065bd0211eb9173f462cfd958195b8b799d23" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
56452
+ NITRO_COMPILER_DIGEST = true ? "8e7da6e1e94c6020fbefec0b7297e54c6b727169dad0f2470f7606913c295d0f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
56366
56453
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
56367
56454
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
56368
56455
  published = /* @__PURE__ */ new Map();
@@ -57587,7 +57674,7 @@ var init_expo_native_compiler_digest = __esm({
57587
57674
 
57588
57675
  // src/expo-native-prebuilt.ts
57589
57676
  function expoNativeCompilerDigestValue() {
57590
- return true ? "0072d8f70d340dad805c0aff2b37027d400668b0c7b65ed167b47c6b3f1431d5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
57677
+ return true ? "627212ff3caecd928de8497818fc5fd77af14529e378d77e3ea67a523f33e4c1" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
57591
57678
  }
57592
57679
  function readSources(value) {
57593
57680
  const sources = isRecord(value) ? value.sources : null;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (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.2241 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2243 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../contrast-runtime-delivery/src/version.ts
4
4
  function isValidRuntimeVersion(value) {