peachsim 0.1.2778 → 0.1.2780

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 (139) 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 +295 -480
  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-RWBIRNWO.mjs → acorn-SPK2673W.mjs} +3 -3
  27. package/dist-lib/esm-chunks/{chunk-ZWOS2EDN.mjs → chunk-3BAOVPYB.mjs} +118 -361
  28. package/dist-lib/esm-chunks/{chunk-MRIDS3GE.mjs → chunk-664T7XWT.mjs} +5 -5
  29. package/dist-lib/esm-chunks/{chunk-QKTKE4OX.mjs → chunk-7B4ZRXZW.mjs} +1 -1
  30. package/dist-lib/esm-chunks/{chunk-G7UJ4BAC.mjs → chunk-7UJZBQ6G.mjs} +1 -1
  31. package/dist-lib/esm-chunks/{chunk-EXU474NE.mjs → chunk-B4DO5WJD.mjs} +1 -1
  32. package/dist-lib/esm-chunks/{chunk-IQSFMB4R.mjs → chunk-DO3C6MOG.mjs} +4 -4
  33. package/dist-lib/esm-chunks/{chunk-K3ULPN2R.mjs → chunk-DZZZCBJY.mjs} +1 -1
  34. package/dist-lib/esm-chunks/{chunk-5TIUTQ55.mjs → chunk-EEN3DGCH.mjs} +1 -1
  35. package/dist-lib/esm-chunks/{chunk-ZDWMPXYI.mjs → chunk-JIGACUAS.mjs} +1 -1
  36. package/dist-lib/esm-chunks/{chunk-X25PQNNH.mjs → chunk-JIKQAODQ.mjs} +1 -1
  37. package/dist-lib/esm-chunks/{chunk-6YHF4VYF.mjs → chunk-MIESONPY.mjs} +1 -1
  38. package/dist-lib/esm-chunks/{chunk-3RPELUA2.mjs → chunk-NDMVV5PE.mjs} +6 -6
  39. package/dist-lib/esm-chunks/{chunk-KX7LV722.mjs → chunk-NLIWJ2AO.mjs} +1 -1
  40. package/dist-lib/esm-chunks/{chunk-5WASPTSS.mjs → chunk-P7DZLDBL.mjs} +1 -1
  41. package/dist-lib/esm-chunks/{chunk-F3OPIKJC.mjs → chunk-RDFBVP4E.mjs} +2 -2
  42. package/dist-lib/esm-chunks/{chunk-DLBUPWTI.mjs → chunk-SWCGFJ5A.mjs} +1 -1
  43. package/dist-lib/esm-chunks/{chunk-KLA74B7J.mjs → chunk-T6THDRRU.mjs} +1 -1
  44. package/dist-lib/esm-chunks/{chunk-3WQANOYY.mjs → chunk-TBKPPEGS.mjs} +1 -1
  45. package/dist-lib/esm-chunks/{chunk-QUVLFF6I.mjs → chunk-UHTFNN5A.mjs} +1 -1
  46. package/dist-lib/esm-chunks/{chunk-GSTHJQMW.mjs → chunk-VV2TNQK4.mjs} +115 -18
  47. package/dist-lib/esm-chunks/{chunk-VZ3NXXUC.mjs → chunk-WKE7Z3LU.mjs} +1 -1
  48. package/dist-lib/esm-chunks/{chunk-LQVLXDRN.mjs → chunk-WXCV7NSJ.mjs} +1 -1
  49. package/dist-lib/esm-chunks/{chunk-KBYVKTVK.mjs → chunk-X2OBXRGN.mjs} +3 -3
  50. package/dist-lib/esm-chunks/{chunk-N2PEXZGL.mjs → chunk-ZDW2NOAO.mjs} +1 -1
  51. package/dist-lib/esm-chunks/{metro-layout-parser-RRIZOLBE.mjs → metro-layout-parser-6N4ZZDLM.mjs} +3 -3
  52. package/dist-lib/esm-chunks/{swift-package-prebuilt-EIZ7MCKR.mjs → swift-package-prebuilt-GF27A4NU.mjs} +12 -12
  53. package/dist-lib/esm-chunks/{swift-sdk-app-module-S2LQ4OXD.mjs → swift-sdk-app-module-WWTSGAS7.mjs} +47 -69
  54. package/dist-lib/esm-chunks/{swift-sdk-image-77FFUGXI.mjs → swift-sdk-image-OQMMOQLZ.mjs} +16 -16
  55. package/dist-lib/esm-chunks/{swift-sdk-image-producer-XFSFUXQJ.mjs → swift-sdk-image-producer-NOH5SG6O.mjs} +5 -5
  56. package/dist-lib/expo-swift-bundle.cjs +295 -480
  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 +301 -486
  61. package/dist-lib/host/fetch-proxy-handler.cjs +22 -11
  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 +86 -86
  87. package/dist-lib/public-origins-lib.json +70 -70
  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 +301 -486
  95. package/dist-lib/swift-compile.cjs +288 -465
  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/render-worker/compositor-protocol.d.ts +2 -0
  123. package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +15 -2
  124. package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +10 -1
  125. package/package.json +1 -1
  126. package/src/swift-compiler-digest.ts +1 -0
  127. package/src/swift-guest-dyld-functions.ts +1 -11
  128. package/src/swift-guest-dyld-table.ts +2 -9
  129. package/src/swift-guest-image-ledger.ts +9 -35
  130. package/src/swift-guest-source-inputs.ts +5 -22
  131. package/src/swift-icu.ts +15 -28
  132. package/src/swift-link-roots.ts +4 -8
  133. package/src/swift-sdk-app-module.ts +5 -27
  134. package/src/swift-sdk-image-wasm.ts +12 -41
  135. package/src/swift-sdk-surface.ts +1 -0
  136. package/src/swift-shared-sdk.ts +1 -13
  137. package/src/swift-wasm-archive.ts +6 -11
  138. package/src/swift-wasm-prune.ts +22 -100
  139. package/src/wasm-binary-sections.ts +61 -7
