peachsim 0.1.2723 → 0.1.2725
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 +57 -36
- 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-F3M2TKUX.mjs → acorn-W726S2IA.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-Y77FZJW2.mjs → chunk-2MNFO56N.mjs} +49 -35
- package/dist-lib/esm-chunks/{chunk-7XGUQL4X.mjs → chunk-3GTV2LCM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CQJV4EVW.mjs → chunk-3TIJK5UZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K3CU2YXT.mjs → chunk-76CDSQWP.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-DZXB5BJN.mjs → chunk-7F5LC43J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZQU5WPTG.mjs → chunk-AAQ2DFPN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AUTMC3QD.mjs → chunk-BTLEW436.mjs} +7 -8
- package/dist-lib/esm-chunks/{chunk-3IU4EP2Z.mjs → chunk-BWMTXR6G.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SIULKQAK.mjs → chunk-D5RGF7UF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S3GS24G6.mjs → chunk-FV4DZWYD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-ZKW75WRX.mjs → chunk-H73GWF5E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LIC5LYQJ.mjs → chunk-HM2MXBOG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GVSWDVPL.mjs → chunk-HMROXN4Q.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-N5UND445.mjs → chunk-JZDAJZBB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EYSRTHK7.mjs → chunk-LWQTRRI2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HA2OAZT5.mjs → chunk-MGH6TFFZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BGHKJMLZ.mjs → chunk-MWBFM6BI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S7SEZPUJ.mjs → chunk-NRIEADO4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IAV5XLVR.mjs → chunk-QRILDJ7M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RHEMYORC.mjs → chunk-UQ2MSEVY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PHPSRPSE.mjs → chunk-WII6ZXAJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TGO6L4RG.mjs → chunk-YCHKJV7N.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-T7IPZWTL.mjs → chunk-YKJUNRZF.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-G4DCGHYZ.mjs → chunk-YX5GEVDN.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-KDQ4RWIN.mjs → metro-layout-parser-5TW7JPFC.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KBXU457K.mjs → swift-package-prebuilt-PQXBXXR2.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-23DEMHHZ.mjs → swift-sdk-app-module-6HBBAK2W.mjs} +33 -24
- package/dist-lib/esm-chunks/{swift-sdk-image-ER4ESBTD.mjs → swift-sdk-image-XGU4LD2J.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-FZRGEKOY.mjs → swift-sdk-image-producer-CMFC7NVM.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +57 -36
- 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 +254 -48
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +85 -85
- package/dist-lib/public-origins-lib.json +64 -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 +254 -48
- package/dist-lib/swift-compile.cjs +54 -33
- 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/engine/native-layout.d.ts +0 -2
- package/dist-types/packages/peach-engine/src/engine/native-text-measure.d.ts +3 -6
- package/dist-types/packages/peach-engine/src/engine/native-text-metric-policy.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/native-text-runtimeContract.d.ts +0 -5
- package/package.json +1 -1
- package/src/binaryen.lock.json +1 -1
- package/src/one-direct-host-source.ts +194 -10
- package/src/one-native-controls-package.ts +81 -36
- package/src/swift-compile.ts +35 -18
- package/src/swift-sdk-app-module.ts +22 -10
- package/src/swift-sdk-image.ts +1 -1
- package/src/swiftSdkLinkContract.ts +2 -0
package/dist-lib/esm-chunks/{swift-sdk-app-module-23DEMHHZ.mjs → swift-sdk-app-module-6HBBAK2W.mjs}
RENAMED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
|
-
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
4
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
5
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
6
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BTLEW436.mjs";
|
|
9
8
|
import {
|
|
10
9
|
ADDEND_RELOCATIONS,
|
|
11
10
|
KEEP_WASM_NAMES,
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
NATIVE_SDK_IMPORT_MODULE,
|
|
15
14
|
NATIVE_SDK_THUNK_SECTION,
|
|
16
15
|
SWIFT_PRUNED_LINK_MAP,
|
|
16
|
+
SWIFT_SDK_APP_TABLE_BASE,
|
|
17
17
|
SWIFT_SDK_FUNCTION_ADDRESS_PREFIX,
|
|
18
18
|
chunkKey,
|
|
19
19
|
constructorKeys,
|
|
@@ -33,22 +33,22 @@ 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-2MNFO56N.mjs";
|
|
37
|
+
import "./chunk-YKJUNRZF.mjs";
|
|
38
|
+
import "./chunk-FV4DZWYD.mjs";
|
|
39
|
+
import "./chunk-UQ2MSEVY.mjs";
|
|
40
|
+
import "./chunk-3TIJK5UZ.mjs";
|
|
41
|
+
import "./chunk-76CDSQWP.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-3GTV2LCM.mjs";
|
|
45
|
+
import "./chunk-D5RGF7UF.mjs";
|
|
46
|
+
import "./chunk-7F5LC43J.mjs";
|
|
47
|
+
import "./chunk-AAQ2DFPN.mjs";
|
|
48
|
+
import "./chunk-BWMTXR6G.mjs";
|
|
49
|
+
import "./chunk-MGH6TFFZ.mjs";
|
|
50
|
+
import "./chunk-HM2MXBOG.mjs";
|
|
51
|
+
import "./chunk-MWBFM6BI.mjs";
|
|
52
52
|
|
|
53
53
|
// src/swift-sdk-app-module.ts
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
@@ -1147,12 +1147,11 @@ function readSwiftSdkAppLink(file) {
|
|
|
1147
1147
|
return JSON.parse(gunzipSync(readFileSync(file)).toString("utf8"));
|
|
1148
1148
|
}
|
|
1149
1149
|
function createSwiftSdkBinding(linkage, sdk, usage, projection) {
|
|
1150
|
-
const
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
]);
|
|
1150
|
+
const binding = bindSwiftAppModule(linkage, sdk);
|
|
1151
|
+
const { data, liveSlots } = selectSwiftSdkData(sdk, usage, linkage, projection);
|
|
1152
|
+
const bytes = Buffer.concat([binding, data]);
|
|
1154
1153
|
const sha256 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : createHash("sha256").update(bytes).digest("hex");
|
|
1155
|
-
return { bytes, sha256 };
|
|
1154
|
+
return { bytes, sha256, liveSlots };
|
|
1156
1155
|
}
|
|
1157
1156
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
1158
1157
|
const map = readWasmLinkMap(mapFile, false);
|
|
@@ -1682,7 +1681,18 @@ function selectSwiftSdkData(sdk, usage, linkage, projection) {
|
|
|
1682
1681
|
blob.set(run2.bytes, at + 12);
|
|
1683
1682
|
at += 12 + run2.bytes.length;
|
|
1684
1683
|
}
|
|
1685
|
-
|
|
1684
|
+
const selected = new Set(boundSlots);
|
|
1685
|
+
slots.forEach((slot, index) => {
|
|
1686
|
+
if (slot && liveFunctions[index]) selected.add(slot);
|
|
1687
|
+
});
|
|
1688
|
+
const liveSlots = Buffer.alloc((selected.size + 1) * 4);
|
|
1689
|
+
liveSlots.writeUInt32LE(selected.size, 0);
|
|
1690
|
+
let slotOffset = 4;
|
|
1691
|
+
for (const slot of selected) {
|
|
1692
|
+
liveSlots.writeUInt32LE(slot, slotOffset);
|
|
1693
|
+
slotOffset += 4;
|
|
1694
|
+
}
|
|
1695
|
+
return { data: blob, liveSlots };
|
|
1686
1696
|
}
|
|
1687
1697
|
function partitionParent(section) {
|
|
1688
1698
|
return [
|
|
@@ -1706,7 +1716,6 @@ export {
|
|
|
1706
1716
|
linkSwiftAppModule,
|
|
1707
1717
|
readSwiftSdkAppLink,
|
|
1708
1718
|
readSwiftSdkUsage,
|
|
1709
|
-
selectSwiftSdkData,
|
|
1710
1719
|
swiftAppModuleInputs,
|
|
1711
1720
|
swiftAppModuleThunkSection,
|
|
1712
1721
|
swiftSdkProjectionSpans,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
|
-
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
4
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
6
5
|
SWIFT_SDK_IMAGE_FILES,
|
|
7
6
|
SWIFT_SDK_MEMORY_BASE,
|
|
@@ -14,24 +13,23 @@ import {
|
|
|
14
13
|
swiftSdkImageFile,
|
|
15
14
|
swiftSdkImageKey,
|
|
16
15
|
swiftSdkImageProducts
|
|
17
|
-
} from "./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-
|
|
31
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-BTLEW436.mjs";
|
|
17
|
+
import "./chunk-2MNFO56N.mjs";
|
|
18
|
+
import "./chunk-YKJUNRZF.mjs";
|
|
19
|
+
import "./chunk-FV4DZWYD.mjs";
|
|
20
|
+
import "./chunk-UQ2MSEVY.mjs";
|
|
21
|
+
import "./chunk-3TIJK5UZ.mjs";
|
|
22
|
+
import "./chunk-76CDSQWP.mjs";
|
|
23
|
+
import "./chunk-3GTV2LCM.mjs";
|
|
24
|
+
import "./chunk-D5RGF7UF.mjs";
|
|
25
|
+
import "./chunk-7F5LC43J.mjs";
|
|
26
|
+
import "./chunk-AAQ2DFPN.mjs";
|
|
27
|
+
import "./chunk-BWMTXR6G.mjs";
|
|
28
|
+
import "./chunk-MGH6TFFZ.mjs";
|
|
29
|
+
import "./chunk-HM2MXBOG.mjs";
|
|
30
|
+
import "./chunk-MWBFM6BI.mjs";
|
|
32
31
|
export {
|
|
33
32
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
34
|
-
SWIFT_SDK_APP_TABLE_BASE,
|
|
35
33
|
SWIFT_SDK_IMAGE_BUNDLE,
|
|
36
34
|
SWIFT_SDK_IMAGE_FILES,
|
|
37
35
|
SWIFT_SDK_MEMORY_BASE,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YKJUNRZF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3GTV2LCM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-HM2MXBOG.mjs";
|
|
12
|
+
import "./chunk-MWBFM6BI.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -19553,7 +19553,7 @@ var init_react_native_core_digest = __esm({
|
|
|
19553
19553
|
|
|
19554
19554
|
// src/swift-compiler-digest.ts
|
|
19555
19555
|
function swiftArchiveCompilerDigestValue() {
|
|
19556
|
-
return true ? "
|
|
19556
|
+
return true ? "f104a6c94890ebd260039267b97161f7fa2e9d835e447a54dcc8f8603c9af43f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
19557
19557
|
}
|
|
19558
19558
|
var import_node_crypto16, import_node_fs32, import_node_path31, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
19559
19559
|
var init_swift_compiler_digest = __esm({
|
|
@@ -19704,7 +19704,7 @@ var init_swift_standin_digest = __esm({
|
|
|
19704
19704
|
|
|
19705
19705
|
// src/expo-native-compiler-digest.ts
|
|
19706
19706
|
function expoNativeCompilerDigestValue() {
|
|
19707
|
-
return true ? "
|
|
19707
|
+
return true ? "37d83cb2b8c56fbb0e3999894956a5bd4fdd65e23a4734c4ae58fb86358d8f3a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
19708
19708
|
}
|
|
19709
19709
|
var import_node_crypto18;
|
|
19710
19710
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -25427,11 +25427,12 @@ var init_swift_sdk_image_map = __esm({
|
|
|
25427
25427
|
});
|
|
25428
25428
|
|
|
25429
25429
|
// src/swiftSdkLinkContract.ts
|
|
25430
|
-
var SWIFT_SDK_FUNCTION_ADDRESS_PREFIX, OBJC_LOAD_FUNCTION;
|
|
25430
|
+
var SWIFT_SDK_FUNCTION_ADDRESS_PREFIX, SWIFT_SDK_APP_TABLE_BASE, OBJC_LOAD_FUNCTION;
|
|
25431
25431
|
var init_swiftSdkLinkContract = __esm({
|
|
25432
25432
|
"src/swiftSdkLinkContract.ts"() {
|
|
25433
25433
|
"use strict";
|
|
25434
25434
|
SWIFT_SDK_FUNCTION_ADDRESS_PREFIX = "__peach_sdk_function_address.";
|
|
25435
|
+
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
25435
25436
|
OBJC_LOAD_FUNCTION = ".objcv2_load_function";
|
|
25436
25437
|
}
|
|
25437
25438
|
});
|
|
@@ -32480,7 +32481,7 @@ var init_binaryen_lock = __esm({
|
|
|
32480
32481
|
"darwin-arm64": {
|
|
32481
32482
|
asset: "arm64-macos",
|
|
32482
32483
|
upstreamSha256: "98aad827847af7ef990ed7098d885725c8e5b5aae75073403635617ae4e259aa",
|
|
32483
|
-
sha256: "
|
|
32484
|
+
sha256: "2cadf6373604091be7784a1dde396ccbe67964e9a5ddb40be19bb52d65cb23b7"
|
|
32484
32485
|
}
|
|
32485
32486
|
}
|
|
32486
32487
|
};
|
|
@@ -39757,7 +39758,6 @@ exit "$status"
|
|
|
39757
39758
|
var swift_sdk_image_exports = {};
|
|
39758
39759
|
__export(swift_sdk_image_exports, {
|
|
39759
39760
|
SWIFT_SDK_APP_MEMORY_BASE: () => SWIFT_SDK_APP_MEMORY_BASE,
|
|
39760
|
-
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
39761
39761
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
39762
39762
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
39763
39763
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
@@ -40429,7 +40429,7 @@ function readSwiftSdkManifest(image) {
|
|
|
40429
40429
|
}));
|
|
40430
40430
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block: block2, segments });
|
|
40431
40431
|
}
|
|
40432
|
-
var import_node_child_process34, import_node_crypto39, import_node_fs60, import_node_path58, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE,
|
|
40432
|
+
var import_node_child_process34, import_node_crypto39, import_node_fs60, import_node_path58, import_node_util10, run4, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
|
|
40433
40433
|
var init_swift_sdk_image = __esm({
|
|
40434
40434
|
"src/swift-sdk-image.ts"() {
|
|
40435
40435
|
"use strict";
|
|
@@ -40450,12 +40450,12 @@ var init_swift_sdk_image = __esm({
|
|
|
40450
40450
|
init_swift_sdk_image_wasm();
|
|
40451
40451
|
init_swift_toolchain();
|
|
40452
40452
|
init_swift_wasm_prune();
|
|
40453
|
+
init_swiftSdkLinkContract();
|
|
40453
40454
|
init_swiftTargetContract();
|
|
40454
40455
|
init_wasm_optimize();
|
|
40455
40456
|
run4 = (0, import_node_util10.promisify)(import_node_child_process34.execFile);
|
|
40456
40457
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
40457
40458
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
40458
|
-
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
40459
40459
|
EMPTY_APP = `import SwiftUI
|
|
40460
40460
|
|
|
40461
40461
|
@main
|
|
@@ -40716,7 +40716,6 @@ __export(swift_sdk_app_module_exports, {
|
|
|
40716
40716
|
linkSwiftAppModule: () => linkSwiftAppModule,
|
|
40717
40717
|
readSwiftSdkAppLink: () => readSwiftSdkAppLink,
|
|
40718
40718
|
readSwiftSdkUsage: () => readSwiftSdkUsage,
|
|
40719
|
-
selectSwiftSdkData: () => selectSwiftSdkData,
|
|
40720
40719
|
swiftAppModuleInputs: () => swiftAppModuleInputs,
|
|
40721
40720
|
swiftAppModuleThunkSection: () => swiftAppModuleThunkSection,
|
|
40722
40721
|
swiftSdkProjectionSpans: () => swiftSdkProjectionSpans,
|
|
@@ -41711,12 +41710,11 @@ function readSwiftSdkAppLink(file) {
|
|
|
41711
41710
|
return JSON.parse((0, import_node_zlib4.gunzipSync)((0, import_node_fs61.readFileSync)(file)).toString("utf8"));
|
|
41712
41711
|
}
|
|
41713
41712
|
function createSwiftSdkBinding(linkage, sdk2, usage, projection) {
|
|
41714
|
-
const
|
|
41715
|
-
|
|
41716
|
-
|
|
41717
|
-
]);
|
|
41713
|
+
const binding = bindSwiftAppModule(linkage, sdk2);
|
|
41714
|
+
const { data, liveSlots } = selectSwiftSdkData(sdk2, usage, linkage, projection);
|
|
41715
|
+
const bytes = Buffer.concat([binding, data]);
|
|
41718
41716
|
const sha2565 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto40.createHash)("sha256").update(bytes).digest("hex");
|
|
41719
|
-
return { bytes, sha256: sha2565 };
|
|
41717
|
+
return { bytes, sha256: sha2565, liveSlots };
|
|
41720
41718
|
}
|
|
41721
41719
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
41722
41720
|
const map2 = readWasmLinkMap(mapFile, false);
|
|
@@ -42246,7 +42244,18 @@ function selectSwiftSdkData(sdk2, usage, linkage, projection) {
|
|
|
42246
42244
|
blob.set(run12.bytes, at + 12);
|
|
42247
42245
|
at += 12 + run12.bytes.length;
|
|
42248
42246
|
}
|
|
42249
|
-
|
|
42247
|
+
const selected = new Set(boundSlots);
|
|
42248
|
+
slots.forEach((slot, index) => {
|
|
42249
|
+
if (slot && liveFunctions[index]) selected.add(slot);
|
|
42250
|
+
});
|
|
42251
|
+
const liveSlots = Buffer.alloc((selected.size + 1) * 4);
|
|
42252
|
+
liveSlots.writeUInt32LE(selected.size, 0);
|
|
42253
|
+
let slotOffset = 4;
|
|
42254
|
+
for (const slot of selected) {
|
|
42255
|
+
liveSlots.writeUInt32LE(slot, slotOffset);
|
|
42256
|
+
slotOffset += 4;
|
|
42257
|
+
}
|
|
42258
|
+
return { data: blob, liveSlots };
|
|
42250
42259
|
}
|
|
42251
42260
|
function partitionParent(section2) {
|
|
42252
42261
|
return [
|
|
@@ -47922,14 +47931,17 @@ function readCompiledArtifact(directory2, hash) {
|
|
|
47922
47931
|
return null;
|
|
47923
47932
|
if (!("sdk" in receipt)) return null;
|
|
47924
47933
|
const image = receipt.sdk;
|
|
47925
|
-
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
47934
|
+
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string" || typeof image.liveSlots !== "string")
|
|
47926
47935
|
return null;
|
|
47927
47936
|
const binding = (0, import_node_fs70.readFileSync)(import_node_path70.default.join(directory2, "sdk-binding.bin"));
|
|
47928
47937
|
if ((0, import_node_crypto45.createHash)("sha256").update(binding).digest("hex") !== image.binding) return null;
|
|
47938
|
+
const liveSlots = (0, import_node_fs70.readFileSync)(import_node_path70.default.join(directory2, "sdk-live-slots.bin"));
|
|
47939
|
+
if ((0, import_node_crypto45.createHash)("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
|
|
47940
|
+
return null;
|
|
47929
47941
|
const sdk2 = {
|
|
47930
47942
|
key: image.key,
|
|
47931
47943
|
sha256: image.sha256,
|
|
47932
|
-
binding: { bytes: binding, sha256: image.binding }
|
|
47944
|
+
binding: { bytes: binding, sha256: image.binding, liveSlots }
|
|
47933
47945
|
};
|
|
47934
47946
|
return { hash, bytes, icu: { sha256: receipt.icu, gzip: gzip2 }, sdk: sdk2 };
|
|
47935
47947
|
} catch (error) {
|
|
@@ -47945,8 +47957,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
47945
47957
|
try {
|
|
47946
47958
|
(0, import_node_fs70.writeFileSync)(import_node_path70.default.join(pending, "app.wasm"), artifact.bytes);
|
|
47947
47959
|
(0, import_node_fs70.writeFileSync)(import_node_path70.default.join(pending, "icu.gz"), artifact.icu.gzip);
|
|
47948
|
-
if (artifact.sdk)
|
|
47960
|
+
if (artifact.sdk) {
|
|
47949
47961
|
(0, import_node_fs70.writeFileSync)(import_node_path70.default.join(pending, "sdk-binding.bin"), artifact.sdk.binding.bytes);
|
|
47962
|
+
(0, import_node_fs70.writeFileSync)(
|
|
47963
|
+
import_node_path70.default.join(pending, "sdk-live-slots.bin"),
|
|
47964
|
+
artifact.sdk.binding.liveSlots
|
|
47965
|
+
);
|
|
47966
|
+
}
|
|
47950
47967
|
(0, import_node_fs70.writeFileSync)(
|
|
47951
47968
|
import_node_path70.default.join(pending, "artifact.json"),
|
|
47952
47969
|
JSON.stringify({
|
|
@@ -47956,12 +47973,13 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
47956
47973
|
sdk: artifact.sdk && {
|
|
47957
47974
|
key: artifact.sdk.key,
|
|
47958
47975
|
sha256: artifact.sdk.sha256,
|
|
47959
|
-
binding: artifact.sdk.binding.sha256
|
|
47976
|
+
binding: artifact.sdk.binding.sha256,
|
|
47977
|
+
liveSlots: (0, import_node_crypto45.createHash)("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
|
|
47960
47978
|
}
|
|
47961
47979
|
})
|
|
47962
47980
|
);
|
|
47963
47981
|
const outputs = ["app.wasm", "icu.gz"];
|
|
47964
|
-
if (artifact.sdk) outputs.push("sdk-binding.bin");
|
|
47982
|
+
if (artifact.sdk) outputs.push("sdk-binding.bin", "sdk-live-slots.bin");
|
|
47965
47983
|
for (const file of [...outputs, "artifact.json"]) {
|
|
47966
47984
|
(0, import_node_fs70.renameSync)(import_node_path70.default.join(pending, file), import_node_path70.default.join(directory2, file));
|
|
47967
47985
|
}
|
|
@@ -48885,10 +48903,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
48885
48903
|
import_node_path70.default.join(staged, "packages/peachsim/sdk/ios")
|
|
48886
48904
|
);
|
|
48887
48905
|
if (moduleRestructured || sdkRestructured || hadKey === null) {
|
|
48888
|
-
(
|
|
48889
|
-
(0, import_node_fs70.rmSync)(import_node_path70.default.join(slot, WASM_TRIPLE, "release", "description.json"), {
|
|
48890
|
-
force: true
|
|
48891
|
-
});
|
|
48906
|
+
retireSwiftBuildPlan(slot);
|
|
48892
48907
|
}
|
|
48893
48908
|
for (const file of swiftModuleInputFiles(moduleRoot)) {
|
|
48894
48909
|
if (!file.startsWith("../")) continue;
|
|
@@ -48953,7 +48968,12 @@ ${args.prebuilt.modules}
|
|
|
48953
48968
|
${statOf(import_node_path70.default.join(args.prebuilt.modules, entry))}`);
|
|
48954
48969
|
return hash.digest("hex");
|
|
48955
48970
|
}
|
|
48971
|
+
function retireSwiftBuildPlan(scratch2) {
|
|
48972
|
+
(0, import_node_fs70.rmSync)(import_node_path70.default.join(scratch2, "release.yaml"), { force: true });
|
|
48973
|
+
(0, import_node_fs70.rmSync)(import_node_path70.default.join(scratch2, WASM_TRIPLE, "release", "description.json"), { force: true });
|
|
48974
|
+
}
|
|
48956
48975
|
function retireSwiftLinkTargets(retired) {
|
|
48976
|
+
retireSwiftBuildPlan(retired);
|
|
48957
48977
|
for (const name3 of [
|
|
48958
48978
|
"ModuleCache",
|
|
48959
48979
|
"peach-product-checkpoints",
|
|
@@ -48985,20 +49005,21 @@ function retireStaleSwiftLink(root, baseStamp, stamp, preserveClangObjects = fal
|
|
|
48985
49005
|
} catch (error) {
|
|
48986
49006
|
if (!vanished(error)) throw error;
|
|
48987
49007
|
}
|
|
48988
|
-
(0, import_node_fs70.mkdirSync)(root, { recursive: true });
|
|
48989
49008
|
const combined = `${baseStamp}
|
|
48990
|
-
${stamp}`;
|
|
48991
|
-
(
|
|
48992
|
-
`);
|
|
49009
|
+
${preserveClangObjects ? "swift-targets-v2\n" : ""}${stamp}`;
|
|
49010
|
+
if (previous === combined) return false;
|
|
48993
49011
|
const retired = import_node_path70.default.join(root, ".build");
|
|
48994
|
-
|
|
49012
|
+
const hadBuild = (0, import_node_fs70.existsSync)(retired);
|
|
48995
49013
|
const [previousBase] = previous?.split("\n") ?? [];
|
|
48996
|
-
if (
|
|
48997
|
-
|
|
48998
|
-
|
|
49014
|
+
if (hadBuild) {
|
|
49015
|
+
if (preserveClangObjects && previousBase === baseStamp)
|
|
49016
|
+
retireSwiftLinkTargets(retired);
|
|
49017
|
+
else (0, import_node_fs70.rmSync)(retired, { recursive: true, force: true });
|
|
48999
49018
|
}
|
|
49000
|
-
(0, import_node_fs70.
|
|
49001
|
-
|
|
49019
|
+
(0, import_node_fs70.mkdirSync)(root, { recursive: true });
|
|
49020
|
+
(0, import_node_fs70.writeFileSync)(receipt, `${combined}
|
|
49021
|
+
`);
|
|
49022
|
+
return hadBuild;
|
|
49002
49023
|
}
|
|
49003
49024
|
async function compileSwiftProjectUnit(input, options2) {
|
|
49004
49025
|
for (let attempt = 1; ; attempt++) {
|
|
@@ -50025,7 +50046,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
50025
50046
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
50026
50047
|
MULTI_MANIFEST_VERSION = 76;
|
|
50027
50048
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
50028
|
-
compilerSourceDigest = true ? "
|
|
50049
|
+
compilerSourceDigest = true ? "65c18cf90c6d5327457dfe6ae7fe052f0acac7fb60d8df897cbd58095efd6c7f" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
50029
50050
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
50030
50051
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
50031
50052
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -105407,7 +105428,7 @@ var init_nitro_superset = __esm({
|
|
|
105407
105428
|
init_nitroContract();
|
|
105408
105429
|
init_swift_standin_digest();
|
|
105409
105430
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
105410
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
105431
|
+
NITRO_COMPILER_DIGEST = true ? "3bb92dce458a79e08d4cfa92d7c065894bfc73a21379d325f3a4bb95ac8d1c4b" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
105411
105432
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
105412
105433
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
105413
105434
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-D5RGF7UF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-YCHKJV7N.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-AAQ2DFPN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-NRIEADO4.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-HM2MXBOG.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-MWBFM6BI.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2725 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|