peachsim 0.1.2773 → 0.1.2775
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 +318 -199
- 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-3SGU25AX.mjs → acorn-CTIC3GCU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-KMMFDGYA.mjs → chunk-2YTHEKWJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2HWUPAOD.mjs → chunk-3WU4YTJR.mjs} +205 -166
- package/dist-lib/esm-chunks/{chunk-ORGP6SSO.mjs → chunk-4B46TF64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QMI7ECNF.mjs → chunk-C5EU2DRL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DFVWY2BW.mjs → chunk-CFNSLWMQ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-HN7CHPZK.mjs → chunk-E6ULRDAP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IQF674WE.mjs → chunk-ESP2U4IX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-5DQRSOJ5.mjs → chunk-ESWEEZZP.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-4FVDW5QX.mjs → chunk-FBN2C43P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NH3CEIBN.mjs → chunk-FVUN2533.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-IM2IAOAZ.mjs → chunk-GKKZLYBA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SZ7TVJHH.mjs → chunk-H5TBKFDB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GSZLZNZM.mjs → chunk-ITTQHQD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XXLSXSUK.mjs → chunk-JERE5CAK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WBPJJXMA.mjs → chunk-MJSKVK7E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q2EEH42W.mjs → chunk-NV5NLKKN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-G5TS3L6A.mjs → chunk-RGOPQX37.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-KEVJJ3QT.mjs → chunk-S47B7YHJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FRPS6V6P.mjs → chunk-SK4FQLNJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YZRKIUVZ.mjs → chunk-TE3WHBF3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ANTOZ3UC.mjs → chunk-W42DUKWD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DYKZYFHH.mjs → chunk-WB5OWF4G.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-KZ2NH7C4.mjs → chunk-XMBGLLON.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MRQ72NMR.mjs → chunk-YRKGWASL.mjs} +6 -6
- package/dist-lib/esm-chunks/{metro-layout-parser-5MEY33AK.mjs → metro-layout-parser-2RQ3WC37.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-3FLCNBQT.mjs → swift-package-prebuilt-L5SWVH6U.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-PPJ4LUOW.mjs → swift-sdk-app-module-5SWDBTBY.mjs} +107 -25
- package/dist-lib/esm-chunks/{swift-sdk-image-L5MERITP.mjs → swift-sdk-image-OOSMI47A.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-IILRYXVN.mjs → swift-sdk-image-producer-DL4VEBXN.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +318 -199
- 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 +4327 -4209
- package/dist-lib/host/fetch-proxy-handler.cjs +343 -340
- 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 +96 -96
- 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 +2912 -2794
- package/dist-lib/swift-compile.cjs +314 -195
- 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/ios/duo-vertical-bar-geometry.d.ts +0 -15
- package/dist-types/packages/peach-engine/src/ios/flex-interaction.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/react-native/AppState.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/react-native/Keyboard.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/ring-mode-state.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +0 -31
- package/package.json +1 -1
- package/src/assetCatalogContract.ts +0 -6
- package/src/expo-pod-prebuilt.ts +0 -63
- package/src/native-package-slice.ts +0 -2
- package/src/podfile-cocoapods.ts +0 -5
- package/src/runtime-assets.ts +0 -9
- package/src/sfSymbolMetricsContract.ts +51 -23
- package/src/swift-compile.ts +9 -6
- package/src/swift-distribution-mirror.ts +16 -5
- package/src/swift-guest-compile.ts +18 -7
- package/src/swift-guest-link.ts +0 -9
- package/src/swift-guest-projection-storage.ts +15 -2
- package/src/swift-guest-projection.ts +1 -46
- package/src/swift-guest-runtime-plan.ts +4 -80
- package/src/swift-header-compiler.ts +24 -9
- package/src/swift-sdk-app-module.ts +113 -10
- package/src/swift-wasm-prune.ts +0 -5
- package/src/swiftRuntimeProductContract.ts +1 -0
- package/src/swiftSdkLinkContract.ts +10 -0
- package/src/wasm-narrow-boundary.ts +0 -13
- package/src/wasm-lazy-split-tool.ts +0 -210
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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-3WU4YTJR.mjs";
|
|
35
35
|
import {
|
|
36
36
|
withSwiftRootLock,
|
|
37
37
|
withSwiftRootReadHolds
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-ESWEEZZP.mjs";
|
|
39
39
|
import {
|
|
40
40
|
swiftDistributionAt,
|
|
41
41
|
swiftModuleDigest,
|
|
42
42
|
swiftModuleToolchain,
|
|
43
43
|
swiftSdkPaths
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YRKGWASL.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE,
|
|
47
47
|
refreshSwiftCacheHold,
|
|
48
48
|
sourceSwiftCheckout,
|
|
49
49
|
swiftCacheDir
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
51
51
|
|
|
52
52
|
// src/swift-sdk-image.ts
|
|
53
53
|
import { execFile } from "node:child_process";
|
|
@@ -233,7 +233,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
233
233
|
const existing = cached(directory, key);
|
|
234
234
|
if (existing) return existing;
|
|
235
235
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
236
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
236
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-DL4VEBXN.mjs");
|
|
237
237
|
await produceSwiftSdkImage({
|
|
238
238
|
moduleRoot,
|
|
239
239
|
key,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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,21 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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-ITTQHQD5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YRKGWASL.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2YTHEKWJ.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.2775 | (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-FBN2C43P.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XMBGLLON.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S47B7YHJ.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NV5NLKKN.mjs";
|
|
28
28
|
|
|
29
29
|
// src/write-build-file.ts
|
|
30
30
|
import { mkdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
package/dist-lib/esm-chunks/{metro-layout-parser-5MEY33AK.mjs → metro-layout-parser-2RQ3WC37.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-NV5NLKKN.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-CTIC3GCU.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.2775 | (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-3WU4YTJR.mjs";
|
|
8
|
+
import "./chunk-ESWEEZZP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-YRKGWASL.mjs";
|
|
13
|
+
import "./chunk-FBN2C43P.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XMBGLLON.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-S47B7YHJ.mjs";
|
|
20
|
+
import "./chunk-H5TBKFDB.mjs";
|
|
21
|
+
import "./chunk-W42DUKWD.mjs";
|
|
22
|
+
import "./chunk-GKKZLYBA.mjs";
|
|
23
|
+
import "./chunk-2YTHEKWJ.mjs";
|
|
24
|
+
import "./chunk-NV5NLKKN.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-PPJ4LUOW.mjs → swift-sdk-app-module-5SWDBTBY.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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-
|
|
7
|
+
} from "./chunk-RGOPQX37.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ADDEND_RELOCATIONS,
|
|
10
10
|
KEEP_WASM_NAMES,
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
objcCategoryNeedsFamily,
|
|
29
29
|
passiveSegments,
|
|
30
30
|
placeGuestLazyFunctions,
|
|
31
|
+
planGuestProjectionRegions,
|
|
31
32
|
projectOutputFile,
|
|
32
33
|
readArMembers,
|
|
33
34
|
readSwiftPrunedLinkResponse,
|
|
@@ -35,22 +36,22 @@ import {
|
|
|
35
36
|
wasmReader,
|
|
36
37
|
wasmSections,
|
|
37
38
|
writeWasmCustomSection
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-3WU4YTJR.mjs";
|
|
40
|
+
import "./chunk-ESWEEZZP.mjs";
|
|
41
|
+
import "./chunk-WB5OWF4G.mjs";
|
|
42
|
+
import "./chunk-ITTQHQD5.mjs";
|
|
43
|
+
import "./chunk-JERE5CAK.mjs";
|
|
44
|
+
import "./chunk-YRKGWASL.mjs";
|
|
44
45
|
import {
|
|
45
46
|
SWIFT_WASM_TRIPLE
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
48
|
+
import "./chunk-XMBGLLON.mjs";
|
|
49
|
+
import "./chunk-S47B7YHJ.mjs";
|
|
50
|
+
import "./chunk-H5TBKFDB.mjs";
|
|
51
|
+
import "./chunk-W42DUKWD.mjs";
|
|
52
|
+
import "./chunk-GKKZLYBA.mjs";
|
|
53
|
+
import "./chunk-2YTHEKWJ.mjs";
|
|
54
|
+
import "./chunk-NV5NLKKN.mjs";
|
|
54
55
|
|
|
55
56
|
// src/swift-sdk-app-module.ts
|
|
56
57
|
import { execFile } from "node:child_process";
|
|
@@ -463,7 +464,7 @@ async function linkSwiftAppModule(options) {
|
|
|
463
464
|
{ maxBuffer: 64 << 20, ...options.project }
|
|
464
465
|
);
|
|
465
466
|
const module = path.join(work, "app.module.wasm");
|
|
466
|
-
const { bytes, linkage } = resolveSdkReferences(
|
|
467
|
+
const { bytes, linkage, staticEnd, globalValues } = resolveSdkReferences(
|
|
467
468
|
readFileSync(
|
|
468
469
|
options.project ? projectOutputFile(work, linked, options.project) : linked
|
|
469
470
|
),
|
|
@@ -496,6 +497,8 @@ async function linkSwiftAppModule(options) {
|
|
|
496
497
|
).update(bytes).digest("hex"));
|
|
497
498
|
return {
|
|
498
499
|
linkage,
|
|
500
|
+
staticEnd,
|
|
501
|
+
globalValues,
|
|
499
502
|
async lower() {
|
|
500
503
|
const receipt = loweringCache && `${loweringCache.file}.key`;
|
|
501
504
|
if (loweringCache && receipt && existsSync(receipt) && existsSync(loweringCache.file) && readFileSync(receipt, "utf8") === loweringKey) {
|
|
@@ -1019,6 +1022,7 @@ function resolveSdkReferences(source, sdk, forwarders) {
|
|
|
1019
1022
|
const er = wasmReader(bytes, exportSection.start);
|
|
1020
1023
|
const exportCount = er.u();
|
|
1021
1024
|
const originalExportsStart = er.at;
|
|
1025
|
+
let staticEnd = 0;
|
|
1022
1026
|
for (let i = 0; i < exportCount; i++) {
|
|
1023
1027
|
const name = er.name();
|
|
1024
1028
|
const kind = er.byte();
|
|
@@ -1031,8 +1035,10 @@ function resolveSdkReferences(source, sdk, forwarders) {
|
|
|
1031
1035
|
const op = raw.byte();
|
|
1032
1036
|
const value = op === 35 ? BigInt(raw.u()) : raw.s();
|
|
1033
1037
|
raw.skip(1);
|
|
1034
|
-
if (j
|
|
1038
|
+
if (j !== index) continue;
|
|
1039
|
+
if (value <= 0n || value > BigInt(SWIFT_SDK_MEMORY_BASE))
|
|
1035
1040
|
throw new Error("Swift app exceeds its reserved static memory range");
|
|
1041
|
+
staticEnd = Number(value);
|
|
1036
1042
|
}
|
|
1037
1043
|
}
|
|
1038
1044
|
const exportParts = [
|
|
@@ -1069,7 +1075,12 @@ function resolveSdkReferences(source, sdk, forwarders) {
|
|
|
1069
1075
|
parts.push(bytes.subarray(s.offset, s.end));
|
|
1070
1076
|
}
|
|
1071
1077
|
}
|
|
1072
|
-
return {
|
|
1078
|
+
return {
|
|
1079
|
+
bytes: Buffer.concat(parts),
|
|
1080
|
+
linkage,
|
|
1081
|
+
staticEnd,
|
|
1082
|
+
globalValues: [...new Set(got.values())]
|
|
1083
|
+
};
|
|
1073
1084
|
}
|
|
1074
1085
|
function expandSdkRelocations(bytes, section, patches) {
|
|
1075
1086
|
patches.sort((a, b) => a.at - b.at);
|
|
@@ -1116,25 +1127,94 @@ function bindSwiftAppModule(linkage, sdk) {
|
|
|
1116
1127
|
throw new Error(`SDK image has no compatible function ${name}`);
|
|
1117
1128
|
return slot;
|
|
1118
1129
|
});
|
|
1119
|
-
const
|
|
1130
|
+
const projection = linkage.replayProjection?.sdk === sdk.key ? void 0 : linkage.replayProjection;
|
|
1131
|
+
const optional = projection && new Set(projection.lookupValues);
|
|
1132
|
+
const values = linkage.values.map(({ kind, name, addend }, index) => {
|
|
1120
1133
|
const value = kind === "function" ? functions[name] : kind === "address" ? data[name] : tls[name];
|
|
1134
|
+
if (value === void 0 && optional?.has(index)) return 0n;
|
|
1121
1135
|
if (value === void 0 || kind === "tls" && tls.errno === void 0)
|
|
1122
1136
|
throw new Error(`SDK image has no ${kind} symbol ${name}`);
|
|
1123
1137
|
return BigInt(value + addend - (kind === "tls" ? tls.errno : 0));
|
|
1124
1138
|
});
|
|
1139
|
+
const fixups = projection ? appendReplayProjectionFixups(linkage.data, values, projection, sdk) : linkage.data;
|
|
1125
1140
|
const words = Uint32Array.from([
|
|
1126
1141
|
values.length,
|
|
1127
1142
|
slots.length,
|
|
1128
|
-
|
|
1143
|
+
fixups.length,
|
|
1129
1144
|
linkage.tls.length
|
|
1130
1145
|
]);
|
|
1131
1146
|
return Buffer.concat([
|
|
1132
|
-
...[words, values, slots, Uint32Array.from(linkage.tls)].map(
|
|
1147
|
+
...[words, BigInt64Array.from(values), slots, Uint32Array.from(linkage.tls)].map(
|
|
1133
1148
|
(part) => new Uint8Array(part.buffer)
|
|
1134
1149
|
),
|
|
1135
|
-
encodeNativeSdkFixups(
|
|
1150
|
+
encodeNativeSdkFixups(fixups)
|
|
1136
1151
|
]);
|
|
1137
1152
|
}
|
|
1153
|
+
function appendReplayProjectionFixups(data, values, projection, sdk) {
|
|
1154
|
+
const { countAddresses, images, staticEnd } = projection;
|
|
1155
|
+
if (!Number.isSafeInteger(staticEnd) || staticEnd < SWIFT_SDK_APP_MEMORY_BASE || staticEnd >= SWIFT_SDK_MEMORY_BASE || countAddresses.length !== images.length || new Set(countAddresses).size !== images.length)
|
|
1156
|
+
throw new Error("invalid retained app projection storage");
|
|
1157
|
+
const objects = new Map(projection.objects);
|
|
1158
|
+
const products = new Map(projection.products);
|
|
1159
|
+
const sdkSpans = swiftSdkProjectionSpans(
|
|
1160
|
+
sdk,
|
|
1161
|
+
(object, product) => objects.get(object) ?? products.get(product)
|
|
1162
|
+
);
|
|
1163
|
+
const regions = planGuestProjectionRegions(
|
|
1164
|
+
images,
|
|
1165
|
+
images.map(() => ({
|
|
1166
|
+
regions: Number.MAX_SAFE_INTEGER,
|
|
1167
|
+
memoryProtection: { initial: 3, maximum: 3 },
|
|
1168
|
+
tableProtection: { initial: 5, maximum: 5 }
|
|
1169
|
+
})),
|
|
1170
|
+
[
|
|
1171
|
+
...images.flatMap(
|
|
1172
|
+
({ regions: regions2 }, image) => regions2.map(({ space, address, length }) => ({ image, space, address, length }))
|
|
1173
|
+
),
|
|
1174
|
+
...sdkSpans
|
|
1175
|
+
]
|
|
1176
|
+
);
|
|
1177
|
+
const fixups = [...data];
|
|
1178
|
+
const literals = /* @__PURE__ */ new Map();
|
|
1179
|
+
const add = (address, width, value) => {
|
|
1180
|
+
let index = literals.get(value);
|
|
1181
|
+
if (index === void 0) {
|
|
1182
|
+
index = values.length;
|
|
1183
|
+
literals.set(value, index);
|
|
1184
|
+
values.push(value);
|
|
1185
|
+
}
|
|
1186
|
+
fixups.push(address, width, index);
|
|
1187
|
+
};
|
|
1188
|
+
const name = Math.ceil(staticEnd / 8) * 8;
|
|
1189
|
+
let next = name + 8;
|
|
1190
|
+
if (next > SWIFT_SDK_MEMORY_BASE)
|
|
1191
|
+
throw new Error("rebound SDK projection exceeds the app static memory reservation");
|
|
1192
|
+
add(name, 8, Buffer.from("__WASM\0\0").readBigInt64LE());
|
|
1193
|
+
for (const [image, { regions: ranges }] of regions.entries()) {
|
|
1194
|
+
const count = countAddresses[image];
|
|
1195
|
+
if (!Number.isSafeInteger(count) || count < SWIFT_SDK_APP_MEMORY_BASE || count + 16 > staticEnd || count % 8 !== 0)
|
|
1196
|
+
throw new Error("retained app projection record is out of range");
|
|
1197
|
+
add(count, 4, BigInt(ranges.length));
|
|
1198
|
+
add(count + 8, 8, BigInt(next));
|
|
1199
|
+
for (const range of ranges) {
|
|
1200
|
+
if (next + 40 > SWIFT_SDK_MEMORY_BASE)
|
|
1201
|
+
throw new Error(
|
|
1202
|
+
"rebound SDK projection exceeds the app static memory reservation"
|
|
1203
|
+
);
|
|
1204
|
+
add(next, 8, BigInt(name));
|
|
1205
|
+
add(
|
|
1206
|
+
next + 8,
|
|
1207
|
+
8,
|
|
1208
|
+
BigInt(range.address) << 32n | BigInt(range.space === "function-table")
|
|
1209
|
+
);
|
|
1210
|
+
add(next + 16, 8, BigInt(range.initialProtection) << 32n | BigInt(range.length));
|
|
1211
|
+
add(next + 24, 8, BigInt(range.maximumProtection));
|
|
1212
|
+
add(next + 32, 8, 0n);
|
|
1213
|
+
next += 40;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
return fixups;
|
|
1217
|
+
}
|
|
1138
1218
|
var SCANNED = /* @__PURE__ */ new Set([
|
|
1139
1219
|
"swift5_protocols",
|
|
1140
1220
|
"swift5_protocol_conformances",
|
|
@@ -1438,8 +1518,10 @@ function selectSwiftSdkData(sdk, usage, linkage, projection) {
|
|
|
1438
1518
|
const { functions, data } = sdk.sdkInterface;
|
|
1439
1519
|
for (const { name } of linkage.functions) boundSlots.add(functions[name]);
|
|
1440
1520
|
for (const { kind, name } of linkage.values) {
|
|
1441
|
-
|
|
1442
|
-
|
|
1521
|
+
const address2 = kind === "function" ? functions[name] : data[name];
|
|
1522
|
+
if (address2 === void 0) continue;
|
|
1523
|
+
if (kind === "function") boundSlots.add(address2);
|
|
1524
|
+
else if (kind === "address") visit(address2);
|
|
1443
1525
|
}
|
|
1444
1526
|
}
|
|
1445
1527
|
const slots = block("functionSlots");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./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-
|
|
16
|
+
} from "./chunk-RGOPQX37.mjs";
|
|
17
|
+
import "./chunk-3WU4YTJR.mjs";
|
|
18
|
+
import "./chunk-ESWEEZZP.mjs";
|
|
19
|
+
import "./chunk-WB5OWF4G.mjs";
|
|
20
|
+
import "./chunk-ITTQHQD5.mjs";
|
|
21
|
+
import "./chunk-JERE5CAK.mjs";
|
|
22
|
+
import "./chunk-YRKGWASL.mjs";
|
|
23
|
+
import "./chunk-FBN2C43P.mjs";
|
|
24
|
+
import "./chunk-XMBGLLON.mjs";
|
|
25
|
+
import "./chunk-S47B7YHJ.mjs";
|
|
26
|
+
import "./chunk-H5TBKFDB.mjs";
|
|
27
|
+
import "./chunk-W42DUKWD.mjs";
|
|
28
|
+
import "./chunk-GKKZLYBA.mjs";
|
|
29
|
+
import "./chunk-2YTHEKWJ.mjs";
|
|
30
|
+
import "./chunk-NV5NLKKN.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.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ESWEEZZP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
12
|
+
import "./chunk-NV5NLKKN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|