peachsim 0.1.2624 → 0.1.2625
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 +339 -324
- 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-DH6VFUJ3.mjs → acorn-SHZZDBSI.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-CM2NU5MS.mjs → chunk-2LDG7OD4.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-UJORQHAE.mjs → chunk-3XZGWT62.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JHMD4G4V.mjs → chunk-6PZI7TYE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-265THLTP.mjs → chunk-7Z7YJ4FU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IMI2NE4A.mjs → chunk-A4R4YGFJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QNXV766K.mjs → chunk-A66VNSO6.mjs} +15 -15
- package/dist-lib/esm-chunks/{chunk-3XA5HYI5.mjs → chunk-DVMKYLDN.mjs} +9 -8
- package/dist-lib/esm-chunks/{chunk-LOQBWIPM.mjs → chunk-F4YHL4UM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LCO2EXKF.mjs → chunk-JRU2VXUU.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YOD53JTM.mjs → chunk-JVEJLPJC.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-AV7G5PTE.mjs → chunk-KA4AQDVF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HKPKCJI5.mjs → chunk-LJYNZ5HM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LMWSFXYN.mjs → chunk-M2FEKSK3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N4ZJZUCO.mjs → chunk-OCCZJOSA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LD7Z3NDO.mjs → chunk-P542MMIN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OLAYY7SG.mjs → chunk-Q5NI4L3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QZ5HTMWV.mjs → chunk-R4FFTWPL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-A2WMBGJO.mjs → chunk-RJWEWNAJ.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-T7C6Z5UH.mjs → chunk-RXXCTHJG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LT533AHJ.mjs → chunk-SRIRVPNX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XONCLAVA.mjs → chunk-ULHG6CND.mjs} +21 -13
- package/dist-lib/esm-chunks/{chunk-2YHIYKY2.mjs → chunk-W4HQINQ6.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-EFQFJ7M6.mjs → chunk-XQBHCWS4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VH4BJS5V.mjs → chunk-Z6AH6AQC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-MDVTDJ65.mjs → metro-layout-parser-GJHR7FCR.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-ZN7I4FYC.mjs → swift-package-prebuilt-UVRGKTD4.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-DUVE2OXH.mjs → swift-sdk-app-module-U3MUJ7QD.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-YSWQBCYV.mjs → swift-sdk-image-U4W7QMAT.mjs} +16 -18
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-MZ235WSK.mjs → swift-sdk-image-producer-TFFZDNRK.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +240 -225
- 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 +343 -328
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -6
- 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 +4 -3
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +87 -86
- package/dist-lib/public-origins-lib.json +69 -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 +380 -365
- package/dist-lib/swift-compile.cjs +75 -61
- 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-distribution-contract.ts +6 -1
- package/src/swift-distribution.lock.json +4 -2
- package/src/swift-sdk-image-recipe.ts +20 -0
- package/src/swift-sdk-image.ts +2 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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;
|
|
@@ -18928,6 +18928,21 @@ var init_swift_root_lock = __esm({
|
|
|
18928
18928
|
}
|
|
18929
18929
|
});
|
|
18930
18930
|
|
|
18931
|
+
// src/swift-sdk-image-recipe.ts
|
|
18932
|
+
var import_node_crypto24, SWIFT_SDK_IMAGE_VERSION, swiftSdkImageScope, SWIFT_SDK_IMAGE_RECIPE;
|
|
18933
|
+
var init_swift_sdk_image_recipe = __esm({
|
|
18934
|
+
"src/swift-sdk-image-recipe.ts"() {
|
|
18935
|
+
"use strict";
|
|
18936
|
+
import_node_crypto24 = require("node:crypto");
|
|
18937
|
+
init_wasm_optimize();
|
|
18938
|
+
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
18939
|
+
swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
18940
|
+
SWIFT_SDK_IMAGE_RECIPE = (0, import_node_crypto24.createHash)("sha256").update(`swift-sdk-image
|
|
18941
|
+
${SWIFT_SDK_IMAGE_VERSION}
|
|
18942
|
+
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
18943
|
+
}
|
|
18944
|
+
});
|
|
18945
|
+
|
|
18931
18946
|
// src/swift-sdk-image-producer.ts
|
|
18932
18947
|
var swift_sdk_image_producer_exports = {};
|
|
18933
18948
|
__export(swift_sdk_image_producer_exports, {
|
|
@@ -18968,7 +18983,7 @@ function applySwiftSdkProducerEnvironment(environment) {
|
|
|
18968
18983
|
}
|
|
18969
18984
|
}
|
|
18970
18985
|
function writeSwiftSdkProducerResult(file, launchId, error) {
|
|
18971
|
-
const temporary = `${file}.${(0,
|
|
18986
|
+
const temporary = `${file}.${(0, import_node_crypto25.randomUUID)()}`;
|
|
18972
18987
|
(0, import_node_fs36.writeFileSync)(temporary, JSON.stringify({ launchId, error: error ?? null }));
|
|
18973
18988
|
(0, import_node_fs36.renameSync)(temporary, file);
|
|
18974
18989
|
}
|
|
@@ -19080,7 +19095,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
19080
19095
|
}
|
|
19081
19096
|
}
|
|
19082
19097
|
const repo = import_node_path36.default.resolve(input.moduleRoot, "../..");
|
|
19083
|
-
const launchId = (0,
|
|
19098
|
+
const launchId = (0, import_node_crypto25.randomUUID)();
|
|
19084
19099
|
const directory2 = import_node_path36.default.join(root, launchId);
|
|
19085
19100
|
const requestFile = import_node_path36.default.join(directory2, "request.json");
|
|
19086
19101
|
const sessionFile2 = import_node_path36.default.join(directory2, "session");
|
|
@@ -19178,12 +19193,12 @@ async function produceSwiftSdkImage(input) {
|
|
|
19178
19193
|
await (0, import_promises5.setTimeout)(2e3, void 0, { signal: input.signal });
|
|
19179
19194
|
}
|
|
19180
19195
|
}
|
|
19181
|
-
var import_node_child_process23,
|
|
19196
|
+
var import_node_child_process23, import_node_crypto25, import_node_fs36, import_node_path36, import_promises5, import_node_util6, run, environmentNames, launcher;
|
|
19182
19197
|
var init_swift_sdk_image_producer = __esm({
|
|
19183
19198
|
"src/swift-sdk-image-producer.ts"() {
|
|
19184
19199
|
"use strict";
|
|
19185
19200
|
import_node_child_process23 = require("node:child_process");
|
|
19186
|
-
|
|
19201
|
+
import_node_crypto25 = require("node:crypto");
|
|
19187
19202
|
import_node_fs36 = require("node:fs");
|
|
19188
19203
|
import_node_path36 = __toESM(require("node:path"), 1);
|
|
19189
19204
|
import_promises5 = require("node:timers/promises");
|
|
@@ -19223,7 +19238,6 @@ __export(swift_sdk_image_exports, {
|
|
|
19223
19238
|
SWIFT_SDK_APP_TABLE_BASE: () => SWIFT_SDK_APP_TABLE_BASE,
|
|
19224
19239
|
SWIFT_SDK_IMAGE_BUNDLE: () => SWIFT_SDK_IMAGE_BUNDLE,
|
|
19225
19240
|
SWIFT_SDK_IMAGE_FILES: () => SWIFT_SDK_IMAGE_FILES,
|
|
19226
|
-
SWIFT_SDK_IMAGE_VERSION: () => SWIFT_SDK_IMAGE_VERSION,
|
|
19227
19241
|
SWIFT_SDK_MEMORY_BASE: () => SWIFT_SDK_MEMORY_BASE,
|
|
19228
19242
|
SWIFT_SDK_PIECE_FIELDS: () => SWIFT_SDK_PIECE_FIELDS,
|
|
19229
19243
|
buildSwiftSdkImage: () => buildSwiftSdkImage,
|
|
@@ -19258,9 +19272,9 @@ function swiftSdkImageProducts(moduleRoot, frameworkImports) {
|
|
|
19258
19272
|
function swiftSdkImageKey(moduleRoot, scopedLookups = false, products = []) {
|
|
19259
19273
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
19260
19274
|
const inputs = distribution ? swiftSdkDistributionInputs(distribution) : swiftModuleDigest(moduleRoot);
|
|
19261
|
-
return (0,
|
|
19275
|
+
return (0, import_node_crypto26.createHash)("sha256").update(`swift-sdk-image
|
|
19262
19276
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
19263
|
-
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(scopedLookups
|
|
19277
|
+
`).update(WASM_LOWER_IDENTITY).update(KEEP_WASM_NAMES ? "\nnames\n" : "\n").update(swiftSdkImageScope(scopedLookups)).update(inputs).update(products.length === 0 ? "" : `
|
|
19264
19278
|
products ${products.join(" ")}`).digest("hex").slice(0, 32);
|
|
19265
19279
|
}
|
|
19266
19280
|
function swiftSdkImageEntry(key, scopedLookups) {
|
|
@@ -19349,7 +19363,7 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
19349
19363
|
stage
|
|
19350
19364
|
]);
|
|
19351
19365
|
const image = cached(stage, key);
|
|
19352
|
-
if (!image || (0,
|
|
19366
|
+
if (!image || (0, import_node_crypto26.createHash)("sha256").update((0, import_node_fs37.readFileSync)(image.image)).digest("hex") !== image.sha256)
|
|
19353
19367
|
throw new Error(`invalid published Swift SDK image ${key}`);
|
|
19354
19368
|
(0, import_node_fs37.rmSync)(directory, { recursive: true, force: true });
|
|
19355
19369
|
(0, import_node_fs37.renameSync)(stage, directory);
|
|
@@ -19619,7 +19633,7 @@ async function linkSwiftSdkImage(moduleRoot, key, directory, work, scopedLookups
|
|
|
19619
19633
|
(0, import_node_fs37.writeFileSync)(import_node_path37.default.join(work, INTERFACE_FILE), JSON.stringify(sdkInterface));
|
|
19620
19634
|
(0, import_node_fs37.writeFileSync)(
|
|
19621
19635
|
import_node_path37.default.join(work, IMAGE_DIGEST),
|
|
19622
|
-
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0,
|
|
19636
|
+
typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(image).digest("hex") : (0, import_node_crypto26.createHash)("sha256").update(image).digest("hex")
|
|
19623
19637
|
);
|
|
19624
19638
|
if (swiftSdkImageKey(
|
|
19625
19639
|
moduleRoot,
|
|
@@ -19888,12 +19902,12 @@ function readSwiftSdkManifest(image) {
|
|
|
19888
19902
|
}));
|
|
19889
19903
|
return setBoundedCache(cachedSdkManifests, cacheKey, { manifest, block, segments });
|
|
19890
19904
|
}
|
|
19891
|
-
var import_node_child_process24,
|
|
19905
|
+
var import_node_child_process24, import_node_crypto26, import_node_fs37, import_node_path37, import_node_util7, run2, SWIFT_SDK_APP_MEMORY_BASE, SWIFT_SDK_MEMORY_BASE, SWIFT_SDK_APP_TABLE_BASE, EMPTY_APP, IMAGE_TABLES, IMAGE_ENTRY, imageApp, IMAGE_FILE, IMAGE_DIGEST, swiftSdkImageFile, INTERFACE_FILE, MANIFEST_FILE, MANIFEST_DATA_FILE, SWIFT_SDK_IMAGE_FILES, SWIFT_SDK_IMAGE_BUNDLE, MAX_CACHED_SDK_IMAGES, cachedSdkInterfaces, cachedSdkManifestIndices, cachedSdkManifests, SWIFT_SDK_PIECE_FIELDS, MANIFEST_BLOCKS, isManifestBlock;
|
|
19892
19906
|
var init_swift_sdk_image = __esm({
|
|
19893
19907
|
"src/swift-sdk-image.ts"() {
|
|
19894
19908
|
"use strict";
|
|
19895
19909
|
import_node_child_process24 = require("node:child_process");
|
|
19896
|
-
|
|
19910
|
+
import_node_crypto26 = require("node:crypto");
|
|
19897
19911
|
import_node_fs37 = require("node:fs");
|
|
19898
19912
|
import_node_path37 = __toESM(require("node:path"), 1);
|
|
19899
19913
|
import_node_util7 = require("node:util");
|
|
@@ -19905,13 +19919,13 @@ var init_swift_sdk_image = __esm({
|
|
|
19905
19919
|
init_swift_root_lock();
|
|
19906
19920
|
init_swift_sdk_guest_lookups();
|
|
19907
19921
|
init_swift_sdk_image_map();
|
|
19922
|
+
init_swift_sdk_image_recipe();
|
|
19908
19923
|
init_swift_sdk_image_wasm();
|
|
19909
19924
|
init_swift_toolchain();
|
|
19910
19925
|
init_swift_wasm_prune();
|
|
19911
19926
|
init_swiftTargetContract();
|
|
19912
19927
|
init_wasm_optimize();
|
|
19913
19928
|
run2 = (0, import_node_util7.promisify)(import_node_child_process24.execFile);
|
|
19914
|
-
SWIFT_SDK_IMAGE_VERSION = 13;
|
|
19915
19929
|
SWIFT_SDK_APP_MEMORY_BASE = 8372224;
|
|
19916
19930
|
SWIFT_SDK_MEMORY_BASE = 128 * 1024 * 1024;
|
|
19917
19931
|
SWIFT_SDK_APP_TABLE_BASE = 524288;
|
|
@@ -20437,7 +20451,7 @@ async function linkSwiftAppModule(options) {
|
|
|
20437
20451
|
lazy,
|
|
20438
20452
|
KEEP_WASM_NAMES
|
|
20439
20453
|
])
|
|
20440
|
-
).update(bytes).digest("hex") : (0,
|
|
20454
|
+
).update(bytes).digest("hex") : (0, import_node_crypto27.createHash)("sha256").update(
|
|
20441
20455
|
JSON.stringify([
|
|
20442
20456
|
loweringCache.compilerDigest,
|
|
20443
20457
|
optimize,
|
|
@@ -21056,7 +21070,7 @@ function createSwiftSdkBinding(linkage, sdk, usage, projection) {
|
|
|
21056
21070
|
bindSwiftAppModule(linkage, sdk),
|
|
21057
21071
|
selectSwiftSdkData(sdk, usage, linkage, projection)
|
|
21058
21072
|
]);
|
|
21059
|
-
const sha2562 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0,
|
|
21073
|
+
const sha2562 = typeof Bun !== "undefined" ? new Bun.CryptoHasher("sha256").update(bytes).digest("hex") : (0, import_node_crypto27.createHash)("sha256").update(bytes).digest("hex");
|
|
21060
21074
|
return { bytes, sha256: sha2562 };
|
|
21061
21075
|
}
|
|
21062
21076
|
function readSwiftSdkUsage(mapFile, linkedFile, sdkObjects) {
|
|
@@ -21603,12 +21617,12 @@ function partitionParent(section2) {
|
|
|
21603
21617
|
"__objc_class_refs"
|
|
21604
21618
|
].find((name3) => section2 === name3 || section2.startsWith(`${name3}.`));
|
|
21605
21619
|
}
|
|
21606
|
-
var import_node_child_process25,
|
|
21620
|
+
var import_node_child_process25, import_node_crypto27, import_node_fs38, import_node_path38, import_node_util8, import_node_zlib4, run3, RELOCATION_WIDTHS, GLOBAL_INDEX, TLS_SLEB64, SDK_TLS_HELPER, SDK_TLS_DELTA, OBJC_SECTION_BOUNDARY, uleb4, sleb2, encodedName2, SCANNED, RUN_GAP;
|
|
21607
21621
|
var init_swift_sdk_app_module = __esm({
|
|
21608
21622
|
"src/swift-sdk-app-module.ts"() {
|
|
21609
21623
|
"use strict";
|
|
21610
21624
|
import_node_child_process25 = require("node:child_process");
|
|
21611
|
-
|
|
21625
|
+
import_node_crypto27 = require("node:crypto");
|
|
21612
21626
|
import_node_fs38 = require("node:fs");
|
|
21613
21627
|
import_node_path38 = __toESM(require("node:path"), 1);
|
|
21614
21628
|
import_node_util8 = require("node:util");
|
|
@@ -22314,7 +22328,7 @@ function compilerCheckpoint(root, recipe, args, header) {
|
|
|
22314
22328
|
}
|
|
22315
22329
|
if (!objects.length) return;
|
|
22316
22330
|
const outputs = [module2, header, map[""].dependencies, ...objects];
|
|
22317
|
-
const digest = (0,
|
|
22331
|
+
const digest = (0, import_node_crypto28.createHash)("sha256").update(recipe).update(JSON.stringify(args)).update(mapText);
|
|
22318
22332
|
for (const flag of args) {
|
|
22319
22333
|
if (!flag.startsWith("@")) continue;
|
|
22320
22334
|
const response = flag.slice(1);
|
|
@@ -22408,11 +22422,11 @@ async function withSwiftHeaderCompiler(root, toolchainBin, recipe, producers, bu
|
|
|
22408
22422
|
(0, import_node_fs40.rmSync)(directory, { recursive: true, force: true });
|
|
22409
22423
|
}
|
|
22410
22424
|
}
|
|
22411
|
-
var
|
|
22425
|
+
var import_node_crypto28, import_node_fs40, import_node_http, import_node_path40, SWIFT_HEADER_COMPILER_WRAPPER, argument, client;
|
|
22412
22426
|
var init_swift_header_compiler = __esm({
|
|
22413
22427
|
"src/swift-header-compiler.ts"() {
|
|
22414
22428
|
"use strict";
|
|
22415
|
-
|
|
22429
|
+
import_node_crypto28 = require("node:crypto");
|
|
22416
22430
|
import_node_fs40 = require("node:fs");
|
|
22417
22431
|
import_node_http = require("node:http");
|
|
22418
22432
|
import_node_path40 = __toESM(require("node:path"), 1);
|
|
@@ -22676,7 +22690,7 @@ var init_icuData = __esm({
|
|
|
22676
22690
|
|
|
22677
22691
|
// src/swift-icu.ts
|
|
22678
22692
|
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
22679
|
-
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0,
|
|
22693
|
+
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto29.createHash)("sha256").update(bytes).digest("hex");
|
|
22680
22694
|
const cacheId = `${quality}:${key}`;
|
|
22681
22695
|
const cached2 = brotliMemoryCache.get(cacheId);
|
|
22682
22696
|
if (cached2) return cached2;
|
|
@@ -22694,7 +22708,7 @@ async function cachedBrotli(bytes, quality, cacheKey) {
|
|
|
22694
22708
|
});
|
|
22695
22709
|
try {
|
|
22696
22710
|
await (0, import_promises6.mkdir)(dir, { recursive: true });
|
|
22697
|
-
const tmp = `${file}.${(0,
|
|
22711
|
+
const tmp = `${file}.${(0, import_node_crypto29.randomUUID)()}.tmp`;
|
|
22698
22712
|
await (0, import_promises6.writeFile)(tmp, compressed);
|
|
22699
22713
|
await (0, import_promises6.rename)(tmp, file);
|
|
22700
22714
|
} catch {
|
|
@@ -22732,7 +22746,7 @@ function swiftIcuAsset(toolchainBin, sdk) {
|
|
|
22732
22746
|
JSON.stringify([toolchainBin, sdk, swiftSdkOptions()]),
|
|
22733
22747
|
async () => {
|
|
22734
22748
|
const zipped = await deflate(await swiftIcuData(toolchainBin, sdk));
|
|
22735
|
-
return { sha256: (0,
|
|
22749
|
+
return { sha256: (0, import_node_crypto29.createHash)("sha256").update(zipped).digest("hex"), gzip: zipped };
|
|
22736
22750
|
}
|
|
22737
22751
|
);
|
|
22738
22752
|
}
|
|
@@ -22834,7 +22848,7 @@ function swiftIcuPacked(icu) {
|
|
|
22834
22848
|
)
|
|
22835
22849
|
);
|
|
22836
22850
|
await (0, import_promises6.mkdir)(import_node_path42.default.dirname(file), { recursive: true });
|
|
22837
|
-
const tmp = `${file}.${(0,
|
|
22851
|
+
const tmp = `${file}.${(0, import_node_crypto29.randomUUID)()}.tmp`;
|
|
22838
22852
|
await (0, import_promises6.writeFile)(tmp, packed);
|
|
22839
22853
|
await (0, import_promises6.rename)(tmp, file);
|
|
22840
22854
|
return packed;
|
|
@@ -22847,12 +22861,12 @@ async function swiftIcuBundleAsset(icu) {
|
|
|
22847
22861
|
contentType: "application/octet-stream"
|
|
22848
22862
|
};
|
|
22849
22863
|
}
|
|
22850
|
-
var import_node_child_process27,
|
|
22864
|
+
var import_node_child_process27, import_node_crypto29, import_node_fs41, import_promises6, import_node_os11, import_node_path42, import_node_util9, import_node_zlib5, run4, deflate, compressBrotli, inflateGzip, ARCHIVE, MEMBER, raw, assets, brotliMemoryCache, packedFiles;
|
|
22851
22865
|
var init_swift_icu = __esm({
|
|
22852
22866
|
"src/swift-icu.ts"() {
|
|
22853
22867
|
"use strict";
|
|
22854
22868
|
import_node_child_process27 = require("node:child_process");
|
|
22855
|
-
|
|
22869
|
+
import_node_crypto29 = require("node:crypto");
|
|
22856
22870
|
import_node_fs41 = require("node:fs");
|
|
22857
22871
|
import_promises6 = require("node:fs/promises");
|
|
22858
22872
|
import_node_os11 = __toESM(require("node:os"), 1);
|
|
@@ -23123,7 +23137,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
23123
23137
|
);
|
|
23124
23138
|
if (!modules.length) return [];
|
|
23125
23139
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
23126
|
-
const compiler = (0,
|
|
23140
|
+
const compiler = (0, import_node_crypto30.createHash)("sha256").update(import_node_fs43.default.readFileSync(clang)).digest("hex");
|
|
23127
23141
|
return [
|
|
23128
23142
|
'case "$module" in',
|
|
23129
23143
|
` ${modules.join("|")}) exec ${[
|
|
@@ -23141,12 +23155,12 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
23141
23155
|
"esac"
|
|
23142
23156
|
];
|
|
23143
23157
|
}
|
|
23144
|
-
var import_node_child_process29,
|
|
23158
|
+
var import_node_child_process29, import_node_crypto30, import_node_fs43, import_node_path44, quote;
|
|
23145
23159
|
var init_swift_objc_prebuilt = __esm({
|
|
23146
23160
|
"src/swift-objc-prebuilt.ts"() {
|
|
23147
23161
|
"use strict";
|
|
23148
23162
|
import_node_child_process29 = require("node:child_process");
|
|
23149
|
-
|
|
23163
|
+
import_node_crypto30 = require("node:crypto");
|
|
23150
23164
|
import_node_fs43 = __toESM(require("node:fs"), 1);
|
|
23151
23165
|
import_node_path44 = __toESM(require("node:path"), 1);
|
|
23152
23166
|
init_internal_child_contract();
|
|
@@ -23499,7 +23513,7 @@ function swiftPackagePrebuiltEntries(input, moduleRoot, toolchainBin) {
|
|
|
23499
23513
|
([file, source]) => !/\.(?:swift|c|h|inc|modulemap)$/.test(file) || file.endsWith(".swift") && swiftImportNames(source, available).some((name4) => !available.has(name4))
|
|
23500
23514
|
))
|
|
23501
23515
|
return [];
|
|
23502
|
-
const hash = (0,
|
|
23516
|
+
const hash = (0, import_node_crypto31.createHash)("sha256");
|
|
23503
23517
|
for (const entry of files.sort(
|
|
23504
23518
|
([left], [right]) => left < right ? -1 : left > right ? 1 : 0
|
|
23505
23519
|
))
|
|
@@ -23566,11 +23580,11 @@ function useSwiftPackagePrebuilts(input, moduleRoot, toolchainBin) {
|
|
|
23566
23580
|
}
|
|
23567
23581
|
return resolved;
|
|
23568
23582
|
}
|
|
23569
|
-
var
|
|
23583
|
+
var import_node_crypto31, import_node_fs46, import_node_path48, PACKAGE_RECIPE;
|
|
23570
23584
|
var init_swift_package_prebuilt = __esm({
|
|
23571
23585
|
"src/swift-package-prebuilt.ts"() {
|
|
23572
23586
|
"use strict";
|
|
23573
|
-
|
|
23587
|
+
import_node_crypto31 = require("node:crypto");
|
|
23574
23588
|
import_node_fs46 = __toESM(require("node:fs"), 1);
|
|
23575
23589
|
import_node_path48 = __toESM(require("node:path"), 1);
|
|
23576
23590
|
init_native_prebuilt();
|
|
@@ -23797,7 +23811,7 @@ function swiftObjCSelectorOptions(moduleRoot) {
|
|
|
23797
23811
|
`;
|
|
23798
23812
|
if (!(0, import_node_fs47.existsSync)(map) || (0, import_node_fs47.readFileSync)(map, "utf8") !== content) {
|
|
23799
23813
|
(0, import_node_fs47.mkdirSync)(import_node_path49.default.dirname(map), { recursive: true });
|
|
23800
|
-
const partial = `${map}.${(0,
|
|
23814
|
+
const partial = `${map}.${(0, import_node_crypto32.randomUUID)()}`;
|
|
23801
23815
|
(0, import_node_fs47.writeFileSync)(partial, content);
|
|
23802
23816
|
(0, import_node_fs47.renameSync)(partial, map);
|
|
23803
23817
|
}
|
|
@@ -23825,7 +23839,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
23825
23839
|
return { libraries, executables };
|
|
23826
23840
|
}
|
|
23827
23841
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
23828
|
-
return (0,
|
|
23842
|
+
return (0, import_node_crypto32.createHash)("sha256").update(`swift-framework/v2\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
23829
23843
|
}
|
|
23830
23844
|
function sameStringList(left, right) {
|
|
23831
23845
|
if (left === right) return true;
|
|
@@ -24073,7 +24087,7 @@ function distributionClangModuleOptions(root, modules) {
|
|
|
24073
24087
|
function providedModulesPath(root, modules, excluded) {
|
|
24074
24088
|
if (!excluded || excluded.size === 0) return modules;
|
|
24075
24089
|
const entries2 = (0, import_node_fs47.readdirSync)(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
|
|
24076
|
-
const key = (0,
|
|
24090
|
+
const key = (0, import_node_crypto32.createHash)("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
24077
24091
|
const directory = import_node_path49.default.join(root, `.peach-modules-${key}`);
|
|
24078
24092
|
const complete = import_node_path49.default.join(directory, ".complete");
|
|
24079
24093
|
if (!(0, import_node_fs47.existsSync)(complete)) {
|
|
@@ -24158,10 +24172,10 @@ function swiftArtifactHash(input, release, moduleRoot) {
|
|
|
24158
24172
|
function sha256Digest(value) {
|
|
24159
24173
|
if (typeof Bun !== "undefined")
|
|
24160
24174
|
return new Bun.CryptoHasher("sha256").update(value).digest();
|
|
24161
|
-
return (0,
|
|
24175
|
+
return (0, import_node_crypto32.createHash)("sha256").update(value).digest();
|
|
24162
24176
|
}
|
|
24163
24177
|
function swiftCompileInputHash(input, release) {
|
|
24164
|
-
const hash = (0,
|
|
24178
|
+
const hash = (0, import_node_crypto32.createHash)("sha256");
|
|
24165
24179
|
hash.update(`swift-compile
|
|
24166
24180
|
${release}
|
|
24167
24181
|
`);
|
|
@@ -24368,7 +24382,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
24368
24382
|
].join("\n") + "\n";
|
|
24369
24383
|
distributionLinkPath = distributionLink.path.replace(
|
|
24370
24384
|
/\.rsp$/,
|
|
24371
|
-
`-${(0,
|
|
24385
|
+
`-${(0, import_node_crypto32.createHash)("sha256").update(list).digest("hex").slice(0, 12)}.rsp`
|
|
24372
24386
|
);
|
|
24373
24387
|
distributionLink.files.set(distributionLinkPath, list);
|
|
24374
24388
|
}
|
|
@@ -24389,7 +24403,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
24389
24403
|
const endRun = () => {
|
|
24390
24404
|
if (run5.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
|
|
24391
24405
|
const lines = run5.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
24392
|
-
const digest2 = (0,
|
|
24406
|
+
const digest2 = (0, import_node_crypto32.createHash)("sha256").update(lines).digest("hex");
|
|
24393
24407
|
const file2 = import_node_path49.default.join(args.root, ".peach-clang-arguments", `${digest2}.rsp`);
|
|
24394
24408
|
args.files.set(file2, lines);
|
|
24395
24409
|
flags.push(`@${file2}`);
|
|
@@ -24413,7 +24427,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
24413
24427
|
}
|
|
24414
24428
|
endRun();
|
|
24415
24429
|
const content = JSON.stringify(flags);
|
|
24416
|
-
const digest = (0,
|
|
24430
|
+
const digest = (0, import_node_crypto32.createHash)("sha256").update(content).digest("hex");
|
|
24417
24431
|
const file = import_node_path49.default.join(args.root, ".peach-manifest-arguments", `${digest}.json`);
|
|
24418
24432
|
args.files.set(file, content);
|
|
24419
24433
|
return `peachCompilerArguments(${JSON.stringify(file)})`;
|
|
@@ -24425,7 +24439,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
24425
24439
|
const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
|
|
24426
24440
|
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
24427
24441
|
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
24428
|
-
const digest = (0,
|
|
24442
|
+
const digest = (0, import_node_crypto32.createHash)("sha256").update(content).digest("hex");
|
|
24429
24443
|
const file = import_node_path49.default.join(args.root, ".peach-swift-arguments", `${digest}.rsp`);
|
|
24430
24444
|
args.files.set(file, content);
|
|
24431
24445
|
return JSON.stringify([`@${file}`]);
|
|
@@ -26073,7 +26087,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
26073
26087
|
)
|
|
26074
26088
|
];
|
|
26075
26089
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
26076
|
-
const identity = (0,
|
|
26090
|
+
const identity = (0, import_node_crypto32.createHash)("sha256").update(
|
|
26077
26091
|
JSON.stringify([
|
|
26078
26092
|
cxx,
|
|
26079
26093
|
quoteDirs,
|
|
@@ -26436,7 +26450,7 @@ module ${moduleName}.Swift {
|
|
|
26436
26450
|
])
|
|
26437
26451
|
(0, import_node_fs47.rmSync)(cache, { recursive: true, force: true });
|
|
26438
26452
|
files.set(frameworkSearchRecord, frameworkSearch);
|
|
26439
|
-
const modulePlan = (0,
|
|
26453
|
+
const modulePlan = (0, import_node_crypto32.createHash)("sha256").update(
|
|
26440
26454
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
26441
26455
|
);
|
|
26442
26456
|
if (!distribution) {
|
|
@@ -26445,7 +26459,7 @@ module ${moduleName}.Swift {
|
|
|
26445
26459
|
modulePlan.update(
|
|
26446
26460
|
Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
|
|
26447
26461
|
);
|
|
26448
|
-
const resourcePlan = (0,
|
|
26462
|
+
const resourcePlan = (0, import_node_crypto32.createHash)("sha256").update(
|
|
26449
26463
|
JSON.stringify(
|
|
26450
26464
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
26451
26465
|
target.name,
|
|
@@ -26753,7 +26767,7 @@ ${entry}`);
|
|
|
26753
26767
|
);
|
|
26754
26768
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
26755
26769
|
const bytes = Buffer.from(data, "base64");
|
|
26756
|
-
const digest = (0,
|
|
26770
|
+
const digest = (0, import_node_crypto32.createHash)("sha256").update(bytes).digest("hex");
|
|
26757
26771
|
if (input.binaryModules?.[target] && packageTargets.has(target)) {
|
|
26758
26772
|
const objects = import_node_path49.default.join(
|
|
26759
26773
|
layout2.root,
|
|
@@ -27405,7 +27419,7 @@ function readCompiledArtifact(directory, hash) {
|
|
|
27405
27419
|
return null;
|
|
27406
27420
|
const bytes = (0, import_node_fs47.readFileSync)(import_node_path49.default.join(directory, "app.wasm"));
|
|
27407
27421
|
const gzip2 = (0, import_node_fs47.readFileSync)(import_node_path49.default.join(directory, "icu.gz"));
|
|
27408
|
-
if ((0,
|
|
27422
|
+
if ((0, import_node_crypto32.createHash)("sha256").update(bytes).digest("hex") !== receipt.wasm || (0, import_node_crypto32.createHash)("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
27409
27423
|
return null;
|
|
27410
27424
|
let sdk;
|
|
27411
27425
|
if ("sdk" in receipt) {
|
|
@@ -27413,7 +27427,7 @@ function readCompiledArtifact(directory, hash) {
|
|
|
27413
27427
|
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string")
|
|
27414
27428
|
return null;
|
|
27415
27429
|
const binding = (0, import_node_fs47.readFileSync)(import_node_path49.default.join(directory, "sdk-binding.bin"));
|
|
27416
|
-
if ((0,
|
|
27430
|
+
if ((0, import_node_crypto32.createHash)("sha256").update(binding).digest("hex") !== image.binding)
|
|
27417
27431
|
return null;
|
|
27418
27432
|
sdk = {
|
|
27419
27433
|
key: image.key,
|
|
@@ -27441,7 +27455,7 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
27441
27455
|
import_node_path49.default.join(pending, "artifact.json"),
|
|
27442
27456
|
JSON.stringify({
|
|
27443
27457
|
hash: artifact.hash,
|
|
27444
|
-
wasm: (0,
|
|
27458
|
+
wasm: (0, import_node_crypto32.createHash)("sha256").update(artifact.bytes).digest("hex"),
|
|
27445
27459
|
icu: artifact.icu.sha256,
|
|
27446
27460
|
sdk: artifact.sdk && {
|
|
27447
27461
|
key: artifact.sdk.key,
|
|
@@ -27790,7 +27804,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
27790
27804
|
const unoptimized = args.input.unoptimized === true;
|
|
27791
27805
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
27792
27806
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
27793
|
-
const receiptKey = (0,
|
|
27807
|
+
const receiptKey = (0, import_node_crypto32.createHash)("sha256").update(
|
|
27794
27808
|
JSON.stringify([
|
|
27795
27809
|
"framework-products/v2",
|
|
27796
27810
|
args.frameworkKey,
|
|
@@ -27957,7 +27971,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
27957
27971
|
const archiveBase = import_node_path49.default.join(scratch2, "products-lib");
|
|
27958
27972
|
(0, import_node_fs47.mkdirSync)(archiveBase, { recursive: true });
|
|
27959
27973
|
const archiveRoot = import_node_path49.default.join(archiveBase, receiptKey);
|
|
27960
|
-
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0,
|
|
27974
|
+
const stagedArchiveRoot = `${archiveRoot}.tmp-${process.pid}-${(0, import_node_crypto32.randomUUID)()}`;
|
|
27961
27975
|
const stagedArchive = import_node_path49.default.join(stagedArchiveRoot, "lib");
|
|
27962
27976
|
(0, import_node_fs47.mkdirSync)(stagedArchive, { recursive: true });
|
|
27963
27977
|
const archived = /* @__PURE__ */ new Map();
|
|
@@ -28000,7 +28014,7 @@ ${args.frameworkKey}`,
|
|
|
28000
28014
|
const receiptsDir = import_node_path49.default.join(scratch2, "products-ready");
|
|
28001
28015
|
(0, import_node_fs47.mkdirSync)(receiptsDir, { recursive: true });
|
|
28002
28016
|
const receiptFile = import_node_path49.default.join(receiptsDir, `${receiptKey}.json`);
|
|
28003
|
-
const partialReceipt = `${receiptFile}.${process.pid}.${(0,
|
|
28017
|
+
const partialReceipt = `${receiptFile}.${process.pid}.${(0, import_node_crypto32.randomUUID)()}`;
|
|
28004
28018
|
(0, import_node_fs47.writeFileSync)(
|
|
28005
28019
|
partialReceipt,
|
|
28006
28020
|
JSON.stringify({
|
|
@@ -28172,7 +28186,7 @@ function mirrorTree2(source, target, skip) {
|
|
|
28172
28186
|
if (existing?.isFile() && existing.size === stat.size && (existing.mtimeMs === stat.mtimeMs || (0, import_node_fs47.readFileSync)(from).equals((0, import_node_fs47.readFileSync)(to))))
|
|
28173
28187
|
continue;
|
|
28174
28188
|
if (existing) (0, import_node_fs47.rmSync)(to, { recursive: true, force: true });
|
|
28175
|
-
const partial = `${to}.${(0,
|
|
28189
|
+
const partial = `${to}.${(0, import_node_crypto32.randomUUID)()}`;
|
|
28176
28190
|
(0, import_node_fs47.copyFileSync)(from, partial);
|
|
28177
28191
|
if (stat.mtimeMs > Date.now()) (0, import_node_fs47.utimesSync)(partial, stat.atime, stat.mtime);
|
|
28178
28192
|
(0, import_node_fs47.renameSync)(partial, to);
|
|
@@ -28232,7 +28246,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
28232
28246
|
return stagedModule;
|
|
28233
28247
|
}
|
|
28234
28248
|
function swiftLinkStamp(args) {
|
|
28235
|
-
const hash = (0,
|
|
28249
|
+
const hash = (0, import_node_crypto32.createHash)("sha256");
|
|
28236
28250
|
hash.update(`swift-link/v1
|
|
28237
28251
|
${args.frameworkKey}
|
|
28238
28252
|
`);
|
|
@@ -28360,7 +28374,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
28360
28374
|
const inputHash = swiftCompileInputHash(input, options.release);
|
|
28361
28375
|
const moduleDigest = swiftModuleDigest(moduleRoot);
|
|
28362
28376
|
const sourceHash = inputHash.copy().update(moduleDigest).digest("hex");
|
|
28363
|
-
const hash = sdkImage ? (0,
|
|
28377
|
+
const hash = sdkImage ? (0, import_node_crypto32.createHash)("sha256").update(`${sourceHash}
|
|
28364
28378
|
sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
|
|
28365
28379
|
const frameworkKey = swiftProjectBuildKey(moduleRoot, options.release);
|
|
28366
28380
|
const sharedRoot = import_node_path49.default.join(swiftCacheDir(), "swift-projects", hash);
|
|
@@ -28457,7 +28471,7 @@ ${cap}` : "";
|
|
|
28457
28471
|
}
|
|
28458
28472
|
const baseRoot = root;
|
|
28459
28473
|
const canPoolBuildRoot = !options.intermediates && !options.project && !options.linkOnly && import_node_path49.default.basename(import_node_path49.default.dirname(baseRoot)) === "swift-builds";
|
|
28460
|
-
const buildShape = canPoolBuildRoot ? (0,
|
|
28474
|
+
const buildShape = canPoolBuildRoot ? (0, import_node_crypto32.createHash)("sha256").update(
|
|
28461
28475
|
JSON.stringify([
|
|
28462
28476
|
frameworkKey,
|
|
28463
28477
|
Boolean(sdkImage),
|
|
@@ -28946,17 +28960,17 @@ ${cap}` : "";
|
|
|
28946
28960
|
}
|
|
28947
28961
|
const receipt = import_node_path49.default.join(
|
|
28948
28962
|
checkpoints,
|
|
28949
|
-
(0,
|
|
28963
|
+
(0, import_node_crypto32.createHash)("sha256").update(target).digest("hex")
|
|
28950
28964
|
);
|
|
28951
28965
|
const headers = producers.map(headerPaths);
|
|
28952
28966
|
for (const header of headers)
|
|
28953
28967
|
if ((0, import_node_fs47.existsSync)(header.original)) publishHeader(header);
|
|
28954
28968
|
const fingerprint = () => {
|
|
28955
|
-
const digest = (0,
|
|
28969
|
+
const digest = (0, import_node_crypto32.createHash)("sha256").update(recipe);
|
|
28956
28970
|
for (const { original, emitted } of headers) {
|
|
28957
28971
|
if (!(0, import_node_fs47.existsSync)(original) || !(0, import_node_fs47.existsSync)(emitted)) return;
|
|
28958
28972
|
digest.update(
|
|
28959
|
-
(0,
|
|
28973
|
+
(0, import_node_crypto32.createHash)("sha256").update((0, import_node_fs47.readFileSync)(emitted)).digest()
|
|
28960
28974
|
);
|
|
28961
28975
|
}
|
|
28962
28976
|
return digest.digest("hex");
|
|
@@ -29169,11 +29183,11 @@ ${cap}` : "";
|
|
|
29169
29183
|
options.signal
|
|
29170
29184
|
);
|
|
29171
29185
|
}
|
|
29172
|
-
var import_node_child_process31,
|
|
29186
|
+
var import_node_child_process31, import_node_crypto32, import_node_fs47, import_node_os13, import_node_path49, 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;
|
|
29173
29187
|
var init_swift_compile = __esm({
|
|
29174
29188
|
"src/swift-compile.ts"() {
|
|
29175
29189
|
import_node_child_process31 = require("node:child_process");
|
|
29176
|
-
|
|
29190
|
+
import_node_crypto32 = require("node:crypto");
|
|
29177
29191
|
import_node_fs47 = require("node:fs");
|
|
29178
29192
|
import_node_os13 = __toESM(require("node:os"), 1);
|
|
29179
29193
|
import_node_path49 = __toESM(require("node:path"), 1);
|
|
@@ -29401,7 +29415,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
29401
29415
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
29402
29416
|
MULTI_MANIFEST_VERSION = 76;
|
|
29403
29417
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
29404
|
-
compilerSourceDigest = true ? "
|
|
29418
|
+
compilerSourceDigest = true ? "169122685e250113f128b79efc78f9868f581da36ab083c174056ab99b87b629" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
29405
29419
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
29406
29420
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
29407
29421
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
MULTI_MANIFEST_VERSION,
|
|
4
4
|
WASM_TRIPLE,
|
|
@@ -40,8 +40,8 @@ import {
|
|
|
40
40
|
withNativeSourceGlue,
|
|
41
41
|
wrapUIApplicationMainEntry,
|
|
42
42
|
writeSwiftProject
|
|
43
|
-
} from "./esm-chunks/chunk-
|
|
44
|
-
import "./esm-chunks/chunk-
|
|
43
|
+
} from "./esm-chunks/chunk-A66VNSO6.mjs";
|
|
44
|
+
import "./esm-chunks/chunk-JVEJLPJC.mjs";
|
|
45
45
|
import {
|
|
46
46
|
FOUNDATION_IMPLICIT_MODULES,
|
|
47
47
|
REACH_STAGED_FRAMEWORKS,
|
|
@@ -66,15 +66,15 @@ import {
|
|
|
66
66
|
swiftSdkPaths,
|
|
67
67
|
withFrameworkCompanionImports,
|
|
68
68
|
withoutSwiftDeclarations
|
|
69
|
-
} from "./esm-chunks/chunk-
|
|
70
|
-
import "./esm-chunks/chunk-
|
|
71
|
-
import "./esm-chunks/chunk-
|
|
72
|
-
import "./esm-chunks/chunk-
|
|
73
|
-
import "./esm-chunks/chunk-
|
|
74
|
-
import "./esm-chunks/chunk-
|
|
75
|
-
import "./esm-chunks/chunk-
|
|
76
|
-
import "./esm-chunks/chunk-
|
|
77
|
-
import "./esm-chunks/chunk-
|
|
69
|
+
} from "./esm-chunks/chunk-DVMKYLDN.mjs";
|
|
70
|
+
import "./esm-chunks/chunk-A4R4YGFJ.mjs";
|
|
71
|
+
import "./esm-chunks/chunk-Q5NI4L3Z.mjs";
|
|
72
|
+
import "./esm-chunks/chunk-OCCZJOSA.mjs";
|
|
73
|
+
import "./esm-chunks/chunk-R4FFTWPL.mjs";
|
|
74
|
+
import "./esm-chunks/chunk-7Z7YJ4FU.mjs";
|
|
75
|
+
import "./esm-chunks/chunk-SRIRVPNX.mjs";
|
|
76
|
+
import "./esm-chunks/chunk-KA4AQDVF.mjs";
|
|
77
|
+
import "./esm-chunks/chunk-P542MMIN.mjs";
|
|
78
78
|
export {
|
|
79
79
|
FOUNDATION_IMPLICIT_MODULES,
|
|
80
80
|
MULTI_MANIFEST_VERSION,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
4
4
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -33,8 +33,8 @@ import {
|
|
|
33
33
|
swiftResourceBundles,
|
|
34
34
|
swiftTargetModuleName,
|
|
35
35
|
withoutGlogModuleMap
|
|
36
|
-
} from "./esm-chunks/chunk-
|
|
37
|
-
import "./esm-chunks/chunk-
|
|
36
|
+
} from "./esm-chunks/chunk-OCCZJOSA.mjs";
|
|
37
|
+
import "./esm-chunks/chunk-P542MMIN.mjs";
|
|
38
38
|
export {
|
|
39
39
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
40
40
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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,16 +1,16 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_HMR_PATH,
|
|
4
4
|
SWIFT_PACKAGE_PATH
|
|
5
|
-
} from "./esm-chunks/chunk-
|
|
5
|
+
} from "./esm-chunks/chunk-LJYNZ5HM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isSwiftMetalLibrarySources
|
|
8
|
-
} from "./esm-chunks/chunk-
|
|
9
|
-
import "./esm-chunks/chunk-
|
|
8
|
+
} from "./esm-chunks/chunk-Q5NI4L3Z.mjs";
|
|
9
|
+
import "./esm-chunks/chunk-R4FFTWPL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
isRecord
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
13
|
-
import "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-KA4AQDVF.mjs";
|
|
13
|
+
import "./esm-chunks/chunk-P542MMIN.mjs";
|
|
14
14
|
|
|
15
15
|
// src/swift-submit.ts
|
|
16
16
|
var SWIFT_COMPILE_PATH = "/api/swift-compile";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2625 | (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;
|