peachsim 0.1.2738 → 0.1.2743

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 (133) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +2 -2
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +5 -5
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +3 -3
  13. package/dist-lib/bundle-channel.cjs +310 -185
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +3 -3
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +3 -3
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +2 -2
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +7 -7
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +5 -5
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/esm-chunks/{acorn-Q6ATHJ5Q.mjs → acorn-4LW63VJO.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-WCK2HANP.mjs → chunk-23OQSLRP.mjs} +289 -182
  28. package/dist-lib/esm-chunks/{chunk-PKLW5P4C.mjs → chunk-2HP5FPCA.mjs} +1 -1
  29. package/dist-lib/esm-chunks/{chunk-V3CW4EN6.mjs → chunk-6FHNPTCA.mjs} +13 -7
  30. package/dist-lib/esm-chunks/{chunk-7JFDXIZQ.mjs → chunk-7NBU6OXB.mjs} +4 -4
  31. package/dist-lib/esm-chunks/{chunk-5NOBLXKV.mjs → chunk-B3F4HKM6.mjs} +5 -5
  32. package/dist-lib/esm-chunks/{chunk-3FBJGWPT.mjs → chunk-BJSA6VP6.mjs} +1 -1
  33. package/dist-lib/esm-chunks/{chunk-YMCYBEB7.mjs → chunk-BNJ5YG7V.mjs} +2 -2
  34. package/dist-lib/esm-chunks/{chunk-BQW3EWAQ.mjs → chunk-BQUYNIMY.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-EU6UNSUW.mjs → chunk-BW3KZJV5.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-YU4ISPGO.mjs → chunk-EAAYQS4L.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-ZXORDMAT.mjs → chunk-EES2SLJK.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-XJDM6LFX.mjs → chunk-GIZQHA6L.mjs} +6 -6
  39. package/dist-lib/esm-chunks/{chunk-ONFP5RP7.mjs → chunk-HOUFNDEV.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-3CPES2EZ.mjs → chunk-JHOZWSFF.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-NMGEJJ2J.mjs → chunk-LVCSLWR2.mjs} +1 -1
  42. package/dist-lib/esm-chunks/{chunk-GI5VVEKN.mjs → chunk-OEQBNK6V.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-P72RUOTY.mjs → chunk-SG7MN2KW.mjs} +3 -3
  44. package/dist-lib/esm-chunks/{chunk-6Q3JLKPD.mjs → chunk-THJMTM3L.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-KDIDYS42.mjs → chunk-THSR72MV.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-HLWFKLLD.mjs → chunk-V3SRJIBE.mjs} +1 -1
  47. package/dist-lib/esm-chunks/{chunk-TBX7JBPC.mjs → chunk-VJKLZAU2.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-JDLZMI2L.mjs → chunk-WKGJ6LAU.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-2FSMFZ42.mjs → chunk-XP5F6PNN.mjs} +1 -1
  50. package/dist-lib/esm-chunks/{chunk-2EW5XIGF.mjs → chunk-ZLQX4SVV.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-R2UJPOJL.mjs → metro-layout-parser-L57PU3TD.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-W34QYBXU.mjs → swift-package-prebuilt-UNXWJN7B.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-RO5AZPWM.mjs → swift-sdk-app-module-DZV3XYCP.mjs} +16 -16
  54. package/dist-lib/esm-chunks/{swift-sdk-image-CWTI76JI.mjs → swift-sdk-image-WRYMP64Z.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-JGTU2ZCE.mjs → swift-sdk-image-producer-D6DOCCCR.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +310 -185
  57. package/dist-lib/expo-swift-metadata.cjs +1 -1
  58. package/dist-lib/expo-swift-metadata.mjs +7 -7
  59. package/dist-lib/home-paths.cjs +1 -1
  60. package/dist-lib/host/bridge-host.cjs +3782 -1684
  61. package/dist-lib/host/fetch-proxy-handler.cjs +41 -10
  62. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  63. package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
  64. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  65. package/dist-lib/host/websocket-proxy.cjs +1 -1
  66. package/dist-lib/index.cjs +1 -1
  67. package/dist-lib/kotlin-host.cjs +1 -1
  68. package/dist-lib/menu.cjs +1 -1
  69. package/dist-lib/menu.mjs +3 -3
  70. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  71. package/dist-lib/metro-fingerprint-registry.mjs +3 -3
  72. package/dist-lib/metro-production-bundle.cjs +1 -1
  73. package/dist-lib/metro-production-bundle.mjs +4 -4
  74. package/dist-lib/native-app-identity-project.cjs +1 -1
  75. package/dist-lib/native-app-identity-project.mjs +15 -15
  76. package/dist-lib/native-app-identity.cjs +1 -1
  77. package/dist-lib/native-app-identity.mjs +6 -6
  78. package/dist-lib/native-firebase-metadata.cjs +1 -1
  79. package/dist-lib/native-firebase-metadata.mjs +3 -3
  80. package/dist-lib/pdfium-raster.cjs +1 -1
  81. package/dist-lib/pdfium-raster.mjs +2 -2
  82. package/dist-lib/plist.cjs +1 -1
  83. package/dist-lib/plist.mjs +3 -3
  84. package/dist-lib/profiles.cjs +1 -1
  85. package/dist-lib/public-brand.cjs +1 -1
  86. package/dist-lib/public-origins-lib-esm.json +88 -86
  87. package/dist-lib/public-origins-lib.json +86 -72
  88. package/dist-lib/react-native-host-modules.cjs +1 -1
  89. package/dist-lib/react-native-host-modules.mjs +2 -2
  90. package/dist-lib/reap-browser.cjs +1 -1
  91. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  92. package/dist-lib/sdk.cjs +1 -1
  93. package/dist-lib/sdk.mjs +8 -8
  94. package/dist-lib/skills.cjs +4213 -2115
  95. package/dist-lib/swift-compile.cjs +303 -178
  96. package/dist-lib/swift-compile.mjs +12 -12
  97. package/dist-lib/swift-package.cjs +1 -1
  98. package/dist-lib/swift-package.mjs +3 -3
  99. package/dist-lib/swift-submit.cjs +1 -1
  100. package/dist-lib/swift-submit.mjs +6 -6
  101. package/dist-lib/swift-svg-raster.cjs +1 -1
  102. package/dist-lib/swift-svg-raster.mjs +2 -2
  103. package/dist-lib/swift-toolchain.cjs +1 -1
  104. package/dist-lib/swift.cjs +1 -1
  105. package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
  106. package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
  107. package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
  108. package/dist-lib/vendor/acorn.cjs +1 -1
  109. package/dist-lib/vendor/magic-string.cjs +1 -1
  110. package/dist-lib/vendor/stream-json.cjs +1 -1
  111. package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
  112. package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
  113. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
  114. package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
  115. package/dist-lib/vendor/sucrase.cjs +1 -1
  116. package/dist-lib/vendor/terser.cjs +1 -1
  117. package/dist-lib/vendor/valibot.cjs +1 -1
  118. package/dist-lib/vendor/ws.cjs +1 -1
  119. package/dist-lib/vendor/zod.cjs +1 -1
  120. package/dist-lib/worklet-executable.cjs +1 -1
  121. package/dist-lib/worklet-executable.mjs +3 -3
  122. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  123. package/dist-types/packages/peach-engine/src/engine/effects-shader-registry.d.ts +2 -12
  124. package/dist-types/packages/peach-engine/src/engine/native-font-dataContract.d.ts +1 -0
  125. package/dist-types/packages/peach-engine/src/engine/native-style-store.d.ts +1 -1
  126. package/dist-types/packages/peach-engine/src/engine/scene-native-binding.d.ts +0 -1
  127. package/dist-types/packages/peach-kit/src/ui/hosting-safe-area.d.ts +17 -1
  128. package/package.json +1 -1
  129. package/src/one-direct-host-source.ts +254 -0
  130. package/src/one-native-controls-package.ts +99 -21
  131. package/src/swift-compile.ts +145 -120
  132. package/src/swift-sdk-image-map.ts +35 -0
  133. package/src/swift-sdk-image.ts +12 -2
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2738 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2743 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  acquireSwiftRootReadHold,
4
4
  hasLiveSwiftRootReaders,
5
5
  retainSwiftRootReadHold,
6
6
  withSwiftRootLock
7
- } from "./chunk-YMCYBEB7.mjs";
7
+ } from "./chunk-BNJ5YG7V.mjs";
8
8
  import {
9
9
  CORE_FOUNDATION_OVERLAY_GLOBALS,
10
10
  NATIVE_GRAPH_SDK_VERSION,
@@ -55,7 +55,7 @@ import {
55
55
  withoutImportedSdkEnumForwards,
56
56
  withoutSwiftDeclarations,
57
57
  writeBuildFile
58
- } from "./chunk-XJDM6LFX.mjs";
58
+ } from "./chunk-GIZQHA6L.mjs";
59
59
  import {
60
60
  SWIFT_AUTOLINK_LINKER,
61
61
  SWIFT_CACHE_HOLD_MARKER,
@@ -72,7 +72,7 @@ import {
72
72
  wasmThreadLinkFlags,
73
73
  windowAdmission,
74
74
  writeSwiftAutolinkLinker
75
- } from "./chunk-TBX7JBPC.mjs";
75
+ } from "./chunk-VJKLZAU2.mjs";
76
76
  import {
77
77
  SWIFT_BINARY_TREES_DIR,
78
78
  SWIFT_NATIVE_INPUT_ROOT,
@@ -87,7 +87,7 @@ import {
87
87
  isSwiftResourcePath,
88
88
  isSwiftSourceLinkGraph,
89
89
  swiftProjectFilesProblems
90
- } from "./chunk-JDLZMI2L.mjs";
90
+ } from "./chunk-WKGJ6LAU.mjs";
91
91
  import {
92
92
  OBJC_RESOURCE_ACCESSOR_BODY,
93
93
  OBJC_RESOURCE_ACCESSOR_HEADER,
@@ -110,16 +110,16 @@ import {
110
110
  swiftPackagePartition,
111
111
  swiftTargetModuleName,
112
112
  withoutGlogModuleMap
113
- } from "./chunk-GI5VVEKN.mjs";
113
+ } from "./chunk-OEQBNK6V.mjs";
114
114
  import {
115
115
  rnxPublicBrand
116
- } from "./chunk-3CPES2EZ.mjs";
116
+ } from "./chunk-JHOZWSFF.mjs";
117
117
  import {
118
118
  isRecord
119
- } from "./chunk-PKLW5P4C.mjs";
119
+ } from "./chunk-2HP5FPCA.mjs";
120
120
  import {
121
121
  __publicField
122
- } from "./chunk-NMGEJJ2J.mjs";
122
+ } from "./chunk-LVCSLWR2.mjs";
123
123
 
