peachsim 0.1.2433 → 0.1.2435

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 (97) hide show
  1. package/cli/app-project.ts +5 -0
  2. package/cli/commands/box.ts +3 -0
  3. package/cli/commands/control.ts +14 -6
  4. package/cli/commands/platform.ts +3 -3
  5. package/cli/commands/stream.ts +8 -1
  6. package/dist-lib/agent-daemon-client.cjs +1 -1
  7. package/dist-lib/agent-events.cjs +1 -1
  8. package/dist-lib/attached-projects.cjs +1 -1
  9. package/dist-lib/auth/shared-session.cjs +1 -1
  10. package/dist-lib/backend-origin.cjs +1 -1
  11. package/dist-lib/beta.cjs +1 -1
  12. package/dist-lib/beta.mjs +1 -1
  13. package/dist-lib/bridge-constants.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.cjs +1 -1
  15. package/dist-lib/bridge-contract-input.mjs +1 -1
  16. package/dist-lib/bridge-contract.cjs +1 -1
  17. package/dist-lib/bridge-contract.mjs +1 -1
  18. package/dist-lib/bundle-channel.cjs +109 -38
  19. package/dist-lib/capture-contract.cjs +1 -1
  20. package/dist-lib/capture-contract.mjs +1 -1
  21. package/dist-lib/cloud-contract.cjs +1 -1
  22. package/dist-lib/cloud-contract.mjs +1 -1
  23. package/dist-lib/cloud-test-args.cjs +1 -1
  24. package/dist-lib/cloud-test-args.mjs +1 -1
  25. package/dist-lib/cloud.cjs +1 -1
  26. package/dist-lib/cloud.mjs +1 -1
  27. package/dist-lib/config.cjs +1 -1
  28. package/dist-lib/config.mjs +1 -1
  29. package/dist-lib/detox/index.cjs +1 -1
  30. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  31. package/dist-lib/expo-swift-bundle.cjs +99 -28
  32. package/dist-lib/expo-swift-metadata.cjs +1 -1
  33. package/dist-lib/expo-swift-metadata.mjs +1 -1
  34. package/dist-lib/home-paths.cjs +1 -1
  35. package/dist-lib/host/bridge-host.cjs +100 -29
  36. package/dist-lib/host/fetch-proxy-handler.cjs +4 -3
  37. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  38. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  39. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  40. package/dist-lib/host/websocket-proxy.cjs +1 -1
  41. package/dist-lib/index.cjs +15 -6
  42. package/dist-lib/jump-to-source-babel.cjs +1 -1
  43. package/dist-lib/jump-to-source-native.cjs +1 -1
  44. package/dist-lib/kotlin-host.cjs +1 -1
  45. package/dist-lib/menu.cjs +1 -1
  46. package/dist-lib/menu.mjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  48. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  49. package/dist-lib/metro-production-bundle.cjs +1 -1
  50. package/dist-lib/metro-production-bundle.mjs +1 -1
  51. package/dist-lib/metro.cjs +15 -6
  52. package/dist-lib/native-app-identity-project.cjs +13 -5
  53. package/dist-lib/native-app-identity-project.mjs +13 -5
  54. package/dist-lib/native-app-identity.cjs +1 -1
  55. package/dist-lib/native-app-identity.mjs +1 -1
  56. package/dist-lib/native-firebase-metadata.cjs +1 -1
  57. package/dist-lib/native-firebase-metadata.mjs +1 -1
  58. package/dist-lib/pdfium-raster.cjs +1 -1
  59. package/dist-lib/pdfium-raster.mjs +1 -1
  60. package/dist-lib/plist.cjs +1 -1
  61. package/dist-lib/plist.mjs +1 -1
  62. package/dist-lib/profiles.cjs +1 -1
  63. package/dist-lib/public-brand.cjs +1 -1
  64. package/dist-lib/public-origins-lib-esm.json +25 -25
  65. package/dist-lib/public-origins-lib.json +56 -56
  66. package/dist-lib/react-native-host-modules.cjs +1 -1
  67. package/dist-lib/react-native-host-modules.mjs +1 -1
  68. package/dist-lib/reap-browser.cjs +1 -1
  69. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  70. package/dist-lib/sdk.cjs +1 -1
  71. package/dist-lib/sdk.mjs +1 -1
  72. package/dist-lib/skills.cjs +122 -39
  73. package/dist-lib/swift-compile.cjs +78 -25
  74. package/dist-lib/swift-compile.mjs +78 -25
  75. package/dist-lib/swift-package.cjs +1 -1
  76. package/dist-lib/swift-package.mjs +1 -1
  77. package/dist-lib/swift-submit.cjs +1 -1
  78. package/dist-lib/swift-submit.mjs +1 -1
  79. package/dist-lib/swift-toolchain.cjs +1 -1
  80. package/dist-lib/swift.cjs +1 -1
  81. package/dist-lib/vite-swift.cjs +101 -31
  82. package/dist-lib/vite.cjs +4 -3
  83. package/dist-lib/worklet-executable.cjs +1 -1
  84. package/dist-lib/worklet-executable.mjs +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  86. package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +2 -2
  87. package/kotlin/sdk.tar.gz +0 -0
  88. package/package.json +1 -1
  89. package/src/bazel-project.ts +11 -3
  90. package/src/react-native-coverage/native-typescript-parser.ts +29 -1
  91. package/src/swift-compile.ts +49 -5
  92. package/src/swift-guest-image-ledger.ts +15 -12
  93. package/src/swift-guest-link.ts +13 -2
  94. package/src/swift-guest-source-inputs.ts +5 -1
  95. package/src/swift-host.ts +12 -0
  96. package/src/swift-submit.ts +2 -0
  97. package/src/swift-wasm-prune.ts +8 -3
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2433 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2435 | (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;
@@ -16615,8 +16615,10 @@ function bazelGraph(root, label, configuration) {
16615
16615
  );
16616
16616
  const deps = app2.attrs.get("deps")?.list ?? [];
16617
16617
  if (deps.length === 0) throw new Error(`${label} links no libraries`);
16618
+ const strings5 = app2.attrs.get("strings")?.list ?? [];
16618
16619
  const infoplists = app2.attrs.get("infoplists")?.list ?? [];
16619
- const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${deps.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
16620
+ const roots = [...deps, ...strings5];
16621
+ const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${roots.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
16620
16622
  const output2 = run7(["cquery", query, ...flags, "--output=jsonproto"]);
16621
16623
  const defaults = run7([
16622
16624
  "cquery",
@@ -16993,8 +16995,14 @@ ${published2.map(
16993
16995
  graph.app.attrs.get("infoplists")?.list ?? [],
16994
16996
  graph.app.label
16995
16997
  );
16998
+ const strings5 = files2.expand(
16999
+ graph.app.attrs.get("strings")?.list ?? [],
17000
+ graph.app.label
17001
+ );
17002
+ resources.push(...strings5);
16996
17003
  const absent = () => [
16997
17004
  ...infoPlistFiles,
17005
+ ...strings5,
16998
17006
  ...[...frameworks, appModule].flatMap((module2) => [
16999
17007
  ...module2.allSources,
17000
17008
  ...module2.objc?.headers ?? []
@@ -17038,7 +17046,7 @@ ${published2.map(
17038
17046
  const missing = options.requireSources === false ? [] : absent();
17039
17047
  if (missing.length > 0)
17040
17048
  throw new Error(
17041
- `bazel generates ${missing.length} sources this app compiles that are not built: ${missing.slice(0, 5).map((file) => import_node_path41.default.relative(root, file)).join(", ")}`
17049
+ `bazel application has ${missing.length} unbuilt inputs: ${missing.slice(0, 5).map((file) => import_node_path41.default.relative(root, file)).join(", ")}`
17042
17050
  );
17043
17051
  const archives = /* @__PURE__ */ new Map();
17044
17052
  for (const rule of order) {
@@ -17346,7 +17354,7 @@ var init_bazel_project = __esm({
17346
17354
  HEADER3 = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
17347
17355
  PRODUCTS = import_node_path41.default.join(".build", "peach-bazel", "Products");
17348
17356
  graphs = /* @__PURE__ */ new Map();
17349
- GRAPH_FORMAT = 4;
17357
+ GRAPH_FORMAT = 6;
17350
17358
  BazelFiles = class {
17351
17359
  constructor(graph, root) {
17352
17360
  this.graph = graph;
@@ -25830,7 +25838,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
25830
25838
  const def = definedGlobalSyms.get(symName);
25831
25839
  if (def) activateSymbolInObj(def.obj, def.symIdx);
25832
25840
  }
25833
- for (const symName of ["__peach_dlsym_from_image", "__peach_dlerror"]) {
25841
+ for (const symName of [
25842
+ "__peach_dlsym_from_image",
25843
+ "__peach_dlerror",
25844
+ ...link ? ["_dyld_register_func_for_add_image"] : []
25845
+ ]) {
25834
25846
  const provider = lazyProviders.get(symName)?.[0];
25835
25847
  if (provider) extractObject(provider);
25836
25848
  const def = definedGlobalSyms.get(symName);
@@ -26480,7 +26492,7 @@ function readString(bytes, position) {
26480
26492
  const [length, start] = readNumber(bytes, position);
26481
26493
  if (start + length > bytes.length) throw new Error("invalid wasm string");
26482
26494
  return [
26483
- Buffer.from(bytes.subarray(start, start + length)).toString("utf8"),
26495
+ Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
26484
26496
  start + length
26485
26497
  ];
26486
26498
  }
@@ -26505,7 +26517,7 @@ function llvmType(value) {
26505
26517
  function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
26506
26518
  if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
26507
26519
  throw new Error("expected wasm object");
26508
- const sections2 = [Buffer.from(bytes.subarray(0, 8))];
26520
+ const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
26509
26521
  const types = [];
26510
26522
  const functionTypes = [];
26511
26523
  const definitions = [];
@@ -26519,8 +26531,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
26519
26531
  const [size2, start] = readNumber(bytes, position);
26520
26532
  const end = start + size2;
26521
26533
  if (end > bytes.length) throw new Error("invalid wasm section");
26522
- let section = Buffer.from(bytes.subarray(start, end));
26523
26534
  position = end;
26535
+ if (!sections2 && id > 3) continue;
26536
+ let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size2);
26524
26537
  let offset = 0;
26525
26538
  const number3 = () => {
26526
26539
  const [value, next] = readNumber(section, offset);
@@ -26548,7 +26561,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
26548
26561
  }
26549
26562
  } else if (id === 2) {
26550
26563
  const count = number3();
26551
- const imports2 = [encodeNumber(count)];
26564
+ const imports2 = sections2 ? [encodeNumber(count)] : void 0;
26552
26565
  for (let i = 0; i < count; i++) {
26553
26566
  const module2 = string6();
26554
26567
  const name3 = string6();
@@ -26592,17 +26605,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
26592
26605
  }
26593
26606
  if (isDlsym) usesDlsym = true;
26594
26607
  if (isDlerror) usesDlerror = true;
26595
- imports2.push(
26608
+ imports2?.push(
26596
26609
  encodedString(module2),
26597
26610
  encodedString(
26598
- isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding(name3) ?? name3 : name3
26611
+ isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding?.(name3) ?? name3 : name3
26599
26612
  ),
26600
26613
  Buffer.from([kind]),
26601
26614
  section.subarray(typeStart, offset)
26602
26615
  );
26603
26616
  }
26604
26617
  if (offset !== section.length) throw new Error("invalid wasm import section");
26605
- section = Buffer.concat(imports2);
26618
+ if (imports2) section = Buffer.concat(imports2);
26606
26619
  } else if (id === 3) {
26607
26620
  const count = number3();
26608
26621
  for (let i = 0; i < count; i++) functionTypes.push(number3());
@@ -26686,7 +26699,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
26686
26699
  encodedString(name3 === "dlsym" ? callerAlias : "__peach_dlerror"),
26687
26700
  section.subarray(nameEnd, offset)
26688
26701
  );
26689
- } else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding(name3) !== void 0) {
26702
+ } else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding?.(name3) !== void 0) {
26690
26703
  entries.push(
26691
26704
  section.subarray(begin, nameStart),
26692
26705
  encodedString(binding(name3)),
@@ -26761,10 +26774,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
26761
26774
  section = Buffer.concat(parts);
26762
26775
  }
26763
26776
  }
26764
- sections2.push(Buffer.from([id]), encodeNumber(section.length), section);
26777
+ sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
26765
26778
  }
26766
26779
  return {
26767
- bytes: Buffer.concat(sections2),
26780
+ bytes: sections2 ? Buffer.concat(sections2) : bytes,
26768
26781
  definitions,
26769
26782
  functionImports,
26770
26783
  usesDlsym,
@@ -26820,7 +26833,7 @@ function createGuestImageLedger(input) {
26820
26833
  object7.bytes,
26821
26834
  aliases,
26822
26835
  `__peach_dlsym_caller_${image.id}`,
26823
- () => void 0,
26836
+ void 0,
26824
26837
  object7.instrumentDynamicLookups,
26825
26838
  /* @__PURE__ */ new Set()
26826
26839
  );
@@ -29488,13 +29501,21 @@ function verifyGuestSymbolScopes(options) {
29488
29501
  continue;
29489
29502
  if (!scope2.includes(provider)) {
29490
29503
  const candidates = options.definitionObjects.get(symbol2) ?? /* @__PURE__ */ new Set();
29491
- const providers = [...record3.providers.keys()];
29504
+ const traced = [...record3.providers.keys()];
29505
+ const strongTraced = traced.filter(
29506
+ (definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
29507
+ );
29508
+ const providers = strongTraced.length === 1 ? strongTraced : traced;
29492
29509
  if (options.weakReferences.get(object7)?.has(symbol2) && !providers.some((provider2) => options.systemProviders.has(provider2)))
29493
29510
  continue;
29494
29511
  const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
29495
29512
  (definer) => options.weakDefinitions.get(definer)?.has(symbol2)
29496
29513
  );
29497
- if (!equivalentCopies && (candidates.size !== 1 || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
29514
+ const strongCandidates = [...candidates].filter(
29515
+ (definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
29516
+ );
29517
+ const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
29518
+ if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
29498
29519
  // scope, the root image and its dependency closure, as in elf.
29499
29520
  provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object7)?.has(symbol2) && options.frameworkProviders.get(object7)?.has(providers[0]))))
29500
29521
  throw new Error(
@@ -29756,10 +29777,13 @@ function sourceGuestClangLinkOptions(options) {
29756
29777
  plan,
29757
29778
  JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
29758
29779
  );
29759
- (0, import_node_child_process26.execFileSync)(process.execPath, ["-e", PARALLEL_REPLAY], {
29780
+ const script = import_node_path55.default.join(options.directory, "clang-link-replay.cjs");
29781
+ (0, import_node_fs57.writeFileSync)(script, PARALLEL_REPLAY);
29782
+ (0, import_node_child_process26.execFileSync)(process.execPath, [script], {
29760
29783
  stdio: "inherit",
29761
29784
  env: {
29762
29785
  ...process.env,
29786
+ [PEACH_FORKED_SCRIPT_ENV]: "1",
29763
29787
  PEACH_CLANG_REPLAYS: plan,
29764
29788
  PEACH_CLANG_JOBS: String(options.jobs)
29765
29789
  }
@@ -30004,6 +30028,7 @@ var init_swift_guest_source_inputs = __esm({
30004
30028
  import_node_crypto27 = require("node:crypto");
30005
30029
  import_node_fs57 = require("node:fs");
30006
30030
  import_node_path55 = __toESM(require("node:path"), 1);
30031
+ init_forked_script_contract();
30007
30032
  init_swift_guest_source_plan();
30008
30033
  init_swift_runtime_products();
30009
30034
  CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
@@ -32997,6 +33022,8 @@ ${WASM_LOWER_IDENTITY}
32997
33022
  hash.update(JSON.stringify(input.staticClangTargets ?? []));
32998
33023
  hash.update(JSON.stringify(input.headerAliases ?? {}));
32999
33024
  hash.update(JSON.stringify(input.packageGuestImports ?? []));
33025
+ if (input.packageHostMacros?.length)
33026
+ hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
33000
33027
  if (input.defaultLocalization)
33001
33028
  hash.update(`default-localization
33002
33029
  ${input.defaultLocalization}
@@ -36629,6 +36656,8 @@ function swiftLinkStamp(args) {
36629
36656
  hash.update(`swift-link/v1
36630
36657
  ${args.frameworkKey}
36631
36658
  `);
36659
+ if (args.packageHostMacros?.length)
36660
+ hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
36632
36661
  if (!args.prebuilt) return hash.digest("hex");
36633
36662
  const statOf = (file) => {
36634
36663
  const stat = (0, import_node_fs67.statSync)(file, { bigint: true });
@@ -36853,11 +36882,13 @@ function compileSwiftProjectOnce(input, options) {
36853
36882
  });
36854
36883
  }
36855
36884
  if (options.project) removeProjectLinks(root);
36885
+ const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
36856
36886
  if (retireStaleSwiftLink(
36857
36887
  root,
36858
36888
  swiftLinkStamp({
36859
36889
  frameworkKey,
36860
- prebuilt
36890
+ prebuilt,
36891
+ packageHostMacros
36861
36892
  })
36862
36893
  ))
36863
36894
  report("framework revision changed; rebuilding the app link");
@@ -36880,8 +36911,38 @@ function compileSwiftProjectOnce(input, options) {
36880
36911
  ).product.name
36881
36912
  ] : []
36882
36913
  );
36883
- const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
36884
36914
  const compiler = preparation.targetToolset ? { CC: import_node_path66.default.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
36915
+ if (packageHostMacros?.length) {
36916
+ const swiftc = import_node_path66.default.join(root, SWIFT_HOST_COMPILER_WRAPPER);
36917
+ writeBuildFile(
36918
+ swiftc,
36919
+ [
36920
+ "#!/bin/sh",
36921
+ "target=",
36922
+ "module=",
36923
+ "compile=",
36924
+ "previous=",
36925
+ "for argument do",
36926
+ ' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
36927
+ ' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
36928
+ " previous=$argument",
36929
+ "done",
36930
+ 'case "$target/$compile" in',
36931
+ " *-*-linux*/1)",
36932
+ ' case ",$PEACH_SWIFT_HOST_MACROS," in',
36933
+ ' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
36934
+ " esac ;;",
36935
+ "esac",
36936
+ 'exec "$PEACH_SWIFTC" "$@"',
36937
+ ""
36938
+ ].join("\n")
36939
+ );
36940
+ (0, import_node_fs67.chmodSync)(swiftc, 493);
36941
+ compiler.SWIFT_EXEC = swiftc;
36942
+ compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
36943
+ compiler.PEACH_SWIFTC = import_node_path66.default.join(options.toolchainBin, "swiftc");
36944
+ }
36945
+ const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
36885
36946
  const appOptions = projectProcess ? {
36886
36947
  ...buildOptions,
36887
36948
  uid: projectProcess.uid,
@@ -37236,7 +37297,7 @@ function compileSwiftProjectOnce(input, options) {
37236
37297
  releaseDirectory: import_node_path66.default.dirname(linked),
37237
37298
  moduleRoot: frameworkRoot,
37238
37299
  toolchainBin: options.toolchainBin,
37239
- swiftCompiler: preparation.headerCompiler ? import_node_path66.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : import_node_path66.default.join(options.toolchainBin, "swiftc"),
37300
+ swiftCompiler: preparation.headerCompiler ? import_node_path66.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path66.default.join(options.toolchainBin, "swiftc"),
37240
37301
  sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
37241
37302
  sdk: swiftModuleSdk(frameworkRoot),
37242
37303
  staticClangTargets: input.staticClangTargets ?? [],
@@ -37274,7 +37335,7 @@ function compileSwiftProjectOnce(input, options) {
37274
37335
  options.signal
37275
37336
  );
37276
37337
  }
37277
- var import_node_child_process33, import_node_crypto31, import_node_fs67, import_node_os14, import_node_path66, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, REACH_STAGED_FRAMEWORKS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, cPredefineTable, cPredefineCache, SWIFT_SCAN_KEYWORDS, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
37338
+ var import_node_child_process33, import_node_crypto31, import_node_fs67, import_node_os14, import_node_path66, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, REACH_STAGED_FRAMEWORKS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, cPredefineTable, cPredefineCache, SWIFT_SCAN_KEYWORDS, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
37278
37339
  var init_swift_compile = __esm({
37279
37340
  "src/swift-compile.ts"() {
37280
37341
  "use strict";
@@ -37515,7 +37576,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
37515
37576
  REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
37516
37577
  MULTI_MANIFEST_VERSION = 72;
37517
37578
  SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
37518
- compilerSourceDigest = true ? "cdc5ec2138bb4a158f783cf86ed87144cd455551e18374805c743783ac04aa46" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
37579
+ compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
37519
37580
  nativeCxxCompilerFlags = ["-fno-cxx-modules"];
37520
37581
  cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
37521
37582
  cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
@@ -38011,6 +38072,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
38011
38072
  retainedArtifacts = /* @__PURE__ */ new Map();
38012
38073
  FRAMEWORK_LINK_TARGET = "PeachFrameworkLink";
38013
38074
  SWIFT_LINK_STAMP = ".peach-link-stamp";
38075
+ SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
38014
38076
  SWIFT_FRAMEWORK_SLOTS = 8;
38015
38077
  SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
38016
38078
  SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
@@ -41781,7 +41843,7 @@ var init_swift_standin_digest = __esm({
41781
41843
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
41782
41844
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
41783
41845
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
41784
- STANDIN_SOURCE_DIGEST = true ? "edbd6d6714a42d5d22c4d8b74e605e5c897358beb450af3e5605c81299e68531" : standinSourceDigest();
41846
+ STANDIN_SOURCE_DIGEST = true ? "2517dacc106de8d2cadefded667b8502b029a35f04f5453646eb48792e0fb55c" : standinSourceDigest();
41785
41847
  }
41786
41848
  });
41787
41849
 
@@ -53086,6 +53148,13 @@ function packageSnapshot(project, entry, moduleRoot) {
53086
53148
  ...Object.keys(projectFiles).length > 0 ? { projectFiles } : {},
53087
53149
  ...Object.keys(packageFiles2).length > 0 ? {
53088
53150
  packageFiles: packageFiles2,
53151
+ packageHostMacros: [
53152
+ ...new Set(
53153
+ (layout2?.packages.nativePackages ?? []).flatMap(
53154
+ ({ manifest }) => [...manifest.targets.values()].filter((target) => target.type === "macro").map((target) => swiftTargetModuleName(target.name))
53155
+ )
53156
+ )
53157
+ ].sort(),
53089
53158
  packageGuestImports: [
53090
53159
  ...new Set(
53091
53160
  (layout2?.packages.nativePackages ?? []).flatMap(
@@ -53152,7 +53221,8 @@ function snapshotCompileInput(snapshot) {
53152
53221
  files: snapshot.files,
53153
53222
  ...snapshot.packageFiles ? {
53154
53223
  packageFiles: snapshot.packageFiles,
53155
- packageGuestImports: snapshot.packageGuestImports
53224
+ packageGuestImports: snapshot.packageGuestImports,
53225
+ packageHostMacros: snapshot.packageHostMacros
53156
53226
  } : {},
53157
53227
  ...snapshot.projectFiles ? { projectFiles: snapshot.projectFiles } : {},
53158
53228
  ...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
@@ -53411,7 +53481,8 @@ async function compileRemote(packagePath, snapshot, hosted, ownerSignal) {
53411
53481
  files: snapshot.files,
53412
53482
  ...snapshot.packageFiles ? {
53413
53483
  packageFiles: snapshot.packageFiles,
53414
- packageGuestImports: snapshot.packageGuestImports
53484
+ packageGuestImports: snapshot.packageGuestImports,
53485
+ packageHostMacros: snapshot.packageHostMacros
53415
53486
  } : {},
53416
53487
  ...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
53417
53488
  ...snapshot.sourceLinkGraph ? { sourceLinkGraph: snapshot.sourceLinkGraph } : {},
@@ -75070,7 +75141,7 @@ init_swift_native_pin();
75070
75141
  init_xcode_project();
75071
75142
  var EXPO_NATIVE_ENTRY_NAME = "ios";
75072
75143
  function expoNativeCompilerDigestValue() {
75073
- return true ? "92f2e3795e852982bdccd3a73ae36de137f0eb97ab0ada5e0624f164f9c024b8" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
75144
+ return true ? "5f4ceb325a4bf4e4aa833707da1460384624555bbc7a3bed9d973bd2507d8db6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
75074
75145
  }
75075
75146
  var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
75076
75147
  function readSources(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2433 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2435 | (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.2433 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2435 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // ../peach-globals/src/bundle-global-footer.ts
4
4
  function findBundleFooter(source, prefix) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2433 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2435 | (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;