peachsim 0.1.2687 → 0.1.2689
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 +30 -28
- 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-BE7VEDSF.mjs → acorn-AK33HM6U.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-AJHJ5UGR.mjs → chunk-3P2PXDAA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MYF7H4T3.mjs → chunk-43MLLKBY.mjs} +15 -21
- package/dist-lib/esm-chunks/{chunk-XSWSFLCH.mjs → chunk-4AVYJY57.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-UNG7WKXZ.mjs → chunk-63AVADYP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N3SUC6GG.mjs → chunk-6VXRFNWN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CNOVJUMX.mjs → chunk-6ZOJHY7N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EIQTPCBX.mjs → chunk-B2V6VQF4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FX2KB6MR.mjs → chunk-DBS6IBYN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KRWYJZZB.mjs → chunk-EN52IJHF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RUDDQD4G.mjs → chunk-FPYHVMB5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IKCG6KXB.mjs → chunk-KHBU2LR4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3EZKBDTR.mjs → chunk-LZYR7ZMM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XWEAQKRJ.mjs → chunk-OO6D27TE.mjs} +71 -60
- package/dist-lib/esm-chunks/{chunk-GCA4J72X.mjs → chunk-PMGSVLOD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GJUKHDT3.mjs → chunk-PMOT2K7W.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LNVYS36G.mjs → chunk-QZLWJLMA.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-4FMCHPJM.mjs → chunk-S67TTMU7.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-FADOBKYX.mjs → chunk-SP7K4OG3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HKXJSSWV.mjs → chunk-TZ5HWPHI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QASQ5AOP.mjs → chunk-TZKKIPK7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7YPYVPQH.mjs → chunk-URRVRAYX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-O2ZPP4R2.mjs → chunk-V7YGTZIH.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-QYYEW64U.mjs → chunk-VE2UKUSG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FYSTES3M.mjs → chunk-W367O5CY.mjs} +3 -3
- package/dist-lib/esm-chunks/{metro-layout-parser-MCIJL26T.mjs → metro-layout-parser-P3HTLHV4.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-HX6AVUXE.mjs → swift-package-prebuilt-4QU3YDI5.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-RG3Z3HFE.mjs → swift-sdk-app-module-NSDCR32Y.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-XVX7ZLIK.mjs → swift-sdk-image-N4YBIJIH.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-2E6AI2QU.mjs → swift-sdk-image-producer-IUBLMTML.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +30 -28
- 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 +38 -34
- package/dist-lib/host/fetch-proxy-handler.cjs +96 -80
- 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 +87 -87
- package/dist-lib/public-origins-lib.json +65 -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 +38 -34
- package/dist-lib/swift-compile.cjs +27 -25
- 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/host/app-package-handler.ts +4 -1
- package/src/swift-compile.ts +24 -24
- package/src/swift-host.ts +4 -4
- package/src/swift-sdk-image-recipe.ts +1 -0
- package/src/swift-sdk-image.ts +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2689 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
swiftSdkImageFile,
|
|
15
15
|
swiftSdkImageKey,
|
|
16
16
|
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-
|
|
17
|
+
} from "./chunk-43MLLKBY.mjs";
|
|
18
|
+
import "./chunk-OO6D27TE.mjs";
|
|
19
|
+
import "./chunk-S67TTMU7.mjs";
|
|
20
|
+
import "./chunk-4AVYJY57.mjs";
|
|
21
|
+
import "./chunk-PMOT2K7W.mjs";
|
|
22
|
+
import "./chunk-VE2UKUSG.mjs";
|
|
23
|
+
import "./chunk-V7YGTZIH.mjs";
|
|
24
|
+
import "./chunk-TZ5HWPHI.mjs";
|
|
25
|
+
import "./chunk-EN52IJHF.mjs";
|
|
26
|
+
import "./chunk-LZYR7ZMM.mjs";
|
|
27
|
+
import "./chunk-B2V6VQF4.mjs";
|
|
28
|
+
import "./chunk-63AVADYP.mjs";
|
|
29
|
+
import "./chunk-FPYHVMB5.mjs";
|
|
30
|
+
import "./chunk-DBS6IBYN.mjs";
|
|
31
|
+
import "./chunk-SP7K4OG3.mjs";
|
|
32
32
|
export {
|
|
33
33
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
34
34
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2689 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S67TTMU7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TZ5HWPHI.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DBS6IBYN.mjs";
|
|
12
|
+
import "./chunk-SP7K4OG3.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.2689 | (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 ? "feb14f5aa73230a2601e7277c92d759b6e4187e82645554c01c640c934fec8c6" : 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 ? "1cc7a6f51f4e9900b8d04010029bbbd9111f7f5d56645fc32e739886806b82c7" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
19708
19708
|
}
|
|
19709
19709
|
var import_node_crypto18;
|
|
19710
19710
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -39438,13 +39438,14 @@ var init_swift_root_lock = __esm({
|
|
|
39438
39438
|
});
|
|
39439
39439
|
|
|
39440
39440
|
// src/swift-sdk-image-recipe.ts
|
|
39441
|
-
var import_node_crypto37, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
39441
|
+
var import_node_crypto37, SWIFT_SDK_IMAGE_VERSION, SOURCE_SWIFT_FRAMEWORK_RECIPE, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
39442
39442
|
var init_swift_sdk_image_recipe = __esm({
|
|
39443
39443
|
"src/swift-sdk-image-recipe.ts"() {
|
|
39444
39444
|
"use strict";
|
|
39445
39445
|
import_node_crypto37 = require("node:crypto");
|
|
39446
39446
|
init_wasm_optimize();
|
|
39447
39447
|
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
39448
|
+
SOURCE_SWIFT_FRAMEWORK_RECIPE = "swift-framework/v3";
|
|
39448
39449
|
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
39449
39450
|
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto37.createHash)("sha256").update(`swift-sdk-image
|
|
39450
39451
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
@@ -39783,7 +39784,8 @@ function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
|
39783
39784
|
const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
39784
39785
|
return (0, import_node_crypto39.createHash)("sha256").update(`swift-sdk-image
|
|
39785
39786
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
39786
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(
|
|
39787
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(distribution ? "" : `${SOURCE_SWIFT_FRAMEWORK_RECIPE}
|
|
39788
|
+
`).update(inputs2).update(products.length === 0 ? "" : `
|
|
39787
39789
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
39788
39790
|
}
|
|
39789
39791
|
function swiftSdkImageEntry(key2, scopedLookups) {
|
|
@@ -44321,7 +44323,8 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
44321
44323
|
return { libraries, executables };
|
|
44322
44324
|
}
|
|
44323
44325
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
44324
|
-
|
|
44326
|
+
const recipe2 = swiftDistributionAt(moduleRoot) ? "swift-framework/v2" : SOURCE_SWIFT_FRAMEWORK_RECIPE;
|
|
44327
|
+
return (0, import_node_crypto45.createHash)("sha256").update(`${recipe2}\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
44325
44328
|
}
|
|
44326
44329
|
function sameStringList(left, right) {
|
|
44327
44330
|
if (left === right) return true;
|
|
@@ -48272,8 +48275,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
48272
48275
|
const frameworkTmp = import_node_path70.default.join(scratch2, "peach-compiler-tmp");
|
|
48273
48276
|
(0, import_node_fs70.mkdirSync)(frameworkTmp, { recursive: true });
|
|
48274
48277
|
const jobs = swiftCompilerJobs();
|
|
48275
|
-
const targetJobs =
|
|
48276
|
-
const driverJobs =
|
|
48278
|
+
const targetJobs = jobs >= 4 ? 2 : 1;
|
|
48279
|
+
const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
|
|
48277
48280
|
await runCompiler(
|
|
48278
48281
|
args.swift,
|
|
48279
48282
|
[
|
|
@@ -48295,23 +48298,21 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
48295
48298
|
args.sdk,
|
|
48296
48299
|
"-c",
|
|
48297
48300
|
"release",
|
|
48298
|
-
|
|
48299
|
-
|
|
48300
|
-
|
|
48301
|
-
|
|
48302
|
-
|
|
48303
|
-
|
|
48304
|
-
|
|
48305
|
-
|
|
48306
|
-
|
|
48307
|
-
|
|
48308
|
-
|
|
48309
|
-
|
|
48310
|
-
|
|
48311
|
-
|
|
48312
|
-
// the release link strips all debug info, so none is generated.
|
|
48313
|
-
// -num-threads fixed across caller core caps so llbuild does not rebuild
|
|
48314
|
-
// every framework target when callers alternate --cores.
|
|
48301
|
+
"-Xswiftc",
|
|
48302
|
+
unoptimized ? "-Onone" : "-Osize",
|
|
48303
|
+
"-Xswiftc",
|
|
48304
|
+
"-no-whole-module-optimization",
|
|
48305
|
+
"-Xswiftc",
|
|
48306
|
+
"-incremental",
|
|
48307
|
+
"-Xswiftc",
|
|
48308
|
+
"-enable-batch-mode",
|
|
48309
|
+
// each batch repeats the same framework diagnostics.
|
|
48310
|
+
...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
|
|
48311
|
+
"-Xswiftc",
|
|
48312
|
+
"-j",
|
|
48313
|
+
"-Xswiftc",
|
|
48314
|
+
String(driverJobs),
|
|
48315
|
+
// the release link strips all debug info, so none is generated.
|
|
48315
48316
|
"-Xswiftc",
|
|
48316
48317
|
"-gnone",
|
|
48317
48318
|
"-Xcc",
|
|
@@ -48321,7 +48322,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
48321
48322
|
"-Xswiftc",
|
|
48322
48323
|
"-num-threads",
|
|
48323
48324
|
"-Xswiftc",
|
|
48324
|
-
|
|
48325
|
+
"1",
|
|
48325
48326
|
...swiftReproducibleBuildFlags([
|
|
48326
48327
|
[import_node_path70.default.dirname(args.toolchainBin), "toolchain"],
|
|
48327
48328
|
[args.moduleRoot, "framework"],
|
|
@@ -49597,6 +49598,7 @@ var init_swift_compile = __esm({
|
|
|
49597
49598
|
init_swift_project_user();
|
|
49598
49599
|
init_swift_reproducible();
|
|
49599
49600
|
init_swift_root_lock();
|
|
49601
|
+
init_swift_sdk_image_recipe();
|
|
49600
49602
|
init_swift_sdk_surface();
|
|
49601
49603
|
init_swift_shared_sdk();
|
|
49602
49604
|
init_swift_source_closure();
|
|
@@ -49791,7 +49793,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
49791
49793
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
49792
49794
|
MULTI_MANIFEST_VERSION = 76;
|
|
49793
49795
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
49794
|
-
compilerSourceDigest = true ? "
|
|
49796
|
+
compilerSourceDigest = true ? "954395d95b11c219514be98b0e601b2c1383cfc671f49ea869c85646d527594e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
49795
49797
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
49796
49798
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
49797
49799
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -105172,7 +105174,7 @@ var init_nitro_superset = __esm({
|
|
|
105172
105174
|
init_nitroContract();
|
|
105173
105175
|
init_swift_standin_digest();
|
|
105174
105176
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
105175
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
105177
|
+
NITRO_COMPILER_DIGEST = true ? "6950cefe13e6369d4b0f20fa6390bc7154ccb8e24f7fb73e2712b0371e815bb8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
105176
105178
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
105177
105179
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
105178
105180
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2689 | (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.2689 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-EN52IJHF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-QZLWJLMA.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-B2V6VQF4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-KHBU2LR4.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-DBS6IBYN.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-SP7K4OG3.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.2689 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2689 | (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;
|
|
@@ -5456,7 +5456,8 @@ function resolveHostResourcePath(name3) {
|
|
|
5456
5456
|
return bundledFiles.get(name3) ?? import_node_path19.default.join(cacheDir(), "staged", name3);
|
|
5457
5457
|
}
|
|
5458
5458
|
function serveAppPackageResource(req, res) {
|
|
5459
|
-
const
|
|
5459
|
+
const pathname = new URL(req.url ?? "/", "http://localhost").pathname;
|
|
5460
|
+
const resource = routes.get(pathname);
|
|
5460
5461
|
if (!resource) return false;
|
|
5461
5462
|
const corsHeaders = {
|
|
5462
5463
|
"Access-Control-Allow-Origin": req.headers.origin ?? "*",
|
|
@@ -5486,7 +5487,8 @@ function serveAppPackageResource(req, res) {
|
|
|
5486
5487
|
sendFileWithRanges(req, res, filePath, stat2.size, {
|
|
5487
5488
|
...corsHeaders,
|
|
5488
5489
|
"Content-Type": resource.contentType,
|
|
5489
|
-
"Access-Control-Expose-Headers": "Content-Range, Content-Length, Accept-Ranges"
|
|
5490
|
+
"Access-Control-Expose-Headers": "Content-Range, Content-Length, Accept-Ranges",
|
|
5491
|
+
.../^\/__peach\/swift(?:-sdk)?\/([a-f0-9]{64})\.wasm$/.exec(pathname)?.[1] === resource.file && { "Cache-Control": "public, max-age=31536000, immutable" }
|
|
5490
5492
|
});
|
|
5491
5493
|
return true;
|
|
5492
5494
|
}
|
|
@@ -6175,7 +6177,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
6175
6177
|
|
|
6176
6178
|
// src/swift-compiler-digest.ts
|
|
6177
6179
|
function swiftArchiveCompilerDigestValue() {
|
|
6178
|
-
return true ? "
|
|
6180
|
+
return true ? "feb14f5aa73230a2601e7277c92d759b6e4187e82645554c01c640c934fec8c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
6179
6181
|
}
|
|
6180
6182
|
var import_node_crypto10, import_node_fs25, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
6181
6183
|
var init_swift_compiler_digest = __esm({
|
|
@@ -6326,7 +6328,7 @@ var init_swift_standin_digest = __esm({
|
|
|
6326
6328
|
|
|
6327
6329
|
// src/expo-native-compiler-digest.ts
|
|
6328
6330
|
function expoNativeCompilerDigestValue() {
|
|
6329
|
-
return true ? "
|
|
6331
|
+
return true ? "1cc7a6f51f4e9900b8d04010029bbbd9111f7f5d56645fc32e739886806b82c7" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
6330
6332
|
}
|
|
6331
6333
|
var import_node_crypto12;
|
|
6332
6334
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -44209,13 +44211,14 @@ var init_swift_root_lock = __esm({
|
|
|
44209
44211
|
});
|
|
44210
44212
|
|
|
44211
44213
|
// src/swift-sdk-image-recipe.ts
|
|
44212
|
-
var import_node_crypto42, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
44214
|
+
var import_node_crypto42, SWIFT_SDK_IMAGE_VERSION, SOURCE_SWIFT_FRAMEWORK_RECIPE, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
44213
44215
|
var init_swift_sdk_image_recipe = __esm({
|
|
44214
44216
|
"src/swift-sdk-image-recipe.ts"() {
|
|
44215
44217
|
"use strict";
|
|
44216
44218
|
import_node_crypto42 = require("node:crypto");
|
|
44217
44219
|
init_wasm_optimize();
|
|
44218
44220
|
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
44221
|
+
SOURCE_SWIFT_FRAMEWORK_RECIPE = "swift-framework/v3";
|
|
44219
44222
|
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
44220
44223
|
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto42.createHash)("sha256").update(`swift-sdk-image
|
|
44221
44224
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
@@ -44554,7 +44557,8 @@ function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
|
44554
44557
|
const inputs2 = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
44555
44558
|
return (0, import_node_crypto44.createHash)("sha256").update(`swift-sdk-image
|
|
44556
44559
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
44557
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(
|
|
44560
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(distribution ? "" : `${SOURCE_SWIFT_FRAMEWORK_RECIPE}
|
|
44561
|
+
`).update(inputs2).update(products.length === 0 ? "" : `
|
|
44558
44562
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
44559
44563
|
}
|
|
44560
44564
|
function swiftSdkImageEntry(key2, scopedLookups) {
|
|
@@ -49080,7 +49084,8 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
49080
49084
|
return { libraries, executables };
|
|
49081
49085
|
}
|
|
49082
49086
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
49083
|
-
|
|
49087
|
+
const recipe2 = swiftDistributionAt(moduleRoot) ? "swift-framework/v2" : SOURCE_SWIFT_FRAMEWORK_RECIPE;
|
|
49088
|
+
return (0, import_node_crypto50.createHash)("sha256").update(`${recipe2}\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
49084
49089
|
}
|
|
49085
49090
|
function sameStringList(left, right) {
|
|
49086
49091
|
if (left === right) return true;
|
|
@@ -53031,8 +53036,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
53031
53036
|
const frameworkTmp = import_node_path84.default.join(scratch2, "peach-compiler-tmp");
|
|
53032
53037
|
(0, import_node_fs82.mkdirSync)(frameworkTmp, { recursive: true });
|
|
53033
53038
|
const jobs = swiftCompilerJobs();
|
|
53034
|
-
const targetJobs =
|
|
53035
|
-
const driverJobs =
|
|
53039
|
+
const targetJobs = jobs >= 4 ? 2 : 1;
|
|
53040
|
+
const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
|
|
53036
53041
|
await runCompiler(
|
|
53037
53042
|
args.swift,
|
|
53038
53043
|
[
|
|
@@ -53054,23 +53059,21 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
53054
53059
|
args.sdk,
|
|
53055
53060
|
"-c",
|
|
53056
53061
|
"release",
|
|
53057
|
-
|
|
53058
|
-
|
|
53059
|
-
|
|
53060
|
-
|
|
53061
|
-
|
|
53062
|
-
|
|
53063
|
-
|
|
53064
|
-
|
|
53065
|
-
|
|
53066
|
-
|
|
53067
|
-
|
|
53068
|
-
|
|
53069
|
-
|
|
53070
|
-
|
|
53071
|
-
// the release link strips all debug info, so none is generated.
|
|
53072
|
-
// -num-threads fixed across caller core caps so llbuild does not rebuild
|
|
53073
|
-
// every framework target when callers alternate --cores.
|
|
53062
|
+
"-Xswiftc",
|
|
53063
|
+
unoptimized ? "-Onone" : "-Osize",
|
|
53064
|
+
"-Xswiftc",
|
|
53065
|
+
"-no-whole-module-optimization",
|
|
53066
|
+
"-Xswiftc",
|
|
53067
|
+
"-incremental",
|
|
53068
|
+
"-Xswiftc",
|
|
53069
|
+
"-enable-batch-mode",
|
|
53070
|
+
// each batch repeats the same framework diagnostics.
|
|
53071
|
+
...unoptimized ? [] : ["-Xswiftc", "-suppress-warnings"],
|
|
53072
|
+
"-Xswiftc",
|
|
53073
|
+
"-j",
|
|
53074
|
+
"-Xswiftc",
|
|
53075
|
+
String(driverJobs),
|
|
53076
|
+
// the release link strips all debug info, so none is generated.
|
|
53074
53077
|
"-Xswiftc",
|
|
53075
53078
|
"-gnone",
|
|
53076
53079
|
"-Xcc",
|
|
@@ -53080,7 +53083,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
53080
53083
|
"-Xswiftc",
|
|
53081
53084
|
"-num-threads",
|
|
53082
53085
|
"-Xswiftc",
|
|
53083
|
-
|
|
53086
|
+
"1",
|
|
53084
53087
|
...swiftReproducibleBuildFlags([
|
|
53085
53088
|
[import_node_path84.default.dirname(args.toolchainBin), "toolchain"],
|
|
53086
53089
|
[args.moduleRoot, "framework"],
|
|
@@ -54356,6 +54359,7 @@ var init_swift_compile = __esm({
|
|
|
54356
54359
|
init_swift_project_user();
|
|
54357
54360
|
init_swift_reproducible();
|
|
54358
54361
|
init_swift_root_lock();
|
|
54362
|
+
init_swift_sdk_image_recipe();
|
|
54359
54363
|
init_swift_sdk_surface();
|
|
54360
54364
|
init_swift_shared_sdk();
|
|
54361
54365
|
init_swift_source_closure();
|
|
@@ -54550,7 +54554,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
54550
54554
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
54551
54555
|
MULTI_MANIFEST_VERSION = 76;
|
|
54552
54556
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
54553
|
-
compilerSourceDigest = true ? "
|
|
54557
|
+
compilerSourceDigest = true ? "954395d95b11c219514be98b0e601b2c1383cfc671f49ea869c85646d527594e" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
54554
54558
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
54555
54559
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
54556
54560
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -104020,12 +104024,12 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
104020
104024
|
const primary = artifact.hash === address;
|
|
104021
104025
|
const bytes = primary ? artifact.bytes : artifact.parts?.get(address);
|
|
104022
104026
|
if (!bytes) continue;
|
|
104027
|
+
const digest3 = primary ? swiftArtifactContentDigest(bytes) : address;
|
|
104023
104028
|
res.setHeader("access-control-allow-origin", "*");
|
|
104024
104029
|
res.setHeader("access-control-expose-headers", SWIFT_ARTIFACT_SHA256_HEADER);
|
|
104025
|
-
res.setHeader(
|
|
104026
|
-
|
|
104027
|
-
|
|
104028
|
-
);
|
|
104030
|
+
res.setHeader(SWIFT_ARTIFACT_SHA256_HEADER, digest3);
|
|
104031
|
+
if (address === digest3)
|
|
104032
|
+
res.setHeader("cache-control", "public, max-age=31536000, immutable");
|
|
104029
104033
|
res.setHeader("content-type", "application/wasm");
|
|
104030
104034
|
res.setHeader("vary", "accept-encoding");
|
|
104031
104035
|
if (acceptsBr) {
|
|
@@ -127015,7 +127019,7 @@ var init_nitro_superset = __esm({
|
|
|
127015
127019
|
init_nitroContract();
|
|
127016
127020
|
init_swift_standin_digest();
|
|
127017
127021
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
127018
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
127022
|
+
NITRO_COMPILER_DIGEST = true ? "6950cefe13e6369d4b0f20fa6390bc7154ccb8e24f7fb73e2712b0371e815bb8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
127019
127023
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
127020
127024
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
127021
127025
|
published3 = /* @__PURE__ */ new Map();
|