peachsim 0.1.2776 → 0.1.2778
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 +382 -367
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-IHHNENTV.mjs → acorn-RWBIRNWO.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2TRDAQRU.mjs → chunk-3RPELUA2.mjs} +36 -14
- package/dist-lib/esm-chunks/{chunk-36HOGKZO.mjs → chunk-3WQANOYY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JDQEHVXK.mjs → chunk-5TIUTQ55.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NJM5HDIY.mjs → chunk-5WASPTSS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-O3DUF5LK.mjs → chunk-6YHF4VYF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EYYLB42E.mjs → chunk-DLBUPWTI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XQUTZ3B5.mjs → chunk-EXU474NE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JUQ54SX6.mjs → chunk-F3OPIKJC.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-M7TINJ53.mjs → chunk-G7UJ4BAC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RPKBYOUS.mjs → chunk-GSTHJQMW.mjs} +16 -6
- package/dist-lib/esm-chunks/{chunk-OM6U2RS3.mjs → chunk-IQSFMB4R.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-QOWIQPRI.mjs → chunk-K3ULPN2R.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-JHFUDZ3W.mjs → chunk-KBYVKTVK.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-H3YX4XO2.mjs → chunk-KLA74B7J.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UQFQZLHK.mjs → chunk-KX7LV722.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2IFXQO2K.mjs → chunk-LQVLXDRN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PLCLVIAA.mjs → chunk-MRIDS3GE.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-HA4BLBFF.mjs → chunk-N2PEXZGL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BB6SVIH3.mjs → chunk-QKTKE4OX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YNMAR7R2.mjs → chunk-QUVLFF6I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-D5UZSYPE.mjs → chunk-VZ3NXXUC.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RCESKORX.mjs → chunk-X25PQNNH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Z6UVYLRY.mjs → chunk-ZDWMPXYI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3XQGFH5D.mjs → chunk-ZWOS2EDN.mjs} +65 -75
- package/dist-lib/esm-chunks/{metro-layout-parser-IA2YCSEY.mjs → metro-layout-parser-RRIZOLBE.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-TL66ITNV.mjs → swift-package-prebuilt-EIZ7MCKR.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-K7Y4YRW3.mjs → swift-sdk-app-module-S2LQ4OXD.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-ZKK3YV3Y.mjs → swift-sdk-image-77FFUGXI.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-Q4ENQ4FM.mjs → swift-sdk-image-producer-XFSFUXQJ.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +304 -289
- 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 +442 -422
- package/dist-lib/host/fetch-proxy-handler.cjs +100 -87
- 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 +20 -15
- package/dist-lib/native-app-identity-project.mjs +27 -32
- 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 +86 -85
- package/dist-lib/public-origins-lib.json +71 -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 +481 -461
- package/dist-lib/swift-compile.cjs +91 -62
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/core-abi/web/sceneClientContract.d.ts +0 -6
- package/dist-types/packages/peach-engine/src/components/native-ui/webview-frame-bridge.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/native-app-catalog.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/native-app-font-config.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-anim-driven-slots.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/render-worker/native-text-input-runtime.d.ts +0 -42
- package/dist-types/packages/peach-engine/src/render-worker/nativeAnimMirrorContract.d.ts +1 -8
- package/dist-types/packages/peach-engine/src/render-worker/nativeTransitionContract.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/render-worker/shellScrollContract.d.ts +0 -6
- package/dist-types/packages/peach-engine/src/webview-automation-host.d.ts +0 -4
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bazel-project.ts +2 -6
- package/src/build-cache.ts +3 -2
- package/src/sha256.ts +8 -0
- package/src/swift-coverage/indexing.ts +3 -4
- package/src/swift-coverage/package.ts +1 -4
- package/src/swift-coverage/reader.ts +1 -4
- package/src/swift-coverage/source.ts +1 -4
- package/src/swift-coverage/xcode-assets.ts +1 -4
- package/src/swift-coverage/xcode-bridging.ts +1 -4
- package/src/swift-coverage/xcode-packages.ts +1 -4
- package/src/swift-coverage/xcode-strings.ts +1 -4
- package/src/swift-coverage/xcode.ts +1 -4
- package/src/swift-guest-dyld-table.ts +1 -6
- package/src/swift-guest-source-inputs.ts +3 -15
- package/src/swift-objc-compile.ts +2 -7
- package/src/swift-sdk-image.ts +50 -12
- package/src/swift-wasm-prune.ts +3 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
acquireSwiftRootReadHold,
|
|
4
4
|
hasLiveSwiftRootReaders,
|
|
5
5
|
retainSwiftRootReadHold,
|
|
6
6
|
withSwiftRootLock
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F3OPIKJC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
objcSdkIntakeFlags,
|
|
30
30
|
rnxHomeDir,
|
|
31
31
|
sdkObjCDeclarationOwners,
|
|
32
|
+
sha256Hex,
|
|
32
33
|
stripCCode,
|
|
33
34
|
swiftBuildJobs,
|
|
34
35
|
swiftCodeMask,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
withoutImportedSdkEnumForwards,
|
|
59
60
|
withoutSwiftDeclarations,
|
|
60
61
|
writeBuildFile
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-GSTHJQMW.mjs";
|
|
62
63
|
import {
|
|
63
64
|
SWIFT_AUTOLINK_LINKER,
|
|
64
65
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -75,7 +76,7 @@ import {
|
|
|
75
76
|
wasmThreadLinkFlags,
|
|
76
77
|
windowAdmission,
|
|
77
78
|
writeSwiftAutolinkLinker
|
|
78
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-6YHF4VYF.mjs";
|
|
79
80
|
import {
|
|
80
81
|
SWIFT_BINARY_TREES_DIR,
|
|
81
82
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -90,7 +91,7 @@ import {
|
|
|
90
91
|
isSwiftResourcePath,
|
|
91
92
|
isSwiftSourceLinkGraph,
|
|
92
93
|
swiftProjectFilesProblems
|
|
93
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-ZDWMPXYI.mjs";
|
|
94
95
|
import {
|
|
95
96
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
96
97
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -113,23 +114,23 @@ import {
|
|
|
113
114
|
swiftPackagePartition,
|
|
114
115
|
swiftTargetModuleName,
|
|
115
116
|
withoutGlogModuleMap
|
|
116
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-N2PEXZGL.mjs";
|
|
117
118
|
import {
|
|
118
119
|
rnxPublicBrand
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-G7UJ4BAC.mjs";
|
|
120
121
|
import {
|
|
121
122
|
isRecord
|
|
122
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-QUVLFF6I.mjs";
|
|
123
124
|
import {
|
|
124
125
|
__publicField
|
|
125
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-DLBUPWTI.mjs";
|
|
126
127
|
|
|
127
128
|
// src/swift-compile.ts
|
|
128
129
|
import {
|
|
129
130
|
spawn as spawn2,
|
|
130
131
|
spawnSync as spawnSync3
|
|
131
132
|
} from "node:child_process";
|
|
132
|
-
import { createHash as
|
|
133
|
+
import { createHash as createHash15, randomUUID as randomUUID4 } from "node:crypto";
|
|
133
134
|
import {
|
|
134
135
|
chmodSync as chmodSync4,
|
|
135
136
|
copyFileSync as copyFileSync2,
|
|
@@ -6332,11 +6333,6 @@ function readArMembers(buf, includeBitcode = false) {
|
|
|
6332
6333
|
}
|
|
6333
6334
|
|
|
6334
6335
|
// src/swift-wasm-prune.ts
|
|
6335
|
-
function sha256Hex(bytes) {
|
|
6336
|
-
if (typeof Bun !== "undefined")
|
|
6337
|
-
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
6338
|
-
return createHash2("sha256").update(bytes).digest("hex");
|
|
6339
|
-
}
|
|
6340
6336
|
function readULEB(b, o) {
|
|
6341
6337
|
let res = 0;
|
|
6342
6338
|
let shift = 0;
|
|
@@ -13677,7 +13673,6 @@ async function linkPrunedGuestImages(options) {
|
|
|
13677
13673
|
|
|
13678
13674
|
// src/swift-guest-source-inputs.ts
|
|
13679
13675
|
import { execFileSync as execFileSync6 } from "node:child_process";
|
|
13680
|
-
import { createHash as createHash9 } from "node:crypto";
|
|
13681
13676
|
import {
|
|
13682
13677
|
existsSync as existsSync3,
|
|
13683
13678
|
mkdirSync as mkdirSync3,
|
|
@@ -13775,13 +13770,8 @@ function clangBinaryStamp(file) {
|
|
|
13775
13770
|
const stat = statSync2(file, { bigint: true });
|
|
13776
13771
|
return [file, stat.size, stat.mtimeNs].join(":");
|
|
13777
13772
|
}
|
|
13778
|
-
function sha256Hex2(bytes) {
|
|
13779
|
-
if (typeof Bun !== "undefined")
|
|
13780
|
-
return new Bun.CryptoHasher("sha256").update(bytes).digest("hex");
|
|
13781
|
-
return createHash9("sha256").update(bytes).digest("hex");
|
|
13782
|
-
}
|
|
13783
13773
|
function clangWrapperStamp(file) {
|
|
13784
|
-
return
|
|
13774
|
+
return sha256Hex(readFileSync8(file));
|
|
13785
13775
|
}
|
|
13786
13776
|
function clangArgsNeedCwd(args) {
|
|
13787
13777
|
const pathFlags = /* @__PURE__ */ new Set([
|
|
@@ -13959,7 +13949,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
13959
13949
|
path11.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)
|
|
13960
13950
|
))))
|
|
13961
13951
|
throw new Error(`unsupported source object producer ${file}`);
|
|
13962
|
-
const key =
|
|
13952
|
+
const key = sha256Hex(
|
|
13963
13953
|
JSON.stringify([
|
|
13964
13954
|
"clang-link-options/v2",
|
|
13965
13955
|
clangArgsNeedCwd(command.args) ? process.cwd() : null,
|
|
@@ -13970,7 +13960,7 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
13970
13960
|
clangProducerStamp(file)
|
|
13971
13961
|
])
|
|
13972
13962
|
);
|
|
13973
|
-
const cacheFile = path11.join(cacheDirectory,
|
|
13963
|
+
const cacheFile = path11.join(cacheDirectory, sha256Hex(file) + ".json");
|
|
13974
13964
|
const cached = readClangLinkOptions(cacheFile, key);
|
|
13975
13965
|
if (cached) {
|
|
13976
13966
|
validateClangLinkOptions(cached);
|
|
@@ -14183,7 +14173,7 @@ function sourceGuestRuntimeLinks(options) {
|
|
|
14183
14173
|
const file = path11.resolve(directory, alias.moduleMap);
|
|
14184
14174
|
if (!file.startsWith(directory + path11.sep))
|
|
14185
14175
|
throw new Error(`invalid framework module map ${alias.moduleMap}`);
|
|
14186
|
-
if (
|
|
14176
|
+
if (sha256Hex(readFileSync8(file)) !== alias.moduleMapSha256)
|
|
14187
14177
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
14188
14178
|
sdkAliases.set(alias.name, {
|
|
14189
14179
|
product: product.id,
|
|
@@ -14239,7 +14229,7 @@ function sourceGuestRuntimeLinks(options) {
|
|
|
14239
14229
|
const map = path11.resolve(root, alias.moduleMap);
|
|
14240
14230
|
if (!map.startsWith(root + path11.sep))
|
|
14241
14231
|
throw new Error(`invalid framework module map ${alias.moduleMap}`);
|
|
14242
|
-
if (
|
|
14232
|
+
if (sha256Hex(readFileSync8(map)) !== alias.moduleMapSha256)
|
|
14243
14233
|
throw new Error(`framework module map changed ${alias.moduleMap}`);
|
|
14244
14234
|
frameworkAliases.set(alias.name, { kind: "package", targets: closure(alias.targets) });
|
|
14245
14235
|
}
|
|
@@ -14414,10 +14404,10 @@ function removeProjectLinks(root) {
|
|
|
14414
14404
|
}
|
|
14415
14405
|
|
|
14416
14406
|
// src/swift-sdk-guest-lookups.ts
|
|
14417
|
-
import { createHash as
|
|
14407
|
+
import { createHash as createHash9 } from "node:crypto";
|
|
14418
14408
|
import { realpathSync as realpathSync4 } from "node:fs";
|
|
14419
14409
|
import path13 from "node:path";
|
|
14420
|
-
var sdkGuestObjectKey = (identity) =>
|
|
14410
|
+
var sdkGuestObjectKey = (identity) => createHash9("sha256").update(identity).digest("hex").slice(0, 32);
|
|
14421
14411
|
function swiftSdkGuestLookups(moduleRoot, sdkRoot, objects) {
|
|
14422
14412
|
const catalogs = readGuestRuntimeCatalogs(sdkRoot, moduleRoot);
|
|
14423
14413
|
const framework = frameworkRuntimeProductId(catalogs.framework.product);
|
|
@@ -14676,7 +14666,7 @@ async function compileGuestLink(options) {
|
|
|
14676
14666
|
};
|
|
14677
14667
|
const sdk = options.sdkImage;
|
|
14678
14668
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14679
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14669
|
+
const sdkObjects = (await import("./swift-sdk-image-77FFUGXI.mjs")).readSwiftSdkManifestIndex(
|
|
14680
14670
|
sdk
|
|
14681
14671
|
).guestObjects;
|
|
14682
14672
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14976,7 +14966,7 @@ async function compileGuestLink(options) {
|
|
|
14976
14966
|
swiftAppModuleThunkSection,
|
|
14977
14967
|
swiftSdkProjectionSpans,
|
|
14978
14968
|
writeSwiftSdkAppLink
|
|
14979
|
-
} = await import("./swift-sdk-app-module-
|
|
14969
|
+
} = await import("./swift-sdk-app-module-S2LQ4OXD.mjs");
|
|
14980
14970
|
const project = options.project;
|
|
14981
14971
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14982
14972
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -15160,7 +15150,7 @@ async function compileGuestLink(options) {
|
|
|
15160
15150
|
}
|
|
15161
15151
|
|
|
15162
15152
|
// src/swift-header-compiler.ts
|
|
15163
|
-
import { createHash as
|
|
15153
|
+
import { createHash as createHash10 } from "node:crypto";
|
|
15164
15154
|
import {
|
|
15165
15155
|
chmodSync as chmodSync3,
|
|
15166
15156
|
existsSync as existsSync5,
|
|
@@ -15240,7 +15230,7 @@ function compilerCheckpoint(root, recipe, args, header) {
|
|
|
15240
15230
|
}
|
|
15241
15231
|
}
|
|
15242
15232
|
if (objects === 0) return;
|
|
15243
|
-
const digest =
|
|
15233
|
+
const digest = createHash10("sha256").update(recipe).update(JSON.stringify(args)).update(mapText);
|
|
15244
15234
|
for (const flag of args) {
|
|
15245
15235
|
if (!flag.startsWith("@")) continue;
|
|
15246
15236
|
const response = flag.slice(1);
|
|
@@ -15480,7 +15470,7 @@ function swiftHeaderDependencies(root, files, targets, nativeTargets, producers,
|
|
|
15480
15470
|
|
|
15481
15471
|
// src/swift-icu.ts
|
|
15482
15472
|
import { execFile as execFile3 } from "node:child_process";
|
|
15483
|
-
import { createHash as
|
|
15473
|
+
import { createHash as createHash11, randomUUID as randomUUID3 } from "node:crypto";
|
|
15484
15474
|
import { existsSync as existsSync6, readFileSync as readFileSync12 } from "node:fs";
|
|
15485
15475
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
15486
15476
|
import os from "node:os";
|
|
@@ -15559,7 +15549,7 @@ var raw = /* @__PURE__ */ new Map();
|
|
|
15559
15549
|
var assets = /* @__PURE__ */ new Map();
|
|
15560
15550
|
var brotliMemoryCache = /* @__PURE__ */ new Map();
|
|
15561
15551
|
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
15562
|
-
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey :
|
|
15552
|
+
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : createHash11("sha256").update(bytes).digest("hex");
|
|
15563
15553
|
const cacheId = `${quality}:${key}`;
|
|
15564
15554
|
const cached = brotliMemoryCache.get(cacheId);
|
|
15565
15555
|
if (cached) return cached;
|
|
@@ -15615,7 +15605,7 @@ function swiftIcuAsset(toolchainBin, sdk) {
|
|
|
15615
15605
|
JSON.stringify([toolchainBin, sdk, swiftSdkOptions()]),
|
|
15616
15606
|
async () => {
|
|
15617
15607
|
const zipped = await deflate(await swiftIcuData(toolchainBin, sdk));
|
|
15618
|
-
return { sha256:
|
|
15608
|
+
return { sha256: createHash11("sha256").update(zipped).digest("hex"), gzip: zipped };
|
|
15619
15609
|
}
|
|
15620
15610
|
);
|
|
15621
15611
|
}
|
|
@@ -15869,7 +15859,7 @@ function swiftObjCModuleMap(module, headers, submodules = /* @__PURE__ */ new Se
|
|
|
15869
15859
|
|
|
15870
15860
|
// src/swift-objc-prebuilt.ts
|
|
15871
15861
|
import { spawnSync as spawnSync2 } from "node:child_process";
|
|
15872
|
-
import { createHash as
|
|
15862
|
+
import { createHash as createHash13 } from "node:crypto";
|
|
15873
15863
|
import fs5 from "node:fs";
|
|
15874
15864
|
import path19 from "node:path";
|
|
15875
15865
|
|
|
@@ -15924,13 +15914,13 @@ function rnxSelfInvocation() {
|
|
|
15924
15914
|
|
|
15925
15915
|
// src/native-prebuilt.ts
|
|
15926
15916
|
import { execFileSync as execFileSync9 } from "node:child_process";
|
|
15927
|
-
import { createHash as
|
|
15917
|
+
import { createHash as createHash12 } from "node:crypto";
|
|
15928
15918
|
import fs4 from "node:fs";
|
|
15929
15919
|
import path18 from "node:path";
|
|
15930
15920
|
var NATIVE_PREBUILT_ORIGIN = "https://r2.rnxsim.com";
|
|
15931
15921
|
function nativeEntryKey(inputs) {
|
|
15932
15922
|
const lines = Object.keys(inputs).sort().map((name) => `${name}\0${inputs[name]}`);
|
|
15933
|
-
return
|
|
15923
|
+
return createHash12("sha256").update(lines.join("\n")).digest("hex").slice(0, 32);
|
|
15934
15924
|
}
|
|
15935
15925
|
var nativeEntryPrefix = (kind, name, key) => `native/${kind}/${name}/${key}`;
|
|
15936
15926
|
var nativeEntryCache = (kind, name, key) => path18.join(cacheDir(), "native-prebuilt", kind, name, key);
|
|
@@ -15945,7 +15935,7 @@ function download(url, to) {
|
|
|
15945
15935
|
return false;
|
|
15946
15936
|
}
|
|
15947
15937
|
}
|
|
15948
|
-
var sha256 = (file) =>
|
|
15938
|
+
var sha256 = (file) => createHash12("sha256").update(fs4.readFileSync(file)).digest("hex");
|
|
15949
15939
|
function isEntryFile(file) {
|
|
15950
15940
|
return isRecord(file) && typeof file.path === "string" && /^[^/\\]+$/.test(file.path) && file.path !== "." && file.path !== ".." && file.path !== "descriptor.json" && typeof file.sha256 === "string" && typeof file.size === "number";
|
|
15951
15941
|
}
|
|
@@ -16008,7 +15998,7 @@ function swiftObjCPrebuiltCompiler(clang, root, sysroot, distribution, targets,
|
|
|
16008
15998
|
);
|
|
16009
15999
|
if (!modules.length) return [];
|
|
16010
16000
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
16011
|
-
const compiler =
|
|
16001
|
+
const compiler = createHash13("sha256").update(fs5.readFileSync(clang)).digest("hex");
|
|
16012
16002
|
return [
|
|
16013
16003
|
'case "$module" in',
|
|
16014
16004
|
` ${modules.join("|")}) exec ${[
|
|
@@ -16056,11 +16046,11 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
16056
16046
|
}
|
|
16057
16047
|
|
|
16058
16048
|
// src/swift-sdk-image-recipe.ts
|
|
16059
|
-
import { createHash as
|
|
16049
|
+
import { createHash as createHash14 } from "node:crypto";
|
|
16060
16050
|
var SWIFT_SDK_IMAGE_VERSION = 14;
|
|
16061
16051
|
var SOURCE_SWIFT_FRAMEWORK_RECIPE = "swift-framework/v4";
|
|
16062
16052
|
var swiftSdkImageScope = (scopedLookups) => scopedLookups ? "guest image scopes 9\n" : "unscoped constructor order 1\n";
|
|
16063
|
-
var SWIFT_SDK_IMAGE_RECIPE =
|
|
16053
|
+
var SWIFT_SDK_IMAGE_RECIPE = createHash14("sha256").update(`swift-sdk-image
|
|
16064
16054
|
${SWIFT_SDK_IMAGE_VERSION}
|
|
16065
16055
|
`).update(WASM_LOWER_IDENTITY).update(swiftSdkImageScope(false)).update(swiftSdkImageScope(true)).digest("hex").slice(0, 16);
|
|
16066
16056
|
|
|
@@ -16493,7 +16483,7 @@ async function ensureMacroPlugins(moduleRoot, toolchainBin, release, signal, lea
|
|
|
16493
16483
|
}
|
|
16494
16484
|
function swiftProjectBuildKey(moduleRoot, release) {
|
|
16495
16485
|
const recipe = swiftDistributionAt(moduleRoot) ? "swift-framework/v2" : SOURCE_SWIFT_FRAMEWORK_RECIPE;
|
|
16496
|
-
return
|
|
16486
|
+
return createHash15("sha256").update(`${recipe}\0${release}\0${swiftModuleSdk(moduleRoot).wasmSdkId}`).update(swiftModuleDigest(moduleRoot)).digest("hex").slice(0, 32);
|
|
16497
16487
|
}
|
|
16498
16488
|
var SYSTEM_MODULE_LIBRARIES = {
|
|
16499
16489
|
"sqlite3.h": "sqlite3",
|
|
@@ -16865,7 +16855,7 @@ function distributionClangModuleOptions(root, modules) {
|
|
|
16865
16855
|
function providedModulesPath(root, modules, excluded) {
|
|
16866
16856
|
if (!excluded || excluded.size === 0) return modules;
|
|
16867
16857
|
const entries2 = readdirSync4(modules).filter((entry) => !excluded.has(entry.replace(/\..*$/, ""))).sort();
|
|
16868
|
-
const key =
|
|
16858
|
+
const key = createHash15("sha256").update(JSON.stringify([modules, entries2])).update([...excluded].sort().join("\0")).digest("hex").slice(0, 16);
|
|
16869
16859
|
const directory = path23.join(root, `.peach-modules-${key}`);
|
|
16870
16860
|
const complete = path23.join(directory, ".complete");
|
|
16871
16861
|
if (!existsSync9(complete)) {
|
|
@@ -16981,21 +16971,21 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16981
16971
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16982
16972
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16983
16973
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16984
|
-
var compilerSourceDigest = true ? "
|
|
16974
|
+
var compilerSourceDigest = true ? "3bdbb1d31ba7d202e612a91b60a3b588f9bc94a11990fb114585b3e2521857f5" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16985
16975
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16986
16976
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16987
16977
|
}
|
|
16988
16978
|
function swiftSdkArtifactHash(sourceHash, sdkImageKey) {
|
|
16989
|
-
return
|
|
16979
|
+
return createHash15("sha256").update(`${sourceHash}
|
|
16990
16980
|
sdk module ${sdkImageKey}`).digest("hex");
|
|
16991
16981
|
}
|
|
16992
16982
|
function sha256Digest(value) {
|
|
16993
16983
|
if (typeof Bun !== "undefined")
|
|
16994
16984
|
return new Bun.CryptoHasher("sha256").update(value).digest();
|
|
16995
|
-
return
|
|
16985
|
+
return createHash15("sha256").update(value).digest();
|
|
16996
16986
|
}
|
|
16997
16987
|
function swiftCompileInputHash(input, release) {
|
|
16998
|
-
const hash =
|
|
16988
|
+
const hash = createHash15("sha256");
|
|
16999
16989
|
hash.update(`swift-compile
|
|
17000
16990
|
${release}
|
|
17001
16991
|
`);
|
|
@@ -17207,7 +17197,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
17207
17197
|
].join("\n") + "\n";
|
|
17208
17198
|
distributionLinkPath = distributionLink.path.replace(
|
|
17209
17199
|
/\.rsp$/,
|
|
17210
|
-
`-${
|
|
17200
|
+
`-${createHash15("sha256").update(list).digest("hex").slice(0, 12)}.rsp`
|
|
17211
17201
|
);
|
|
17212
17202
|
distributionLink.files.set(distributionLinkPath, list);
|
|
17213
17203
|
}
|
|
@@ -17228,7 +17218,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
17228
17218
|
const endRun = () => {
|
|
17229
17219
|
if (run2.length >= MODULE_MAP_RESPONSE_FILE_RUN) {
|
|
17230
17220
|
const lines = run2.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
17231
|
-
const digest2 =
|
|
17221
|
+
const digest2 = createHash15("sha256").update(lines).digest("hex");
|
|
17232
17222
|
const file2 = path23.join(args.root, ".peach-clang-arguments", `${digest2}.rsp`);
|
|
17233
17223
|
args.files.set(file2, lines);
|
|
17234
17224
|
flags.push(`@${file2}`);
|
|
@@ -17252,7 +17242,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
17252
17242
|
}
|
|
17253
17243
|
endRun();
|
|
17254
17244
|
const content = JSON.stringify(flags);
|
|
17255
|
-
const digest =
|
|
17245
|
+
const digest = createHash15("sha256").update(content).digest("hex");
|
|
17256
17246
|
const file = path23.join(args.root, ".peach-manifest-arguments", `${digest}.json`);
|
|
17257
17247
|
args.files.set(file, content);
|
|
17258
17248
|
return `peachCompilerArguments(${JSON.stringify(file)})`;
|
|
@@ -17264,7 +17254,7 @@ function emitSwiftPackageManifest(args) {
|
|
|
17264
17254
|
const macros = compactSwiftClangDefines(swiftClangSearchArguments(flags));
|
|
17265
17255
|
const compact = args.coalescibleOverlays ? compactSwiftClangOverlays(macros, args.coalescibleOverlays) : macros;
|
|
17266
17256
|
const content = compact.map((flag) => JSON.stringify(flag)).join("\n") + "\n";
|
|
17267
|
-
const digest =
|
|
17257
|
+
const digest = createHash15("sha256").update(content).digest("hex");
|
|
17268
17258
|
const file = path23.join(args.root, ".peach-swift-arguments", `${digest}.rsp`);
|
|
17269
17259
|
args.files.set(file, content);
|
|
17270
17260
|
return JSON.stringify([`@${file}`]);
|
|
@@ -18967,7 +18957,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
18967
18957
|
if (moduleContents !== originalContents)
|
|
18968
18958
|
podHeaderOwnership.push([
|
|
18969
18959
|
modulemap,
|
|
18970
|
-
|
|
18960
|
+
createHash15("sha256").update(moduleContents).digest("hex")
|
|
18971
18961
|
]);
|
|
18972
18962
|
const framework = nativeC && moduleMapTokens(moduleContents.toString())[0] === "framework" ? /^(.*)\/[^/]+\.framework\/Modules\/module\.modulemap$/.exec(modulemap) : null;
|
|
18973
18963
|
const frameworkDirectory = framework ? path23.join(layout2.root, framework[1]) : void 0;
|
|
@@ -19031,7 +19021,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
19031
19021
|
)
|
|
19032
19022
|
];
|
|
19033
19023
|
const moduleFlag = perFile.some((flag) => flag.startsWith("-fmodule-name=")) ? [] : [`-fmodule-name=${swiftTargetModuleName(target.name)}`];
|
|
19034
|
-
const identity =
|
|
19024
|
+
const identity = createHash15("sha256").update(
|
|
19035
19025
|
JSON.stringify([
|
|
19036
19026
|
cxx,
|
|
19037
19027
|
quoteDirs,
|
|
@@ -19395,7 +19385,7 @@ module ${moduleName}.Swift {
|
|
|
19395
19385
|
])
|
|
19396
19386
|
rmSync7(cache, { recursive: true, force: true });
|
|
19397
19387
|
files.set(frameworkSearchRecord, frameworkSearch);
|
|
19398
|
-
const modulePlan =
|
|
19388
|
+
const modulePlan = createHash15("sha256").update(
|
|
19399
19389
|
swiftModuleInputFiles(moduleRoot).join("\n")
|
|
19400
19390
|
);
|
|
19401
19391
|
if (!distribution) {
|
|
@@ -19404,7 +19394,7 @@ module ${moduleName}.Swift {
|
|
|
19404
19394
|
modulePlan.update(
|
|
19405
19395
|
Object.keys(input.files).filter((file) => file.endsWith(".swift")).sort().join("\n")
|
|
19406
19396
|
);
|
|
19407
|
-
const resourcePlan =
|
|
19397
|
+
const resourcePlan = createHash15("sha256").update(
|
|
19408
19398
|
JSON.stringify(
|
|
19409
19399
|
resourceTargets.filter((target) => target.resources).map((target) => [
|
|
19410
19400
|
target.name,
|
|
@@ -19717,7 +19707,7 @@ ${entry}`);
|
|
|
19717
19707
|
);
|
|
19718
19708
|
for (const [target, data] of Object.entries(input.libraries ?? {})) {
|
|
19719
19709
|
const bytes = Buffer.from(data, "base64");
|
|
19720
|
-
const digest =
|
|
19710
|
+
const digest = createHash15("sha256").update(bytes).digest("hex");
|
|
19721
19711
|
if (input.binaryModules?.[target] && packageTargets.has(target)) {
|
|
19722
19712
|
const objects = path23.join(
|
|
19723
19713
|
layout2.root,
|
|
@@ -20415,19 +20405,19 @@ function readCompiledArtifact(directory, hash) {
|
|
|
20415
20405
|
return null;
|
|
20416
20406
|
const bytes = readFileSync13(path23.join(directory, "app.wasm"));
|
|
20417
20407
|
const gzip2 = readFileSync13(path23.join(directory, "icu.gz"));
|
|
20418
|
-
if (
|
|
20408
|
+
if (createHash15("sha256").update(bytes).digest("hex") !== receipt.wasm || createHash15("sha256").update(gzip2).digest("hex") !== receipt.icu || bytes.length <= 8 || bytes.readUInt32LE(0) !== 1836278016 || bytes.readUInt32LE(4) !== 1)
|
|
20419
20409
|
return null;
|
|
20420
20410
|
if (!("sdk" in receipt)) return null;
|
|
20421
20411
|
const image = receipt.sdk;
|
|
20422
20412
|
if (!isRecord(image) || typeof image.key !== "string" || typeof image.sha256 !== "string" || typeof image.binding !== "string" || typeof image.liveSlots !== "string")
|
|
20423
20413
|
return null;
|
|
20424
20414
|
const binding = readFileSync13(path23.join(directory, "sdk-binding.bin"));
|
|
20425
|
-
if (
|
|
20415
|
+
if (createHash15("sha256").update(binding).digest("hex") !== image.binding) return null;
|
|
20426
20416
|
const liveSlots = readFileSync13(path23.join(directory, "sdk-live-slots.bin"));
|
|
20427
|
-
if (
|
|
20417
|
+
if (createHash15("sha256").update(liveSlots).digest("hex") !== image.liveSlots)
|
|
20428
20418
|
return null;
|
|
20429
20419
|
const appLink = typeof image.appLink === "string" ? readFileSync13(path23.join(directory, "app-link.json.gz")) : void 0;
|
|
20430
|
-
if (appLink &&
|
|
20420
|
+
if (appLink && createHash15("sha256").update(appLink).digest("hex") !== image.appLink)
|
|
20431
20421
|
return null;
|
|
20432
20422
|
const sdk = {
|
|
20433
20423
|
key: image.key,
|
|
@@ -20461,14 +20451,14 @@ function saveCompiledArtifact(root, artifact) {
|
|
|
20461
20451
|
path23.join(pending, "artifact.json"),
|
|
20462
20452
|
JSON.stringify({
|
|
20463
20453
|
hash: artifact.hash,
|
|
20464
|
-
wasm:
|
|
20454
|
+
wasm: createHash15("sha256").update(artifact.bytes).digest("hex"),
|
|
20465
20455
|
icu: artifact.icu.sha256,
|
|
20466
20456
|
sdk: artifact.sdk && {
|
|
20467
20457
|
key: artifact.sdk.key,
|
|
20468
20458
|
sha256: artifact.sdk.sha256,
|
|
20469
20459
|
binding: artifact.sdk.binding.sha256,
|
|
20470
|
-
appLink: appLink &&
|
|
20471
|
-
liveSlots:
|
|
20460
|
+
appLink: appLink && createHash15("sha256").update(appLink).digest("hex"),
|
|
20461
|
+
liveSlots: createHash15("sha256").update(artifact.sdk.binding.liveSlots).digest("hex")
|
|
20472
20462
|
}
|
|
20473
20463
|
})
|
|
20474
20464
|
);
|
|
@@ -20850,7 +20840,7 @@ function frameworkHeaderContext(moduleRoot, products) {
|
|
|
20850
20840
|
if (/\.(?:h|hh|hpp|hxx|inc|def|modulemap|apinotes)$/.test(rel)) files.push(rel);
|
|
20851
20841
|
}
|
|
20852
20842
|
}
|
|
20853
|
-
return
|
|
20843
|
+
return createHash15("sha256").update(JSON.stringify([[...products].sort(), files.sort()])).digest("hex");
|
|
20854
20844
|
}
|
|
20855
20845
|
function shellQuote(value) {
|
|
20856
20846
|
return `'${value.replaceAll("'", "'\\''")}'`;
|
|
@@ -20918,7 +20908,7 @@ async function buildFrameworkProducts(scratch, args, allowWrite) {
|
|
|
20918
20908
|
const unoptimized = args.input.unoptimized === true;
|
|
20919
20909
|
const sdkOptions = swiftCompileSdkOptions(args.moduleRoot, args.toolchainBin);
|
|
20920
20910
|
const selectorOptions = swiftObjCSelectorOptions(args.moduleRoot);
|
|
20921
|
-
const receiptKeyFor = (products) =>
|
|
20911
|
+
const receiptKeyFor = (products) => createHash15("sha256").update(
|
|
20922
20912
|
JSON.stringify([
|
|
20923
20913
|
"framework-products/v2",
|
|
20924
20914
|
args.frameworkKey,
|
|
@@ -21495,7 +21485,7 @@ function stageFrameworkSource(moduleRoot, slot, frameworkKey, release) {
|
|
|
21495
21485
|
return stagedModule;
|
|
21496
21486
|
}
|
|
21497
21487
|
function swiftLinkStamp(args) {
|
|
21498
|
-
const hash =
|
|
21488
|
+
const hash = createHash15("sha256");
|
|
21499
21489
|
hash.update(`swift-link/v1
|
|
21500
21490
|
${args.frameworkKey}
|
|
21501
21491
|
`);
|
|
@@ -21606,7 +21596,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21606
21596
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21607
21597
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21608
21598
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21609
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21599
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-EIZ7MCKR.mjs")).useSwiftPackagePrebuilts(
|
|
21610
21600
|
sources,
|
|
21611
21601
|
moduleRoot,
|
|
21612
21602
|
options.toolchainBin
|
|
@@ -21619,7 +21609,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21619
21609
|
sources: path23.join(root, "Sources", "App"),
|
|
21620
21610
|
multi: compileTargets(input).length > 0
|
|
21621
21611
|
};
|
|
21622
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21612
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-77FFUGXI.mjs")).buildSwiftSdkImage(
|
|
21623
21613
|
moduleRoot,
|
|
21624
21614
|
!!guestGraph,
|
|
21625
21615
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21663,8 +21653,8 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21663
21653
|
input.optimize === true,
|
|
21664
21654
|
input.unoptimized === true
|
|
21665
21655
|
] : null;
|
|
21666
|
-
const compatShape = compatShapeParts ?
|
|
21667
|
-
const exactShape = compatShapeParts ?
|
|
21656
|
+
const compatShape = compatShapeParts ? createHash15("sha256").update(JSON.stringify(compatShapeParts)).digest("hex").slice(0, 16) : "";
|
|
21657
|
+
const exactShape = compatShapeParts ? createHash15("sha256").update(
|
|
21668
21658
|
JSON.stringify([...compatShapeParts, Object.keys(input.files).sort()])
|
|
21669
21659
|
).digest("hex").slice(0, 16) : "";
|
|
21670
21660
|
const buildShape = compatShapeParts ? `${exactShape}
|
|
@@ -22185,17 +22175,17 @@ ${compatShape}` : "";
|
|
|
22185
22175
|
}
|
|
22186
22176
|
const receipt = path23.join(
|
|
22187
22177
|
checkpoints,
|
|
22188
|
-
|
|
22178
|
+
createHash15("sha256").update(target).digest("hex")
|
|
22189
22179
|
);
|
|
22190
22180
|
const headers = producers.map(headerPaths);
|
|
22191
22181
|
for (const header of headers)
|
|
22192
22182
|
if (existsSync9(header.original)) publishHeader(header);
|
|
22193
22183
|
const fingerprint = () => {
|
|
22194
|
-
const digest =
|
|
22184
|
+
const digest = createHash15("sha256").update(recipe);
|
|
22195
22185
|
for (const { original, emitted } of headers) {
|
|
22196
22186
|
if (!existsSync9(original) || !existsSync9(emitted)) return;
|
|
22197
22187
|
digest.update(
|
|
22198
|
-
|
|
22188
|
+
createHash15("sha256").update(readFileSync13(emitted)).digest()
|
|
22199
22189
|
);
|
|
22200
22190
|
}
|
|
22201
22191
|
return digest.digest("hex");
|
|
@@ -22358,7 +22348,7 @@ ${compatShape}` : "";
|
|
|
22358
22348
|
});
|
|
22359
22349
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
22360
22350
|
} else {
|
|
22361
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
22351
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-S2LQ4OXD.mjs");
|
|
22362
22352
|
const binding = await buildSwiftAppModule({
|
|
22363
22353
|
buildRoot: root2,
|
|
22364
22354
|
toolchainBin: options.toolchainBin,
|
package/dist-lib/esm-chunks/{metro-layout-parser-IA2YCSEY.mjs → metro-layout-parser-RRIZOLBE.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-DLBUPWTI.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-RWBIRNWO.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.2778 | (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-ZWOS2EDN.mjs";
|
|
8
|
+
import "./chunk-F3OPIKJC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-GSTHJQMW.mjs";
|
|
13
|
+
import "./chunk-6YHF4VYF.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZDWMPXYI.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-N2PEXZGL.mjs";
|
|
20
|
+
import "./chunk-3WQANOYY.mjs";
|
|
21
|
+
import "./chunk-G7UJ4BAC.mjs";
|
|
22
|
+
import "./chunk-VZ3NXXUC.mjs";
|
|
23
|
+
import "./chunk-QUVLFF6I.mjs";
|
|
24
|
+
import "./chunk-DLBUPWTI.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-K7Y4YRW3.mjs → swift-sdk-app-module-S2LQ4OXD.mjs}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2778 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_MEMORY_BASE,
|
|
5
5
|
SWIFT_SDK_PIECE_FIELDS,
|
|
6
6
|
readSwiftSdkManifest
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3RPELUA2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
ADDEND_RELOCATIONS,
|
|
10
10
|
KEEP_WASM_NAMES,
|
|
@@ -36,22 +36,22 @@ import {
|
|
|
36
36
|
wasmReader,
|
|
37
37
|
wasmSections,
|
|
38
38
|
writeWasmCustomSection
|
|
39
|
-
} from "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-ZWOS2EDN.mjs";
|
|
40
|
+
import "./chunk-F3OPIKJC.mjs";
|
|
41
|
+
import "./chunk-MRIDS3GE.mjs";
|
|
42
|
+
import "./chunk-X25PQNNH.mjs";
|
|
43
|
+
import "./chunk-5WASPTSS.mjs";
|
|
44
|
+
import "./chunk-GSTHJQMW.mjs";
|
|
45
45
|
import {
|
|
46
46
|
SWIFT_WASM_TRIPLE
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-6YHF4VYF.mjs";
|
|
48
|
+
import "./chunk-ZDWMPXYI.mjs";
|
|
49
|
+
import "./chunk-N2PEXZGL.mjs";
|
|
50
|
+
import "./chunk-3WQANOYY.mjs";
|
|
51
|
+
import "./chunk-G7UJ4BAC.mjs";
|
|
52
|
+
import "./chunk-VZ3NXXUC.mjs";
|
|
53
|
+
import "./chunk-QUVLFF6I.mjs";
|
|
54
|
+
import "./chunk-DLBUPWTI.mjs";
|
|
55
55
|
|
|
56
56
|
// src/swift-sdk-app-module.ts
|
|
57
57
|
import { execFile } from "node:child_process";
|