peachsim 0.1.2701 → 0.1.2703
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/cli/commands/package.ts +5 -5
- package/cli/commands/perf-native.ts +100 -58
- package/cli/package-duo-device.ts +24 -0
- 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 +117 -10
- 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-XYDEAJWX.mjs → acorn-43Q5KRLL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-JAQLYGVS.mjs → chunk-3XOKPZGS.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-43X64A24.mjs → chunk-42K537BB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KXQ6YPZJ.mjs → chunk-4BMF44KC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2GFDQ2RY.mjs → chunk-4N7DHUC6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LGFEIKDM.mjs → chunk-B3AGCWOJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YLVJRH27.mjs → chunk-DMHSTMXP.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-BGLOJMLA.mjs → chunk-F3RRYYLF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CMBYCFEF.mjs → chunk-GUR2WE4P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WWK6GMXB.mjs → chunk-H5ELVRKG.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-EBM3VDWK.mjs → chunk-HFPHOP7B.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FW52XLFO.mjs → chunk-HXDBQN66.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A5WFZ2XX.mjs → chunk-JZ5XJAXQ.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-JYSDQDL2.mjs → chunk-K2OOA65C.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Q5DBRTKN.mjs → chunk-KP2NMWWX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NFVR346F.mjs → chunk-NFKOUEBN.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-OGJEDE5E.mjs → chunk-NNWFER2D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OPTGHXWZ.mjs → chunk-ODCTJTKL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DLRANZB6.mjs → chunk-SG3PGG3S.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W6TXFCRI.mjs → chunk-SMBH32NF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SSR5S6R3.mjs → chunk-SOAH7CMP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-STBRFFEL.mjs → chunk-TT3PYTWA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KGCR7O7F.mjs → chunk-UJSEYJ2F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DDGDFU4G.mjs → chunk-VSD7SG36.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-5FIKQ7F4.mjs → chunk-YF5O3ABY.mjs} +128 -18
- package/dist-lib/esm-chunks/{metro-layout-parser-NP3MSVX4.mjs → metro-layout-parser-UY33H5NJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-SVIMOFLA.mjs → swift-package-prebuilt-H3JZE3QC.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-A6YJ4KNJ.mjs → swift-sdk-app-module-FZWIOWZN.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-UYJ3VFF6.mjs → swift-sdk-image-7WNTYEJX.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-7EWPBKNW.mjs → swift-sdk-image-producer-MJD3U6GW.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +117 -10
- 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 +392 -14
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +392 -14
- package/dist-lib/swift-compile.cjs +111 -4
- 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/{core-abi → shared}/value/kernel-client.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/kernel/kernel.d.ts +1 -1
- package/package.json +1 -1
- package/src/one-native-controls-package.ts +306 -5
- package/src/swift-compile.ts +147 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2703 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
6
|
withSwiftRootLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JZ5XJAXQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
withoutImportedSdkEnumForwards,
|
|
56
56
|
withoutSwiftDeclarations,
|
|
57
57
|
writeBuildFile
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-DMHSTMXP.mjs";
|
|
59
59
|
import {
|
|
60
60
|
SWIFT_AUTOLINK_LINKER,
|
|
61
61
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
wasmThreadLinkFlags,
|
|
73
73
|
windowAdmission,
|
|
74
74
|
writeSwiftAutolinkLinker
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-TT3PYTWA.mjs";
|
|
76
76
|
import {
|
|
77
77
|
SWIFT_BINARY_TREES_DIR,
|
|
78
78
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
isSwiftResourcePath,
|
|
88
88
|
isSwiftSourceLinkGraph,
|
|
89
89
|
swiftProjectFilesProblems
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-SG3PGG3S.mjs";
|
|
91
91
|
import {
|
|
92
92
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
93
93
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -110,19 +110,22 @@ import {
|
|
|
110
110
|
swiftPackagePartition,
|
|
111
111
|
swiftTargetModuleName,
|
|
112
112
|
withoutGlogModuleMap
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-B3AGCWOJ.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-UJSEYJ2F.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-SMBH32NF.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-HFPHOP7B.mjs";
|
|
123
123
|
|
|
124
124
|
// src/swift-compile.ts
|
|
125
|
-
import {
|
|
125
|
+
import {
|
|
126
|
+
spawn as spawn2,
|
|
127
|
+
spawnSync as spawnSync3
|
|
128
|
+
} from "node:child_process";
|
|
126
129
|
import { createHash as createHash16, randomUUID as randomUUID4 } from "node:crypto";
|
|
127
130
|
import {
|
|
128
131
|
chmodSync as chmodSync3,
|
|
@@ -14360,7 +14363,7 @@ async function compileGuestLink(options) {
|
|
|
14360
14363
|
};
|
|
14361
14364
|
const sdk = options.sdkImage;
|
|
14362
14365
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14363
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14366
|
+
const sdkObjects = (await import("./swift-sdk-image-7WNTYEJX.mjs")).readSwiftSdkManifestIndex(
|
|
14364
14367
|
sdk
|
|
14365
14368
|
).guestObjects;
|
|
14366
14369
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14659,7 +14662,7 @@ async function compileGuestLink(options) {
|
|
|
14659
14662
|
readSwiftSdkUsage,
|
|
14660
14663
|
swiftAppModuleThunkSection,
|
|
14661
14664
|
swiftSdkProjectionSpans
|
|
14662
|
-
} = await import("./swift-sdk-app-module-
|
|
14665
|
+
} = await import("./swift-sdk-app-module-FZWIOWZN.mjs");
|
|
14663
14666
|
const project = options.project;
|
|
14664
14667
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14665
14668
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16621,7 +16624,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16621
16624
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16622
16625
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16623
16626
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16624
|
-
var compilerSourceDigest = true ? "
|
|
16627
|
+
var compilerSourceDigest = true ? "f8823b39a6f101e159cffdd4e1598d7edb8645267453be7613ef42f7c3ee4154" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16625
16628
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16626
16629
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16627
16630
|
}
|
|
@@ -20380,6 +20383,93 @@ function readFrameworkProductsReceipt(scratch, receiptKey) {
|
|
|
20380
20383
|
objcHeaders: new Map(parsed.objcHeaders)
|
|
20381
20384
|
};
|
|
20382
20385
|
}
|
|
20386
|
+
function resolveBunBinary() {
|
|
20387
|
+
if (path23.basename(process.execPath).startsWith("bun")) return process.execPath;
|
|
20388
|
+
for (const candidate of [
|
|
20389
|
+
path23.join(os3.homedir(), "builders/bun/bin/bun"),
|
|
20390
|
+
path23.join(os3.homedir(), ".bun/bin/bun"),
|
|
20391
|
+
"/opt/homebrew/bin/bun",
|
|
20392
|
+
"/usr/local/bin/bun",
|
|
20393
|
+
"bun"
|
|
20394
|
+
]) {
|
|
20395
|
+
const probe = spawnSync3(candidate, ["--version"], { stdio: "ignore" });
|
|
20396
|
+
if (probe.status === 0) return candidate;
|
|
20397
|
+
}
|
|
20398
|
+
return null;
|
|
20399
|
+
}
|
|
20400
|
+
function frameworkHeaderContext(moduleRoot, products) {
|
|
20401
|
+
const sources = path23.join(moduleRoot, "Sources");
|
|
20402
|
+
const files = [];
|
|
20403
|
+
if (existsSync9(sources)) {
|
|
20404
|
+
for (const entry of readdirSync4(sources, { recursive: true, withFileTypes: true })) {
|
|
20405
|
+
if (!entry.isFile()) continue;
|
|
20406
|
+
const rel = path23.relative(sources, path23.join(entry.parentPath, entry.name));
|
|
20407
|
+
if (/\.(?:h|hh|hpp|hxx|inc|def|modulemap|apinotes)$/.test(rel)) files.push(rel);
|
|
20408
|
+
}
|
|
20409
|
+
}
|
|
20410
|
+
return createHash16("sha256").update(JSON.stringify([[...products].sort(), files.sort()])).digest("hex");
|
|
20411
|
+
}
|
|
20412
|
+
function shellQuote(value) {
|
|
20413
|
+
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
20414
|
+
}
|
|
20415
|
+
function prepareFrameworkCompileCache(scratch, moduleRoot, toolchainBin, sdkOptions, products) {
|
|
20416
|
+
const launcher = path23.join(moduleRoot, "scripts/build-cache-launcher.ts");
|
|
20417
|
+
if (!existsSync9(launcher)) return null;
|
|
20418
|
+
const bunBin = resolveBunBinary();
|
|
20419
|
+
if (!bunBin) return null;
|
|
20420
|
+
const cacheRoot = path23.join(swiftCacheDir(), "swift-distribution-compile-cache");
|
|
20421
|
+
mkdirSync7(cacheRoot, { recursive: true });
|
|
20422
|
+
const wrapperDir = path23.join(scratch, "launch");
|
|
20423
|
+
mkdirSync7(wrapperDir, { recursive: true });
|
|
20424
|
+
const wrapper = path23.join(wrapperDir, "swift-frontend");
|
|
20425
|
+
const statsFile = path23.join(scratch, `compile-cache-stats-${process.pid}.jsonl`);
|
|
20426
|
+
rmSync7(statsFile, { force: true });
|
|
20427
|
+
const sdkFlagIndex = sdkOptions.indexOf("--swift-sdks-path");
|
|
20428
|
+
const sdkViewDir = sdkFlagIndex >= 0 && sdkFlagIndex + 1 < sdkOptions.length ? sdkOptions[sdkFlagIndex + 1] : void 0;
|
|
20429
|
+
const pathMapEntries = [["$SLOT_ROOT", scratch]];
|
|
20430
|
+
if (sdkViewDir) pathMapEntries.push(["$SDK_VIEW", sdkViewDir]);
|
|
20431
|
+
const pathMap = JSON.stringify(pathMapEntries);
|
|
20432
|
+
const context = frameworkHeaderContext(moduleRoot, products);
|
|
20433
|
+
const script = [
|
|
20434
|
+
"#!/bin/sh",
|
|
20435
|
+
`export SWIFT_SDK_COMPILE_CACHE=${shellQuote(cacheRoot)}`,
|
|
20436
|
+
"export SWIFT_SDK_COMPILE_CACHE_REUSE=1",
|
|
20437
|
+
`export SWIFT_SDK_COMPILE_CACHE_PATH_MAP=${shellQuote(pathMap)}`,
|
|
20438
|
+
`export SWIFT_SDK_COMPILE_CACHE_CONTEXT=${shellQuote(context)}`,
|
|
20439
|
+
`export SWIFT_SDK_COMPILE_CACHE_STATS=${shellQuote(statsFile)}`,
|
|
20440
|
+
`exec ${shellQuote(bunBin)} ${shellQuote(launcher)} ${shellQuote(path23.join(toolchainBin, "swift-frontend"))} "$@"`,
|
|
20441
|
+
""
|
|
20442
|
+
].join("\n");
|
|
20443
|
+
const partial = `${wrapper}.${process.pid}.${randomUUID4()}.partial`;
|
|
20444
|
+
writeFileSync7(partial, script, { mode: 493 });
|
|
20445
|
+
chmodSync3(partial, 493);
|
|
20446
|
+
renameSync5(partial, wrapper);
|
|
20447
|
+
return { wrapper, statsFile };
|
|
20448
|
+
}
|
|
20449
|
+
function reportFrameworkCompileCacheStats(scratch, statsFile) {
|
|
20450
|
+
if (!existsSync9(statsFile)) return;
|
|
20451
|
+
let hits = 0;
|
|
20452
|
+
let misses = 0;
|
|
20453
|
+
let savedMs = 0;
|
|
20454
|
+
try {
|
|
20455
|
+
for (const line of readFileSync13(statsFile, "utf8").split("\n").filter(Boolean)) {
|
|
20456
|
+
const entry = JSON.parse(line);
|
|
20457
|
+
hits += entry.hits ?? 0;
|
|
20458
|
+
misses += entry.misses ?? 0;
|
|
20459
|
+
savedMs += entry.savedMs ?? 0;
|
|
20460
|
+
}
|
|
20461
|
+
} catch (error) {
|
|
20462
|
+
if (error instanceof SyntaxError) return;
|
|
20463
|
+
throw error;
|
|
20464
|
+
} finally {
|
|
20465
|
+
rmSync7(statsFile, { force: true });
|
|
20466
|
+
}
|
|
20467
|
+
if (hits > 0 || misses > 0) {
|
|
20468
|
+
console.error(
|
|
20469
|
+
`[swift-framework-compile-cache] ${path23.basename(scratch)} hits=${hits} misses=${misses} saved=${(savedMs / 1e3).toFixed(1)}s`
|
|
20470
|
+
);
|
|
20471
|
+
}
|
|
20472
|
+
}
|
|
20383
20473
|
async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
20384
20474
|
const linkedTargets = linkedFrameworkTargets(args.moduleRoot, args.input);
|
|
20385
20475
|
const unoptimized = args.input.unoptimized === true;
|
|
@@ -20409,6 +20499,13 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
|
20409
20499
|
const jobs = swiftCompilerJobs();
|
|
20410
20500
|
const targetJobs = jobs >= 4 ? 2 : 1;
|
|
20411
20501
|
const driverJobs = Math.max(1, Math.floor(jobs / targetJobs));
|
|
20502
|
+
const cache = unoptimized ? null : prepareFrameworkCompileCache(
|
|
20503
|
+
scratch,
|
|
20504
|
+
args.moduleRoot,
|
|
20505
|
+
args.toolchainBin,
|
|
20506
|
+
sdkOptions,
|
|
20507
|
+
linkedTargets.products
|
|
20508
|
+
);
|
|
20412
20509
|
await runCompiler(
|
|
20413
20510
|
args.swift,
|
|
20414
20511
|
[
|
|
@@ -20430,6 +20527,7 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
|
20430
20527
|
args.sdk,
|
|
20431
20528
|
"-c",
|
|
20432
20529
|
"release",
|
|
20530
|
+
...cache ? ["-Xswiftc", "-driver-use-frontend-path", "-Xswiftc", cache.wrapper] : [],
|
|
20433
20531
|
"-Xswiftc",
|
|
20434
20532
|
unoptimized ? "-Onone" : "-Osize",
|
|
20435
20533
|
"-Xswiftc",
|
|
@@ -20485,6 +20583,8 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
|
20485
20583
|
SWIFTPM_NOISE
|
|
20486
20584
|
).catch((error) => {
|
|
20487
20585
|
throw new Error(outputOf(error), { cause: error });
|
|
20586
|
+
}).finally(() => {
|
|
20587
|
+
if (cache) reportFrameworkCompileCacheStats(scratch, cache.statsFile);
|
|
20488
20588
|
});
|
|
20489
20589
|
const release = path23.join(scratch, WASM_TRIPLE, "release");
|
|
20490
20590
|
const linked = frameworkLinkClosure(scratch, linkedTargets.targets);
|
|
@@ -20621,6 +20721,16 @@ var SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
|
20621
20721
|
var SWIFT_FRAMEWORK_SLOT_RELEASE = ".peach-framework-release";
|
|
20622
20722
|
var SWIFT_BUILD_ROOT_SLOTS = 4;
|
|
20623
20723
|
var SWIFT_BUILD_ROOT_SHAPE = ".peach-build-shape";
|
|
20724
|
+
function swiftFrameworkSlotCount(unoptimized) {
|
|
20725
|
+
const base = unoptimized ? SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS : SWIFT_FRAMEWORK_SLOTS;
|
|
20726
|
+
if (process.platform !== "linux") return base;
|
|
20727
|
+
const cores = os3.availableParallelism();
|
|
20728
|
+
return unoptimized ? Math.min(8, Math.max(base, Math.floor(cores / 16))) : Math.min(16, Math.max(base, Math.floor(cores / 8)));
|
|
20729
|
+
}
|
|
20730
|
+
function swiftBuildRootSlotCount() {
|
|
20731
|
+
if (process.platform !== "linux") return SWIFT_BUILD_ROOT_SLOTS;
|
|
20732
|
+
return os3.availableParallelism() >= 64 ? 8 : SWIFT_BUILD_ROOT_SLOTS;
|
|
20733
|
+
}
|
|
20624
20734
|
function swiftFrameworksDir(unoptimized = false) {
|
|
20625
20735
|
return path23.join(
|
|
20626
20736
|
swiftCacheDir(),
|
|
@@ -20642,7 +20752,7 @@ function swiftFrameworkSlotRelease(slot) {
|
|
|
20642
20752
|
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_RELEASE);
|
|
20643
20753
|
}
|
|
20644
20754
|
async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal, work, unoptimized = false) {
|
|
20645
|
-
const slotCount = unoptimized
|
|
20755
|
+
const slotCount = swiftFrameworkSlotCount(unoptimized);
|
|
20646
20756
|
const slotsDir = swiftFrameworksDir(unoptimized);
|
|
20647
20757
|
const slots = Array.from({ length: slotCount }, (_, index) => {
|
|
20648
20758
|
const slot = path23.join(slotsDir, `slot-${index}`);
|
|
@@ -20736,7 +20846,7 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20736
20846
|
}
|
|
20737
20847
|
}
|
|
20738
20848
|
async function withSwiftBuildRootSlot(baseRoot, exactShape, compatShape, signal, work) {
|
|
20739
|
-
const slots = Array.from({ length:
|
|
20849
|
+
const slots = Array.from({ length: swiftBuildRootSlotCount() }, (_, index) => {
|
|
20740
20850
|
const slot = index === 0 ? baseRoot : `${baseRoot}-s${index}`;
|
|
20741
20851
|
mkdirSync7(slot, { recursive: true });
|
|
20742
20852
|
return slot;
|
|
@@ -20967,7 +21077,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20967
21077
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
20968
21078
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
20969
21079
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
20970
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21080
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-H3JZE3QC.mjs")).useSwiftPackagePrebuilts(
|
|
20971
21081
|
sources,
|
|
20972
21082
|
moduleRoot,
|
|
20973
21083
|
options.toolchainBin
|
|
@@ -20980,7 +21090,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20980
21090
|
sources: path23.join(root, "Sources", "App"),
|
|
20981
21091
|
multi: compileTargets(input).length > 0
|
|
20982
21092
|
};
|
|
20983
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21093
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-7WNTYEJX.mjs")).buildSwiftSdkImage(
|
|
20984
21094
|
moduleRoot,
|
|
20985
21095
|
!!guestGraph,
|
|
20986
21096
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21699,7 +21809,7 @@ ${compatShape}` : "";
|
|
|
21699
21809
|
});
|
|
21700
21810
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21701
21811
|
} else {
|
|
21702
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21812
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-FZWIOWZN.mjs");
|
|
21703
21813
|
const binding = await buildSwiftAppModule({
|
|
21704
21814
|
buildRoot: root2,
|
|
21705
21815
|
toolchainBin: options.toolchainBin,
|
package/dist-lib/esm-chunks/{metro-layout-parser-NP3MSVX4.mjs → metro-layout-parser-UY33H5NJ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2703 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-HFPHOP7B.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-43Q5KRLL.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.2703 | (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-YF5O3ABY.mjs";
|
|
8
|
+
import "./chunk-JZ5XJAXQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-DMHSTMXP.mjs";
|
|
13
|
+
import "./chunk-TT3PYTWA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SG3PGG3S.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-B3AGCWOJ.mjs";
|
|
20
|
+
import "./chunk-42K537BB.mjs";
|
|
21
|
+
import "./chunk-UJSEYJ2F.mjs";
|
|
22
|
+
import "./chunk-K2OOA65C.mjs";
|
|
23
|
+
import "./chunk-SMBH32NF.mjs";
|
|
24
|
+
import "./chunk-HFPHOP7B.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-A6YJ4KNJ.mjs → swift-sdk-app-module-FZWIOWZN.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2703 | (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-NFKOUEBN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ADDEND_RELOCATIONS,
|
|
11
11
|
KEEP_WASM_NAMES,
|
|
@@ -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-YF5O3ABY.mjs";
|
|
37
|
+
import "./chunk-JZ5XJAXQ.mjs";
|
|
38
|
+
import "./chunk-H5ELVRKG.mjs";
|
|
39
|
+
import "./chunk-NNWFER2D.mjs";
|
|
40
|
+
import "./chunk-4BMF44KC.mjs";
|
|
41
|
+
import "./chunk-DMHSTMXP.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-TT3PYTWA.mjs";
|
|
45
|
+
import "./chunk-SG3PGG3S.mjs";
|
|
46
|
+
import "./chunk-B3AGCWOJ.mjs";
|
|
47
|
+
import "./chunk-42K537BB.mjs";
|
|
48
|
+
import "./chunk-UJSEYJ2F.mjs";
|
|
49
|
+
import "./chunk-K2OOA65C.mjs";
|
|
50
|
+
import "./chunk-SMBH32NF.mjs";
|
|
51
|
+
import "./chunk-HFPHOP7B.mjs";
|
|
52
52
|
|
|
53
53
|
// src/swift-sdk-app-module.ts
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2703 | (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-NFKOUEBN.mjs";
|
|
18
|
+
import "./chunk-YF5O3ABY.mjs";
|
|
19
|
+
import "./chunk-JZ5XJAXQ.mjs";
|
|
20
|
+
import "./chunk-H5ELVRKG.mjs";
|
|
21
|
+
import "./chunk-NNWFER2D.mjs";
|
|
22
|
+
import "./chunk-4BMF44KC.mjs";
|
|
23
|
+
import "./chunk-DMHSTMXP.mjs";
|
|
24
|
+
import "./chunk-TT3PYTWA.mjs";
|
|
25
|
+
import "./chunk-SG3PGG3S.mjs";
|
|
26
|
+
import "./chunk-B3AGCWOJ.mjs";
|
|
27
|
+
import "./chunk-42K537BB.mjs";
|
|
28
|
+
import "./chunk-UJSEYJ2F.mjs";
|
|
29
|
+
import "./chunk-K2OOA65C.mjs";
|
|
30
|
+
import "./chunk-SMBH32NF.mjs";
|
|
31
|
+
import "./chunk-HFPHOP7B.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.2703 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JZ5XJAXQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TT3PYTWA.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-SMBH32NF.mjs";
|
|
12
|
+
import "./chunk-HFPHOP7B.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|