@@ -1,10 +1,10 @@
1
- /*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_MEMORY_BASE,
5
5
  SWIFT_SDK_PIECE_FIELDS,
6
6
  readSwiftSdkManifest
7
- } from "./chunk-3RPELUA2.mjs";
7
+ } from "./chunk-NDMVV5PE.mjs";
8
8
  import {
9
9
  ADDEND_RELOCATIONS,
10
10
  KEEP_WASM_NAMES,
@@ -36,22 +36,26 @@ import {
36
36
  wasmReader,
37
37
  wasmSections,
38
38
  writeWasmCustomSection
39
- } from "./chunk-ZWOS2EDN.mjs";
40
- import "./chunk-F3OPIKJC.mjs";
41
- import "./chunk-MRIDS3GE.mjs";
42
- import "./chunk-X25PQNNH.mjs";
43
- import "./chunk-5WASPTSS.mjs";
44
- import "./chunk-GSTHJQMW.mjs";
39
+ } from "./chunk-3BAOVPYB.mjs";
40
+ import "./chunk-RDFBVP4E.mjs";
41
+ import "./chunk-664T7XWT.mjs";
42
+ import "./chunk-JIKQAODQ.mjs";
43
+ import "./chunk-P7DZLDBL.mjs";
44
+ import {
45
+ encodeWasmName,
46
+ encodeWasmNumber,
47
+ encodeWasmSigned
48
+ } from "./chunk-VV2TNQK4.mjs";
45
49
  import {
46
50
  SWIFT_WASM_TRIPLE
47
- } from "./chunk-6YHF4VYF.mjs";
48
- import "./chunk-ZDWMPXYI.mjs";
49
- import "./chunk-N2PEXZGL.mjs";
50
- import "./chunk-3WQANOYY.mjs";
51
- import "./chunk-G7UJ4BAC.mjs";
52
- import "./chunk-VZ3NXXUC.mjs";
53
- import "./chunk-QUVLFF6I.mjs";
54
- import "./chunk-DLBUPWTI.mjs";
51
+ } from "./chunk-MIESONPY.mjs";
52
+ import "./chunk-JIGACUAS.mjs";
53
+ import "./chunk-ZDW2NOAO.mjs";
54
+ import "./chunk-TBKPPEGS.mjs";
55
+ import "./chunk-7UJZBQ6G.mjs";
56
+ import "./chunk-WKE7Z3LU.mjs";
57
+ import "./chunk-UHTFNN5A.mjs";
58
+ import "./chunk-SWCGFJ5A.mjs";
55
59
 
56
60
  // src/swift-sdk-app-module.ts
57
61
  import { execFile } from "node:child_process";
@@ -232,8 +236,8 @@ function finishSwiftAppModuleFile(file) {
232
236
  return;
233
237
  }
234
238
  const thunks = sdkImportThunks(prefix);
235
- const nameBytes = Buffer.from(encodedName(NATIVE_SDK_THUNK_SECTION));
236
- const header = Buffer.from([0, ...uleb(nameBytes.length + thunks.length)]);
239
+ const nameBytes = Buffer.from(encodeWasmName(NATIVE_SDK_THUNK_SECTION));
240
+ const header = Buffer.from([0, ...encodeWasmNumber(nameBytes.length + thunks.length)]);
237
241
  appendFileSync(file, Buffer.concat([header, nameBytes, thunks]));
238
242
  }
239
243
  function swiftAppModuleInputs(tokens, buildRoot, sdkLibraries) {
@@ -585,17 +589,17 @@ function sdkImportThunks(bytes) {
585
589
  for (const { type } of imports)
586
590
  if (!typeIndex.has(type)) typeIndex.set(type, typeIndex.size + 1);
587
591
  const loaderType = [96, 1, 127, 0];
588
- const vector = (items) => [...uleb(items.length), ...items.flat()];
589
- const sectionBytes = (id, body) => [id, ...uleb(body.length), ...body];
592
+ const vector = (items) => [...encodeWasmNumber(items.length), ...items.flat()];
593
+ const sectionBytes = (id, body) => [id, ...encodeWasmNumber(body.length), ...body];
590
594
  const slotGlobals = imports.map(({ slot }) => [
591
- ...encodedName(NATIVE_SDK_IMPORT_MODULE),
592
- ...encodedName(String(slot)),
595
+ ...encodeWasmName(NATIVE_SDK_IMPORT_MODULE),
596
+ ...encodeWasmName(String(slot)),
593
597
  3,
594
598
  127,
595
599
  0
596
600
  ]);
597
601
  const bodies = imports.map(({ type }, index) => {
598
- const slotValue = [35, ...uleb(index)];
602
+ const slotValue = [35, ...encodeWasmNumber(index)];
599
603
  const code = [
600
604
  0,
601
605
  ...slotValue,
@@ -608,14 +612,14 @@ function sdkImportThunks(bytes) {
608
612
  16,
609
613
  0,
610
614
  11,
611
- ...Array.from({ length: params[type] }, (_, i) => [32, ...uleb(i)]).flat(),
615
+ ...Array.from({ length: params[type] }, (_, i) => [32, ...encodeWasmNumber(i)]).flat(),
612
616
  ...slotValue,
613
617
  17,
614
- ...uleb(typeIndex.get(type)),
618
+ ...encodeWasmNumber(typeIndex.get(type)),
615
619
  0,
616
620
  11
617
621
  ];
618
- return [...uleb(code.length), ...code];
622
+ return [...encodeWasmNumber(code.length), ...code];
619
623
  });
620
624
  return Uint8Array.from([
621
625
  0,
@@ -633,21 +637,21 @@ function sdkImportThunks(bytes) {
633
637
  ...sectionBytes(
634
638
  2,
635
639
  vector([
636
- [...encodedName("env"), ...encodedName("__indirect_function_table"), 1, ...table],
640
+ [...encodeWasmName("env"), ...encodeWasmName("__indirect_function_table"), 1, ...table],
637
641
  [
638
- ...encodedName(NATIVE_LAZY_IMPORT_MODULE),
639
- ...encodedName(NATIVE_LAZY_SLOT_IMPORT),
642
+ ...encodeWasmName(NATIVE_LAZY_IMPORT_MODULE),
643
+ ...encodeWasmName(NATIVE_LAZY_SLOT_IMPORT),
640
644
  0,
641
645
  0
642
646
  ],
643
647
  ...slotGlobals
644
648
  ])
645
649
  ),
646
- ...sectionBytes(3, vector(imports.map(({ type }) => uleb(typeIndex.get(type))))),
650
+ ...sectionBytes(3, vector(imports.map(({ type }) => encodeWasmNumber(typeIndex.get(type))))),
647
651
  ...sectionBytes(
648
652
  7,
649
653
  vector(
650
- imports.map(({ slot }, i) => [...encodedName(String(slot)), 0, ...uleb(i + 1)])
654
+ imports.map(({ slot }, i) => [...encodeWasmName(String(slot)), 0, ...encodeWasmNumber(i + 1)])
651
655
  )
652
656
  ),
653
657
  ...sectionBytes(10, vector(bodies))
@@ -670,32 +674,6 @@ var TLS_SLEB64 = 25;
670
674
  var SDK_TLS_HELPER = "__peach_sdk_tls.";
671
675
  var SDK_TLS_DELTA = "__peach_sdk_tls_delta.";
672
676
  var OBJC_SECTION_BOUNDARY = /^__(?:start|stop)_(__objc_(?:selectors|classes|class_refs|cats|protocols|protocol_refs|class_aliases|constant_string))$/;
673
- var uleb = (value) => {
674
- const out = [];
675
- do {
676
- let byte = value % 128;
677
- value = Math.floor(value / 128);
678
- if (value) byte |= 128;
679
- out.push(byte);
680
- } while (value);
681
- return out;
682
- };
683
- var sleb = (value) => {
684
- const out = [];
685
- for (; ; ) {
686
- const byte = Number(value & 127n);
687
- value >>= 7n;
688
- if (value === 0n && !(byte & 64) || value === -1n && byte & 64) {
689
- out.push(byte);
690
- return out;
691
- }
692
- out.push(byte | 128);
693
- }
694
- };
695
- var encodedName = (name) => {
696
- const bytes = [...Buffer.from(name)];
697
- return [...uleb(bytes.length), ...bytes];
698
- };
699
677
  function resolveSdkReferences(source, sdk, forwarders) {
700
678
  const bytes = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
701
679
  const { data: sdkData, signatures } = sdk.sdkInterface;
@@ -810,7 +788,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
810
788
  syntheticGlobals.push(type);
811
789
  got.set(index, value);
812
790
  }
813
- return [35, ...uleb(index)];
791
+ return [35, ...encodeWasmNumber(index)];
814
792
  };
815
793
  const tlsHelpers = new Map(
816
794
  symbols.filter((symbol) => symbol.kind === 0 && symbol.name.startsWith(SDK_TLS_HELPER)).map((symbol) => [symbol.name.slice(SDK_TLS_HELPER.length), symbol.index])
@@ -862,7 +840,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
862
840
  const code = [16];
863
841
  for (let i = 0, rest = helper; i < 5; i++, rest >>>= 7)
864
842
  code.push(i < 4 ? rest & 127 | 128 : rest & 127);
865
- if (addend) code.push(66, ...sleb(addend), 124);
843
+ if (addend) code.push(66, ...encodeWasmSigned(addend), 124);
866
844
  patchCode(at2, 11, code);
867
845
  continue;
868
846
  }
@@ -936,7 +914,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
936
914
  syntheticGlobals.push(valueType);
937
915
  scratchGlobals.set(valueType, scratch);
938
916
  }
939
- const index = uleb(scratch);
917
+ const index = encodeWasmNumber(scratch);
940
918
  patchCode(at - 2, 12, [
941
919
  36,
942
920
  ...index,
@@ -952,7 +930,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
952
930
  }
953
931
  const encodedNameBuf = (name) => {
954
932
  const raw = Buffer.from(name, "utf8");
955
- const len = uleb(raw.length);
933
+ const len = encodeWasmNumber(raw.length);
956
934
  const out = Buffer.allocUnsafe(len.length + raw.length);
957
935
  for (let i = 0; i < len.length; i++) out[i] = len[i];
958
936
  raw.copy(out, len.length);
@@ -997,7 +975,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
997
975
  }
998
976
  }
999
977
  const globalParts = [
1000
- Buffer.from(uleb(globalCount - 1 + syntheticGlobals.length))
978
+ Buffer.from(encodeWasmNumber(globalCount - 1 + syntheticGlobals.length))
1001
979
  ];
1002
980
  for (let index = 0; index < globalCount; index++) {
1003
981
  const start = gr.at;
@@ -1042,18 +1020,18 @@ function resolveSdkReferences(source, sdk, forwarders) {
1042
1020
  }
1043
1021
  }
1044
1022
  const exportParts = [
1045
- Buffer.from(uleb(exportCount + 1 + got.size)),
1023
+ Buffer.from(encodeWasmNumber(exportCount + 1 + got.size)),
1046
1024
  bytes.subarray(originalExportsStart, exportSection.end)
1047
1025
  ];
1048
1026
  for (const [index, value] of got) {
1049
1027
  exportParts.push(
1050
1028
  encodedNameBuf(`${NATIVE_SDK_GLOBAL_PREFIX}${value}.${index}`),
1051
- Buffer.from([3, ...uleb(index)])
1029
+ Buffer.from([3, ...encodeWasmNumber(index)])
1052
1030
  );
1053
1031
  }
1054
1032
  exportParts.push(encodedNameBuf("__indirect_function_table"), Buffer.from([1, 0]));
1055
1033
  const replaced = /* @__PURE__ */ new Map([
1056
- [2, Buffer.concat([Buffer.from(uleb(importEntryCount)), ...importParts])],
1034
+ [2, Buffer.concat([Buffer.from(encodeWasmNumber(importEntryCount)), ...importParts])],
1057
1035
  [6, Buffer.concat(globalParts)],
1058
1036
  [7, Buffer.concat(exportParts)]
1059
1037
  ]);
