peachsim 0.1.2774 → 0.1.2775
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 +196 -181
- 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-WYOHSUVU.mjs → acorn-CTIC3GCU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-ETJLJYIY.mjs → chunk-2YTHEKWJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-CRXKBBYS.mjs → chunk-3WU4YTJR.mjs} +173 -157
- package/dist-lib/esm-chunks/{chunk-TRALQNBC.mjs → chunk-4B46TF64.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TJMPCXFB.mjs → chunk-C5EU2DRL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-KGVTCLU7.mjs → chunk-CFNSLWMQ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-RC56H3GQ.mjs → chunk-E6ULRDAP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K7A5D6XB.mjs → chunk-ESP2U4IX.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-M45GB4YE.mjs → chunk-ESWEEZZP.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-3SQGKA6Z.mjs → chunk-FBN2C43P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-F3K2ACFM.mjs → chunk-FVUN2533.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-62NI6YCH.mjs → chunk-GKKZLYBA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ONTQLRM4.mjs → chunk-H5TBKFDB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RGFBDGCR.mjs → chunk-ITTQHQD5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-W2YKROSW.mjs → chunk-JERE5CAK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VR25GACU.mjs → chunk-MJSKVK7E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-R7HK74K2.mjs → chunk-NV5NLKKN.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MZX6AAGH.mjs → chunk-RGOPQX37.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-CDZ6YIIB.mjs → chunk-S47B7YHJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2JGH43VT.mjs → chunk-SK4FQLNJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AEE6PLCM.mjs → chunk-TE3WHBF3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-P5VUFHVB.mjs → chunk-W42DUKWD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B3GMGDAC.mjs → chunk-WB5OWF4G.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-4K3ZR6YW.mjs → chunk-XMBGLLON.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IKCQ5XQP.mjs → chunk-YRKGWASL.mjs} +6 -6
- package/dist-lib/esm-chunks/{metro-layout-parser-QG6UBS3S.mjs → metro-layout-parser-2RQ3WC37.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-KQJ2G4YJ.mjs → swift-package-prebuilt-L5SWVH6U.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-RL3LZGNU.mjs → swift-sdk-app-module-5SWDBTBY.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-L7SO7UED.mjs → swift-sdk-image-OOSMI47A.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-QYH6Z7VW.mjs → swift-sdk-image-producer-DL4VEBXN.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 +4205 -4191
- package/dist-lib/host/fetch-proxy-handler.cjs +343 -340
- 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 +2790 -2776
- 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/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/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,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (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-ESWEEZZP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
withoutImportedSdkEnumForwards,
|
|
59
59
|
withoutSwiftDeclarations,
|
|
60
60
|
writeBuildFile
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-YRKGWASL.mjs";
|
|
62
62
|
import {
|
|
63
63
|
SWIFT_AUTOLINK_LINKER,
|
|
64
64
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
wasmThreadLinkFlags,
|
|
76
76
|
windowAdmission,
|
|
77
77
|
writeSwiftAutolinkLinker
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
79
79
|
import {
|
|
80
80
|
SWIFT_BINARY_TREES_DIR,
|
|
81
81
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
isSwiftResourcePath,
|
|
91
91
|
isSwiftSourceLinkGraph,
|
|
92
92
|
swiftProjectFilesProblems
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-XMBGLLON.mjs";
|
|
94
94
|
import {
|
|
95
95
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
96
96
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -113,16 +113,16 @@ import {
|
|
|
113
113
|
swiftPackagePartition,
|
|
114
114
|
swiftTargetModuleName,
|
|
115
115
|
withoutGlogModuleMap
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-S47B7YHJ.mjs";
|
|
117
117
|
import {
|
|
118
118
|
rnxPublicBrand
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-W42DUKWD.mjs";
|
|
120
120
|
import {
|
|
121
121
|
isRecord
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
123
123
|
import {
|
|
124
124
|
__publicField
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-NV5NLKKN.mjs";
|
|
126
126
|
|
|
127
127
|
// src/swift-compile.ts
|
|
128
128
|
import {
|
|
@@ -3421,6 +3421,122 @@ import {
|
|
|
3421
3421
|
writeFileSync
|
|
3422
3422
|
} from "node:fs";
|
|
3423
3423
|
import path4 from "node:path";
|
|
3424
|
+
|
|
3425
|
+
// src/swiftRuntimeProductContract.ts
|
|
3426
|
+
var SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
3427
|
+
var swiftFrameworkProductSchema = object({
|
|
3428
|
+
version: literal(1),
|
|
3429
|
+
packageName: string(),
|
|
3430
|
+
manifestSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3431
|
+
product: object({
|
|
3432
|
+
name: string(),
|
|
3433
|
+
linkage: picklist(["static", "dynamic", "automatic"]),
|
|
3434
|
+
targets: array(string())
|
|
3435
|
+
}),
|
|
3436
|
+
// framework names are distinct from SDK library linkNames. they identify
|
|
3437
|
+
// the packaged owner, not an observed native image dependency.
|
|
3438
|
+
frameworkAliases: array(
|
|
3439
|
+
object({
|
|
3440
|
+
kind: literal("framework"),
|
|
3441
|
+
name: string(),
|
|
3442
|
+
targets: array(string()),
|
|
3443
|
+
moduleMap: string(),
|
|
3444
|
+
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3445
|
+
wasmSdkId: string(),
|
|
3446
|
+
wasmSdkChecksum: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3447
|
+
})
|
|
3448
|
+
),
|
|
3449
|
+
targets: array(
|
|
3450
|
+
object({
|
|
3451
|
+
name: string(),
|
|
3452
|
+
path: string(),
|
|
3453
|
+
kind: picklist(["regular", "system"]),
|
|
3454
|
+
dependencies: array(string())
|
|
3455
|
+
})
|
|
3456
|
+
),
|
|
3457
|
+
objects: array(object({ path: string(), target: string() })),
|
|
3458
|
+
autolink: array(string())
|
|
3459
|
+
});
|
|
3460
|
+
var SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
3461
|
+
var SWIFT_SDK_PRODUCT_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
3462
|
+
var swiftSdkProductSchema = pipe(
|
|
3463
|
+
object({
|
|
3464
|
+
id: string(),
|
|
3465
|
+
installName: string(),
|
|
3466
|
+
target: literal(SWIFT_WASM_TRIPLE),
|
|
3467
|
+
linkNames: array(string()),
|
|
3468
|
+
// absent records declare no framework namespace, even when a library name matches.
|
|
3469
|
+
frameworkAliases: optional(
|
|
3470
|
+
array(
|
|
3471
|
+
object({
|
|
3472
|
+
name: string(),
|
|
3473
|
+
moduleMap: string(),
|
|
3474
|
+
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3475
|
+
})
|
|
3476
|
+
),
|
|
3477
|
+
[]
|
|
3478
|
+
),
|
|
3479
|
+
buildDependencies: array(string()),
|
|
3480
|
+
linkOwnership: picklist(["image", "containing-image"]),
|
|
3481
|
+
linkDependencies: nullable(array(string())),
|
|
3482
|
+
autolink: array(string()),
|
|
3483
|
+
sources: array(
|
|
3484
|
+
object({
|
|
3485
|
+
path: string(),
|
|
3486
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3487
|
+
})
|
|
3488
|
+
),
|
|
3489
|
+
artifacts: array(
|
|
3490
|
+
variant("kind", [
|
|
3491
|
+
object({
|
|
3492
|
+
kind: literal("archive"),
|
|
3493
|
+
path: string(),
|
|
3494
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3495
|
+
members: array(
|
|
3496
|
+
object({
|
|
3497
|
+
name: string(),
|
|
3498
|
+
ordinal: pipe(number(), integer(), minValue(1)),
|
|
3499
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3500
|
+
sources: array(string())
|
|
3501
|
+
})
|
|
3502
|
+
)
|
|
3503
|
+
}),
|
|
3504
|
+
object({
|
|
3505
|
+
kind: literal("object"),
|
|
3506
|
+
path: string(),
|
|
3507
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
3508
|
+
sources: array(string()),
|
|
3509
|
+
input: optional(
|
|
3510
|
+
object({
|
|
3511
|
+
product: string(),
|
|
3512
|
+
artifact: object({
|
|
3513
|
+
path: string(),
|
|
3514
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3515
|
+
}),
|
|
3516
|
+
member: optional(
|
|
3517
|
+
object({
|
|
3518
|
+
name: string(),
|
|
3519
|
+
ordinal: pipe(number(), integer(), minValue(1)),
|
|
3520
|
+
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
3521
|
+
})
|
|
3522
|
+
)
|
|
3523
|
+
})
|
|
3524
|
+
)
|
|
3525
|
+
})
|
|
3526
|
+
])
|
|
3527
|
+
)
|
|
3528
|
+
}),
|
|
3529
|
+
check(
|
|
3530
|
+
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
3531
|
+
"containing-image products cannot declare an image scope"
|
|
3532
|
+
)
|
|
3533
|
+
);
|
|
3534
|
+
var swiftSdkProductsSchema = object({
|
|
3535
|
+
version: literal(1),
|
|
3536
|
+
products: array(swiftSdkProductSchema)
|
|
3537
|
+
});
|
|
3538
|
+
|
|
3539
|
+
// src/swift-distribution-mirror.ts
|
|
3424
3540
|
var SWIFT_DISTRIBUTION_MIRROR = ".peach-distribution";
|
|
3425
3541
|
var SWIFT_SDK_MIRROR = ".peach-sdk";
|
|
3426
3542
|
var SWIFT_SDK_MIRROR_ID = "peach-wasm-sdk";
|
|
@@ -3428,6 +3544,7 @@ var SWIFT_SDK_MIRROR_RECORD = ".peach-sdk-mirror.json";
|
|
|
3428
3544
|
var SWIFT_SDK_MIRROR_SYNCING = ".peach-sdk-syncing";
|
|
3429
3545
|
var SWIFT_SDK_MIRROR_BUNDLE = "peach-wasm.artifactbundle";
|
|
3430
3546
|
var SWIFT_DISTRIBUTION_MIRROR_SYNCING = ".peach-distribution-syncing";
|
|
3547
|
+
var SDK_PRODUCT_CATALOG = `${SWIFT_SDK_PRODUCT_DIRECTORY}/${SWIFT_SDK_PRODUCT_FILE}`;
|
|
3431
3548
|
function syncSwiftDistributionMirror(root, source, manifest) {
|
|
3432
3549
|
const mirror = path4.join(root, SWIFT_DISTRIBUTION_MIRROR);
|
|
3433
3550
|
const record = path4.join(mirror, SWIFT_DISTRIBUTION_MIRROR_RECORD);
|
|
@@ -3489,10 +3606,12 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
3489
3606
|
const options = ["--swift-sdks-path", mirror];
|
|
3490
3607
|
const interrupted = existsSync(syncingMarker);
|
|
3491
3608
|
const previous = interrupted ? null : readSdkRecord(recordFile);
|
|
3492
|
-
|
|
3609
|
+
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
3610
|
+
const catalog = path4.join(destTriple, SDK_PRODUCT_CATALOG);
|
|
3611
|
+
const sourceCatalog = path4.join(sourceTriple, SDK_PRODUCT_CATALOG);
|
|
3612
|
+
if (previous && previous.sourceView === sourceView && previous.sourceSdkId === sourceSdkId && existsSync(bundleInfo) && existsSync(path4.join(destTriple, "swift-sdk.json")) && (!lstatSync(sourceCatalog, { throwIfNoEntry: false })?.isSymbolicLink() || lstatSync(catalog, { throwIfNoEntry: false })?.isSymbolicLink())) {
|
|
3493
3613
|
return { id: SWIFT_SDK_MIRROR_ID, options, toolsetChanged: false };
|
|
3494
3614
|
}
|
|
3495
|
-
const sourceTriple = resolveSdkViewTripleDir(sourceView, sourceSdkId);
|
|
3496
3615
|
if (!previous) {
|
|
3497
3616
|
if (!interrupted) rmSync2(mirror, { recursive: true, force: true });
|
|
3498
3617
|
rmSync2(path4.join(root, ".build"), { recursive: true, force: true });
|
|
@@ -3532,7 +3651,7 @@ function syncSwiftSdkMirrorFromView(root, frameworkRoot, sourceView, sourceSdkId
|
|
|
3532
3651
|
rmSync2(path4.join(root, ".build"), { recursive: true, force: true });
|
|
3533
3652
|
} else {
|
|
3534
3653
|
const compileTouched = touched.filter(
|
|
3535
|
-
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !==
|
|
3654
|
+
(file) => !file.endsWith(".a") && !file.endsWith(".o") && !file.startsWith("rust/") && file !== SWIFT_SDK_PRODUCT_FILE && file !== SDK_PRODUCT_CATALOG
|
|
3536
3655
|
);
|
|
3537
3656
|
const headersChanged = compileTouched.some(
|
|
3538
3657
|
(file) => !file.endsWith(".swiftmodule") && !file.endsWith(".swiftdoc") && !file.endsWith(".swiftsourceinfo") && !file.endsWith(".abi.json")
|
|
@@ -3601,8 +3720,8 @@ function syncSdkTree(sourceDir, destDir, prefix, distributionPrefix, changed, re
|
|
|
3601
3720
|
const dest = path4.join(destDir, entry.name);
|
|
3602
3721
|
const destLstat = lstatSync(dest, { throwIfNoEntry: false });
|
|
3603
3722
|
if (entry.isSymbolicLink()) {
|
|
3604
|
-
const target = readlinkSync(src);
|
|
3605
|
-
if (target.startsWith(distributionPrefix)) {
|
|
3723
|
+
const target = path4.resolve(sourceDir, readlinkSync(src));
|
|
3724
|
+
if (target.startsWith(distributionPrefix) || rel === SDK_PRODUCT_CATALOG) {
|
|
3606
3725
|
if (destLstat?.isSymbolicLink() && readlinkSync(dest) === target) continue;
|
|
3607
3726
|
if (destLstat) rmSync2(dest, { recursive: true, force: true });
|
|
3608
3727
|
symlinkSync2(target, dest);
|
|
@@ -6212,119 +6331,6 @@ function readArMembers(buf, includeBitcode = false) {
|
|
|
6212
6331
|
return out;
|
|
6213
6332
|
}
|
|
6214
6333
|
|
|
6215
|
-
// src/swiftRuntimeProductContract.ts
|
|
6216
|
-
var SWIFT_FRAMEWORK_PRODUCT_FILE = "lib/framework-product.json";
|
|
6217
|
-
var swiftFrameworkProductSchema = object({
|
|
6218
|
-
version: literal(1),
|
|
6219
|
-
packageName: string(),
|
|
6220
|
-
manifestSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6221
|
-
product: object({
|
|
6222
|
-
name: string(),
|
|
6223
|
-
linkage: picklist(["static", "dynamic", "automatic"]),
|
|
6224
|
-
targets: array(string())
|
|
6225
|
-
}),
|
|
6226
|
-
// framework names are distinct from SDK library linkNames. they identify
|
|
6227
|
-
// the packaged owner, not an observed native image dependency.
|
|
6228
|
-
frameworkAliases: array(
|
|
6229
|
-
object({
|
|
6230
|
-
kind: literal("framework"),
|
|
6231
|
-
name: string(),
|
|
6232
|
-
targets: array(string()),
|
|
6233
|
-
moduleMap: string(),
|
|
6234
|
-
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6235
|
-
wasmSdkId: string(),
|
|
6236
|
-
wasmSdkChecksum: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6237
|
-
})
|
|
6238
|
-
),
|
|
6239
|
-
targets: array(
|
|
6240
|
-
object({
|
|
6241
|
-
name: string(),
|
|
6242
|
-
path: string(),
|
|
6243
|
-
kind: picklist(["regular", "system"]),
|
|
6244
|
-
dependencies: array(string())
|
|
6245
|
-
})
|
|
6246
|
-
),
|
|
6247
|
-
objects: array(object({ path: string(), target: string() })),
|
|
6248
|
-
autolink: array(string())
|
|
6249
|
-
});
|
|
6250
|
-
var SWIFT_SDK_PRODUCT_FILE = "runtime-products.json";
|
|
6251
|
-
var swiftSdkProductSchema = pipe(
|
|
6252
|
-
object({
|
|
6253
|
-
id: string(),
|
|
6254
|
-
installName: string(),
|
|
6255
|
-
target: literal(SWIFT_WASM_TRIPLE),
|
|
6256
|
-
linkNames: array(string()),
|
|
6257
|
-
// absent records declare no framework namespace, even when a library name matches.
|
|
6258
|
-
frameworkAliases: optional(
|
|
6259
|
-
array(
|
|
6260
|
-
object({
|
|
6261
|
-
name: string(),
|
|
6262
|
-
moduleMap: string(),
|
|
6263
|
-
moduleMapSha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6264
|
-
})
|
|
6265
|
-
),
|
|
6266
|
-
[]
|
|
6267
|
-
),
|
|
6268
|
-
buildDependencies: array(string()),
|
|
6269
|
-
linkOwnership: picklist(["image", "containing-image"]),
|
|
6270
|
-
linkDependencies: nullable(array(string())),
|
|
6271
|
-
autolink: array(string()),
|
|
6272
|
-
sources: array(
|
|
6273
|
-
object({
|
|
6274
|
-
path: string(),
|
|
6275
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6276
|
-
})
|
|
6277
|
-
),
|
|
6278
|
-
artifacts: array(
|
|
6279
|
-
variant("kind", [
|
|
6280
|
-
object({
|
|
6281
|
-
kind: literal("archive"),
|
|
6282
|
-
path: string(),
|
|
6283
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6284
|
-
members: array(
|
|
6285
|
-
object({
|
|
6286
|
-
name: string(),
|
|
6287
|
-
ordinal: pipe(number(), integer(), minValue(1)),
|
|
6288
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6289
|
-
sources: array(string())
|
|
6290
|
-
})
|
|
6291
|
-
)
|
|
6292
|
-
}),
|
|
6293
|
-
object({
|
|
6294
|
-
kind: literal("object"),
|
|
6295
|
-
path: string(),
|
|
6296
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/)),
|
|
6297
|
-
sources: array(string()),
|
|
6298
|
-
input: optional(
|
|
6299
|
-
object({
|
|
6300
|
-
product: string(),
|
|
6301
|
-
artifact: object({
|
|
6302
|
-
path: string(),
|
|
6303
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6304
|
-
}),
|
|
6305
|
-
member: optional(
|
|
6306
|
-
object({
|
|
6307
|
-
name: string(),
|
|
6308
|
-
ordinal: pipe(number(), integer(), minValue(1)),
|
|
6309
|
-
sha256: pipe(string(), regex(/^[a-f0-9]{64}$/))
|
|
6310
|
-
})
|
|
6311
|
-
)
|
|
6312
|
-
})
|
|
6313
|
-
)
|
|
6314
|
-
})
|
|
6315
|
-
])
|
|
6316
|
-
)
|
|
6317
|
-
}),
|
|
6318
|
-
check(
|
|
6319
|
-
(product) => product.linkOwnership === "image" || product.linkDependencies === null,
|
|
6320
|
-
"containing-image products cannot declare an image scope"
|
|
6321
|
-
)
|
|
6322
|
-
);
|
|
6323
|
-
var swiftSdkProductsSchema = object({
|
|
6324
|
-
version: literal(1),
|
|
6325
|
-
products: array(swiftSdkProductSchema)
|
|
6326
|
-
});
|
|
6327
|
-
|
|
6328
6334
|
// src/swift-wasm-prune.ts
|
|
6329
6335
|
function sha256Hex(bytes) {
|
|
6330
6336
|
if (typeof Bun !== "undefined")
|
|
@@ -11399,7 +11405,6 @@ var packageSchema = object({
|
|
|
11399
11405
|
});
|
|
11400
11406
|
|
|
11401
11407
|
// src/swift-guest-runtime-plan.ts
|
|
11402
|
-
var SDK_CATALOG_DIRECTORY = "swift.xctoolchain/usr/lib/swift_static/wasi";
|
|
11403
11408
|
var SDK_CONTAINING_IMAGE = "wasi/containing-image";
|
|
11404
11409
|
function canonicalArchivePath(file) {
|
|
11405
11410
|
return path9.join(realpathSync(path9.dirname(file)), path9.basename(file));
|
|
@@ -11409,9 +11414,9 @@ function sdkArtifactBytes(root, artifact) {
|
|
|
11409
11414
|
const linked = readFileSync6(file);
|
|
11410
11415
|
const hash = (bytes) => createHash8("sha256").update(bytes).digest("hex");
|
|
11411
11416
|
if (hash(linked) === artifact.sha256) return { source: linked, linked };
|
|
11412
|
-
if (artifact.kind !== "archive" || artifact.path !== `${
|
|
11417
|
+
if (artifact.kind !== "archive" || artifact.path !== `${SWIFT_SDK_PRODUCT_DIRECTORY}/libFoundation.a`)
|
|
11413
11418
|
throw new Error(`SDK product artifact changed ${file}`);
|
|
11414
|
-
const catalog = path9.join(root,
|
|
11419
|
+
const catalog = path9.join(root, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE);
|
|
11415
11420
|
const sourceDirectory = path9.dirname(realpathSync(catalog));
|
|
11416
11421
|
const source = readFileSync6(path9.join(sourceDirectory, "libFoundation.a"));
|
|
11417
11422
|
if (hash(source) !== artifact.sha256)
|
|
@@ -11446,13 +11451,7 @@ function readGuestRuntimeCatalogs(sdkRoot, distributionRoot) {
|
|
|
11446
11451
|
);
|
|
11447
11452
|
const sdk = parse(
|
|
11448
11453
|
swiftSdkProductsSchema,
|
|
11449
|
-
read(
|
|
11450
|
-
path9.join(
|
|
11451
|
-
sdkRoot,
|
|
11452
|
-
"swift.xctoolchain/usr/lib/swift_static/wasi",
|
|
11453
|
-
SWIFT_SDK_PRODUCT_FILE
|
|
11454
|
-
)
|
|
11455
|
-
)
|
|
11454
|
+
read(path9.join(sdkRoot, SWIFT_SDK_PRODUCT_DIRECTORY, SWIFT_SDK_PRODUCT_FILE))
|
|
11456
11455
|
);
|
|
11457
11456
|
const distribution = parse(
|
|
11458
11457
|
swiftSdkProductsSchema,
|
|
@@ -14677,7 +14676,7 @@ async function compileGuestLink(options) {
|
|
|
14677
14676
|
};
|
|
14678
14677
|
const sdk = options.sdkImage;
|
|
14679
14678
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14680
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14679
|
+
const sdkObjects = (await import("./swift-sdk-image-OOSMI47A.mjs")).readSwiftSdkManifestIndex(
|
|
14681
14680
|
sdk
|
|
14682
14681
|
).guestObjects;
|
|
14683
14682
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14977,7 +14976,7 @@ async function compileGuestLink(options) {
|
|
|
14977
14976
|
swiftAppModuleThunkSection,
|
|
14978
14977
|
swiftSdkProjectionSpans,
|
|
14979
14978
|
writeSwiftSdkAppLink
|
|
14980
|
-
} = await import("./swift-sdk-app-module-
|
|
14979
|
+
} = await import("./swift-sdk-app-module-5SWDBTBY.mjs");
|
|
14981
14980
|
const project = options.project;
|
|
14982
14981
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14983
14982
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -15215,19 +15214,32 @@ function compilerCheckpoint(root, recipe, args, header) {
|
|
|
15215
15214
|
};
|
|
15216
15215
|
const outputMap = value("-output-file-map");
|
|
15217
15216
|
const module = value("-emit-module-path");
|
|
15218
|
-
|
|
15217
|
+
const wholeModule = args.lastIndexOf("-whole-module-optimization") > args.lastIndexOf("-no-whole-module-optimization");
|
|
15218
|
+
const batch = args.includes("-enable-batch-mode") && !args.includes("-incremental");
|
|
15219
|
+
if (!outputMap || !module || !wholeModule && !batch) return;
|
|
15219
15220
|
const mapText = readFileSync11(outputMap, "utf8");
|
|
15220
15221
|
const map = JSON.parse(mapText);
|
|
15221
|
-
if (!isRecord(map)
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15222
|
+
if (!isRecord(map)) return;
|
|
15223
|
+
const outputs = [module, header];
|
|
15224
|
+
if (wholeModule) {
|
|
15225
|
+
if (!isRecord(map[""]) || typeof map[""].dependencies !== "string") return;
|
|
15226
|
+
outputs.push(map[""].dependencies);
|
|
15227
|
+
}
|
|
15228
|
+
let objects = 0;
|
|
15229
|
+
for (const [source, fileOutputs] of Object.entries(map)) {
|
|
15225
15230
|
if (!source) continue;
|
|
15226
|
-
if (!isRecord(
|
|
15227
|
-
objects
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
+
if (!isRecord(fileOutputs) || typeof fileOutputs.object !== "string") return;
|
|
15232
|
+
objects++;
|
|
15233
|
+
const object2 = fileOutputs.object;
|
|
15234
|
+
outputs.push(object2);
|
|
15235
|
+
if (!wholeModule) {
|
|
15236
|
+
const dependencies = fileOutputs.dependencies;
|
|
15237
|
+
if (typeof dependencies === "string") outputs.push(dependencies);
|
|
15238
|
+
else if (object2.endsWith(".o")) outputs.push(`${object2.slice(0, -2)}.d`);
|
|
15239
|
+
else return;
|
|
15240
|
+
}
|
|
15241
|
+
}
|
|
15242
|
+
if (objects === 0) return;
|
|
15231
15243
|
const digest = createHash11("sha256").update(recipe).update(JSON.stringify(args)).update(mapText);
|
|
15232
15244
|
for (const flag of args) {
|
|
15233
15245
|
if (!flag.startsWith("@")) continue;
|
|
@@ -16969,7 +16981,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16969
16981
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16970
16982
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16971
16983
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16972
|
-
var compilerSourceDigest = true ? "
|
|
16984
|
+
var compilerSourceDigest = true ? "1803ba36803a88ceeca92ee7b13baa39dde72fbb72df14659f0414084afaf5d7" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16973
16985
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16974
16986
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16975
16987
|
}
|
|
@@ -21594,7 +21606,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21594
21606
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21595
21607
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21596
21608
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21597
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21609
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-L5SWVH6U.mjs")).useSwiftPackagePrebuilts(
|
|
21598
21610
|
sources,
|
|
21599
21611
|
moduleRoot,
|
|
21600
21612
|
options.toolchainBin
|
|
@@ -21607,7 +21619,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21607
21619
|
sources: path23.join(root, "Sources", "App"),
|
|
21608
21620
|
multi: compileTargets(input).length > 0
|
|
21609
21621
|
};
|
|
21610
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21622
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-OOSMI47A.mjs")).buildSwiftSdkImage(
|
|
21611
21623
|
moduleRoot,
|
|
21612
21624
|
!!guestGraph,
|
|
21613
21625
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21928,7 +21940,9 @@ ${compatShape}` : "";
|
|
|
21928
21940
|
}
|
|
21929
21941
|
const jobs = swiftCompilerJobs();
|
|
21930
21942
|
const incrementalPreview = sdkImage !== void 0 && !guestGraph && !options.project && !input.optimize && !input.unoptimized;
|
|
21931
|
-
const
|
|
21943
|
+
const batchGuest = guestGraph !== void 0 && !options.project && !input.unoptimized;
|
|
21944
|
+
const batch = incrementalPreview || batchGuest;
|
|
21945
|
+
const perFile = input.unoptimized || batch;
|
|
21932
21946
|
const reproducibleFrameworkRoot = mirrorDistribution ? frameworkRoot : compileFrameworkRoot;
|
|
21933
21947
|
const buildArgs = [
|
|
21934
21948
|
"build",
|
|
@@ -21953,9 +21967,11 @@ ${compatShape}` : "";
|
|
|
21953
21967
|
"-Xswiftc",
|
|
21954
21968
|
"-j",
|
|
21955
21969
|
"-Xswiftc",
|
|
21956
|
-
String(jobs)
|
|
21970
|
+
String(batchGuest ? Math.min(8, jobs) : jobs)
|
|
21957
21971
|
] : [],
|
|
21958
|
-
|
|
21972
|
+
// optimized batches can move specialized definitions between objects.
|
|
21973
|
+
...incrementalPreview ? ["-Xswiftc", "-incremental"] : [],
|
|
21974
|
+
...batch ? ["-Xswiftc", "-enable-batch-mode"] : [],
|
|
21959
21975
|
// the mirror finds a changed sdk header's readers in their
|
|
21960
21976
|
// dependency files, which omit system headers by default
|
|
21961
21977
|
...mirrorDistribution ? ["-Xswiftc", "-track-system-dependencies"] : [],
|
|
@@ -21969,7 +21985,7 @@ ${compatShape}` : "";
|
|
|
21969
21985
|
"-g0",
|
|
21970
21986
|
"-Xcxx",
|
|
21971
21987
|
"-g0",
|
|
21972
|
-
...
|
|
21988
|
+
...batch ? [] : [
|
|
21973
21989
|
"-Xswiftc",
|
|
21974
21990
|
"-num-threads",
|
|
21975
21991
|
"-Xswiftc",
|
|
@@ -22342,7 +22358,7 @@ ${compatShape}` : "";
|
|
|
22342
22358
|
});
|
|
22343
22359
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
22344
22360
|
} else {
|
|
22345
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
22361
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-5SWDBTBY.mjs");
|
|
22346
22362
|
const binding = await buildSwiftAppModule({
|
|
22347
22363
|
buildRoot: root2,
|
|
22348
22364
|
toolchainBin: options.toolchainBin,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftImageVariants
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H5TBKFDB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findBundleFooter
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TE3WHBF3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isRecord
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/android-string-value.ts
|
|
13
13
|
function compileAndroidStringValue(text, where) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
killOrphanedProcessGroup,
|
|
4
4
|
readProcessTable,
|
|
5
5
|
terminateProcessGroup
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FBN2C43P.mjs";
|
|
7
7
|
|
|
8
8
|
// src/swift-root-lock.ts
|
|
9
9
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2775 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SIM_LONG_PRESS_MAX_MS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MJSKVK7E.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2YTHEKWJ.mjs";
|
|
8
8
|
|
|
9
9
|
// ../peach-globals/src/globalsContract.ts
|
|
10
10
|
var LEGACY_ALIAS_MARKER = Symbol.for("sootsim.legacy-aliases-installed");
|