peachsim 0.1.2700 → 0.1.2702
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/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 +105 -8
- 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-JMX5B7EM.mjs → acorn-I3ZAV2HM.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-CFIRPTHJ.mjs → chunk-3TVOPWQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LX2BV3HG.mjs → chunk-4W62JNLV.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-PZGZICP2.mjs → chunk-55UUHJIF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RDHNMD4Y.mjs → chunk-6Z2YJFQH.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-2LCX3JMJ.mjs → chunk-74IQS3IW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IBVI7TQI.mjs → chunk-7CNNZXLN.mjs} +116 -16
- package/dist-lib/esm-chunks/{chunk-FAG6O2N3.mjs → chunk-7ZXSFDJI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DVZDWHEZ.mjs → chunk-AASQZJJD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UIDOGLBN.mjs → chunk-B2AJ3NG3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WC2GXMW4.mjs → chunk-C4ANQZOL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CNBFIPHS.mjs → chunk-CTMG6TJS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HD3MEVVX.mjs → chunk-DUBZMBNO.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-I6KUME5N.mjs → chunk-GY7TSHXT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OB6D5CTV.mjs → chunk-K6PYAFA7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VXYO4WMM.mjs → chunk-OOGBJF7A.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-3KJDS35X.mjs → chunk-OS4FVQQU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OQOOJ4FM.mjs → chunk-P5TRIEZT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X43NQTX5.mjs → chunk-PNFDFXED.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IT4I7ZD7.mjs → chunk-PYE2SXBC.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-B6UGKRKO.mjs → chunk-RRRO6O3P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SKZJTJR2.mjs → chunk-SR5CKA77.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-PTTY7D7L.mjs → chunk-W336OLQN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7G4USDWX.mjs → chunk-ZSMI2FCL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Z2N7NA7X.mjs → chunk-ZYLZ676Y.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-FQYDPSA5.mjs → metro-layout-parser-FRE6D3WN.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-Y3J7CZ3J.mjs → swift-package-prebuilt-ZO6ZIEND.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-PK6YRYT6.mjs → swift-sdk-app-module-2CJZ7QH4.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-OS4BDZJB.mjs → swift-sdk-image-RDVAVED4.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-56HJQNEG.mjs → swift-sdk-image-producer-HDUM3MGT.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +105 -8
- 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 +105 -8
- 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 +105 -8
- package/dist-lib/swift-compile.cjs +99 -2
- 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/swift-compile.ts +129 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2702 | (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-OOGBJF7A.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-SR5CKA77.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-W336OLQN.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-GY7TSHXT.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-OS4FVQQU.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-AASQZJJD.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-ZYLZ676Y.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-P5TRIEZT.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-RDVAVED4.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-2CJZ7QH4.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 ? "4b5296f7b88a7be563cde8239498701a41c68229cacc781e4afdc07708efd060" : 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);
|
|
@@ -20967,7 +21067,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20967
21067
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
20968
21068
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
20969
21069
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
20970
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21070
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-ZO6ZIEND.mjs")).useSwiftPackagePrebuilts(
|
|
20971
21071
|
sources,
|
|
20972
21072
|
moduleRoot,
|
|
20973
21073
|
options.toolchainBin
|
|
@@ -20980,7 +21080,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20980
21080
|
sources: path23.join(root, "Sources", "App"),
|
|
20981
21081
|
multi: compileTargets(input).length > 0
|
|
20982
21082
|
};
|
|
20983
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21083
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-RDVAVED4.mjs")).buildSwiftSdkImage(
|
|
20984
21084
|
moduleRoot,
|
|
20985
21085
|
!!guestGraph,
|
|
20986
21086
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21699,7 +21799,7 @@ ${compatShape}` : "";
|
|
|
21699
21799
|
});
|
|
21700
21800
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21701
21801
|
} else {
|
|
21702
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21802
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-2CJZ7QH4.mjs");
|
|
21703
21803
|
const binding = await buildSwiftAppModule({
|
|
21704
21804
|
buildRoot: root2,
|
|
21705
21805
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2702 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C4ANQZOL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZYLZ676Y.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2702 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-W336OLQN.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2702 | (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.2702 | (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-B2AJ3NG3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
cacheDir,
|
|
8
8
|
parseSwiftDistributionLock,
|
|
9
9
|
readActiveRuntime,
|
|
10
10
|
runtimeDir
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SR5CKA77.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SWIFT_WASM_TRIPLE,
|
|
14
14
|
registerSwiftHostCompiler
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W336OLQN.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZYLZ676Y.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.2702 | (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-W336OLQN.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isSwiftResourcePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GY7TSHXT.mjs";
|
|
19
19
|
import {
|
|
20
20
|
swiftManifestDeclarations
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OS4FVQQU.mjs";
|
|
22
22
|
import {
|
|
23
23
|
isRecord
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZYLZ676Y.mjs";
|
|
25
25
|
import {
|
|
26
26
|
__publicField
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-P5TRIEZT.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-FQYDPSA5.mjs → metro-layout-parser-FRE6D3WN.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2702 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-P5TRIEZT.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-I3ZAV2HM.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.2702 | (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-7CNNZXLN.mjs";
|
|
8
|
+
import "./chunk-OOGBJF7A.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-SR5CKA77.mjs";
|
|
13
|
+
import "./chunk-W336OLQN.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GY7TSHXT.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-OS4FVQQU.mjs";
|
|
20
|
+
import "./chunk-55UUHJIF.mjs";
|
|
21
|
+
import "./chunk-AASQZJJD.mjs";
|
|
22
|
+
import "./chunk-7ZXSFDJI.mjs";
|
|
23
|
+
import "./chunk-ZYLZ676Y.mjs";
|
|
24
|
+
import "./chunk-P5TRIEZT.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-PK6YRYT6.mjs → swift-sdk-app-module-2CJZ7QH4.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2702 | (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-6Z2YJFQH.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-7CNNZXLN.mjs";
|
|
37
|
+
import "./chunk-OOGBJF7A.mjs";
|
|
38
|
+
import "./chunk-PYE2SXBC.mjs";
|
|
39
|
+
import "./chunk-B2AJ3NG3.mjs";
|
|
40
|
+
import "./chunk-3TVOPWQ4.mjs";
|
|
41
|
+
import "./chunk-SR5CKA77.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-W336OLQN.mjs";
|
|
45
|
+
import "./chunk-GY7TSHXT.mjs";
|
|
46
|
+
import "./chunk-OS4FVQQU.mjs";
|
|
47
|
+
import "./chunk-55UUHJIF.mjs";
|
|
48
|
+
import "./chunk-AASQZJJD.mjs";
|
|
49
|
+
import "./chunk-7ZXSFDJI.mjs";
|
|
50
|
+
import "./chunk-ZYLZ676Y.mjs";
|
|
51
|
+
import "./chunk-P5TRIEZT.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.2702 | (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-6Z2YJFQH.mjs";
|
|
18
|
+
import "./chunk-7CNNZXLN.mjs";
|
|
19
|
+
import "./chunk-OOGBJF7A.mjs";
|
|
20
|
+
import "./chunk-PYE2SXBC.mjs";
|
|
21
|
+
import "./chunk-B2AJ3NG3.mjs";
|
|
22
|
+
import "./chunk-3TVOPWQ4.mjs";
|
|
23
|
+
import "./chunk-SR5CKA77.mjs";
|
|
24
|
+
import "./chunk-W336OLQN.mjs";
|
|
25
|
+
import "./chunk-GY7TSHXT.mjs";
|
|
26
|
+
import "./chunk-OS4FVQQU.mjs";
|
|
27
|
+
import "./chunk-55UUHJIF.mjs";
|
|
28
|
+
import "./chunk-AASQZJJD.mjs";
|
|
29
|
+
import "./chunk-7ZXSFDJI.mjs";
|
|
30
|
+
import "./chunk-ZYLZ676Y.mjs";
|
|
31
|
+
import "./chunk-P5TRIEZT.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.2702 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OOGBJF7A.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-W336OLQN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ZYLZ676Y.mjs";
|
|
12
|
+
import "./chunk-P5TRIEZT.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|