@@ -1070,7 +1048,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
1070
1048
  if (s.id === 10 && rebuiltCode) {
1071
1049
  parts.push(rebuiltCode);
1072
1050
  } else if (payload) {
1073
- parts.push(Buffer.from([s.id, ...uleb(payload.length)]), payload);
1051
+ parts.push(Buffer.from([s.id, ...encodeWasmNumber(payload.length)]), payload);
1074
1052
  } else {
1075
1053
  parts.push(bytes.subarray(s.offset, s.end));
1076
1054
  }
@@ -1086,7 +1064,7 @@ function expandSdkRelocations(bytes, section, patches) {
1086
1064
  patches.sort((a, b) => a.at - b.at);
1087
1065
  const r = wasmReader(bytes, section.start);
1088
1066
  const count = r.u();
1089
- const payload = [Uint8Array.from(uleb(count))];
1067
+ const payload = [Uint8Array.from(encodeWasmNumber(count))];
1090
1068
  let next = 0;
1091
1069
  for (let i = 0; i < count; i++) {
1092
1070
  const start = r.at;
@@ -1106,7 +1084,7 @@ function expandSdkRelocations(bytes, section, patches) {
1106
1084
  }
1107
1085
  parts.push(bytes.subarray(at, end));
1108
1086
  payload.push(
1109
- Uint8Array.from(uleb(parts.reduce((size2, part) => size2 + part.length, 0))),
1087
+ Uint8Array.from(encodeWasmNumber(parts.reduce((size2, part) => size2 + part.length, 0))),
1110
1088
  ...parts
1111
1089
  );
1112
1090
  }
@@ -1115,7 +1093,7 @@ function expandSdkRelocations(bytes, section, patches) {
1115
1093
  if (next !== patches.length || r.at !== section.end)
1116
1094
  throw new Error("Swift SDK code relocations exceed the code section");
1117
1095
  return Buffer.concat([
1118
- Uint8Array.from([10, ...uleb(payload.reduce((size, part) => size + part.length, 0))]),
1096
+ Uint8Array.from([10, ...encodeWasmNumber(payload.reduce((size, part) => size + part.length, 0))]),
1119
1097
  ...payload
1120
1098
  ]);
1121
1099
  }
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  SWIFT_SDK_APP_MEMORY_BASE,
4
4
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -13,21 +13,21 @@ import {
13
13
  swiftSdkImageFile,
14
14
  swiftSdkImageKey,
15
15
  swiftSdkImageProducts
16
- } from "./chunk-3RPELUA2.mjs";
17
- import "./chunk-ZWOS2EDN.mjs";
18
- import "./chunk-F3OPIKJC.mjs";
19
- import "./chunk-MRIDS3GE.mjs";
20
- import "./chunk-X25PQNNH.mjs";
21
- import "./chunk-5WASPTSS.mjs";
22
- import "./chunk-GSTHJQMW.mjs";
23
- import "./chunk-6YHF4VYF.mjs";
24
- import "./chunk-ZDWMPXYI.mjs";
25
- import "./chunk-N2PEXZGL.mjs";
26
- import "./chunk-3WQANOYY.mjs";
27
- import "./chunk-G7UJ4BAC.mjs";
28
- import "./chunk-VZ3NXXUC.mjs";
29
- import "./chunk-QUVLFF6I.mjs";
30
- import "./chunk-DLBUPWTI.mjs";
16
+ } from "./chunk-NDMVV5PE.mjs";
17
+ import "./chunk-3BAOVPYB.mjs";
18
+ import "./chunk-RDFBVP4E.mjs";
19
+ import "./chunk-664T7XWT.mjs";
20
+ import "./chunk-JIKQAODQ.mjs";
21
+ import "./chunk-P7DZLDBL.mjs";
22
+ import "./chunk-VV2TNQK4.mjs";
23
+ import "./chunk-MIESONPY.mjs";
24
+ import "./chunk-JIGACUAS.mjs";
25
+ import "./chunk-ZDW2NOAO.mjs";
26
+ import "./chunk-TBKPPEGS.mjs";
27
+ import "./chunk-7UJZBQ6G.mjs";
28
+ import "./chunk-WKE7Z3LU.mjs";
29
+ import "./chunk-UHTFNN5A.mjs";
30
+ import "./chunk-SWCGFJ5A.mjs";
31
31
  export {
32
32
  SWIFT_SDK_APP_MEMORY_BASE,
33
33
  SWIFT_SDK_IMAGE_BUNDLE,
@@ -1,15 +1,15 @@
1
- /*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  import {
3
3
  withSwiftRootLock
4
- } from "./chunk-F3OPIKJC.mjs";
4
+ } from "./chunk-RDFBVP4E.mjs";
5
5
  import {
6
6
  swiftCacheDir,
7
7
  windowAdmission
8
- } from "./chunk-6YHF4VYF.mjs";
8
+ } from "./chunk-MIESONPY.mjs";
9
9
  import {
10
10
  isRecord
11
- } from "./chunk-QUVLFF6I.mjs";
12
- import "./chunk-DLBUPWTI.mjs";
11
+ } from "./chunk-UHTFNN5A.mjs";
12
+ import "./chunk-SWCGFJ5A.mjs";
13
13
 
14
14
  // src/swift-sdk-image-producer.ts
15
15
  import { execFile, execFileSync } from "node:child_process";