peachsim 0.1.2689 → 0.1.2691
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 +154 -128
- 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-AK33HM6U.mjs → acorn-FRAAGSQN.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-6VXRFNWN.mjs → chunk-3P3T6XDR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W367O5CY.mjs → chunk-677F6CA3.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-EN52IJHF.mjs → chunk-6Y4USKQV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S67TTMU7.mjs → chunk-GHEIKIKL.mjs} +3 -16
- package/dist-lib/esm-chunks/{chunk-6ZOJHY7N.mjs → chunk-GLMVKIM6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DBS6IBYN.mjs → chunk-GN3IKMG6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3P2PXDAA.mjs → chunk-HDZZNHQA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-URRVRAYX.mjs → chunk-JAWBF6H2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QZLWJLMA.mjs → chunk-KBD22EMH.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-4AVYJY57.mjs → chunk-LDYW2OW2.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-KHBU2LR4.mjs → chunk-NZXLU5VV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V7YGTZIH.mjs → chunk-O63LOL3D.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-LZYR7ZMM.mjs → chunk-OIYXX7IL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TZKKIPK7.mjs → chunk-Q6JOJQEF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PMOT2K7W.mjs → chunk-QUF75PSG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PMGSVLOD.mjs → chunk-R2Y3VVPG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B2V6VQF4.mjs → chunk-RDBWKQEO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OO6D27TE.mjs → chunk-SNPB7L3I.mjs} +140 -103
- package/dist-lib/esm-chunks/{chunk-TZ5HWPHI.mjs → chunk-SWFEY33A.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FPYHVMB5.mjs → chunk-VGERVNUM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-43MLLKBY.mjs → chunk-WTQRJ7GJ.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-SP7K4OG3.mjs → chunk-Y4AEL73Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-63AVADYP.mjs → chunk-Z6OSVLDH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VE2UKUSG.mjs → chunk-ZPKIEF24.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-P3HTLHV4.mjs → metro-layout-parser-6OLSOOML.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-4QU3YDI5.mjs → swift-package-prebuilt-5JCJ24DB.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-NSDCR32Y.mjs → swift-sdk-app-module-ZIJDA775.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-N4YBIJIH.mjs → swift-sdk-image-JSEDATID.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-IUBLMTML.mjs → swift-sdk-image-producer-MPF3H7PU.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +144 -118
- 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 +161 -136
- package/dist-lib/host/fetch-proxy-handler.cjs +28 -27
- 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 +165 -140
- package/dist-lib/swift-compile.cjs +129 -103
- 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 +139 -95
- package/src/swift-root-lock.ts +1 -16
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2691 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
|
-
waitForNoSwiftRootReaders,
|
|
7
6
|
withSwiftRootLock
|
|
8
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GHEIKIKL.mjs";
|
|
9
8
|
import {
|
|
10
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
11
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -56,7 +55,7 @@ import {
|
|
|
56
55
|
withoutImportedSdkEnumForwards,
|
|
57
56
|
withoutSwiftDeclarations,
|
|
58
57
|
writeBuildFile
|
|
59
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-O63LOL3D.mjs";
|
|
60
59
|
import {
|
|
61
60
|
SWIFT_AUTOLINK_LINKER,
|
|
62
61
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -73,7 +72,7 @@ import {
|
|
|
73
72
|
wasmThreadLinkFlags,
|
|
74
73
|
windowAdmission,
|
|
75
74
|
writeSwiftAutolinkLinker
|
|
76
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-SWFEY33A.mjs";
|
|
77
76
|
import {
|
|
78
77
|
SWIFT_BINARY_TREES_DIR,
|
|
79
78
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -88,7 +87,7 @@ import {
|
|
|
88
87
|
isSwiftResourcePath,
|
|
89
88
|
isSwiftSourceLinkGraph,
|
|
90
89
|
swiftProjectFilesProblems
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-6Y4USKQV.mjs";
|
|
92
91
|
import {
|
|
93
92
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
94
93
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -111,16 +110,16 @@ import {
|
|
|
111
110
|
swiftPackagePartition,
|
|
112
111
|
swiftTargetModuleName,
|
|
113
112
|
withoutGlogModuleMap
|
|
114
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-OIYXX7IL.mjs";
|
|
115
114
|
import {
|
|
116
115
|
rnxPublicBrand
|
|
117
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-Z6OSVLDH.mjs";
|
|
118
117
|
import {
|
|
119
118
|
isRecord
|
|
120
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-GN3IKMG6.mjs";
|
|
121
120
|
import {
|
|
122
121
|
__publicField
|
|
123
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-Y4AEL73Z.mjs";
|
|
124
123
|
|
|
125
124
|
// src/swift-compile.ts
|
|
126
125
|
import { spawn as spawn2 } from "node:child_process";
|
|
@@ -146,6 +145,7 @@ import {
|
|
|
146
145
|
} from "node:fs";
|
|
147
146
|
import os3 from "node:os";
|
|
148
147
|
import path23 from "node:path";
|
|
148
|
+
import { setTimeout as delay } from "node:timers/promises";
|
|
149
149
|
|
|
150
150
|
// ../../node_modules/valibot/dist/index.mjs
|
|
151
151
|
var store$4;
|
|
@@ -14360,7 +14360,7 @@ async function compileGuestLink(options) {
|
|
|
14360
14360
|
};
|
|
14361
14361
|
const sdk = options.sdkImage;
|
|
14362
14362
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14363
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14363
|
+
const sdkObjects = (await import("./swift-sdk-image-JSEDATID.mjs")).readSwiftSdkManifestIndex(
|
|
14364
14364
|
sdk
|
|
14365
14365
|
).guestObjects;
|
|
14366
14366
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14659,7 +14659,7 @@ async function compileGuestLink(options) {
|
|
|
14659
14659
|
readSwiftSdkUsage,
|
|
14660
14660
|
swiftAppModuleThunkSection,
|
|
14661
14661
|
swiftSdkProjectionSpans
|
|
14662
|
-
} = await import("./swift-sdk-app-module-
|
|
14662
|
+
} = await import("./swift-sdk-app-module-ZIJDA775.mjs");
|
|
14663
14663
|
const project = options.project;
|
|
14664
14664
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14665
14665
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16598,7 +16598,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16598
16598
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16599
16599
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16600
16600
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16601
|
-
var compilerSourceDigest = true ? "
|
|
16601
|
+
var compilerSourceDigest = true ? "7606d9522af3cd62eae6966cdb5705c5c4bea053686b189b779998d97a0463bd" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16602
16602
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16603
16603
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16604
16604
|
}
|
|
@@ -20357,7 +20357,7 @@ function readFrameworkProductsReceipt(scratch, receiptKey) {
|
|
|
20357
20357
|
objcHeaders: new Map(parsed.objcHeaders)
|
|
20358
20358
|
};
|
|
20359
20359
|
}
|
|
20360
|
-
async function buildFrameworkProducts(scratch, args) {
|
|
20360
|
+
async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
20361
20361
|
const linkedTargets = linkedFrameworkTargets(args.moduleRoot, args.input);
|
|
20362
20362
|
const unoptimized = args.input.unoptimized === true;
|
|
20363
20363
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
@@ -20378,7 +20378,7 @@ async function buildFrameworkProducts(scratch, args) {
|
|
|
20378
20378
|
).digest("hex").slice(0, 32);
|
|
20379
20379
|
const ready = readFrameworkProductsReceipt(scratch, receiptKey);
|
|
20380
20380
|
if (ready) return ready;
|
|
20381
|
-
|
|
20381
|
+
if (!allowWrite) return;
|
|
20382
20382
|
const linkRoot = path23.join(scratch, "link");
|
|
20383
20383
|
writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
|
|
20384
20384
|
const frameworkTmp = path23.join(scratch, "peach-compiler-tmp");
|
|
@@ -20626,13 +20626,36 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20626
20626
|
mkdirSync7(slot, { recursive: true });
|
|
20627
20627
|
return slot;
|
|
20628
20628
|
});
|
|
20629
|
-
const
|
|
20630
|
-
|
|
20631
|
-
|
|
20632
|
-
|
|
20629
|
+
const trySlot = (slot, mode, logSelection) => {
|
|
20630
|
+
return withSwiftRootLock(
|
|
20631
|
+
slot,
|
|
20632
|
+
async (lease) => {
|
|
20633
|
+
const matches = swiftFrameworkSlotKey(slot) === frameworkKey;
|
|
20634
|
+
if (mode !== "restage" && !matches) return;
|
|
20635
|
+
const allowWrite = mode !== "reuse";
|
|
20636
|
+
if (allowWrite && await hasLiveSwiftRootReaders(slot, signal)) return;
|
|
20637
|
+
if (!matches) logSelection?.();
|
|
20638
|
+
const value = await work(slot, lease, allowWrite);
|
|
20639
|
+
if (value === void 0) return;
|
|
20640
|
+
const now = /* @__PURE__ */ new Date();
|
|
20641
|
+
utimesSync(slot, now, now);
|
|
20642
|
+
return { value };
|
|
20643
|
+
},
|
|
20644
|
+
signal,
|
|
20645
|
+
false
|
|
20646
|
+
);
|
|
20647
|
+
};
|
|
20648
|
+
const tryExactSlots = async () => {
|
|
20649
|
+
const matching = slots.filter((slot) => swiftFrameworkSlotKey(slot) === frameworkKey);
|
|
20650
|
+
for (const mode of ["reuse", "extend"]) {
|
|
20651
|
+
for (const slot of matching) {
|
|
20652
|
+
const result = await trySlot(slot, mode);
|
|
20653
|
+
if (result) return result;
|
|
20654
|
+
}
|
|
20655
|
+
}
|
|
20633
20656
|
};
|
|
20634
|
-
const
|
|
20635
|
-
if (
|
|
20657
|
+
const ready = await tryExactSlots();
|
|
20658
|
+
if (ready) return ready.value;
|
|
20636
20659
|
const built = new Map(slots.map((slot) => [slot, statSync4(slot).mtimeMs]));
|
|
20637
20660
|
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
20638
20661
|
const inputs = new Map(
|
|
@@ -20666,24 +20689,28 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20666
20689
|
if (left.tier === 1) return left.index - right.index;
|
|
20667
20690
|
return (built.get(left.slot) ?? 0) - (built.get(right.slot) ?? 0);
|
|
20668
20691
|
});
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
20672
|
-
|
|
20673
|
-
|
|
20674
|
-
|
|
20692
|
+
let announced = false;
|
|
20693
|
+
for (; ; ) {
|
|
20694
|
+
signal?.throwIfAborted();
|
|
20695
|
+
for (const { slot, tier, changes } of ranked) {
|
|
20696
|
+
if (swiftFrameworkSlotKey(slot) === frameworkKey) continue;
|
|
20697
|
+
const result = await trySlot(slot, "restage", () => {
|
|
20675
20698
|
console.error(
|
|
20676
20699
|
`[swift-framework-cache] ${path23.basename(slot)} release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs.size}`
|
|
20677
20700
|
);
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
|
|
20682
|
-
|
|
20683
|
-
|
|
20701
|
+
});
|
|
20702
|
+
if (result) return result.value;
|
|
20703
|
+
}
|
|
20704
|
+
if (!announced) {
|
|
20705
|
+
console.error(
|
|
20706
|
+
`[swift-framework-cache] waiting for an available slot in ${slotsDir}`
|
|
20707
|
+
);
|
|
20708
|
+
announced = true;
|
|
20709
|
+
}
|
|
20710
|
+
await delay(1e3, void 0, { signal });
|
|
20711
|
+
const ready2 = await tryExactSlots();
|
|
20712
|
+
if (ready2) return ready2.value;
|
|
20684
20713
|
}
|
|
20685
|
-
const nearest = ranked[0].slot;
|
|
20686
|
-
return withSwiftRootLock(nearest, run2(nearest), signal);
|
|
20687
20714
|
}
|
|
20688
20715
|
async function withSwiftBuildRootSlot(baseRoot, exactShape, compatShape, signal, work) {
|
|
20689
20716
|
const slots = Array.from({ length: SWIFT_BUILD_ROOT_SLOTS }, (_, index) => {
|
|
@@ -20917,7 +20944,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20917
20944
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
20918
20945
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
20919
20946
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
20920
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
20947
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-5JCJ24DB.mjs")).useSwiftPackagePrebuilts(
|
|
20921
20948
|
sources,
|
|
20922
20949
|
moduleRoot,
|
|
20923
20950
|
options.toolchainBin
|
|
@@ -20930,7 +20957,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20930
20957
|
sources: path23.join(root, "Sources", "App"),
|
|
20931
20958
|
multi: compileTargets(input).length > 0
|
|
20932
20959
|
};
|
|
20933
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
20960
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-JSEDATID.mjs")).buildSwiftSdkImage(
|
|
20934
20961
|
moduleRoot,
|
|
20935
20962
|
!!guestGraph,
|
|
20936
20963
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -20987,34 +21014,34 @@ ${compatShape}` : "";
|
|
|
20987
21014
|
report(message);
|
|
20988
21015
|
};
|
|
20989
21016
|
const runLocked = (work) => {
|
|
20990
|
-
|
|
20991
|
-
|
|
21017
|
+
const runInBuildRoot = () => {
|
|
21018
|
+
if (canPoolBuildRoot)
|
|
21019
|
+
return withSwiftBuildRootSlot(
|
|
21020
|
+
baseRoot,
|
|
21021
|
+
exactShape,
|
|
21022
|
+
compatShape,
|
|
21023
|
+
budget.signal,
|
|
21024
|
+
work
|
|
21025
|
+
);
|
|
21026
|
+
const waitStart = Date.now();
|
|
20992
21027
|
return withSwiftRootLock(
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
const built = readCompiledArtifact(
|
|
20996
|
-
path23.join(sharedRoot, "artifact"),
|
|
20997
|
-
hash
|
|
20998
|
-
);
|
|
20999
|
-
if (built) {
|
|
21000
|
-
stage("reusing verified disk artifact");
|
|
21001
|
-
return retain(baseRoot, built);
|
|
21002
|
-
}
|
|
21003
|
-
return withSwiftBuildRootSlot(
|
|
21004
|
-
baseRoot,
|
|
21005
|
-
exactShape,
|
|
21006
|
-
compatShape,
|
|
21007
|
-
budget.signal,
|
|
21008
|
-
work
|
|
21009
|
-
);
|
|
21010
|
-
},
|
|
21028
|
+
baseRoot,
|
|
21029
|
+
(lease) => work(baseRoot, lease, Date.now() - waitStart),
|
|
21011
21030
|
budget.signal
|
|
21012
21031
|
);
|
|
21013
|
-
}
|
|
21014
|
-
|
|
21032
|
+
};
|
|
21033
|
+
if (options.intermediates || baseRoot === sharedRoot) return runInBuildRoot();
|
|
21015
21034
|
return withSwiftRootLock(
|
|
21016
|
-
|
|
21017
|
-
(
|
|
21035
|
+
sharedRoot,
|
|
21036
|
+
async () => {
|
|
21037
|
+
const built = readCompiledArtifact(path23.join(sharedRoot, "artifact"), hash);
|
|
21038
|
+
if (built) {
|
|
21039
|
+
renewSharedArtifact(sharedRoot);
|
|
21040
|
+
stage("reusing verified disk artifact");
|
|
21041
|
+
return retain(baseRoot, built);
|
|
21042
|
+
}
|
|
21043
|
+
return runInBuildRoot();
|
|
21044
|
+
},
|
|
21018
21045
|
budget.signal
|
|
21019
21046
|
);
|
|
21020
21047
|
};
|
|
@@ -21045,14 +21072,6 @@ ${compatShape}` : "";
|
|
|
21045
21072
|
);
|
|
21046
21073
|
}
|
|
21047
21074
|
const unoptimized = input.unoptimized === true;
|
|
21048
|
-
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(
|
|
21049
|
-
frameworkKey,
|
|
21050
|
-
options.release,
|
|
21051
|
-
moduleRoot,
|
|
21052
|
-
budget.signal,
|
|
21053
|
-
work,
|
|
21054
|
-
unoptimized
|
|
21055
|
-
);
|
|
21056
21075
|
const baseBuildEnv = options.project?.env ? {
|
|
21057
21076
|
...options.project.env,
|
|
21058
21077
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
@@ -21065,22 +21084,13 @@ ${compatShape}` : "";
|
|
|
21065
21084
|
} : {},
|
|
21066
21085
|
PEACH_DEFER_WASM_LINK: "1"
|
|
21067
21086
|
} : swiftCompilerBaseEnv(options.toolchainBin, process.env);
|
|
21068
|
-
const {
|
|
21069
|
-
|
|
21070
|
-
compileFrameworkRoot,
|
|
21071
|
-
macroPlugins,
|
|
21072
|
-
sdk,
|
|
21073
|
-
icu,
|
|
21074
|
-
prebuilt,
|
|
21075
|
-
readHold: frameworkReadHold
|
|
21076
|
-
} = await withFrameworkLock(async (slot, frameworkLease) => {
|
|
21077
|
-
budget.startCompile();
|
|
21078
|
-
if (slot && swiftFrameworkSlotKey(slot) !== frameworkKey)
|
|
21079
|
-
await waitForNoSwiftRootReaders(slot, budget.signal);
|
|
21087
|
+
const prepareFrameworks = async (slot, frameworkLease, allowWrite = true) => {
|
|
21088
|
+
if (allowWrite) budget.startCompile();
|
|
21080
21089
|
const frameworkRoot2 = mirrorDistribution ? syncSwiftDistributionMirror(root2, moduleRoot, mirrorDistribution) : distribution ? moduleRoot : stageFrameworkSource(moduleRoot, slot, frameworkKey, options.release);
|
|
21081
21090
|
if (!swiftModuleDigest(frameworkRoot2).equals(moduleDigest))
|
|
21082
21091
|
throw new Error("Swift staged project source differs from the caller");
|
|
21083
|
-
|
|
21092
|
+
if (!allowWrite && swiftMacroPlugins(frameworkRoot2).stale) return;
|
|
21093
|
+
if (allowWrite) stage("preparing compiler plugins");
|
|
21084
21094
|
const macroPlugins2 = await ensureMacroPlugins(
|
|
21085
21095
|
frameworkRoot2,
|
|
21086
21096
|
options.toolchainBin,
|
|
@@ -21093,24 +21103,33 @@ ${compatShape}` : "";
|
|
|
21093
21103
|
const icu2 = options.linkOnly ? null : swiftIcuAsset(options.toolchainBin, sdk2);
|
|
21094
21104
|
let prebuilt2;
|
|
21095
21105
|
if (!distribution) {
|
|
21096
|
-
stage("compiling framework products");
|
|
21097
|
-
prebuilt2 = await buildFrameworkProducts(
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
|
|
21103
|
-
|
|
21104
|
-
|
|
21105
|
-
|
|
21106
|
-
|
|
21107
|
-
|
|
21108
|
-
|
|
21109
|
-
|
|
21110
|
-
|
|
21111
|
-
|
|
21112
|
-
|
|
21113
|
-
|
|
21106
|
+
if (allowWrite) stage("compiling framework products");
|
|
21107
|
+
prebuilt2 = await buildFrameworkProducts(
|
|
21108
|
+
slot,
|
|
21109
|
+
{
|
|
21110
|
+
moduleRoot: frameworkRoot2,
|
|
21111
|
+
frameworkKey,
|
|
21112
|
+
input,
|
|
21113
|
+
swift,
|
|
21114
|
+
sdk: sdk2,
|
|
21115
|
+
toolchainBin: options.toolchainBin,
|
|
21116
|
+
plugins: macroPlugins2,
|
|
21117
|
+
buildOptions: {
|
|
21118
|
+
env: baseBuildEnv,
|
|
21119
|
+
maxBuffer: 64 * 1024 * 1024,
|
|
21120
|
+
signal: budget.signal,
|
|
21121
|
+
onOutput: budget.progress,
|
|
21122
|
+
lease,
|
|
21123
|
+
frameworkLease
|
|
21124
|
+
}
|
|
21125
|
+
},
|
|
21126
|
+
allowWrite
|
|
21127
|
+
);
|
|
21128
|
+
if (!prebuilt2) return;
|
|
21129
|
+
if (!allowWrite) {
|
|
21130
|
+
budget.startCompile();
|
|
21131
|
+
stage("reusing verified framework products");
|
|
21132
|
+
}
|
|
21114
21133
|
}
|
|
21115
21134
|
const readHold2 = slot ? acquireSwiftRootReadHold(slot) : void 0;
|
|
21116
21135
|
return {
|
|
@@ -21122,8 +21141,26 @@ ${compatShape}` : "";
|
|
|
21122
21141
|
prebuilt: prebuilt2,
|
|
21123
21142
|
readHold: readHold2
|
|
21124
21143
|
};
|
|
21125
|
-
}
|
|
21126
|
-
|
|
21144
|
+
};
|
|
21145
|
+
const frameworks = distribution ? await prepareFrameworks(null) : await withSwiftFrameworkSlot(
|
|
21146
|
+
frameworkKey,
|
|
21147
|
+
options.release,
|
|
21148
|
+
moduleRoot,
|
|
21149
|
+
budget.signal,
|
|
21150
|
+
prepareFrameworks,
|
|
21151
|
+
unoptimized
|
|
21152
|
+
);
|
|
21153
|
+
if (!frameworks)
|
|
21154
|
+
throw new Error("Swift distribution did not provide its frameworks");
|
|
21155
|
+
const {
|
|
21156
|
+
frameworkRoot,
|
|
21157
|
+
compileFrameworkRoot,
|
|
21158
|
+
macroPlugins,
|
|
21159
|
+
sdk,
|
|
21160
|
+
icu,
|
|
21161
|
+
prebuilt
|
|
21162
|
+
} = frameworks;
|
|
21163
|
+
let readHold = frameworks.readHold;
|
|
21127
21164
|
const buildOptions = {
|
|
21128
21165
|
env: baseBuildEnv,
|
|
21129
21166
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -21639,7 +21676,7 @@ ${compatShape}` : "";
|
|
|
21639
21676
|
});
|
|
21640
21677
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21641
21678
|
} else {
|
|
21642
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21679
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-ZIJDA775.mjs");
|
|
21643
21680
|
const binding = await buildSwiftAppModule({
|
|
21644
21681
|
buildRoot: root2,
|
|
21645
21682
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2691 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
DARWIN_RECORDS_PREFIX,
|
|
4
4
|
KEEP_WASM_NAMES,
|
|
@@ -28,22 +28,22 @@ import {
|
|
|
28
28
|
swiftSdkImageScope,
|
|
29
29
|
unslottedFunctions,
|
|
30
30
|
wasmSections
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SNPB7L3I.mjs";
|
|
32
32
|
import {
|
|
33
33
|
withSwiftRootLock,
|
|
34
34
|
withSwiftRootReadHolds
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-GHEIKIKL.mjs";
|
|
36
36
|
import {
|
|
37
37
|
swiftDistributionAt,
|
|
38
38
|
swiftModuleDigest,
|
|
39
39
|
swiftModuleToolchain,
|
|
40
40
|
swiftSdkPaths
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-O63LOL3D.mjs";
|
|
42
42
|
import {
|
|
43
43
|
SWIFT_WASM_TRIPLE,
|
|
44
44
|
sourceSwiftCheckout,
|
|
45
45
|
swiftCacheDir
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SWFEY33A.mjs";
|
|
47
47
|
|
|
48
48
|
// src/swift-sdk-image.ts
|
|
49
49
|
import { execFile } from "node:child_process";
|
|
@@ -223,7 +223,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
223
223
|
const existing = cached(directory, key);
|
|
224
224
|
if (existing) return existing;
|
|
225
225
|
if (!options?.producer && !swiftDistributionAt(moduleRoot) && path.resolve(moduleRoot) === sourceSwiftCheckout() && process.platform === "linux" && process.env.TM_SESSION) {
|
|
226
|
-
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-
|
|
226
|
+
const { produceSwiftSdkImage } = await import("./swift-sdk-image-producer-MPF3H7PU.mjs");
|
|
227
227
|
await produceSwiftSdkImage({
|
|
228
228
|
moduleRoot,
|
|
229
229
|
key,
|
package/dist-lib/esm-chunks/{metro-layout-parser-P3HTLHV4.mjs → metro-layout-parser-6OLSOOML.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2691 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-Y4AEL73Z.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-FRAAGSQN.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.2691 | (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-SNPB7L3I.mjs";
|
|
8
|
+
import "./chunk-GHEIKIKL.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-O63LOL3D.mjs";
|
|
13
|
+
import "./chunk-SWFEY33A.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6Y4USKQV.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-OIYXX7IL.mjs";
|
|
20
|
+
import "./chunk-RDBWKQEO.mjs";
|
|
21
|
+
import "./chunk-Z6OSVLDH.mjs";
|
|
22
|
+
import "./chunk-VGERVNUM.mjs";
|
|
23
|
+
import "./chunk-GN3IKMG6.mjs";
|
|
24
|
+
import "./chunk-Y4AEL73Z.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-NSDCR32Y.mjs → swift-sdk-app-module-ZIJDA775.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2691 | (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-WTQRJ7GJ.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-SNPB7L3I.mjs";
|
|
37
|
+
import "./chunk-GHEIKIKL.mjs";
|
|
38
|
+
import "./chunk-LDYW2OW2.mjs";
|
|
39
|
+
import "./chunk-QUF75PSG.mjs";
|
|
40
|
+
import "./chunk-ZPKIEF24.mjs";
|
|
41
|
+
import "./chunk-O63LOL3D.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-SWFEY33A.mjs";
|
|
45
|
+
import "./chunk-6Y4USKQV.mjs";
|
|
46
|
+
import "./chunk-OIYXX7IL.mjs";
|
|
47
|
+
import "./chunk-RDBWKQEO.mjs";
|
|
48
|
+
import "./chunk-Z6OSVLDH.mjs";
|
|
49
|
+
import "./chunk-VGERVNUM.mjs";
|
|
50
|
+
import "./chunk-GN3IKMG6.mjs";
|
|
51
|
+
import "./chunk-Y4AEL73Z.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.2691 | (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-WTQRJ7GJ.mjs";
|
|
18
|
+
import "./chunk-SNPB7L3I.mjs";
|
|
19
|
+
import "./chunk-GHEIKIKL.mjs";
|
|
20
|
+
import "./chunk-LDYW2OW2.mjs";
|
|
21
|
+
import "./chunk-QUF75PSG.mjs";
|
|
22
|
+
import "./chunk-ZPKIEF24.mjs";
|
|
23
|
+
import "./chunk-O63LOL3D.mjs";
|
|
24
|
+
import "./chunk-SWFEY33A.mjs";
|
|
25
|
+
import "./chunk-6Y4USKQV.mjs";
|
|
26
|
+
import "./chunk-OIYXX7IL.mjs";
|
|
27
|
+
import "./chunk-RDBWKQEO.mjs";
|
|
28
|
+
import "./chunk-Z6OSVLDH.mjs";
|
|
29
|
+
import "./chunk-VGERVNUM.mjs";
|
|
30
|
+
import "./chunk-GN3IKMG6.mjs";
|
|
31
|
+
import "./chunk-Y4AEL73Z.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.2691 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GHEIKIKL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SWFEY33A.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-GN3IKMG6.mjs";
|
|
12
|
+
import "./chunk-Y4AEL73Z.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|