peachsim 0.1.2774 → 0.1.2776
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 +197 -182
- 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-WYOHSUVU.mjs → acorn-IHHNENTV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-TJMPCXFB.mjs → chunk-2IFXQO2K.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MZX6AAGH.mjs → chunk-2TRDAQRU.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-ONTQLRM4.mjs → chunk-36HOGKZO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CRXKBBYS.mjs → chunk-3XQGFH5D.mjs} +173 -157
- package/dist-lib/esm-chunks/{chunk-K7A5D6XB.mjs → chunk-BB6SVIH3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-62NI6YCH.mjs → chunk-D5UZSYPE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-R7HK74K2.mjs → chunk-EYYLB42E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TRALQNBC.mjs → chunk-H3YX4XO2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CDZ6YIIB.mjs → chunk-HA4BLBFF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RC56H3GQ.mjs → chunk-JDQEHVXK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-F3K2ACFM.mjs → chunk-JHFUDZ3W.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-M45GB4YE.mjs → chunk-JUQ54SX6.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-P5VUFHVB.mjs → chunk-M7TINJ53.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W2YKROSW.mjs → chunk-NJM5HDIY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3SQGKA6Z.mjs → chunk-O3DUF5LK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KGVTCLU7.mjs → chunk-OM6U2RS3.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-B3GMGDAC.mjs → chunk-PLCLVIAA.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-AEE6PLCM.mjs → chunk-QOWIQPRI.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RGFBDGCR.mjs → chunk-RCESKORX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IKCQ5XQP.mjs → chunk-RPKBYOUS.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-VR25GACU.mjs → chunk-UQFQZLHK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2JGH43VT.mjs → chunk-XQUTZ3B5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ETJLJYIY.mjs → chunk-YNMAR7R2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4K3ZR6YW.mjs → chunk-Z6UVYLRY.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-QG6UBS3S.mjs → metro-layout-parser-IA2YCSEY.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KQJ2G4YJ.mjs → swift-package-prebuilt-TL66ITNV.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-RL3LZGNU.mjs → swift-sdk-app-module-K7Y4YRW3.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-L7SO7UED.mjs → swift-sdk-image-ZKK3YV3Y.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-QYH6Z7VW.mjs → swift-sdk-image-producer-Q4ENQ4FM.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +196 -181
- 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 +4206 -4192
- package/dist-lib/host/fetch-proxy-handler.cjs +344 -341
- 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 +86 -86
- package/dist-lib/public-origins-lib.json +96 -96
- 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 +2791 -2777
- package/dist-lib/swift-compile.cjs +192 -177
- 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/src/engine/app-fontContract.d.ts +0 -9
- package/dist-types/packages/peach-engine/src/engine/image-host.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/native-android-stretch.d.ts +0 -15
- package/dist-types/packages/peach-engine/src/engine/native-app-catalog.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/native-app-font-config.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/native-boundary-client.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +0 -9
- package/dist-types/packages/peach-engine/src/react-native/AppState.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/react-native/Keyboard.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/ring-mode-state.d.ts +0 -1
- package/dist-types/packages/peach-kit/src/transitions/screen-transition-math.d.ts +0 -31
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/assetCatalogContract.ts +0 -6
- package/src/expo-pod-prebuilt.ts +0 -63
- package/src/native-package-slice.ts +0 -2
- package/src/podfile-cocoapods.ts +0 -5
- package/src/runtime-assets.ts +0 -9
- package/src/swift-compile.ts +9 -6
- package/src/swift-distribution-mirror.ts +16 -5
- package/src/swift-guest-link.ts +0 -9
- package/src/swift-guest-projection.ts +1 -46
- package/src/swift-guest-runtime-plan.ts +4 -80
- package/src/swift-header-compiler.ts +24 -9
- package/src/swift-wasm-prune.ts +0 -5
- package/src/swiftRuntimeProductContract.ts +1 -0
- package/src/wasm-narrow-boundary.ts +0 -13
- package/src/wasm-lazy-split-tool.ts +0 -210
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2776 | (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;
|
|
@@ -19579,7 +19579,7 @@ var init_react_native_core_digest = __esm({
|
|
|
19579
19579
|
|
|
19580
19580
|
// src/swift-compiler-digest.ts
|
|
19581
19581
|
function swiftArchiveCompilerDigestValue() {
|
|
19582
|
-
return true ? "
|
|
19582
|
+
return true ? "dafa6520c0bcd0e852437835ad9626e824b1e758db5c163a7de2f7fc70ac67ee" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
19583
19583
|
}
|
|
19584
19584
|
var import_node_crypto16, import_node_fs32, import_node_path31, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
19585
19585
|
var init_swift_compiler_digest = __esm({
|
|
@@ -19725,13 +19725,13 @@ var init_swift_standin_digest = __esm({
|
|
|
19725
19725
|
];
|
|
19726
19726
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
19727
19727
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
19728
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
19728
|
+
STANDIN_SOURCE_DIGEST = true ? "c2d1c024e059538977fdd0666278d52ec2116aafae79fe0e8b1cda82a5981f3b" : standinSourceDigest();
|
|
19729
19729
|
}
|
|
19730
19730
|
});
|
|
19731
19731
|
|
|
19732
19732
|
// src/expo-native-compiler-digest.ts
|
|
19733
19733
|
function expoNativeCompilerDigestValue() {
|
|
19734
|
-
return true ? "
|
|
19734
|
+
return true ? "c9950c3dbdb6ca5891145f8c4133c9b62e89b35f62d9343e8d7ef410cda838f5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
19735
19735
|
}
|
|
19736
19736
|
var import_node_crypto18;
|
|
19737
19737
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -23891,6 +23891,128 @@ var init_swift_design_time = __esm({
|
|
|
23891
23891
|
}
|
|
23892
23892
|
});
|
|
23893
23893
|
|
|
23894
|
+
// src/swiftRuntimeProductContract.ts
|
|
23895
|
+
var v, SWIFT_FRAMEWORK_PRODUCT_FILE, swiftFrameworkProductSchema, SWIFT_SDK_PRODUCT_FILE, SWIFT_SDK_PRODUCT_DIRECTORY, swiftSdkProductSchema, swiftSdkProductsSchema;
|
|
23896
|
+
var init_swiftRuntimeProductContract = __esm({
|
|
23897
|
+
"src/swiftRuntimeProductContract.ts"() {
|
|
23898
|
+
"use strict";
|
|
23899
|
+
v = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
23900
|
+
init_swiftTargetContract();
|
|
23901
|
+
SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
23902
|
+
swiftFrameworkProductSchema = v.object({
|
|
23903
|
+
version: v.literal(1),
|
|
23904
|
+
packageName: v.string(),
|
|
23905
|
+
manifestSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
23906
|
+
product: v.object({
|
|
23907
|
+
name: v.string(),
|
|
23908
|
+
linkage: v.picklist(["static", "dynamic", "automatic"]),
|
|
23909
|
+
targets: v.array(v.string())
|
|
23910
|
+
}),
|
|
23911
|
+
// framework names are distinct from SDK library linkNames. they identify
|
|
23912
|
+
// the packaged owner, not an observed native image dependency.
|
|
23913
|
+
frameworkAliases: v.array(
|
|
23914
|
+
v.object({
|
|
23915
|
+
kind: v.literal("framework"),
|
|
23916
|
+
name: v.string(),
|
|
23917
|
+
targets: v.array(v.string()),
|
|
23918
|
+
moduleMap: v.string(),
|
|
23919
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
23920
|
+
wasmSdkId: v.string(),
|
|
23921
|
+
wasmSdkChecksum: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
23922
|
+
})
|
|
23923
|
+
),
|
|
23924
|
+
targets: v.array(
|
|
23925
|
+
v.object({
|
|
23926
|
+
name: v.string(),
|
|
23927
|
+
path: v.string(),
|
|
23928
|
+
kind: v.picklist(["regular", "system"]),
|
|
23929
|
+
dependencies: v.array(v.string())
|
|
23930
|
+
})
|
|
23931
|
+
),
|
|
23932
|
+
objects: v.array(v.object({ path: v.string(), target: v.string() })),
|
|
23933
|
+
autolink: v.array(v.string())
|
|
23934
|
+
});
|
|
23935
|
+
SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
23936
|
+
SWIFT_SDK_PRODUCT_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
23937
|
+
swiftSdkProductSchema = v.pipe(
|
|
23938
|
+
v.object({
|
|
23939
|
+
id: v.string(),
|
|
23940
|
+
installName: v.string(),
|
|
23941
|
+
target: v.literal(SWIFT_WASM_TRIPLE),
|
|
23942
|
+
linkNames: v.array(v.string()),
|
|
23943
|
+
// absent records declare no framework namespace, even when a library name matches.
|
|
23944
|
+
frameworkAliases: v.optional(
|
|
23945
|
+
v.array(
|
|
23946
|
+
v.object({
|
|
23947
|
+
name: v.string(),
|
|
23948
|
+
moduleMap: v.string(),
|
|
23949
|
+
moduleMapSha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
23950
|
+
})
|
|
23951
|
+
),
|
|
23952
|
+
[]
|
|
23953
|
+
),
|
|
23954
|
+
buildDependencies: v.array(v.string()),
|
|
23955
|
+
linkOwnership: v.picklist(["image", "containing-image"]),
|
|
23956
|
+
linkDependencies: v.nullable(v.array(v.string())),
|
|
23957
|
+
autolink: v.array(v.string()),
|
|
23958
|
+
sources: v.array(
|
|
23959
|
+
v.object({
|
|
23960
|
+
path: v.string(),
|
|
23961
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
23962
|
+
})
|
|
23963
|
+
),
|
|
23964
|
+
artifacts: v.array(
|
|
23965
|
+
v.variant("kind", [
|
|
23966
|
+
v.object({
|
|
23967
|
+
kind: v.literal("archive"),
|
|
23968
|
+
path: v.string(),
|
|
23969
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
23970
|
+
members: v.array(
|
|
23971
|
+
v.object({
|
|
23972
|
+
name: v.string(),
|
|
23973
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
23974
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
23975
|
+
sources: v.array(v.string())
|
|
23976
|
+
})
|
|
23977
|
+
)
|
|
23978
|
+
}),
|
|
23979
|
+
v.object({
|
|
23980
|
+
kind: v.literal("object"),
|
|
23981
|
+
path: v.string(),
|
|
23982
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/)),
|
|
23983
|
+
sources: v.array(v.string()),
|
|
23984
|
+
input: v.optional(
|
|
23985
|
+
v.object({
|
|
23986
|
+
product: v.string(),
|
|
23987
|
+
artifact: v.object({
|
|
23988
|
+
path: v.string(),
|
|
23989
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
23990
|
+
}),
|
|
23991
|
+
member: v.optional(
|
|
23992
|
+
v.object({
|
|
23993
|
+
name: v.string(),
|
|
23994
|
+
ordinal: v.pipe(v.number(), v.integer(), v.minValue(1)),
|
|
23995
|
+
sha256: v.pipe(v.string(), v.regex(/^[a-f0-9]{64}$/))
|
|
23996
|
+
})
|
|
23997
|
+
)
|
|
23998
|
+
})
|
|
23999
|
+
)
|
|
24000
|
+
})
|
|
24001
|
+
])
|
|
24002
|
+
)
|
|
24003
|
+
}),
|
|
24004
|
+
v.check(
|
|
24005
|
+
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
24006
|
+
"containing-image products cannot declare an image scope"
|
|
24007
|
+
)
|
|
24008
|
+
);
|
|
24009
|
+
swiftSdkProductsSchema = v.object({
|
|
24010
|
+
version: v.literal(1),
|
|
24011
|
+
products: v.array(swiftSdkProductSchema)
|
|
24012
|
+
});
|
|
24013
|
+
}
|
|
24014
|
+
});
|
|
24015
|
+
|
|
23894
24016
|
// src/swift-distribution-mirror.ts
|
|
23895
24017
|
function syncSwiftDistributionMirror(root, source, manifest) {
|
|
23896
24018
|
const mirror = import_node_path40.default.join(root, SWIFT_DISTRIBUTION_MIRROR);
|
|
@@ -23953,10 +24075,12 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
23953
24075
|
const options2 = ["--swift-sdks-path", mirror];
|
|
23954
24076
|
const interrupted = (0, import_node_fs42.existsSync)(syncingMarker);
|
|
23955
24077
|
const previous = interrupted ? null : readSdkRecord(recordFile);
|
|
23956
|
-
|
|
24078
|
+
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
24079
|
+
const catalog = import_node_path40.default.join(destTriple, SDK_PRODUCT_CATALOG);
|
|
24080
|
+
const sourceCatalog = import_node_path40.default.join(sourceTriple, SDK_PRODUCT_CATALOG);
|
|
24081
|
+
if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && (0, import_node_fs42.existsSync)(bundleInfo) && (0, import_node_fs42.existsSync)(import_node_path40.default.join(destTriple, "swift-sdk.json")) && (!(0, import_node_fs42.lstatSync)(sourceCatalog, { throwIfNoEntry: false })?.isSymbolicLink() || (0, import_node_fs42.lstatSync)(catalog, { throwIfNoEntry: false })?.isSymbolicLink())) {
|
|
23957
24082
|
return { id: SWIFT_SDK_MIRROR_ID, options: options2, toolsetChanged: false };
|
|
23958
24083
|
}
|
|
23959
|
-
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
23960
24084
|
if (!previous) {
|
|
23961
24085
|
if (!interrupted) (0, import_node_fs42.rmSync)(mirror, { recursive: true, force: true });
|
|
23962
24086
|
(0, import_node_fs42.rmSync)(import_node_path40.default.join(root, ".build"), { recursive: true, force: true });
|
|
@@ -23996,7 +24120,7 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
23996
24120
|
(0, import_node_fs42.rmSync)(import_node_path40.default.join(root, ".build"), { recursive: true, force: true });
|
|
23997
24121
|
} else {
|
|
23998
24122
|
const compileTouched = touched.filter(
|
|
23999
|
-
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !==
|
|
24123
|
+
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== SWIFT_SDK_PRODUCT_FILE && file !== SDK_PRODUCT_CATALOG
|
|
24000
24124
|
);
|
|
24001
24125
|
const headersChanged = compileTouched.some(
|
|
24002
24126
|
(file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
|
|
@@ -24065,8 +24189,8 @@ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, re
|
|
|
24065
24189
|
const dest = import_node_path40.default.join(destDir, entry.name);
|
|
24066
24190
|
const destLstat = (0, import_node_fs42.lstatSync)(dest, { throwIfNoEntry: false });
|
|
24067
24191
|
if (entry.isSymbolicLink()) {
|
|
24068
|
-
const target = (0, import_node_fs42.readlinkSync)(src);
|
|
24069
|
-
if (target.startsWith(distributionPrefix)) {
|
|
24192
|
+
const target = import_node_path40.default.resolve(sourceDir, (0, import_node_fs42.readlinkSync)(src));
|
|
24193
|
+
if (target.startsWith(distributionPrefix) || rel === SDK_PRODUCT_CATALOG) {
|
|
24070
24194
|
if (destLstat?.isSymbolicLink() && (0, import_node_fs42.readlinkSync)(dest) === target) continue;
|
|
24071
24195
|
if (destLstat) (0, import_node_fs42.rmSync)(dest, { recursive: true, force: true });
|
|
24072
24196
|
(0, import_node_fs42.symlinkSync)(target, dest);
|
|
@@ -24188,7 +24312,7 @@ function invalidateBuildDependents(root, spellings, read, headersChanged) {
|
|
|
24188
24312
|
if (headersChanged)
|
|
24189
24313
|
(0, import_node_fs42.rmSync)(import_node_path40.default.join(scratch2, "ModuleCache"), { recursive: true, force: true });
|
|
24190
24314
|
}
|
|
24191
|
-
var import_node_crypto24, import_node_fs42, import_node_path40, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_SYNCING, SWIFT_SDK_MIRROR_BUNDLE, SWIFT_DISTRIBUTION_MIRROR_SYNCING;
|
|
24315
|
+
var import_node_crypto24, import_node_fs42, import_node_path40, SWIFT_DISTRIBUTION_MIRROR, SWIFT_SDK_MIRROR, SWIFT_SDK_MIRROR_ID, SWIFT_SDK_MIRROR_RECORD, SWIFT_SDK_MIRROR_SYNCING, SWIFT_SDK_MIRROR_BUNDLE, SWIFT_DISTRIBUTION_MIRROR_SYNCING, SDK_PRODUCT_CATALOG;
|
|
24192
24316
|
var init_swift_distribution_mirror = __esm({
|
|
24193
24317
|
"src/swift-distribution-mirror.ts"() {
|
|
24194
24318
|
"use strict";
|
|
@@ -24200,6 +24324,7 @@ var init_swift_distribution_mirror = __esm({
|
|
|
24200
24324
|
init_swift_distribution_contract();
|
|
24201
24325
|
init_swift_shared_sdk();
|
|
24202
24326
|
init_swiftContract();
|
|
24327
|
+
init_swiftRuntimeProductContract();
|
|
24203
24328
|
init_swiftTargetContract();
|
|
24204
24329
|
SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
|
|
24205
24330
|
SWIFT_SDK_MIRROR = ".peach-sdk";
|
|
@@ -24208,6 +24333,7 @@ var init_swift_distribution_mirror = __esm({
|
|
|
24208
24333
|
SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
|
|
24209
24334
|
SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
|
|
24210
24335
|
SWIFT_DISTRIBUTION_MIRROR_SYNCING = ".peach-distribution-syncing";
|
|
24336
|
+
SDK_PRODUCT_CATALOG = `${SWIFT_SDK_PRODUCT_DIRECTORY}/${SWIFT_SDK_PRODUCT_FILE}`;
|
|
24211
24337
|
}
|
|
24212
24338
|
});
|
|
24213
24339
|
|
|
@@ -24334,8 +24460,8 @@ function guestSourceImages(input, swift) {
|
|
|
24334
24460
|
membership = sourceImageMembership(graph);
|
|
24335
24461
|
}
|
|
24336
24462
|
if (promoted.length) {
|
|
24337
|
-
const names =
|
|
24338
|
-
|
|
24463
|
+
const names = v2.parse(
|
|
24464
|
+
v2.array(v2.string()),
|
|
24339
24465
|
JSON.parse(
|
|
24340
24466
|
(0, import_node_child_process21.execFileSync)(
|
|
24341
24467
|
swift,
|
|
@@ -24526,13 +24652,13 @@ function planGuestSourceLink(graph, images, callers, artifacts, symbols) {
|
|
|
24526
24652
|
symbols
|
|
24527
24653
|
};
|
|
24528
24654
|
}
|
|
24529
|
-
var import_node_child_process21, import_node_path41,
|
|
24655
|
+
var import_node_child_process21, import_node_path41, v2, NATIVE_ARCHIVE_OBJECTS_DIR;
|
|
24530
24656
|
var init_swift_guest_source_plan = __esm({
|
|
24531
24657
|
"src/swift-guest-source-plan.ts"() {
|
|
24532
24658
|
"use strict";
|
|
24533
24659
|
import_node_child_process21 = require("node:child_process");
|
|
24534
24660
|
import_node_path41 = __toESM(require("node:path"), 1);
|
|
24535
|
-
|
|
24661
|
+
v2 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
24536
24662
|
init_swift_package();
|
|
24537
24663
|
init_swift_toolchain();
|
|
24538
24664
|
NATIVE_ARCHIVE_OBJECTS_DIR = ".peach-native-libraries";
|
|
@@ -24719,7 +24845,7 @@ var init_guest_engine_services = __esm({
|
|
|
24719
24845
|
});
|
|
24720
24846
|
|
|
24721
24847
|
// src/swift-guest-linked-spans.ts
|
|
24722
|
-
function
|
|
24848
|
+
function number2(bytes, start) {
|
|
24723
24849
|
let value = 0;
|
|
24724
24850
|
let shift = 0;
|
|
24725
24851
|
let pos = start;
|
|
@@ -24732,7 +24858,7 @@ function number(bytes, start) {
|
|
|
24732
24858
|
}
|
|
24733
24859
|
}
|
|
24734
24860
|
function signedAddress(bytes, start) {
|
|
24735
|
-
const [value, end] =
|
|
24861
|
+
const [value, end] = number2(bytes, start);
|
|
24736
24862
|
const bits = (end - start) * 7;
|
|
24737
24863
|
const signed = bits < 32 && bytes[end - 1] & 64 ? value - 2 ** bits : value;
|
|
24738
24864
|
return [signed >>> 0, end];
|
|
@@ -24740,7 +24866,7 @@ function signedAddress(bytes, start) {
|
|
|
24740
24866
|
function startupDataInitializers(body) {
|
|
24741
24867
|
let pos = 0;
|
|
24742
24868
|
const read = () => {
|
|
24743
|
-
const [value, next] =
|
|
24869
|
+
const [value, next] = number2(body, pos);
|
|
24744
24870
|
pos = next;
|
|
24745
24871
|
return value;
|
|
24746
24872
|
};
|
|
@@ -24819,7 +24945,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24819
24945
|
let offset = 8;
|
|
24820
24946
|
while (offset < bytes.length) {
|
|
24821
24947
|
const id = bytes[offset++];
|
|
24822
|
-
const [size2, start2] =
|
|
24948
|
+
const [size2, start2] = number2(bytes, offset);
|
|
24823
24949
|
if (start2 + size2 > bytes.length) throw new Error("invalid wasm section");
|
|
24824
24950
|
if (id) sections.set(id, [start2, start2 + size2]);
|
|
24825
24951
|
offset = start2 + size2;
|
|
@@ -24828,7 +24954,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24828
24954
|
if (!exports2) throw new Error("guest wasm does not export memory and table");
|
|
24829
24955
|
let exportPosition = exports2[0];
|
|
24830
24956
|
const readExport2 = () => {
|
|
24831
|
-
const [value, next] =
|
|
24957
|
+
const [value, next] = number2(bytes, exportPosition);
|
|
24832
24958
|
exportPosition = next;
|
|
24833
24959
|
return value;
|
|
24834
24960
|
};
|
|
@@ -24849,7 +24975,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24849
24975
|
if (section2) {
|
|
24850
24976
|
let pos = section2[0];
|
|
24851
24977
|
const read = () => {
|
|
24852
|
-
const [value, next] =
|
|
24978
|
+
const [value, next] = number2(bytes, pos);
|
|
24853
24979
|
pos = next;
|
|
24854
24980
|
return value;
|
|
24855
24981
|
};
|
|
@@ -24892,7 +25018,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24892
25018
|
if (memory) {
|
|
24893
25019
|
let pos = memory[0];
|
|
24894
25020
|
const read = () => {
|
|
24895
|
-
const [value, next] =
|
|
25021
|
+
const [value, next] = number2(bytes, pos);
|
|
24896
25022
|
pos = next;
|
|
24897
25023
|
return value;
|
|
24898
25024
|
};
|
|
@@ -24906,7 +25032,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24906
25032
|
}
|
|
24907
25033
|
if (memoryPages === void 0) throw new Error("guest wasm has no memory");
|
|
24908
25034
|
const start = sections.get(8);
|
|
24909
|
-
const startFunction = start ?
|
|
25035
|
+
const startFunction = start ? number2(bytes, start[0])[0] : void 0;
|
|
24910
25036
|
let startup;
|
|
24911
25037
|
const functionsByCodeOffset = /* @__PURE__ */ new Map();
|
|
24912
25038
|
const code = sections.get(10);
|
|
@@ -24962,7 +25088,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24962
25088
|
return b0;
|
|
24963
25089
|
}
|
|
24964
25090
|
}
|
|
24965
|
-
const [value, next] =
|
|
25091
|
+
const [value, next] = number2(bytes, pos);
|
|
24966
25092
|
pos = next;
|
|
24967
25093
|
return value;
|
|
24968
25094
|
};
|
|
@@ -24999,7 +25125,7 @@ function layout(bytes, readData = true, requireExports = true) {
|
|
|
24999
25125
|
if (dataSection && readData) {
|
|
25000
25126
|
let pos = dataSection[0];
|
|
25001
25127
|
const read = () => {
|
|
25002
|
-
const [value, next] =
|
|
25128
|
+
const [value, next] = number2(bytes, pos);
|
|
25003
25129
|
pos = next;
|
|
25004
25130
|
return value;
|
|
25005
25131
|
};
|
|
@@ -25343,7 +25469,7 @@ function takeGuestStartupData(wasm, address, length) {
|
|
|
25343
25469
|
while (offset < wasm.length) {
|
|
25344
25470
|
const header = offset;
|
|
25345
25471
|
const id = wasm[offset++];
|
|
25346
|
-
const [size3, start2] =
|
|
25472
|
+
const [size3, start2] = number2(wasm, offset);
|
|
25347
25473
|
if (id) sections.set(id, [header, start2, start2 + size3]);
|
|
25348
25474
|
offset = start2 + size3;
|
|
25349
25475
|
}
|
|
@@ -25351,13 +25477,13 @@ function takeGuestStartupData(wasm, address, length) {
|
|
|
25351
25477
|
const code = sections.get(10);
|
|
25352
25478
|
const data = sections.get(11);
|
|
25353
25479
|
if (!start || !code || !data) throw new Error("guest wasm has no startup data");
|
|
25354
|
-
const [startFunction] =
|
|
25480
|
+
const [startFunction] = number2(wasm, start[1]);
|
|
25355
25481
|
let functionImports = 0;
|
|
25356
25482
|
const imports2 = sections.get(2);
|
|
25357
25483
|
if (imports2) {
|
|
25358
25484
|
let pos2 = imports2[1];
|
|
25359
25485
|
const read = () => {
|
|
25360
|
-
const [value, next2] =
|
|
25486
|
+
const [value, next2] = number2(wasm, pos2);
|
|
25361
25487
|
pos2 = next2;
|
|
25362
25488
|
return value;
|
|
25363
25489
|
};
|
|
@@ -25389,29 +25515,29 @@ function takeGuestStartupData(wasm, address, length) {
|
|
|
25389
25515
|
}
|
|
25390
25516
|
let pos = code[1];
|
|
25391
25517
|
let body;
|
|
25392
|
-
let [count, next] =
|
|
25518
|
+
let [count, next] = number2(wasm, pos);
|
|
25393
25519
|
pos = next;
|
|
25394
25520
|
for (let index = 0; index < count; index++) {
|
|
25395
|
-
const [size3, bodyStart] =
|
|
25521
|
+
const [size3, bodyStart] = number2(wasm, pos);
|
|
25396
25522
|
if (functionImports + index === startFunction) body = [bodyStart, bodyStart + size3];
|
|
25397
25523
|
pos = bodyStart + size3;
|
|
25398
25524
|
}
|
|
25399
25525
|
if (!body) throw new Error("guest wasm start function has no body");
|
|
25400
25526
|
const segments = [];
|
|
25401
25527
|
pos = data[1];
|
|
25402
|
-
[count, pos] =
|
|
25528
|
+
[count, pos] = number2(wasm, pos);
|
|
25403
25529
|
for (let index = 0; index < count; index++) {
|
|
25404
25530
|
const header = pos;
|
|
25405
|
-
const [flags, afterFlags] =
|
|
25531
|
+
const [flags, afterFlags] = number2(wasm, pos);
|
|
25406
25532
|
pos = afterFlags;
|
|
25407
25533
|
let active;
|
|
25408
25534
|
if (flags !== 1) {
|
|
25409
|
-
if (flags === 2) pos =
|
|
25535
|
+
if (flags === 2) pos = number2(wasm, pos)[1];
|
|
25410
25536
|
[active, pos] = signedAddress(wasm, pos + 1);
|
|
25411
25537
|
pos++;
|
|
25412
25538
|
}
|
|
25413
25539
|
const sizeAt = pos;
|
|
25414
|
-
const [size3, payload2] =
|
|
25540
|
+
const [size3, payload2] = number2(wasm, pos);
|
|
25415
25541
|
if (active !== void 0 && active < address + length && active + size3 > address)
|
|
25416
25542
|
throw new Error("guest startup data range overlaps an active segment");
|
|
25417
25543
|
segments.push({ header, sizeAt, payload: payload2, length: size3 });
|
|
@@ -26879,127 +27005,6 @@ var init_swift_wasm_archive = __esm({
|
|
|
26879
27005
|
}
|
|
26880
27006
|
});
|
|
26881
27007
|
|
|
26882
|
-
// src/swiftRuntimeProductContract.ts
|
|
26883
|
-
var v2, SWIFT_FRAMEWORK_PRODUCT_FILE, swiftFrameworkProductSchema, SWIFT_SDK_PRODUCT_FILE, swiftSdkProductSchema, swiftSdkProductsSchema;
|
|
26884
|
-
var init_swiftRuntimeProductContract = __esm({
|
|
26885
|
-
"src/swiftRuntimeProductContract.ts"() {
|
|
26886
|
-
"use strict";
|
|
26887
|
-
v2 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
26888
|
-
init_swiftTargetContract();
|
|
26889
|
-
SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
26890
|
-
swiftFrameworkProductSchema = v2.object({
|
|
26891
|
-
version: v2.literal(1),
|
|
26892
|
-
packageName: v2.string(),
|
|
26893
|
-
manifestSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
|
|
26894
|
-
product: v2.object({
|
|
26895
|
-
name: v2.string(),
|
|
26896
|
-
linkage: v2.picklist(["static", "dynamic", "automatic"]),
|
|
26897
|
-
targets: v2.array(v2.string())
|
|
26898
|
-
}),
|
|
26899
|
-
// framework names are distinct from SDK library linkNames. they identify
|
|
26900
|
-
// the packaged owner, not an observed native image dependency.
|
|
26901
|
-
frameworkAliases: v2.array(
|
|
26902
|
-
v2.object({
|
|
26903
|
-
kind: v2.literal("framework"),
|
|
26904
|
-
name: v2.string(),
|
|
26905
|
-
targets: v2.array(v2.string()),
|
|
26906
|
-
moduleMap: v2.string(),
|
|
26907
|
-
moduleMapSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
|
|
26908
|
-
wasmSdkId: v2.string(),
|
|
26909
|
-
wasmSdkChecksum: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
|
|
26910
|
-
})
|
|
26911
|
-
),
|
|
26912
|
-
targets: v2.array(
|
|
26913
|
-
v2.object({
|
|
26914
|
-
name: v2.string(),
|
|
26915
|
-
path: v2.string(),
|
|
26916
|
-
kind: v2.picklist(["regular", "system"]),
|
|
26917
|
-
dependencies: v2.array(v2.string())
|
|
26918
|
-
})
|
|
26919
|
-
),
|
|
26920
|
-
objects: v2.array(v2.object({ path: v2.string(), target: v2.string() })),
|
|
26921
|
-
autolink: v2.array(v2.string())
|
|
26922
|
-
});
|
|
26923
|
-
SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
26924
|
-
swiftSdkProductSchema = v2.pipe(
|
|
26925
|
-
v2.object({
|
|
26926
|
-
id: v2.string(),
|
|
26927
|
-
installName: v2.string(),
|
|
26928
|
-
target: v2.literal(SWIFT_WASM_TRIPLE),
|
|
26929
|
-
linkNames: v2.array(v2.string()),
|
|
26930
|
-
// absent records declare no framework namespace, even when a library name matches.
|
|
26931
|
-
frameworkAliases: v2.optional(
|
|
26932
|
-
v2.array(
|
|
26933
|
-
v2.object({
|
|
26934
|
-
name: v2.string(),
|
|
26935
|
-
moduleMap: v2.string(),
|
|
26936
|
-
moduleMapSha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
|
|
26937
|
-
})
|
|
26938
|
-
),
|
|
26939
|
-
[]
|
|
26940
|
-
),
|
|
26941
|
-
buildDependencies: v2.array(v2.string()),
|
|
26942
|
-
linkOwnership: v2.picklist(["image", "containing-image"]),
|
|
26943
|
-
linkDependencies: v2.nullable(v2.array(v2.string())),
|
|
26944
|
-
autolink: v2.array(v2.string()),
|
|
26945
|
-
sources: v2.array(
|
|
26946
|
-
v2.object({
|
|
26947
|
-
path: v2.string(),
|
|
26948
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
|
|
26949
|
-
})
|
|
26950
|
-
),
|
|
26951
|
-
artifacts: v2.array(
|
|
26952
|
-
v2.variant("kind", [
|
|
26953
|
-
v2.object({
|
|
26954
|
-
kind: v2.literal("archive"),
|
|
26955
|
-
path: v2.string(),
|
|
26956
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
|
|
26957
|
-
members: v2.array(
|
|
26958
|
-
v2.object({
|
|
26959
|
-
name: v2.string(),
|
|
26960
|
-
ordinal: v2.pipe(v2.number(), v2.integer(), v2.minValue(1)),
|
|
26961
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
|
|
26962
|
-
sources: v2.array(v2.string())
|
|
26963
|
-
})
|
|
26964
|
-
)
|
|
26965
|
-
}),
|
|
26966
|
-
v2.object({
|
|
26967
|
-
kind: v2.literal("object"),
|
|
26968
|
-
path: v2.string(),
|
|
26969
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/)),
|
|
26970
|
-
sources: v2.array(v2.string()),
|
|
26971
|
-
input: v2.optional(
|
|
26972
|
-
v2.object({
|
|
26973
|
-
product: v2.string(),
|
|
26974
|
-
artifact: v2.object({
|
|
26975
|
-
path: v2.string(),
|
|
26976
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
|
|
26977
|
-
}),
|
|
26978
|
-
member: v2.optional(
|
|
26979
|
-
v2.object({
|
|
26980
|
-
name: v2.string(),
|
|
26981
|
-
ordinal: v2.pipe(v2.number(), v2.integer(), v2.minValue(1)),
|
|
26982
|
-
sha256: v2.pipe(v2.string(), v2.regex(/^[a-f0-9]{64}$/))
|
|
26983
|
-
})
|
|
26984
|
-
)
|
|
26985
|
-
})
|
|
26986
|
-
)
|
|
26987
|
-
})
|
|
26988
|
-
])
|
|
26989
|
-
)
|
|
26990
|
-
}),
|
|
26991
|
-
v2.check(
|
|
26992
|
-
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
26993
|
-
"containing-image products cannot declare an image scope"
|
|
26994
|
-
)
|
|
26995
|
-
);
|
|
26996
|
-
swiftSdkProductsSchema = v2.object({
|
|
26997
|
-
version: v2.literal(1),
|
|
26998
|
-
products: v2.array(swiftSdkProductSchema)
|
|
26999
|
-
});
|
|
27000
|
-
}
|
|
27001
|
-
});
|
|
27002
|
-
|
|
27003
27008
|
// src/swift-wasm-prune.ts
|
|
27004
27009
|
function sha256Hex2(bytes) {
|
|
27005
27010
|
if (typeof Bun !== "undefined")
|
|
@@ -32272,9 +32277,9 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
32272
32277
|
const linked = (0, import_node_fs48.readFileSync)(file);
|
|
32273
32278
|
const hash = (bytes) => (0, import_node_crypto31.createHash)("sha256").update(bytes).digest("hex");
|
|
32274
32279
|
if (hash(linked) === artifact.sha256) return { source: linked, linked };
|
|
32275
|
-
if (artifact.kind !== "archive" || artifact.path !== `${
|
|
32280
|
+
if (artifact.kind !== "archive" || artifact.path !== `${SWIFT_SDK_PRODUCT_DIRECTORY}/libFoundation.a`)
|
|
32276
32281
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
32277
|
-
const catalog = import_node_path46.default.join(root,
|
|
32282
|
+
const catalog = import_node_path46.default.join(root, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE);
|
|
32278
32283
|
const sourceDirectory = import_node_path46.default.dirname((0, import_node_fs48.realpathSync)(catalog));
|
|
32279
32284
|
const source = (0, import_node_fs48.readFileSync)(import_node_path46.default.join(sourceDirectory, "libFoundation.a"));
|
|
32280
32285
|
if (hash(source) !== artifact.sha256)
|
|
@@ -32309,13 +32314,7 @@ function readGuestRuntimeCatalogs(sdkRoot, distributionRoot) {
|
|
|
32309
32314
|
);
|
|
32310
32315
|
const sdk2 = v5.parse(
|
|
32311
32316
|
swiftSdkProductsSchema,
|
|
32312
|
-
read(
|
|
32313
|
-
import_node_path46.default.join(
|
|
32314
|
-
sdkRoot,
|
|
32315
|
-
"swift.xctoolchain/usr/lib/swift_static/wasi",
|
|
32316
|
-
SWIFT_SDK_PRODUCT_FILE
|
|
32317
|
-
)
|
|
32318
|
-
)
|
|
32317
|
+
read(import_node_path46.default.join(sdkRoot, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE))
|
|
32319
32318
|
);
|
|
32320
32319
|
const distribution = v5.parse(
|
|
32321
32320
|
swiftSdkProductsSchema,
|
|
@@ -32789,7 +32788,7 @@ function guestAliasedSdkArchiveArtifacts(options2) {
|
|
|
32789
32788
|
}
|
|
32790
32789
|
return result;
|
|
32791
32790
|
}
|
|
32792
|
-
var import_node_crypto31, import_node_fs48, import_node_path46, v5,
|
|
32791
|
+
var import_node_crypto31, import_node_fs48, import_node_path46, v5, SDK_CONTAINING_IMAGE;
|
|
32793
32792
|
var init_swift_guest_runtime_plan = __esm({
|
|
32794
32793
|
"src/swift-guest-runtime-plan.ts"() {
|
|
32795
32794
|
"use strict";
|
|
@@ -32802,7 +32801,6 @@ var init_swift_guest_runtime_plan = __esm({
|
|
|
32802
32801
|
init_swift_shared_sdk();
|
|
32803
32802
|
init_swift_wasm_prune();
|
|
32804
32803
|
init_swiftRuntimeProductContract();
|
|
32805
|
-
SDK_CATALOG_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
32806
32804
|
SDK_CONTAINING_IMAGE = "wasi/containing-image";
|
|
32807
32805
|
}
|
|
32808
32806
|
});
|
|
@@ -43455,19 +43453,32 @@ function compilerCheckpoint(root, recipe2, args, header) {
|
|
|
43455
43453
|
};
|
|
43456
43454
|
const outputMap = value("-output-file-map");
|
|
43457
43455
|
const module2 = value("-emit-module-path");
|
|
43458
|
-
|
|
43456
|
+
const wholeModule = args.lastIndexOf("-whole-module-optimization") > args.lastIndexOf("-no-whole-module-optimization");
|
|
43457
|
+
const batch = args.includes("-enable-batch-mode") && !args.includes("-incremental");
|
|
43458
|
+
if (!outputMap || !module2 || !wholeModule && !batch) return;
|
|
43459
43459
|
const mapText = (0, import_node_fs63.readFileSync)(outputMap, "utf8");
|
|
43460
43460
|
const map2 = JSON.parse(mapText);
|
|
43461
|
-
if (!isRecord(map2)
|
|
43462
|
-
|
|
43463
|
-
|
|
43464
|
-
|
|
43461
|
+
if (!isRecord(map2)) return;
|
|
43462
|
+
const outputs = [module2, header];
|
|
43463
|
+
if (wholeModule) {
|
|
43464
|
+
if (!isRecord(map2[""]) || typeof map2[""].dependencies !== "string") return;
|
|
43465
|
+
outputs.push(map2[""].dependencies);
|
|
43466
|
+
}
|
|
43467
|
+
let objects = 0;
|
|
43468
|
+
for (const [source, fileOutputs] of Object.entries(map2)) {
|
|
43465
43469
|
if (!source) continue;
|
|
43466
|
-
if (!isRecord(
|
|
43467
|
-
objects
|
|
43468
|
-
|
|
43469
|
-
|
|
43470
|
-
|
|
43470
|
+
if (!isRecord(fileOutputs) || typeof fileOutputs.object !== "string") return;
|
|
43471
|
+
objects++;
|
|
43472
|
+
const object8 = fileOutputs.object;
|
|
43473
|
+
outputs.push(object8);
|
|
43474
|
+
if (!wholeModule) {
|
|
43475
|
+
const dependencies = fileOutputs.dependencies;
|
|
43476
|
+
if (typeof dependencies === "string") outputs.push(dependencies);
|
|
43477
|
+
else if (object8.endsWith(".o")) outputs.push(`${object8.slice(0, -2)}.d`);
|
|
43478
|
+
else return;
|
|
43479
|
+
}
|
|
43480
|
+
}
|
|
43481
|
+
if (objects === 0) return;
|
|
43471
43482
|
const digest2 = (0, import_node_crypto41.createHash)("sha256").update(recipe2).update(JSON.stringify(args)).update(mapText);
|
|
43472
43483
|
for (const flag of args) {
|
|
43473
43484
|
if (!flag.startsWith("@")) continue;
|
|
@@ -49995,7 +50006,9 @@ ${compatShape}` : "";
|
|
|
49995
50006
|
}
|
|
49996
50007
|
const jobs = swiftCompilerJobs();
|
|
49997
50008
|
const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options2.project && !input.optimize && !input.unoptimized;
|
|
49998
|
-
const
|
|
50009
|
+
const batchGuest = guestGraph !== void 0 && !options2.project && !input.unoptimized;
|
|
50010
|
+
const batch = incrementalPreview || batchGuest;
|
|
50011
|
+
const perFile = input.unoptimized || batch;
|
|
49999
50012
|
const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
|
|
50000
50013
|
const buildArgs = [
|
|
50001
50014
|
"build",
|
|
@@ -50020,9 +50033,11 @@ ${compatShape}` : "";
|
|
|
50020
50033
|
"-Xswiftc",
|
|
50021
50034
|
"-j",
|
|
50022
50035
|
"-Xswiftc",
|
|
50023
|
-
String(jobs)
|
|
50036
|
+
String(batchGuest ? Math.min(8, jobs) : jobs)
|
|
50024
50037
|
] : [],
|
|
50025
|
-
|
|
50038
|
+
// optimized batches can move specialized definitions between objects.
|
|
50039
|
+
...incrementalPreview ? ["-Xswiftc", "-incremental"] : [],
|
|
50040
|
+
...batch ? ["-Xswiftc", "-enable-batch-mode"] : [],
|
|
50026
50041
|
// the mirror finds a changed sdk header's readers in their
|
|
50027
50042
|
// dependency files, which omit system headers by default
|
|
50028
50043
|
...mirrorDistribution ? ["-Xswiftc", "-track-system-dependencies"] : [],
|
|
@@ -50036,7 +50051,7 @@ ${compatShape}` : "";
|
|
|
50036
50051
|
"-g0",
|
|
50037
50052
|
"-Xcxx",
|
|
50038
50053
|
"-g0",
|
|
50039
|
-
...
|
|
50054
|
+
...batch ? [] : [
|
|
50040
50055
|
"-Xswiftc",
|
|
50041
50056
|
"-num-threads",
|
|
50042
50057
|
"-Xswiftc",
|
|
@@ -50680,7 +50695,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
50680
50695
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
50681
50696
|
MULTI_MANIFEST_VERSION = 76;
|
|
50682
50697
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
50683
|
-
compilerSourceDigest = true ? "
|
|
50698
|
+
compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
50684
50699
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
50685
50700
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
50686
50701
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -106066,7 +106081,7 @@ var init_nitro_superset = __esm({
|
|
|
106066
106081
|
init_nitroContract();
|
|
106067
106082
|
init_swift_standin_digest();
|
|
106068
106083
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
106069
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
106084
|
+
NITRO_COMPILER_DIGEST = true ? "474b8b30de1650e72f19b75c50a0db7090ddaffdf79752b283fb389946014fa7" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
106070
106085
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
106071
106086
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
106072
106087
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2776 | (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;
|