124
124
  // src/swift-compile.ts
125
125
  import {
@@ -4008,6 +4008,21 @@ function referencedResourceClasses(classNames, resources) {
4008
4008
  // src/swift-sdk-image-map.ts
4009
4009
  import { basename } from "node:path";
4010
4010
 
4011
+ // ../peach-kit/src/guest-engine-services.ts
4012
+ var PEACH_GUEST_SERVICE_MODULE = "peach_guest_services";
4013
+ var PEACH_GUEST_SERVICE_PREFIX = "peach_guest_service_";
4014
+ var peachGuestServiceNames = [
4015
+ "peach_app_config_resolve",
4016
+ "peach_audio_host_request",
4017
+ "peach_site_origin",
4018
+ "services_request",
4019
+ "services_storage_error"
4020
+ ];
4021
+ var peachGuestServiceSymbols = peachGuestServiceNames.map(
4022
+ (name) => PEACH_GUEST_SERVICE_PREFIX + name
4023
+ );
4024
+ var peachGuestServiceAllowlist = peachGuestServiceSymbols.join("\n") + "\n";
4025
+
4011
4026
  // src/swift-guest-linked-spans.ts
4012
4027
  import { closeSync, openSync, readSync } from "node:fs";
4013
4028
  import { StringDecoder } from "node:string_decoder";
@@ -4761,6 +4776,111 @@ function takeGuestStartupData(wasm, address, length) {
4761
4776
  return { wasm: Buffer.concat(parts), bytes };
4762
4777
  }
4763
4778
 
4779
+ // src/wasm-binary-sections.ts
4780
+ function encodeWasmNumber(value) {
4781
+ const bytes = [];
4782
+ for (let rest = value; ; ) {
4783
+ const byte = rest % 128;
4784
+ rest = Math.floor(rest / 128);
4785
+ if (rest === 0) return [...bytes, byte];
4786
+ bytes.push(byte | 128);
4787
+ }
4788
+ }
4789
+ function encodeWasmName(name) {
4790
+ const bytes = new TextEncoder().encode(name);
4791
+ return [...encodeWasmNumber(bytes.length), ...bytes];
4792
+ }
4793
+ function readWasmSection(bytes, start, end) {
4794
+ let at = start;
4795
+ const number3 = () => {
4796
+ let value = 0;
4797
+ for (let shift = 0; ; shift += 7) {
4798
+ if (at >= end || shift > 63) throw new Error("invalid wasm integer");
4799
+ const byte = bytes[at++];
4800
+ value += (byte & 127) * 2 ** shift;
4801
+ if (!(byte & 128)) return value;
4802
+ }
4803
+ };
4804
+ return {
4805
+ number: number3,
4806
+ byte: () => {
4807
+ if (at >= end) throw new Error("truncated wasm section");
4808
+ return bytes[at++];
4809
+ },
4810
+ name: () => {
4811
+ const length = number3();
4812
+ at += length;
4813
+ if (at > end) throw new Error("truncated wasm name");
4814
+ return Buffer.from(bytes.buffer, bytes.byteOffset + at - length, length).toString();
4815
+ },
4816
+ position: () => at,
4817
+ done: () => at === end
4818
+ };
4819
+ }
4820
+ function wasmSections(bytes) {
4821
+ if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
4822
+ throw new Error("not a wasm module");
4823
+ const found = [];
4824
+ for (let at = 8; at < bytes.length; ) {
4825
+ const header = readWasmSection(bytes, at, bytes.length);
4826
+ const id = header.byte();
4827
+ const size = header.number();
4828
+ const start = header.position();
4829
+ if (start + size > bytes.length) throw new Error("truncated wasm section");
4830
+ found.push({ id, offset: at, start, end: start + size });
4831
+ at = start + size;
4832
+ }
4833
+ return found;
4834
+ }
4835
+
4836
+ // src/wasm-imports.ts
4837
+ function readWasmImports(bytes, section2, visit) {
4838
+ const input = readWasmSection(bytes, section2.start, section2.end);
4839
+ const count = input.number();
4840
+ const valueType = () => {
4841
+ const first = input.byte();
4842
+ if (first === 99 || first === 100) input.number();
4843
+ };
4844
+ const limits = () => {
4845
+ const flags = input.number();
4846
+ input.number();
4847
+ if (flags & 1) input.number();
4848
+ if (flags & 8) input.number();
4849
+ };
4850
+ for (let index = 0; index < count; index++) {
4851
+ const start = input.position();
4852
+ const module = input.name();
4853
+ const name = input.name();
4854
+ const type = input.position();
4855
+ const kind = input.byte();
4856
+ switch (kind) {
4857
+ case 0:
4858
+ input.number();
4859
+ break;
4860
+ case 1:
4861
+ valueType();
4862
+ limits();
4863
+ break;
4864
+ case 2:
4865
+ limits();
4866
+ break;
4867
+ case 3:
4868
+ valueType();
4869
+ input.byte();
4870
+ break;
4871
+ case 4:
4872
+ input.byte();
4873
+ input.number();
4874
+ break;
4875
+ default:
4876
+ throw new Error(`unsupported Wasm import kind ${kind}`);
4877
+ }
4878
+ visit({ module, name, kind, start, type, end: input.position() });
4879
+ }
4880
+ if (!input.done()) throw new Error("invalid Wasm imports");
4881
+ return count;
4882
+ }
4883
+
4764
4884
  // src/swift-sdk-image-map.ts
4765
4885
  var PARTITIONED = [
4766
4886
  ".rodata",
@@ -4774,6 +4894,29 @@ var PARTITIONED = [
4774
4894
  "swift5_mpenum",
4775
4895
  "__objc_class_refs"
4776
4896
  ];
4897
+ function assertPeachGuestEngineLink(map, linked) {
4898
+ const guestSymbol = /^peach_guest_(sdk|removed|service)_/;
4899
+ const unresolved = /* @__PURE__ */ new Set();
4900
+ for (const chunk of map.code) {
4901
+ if (chunk.inputFile !== "<internal>" || chunk.section !== "undefined_stub") continue;
4902
+ for (const { name } of chunk.symbols) if (guestSymbol.test(name)) unresolved.add(name);
4903
+ }
4904
+ if (unresolved.size)
4905
+ throw new Error(
4906
+ `unresolved PeachEngine calls in the Swift SDK:
4907
+ ${[...unresolved].sort().join("\n")}`
4908
+ );
4909
+ const imports = wasmSections(linked).find((section2) => section2.id === 2);
4910
+ if (imports)
4911
+ readWasmImports(linked, imports, ({ kind, module, name }) => {
4912
+ if (module !== PEACH_GUEST_SERVICE_MODULE && !guestSymbol.test(name)) return;
4913
+ if (kind === 0 && module === PEACH_GUEST_SERVICE_MODULE && peachGuestServiceSymbols.includes(name))
4914
+ return;
4915
+ throw new Error(
4916
+ `unexpected PeachEngine host import in the Swift SDK: ${module}.${name}`
4917
+ );
4918
+ });
4919
+ }
4777
4920
  var chunkKey = (chunk, symbol = chunk.symbols[0]?.name ?? "") => `${chunk.object}:${chunk.section}:${symbol}`;
4778
4921
  var isPartitioned = (section2) => PARTITIONED.some((name) => section2 === name || section2.startsWith(`${name}.`));
4779
4922
  function isHexChar(code) {
@@ -4989,7 +5132,7 @@ function wasmReader(bytes, start) {
4989
5132
  }
4990
5133
  };
4991
5134
  }
4992
- function wasmSections(bytes) {
5135
+ function wasmSections2(bytes) {
4993
5136
  const out = [];
4994
5137
  for (let at = 8; at < bytes.length; ) {
4995
5138
  const r = wasmReader(bytes, at);
@@ -5109,7 +5252,7 @@ function* readFunctionNames(bytes, names) {
5109
5252
  }
5110
5253
  }
5111
5254
  function orderObjCConstructors(bytes) {
5112
- const sections = wasmSections(bytes);
5255
+ const sections = wasmSections2(bytes);
5113
5256
  const names = sections.find((s) => s.name === "name");
5114
5257
  if (!names) return bytes;
5115
5258
  let constructors;
@@ -5157,7 +5300,7 @@ function orderObjCConstructors(bytes) {
5157
5300
  return ordered;
5158
5301
  }
5159
5302
  function readModule(bytes) {
5160
- const sections = wasmSections(bytes);
5303
+ const sections = wasmSections2(bytes);
5161
5304
  const get = (id) => sections.find((s) => s.id === id);
5162
5305
  const types = [];
5163
5306
  const typeSection = get(1);
@@ -5378,7 +5521,7 @@ function finishSdkImage(bytes, hostExports, libraries, guestMap) {
5378
5521
  return { image: Buffer.concat(parts), sdkInterface, functionSlots };
5379
5522
  }
5380
5523
  function passiveSegments(bytes) {
5381
- const data = wasmSections(bytes).find((s) => s.id === 11);
5524
+ const data = wasmSections2(bytes).find((s) => s.id === 11);
5382
5525
  if (!data) throw new Error("sdk image has no data section");
5383
5526
  const r = wasmReader(bytes, data.start);
5384
5527
  const out = [];
@@ -5484,7 +5627,7 @@ var SWIFT_SDK_CONSTRUCTOR_LIMIT = 16384;
5484
5627
  function constructorKeys(map, bytes) {
5485
5628
  const first = map.code[0];
5486
5629
  if (!first) throw new Error("link has no code");
5487
- const sections = wasmSections(bytes);
5630
+ const sections = wasmSections2(bytes);
5488
5631
  const code = sections.find((s) => s.id === 10);
5489
5632
  if (!code) throw new Error("link has no code");
5490
5633
  const ctors = map.code.find((chunk) => chunk.section === "__wasm_call_ctors");
@@ -5581,7 +5724,7 @@ for (const type of MEMORY_RELOCATIONS) MEMORY_RELOC_MASK |= 1 << type;
5581
5724
  var ADDEND_RELOC_MASK = 0;
5582
5725
  for (const type of ADDEND_RELOCATIONS) ADDEND_RELOC_MASK |= 1 << type;
5583
5726
  function relocationEdges(bytes, segmentAddress) {
5584
- const sections = wasmSections(bytes);
5727
+ const sections = wasmSections2(bytes);
5585
5728
  const linking = sections.find((s) => s.name === "linking");
5586
5729
  if (!linking) throw new Error("relocation link has no linking section");
5587
5730
  let symKind = new Uint8Array(0);
@@ -5749,7 +5892,7 @@ function relocationEdges(bytes, segmentAddress) {
5749
5892
  return { data, code, dataFunctions, calls };
5750
5893
  }
5751
5894
  function strongDefinitions(bytes) {
5752
- const linking = wasmSections(bytes).find((s) => s.name === "linking");
5895
+ const linking = wasmSections2(bytes).find((s) => s.name === "linking");
5753
5896
  if (!linking) return [];
5754
5897
  const r = wasmReader(bytes, linking.start);
5755
5898
  r.u();
@@ -5792,7 +5935,7 @@ function strongDefinitions(bytes) {
5792
5935
  ).map((s) => s.name);
5793
5936
  }
5794
5937
  function unslottedFunctions(bytes) {
5795
- const sections = wasmSections(bytes);
5938
+ const sections = wasmSections2(bytes);
5796
5939
  const importedFuncs = countImportedFunctions(
5797
5940
  bytes,
5798
5941
  sections.find((s) => s.id === 2)
@@ -9800,63 +9943,6 @@ function nameGuestImageAliases(wasm, symbols) {
9800
9943
  return Buffer.concat(parts);
9801
9944
  }
9802
9945
 
9803
- // src/wasm-binary-sections.ts
9804
- function encodeWasmNumber(value) {
9805
- const bytes = [];
9806
- for (let rest = value; ; ) {
9807
- const byte = rest % 128;
9808
- rest = Math.floor(rest / 128);
9809
- if (rest === 0) return [...bytes, byte];
9810
- bytes.push(byte | 128);
9811
- }
9812
- }
9813
- function encodeWasmName(name) {
9814
- const bytes = new TextEncoder().encode(name);
9815
- return [...encodeWasmNumber(bytes.length), ...bytes];
9816
- }
9817
- function readWasmSection(bytes, start, end) {
9818
- let at = start;
9819
- const number3 = () => {
9820
- let value = 0;
9821
- for (let shift = 0; ; shift += 7) {
9822
- if (at >= end || shift > 63) throw new Error("invalid wasm integer");
9823
- const byte = bytes[at++];
9824
- value += (byte & 127) * 2 ** shift;
9825
- if (!(byte & 128)) return value;
9826
- }
9827
- };
9828
- return {
9829
- number: number3,
9830
- byte: () => {
9831
- if (at >= end) throw new Error("truncated wasm section");
9832
- return bytes[at++];
9833
- },
9834
- name: () => {
9835
- const length = number3();
9836
- at += length;
9837
- if (at > end) throw new Error("truncated wasm name");
9838
- return Buffer.from(bytes.buffer, bytes.byteOffset + at - length, length).toString();
9839
- },
9840
- position: () => at,
9841
- done: () => at === end
9842
- };
9843
- }
9844
- function wasmSections2(bytes) {
9845
- if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
9846
- throw new Error("not a wasm module");
9847
- const found = [];
9848
- for (let at = 8; at < bytes.length; ) {
9849
- const header = readWasmSection(bytes, at, bytes.length);
9850
- const id = header.byte();
9851
- const size = header.number();
9852
- const start = header.position();
9853
- if (start + size > bytes.length) throw new Error("truncated wasm section");
9854
- found.push({ id, offset: at, start, end: start + size });
9855
- at = start + size;
9856
- }
9857
- return found;
9858
- }
9859
-
9860
9946
  // src/wasm-narrow-boundary.ts
9861
9947
  var I64 = 126;
9862
9948
  var VALUE_TYPES = /* @__PURE__ */ new Map([
@@ -9878,7 +9964,7 @@ function writeWasmCustomSections(bytes, entries2) {
9878
9964
  const parts = [];
9879
9965
  let sliceStart = 0;
9880
9966
  let sliceEnd = 8;
9881
- for (const { id, start, end } of wasmSections2(bytes)) {
9967
+ for (const { id, start, end } of wasmSections(bytes)) {
9882
9968
  if (id === 0 && replaced.has(readWasmSection(bytes, start, end).name())) {
9883
9969
  if (sliceEnd > sliceStart) parts.push(bytes.subarray(sliceStart, sliceEnd));
9884
9970
  sliceStart = end;
@@ -9902,7 +9988,7 @@ function writeWasmCustomSection(bytes, name, data) {
9902
9988
  return writeWasmCustomSections(bytes, [[name, data]]);
9903
9989
  }
9904
9990
  function readWasmMemory(bytes) {
9905
- return readWasmMemoryAndTableImports(bytes, wasmSections2(bytes)).memory;
9991
+ return readWasmMemoryAndTableImports(bytes, wasmSections(bytes)).memory;
9906
9992
  }
9907
9993
  function readWasmMemoryAndTableImports(bytes, layout2) {
9908
9994
  let memory;
@@ -9970,7 +10056,7 @@ var signature = (types, keyword, narrow) => types.length === 0 ? "" : ` (${keywo
9970
10056
  }).join(" ")})`;
9971
10057
  var wide = (type) => type.parameters.includes(I64) || type.results.includes(I64);
9972
10058
  function narrowWasmBoundary(bytes, wideExports) {
9973
- const layout2 = wasmSections2(bytes);
10059
+ const layout2 = wasmSections(bytes);
9974
10060
  const section2 = (id) => {
9975
10061
  const found = layout2.find((entry) => entry.id === id);
9976
10062
  return found && readWasmSection(bytes, found.start, found.end);
@@ -10097,7 +10183,7 @@ ${[...imports, ...functions].join("\n")}
10097
10183
  }
10098
10184
  var NARROW_MERGE_NAMES = { guest: GUEST, boundary: BOUNDARY };
10099
10185
  function dropBoundaryExports(bytes) {
10100
- const layout2 = wasmSections2(bytes);
10186
+ const layout2 = wasmSections(bytes);
10101
10187
  const found = layout2.find((entry) => entry.id === 7);
10102
10188
  if (!found) throw new Error("merged module has no exports");
10103
10189
  const exportSection = readWasmSection(bytes, found.start, found.end);
@@ -10116,7 +10202,7 @@ function dropBoundaryExports(bytes) {
10116
10202
  );
10117
10203
  }
10118
10204
  function withWasmTableMinimum(bytes, minimum) {
10119
- const layout2 = wasmSections2(bytes);
10205
+ const layout2 = wasmSections(bytes);
10120
10206
  const table = layout2.find(({ id }) => id === 4);
10121
10207
  if (!table) {
10122
10208
  if (readWasmMemoryAndTableImports(bytes, layout2).tableImports === 1) return bytes;
@@ -10368,7 +10454,7 @@ var readExport = (r) => {
10368
10454
  r.u();
10369
10455
  };
10370
10456
  function appendLazyPlacement(bytes, functions, table) {
10371
- const sections = wasmSections(bytes);
10457
+ const sections = wasmSections2(bytes);
10372
10458
  const section2 = (id) => sections.find((s) => s.id === id);
10373
10459
  const imports = readImports2(bytes, sections);
10374
10460
  const changes = /* @__PURE__ */ new Map();
@@ -10487,7 +10573,7 @@ function skipElementSegment(r) {
10487
10573
  }
10488
10574
  var lastTableElement = (segments) => segments.findLastIndex((segment) => (segment[0] & 3) !== 3);
10489
10575
  function placeGuestLazyFunctions(bytes, lazy) {
10490
- const sections = wasmSections(bytes);
10576
+ const sections = wasmSections2(bytes);
10491
10577
  const lazyIndex = new Map(lazy.map((name, index) => [name, index]));
10492
10578
  const functions = new Array(lazy.length);
10493
10579
  let found = 0;
@@ -14383,7 +14469,7 @@ async function compileGuestLink(options) {
14383
14469
  };
14384
14470
  const sdk = options.sdkImage;
14385
14471
  const sdkCallers = sdk.sdkInterface.guestCallers;
14386
- const sdkObjects = (await import("./swift-sdk-image-CWTI76JI.mjs")).readSwiftSdkManifestIndex(
14472
+ const sdkObjects = (await import("./swift-sdk-image-WRYMP64Z.mjs")).readSwiftSdkManifestIndex(
14387
14473
  sdk
14388
14474
  ).guestObjects;
14389
14475
  if (!sdkCallers || !sdkObjects)
@@ -14683,7 +14769,7 @@ async function compileGuestLink(options) {
14683
14769
  swiftAppModuleThunkSection,
14684
14770
  swiftSdkProjectionSpans,
14685
14771
  writeSwiftSdkAppLink
14686
- } = await import("./swift-sdk-app-module-RO5AZPWM.mjs");
14772
+ } = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
14687
14773
  const project = options.project;
14688
14774
  const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
14689
14775
  if (project) chownSync(work, project.uid, project.gid);
@@ -16656,7 +16742,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
16656
16742
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
16657
16743
  var MULTI_MANIFEST_VERSION = 76;
16658
16744
  var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
16659
- var compilerSourceDigest = true ? "e091b1d1136da1a4432f222cbd5e3fbaf60db69c87ca5439ded0f17f7a3b4980" : swiftCompilerSourceDigest(import.meta.dirname);
16745
+ var compilerSourceDigest = true ? "c83dc1b17f6e7fc01d5217313795b0276b66d9f33db641855c80c055d7d77edd" : swiftCompilerSourceDigest(import.meta.dirname);
16660
16746
  function swiftArtifactHash(input, release, moduleRoot) {
16661
16747
  return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
16662
16748
  }
@@ -17448,7 +17534,7 @@ function findTargetForFile(file, byDir, predicate) {
17448
17534
  }
17449
17535
  return void 0;
17450
17536
  }
17451
- function compiledSwiftSources(files, targets, overlayFrameworks, headers, nativeSourceGlue = false) {
17537
+ function compiledSwiftSources(files, targets, overlayFrameworks, headers) {
17452
17538
  const ordered = [...targets].sort((a, b) => b.path.length - a.path.length);
17453
17539
  const byDir = indexTargetsByDirectory(ordered);
17454
17540
  const excludeSets = /* @__PURE__ */ new Map();
@@ -17474,7 +17560,7 @@ function compiledSwiftSources(files, targets, overlayFrameworks, headers, native
17474
17560
  const { onWasm, withoutWasm } = swiftTargetArchitectures(targets, swiftSources, headers);
17475
17561
  return new Map(
17476
17562
  [...owners].map(([file, { source, owner }]) => {
17477
- if (nativeSourceGlue && path23.posix.basename(file) === "OneNativeSource.generated.swift")
17563
+ if (path23.posix.basename(file) === "OneNativeSource.generated.swift")
17478
17564
  return [file, source];
17479
17565
  const manifest = /(?:^|\/)Package(?:@swift-[\d.]+)?\.swift$/.test(file);
17480
17566
  if (manifest && (!owner || /^Package(?:@swift-[\d.]+)?\.swift$/.test(file)))
@@ -19116,8 +19202,7 @@ module ${moduleName}.Swift {
19116
19202
  ([file]) => /\.(?:h|hh|hpp)$/.test(file)
19117
19203
  ));
19118
19204
  return headerFiles.filter(([file]) => file.startsWith(`${directory}/`)).map(([, contents]) => contents);
19119
- },
19120
- input.oneModule
19205
+ }
19121
19206
  );
19122
19207
  const libraryEntryFiles = /* @__PURE__ */ new Map();
19123
19208
  for (const target of [...targets]) {
@@ -20390,9 +20475,10 @@ var frameworkProductsReceiptSchema = object({
20390
20475
  objcHeaders: array(tuple([string(), string()])),
20391
20476
  archived: array(tuple([string(), string()]))
20392
20477
  });
20393
- function readFrameworkProductsReceipt(scratch, receiptKey) {
20478
+ function readFrameworkProductsReceipt(scratch, receiptKey, planChangedAt = 0n) {
20394
20479
  const receiptFile = path23.join(scratch, "products-ready", `${receiptKey}.json`);
20395
- if (!existsSync9(receiptFile)) return null;
20480
+ const receiptStat = statSync4(receiptFile, { bigint: true, throwIfNoEntry: false });
20481
+ if (!receiptStat || receiptStat.mtimeNs < planChangedAt) return null;
20396
20482
  let parsed;
20397
20483
  try {
20398
20484
  parsed = parse(
@@ -20516,117 +20602,136 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
20516
20602
  const unoptimized = args.input.unoptimized === true;
20517
20603
  const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
20518
20604
  const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
20519
- const receiptKey = createHash16("sha256").update(
20605
+ const receiptKeyFor = (products) => createHash16("sha256").update(
20520
20606
  JSON.stringify([
20521
20607
  "framework-products/v2",
20522
20608
  args.frameworkKey,
20523
20609
  unoptimized,
20524
20610
  args.sdk,
20525
20611
  args.toolchainBin,
20526
- [...linkedTargets.products].sort(),
20612
+ [...products].sort(),
20527
20613
  darwinRecordsMinimum(),
20528
20614
  args.plugins,
20529
20615
  sdkOptions,
20530
20616
  selectorOptions
20531
20617
  ])
20532
20618
  ).digest("hex").slice(0, 32);
20619
+ const receiptKey = receiptKeyFor(linkedTargets.products);
20533
20620
  const ready = readFrameworkProductsReceipt(scratch, receiptKey);
20534
20621
  if (ready) return ready;
20535
20622
  if (!allowWrite) return;
20536
20623
  const linkRoot = path23.join(scratch, "link");
20537
- writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
20538
- const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
20539
- mkdirSync7(frameworkTmp, { recursive: true });
20540
- const jobs = swiftCompilerJobs();
20541
- const targetJobs = jobs >= 4 ? 2 : 1;
20542
- const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
20543
- const cache = unoptimized ? null : prepareFrameworkCompileCache(
20624
+ const manifest = path23.join(linkRoot, "Package.swift");
20625
+ const manifestStat = statSync4(manifest, { bigint: true, throwIfNoEntry: false });
20626
+ const planStat = statSync4(path23.join(scratch, "release.yaml"), {
20627
+ bigint: true,
20628
+ throwIfNoEntry: false
20629
+ });
20630
+ const builtProducts = manifestStat && planStat ? [
20631
+ ...readFileSync13(manifest, "utf8").matchAll(
20632
+ /^\s*\.product\(name: "([^"]+)", package:/gm
20633
+ )
20634
+ ].map((match) => match[1]) : [];
20635
+ const reusePlan = manifestStat && planStat && linkedTargets.products.every((product) => builtProducts.includes(product)) && readFrameworkProductsReceipt(
20544
20636
  scratch,
20545
- args.moduleRoot,
20546
- args.toolchainBin,
20547
- sdkOptions,
20548
- linkedTargets.products
20637
+ receiptKeyFor(builtProducts),
20638
+ manifestStat.ctimeNs > planStat.ctimeNs ? manifestStat.ctimeNs : planStat.ctimeNs
20549
20639
  );
20550
- await runCompiler(
20551
- args.swift,
20552
- [
20553
- "build",
20554
- ...swiftPackageCacheOptions(),
20555
- "--build-system",
20556
- "native",
20557
- "-j",
20558
- String(targetJobs),
20559
- "--package-path",
20560
- linkRoot,
20561
- "--scratch-path",
20640
+ if (!reusePlan) {
20641
+ writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
20642
+ const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
20643
+ mkdirSync7(frameworkTmp, { recursive: true });
20644
+ const jobs = swiftCompilerJobs();
20645
+ const targetJobs = jobs >= 4 ? 2 : 1;
20646
+ const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
20647
+ const cache = unoptimized ? null : prepareFrameworkCompileCache(
20562
20648
  scratch,
20563
- "--target",
20564
- FRAMEWORK_LINK_TARGET,
20565
- ...sdkOptions,
20566
- ...selectorOptions,
20567
- "--swift-sdk",
20568
- args.sdk,
20569
- "-c",
20570
- "release",
20571
- ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
20572
- "-Xswiftc",
20573
- unoptimized ? "-Onone" : "-Osize",
20574
- "-Xswiftc",
20575
- "-no-whole-module-optimization",
20576
- // optimized batches can move specialized definitions between object files.
20577
- ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
20578
- "-Xswiftc",
20579
- "-enable-batch-mode",
20580
- // each batch repeats the same framework diagnostics.
20581
- ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
20582
- "-Xswiftc",
20583
- "-j",
20584
- "-Xswiftc",
20585
- String(driverJobs),
20586
- // the release link strips all debug info, so none is generated.
20587
- "-Xswiftc",
20588
- "-gnone",
20589
- "-Xcc",
20590
- "-g0",
20591
- "-Xcxx",
20592
- "-g0",
20593
- "-Xswiftc",
20594
- "-num-threads",
20595
- "-Xswiftc",
20596
- "1",
20597
- ...swiftReproducibleBuildFlags([
20598
- [path23.dirname(args.toolchainBin), "toolchain"],
20599
- [args.moduleRoot, "framework"],
20600
- [scratch, "framework-scratch"]
20601
- ]),
20602
- ...args.plugins.libraries.flatMap((plugin) => [
20649
+ args.moduleRoot,
20650
+ args.toolchainBin,
20651
+ sdkOptions,
20652
+ linkedTargets.products
20653
+ );
20654
+ await runCompiler(
20655
+ args.swift,
20656
+ [
20657
+ "build",
20658
+ ...swiftPackageCacheOptions(),
20659
+ "--build-system",
20660
+ "native",
20661
+ "-j",
20662
+ String(targetJobs),
20663
+ "--package-path",
20664
+ linkRoot,
20665
+ "--scratch-path",
20666
+ scratch,
20667
+ "--target",
20668
+ FRAMEWORK_LINK_TARGET,
20669
+ ...sdkOptions,
20670
+ ...selectorOptions,
20671
+ "--swift-sdk",
20672
+ args.sdk,
20673
+ "-c",
20674
+ "release",
20675
+ ...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
20603
20676
  "-Xswiftc",
20604
- "-load-plugin-library",
20677
+ unoptimized ? "-Onone" : "-Osize",
20605
20678
  "-Xswiftc",
20606
- plugin
20607
- ]),
20608
- ...args.plugins.executables.flatMap((plugin) => [
20679
+ "-no-whole-module-optimization",
20680
+ // optimized batches can move specialized definitions between object files.
20681
+ ...unoptimized ? ["-Xswiftc", "-incremental"] : [],
20609
20682
  "-Xswiftc",
20610
- "-load-plugin-executable",
20683
+ "-enable-batch-mode",
20684
+ // each batch repeats the same framework diagnostics.
20685
+ ...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
20611
20686
  "-Xswiftc",
20612
- `${plugin}#ExpoModulesMacros`
20613
- ])
20614
- ],
20615
- // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
20616
- // the framework build's warnings alone pass the default 1 MiB cap, which kills
20617
- // the build one step from the end.
20618
- {
20619
- ...args.buildOptions,
20620
- temporaryDirectory: frameworkTmp,
20621
- maxBuffer: 64 * 1024 * 1024
20622
- },
20623
- SWIFTPM_PROGRESS,
20624
- SWIFTPM_NOISE
20625
- ).catch((error) => {
20626
- throw new Error(outputOf(error), { cause: error });
20627
- }).finally(() => {
20628
- if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
20629
- });
20687
+ "-j",
20688
+ "-Xswiftc",
20689
+ String(driverJobs),
20690
+ // the release link strips all debug info, so none is generated.
20691
+ "-Xswiftc",
20692
+ "-gnone",
20693
+ "-Xcc",
20694
+ "-g0",
20695
+ "-Xcxx",
20696
+ "-g0",
20697
+ "-Xswiftc",
20698
+ "-num-threads",
20699
+ "-Xswiftc",
20700
+ "1",
20701
+ ...swiftReproducibleBuildFlags([
20702
+ [path23.dirname(args.toolchainBin), "toolchain"],
20703
+ [args.moduleRoot, "framework"],
20704
+ [scratch, "framework-scratch"]
20705
+ ]),
20706
+ ...args.plugins.libraries.flatMap((plugin) => [
20707
+ "-Xswiftc",
20708
+ "-load-plugin-library",
20709
+ "-Xswiftc",
20710
+ plugin
20711
+ ]),
20712
+ ...args.plugins.executables.flatMap((plugin) => [
20713
+ "-Xswiftc",
20714
+ "-load-plugin-executable",
20715
+ "-Xswiftc",
20716
+ `${plugin}#ExpoModulesMacros`
20717
+ ])
20718
+ ],
20719
+ // swiftpm hashes TMPDIR into its plan; keep one stable compiler scratch inside the locked slot.
20720
+ // the framework build's warnings alone pass the default 1 MiB cap, which kills
20721
+ // the build one step from the end.
20722
+ {
20723
+ ...args.buildOptions,
20724
+ temporaryDirectory: frameworkTmp,
20725
+ maxBuffer: 64 * 1024 * 1024
20726
+ },
20727
+ SWIFTPM_PROGRESS,
20728
+ SWIFTPM_NOISE
20729
+ ).catch((error) => {
20730
+ throw new Error(outputOf(error), { cause: error });
20731
+ }).finally(() => {
20732
+ if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
20733
+ });
20734
+ }
20630
20735
  const release = path23.join(scratch, WASM_TRIPLE, "release");
20631
20736
  const linked = frameworkLinkClosure(scratch, linkedTargets.targets);
20632
20737
  const objects = linked.objects;
@@ -21170,7 +21275,7 @@ async function compileSwiftProjectOnce(sources, options) {
21170
21275
  const distribution = swiftDistributionAt(moduleRoot);
21171
21276
  const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
21172
21277
  if (distribution) refreshSwiftCacheHold(moduleRoot);
21173
- const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-W34QYBXU.mjs")).useSwiftPackagePrebuilts(
21278
+ const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-UNXWJN7B.mjs")).useSwiftPackagePrebuilts(
21174
21279
  sources,
21175
21280
  moduleRoot,
21176
21281
  options.toolchainBin
@@ -21183,7 +21288,7 @@ async function compileSwiftProjectOnce(sources, options) {
21183
21288
  sources: path23.join(root, "Sources", "App"),
21184
21289
  multi: compileTargets(input).length > 0
21185
21290
  };
21186
- const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-CWTI76JI.mjs")).buildSwiftSdkImage(
21291
+ const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-WRYMP64Z.mjs")).buildSwiftSdkImage(
21187
21292
  moduleRoot,
21188
21293
  !!guestGraph,
21189
21294
  distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
@@ -21902,7 +22007,7 @@ ${compatShape}` : "";
21902
22007
  });
21903
22008
  sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
21904
22009
  } else {
21905
- const { buildSwiftAppModule } = await import("./swift-sdk-app-module-RO5AZPWM.mjs");
22010
+ const { buildSwiftAppModule } = await import("./swift-sdk-app-module-DZV3XYCP.mjs");
21906
22011
  const binding = await buildSwiftAppModule({
21907
22012
  buildRoot: root2,
21908
22013
  toolchainBin: options.toolchainBin,
@@ -21944,14 +22049,16 @@ ${compatShape}` : "";
21944
22049
 
21945
22050
  export {
21946
22051
  DARWIN_RECORDS_PREFIX,
22052
+ peachGuestServiceAllowlist,
21947
22053
  guestWasmDataSegments,
22054
+ assertPeachGuestEngineLink,
21948
22055
  chunkKey,
21949
22056
  isPartitioned,
21950
22057
  readWasmLinkMap,
21951
22058
  SWIFT_SDK_FUNCTION_ADDRESS_PREFIX,
21952
22059
  SWIFT_SDK_APP_TABLE_BASE,
21953
22060
  wasmReader,
21954
- wasmSections,
22061
+ wasmSections2 as wasmSections,
21955
22062
  orderObjCConstructors,
21956
22063
  finishSdkImage,
21957
22064
  passiveSegments,