peachsim 0.1.2690 → 0.1.2692
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-7NECUOQL.mjs → acorn-TP3R3SCL.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2C4HDS5K.mjs → chunk-3QONY3XJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YA25KY54.mjs → chunk-43J3JBP2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CE4CI5FU.mjs → chunk-4N74V6BI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-ZK3YJNAA.mjs → chunk-5FY5356L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TKDSXDNO.mjs → chunk-AGEJSAGC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LO7HH7BH.mjs → chunk-D4KVT6FW.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-AGEHGE4W.mjs → chunk-DML2WOWG.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-CZOPH62Q.mjs → chunk-EJ4CGZ6U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T6GYFGP3.mjs → chunk-JJWSODBL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RPH46F3J.mjs → chunk-JTMIA5L6.mjs} +3 -16
- package/dist-lib/esm-chunks/{chunk-TGZK7Q33.mjs → chunk-KIYIZMNM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VT3KFJLL.mjs → chunk-N5GFXIHX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HOVIMQVO.mjs → chunk-ON6ZSTE6.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SMUFAUA2.mjs → chunk-QGMB4YAD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OFJYTZNL.mjs → chunk-RCL7ZXIB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GR7CUPIC.mjs → chunk-SL4UI5EO.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-MYSQV4YK.mjs → chunk-UH7U5UJM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-SJQMU53M.mjs → chunk-V4XZG2UP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VZW3Z5J3.mjs → chunk-VJ25AUUQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7P2EJJFY.mjs → chunk-X2IL2HTN.mjs} +140 -103
- package/dist-lib/esm-chunks/{chunk-5PMTWOLF.mjs → chunk-Y7DF4UKV.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-ZFE3NYDB.mjs → chunk-YFY3M2NS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VVJ4B44L.mjs → chunk-YH7LJZMD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ID74LXQF.mjs → chunk-ZCCDRKXX.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-P5M3VLPS.mjs → metro-layout-parser-UKRMM6Y2.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-LDSEGNPH.mjs → swift-package-prebuilt-RRUMKQRK.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-OCQEJPVW.mjs → swift-sdk-app-module-MUI5IBSU.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-HCOK3M44.mjs → swift-sdk-image-BUNUQ5RQ.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-M3LWXZRI.mjs → swift-sdk-image-producer-TNUVEIPG.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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (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;
|
|
@@ -10105,7 +10105,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
10105
10105
|
|
|
10106
10106
|
// src/swift-compiler-digest.ts
|
|
10107
10107
|
function swiftArchiveCompilerDigestValue() {
|
|
10108
|
-
return true ? "
|
|
10108
|
+
return true ? "78aa5c338e947a1bfd5f133f07c61a8ac05e44b9e2c6db6fd7ec815793ee5182" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname, "archive");
|
|
10109
10109
|
}
|
|
10110
10110
|
var import_node_crypto9, import_node_fs20, import_node_path16, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
10111
10111
|
var init_swift_compiler_digest = __esm({
|
|
@@ -30836,18 +30836,6 @@ async function hasLiveSwiftRootReaders(root, signal) {
|
|
|
30836
30836
|
}
|
|
30837
30837
|
return false;
|
|
30838
30838
|
}
|
|
30839
|
-
async function waitForNoSwiftRootReaders(root, signal) {
|
|
30840
|
-
let announced = false;
|
|
30841
|
-
while (await hasLiveSwiftRootReaders(root, signal)) {
|
|
30842
|
-
signal?.throwIfAborted();
|
|
30843
|
-
if (!announced) {
|
|
30844
|
-
announced = true;
|
|
30845
|
-
process.stderr.write(`[swift-root-lock] waiting for readers of ${root}
|
|
30846
|
-
`);
|
|
30847
|
-
}
|
|
30848
|
-
await pause(POLL_MS, signal);
|
|
30849
|
-
}
|
|
30850
|
-
}
|
|
30851
30839
|
async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
30852
30840
|
const directory2 = lockDirectoryFor(root);
|
|
30853
30841
|
const token = (0, import_node_crypto26.randomUUID)();
|
|
@@ -30886,8 +30874,8 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
30886
30874
|
const table = await processTableWithRetry(void 0, signal);
|
|
30887
30875
|
const orphaned = children2.filter((child) => groupAlive(table, child));
|
|
30888
30876
|
if (orphaned.length) {
|
|
30889
|
-
if (!wait) return void 0;
|
|
30890
30877
|
for (const child of orphaned) killOrphanedProcessGroup(child.pid);
|
|
30878
|
+
if (!wait) return void 0;
|
|
30891
30879
|
await waiting(
|
|
30892
30880
|
`stopping compiler groups ${orphaned.map((child) => child.pid).join(", ")} left by dead pid ${identity2.pid}`
|
|
30893
30881
|
);
|
|
@@ -39810,7 +39798,7 @@ function readFrameworkProductsReceipt(scratch2, receiptKey) {
|
|
|
39810
39798
|
objcHeaders: new Map(parsed2.objcHeaders)
|
|
39811
39799
|
};
|
|
39812
39800
|
}
|
|
39813
|
-
async function buildFrameworkProducts(scratch2, args) {
|
|
39801
|
+
async function buildFrameworkProducts(scratch2, args, allowWrite) {
|
|
39814
39802
|
const linkedTargets = linkedFrameworkTargets(args.moduleRoot, args.input);
|
|
39815
39803
|
const unoptimized = args.input.unoptimized === true;
|
|
39816
39804
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
@@ -39831,7 +39819,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
39831
39819
|
).digest("hex").slice(0, 32);
|
|
39832
39820
|
const ready = readFrameworkProductsReceipt(scratch2, receiptKey);
|
|
39833
39821
|
if (ready) return ready;
|
|
39834
|
-
|
|
39822
|
+
if (!allowWrite) return;
|
|
39835
39823
|
const linkRoot = import_node_path55.default.join(scratch2, "link");
|
|
39836
39824
|
writeFrameworkLinkPackage(linkRoot, args.moduleRoot, linkedTargets.products);
|
|
39837
39825
|
const frameworkTmp = import_node_path55.default.join(scratch2, "peach-compiler-tmp");
|
|
@@ -40070,13 +40058,36 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
40070
40058
|
(0, import_node_fs55.mkdirSync)(slot, { recursive: true });
|
|
40071
40059
|
return slot;
|
|
40072
40060
|
});
|
|
40073
|
-
const
|
|
40074
|
-
|
|
40075
|
-
|
|
40076
|
-
|
|
40061
|
+
const trySlot = (slot, mode, logSelection) => {
|
|
40062
|
+
return withSwiftRootLock(
|
|
40063
|
+
slot,
|
|
40064
|
+
async (lease) => {
|
|
40065
|
+
const matches = swiftFrameworkSlotKey(slot) === frameworkKey;
|
|
40066
|
+
if (mode !== "restage" && !matches) return;
|
|
40067
|
+
const allowWrite = mode !== "reuse";
|
|
40068
|
+
if (allowWrite && await hasLiveSwiftRootReaders(slot, signal)) return;
|
|
40069
|
+
if (!matches) logSelection?.();
|
|
40070
|
+
const value = await work(slot, lease, allowWrite);
|
|
40071
|
+
if (value === void 0) return;
|
|
40072
|
+
const now = /* @__PURE__ */ new Date();
|
|
40073
|
+
(0, import_node_fs55.utimesSync)(slot, now, now);
|
|
40074
|
+
return { value };
|
|
40075
|
+
},
|
|
40076
|
+
signal,
|
|
40077
|
+
false
|
|
40078
|
+
);
|
|
40079
|
+
};
|
|
40080
|
+
const tryExactSlots = async () => {
|
|
40081
|
+
const matching2 = slots.filter((slot) => swiftFrameworkSlotKey(slot) === frameworkKey);
|
|
40082
|
+
for (const mode of ["reuse", "extend"]) {
|
|
40083
|
+
for (const slot of matching2) {
|
|
40084
|
+
const result = await trySlot(slot, mode);
|
|
40085
|
+
if (result) return result;
|
|
40086
|
+
}
|
|
40087
|
+
}
|
|
40077
40088
|
};
|
|
40078
|
-
const
|
|
40079
|
-
if (
|
|
40089
|
+
const ready = await tryExactSlots();
|
|
40090
|
+
if (ready) return ready.value;
|
|
40080
40091
|
const built2 = new Map(slots.map((slot) => [slot, (0, import_node_fs55.statSync)(slot).mtimeMs]));
|
|
40081
40092
|
const own2 = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
40082
40093
|
const inputs2 = new Map(
|
|
@@ -40110,24 +40121,28 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
40110
40121
|
if (left.tier === 1) return left.index - right.index;
|
|
40111
40122
|
return (built2.get(left.slot) ?? 0) - (built2.get(right.slot) ?? 0);
|
|
40112
40123
|
});
|
|
40113
|
-
|
|
40114
|
-
|
|
40115
|
-
|
|
40116
|
-
|
|
40117
|
-
|
|
40118
|
-
|
|
40124
|
+
let announced = false;
|
|
40125
|
+
for (; ; ) {
|
|
40126
|
+
signal?.throwIfAborted();
|
|
40127
|
+
for (const { slot, tier, changes } of ranked) {
|
|
40128
|
+
if (swiftFrameworkSlotKey(slot) === frameworkKey) continue;
|
|
40129
|
+
const result = await trySlot(slot, "restage", () => {
|
|
40119
40130
|
console.error(
|
|
40120
40131
|
`[swift-framework-cache] ${import_node_path55.default.basename(slot)} release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs2.size}`
|
|
40121
40132
|
);
|
|
40122
|
-
|
|
40123
|
-
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40127
|
-
|
|
40133
|
+
});
|
|
40134
|
+
if (result) return result.value;
|
|
40135
|
+
}
|
|
40136
|
+
if (!announced) {
|
|
40137
|
+
console.error(
|
|
40138
|
+
`[swift-framework-cache] waiting for an available slot in ${slotsDir}`
|
|
40139
|
+
);
|
|
40140
|
+
announced = true;
|
|
40141
|
+
}
|
|
40142
|
+
await (0, import_promises7.setTimeout)(1e3, void 0, { signal });
|
|
40143
|
+
const ready2 = await tryExactSlots();
|
|
40144
|
+
if (ready2) return ready2.value;
|
|
40128
40145
|
}
|
|
40129
|
-
const nearest = ranked[0].slot;
|
|
40130
|
-
return withSwiftRootLock(nearest, run16(nearest), signal);
|
|
40131
40146
|
}
|
|
40132
40147
|
async function withSwiftBuildRootSlot(baseRoot, exactShape, compatShape, signal, work) {
|
|
40133
40148
|
const slots = Array.from({ length: SWIFT_BUILD_ROOT_SLOTS }, (_, index) => {
|
|
@@ -40431,34 +40446,34 @@ ${compatShape}` : "";
|
|
|
40431
40446
|
report(message);
|
|
40432
40447
|
};
|
|
40433
40448
|
const runLocked = (work) => {
|
|
40434
|
-
|
|
40435
|
-
|
|
40449
|
+
const runInBuildRoot = () => {
|
|
40450
|
+
if (canPoolBuildRoot)
|
|
40451
|
+
return withSwiftBuildRootSlot(
|
|
40452
|
+
baseRoot,
|
|
40453
|
+
exactShape,
|
|
40454
|
+
compatShape,
|
|
40455
|
+
budget.signal,
|
|
40456
|
+
work
|
|
40457
|
+
);
|
|
40458
|
+
const waitStart = Date.now();
|
|
40436
40459
|
return withSwiftRootLock(
|
|
40437
|
-
|
|
40438
|
-
|
|
40439
|
-
const built2 = readCompiledArtifact(
|
|
40440
|
-
import_node_path55.default.join(sharedRoot, "artifact"),
|
|
40441
|
-
hash
|
|
40442
|
-
);
|
|
40443
|
-
if (built2) {
|
|
40444
|
-
stage("reusing verified disk artifact");
|
|
40445
|
-
return retain(baseRoot, built2);
|
|
40446
|
-
}
|
|
40447
|
-
return withSwiftBuildRootSlot(
|
|
40448
|
-
baseRoot,
|
|
40449
|
-
exactShape,
|
|
40450
|
-
compatShape,
|
|
40451
|
-
budget.signal,
|
|
40452
|
-
work
|
|
40453
|
-
);
|
|
40454
|
-
},
|
|
40460
|
+
baseRoot,
|
|
40461
|
+
(lease) => work(baseRoot, lease, Date.now() - waitStart),
|
|
40455
40462
|
budget.signal
|
|
40456
40463
|
);
|
|
40457
|
-
}
|
|
40458
|
-
|
|
40464
|
+
};
|
|
40465
|
+
if (options2.intermediates || baseRoot === sharedRoot) return runInBuildRoot();
|
|
40459
40466
|
return withSwiftRootLock(
|
|
40460
|
-
|
|
40461
|
-
(
|
|
40467
|
+
sharedRoot,
|
|
40468
|
+
async () => {
|
|
40469
|
+
const built2 = readCompiledArtifact(import_node_path55.default.join(sharedRoot, "artifact"), hash);
|
|
40470
|
+
if (built2) {
|
|
40471
|
+
renewSharedArtifact(sharedRoot);
|
|
40472
|
+
stage("reusing verified disk artifact");
|
|
40473
|
+
return retain(baseRoot, built2);
|
|
40474
|
+
}
|
|
40475
|
+
return runInBuildRoot();
|
|
40476
|
+
},
|
|
40462
40477
|
budget.signal
|
|
40463
40478
|
);
|
|
40464
40479
|
};
|
|
@@ -40489,14 +40504,6 @@ ${compatShape}` : "";
|
|
|
40489
40504
|
);
|
|
40490
40505
|
}
|
|
40491
40506
|
const unoptimized = input.unoptimized === true;
|
|
40492
|
-
const withFrameworkLock = (work) => distribution ? work(null) : withSwiftFrameworkSlot(
|
|
40493
|
-
frameworkKey,
|
|
40494
|
-
options2.release,
|
|
40495
|
-
moduleRoot,
|
|
40496
|
-
budget.signal,
|
|
40497
|
-
work,
|
|
40498
|
-
unoptimized
|
|
40499
|
-
);
|
|
40500
40507
|
const baseBuildEnv = options2.project?.env ? {
|
|
40501
40508
|
...options2.project.env,
|
|
40502
40509
|
// shipped host plugins resolve against the selected compiler's runtime.
|
|
@@ -40509,22 +40516,13 @@ ${compatShape}` : "";
|
|
|
40509
40516
|
} : {},
|
|
40510
40517
|
PEACH_DEFER_WASM_LINK: "1"
|
|
40511
40518
|
} : swiftCompilerBaseEnv(options2.toolchainBin, process.env);
|
|
40512
|
-
const {
|
|
40513
|
-
|
|
40514
|
-
compileFrameworkRoot,
|
|
40515
|
-
macroPlugins,
|
|
40516
|
-
sdk: sdk2,
|
|
40517
|
-
icu,
|
|
40518
|
-
prebuilt,
|
|
40519
|
-
readHold: frameworkReadHold
|
|
40520
|
-
} = await withFrameworkLock(async (slot, frameworkLease) => {
|
|
40521
|
-
budget.startCompile();
|
|
40522
|
-
if (slot && swiftFrameworkSlotKey(slot) !== frameworkKey)
|
|
40523
|
-
await waitForNoSwiftRootReaders(slot, budget.signal);
|
|
40519
|
+
const prepareFrameworks = async (slot, frameworkLease, allowWrite = true) => {
|
|
40520
|
+
if (allowWrite) budget.startCompile();
|
|
40524
40521
|
const frameworkRoot2 = mirrorDistribution ? syncSwiftDistributionMirror(root2, moduleRoot, mirrorDistribution) : distribution ? moduleRoot : stageFrameworkSource(moduleRoot, slot, frameworkKey, options2.release);
|
|
40525
40522
|
if (!swiftModuleDigest(frameworkRoot2).equals(moduleDigest))
|
|
40526
40523
|
throw new Error("Swift staged project source differs from the caller");
|
|
40527
|
-
|
|
40524
|
+
if (!allowWrite && swiftMacroPlugins(frameworkRoot2).stale) return;
|
|
40525
|
+
if (allowWrite) stage("preparing compiler plugins");
|
|
40528
40526
|
const macroPlugins2 = await ensureMacroPlugins(
|
|
40529
40527
|
frameworkRoot2,
|
|
40530
40528
|
options2.toolchainBin,
|
|
@@ -40537,24 +40535,33 @@ ${compatShape}` : "";
|
|
|
40537
40535
|
const icu2 = options2.linkOnly ? null : swiftIcuAsset(options2.toolchainBin, sdk3);
|
|
40538
40536
|
let prebuilt2;
|
|
40539
40537
|
if (!distribution) {
|
|
40540
|
-
stage("compiling framework products");
|
|
40541
|
-
prebuilt2 = await buildFrameworkProducts(
|
|
40542
|
-
|
|
40543
|
-
|
|
40544
|
-
|
|
40545
|
-
|
|
40546
|
-
|
|
40547
|
-
|
|
40548
|
-
|
|
40549
|
-
|
|
40550
|
-
|
|
40551
|
-
|
|
40552
|
-
|
|
40553
|
-
|
|
40554
|
-
|
|
40555
|
-
|
|
40556
|
-
|
|
40557
|
-
|
|
40538
|
+
if (allowWrite) stage("compiling framework products");
|
|
40539
|
+
prebuilt2 = await buildFrameworkProducts(
|
|
40540
|
+
slot,
|
|
40541
|
+
{
|
|
40542
|
+
moduleRoot: frameworkRoot2,
|
|
40543
|
+
frameworkKey,
|
|
40544
|
+
input,
|
|
40545
|
+
swift,
|
|
40546
|
+
sdk: sdk3,
|
|
40547
|
+
toolchainBin: options2.toolchainBin,
|
|
40548
|
+
plugins: macroPlugins2,
|
|
40549
|
+
buildOptions: {
|
|
40550
|
+
env: baseBuildEnv,
|
|
40551
|
+
maxBuffer: 64 * 1024 * 1024,
|
|
40552
|
+
signal: budget.signal,
|
|
40553
|
+
onOutput: budget.progress,
|
|
40554
|
+
lease,
|
|
40555
|
+
frameworkLease
|
|
40556
|
+
}
|
|
40557
|
+
},
|
|
40558
|
+
allowWrite
|
|
40559
|
+
);
|
|
40560
|
+
if (!prebuilt2) return;
|
|
40561
|
+
if (!allowWrite) {
|
|
40562
|
+
budget.startCompile();
|
|
40563
|
+
stage("reusing verified framework products");
|
|
40564
|
+
}
|
|
40558
40565
|
}
|
|
40559
40566
|
const readHold2 = slot ? acquireSwiftRootReadHold(slot) : void 0;
|
|
40560
40567
|
return {
|
|
@@ -40566,8 +40573,26 @@ ${compatShape}` : "";
|
|
|
40566
40573
|
prebuilt: prebuilt2,
|
|
40567
40574
|
readHold: readHold2
|
|
40568
40575
|
};
|
|
40569
|
-
}
|
|
40570
|
-
|
|
40576
|
+
};
|
|
40577
|
+
const frameworks = distribution ? await prepareFrameworks(null) : await withSwiftFrameworkSlot(
|
|
40578
|
+
frameworkKey,
|
|
40579
|
+
options2.release,
|
|
40580
|
+
moduleRoot,
|
|
40581
|
+
budget.signal,
|
|
40582
|
+
prepareFrameworks,
|
|
40583
|
+
unoptimized
|
|
40584
|
+
);
|
|
40585
|
+
if (!frameworks)
|
|
40586
|
+
throw new Error("Swift distribution did not provide its frameworks");
|
|
40587
|
+
const {
|
|
40588
|
+
frameworkRoot,
|
|
40589
|
+
compileFrameworkRoot,
|
|
40590
|
+
macroPlugins,
|
|
40591
|
+
sdk: sdk2,
|
|
40592
|
+
icu,
|
|
40593
|
+
prebuilt
|
|
40594
|
+
} = frameworks;
|
|
40595
|
+
let readHold = frameworks.readHold;
|
|
40571
40596
|
const buildOptions = {
|
|
40572
40597
|
env: baseBuildEnv,
|
|
40573
40598
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -41122,7 +41147,7 @@ ${compatShape}` : "";
|
|
|
41122
41147
|
options2.signal
|
|
41123
41148
|
);
|
|
41124
41149
|
}
|
|
41125
|
-
var import_node_child_process35, import_node_crypto35, import_node_fs55, import_node_os14, import_node_path55, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
|
|
41150
|
+
var import_node_child_process35, import_node_crypto35, import_node_fs55, import_node_os14, import_node_path55, import_promises7, v6, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_COMPILER_ENV_KEYS, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, lastPartition, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, CLANG_DISTRIBUTION_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, MODULE_MAP_RESPONSE_FILE_RUN, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, OS_IOS, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, cPredefineTable, cPredefineCache, HIDDEN_UNITS, FIRST_WINS_PAIRS, LAST_WINS_PAIRS, VALUE_FLAGS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, frameworkProductsReceiptSchema, SWIFT_LINK_STAMP, SWIFT_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_UNOPTIMIZED_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN, SWIFT_FRAMEWORK_SLOT_RELEASE, SWIFT_BUILD_ROOT_SLOTS, SWIFT_BUILD_ROOT_SHAPE;
|
|
41126
41151
|
var init_swift_compile = __esm({
|
|
41127
41152
|
"src/swift-compile.ts"() {
|
|
41128
41153
|
"use strict";
|
|
@@ -41131,6 +41156,7 @@ var init_swift_compile = __esm({
|
|
|
41131
41156
|
import_node_fs55 = require("node:fs");
|
|
41132
41157
|
import_node_os14 = __toESM(require("node:os"), 1);
|
|
41133
41158
|
import_node_path55 = __toESM(require("node:path"), 1);
|
|
41159
|
+
import_promises7 = require("node:timers/promises");
|
|
41134
41160
|
v6 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
41135
41161
|
init_admitted_mac_build();
|
|
41136
41162
|
init_swift_c_predefines();
|
|
@@ -41355,7 +41381,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
41355
41381
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
41356
41382
|
MULTI_MANIFEST_VERSION = 76;
|
|
41357
41383
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
41358
|
-
compilerSourceDigest = true ? "
|
|
41384
|
+
compilerSourceDigest = true ? "7606d9522af3cd62eae6966cdb5705c5c4bea053686b189b779998d97a0463bd" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
41359
41385
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
41360
41386
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
41361
41387
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -80195,7 +80221,7 @@ var init_storeKitContract = __esm({
|
|
|
80195
80221
|
|
|
80196
80222
|
// src/storekit-test-store.ts
|
|
80197
80223
|
async function loadStoreKitTestStore(configuration, appDir) {
|
|
80198
|
-
const catalog = readStoreKitCatalog(JSON.parse(await (0,
|
|
80224
|
+
const catalog = readStoreKitCatalog(JSON.parse(await (0, import_promises8.readFile)(configuration, "utf8")));
|
|
80199
80225
|
const identityPath = import_node_path90.default.join(
|
|
80200
80226
|
cacheDir(),
|
|
80201
80227
|
"storekit-identities",
|
|
@@ -80203,7 +80229,7 @@ async function loadStoreKitTestStore(configuration, appDir) {
|
|
|
80203
80229
|
);
|
|
80204
80230
|
let signing;
|
|
80205
80231
|
try {
|
|
80206
|
-
const value = JSON.parse(await (0,
|
|
80232
|
+
const value = JSON.parse(await (0, import_promises8.readFile)(identityPath, "utf8"));
|
|
80207
80233
|
if (!isStoreKitSigningIdentity(value))
|
|
80208
80234
|
throw new Error(`invalid StoreKit signing identity: ${identityPath}`);
|
|
80209
80235
|
signing = value;
|
|
@@ -80227,17 +80253,17 @@ async function loadStoreKitTestStore(configuration, appDir) {
|
|
|
80227
80253
|
privateKey: await crypto.subtle.exportKey("jwk", keys.privateKey),
|
|
80228
80254
|
certificate: Buffer.from(certificate.rawData).toString("base64")
|
|
80229
80255
|
};
|
|
80230
|
-
await (0,
|
|
80231
|
-
await (0,
|
|
80256
|
+
await (0, import_promises8.mkdir)(import_node_path90.default.dirname(identityPath), { recursive: true });
|
|
80257
|
+
await (0, import_promises8.writeFile)(identityPath, JSON.stringify(signing), { mode: 384 });
|
|
80232
80258
|
}
|
|
80233
80259
|
return { ...catalog, signing };
|
|
80234
80260
|
}
|
|
80235
|
-
var import_node_crypto54,
|
|
80261
|
+
var import_node_crypto54, import_promises8, import_node_path90, import_x509;
|
|
80236
80262
|
var init_storekit_test_store = __esm({
|
|
80237
80263
|
"src/storekit-test-store.ts"() {
|
|
80238
80264
|
"use strict";
|
|
80239
80265
|
import_node_crypto54 = require("node:crypto");
|
|
80240
|
-
|
|
80266
|
+
import_promises8 = require("node:fs/promises");
|
|
80241
80267
|
import_node_path90 = __toESM(require("node:path"), 1);
|
|
80242
80268
|
init_storeKitContract();
|
|
80243
80269
|
import_x509 = require("peachsim/vendor/@peculiar/x509");
|
|
@@ -89016,7 +89042,7 @@ async function cxxDeclarations(astFile, headers) {
|
|
|
89016
89042
|
const result = [];
|
|
89017
89043
|
let lastFile = "";
|
|
89018
89044
|
let rootComplete = false;
|
|
89019
|
-
await (0,
|
|
89045
|
+
await (0, import_promises9.pipeline)(import_node_fs106.default.createReadStream(astFile), (0, import_stream_json.default)(), async (tokens2) => {
|
|
89020
89046
|
for await (const value of tokens2) {
|
|
89021
89047
|
if (!value || typeof value !== "object" || !("name" in value) || typeof value.name !== "string")
|
|
89022
89048
|
throw new Error("invalid clang AST token");
|
|
@@ -89110,13 +89136,13 @@ async function cxxDeclarations(astFile, headers) {
|
|
|
89110
89136
|
if (stack.length !== 0 || !rootComplete) throw new Error("truncated clang AST");
|
|
89111
89137
|
return result;
|
|
89112
89138
|
}
|
|
89113
|
-
var import_node_fs106, import_node_path108,
|
|
89139
|
+
var import_node_fs106, import_node_path108, import_promises9, import_stream_json, DECLARATIONS;
|
|
89114
89140
|
var init_swift_cxx_declarations = __esm({
|
|
89115
89141
|
"src/swift-cxx-declarations.ts"() {
|
|
89116
89142
|
"use strict";
|
|
89117
89143
|
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
89118
89144
|
import_node_path108 = __toESM(require("node:path"), 1);
|
|
89119
|
-
|
|
89145
|
+
import_promises9 = require("node:stream/promises");
|
|
89120
89146
|
import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
|
|
89121
89147
|
DECLARATIONS = /* @__PURE__ */ new Set([
|
|
89122
89148
|
"FunctionDecl",
|
|
@@ -93954,7 +93980,7 @@ async function buildRiveRuntimeDependencies(checkout, moduleRoot) {
|
|
|
93954
93980
|
if (!import_node_fs110.default.existsSync(complete)) {
|
|
93955
93981
|
let release = tryAcquireNumberedLock(`${output}.lock`);
|
|
93956
93982
|
while (!release) {
|
|
93957
|
-
await (0,
|
|
93983
|
+
await (0, import_promises10.setTimeout)(1e3);
|
|
93958
93984
|
release = tryAcquireNumberedLock(`${output}.lock`);
|
|
93959
93985
|
}
|
|
93960
93986
|
try {
|
|
@@ -94148,7 +94174,7 @@ exec ${quote3(import_node_path112.default.join(toolchainBin, "llvm-ar"))} rcs "$
|
|
|
94148
94174
|
);
|
|
94149
94175
|
return directory2;
|
|
94150
94176
|
}
|
|
94151
|
-
var import_node_child_process56, import_node_crypto67, import_node_fs110, import_node_os22, import_node_path112,
|
|
94177
|
+
var import_node_child_process56, import_node_crypto67, import_node_fs110, import_node_os22, import_node_path112, import_promises10, RECIPE, CONFIG, RUNTIME_LIBRARIES;
|
|
94152
94178
|
var init_rive_runtime_dependencies = __esm({
|
|
94153
94179
|
"src/rive-runtime-dependencies.ts"() {
|
|
94154
94180
|
"use strict";
|
|
@@ -94157,7 +94183,7 @@ var init_rive_runtime_dependencies = __esm({
|
|
|
94157
94183
|
import_node_fs110 = __toESM(require("node:fs"), 1);
|
|
94158
94184
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
94159
94185
|
import_node_path112 = __toESM(require("node:path"), 1);
|
|
94160
|
-
|
|
94186
|
+
import_promises10 = require("node:timers/promises");
|
|
94161
94187
|
init_home_paths();
|
|
94162
94188
|
init_numbered_lock();
|
|
94163
94189
|
init_swift_objc_runtime();
|
|
@@ -94281,7 +94307,7 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
|
|
|
94281
94307
|
const lock = async () => {
|
|
94282
94308
|
let release = tryAcquireNumberedLock(`${dir}.lock`);
|
|
94283
94309
|
while (!release) {
|
|
94284
|
-
await (0,
|
|
94310
|
+
await (0, import_promises11.setTimeout)(25, void 0, { signal });
|
|
94285
94311
|
release = tryAcquireNumberedLock(`${dir}.lock`);
|
|
94286
94312
|
}
|
|
94287
94313
|
return release;
|
|
@@ -94908,14 +94934,14 @@ function resolveSwiftPackages(options2) {
|
|
|
94908
94934
|
result.nativeProducts.push({ name: name3, packageDir: manifest.dir, source });
|
|
94909
94935
|
return result;
|
|
94910
94936
|
}
|
|
94911
|
-
var import_node_child_process57, import_node_fs111, import_node_path113,
|
|
94937
|
+
var import_node_child_process57, import_node_fs111, import_node_path113, import_promises11, import_node_util14, SWIFT_PLACEHOLDER_PACKAGES, placeholderPackage, sourceFrameworkRecipes, UNSUPPORTED_NATIVE, BINARY, blockers, verified, execFileAsync3, checkoutKey;
|
|
94912
94938
|
var init_swift_packages = __esm({
|
|
94913
94939
|
"src/swift-packages.ts"() {
|
|
94914
94940
|
"use strict";
|
|
94915
94941
|
import_node_child_process57 = require("node:child_process");
|
|
94916
94942
|
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
94917
94943
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
94918
|
-
|
|
94944
|
+
import_promises11 = require("node:timers/promises");
|
|
94919
94945
|
import_node_util14 = require("node:util");
|
|
94920
94946
|
init_git_repo_env();
|
|
94921
94947
|
init_native_git();
|
|
@@ -106135,7 +106161,7 @@ function hashPackageTree(root, options2) {
|
|
|
106135
106161
|
return (async () => {
|
|
106136
106162
|
for (let start = 0; start < files2.length; start += READ_AHEAD) {
|
|
106137
106163
|
const batch = files2.slice(start, start + READ_AHEAD);
|
|
106138
|
-
const bytes = await Promise.all(batch.map((file) => (0,
|
|
106164
|
+
const bytes = await Promise.all(batch.map((file) => (0, import_promises12.readFile)((0, import_node_path127.join)(root, file))));
|
|
106139
106165
|
batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
|
|
106140
106166
|
}
|
|
106141
106167
|
return hash.digest("hex");
|
|
@@ -106146,13 +106172,13 @@ function packageTreeDigest(root) {
|
|
|
106146
106172
|
compareNames: (left, right) => left.localeCompare(right)
|
|
106147
106173
|
});
|
|
106148
106174
|
}
|
|
106149
|
-
var import_node_crypto78, import_node_fs125,
|
|
106175
|
+
var import_node_crypto78, import_node_fs125, import_promises12, import_node_path127, READ_AHEAD;
|
|
106150
106176
|
var init_package_tree_digest = __esm({
|
|
106151
106177
|
"src/package-tree-digest.ts"() {
|
|
106152
106178
|
"use strict";
|
|
106153
106179
|
import_node_crypto78 = require("node:crypto");
|
|
106154
106180
|
import_node_fs125 = require("node:fs");
|
|
106155
|
-
|
|
106181
|
+
import_promises12 = require("node:fs/promises");
|
|
106156
106182
|
import_node_path127 = require("node:path");
|
|
106157
106183
|
READ_AHEAD = 64;
|
|
106158
106184
|
}
|
|
@@ -106289,7 +106315,7 @@ var init_nitro_superset = __esm({
|
|
|
106289
106315
|
init_nitroContract();
|
|
106290
106316
|
init_swift_standin_digest();
|
|
106291
106317
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
106292
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
106318
|
+
NITRO_COMPILER_DIGEST = true ? "42b9c2735db24e5274476b1509b854f1b975fbad4e587e3b6ac149bd83e52851" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
106293
106319
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
106294
106320
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
106295
106321
|
published = /* @__PURE__ */ new Map();
|
|
@@ -107269,7 +107295,7 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
107269
107295
|
|
|
107270
107296
|
// src/expo-native-compiler-digest.ts
|
|
107271
107297
|
function expoNativeCompilerDigestValue() {
|
|
107272
|
-
return true ? "
|
|
107298
|
+
return true ? "ded54d4f9d03d9107bb884853fd6a104b80e89fc69764289c24d0f6bd778d771" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
107273
107299
|
}
|
|
107274
107300
|
var import_node_crypto81;
|
|
107275
107301
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -115162,12 +115188,12 @@ function resolveReplacementModuleFile(fromFile, specifier) {
|
|
|
115162
115188
|
}
|
|
115163
115189
|
return found;
|
|
115164
115190
|
}
|
|
115165
|
-
var import_node_fs151,
|
|
115191
|
+
var import_node_fs151, import_promises13, import_node_path156;
|
|
115166
115192
|
var init_replacement_module_handler = __esm({
|
|
115167
115193
|
"src/host/replacement-module-handler.ts"() {
|
|
115168
115194
|
"use strict";
|
|
115169
115195
|
import_node_fs151 = require("node:fs");
|
|
115170
|
-
|
|
115196
|
+
import_promises13 = __toESM(require("node:fs/promises"), 1);
|
|
115171
115197
|
import_node_path156 = __toESM(require("node:path"), 1);
|
|
115172
115198
|
init_replacementModule();
|
|
115173
115199
|
init_backend_origin();
|
|
@@ -116286,7 +116312,7 @@ async function readPackagingInputs(projectRoot) {
|
|
|
116286
116312
|
}
|
|
116287
116313
|
async function snapshotDevServerBundles(origin, projectRoot, { platforms: platforms2 = ["ios", "android"], assertRunning = () => {
|
|
116288
116314
|
} } = {}) {
|
|
116289
|
-
const { setTimeout:
|
|
116315
|
+
const { setTimeout: delay2 } = await import("node:timers/promises");
|
|
116290
116316
|
const inputs2 = await readPackagingInputs(projectRoot);
|
|
116291
116317
|
const snapshots = [];
|
|
116292
116318
|
for (const platform2 of platforms2) {
|
|
@@ -116323,7 +116349,7 @@ ${await response.text()}`
|
|
|
116323
116349
|
const code = error.cause?.code ?? error.code;
|
|
116324
116350
|
if (!["ECONNREFUSED", "ECONNRESET", "EPIPE", "ETIMEDOUT", "EAI_AGAIN"].includes(code))
|
|
116325
116351
|
throw error;
|
|
116326
|
-
await
|
|
116352
|
+
await delay2(2e3, void 0, { signal }).catch(() => {
|
|
116327
116353
|
throw new Error(`dev server ${platform2} bundle timed out at ${url?.href ?? origin}: ${error.message}`, {
|
|
116328
116354
|
cause: error
|
|
116329
116355
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
4
4
|
describeInvalidScreenCapture,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
rnxRasterFrames,
|
|
11
11
|
rnxRasterRegionRequests,
|
|
12
12
|
selectRnxRasterNodeIds
|
|
13
|
-
} from "./esm-chunks/chunk-
|
|
14
|
-
import "./esm-chunks/chunk-
|
|
13
|
+
} from "./esm-chunks/chunk-43J3JBP2.mjs";
|
|
14
|
+
import "./esm-chunks/chunk-3QONY3XJ.mjs";
|
|
15
15
|
export {
|
|
16
16
|
RNX_SCREEN_CAPTURE_VERSION,
|
|
17
17
|
describeInvalidScreenCapture,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (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,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
AGENT_IDENTITY_MAX_CHARS,
|
|
4
4
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
readRnxLaunchUrl,
|
|
32
32
|
rnxCloudCommandScope,
|
|
33
33
|
rnxCloudScopesAllowCommand
|
|
34
|
-
} from "./esm-chunks/chunk-
|
|
35
|
-
import "./esm-chunks/chunk-
|
|
34
|
+
} from "./esm-chunks/chunk-YH7LJZMD.mjs";
|
|
35
|
+
import "./esm-chunks/chunk-3QONY3XJ.mjs";
|
|
36
36
|
export {
|
|
37
37
|
AGENT_IDENTITY_MAX_CHARS,
|
|
38
38
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (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,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./esm-chunks/chunk-
|
|
1
|
+
/*! peach v0.1.2692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-3QONY3XJ.mjs";
|
|
3
3
|
|
|
4
4
|
// src/cloud-test-args.ts
|
|
5
5
|
var CLOUD_TEST_ARGS_MAX_COUNT = 32;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (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;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2692 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
sleep
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-ZCCDRKXX.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRnxScreenCapture
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-43J3JBP2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
RNX_CLOUD_COMMAND_TYPES,
|
|
10
10
|
RNX_CLOUD_MAX_ARTIFACT_BYTES,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
isRnxCloudCommandType,
|
|
15
15
|
rnxCloudCommandScope,
|
|
16
16
|
rnxCloudScopesAllowCommand
|
|
17
|
-
} from "./esm-chunks/chunk-
|
|
17
|
+
} from "./esm-chunks/chunk-YH7LJZMD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
rnxPublicBrand
|
|
20
|
-
} from "./esm-chunks/chunk-
|
|
20
|
+
} from "./esm-chunks/chunk-EJ4CGZ6U.mjs";
|
|
21
21
|
import {
|
|
22
22
|
isRecord
|
|
23
|
-
} from "./esm-chunks/chunk-
|
|
23
|
+
} from "./esm-chunks/chunk-QGMB4YAD.mjs";
|
|
24
24
|
import {
|
|
25
25
|
__publicField
|
|
26
|
-
} from "./esm-chunks/chunk-
|
|
26
|
+
} from "./esm-chunks/chunk-3QONY3XJ.mjs";
|
|
27
27
|
|
|
28
28
|
// src/backend-origin.ts
|
|
29
29
|
var NativeURL = globalThis.URL;
|