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.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +295 -480
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-RWBIRNWO.mjs → acorn-SPK2673W.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-ZWOS2EDN.mjs → chunk-3BAOVPYB.mjs} +118 -361
- package/dist-lib/esm-chunks/{chunk-MRIDS3GE.mjs → chunk-664T7XWT.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-QKTKE4OX.mjs → chunk-7B4ZRXZW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-G7UJ4BAC.mjs → chunk-7UJZBQ6G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EXU474NE.mjs → chunk-B4DO5WJD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IQSFMB4R.mjs → chunk-DO3C6MOG.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-K3ULPN2R.mjs → chunk-DZZZCBJY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5TIUTQ55.mjs → chunk-EEN3DGCH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZDWMPXYI.mjs → chunk-JIGACUAS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X25PQNNH.mjs → chunk-JIKQAODQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6YHF4VYF.mjs → chunk-MIESONPY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3RPELUA2.mjs → chunk-NDMVV5PE.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-KX7LV722.mjs → chunk-NLIWJ2AO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5WASPTSS.mjs → chunk-P7DZLDBL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-F3OPIKJC.mjs → chunk-RDFBVP4E.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-DLBUPWTI.mjs → chunk-SWCGFJ5A.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KLA74B7J.mjs → chunk-T6THDRRU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3WQANOYY.mjs → chunk-TBKPPEGS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QUVLFF6I.mjs → chunk-UHTFNN5A.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GSTHJQMW.mjs → chunk-VV2TNQK4.mjs} +115 -18
- package/dist-lib/esm-chunks/{chunk-VZ3NXXUC.mjs → chunk-WKE7Z3LU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LQVLXDRN.mjs → chunk-WXCV7NSJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KBYVKTVK.mjs → chunk-X2OBXRGN.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-N2PEXZGL.mjs → chunk-ZDW2NOAO.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-RRIZOLBE.mjs → metro-layout-parser-6N4ZZDLM.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-EIZ7MCKR.mjs → swift-package-prebuilt-GF27A4NU.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-S2LQ4OXD.mjs → swift-sdk-app-module-WWTSGAS7.mjs} +47 -69
- package/dist-lib/esm-chunks/{swift-sdk-image-77FFUGXI.mjs → swift-sdk-image-OQMMOQLZ.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-XFSFUXQJ.mjs → swift-sdk-image-producer-NOH5SG6O.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +295 -480
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +301 -486
- package/dist-lib/host/fetch-proxy-handler.cjs +22 -11
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +86 -86
- package/dist-lib/public-origins-lib.json +70 -70
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +301 -486
- package/dist-lib/swift-compile.cjs +288 -465
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-wire.d.ts +10 -1
- package/package.json +1 -1
- package/src/swift-compiler-digest.ts +1 -0
- package/src/swift-guest-dyld-functions.ts +1 -11
- package/src/swift-guest-dyld-table.ts +2 -9
- package/src/swift-guest-image-ledger.ts +9 -35
- package/src/swift-guest-source-inputs.ts +5 -22
- package/src/swift-icu.ts +15 -28
- package/src/swift-link-roots.ts +4 -8
- package/src/swift-sdk-app-module.ts +5 -27
- package/src/swift-sdk-image-wasm.ts +12 -41
- package/src/swift-sdk-surface.ts +1 -0
- package/src/swift-shared-sdk.ts +1 -13
- package/src/swift-wasm-archive.ts +6 -11
- package/src/swift-wasm-prune.ts +22 -100
- package/src/wasm-binary-sections.ts +61 -7
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
LAUNCH_METADATA_KEYS,
|
|
4
4
|
LAUNCH_METADATA_KEYS_PATH
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JIKQAODQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VV2TNQK4.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MIESONPY.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UHTFNN5A.mjs";
|
|
19
19
|
|
|
20
20
|
// src/swift-distribution.ts
|
|
21
21
|
import { execFile as execFile2 } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
4
4
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TBKPPEGS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DZZZCBJY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UHTFNN5A.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -31,23 +31,23 @@ import {
|
|
|
31
31
|
swiftSdkImageScope,
|
|
32
32
|
unslottedFunctions,
|
|
33
33
|
wasmSections
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3BAOVPYB.mjs";
|
|
35
35
|
import {
|
|
36
36
|
withSwiftRootLock,
|
|
37
37
|
withSwiftRootReadHolds
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RDFBVP4E.mjs";
|
|
39
39
|
import {
|
|
40
40
|
swiftDistributionAt,
|
|
41
41
|
swiftModuleDigest,
|
|
42
42
|
swiftModuleToolchain,
|
|
43
43
|
swiftSdkPaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-VV2TNQK4.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE,
|
|
47
47
|
refreshSwiftCacheHold,
|
|
48
48
|
sourceSwiftCheckout,
|
|
49
49
|
swiftCacheDir
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-MIESONPY.mjs";
|
|
51
51
|
|
|
52
52
|
// src/swift-sdk-image.ts
|
|
53
53
|
import { execFile } from "node:child_process";
|
|
@@ -250,7 +250,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
250
250
|
if (existing) return existing;
|
|
251
251
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
252
252
|
if (!options?.producer && !required.length && !distribution && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
253
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
253
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-NOH5SG6O.mjs");
|
|
254
254
|
await produceSwiftSdkImage({
|
|
255
255
|
moduleRoot,
|
|
256
256
|
key,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MIESONPY.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_CACHE_HOLD_MARKER,
|
|
4
4
|
SWIFT_WASM_TRIPLE,
|
|
@@ -12,19 +12,19 @@ import {
|
|
|
12
12
|
terminateProcessGroup,
|
|
13
13
|
wasmThreadFlags,
|
|
14
14
|
windowAdmission
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MIESONPY.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-JIGACUAS.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-ZDW2NOAO.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-UHTFNN5A.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-SWCGFJ5A.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -471,6 +471,106 @@ function mapSwiftConditionalLines(source, lineStarts, map) {
|
|
|
471
471
|
}).join("\n");
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
+
// src/wasm-binary-sections.ts
|
|
475
|
+
function encodeWasmNumber(value) {
|
|
476
|
+
const bytes = [];
|
|
477
|
+
for (let rest = value; ; ) {
|
|
478
|
+
const byte = rest % 128;
|
|
479
|
+
rest = Math.floor(rest / 128);
|
|
480
|
+
if (rest === 0) return [...bytes, byte];
|
|
481
|
+
bytes.push(byte | 128);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
function encodeWasmSigned(value) {
|
|
485
|
+
const out = [];
|
|
486
|
+
for (; ; ) {
|
|
487
|
+
const byte = Number(value & 127n);
|
|
488
|
+
value >>= 7n;
|
|
489
|
+
if (value === 0n && !(byte & 64) || value === -1n && byte & 64) {
|
|
490
|
+
out.push(byte);
|
|
491
|
+
return out;
|
|
492
|
+
}
|
|
493
|
+
out.push(byte | 128);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
function encodeWasmName(name) {
|
|
497
|
+
const bytes = new TextEncoder().encode(name);
|
|
498
|
+
return [...encodeWasmNumber(bytes.length), ...bytes];
|
|
499
|
+
}
|
|
500
|
+
function readULEB(bytes, offset, end = bytes.length) {
|
|
501
|
+
if (offset < end) {
|
|
502
|
+
const first = bytes[offset];
|
|
503
|
+
if (first < 128) return [first, offset + 1];
|
|
504
|
+
}
|
|
505
|
+
let value = 0;
|
|
506
|
+
for (let shift = 0; ; shift += 7) {
|
|
507
|
+
if (offset >= end || shift > 63) throw new Error("invalid wasm integer");
|
|
508
|
+
const byte = bytes[offset++];
|
|
509
|
+
value += (byte & 127) * 2 ** shift;
|
|
510
|
+
if (!(byte & 128)) return [value, offset];
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
function readSLEB(bytes, offset, end = bytes.length) {
|
|
514
|
+
let value = 0n;
|
|
515
|
+
let shift = 0n;
|
|
516
|
+
let byte = 0;
|
|
517
|
+
do {
|
|
518
|
+
if (offset >= end || shift > 70n) throw new Error("invalid wasm integer");
|
|
519
|
+
byte = bytes[offset++];
|
|
520
|
+
value |= BigInt(byte & 127) << shift;
|
|
521
|
+
shift += 7n;
|
|
522
|
+
} while (byte & 128);
|
|
523
|
+
if (byte & 64) value -= 1n << shift;
|
|
524
|
+
return [value, offset];
|
|
525
|
+
}
|
|
526
|
+
function skipLEB(bytes, offset) {
|
|
527
|
+
while ((bytes[offset++] & 128) !== 0) {
|
|
528
|
+
}
|
|
529
|
+
return offset;
|
|
530
|
+
}
|
|
531
|
+
function readWasmSection(bytes, start, end) {
|
|
532
|
+
let at = start;
|
|
533
|
+
const number = () => {
|
|
534
|
+
const [value, next] = readULEB(bytes, at, end);
|
|
535
|
+
at = next;
|
|
536
|
+
return value;
|
|
537
|
+
};
|
|
538
|
+
return {
|
|
539
|
+
number,
|
|
540
|
+
byte: () => {
|
|
541
|
+
if (at >= end) throw new Error("truncated wasm section");
|
|
542
|
+
return bytes[at++];
|
|
543
|
+
},
|
|
544
|
+
name: () => {
|
|
545
|
+
const length = number();
|
|
546
|
+
at += length;
|
|
547
|
+
if (at > end) throw new Error("truncated wasm name");
|
|
548
|
+
return Buffer.from(bytes.buffer, bytes.byteOffset + at - length, length).toString();
|
|
549
|
+
},
|
|
550
|
+
skip: (length) => {
|
|
551
|
+
at += length;
|
|
552
|
+
if (at > end) throw new Error("truncated wasm section");
|
|
553
|
+
},
|
|
554
|
+
position: () => at,
|
|
555
|
+
done: () => at === end
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
function wasmSections(bytes) {
|
|
559
|
+
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
560
|
+
throw new Error("not a wasm module");
|
|
561
|
+
const found = [];
|
|
562
|
+
for (let at = 8; at < bytes.length; ) {
|
|
563
|
+
const header = readWasmSection(bytes, at, bytes.length);
|
|
564
|
+
const id = header.byte();
|
|
565
|
+
const size = header.number();
|
|
566
|
+
const start = header.position();
|
|
567
|
+
if (start + size > bytes.length) throw new Error("truncated wasm section");
|
|
568
|
+
found.push({ id, offset: at, start, end: start + size });
|
|
569
|
+
at = start + size;
|
|
570
|
+
}
|
|
571
|
+
return found;
|
|
572
|
+
}
|
|
573
|
+
|
|
474
574
|
// src/swift-shared-sdk.ts
|
|
475
575
|
import { execFileSync as execFileSync2 } from "node:child_process";
|
|
476
576
|
import { createHash as createHash3 } from "node:crypto";
|
|
@@ -527,18 +627,6 @@ function swiftSharedSdkFlags(moduleRoot, distribution) {
|
|
|
527
627
|
path7.join(root, "usr/include")
|
|
528
628
|
];
|
|
529
629
|
}
|
|
530
|
-
function readULEB(b, o) {
|
|
531
|
-
let res = 0;
|
|
532
|
-
let shift = 0;
|
|
533
|
-
let p = o;
|
|
534
|
-
while (true) {
|
|
535
|
-
const byte = b[p++];
|
|
536
|
-
res |= (byte & 127) << shift;
|
|
537
|
-
if ((byte & 128) === 0) break;
|
|
538
|
-
shift += 7;
|
|
539
|
-
}
|
|
540
|
-
return [res, p];
|
|
541
|
-
}
|
|
542
630
|
var WEAKEN_FOUNDATION_SYMS = /* @__PURE__ */ new Set([
|
|
543
631
|
"$s10Foundation6BundleC22preferredLocalizations4from14forPreferencesSaySSGAG_AGSgtFZ",
|
|
544
632
|
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZ",
|
|
@@ -1313,6 +1401,7 @@ function swiftModuleInputFiles(root) {
|
|
|
1313
1401
|
...swiftSharedSdkInputFiles(root),
|
|
1314
1402
|
"../peachsim/src/admitted-mac-build.ts",
|
|
1315
1403
|
"../peachsim/src/swift-shared-sdk.ts",
|
|
1404
|
+
"../peachsim/src/wasm-binary-sections.ts",
|
|
1316
1405
|
"../peachsim/src/swift-runtime-products.ts",
|
|
1317
1406
|
"../peachsim/src/swiftRuntimeProductContract.ts",
|
|
1318
1407
|
"../peachsim/src/swiftTargetContract.ts",
|
|
@@ -2638,6 +2727,14 @@ export {
|
|
|
2638
2727
|
parseSwiftDistributionLock,
|
|
2639
2728
|
swiftCodeScan,
|
|
2640
2729
|
mapSwiftConditionalLines,
|
|
2730
|
+
encodeWasmNumber,
|
|
2731
|
+
encodeWasmSigned,
|
|
2732
|
+
encodeWasmName,
|
|
2733
|
+
readULEB,
|
|
2734
|
+
readSLEB,
|
|
2735
|
+
skipLEB,
|
|
2736
|
+
readWasmSection,
|
|
2737
|
+
wasmSections,
|
|
2641
2738
|
SWIFT_DISTRIBUTION_MIRROR_RECORD,
|
|
2642
2739
|
swiftSharedSdkRoot,
|
|
2643
2740
|
swiftSharedSdkFlags,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NLIWJ2AO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UHTFNN5A.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
package/dist-lib/esm-chunks/{metro-layout-parser-RRIZOLBE.mjs → metro-layout-parser-6N4ZZDLM.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-SWCGFJ5A.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-SPK2673W.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2780 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
5
5
|
nativeEntryKey,
|
|
6
6
|
swiftAvailableModules
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-3BAOVPYB.mjs";
|
|
8
|
+
import "./chunk-RDFBVP4E.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VV2TNQK4.mjs";
|
|
13
|
+
import "./chunk-MIESONPY.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JIGACUAS.mjs";
|
|
17
17
|
import {
|
|
18
18
|
manifestCalls
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-ZDW2NOAO.mjs";
|
|
20
|
+
import "./chunk-TBKPPEGS.mjs";
|
|
21
|
+
import "./chunk-7UJZBQ6G.mjs";
|
|
22
|
+
import "./chunk-WKE7Z3LU.mjs";
|
|
23
|
+
import "./chunk-UHTFNN5A.mjs";
|
|
24
|
+
import "./chunk-SWCGFJ5A.mjs";
|
|
25
25
|
|
|
26
26
|
// src/swift-package-prebuilt.ts
|
|
27
27
|
import { createHash } from "node:crypto";
|