peachsim 0.1.2623 → 0.1.2625
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 +1023 -621
- 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-E6V72TM2.mjs → acorn-SHZZDBSI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-EIOVKQ2C.mjs → chunk-2LDG7OD4.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-ISH6XB23.mjs → chunk-3XZGWT62.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q7KCK4YO.mjs → chunk-6PZI7TYE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RLWITQ5C.mjs → chunk-7Z7YJ4FU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4GNQG2GT.mjs → chunk-A4R4YGFJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GP3KL2GC.mjs → chunk-A66VNSO6.mjs} +565 -290
- package/dist-lib/esm-chunks/{chunk-XOAOND7F.mjs → chunk-DVMKYLDN.mjs} +9 -8
- package/dist-lib/esm-chunks/{chunk-IGB7TRLS.mjs → chunk-F4YHL4UM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4BJIJ3GP.mjs → chunk-JRU2VXUU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EI7CZDMR.mjs → chunk-JVEJLPJC.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-UCW7ITXE.mjs → chunk-KA4AQDVF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RLWTJ6II.mjs → chunk-LJYNZ5HM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RBXTTEI6.mjs → chunk-M2FEKSK3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KPG4FUTY.mjs → chunk-OCCZJOSA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CXNXKUNJ.mjs → chunk-P542MMIN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NOM66H2G.mjs → chunk-Q5NI4L3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V2CHR3OI.mjs → chunk-R4FFTWPL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W3X7RP3H.mjs → chunk-RJWEWNAJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-B5OQSD4B.mjs → chunk-RXXCTHJG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B4APPUTT.mjs → chunk-SRIRVPNX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6MNE57DC.mjs → chunk-ULHG6CND.mjs} +22 -13
- package/dist-lib/esm-chunks/{chunk-PAEJF2JP.mjs → chunk-W4HQINQ6.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-RVM3WWST.mjs → chunk-XQBHCWS4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q4ZATFEN.mjs → chunk-Z6AH6AQC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-OHVROLNJ.mjs → metro-layout-parser-GJHR7FCR.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-DRAUK6KR.mjs → swift-package-prebuilt-UVRGKTD4.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-U2M7CMKA.mjs → swift-sdk-app-module-U3MUJ7QD.mjs} +107 -20
- package/dist-lib/esm-chunks/{swift-sdk-image-ZHWSHCNI.mjs → swift-sdk-image-U4W7QMAT.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-EOJUCK7N.mjs → swift-sdk-image-producer-TFFZDNRK.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +918 -516
- 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 +1025 -623
- package/dist-lib/host/fetch-proxy-handler.cjs +10 -9
- 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 +33 -17
- package/dist-lib/native-app-identity-project.mjs +44 -29
- 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 +87 -86
- package/dist-lib/public-origins-lib.json +69 -64
- 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 +1062 -660
- package/dist-lib/swift-compile.cjs +708 -336
- 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/package.json +1 -1
- package/src/bazel-project.ts +34 -18
- package/src/binaryen.lock.json +3 -3
- package/src/swift-compile.ts +8 -0
- package/src/swift-distribution-contract.ts +6 -1
- package/src/swift-distribution.lock.json +4 -2
- package/src/swift-guest-compile.ts +170 -160
- package/src/swift-guest-dyld-table.ts +22 -9
- package/src/swift-guest-link.ts +116 -42
- package/src/swift-guest-linked-spans.ts +63 -14
- package/src/swift-guest-projection-storage.ts +7 -6
- package/src/swift-guest-source-inputs.ts +35 -21
- package/src/swift-objc-compile.ts +1 -0
- package/src/swift-sdk-app-module.ts +118 -15
- package/src/swift-sdk-image-recipe.ts +20 -0
- package/src/swift-sdk-image-wasm.ts +119 -17
- package/src/swift-sdk-image.ts +6 -5
- package/src/swift-wasm-prune.ts +71 -41
- package/src/wasm-narrow-boundary.ts +31 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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-A4R4YGFJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Q5NI4L3Z.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OCCZJOSA.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KA4AQDVF.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-P542MMIN.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -303,12 +303,13 @@ function parseSwiftDistributionLock(value) {
|
|
|
303
303
|
if (runtime === void 0) return void 0;
|
|
304
304
|
if (!isRecord(runtime) || typeof runtime.source !== "string" || !/^[a-f0-9]{64}$/.test(runtime.source) || typeof runtime.url !== "string" || !/^https:\/\/[a-z0-9.-]+(?::\d+)?\/compile\/asset\/[a-f0-9]{64}$/.test(
|
|
305
305
|
runtime.url
|
|
306
|
-
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)))
|
|
306
|
+
) || runtime.dataPlan !== void 0 && (typeof runtime.dataPlan !== "string" || !/^[a-f0-9]{64}$/.test(runtime.dataPlan)) || runtime.recipe !== void 0 && (typeof runtime.recipe !== "string" || !/^[a-f0-9]{16}$/.test(runtime.recipe)))
|
|
307
307
|
throw new Error("invalid shared SDK runtime publication in Swift distribution lock");
|
|
308
308
|
return {
|
|
309
309
|
source: runtime.source,
|
|
310
310
|
url: runtime.url,
|
|
311
|
-
...runtime.dataPlan && { dataPlan: runtime.dataPlan }
|
|
311
|
+
...runtime.dataPlan && { dataPlan: runtime.dataPlan },
|
|
312
|
+
...runtime.recipe && { recipe: runtime.recipe }
|
|
312
313
|
};
|
|
313
314
|
};
|
|
314
315
|
const sdkRuntime = publication(value.sdkRuntime);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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-A4R4YGFJ.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z6AH6AQC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KA4AQDVF.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -25,25 +25,25 @@ import {
|
|
|
25
25
|
swiftSdkGuestLookups,
|
|
26
26
|
unslottedFunctions,
|
|
27
27
|
wasmSections
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-A66VNSO6.mjs";
|
|
29
29
|
import {
|
|
30
30
|
withSwiftRootLock
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JVEJLPJC.mjs";
|
|
32
32
|
import {
|
|
33
33
|
swiftDistributionAt,
|
|
34
34
|
swiftModuleDigest,
|
|
35
35
|
swiftModuleToolchain,
|
|
36
36
|
swiftSdkPaths
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DVMKYLDN.mjs";
|
|
38
38
|
import {
|
|
39
39
|
SWIFT_WASM_TRIPLE,
|
|
40
40
|
sourceSwiftCheckout,
|
|
41
41
|
swiftCacheDir
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-A4R4YGFJ.mjs";
|
|
43
43
|
|
|
44
44
|
// src/swift-sdk-image.ts
|
|
45
45
|
import { execFile } from "node:child_process";
|
|
46
|
-
import { createHash } from "node:crypto";
|
|
46
|
+
import { createHash as createHash2 } from "node:crypto";
|
|
47
47
|
import {
|
|
48
48
|
existsSync,
|
|
49
49
|
mkdirSync,
|
|
@@ -56,8 +56,17 @@ import {
|
|
|
56
56
|
} from "node:fs";
|
|
57
57
|
import path from "node:path";
|
|
58
58
|
import { promisify } from "node:util";
|
|
59
|
-
|
|
59
|
+
|
|
60
|
+
// src/swift-sdk-image-recipe.ts
|
|
61
|
+
import { createHash } from "node:crypto";
|
|
60
62
|
var SWIFT_SDK_IMAGE_VERSION = 13;
|
|
63
|
+
var swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
64
|
+
var SWIFT_SDK_IMAGE_RECIPE = createHash("sha256").update(`swift-sdk-image
|
|
65
|
+
${SWIFT_SDK_IMAGE_VERSION}
|
|
66
|
+
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
67
|
+
|
|
68
|
+
// src/swift-sdk-image.ts
|
|
69
|
+
var run = promisify(execFile);
|
|
61
70
|
var SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
62
71
|
var SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
63
72
|
var SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
@@ -147,9 +156,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports) {
|
|
|
147
156
|
function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
148
157
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
149
158
|
const inputs = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
150
|
-
return
|
|
159
|
+
return createHash2("sha256").update(`swift-sdk-image
|
|
151
160
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
152
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups
|
|
161
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs).update(products.length === 0 ? "" : `
|
|
153
162
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
154
163
|
}
|
|
155
164
|
var IMAGE_FILE = "sdk.wasm";
|
|
@@ -219,7 +228,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
219
228
|
const existing = cached(directory, key);
|
|
220
229
|
if (existing) return existing;
|
|
221
230
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
222
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
231
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-TFFZDNRK.mjs");
|
|
223
232
|
await produceSwiftSdkImage({
|
|
224
233
|
moduleRoot,
|
|
225
234
|
key,
|
|
@@ -256,7 +265,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
256
265
|
stage
|
|
257
266
|
]);
|
|
258
267
|
const image = cached(stage, key);
|
|
259
|
-
if (!image ||
|
|
268
|
+
if (!image || createHash2("sha256").update(readFileSync(image.image)).digest("hex") !== image.sha256)
|
|
260
269
|
throw new Error(`invalid published Swift SDK image ${key}`);
|
|
261
270
|
rmSync(directory, { recursive: true, force: true });
|
|
262
271
|
renameSync(stage, directory);
|
|
@@ -465,6 +474,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
|
|
|
465
474
|
].map((name) => `--export=${name}`),
|
|
466
475
|
`@${path.join(work, "exports.rsp")}`,
|
|
467
476
|
"--gc-sections",
|
|
477
|
+
"--strip-debug",
|
|
468
478
|
// strings stay with their objects, so an app loads only the ones its pieces reference
|
|
469
479
|
"-O0"
|
|
470
480
|
];
|
|
@@ -525,7 +535,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
|
|
|
525
535
|
writeFileSync(path.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
|
|
526
536
|
writeFileSync(
|
|
527
537
|
path.join(work, IMAGE_DIGEST),
|
|
528
|
-
|
|
538
|
+
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : createHash2("sha256").update(image).digest("hex")
|
|
529
539
|
);
|
|
530
540
|
if (swiftSdkImageKey(
|
|
531
541
|
moduleRoot,
|
|
@@ -810,7 +820,6 @@ var MANIFEST_BLOCKS = [
|
|
|
810
820
|
var isManifestBlock = (name) => MANIFEST_BLOCKS.includes(name);
|
|
811
821
|
|
|
812
822
|
export {
|
|
813
|
-
SWIFT_SDK_IMAGE_VERSION,
|
|
814
823
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
815
824
|
SWIFT_SDK_MEMORY_BASE,
|
|
816
825
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-R4FFTWPL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3XZGWT62.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KA4AQDVF.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
package/dist-lib/esm-chunks/{metro-layout-parser-OHVROLNJ.mjs → metro-layout-parser-GJHR7FCR.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-P542MMIN.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-SHZZDBSI.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.2625 | (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-A66VNSO6.mjs";
|
|
8
|
+
import "./chunk-JVEJLPJC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DVMKYLDN.mjs";
|
|
13
|
+
import "./chunk-A4R4YGFJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Q5NI4L3Z.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-OCCZJOSA.mjs";
|
|
20
|
+
import "./chunk-R4FFTWPL.mjs";
|
|
21
|
+
import "./chunk-7Z7YJ4FU.mjs";
|
|
22
|
+
import "./chunk-SRIRVPNX.mjs";
|
|
23
|
+
import "./chunk-KA4AQDVF.mjs";
|
|
24
|
+
import "./chunk-P542MMIN.mjs";
|
|
25
25
|
|
|
26
26
|
// src/swift-package-prebuilt.ts
|
|
27
27
|
import { createHash } from "node:crypto";
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-U2M7CMKA.mjs → swift-sdk-app-module-U3MUJ7QD.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ULHG6CND.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ADDEND_RELOCATIONS,
|
|
11
11
|
KEEP_WASM_NAMES,
|
|
@@ -33,34 +33,39 @@ import {
|
|
|
33
33
|
wasmReader,
|
|
34
34
|
wasmSections,
|
|
35
35
|
writeWasmCustomSection
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-A66VNSO6.mjs";
|
|
37
|
+
import "./chunk-JVEJLPJC.mjs";
|
|
38
|
+
import "./chunk-2LDG7OD4.mjs";
|
|
39
|
+
import "./chunk-JRU2VXUU.mjs";
|
|
40
|
+
import "./chunk-LJYNZ5HM.mjs";
|
|
41
|
+
import "./chunk-DVMKYLDN.mjs";
|
|
42
42
|
import {
|
|
43
43
|
SWIFT_WASM_TRIPLE
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-A4R4YGFJ.mjs";
|
|
45
|
+
import "./chunk-Q5NI4L3Z.mjs";
|
|
46
|
+
import "./chunk-OCCZJOSA.mjs";
|
|
47
|
+
import "./chunk-R4FFTWPL.mjs";
|
|
48
|
+
import "./chunk-7Z7YJ4FU.mjs";
|
|
49
|
+
import "./chunk-SRIRVPNX.mjs";
|
|
50
|
+
import "./chunk-KA4AQDVF.mjs";
|
|
51
|
+
import "./chunk-P542MMIN.mjs";
|
|
52
52
|
|
|
53
53
|
// src/swift-sdk-app-module.ts
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
55
55
|
import { createHash } from "node:crypto";
|
|
56
56
|
import {
|
|
57
|
+
appendFileSync,
|
|
57
58
|
chownSync,
|
|
59
|
+
closeSync,
|
|
58
60
|
constants,
|
|
59
61
|
copyFileSync,
|
|
60
62
|
existsSync,
|
|
63
|
+
fstatSync,
|
|
61
64
|
mkdirSync,
|
|
62
65
|
mkdtempSync,
|
|
66
|
+
openSync,
|
|
63
67
|
readFileSync,
|
|
68
|
+
readSync,
|
|
64
69
|
realpathSync,
|
|
65
70
|
rmSync,
|
|
66
71
|
statSync,
|
|
@@ -148,9 +153,12 @@ async function buildSwiftAppModule(options) {
|
|
|
148
153
|
linkage: link.linkage,
|
|
149
154
|
usage
|
|
150
155
|
});
|
|
151
|
-
|
|
156
|
+
finishSwiftAppModuleFile(options.output);
|
|
152
157
|
return binding;
|
|
153
158
|
}
|
|
159
|
+
function swiftAppModuleThunkSection(lowered) {
|
|
160
|
+
return [NATIVE_SDK_THUNK_SECTION, sdkImportThunks(lowered)];
|
|
161
|
+
}
|
|
154
162
|
function finishSwiftAppModule(lowered) {
|
|
155
163
|
return writeWasmCustomSection(
|
|
156
164
|
lowered,
|
|
@@ -158,6 +166,73 @@ function finishSwiftAppModule(lowered) {
|
|
|
158
166
|
sdkImportThunks(lowered)
|
|
159
167
|
);
|
|
160
168
|
}
|
|
169
|
+
function finishSwiftAppModuleFile(file) {
|
|
170
|
+
const fd = openSync(file, "r");
|
|
171
|
+
let prefixEnd = 8;
|
|
172
|
+
let hasExistingThunk = false;
|
|
173
|
+
let prefix;
|
|
174
|
+
try {
|
|
175
|
+
const total = fstatSync(fd).size;
|
|
176
|
+
const probe = Buffer.allocUnsafe(16);
|
|
177
|
+
let offset = 8;
|
|
178
|
+
while (offset < total) {
|
|
179
|
+
const read = readSync(fd, probe, 0, Math.min(16, total - offset), offset);
|
|
180
|
+
if (read < 2) break;
|
|
181
|
+
const id = probe[0];
|
|
182
|
+
let size = 0;
|
|
183
|
+
let shift = 0;
|
|
184
|
+
let at = 1;
|
|
185
|
+
for (; ; ) {
|
|
186
|
+
const byte = probe[at++];
|
|
187
|
+
size += (byte & 127) * 2 ** shift;
|
|
188
|
+
if (!(byte & 128)) break;
|
|
189
|
+
shift += 7;
|
|
190
|
+
}
|
|
191
|
+
const start = offset + at;
|
|
192
|
+
const next = start + size;
|
|
193
|
+
if (id === 1 || id === 2) prefixEnd = next;
|
|
194
|
+
else if (id === 0) {
|
|
195
|
+
const nameBuf = Buffer.allocUnsafe(Math.min(128, size));
|
|
196
|
+
const nRead = readSync(fd, nameBuf, 0, nameBuf.length, start);
|
|
197
|
+
let nLen = 0;
|
|
198
|
+
let nShift = 0;
|
|
199
|
+
let nAt = 0;
|
|
200
|
+
for (; ; ) {
|
|
201
|
+
if (nAt >= nRead) break;
|
|
202
|
+
const byte = nameBuf[nAt++];
|
|
203
|
+
nLen += (byte & 127) * 2 ** nShift;
|
|
204
|
+
if (!(byte & 128)) break;
|
|
205
|
+
nShift += 7;
|
|
206
|
+
}
|
|
207
|
+
if (nAt + nLen <= nRead && nameBuf.toString("utf8", nAt, nAt + nLen) === NATIVE_SDK_THUNK_SECTION) {
|
|
208
|
+
hasExistingThunk = true;
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
offset = next;
|
|
213
|
+
}
|
|
214
|
+
if (!hasExistingThunk) {
|
|
215
|
+
prefix = Buffer.allocUnsafe(prefixEnd);
|
|
216
|
+
let filled = 0;
|
|
217
|
+
while (filled < prefixEnd) {
|
|
218
|
+
const n = readSync(fd, prefix, filled, prefixEnd - filled, filled);
|
|
219
|
+
if (n <= 0) break;
|
|
220
|
+
filled += n;
|
|
221
|
+
}
|
|
222
|
+
prefix = prefix.subarray(0, filled);
|
|
223
|
+
}
|
|
224
|
+
} finally {
|
|
225
|
+
closeSync(fd);
|
|
226
|
+
}
|
|
227
|
+
if (hasExistingThunk || !prefix) {
|
|
228
|
+
writeFileSync(file, finishSwiftAppModule(readFileSync(file)));
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
const thunks = sdkImportThunks(prefix);
|
|
232
|
+
const nameBytes = Buffer.from(encodedName(NATIVE_SDK_THUNK_SECTION));
|
|
233
|
+
const header = Buffer.from([0, ...uleb(nameBytes.length + thunks.length)]);
|
|
234
|
+
appendFileSync(file, Buffer.concat([header, nameBytes, thunks]));
|
|
235
|
+
}
|
|
161
236
|
function swiftAppModuleInputs(tokens, buildRoot, sdkLibraries) {
|
|
162
237
|
const owned = (token) => path.resolve(token).startsWith(`${buildRoot}/`) && (!token.includes("/.peach-pruned-objs/") || token.endsWith("/swiftrt-patched.o"));
|
|
163
238
|
const inputs = [];
|
|
@@ -372,6 +447,7 @@ async function linkSwiftAppModule(options) {
|
|
|
372
447
|
"--unresolved-symbols=ignore-all",
|
|
373
448
|
"--import-undefined",
|
|
374
449
|
"--emit-relocs",
|
|
450
|
+
"--strip-debug",
|
|
375
451
|
"--gc-sections",
|
|
376
452
|
"--keep-section=target_features",
|
|
377
453
|
"--error-limit=0",
|
|
@@ -394,7 +470,16 @@ async function linkSwiftAppModule(options) {
|
|
|
394
470
|
const skipPasses = options.layoutMap ? ["duplicate-function-elimination"] : void 0;
|
|
395
471
|
const sdkTableEnd = sdk.sdkInterface.layout.tableEnd;
|
|
396
472
|
const { loweringCache } = options;
|
|
397
|
-
const loweringKey = loweringCache &&
|
|
473
|
+
const loweringKey = loweringCache && (typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(
|
|
474
|
+
JSON.stringify([
|
|
475
|
+
loweringCache.compilerDigest,
|
|
476
|
+
optimize,
|
|
477
|
+
skipPasses,
|
|
478
|
+
sdkTableEnd,
|
|
479
|
+
lazy,
|
|
480
|
+
KEEP_WASM_NAMES
|
|
481
|
+
])
|
|
482
|
+
).update(bytes).digest("hex") : createHash("sha256").update(
|
|
398
483
|
JSON.stringify([
|
|
399
484
|
loweringCache.compilerDigest,
|
|
400
485
|
optimize,
|
|
@@ -403,7 +488,7 @@ async function linkSwiftAppModule(options) {
|
|
|
403
488
|
lazy,
|
|
404
489
|
KEEP_WASM_NAMES
|
|
405
490
|
])
|
|
406
|
-
).update(bytes).digest("hex");
|
|
491
|
+
).update(bytes).digest("hex"));
|
|
407
492
|
return {
|
|
408
493
|
linkage,
|
|
409
494
|
async lower() {
|
|
@@ -1066,7 +1151,8 @@ function createSwiftSdkBinding(linkage, sdk, usage, projection) {
|
|
|
1066
1151
|
bindSwiftAppModule(linkage, sdk),
|
|
1067
1152
|
selectSwiftSdkData(sdk, usage, linkage, projection)
|
|
1068
1153
|
]);
|
|
1069
|
-
|
|
1154
|
+
const sha256 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : createHash("sha256").update(bytes).digest("hex");
|
|
1155
|
+
return { bytes, sha256 };
|
|
1070
1156
|
}
|
|
1071
1157
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
1072
1158
|
const map = readWasmLinkMap(mapFile, false);
|
|
@@ -1622,6 +1708,7 @@ export {
|
|
|
1622
1708
|
readSwiftSdkUsage,
|
|
1623
1709
|
selectSwiftSdkData,
|
|
1624
1710
|
swiftAppModuleInputs,
|
|
1711
|
+
swiftAppModuleThunkSection,
|
|
1625
1712
|
swiftSdkProjectionSpans,
|
|
1626
1713
|
writeSwiftSdkAppLink
|
|
1627
1714
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
6
6
|
SWIFT_SDK_IMAGE_FILES,
|
|
7
|
-
SWIFT_SDK_IMAGE_VERSION,
|
|
8
7
|
SWIFT_SDK_MEMORY_BASE,
|
|
9
8
|
SWIFT_SDK_PIECE_FIELDS,
|
|
10
9
|
buildSwiftSdkImage,
|
|
@@ -15,27 +14,26 @@ import {
|
|
|
15
14
|
swiftSdkImageFile,
|
|
16
15
|
swiftSdkImageKey,
|
|
17
16
|
swiftSdkImageProducts
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-ULHG6CND.mjs";
|
|
18
|
+
import "./chunk-A66VNSO6.mjs";
|
|
19
|
+
import "./chunk-JVEJLPJC.mjs";
|
|
20
|
+
import "./chunk-2LDG7OD4.mjs";
|
|
21
|
+
import "./chunk-JRU2VXUU.mjs";
|
|
22
|
+
import "./chunk-LJYNZ5HM.mjs";
|
|
23
|
+
import "./chunk-DVMKYLDN.mjs";
|
|
24
|
+
import "./chunk-A4R4YGFJ.mjs";
|
|
25
|
+
import "./chunk-Q5NI4L3Z.mjs";
|
|
26
|
+
import "./chunk-OCCZJOSA.mjs";
|
|
27
|
+
import "./chunk-R4FFTWPL.mjs";
|
|
28
|
+
import "./chunk-7Z7YJ4FU.mjs";
|
|
29
|
+
import "./chunk-SRIRVPNX.mjs";
|
|
30
|
+
import "./chunk-KA4AQDVF.mjs";
|
|
31
|
+
import "./chunk-P542MMIN.mjs";
|
|
33
32
|
export {
|
|
34
33
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
35
34
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
36
35
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
37
36
|
SWIFT_SDK_IMAGE_FILES,
|
|
38
|
-
SWIFT_SDK_IMAGE_VERSION,
|
|
39
37
|
SWIFT_SDK_MEMORY_BASE,
|
|
40
38
|
SWIFT_SDK_PIECE_FIELDS,
|
|
41
39
|
buildSwiftSdkImage,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JVEJLPJC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A4R4YGFJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KA4AQDVF.mjs";
|
|
12
|
+
import "./chunk-P542MMIN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|