peachsim 0.1.1877 → 0.1.1878
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/cli/commands/inspect/settling.ts +10 -2
- package/detox/index.ts +7 -3
- 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 +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +8 -9
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +14 -6
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +7 -8
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +8 -9
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +12 -4
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +11 -3
- package/dist-lib/sdk.mjs +11 -3
- package/dist-lib/skills.cjs +18 -11
- package/dist-lib/swift-compile.cjs +5 -6
- package/dist-lib/swift-compile.mjs +5 -6
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +6 -7
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-wasm-prune.ts +10 -16
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (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;
|
|
@@ -45937,6 +45937,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
45937
45937
|
throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`);
|
|
45938
45938
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
45939
45939
|
const distDir = import_node_path37.default.join(moduleRoot, "lib");
|
|
45940
|
+
const dropsReflection = (obj, name3) => !!name3 && (name3.startsWith("l__swift5_reflection_descriptor") || name3.startsWith("$s") && (name3.endsWith("CMF") || name3.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
|
|
45940
45941
|
const prunedObjsDir = import_node_path37.default.join(directory2, ".peach-pruned-objs");
|
|
45941
45942
|
import_node_fs40.default.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
45942
45943
|
import_node_fs40.default.mkdirSync(prunedObjsDir, { recursive: true });
|
|
@@ -46316,9 +46317,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
46316
46317
|
relocs = obj.symDataRelocs.get(item.symIdx) ?? [];
|
|
46317
46318
|
}
|
|
46318
46319
|
for (const symIdx of relocs) {
|
|
46319
|
-
if (obj.isDist && (obj
|
|
46320
|
-
continue;
|
|
46321
|
-
}
|
|
46320
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[symIdx])) continue;
|
|
46322
46321
|
const fl = obj.symFlags[symIdx];
|
|
46323
46322
|
const isUndef = (fl & 16) !== 0;
|
|
46324
46323
|
const isLocal = (fl & 3) === 2;
|
|
@@ -46436,7 +46435,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
46436
46435
|
}
|
|
46437
46436
|
} else if (r.ownerSymIdx !== -1) {
|
|
46438
46437
|
if (dLive.has(r.ownerSymIdx)) {
|
|
46439
|
-
if (obj.isDist && (obj
|
|
46438
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[r.rs])) {
|
|
46440
46439
|
zeroDataRelocOffsets.push(r.ro);
|
|
46441
46440
|
} else {
|
|
46442
46441
|
keptDataRelocBytes.push(r.rawBytes);
|
|
@@ -51243,7 +51242,7 @@ var init_swift_compile = __esm({
|
|
|
51243
51242
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
51244
51243
|
MULTI_MANIFEST_VERSION = 65;
|
|
51245
51244
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
51246
|
-
compilerSourceDigest = true ? "
|
|
51245
|
+
compilerSourceDigest = true ? "abe4d1a74b7a23d3207ef860184654de7a5bd61ad8d782291ac1c577c7863c9f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
51247
51246
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
51248
51247
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
51249
51248
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -58587,7 +58586,7 @@ var init_swift_standin_digest = __esm({
|
|
|
58587
58586
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
58588
58587
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
58589
58588
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
58590
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
58589
|
+
STANDIN_SOURCE_DIGEST = true ? "602b9c9a1c5338ca39136a37c2a3feed2d70360714624751d9bc4e1d49bd016f" : standinSourceDigest();
|
|
58591
58590
|
}
|
|
58592
58591
|
});
|
|
58593
58592
|
|
|
@@ -59316,7 +59315,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
59316
59315
|
init_swift_native_pin();
|
|
59317
59316
|
init_xcode_project();
|
|
59318
59317
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
59319
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
59318
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "72f10c157a99c89f1ae74ef275774fc4aa8b8ca8a229635ced41b1bac633dcf5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
59320
59319
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
59321
59320
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
59322
59321
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -77093,7 +77092,7 @@ var init_nitro_superset = __esm({
|
|
|
77093
77092
|
init_swift_standin_digest();
|
|
77094
77093
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
77095
77094
|
packageVersion = (root) => JSON.parse((0, import_node_fs86.readFileSync)((0, import_node_path83.join)(root, "package.json"), "utf8")).version;
|
|
77096
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
77095
|
+
NITRO_COMPILER_DIGEST = true ? "403e0b5c26728a5b3b083137be9aa6a65d5f07e0c261e25a3b2a7c4def6d7a82" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
77097
77096
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
77098
77097
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
77099
77098
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -117029,6 +117028,7 @@ async function waitForSootsimIdle({
|
|
|
117029
117028
|
|
|
117030
117029
|
const readSnapshot = async () => {
|
|
117031
117030
|
let animating = false
|
|
117031
|
+
let animatingBy = ''
|
|
117032
117032
|
let layoutDirty = false
|
|
117033
117033
|
let pendingFetches = 0
|
|
117034
117034
|
let workerBusy = false
|
|
@@ -117128,6 +117128,13 @@ async function waitForSootsimIdle({
|
|
|
117128
117128
|
stats.hasActiveAnims === true ||
|
|
117129
117129
|
stats.hasActiveBlockingNativeAnimations === true ||
|
|
117130
117130
|
(!paintStill && (readyPlayback ? stats.hasPendingReadinessAnimationFrames : stats.hasPendingBlockingAnimationFrames) === true)
|
|
117131
|
+
if (animating)
|
|
117132
|
+
animatingBy = [
|
|
117133
|
+
stats.hasActiveAnims === true && 'activeAnims',
|
|
117134
|
+
stats.hasActiveBlockingNativeAnimations === true && 'blockingNative',
|
|
117135
|
+
!paintStill && stats.hasPendingBlockingAnimationFrames === true && 'pendingFrames',
|
|
117136
|
+
!paintStill && stats.hasPendingReadinessAnimationFrames === true && 'pendingReadinessFrames',
|
|
117137
|
+
].filter(Boolean).join('+')
|
|
117131
117138
|
// the runtime reports only layout work that can reach the window:
|
|
117132
117139
|
// a covered screen or inactive tab committing does not hold it.
|
|
117133
117140
|
layoutDirty =
|
|
@@ -117282,7 +117289,7 @@ async function waitForSootsimIdle({
|
|
|
117282
117289
|
pixelFrameToken = token
|
|
117283
117290
|
}
|
|
117284
117291
|
}
|
|
117285
|
-
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, screenPixels, animating, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
117292
|
+
return { layout: nodes.join(';'), nodeRows, nativeHierarchy, screenPixels, animating, animatingBy, shellAnimating, shellBlockers, layoutDirty, pendingFetches, workerBusy, webViewStarting, webViewBlocker, renderStatsAvailable, requestTotal, requestInFlight, appCommits, nodeCount }
|
|
117286
117293
|
}
|
|
117287
117294
|
|
|
117288
117295
|
// how long generic background network is allowed to keep us waiting AFTER
|
|
@@ -117468,7 +117475,7 @@ async function waitForSootsimIdle({
|
|
|
117468
117475
|
const last = report.snapshot
|
|
117469
117476
|
const blockers = []
|
|
117470
117477
|
if (!maestro && strict && !last.renderStatsAvailable) blockers.push('render stats unavailable')
|
|
117471
|
-
if (!maestro && last.animating) blockers.push('animations still running')
|
|
117478
|
+
if (!maestro && last.animating) blockers.push('animations still running' + (last.animatingBy ? ' (' + last.animatingBy + ')' : ''))
|
|
117472
117479
|
if (last.shellAnimating) blockers.push('animations still running (' + last.shellBlockers + ')')
|
|
117473
117480
|
if (!maestro && last.layoutDirty) blockers.push('layout still dirty')
|
|
117474
117481
|
if (!maestro && last.appCommits !== null && report.appCommits !== null && last.appCommits !== report.appCommits) blockers.push('layout commits still landing')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (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;
|
|
@@ -6007,6 +6007,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6007
6007
|
throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`);
|
|
6008
6008
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
6009
6009
|
const distDir = import_node_path16.default.join(moduleRoot, "lib");
|
|
6010
|
+
const dropsReflection = (obj, name2) => !!name2 && (name2.startsWith("l__swift5_reflection_descriptor") || name2.startsWith("$s") && (name2.endsWith("CMF") || name2.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
|
|
6010
6011
|
const prunedObjsDir = import_node_path16.default.join(directory, ".peach-pruned-objs");
|
|
6011
6012
|
import_node_fs14.default.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
6012
6013
|
import_node_fs14.default.mkdirSync(prunedObjsDir, { recursive: true });
|
|
@@ -6386,9 +6387,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6386
6387
|
relocs = obj.symDataRelocs.get(item.symIdx) ?? [];
|
|
6387
6388
|
}
|
|
6388
6389
|
for (const symIdx of relocs) {
|
|
6389
|
-
if (obj.isDist && (obj
|
|
6390
|
-
continue;
|
|
6391
|
-
}
|
|
6390
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[symIdx])) continue;
|
|
6392
6391
|
const fl = obj.symFlags[symIdx];
|
|
6393
6392
|
const isUndef = (fl & 16) !== 0;
|
|
6394
6393
|
const isLocal = (fl & 3) === 2;
|
|
@@ -6506,7 +6505,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6506
6505
|
}
|
|
6507
6506
|
} else if (r.ownerSymIdx !== -1) {
|
|
6508
6507
|
if (dLive.has(r.ownerSymIdx)) {
|
|
6509
|
-
if (obj.isDist && (obj
|
|
6508
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[r.rs])) {
|
|
6510
6509
|
zeroDataRelocOffsets.push(r.ro);
|
|
6511
6510
|
} else {
|
|
6512
6511
|
keptDataRelocBytes.push(r.rawBytes);
|
|
@@ -7879,7 +7878,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7879
7878
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7880
7879
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7881
7880
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7882
|
-
var compilerSourceDigest = true ? "
|
|
7881
|
+
var compilerSourceDigest = true ? "abe4d1a74b7a23d3207ef860184654de7a5bd61ad8d782291ac1c577c7863c9f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
7883
7882
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7884
7883
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
7885
7884
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -5977,6 +5977,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5977
5977
|
throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`);
|
|
5978
5978
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
5979
5979
|
const distDir = path16.join(moduleRoot, "lib");
|
|
5980
|
+
const dropsReflection = (obj, name2) => !!name2 && (name2.startsWith("l__swift5_reflection_descriptor") || name2.startsWith("$s") && (name2.endsWith("CMF") || name2.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
|
|
5980
5981
|
const prunedObjsDir = path16.join(directory, ".peach-pruned-objs");
|
|
5981
5982
|
fs6.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
5982
5983
|
fs6.mkdirSync(prunedObjsDir, { recursive: true });
|
|
@@ -6356,9 +6357,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6356
6357
|
relocs = obj.symDataRelocs.get(item.symIdx) ?? [];
|
|
6357
6358
|
}
|
|
6358
6359
|
for (const symIdx of relocs) {
|
|
6359
|
-
if (obj.isDist && (obj
|
|
6360
|
-
continue;
|
|
6361
|
-
}
|
|
6360
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[symIdx])) continue;
|
|
6362
6361
|
const fl = obj.symFlags[symIdx];
|
|
6363
6362
|
const isUndef = (fl & 16) !== 0;
|
|
6364
6363
|
const isLocal = (fl & 3) === 2;
|
|
@@ -6476,7 +6475,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6476
6475
|
}
|
|
6477
6476
|
} else if (r.ownerSymIdx !== -1) {
|
|
6478
6477
|
if (dLive.has(r.ownerSymIdx)) {
|
|
6479
|
-
if (obj.isDist && (obj
|
|
6478
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[r.rs])) {
|
|
6480
6479
|
zeroDataRelocOffsets.push(r.ro);
|
|
6481
6480
|
} else {
|
|
6482
6481
|
keptDataRelocBytes.push(r.rawBytes);
|
|
@@ -7849,7 +7848,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7849
7848
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7850
7849
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7851
7850
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7852
|
-
var compilerSourceDigest = true ? "
|
|
7851
|
+
var compilerSourceDigest = true ? "abe4d1a74b7a23d3207ef860184654de7a5bd61ad8d782291ac1c577c7863c9f" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
7853
7852
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7854
7853
|
const hash = createHash8("sha256");
|
|
7855
7854
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (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;
|
|
@@ -10435,6 +10435,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10435
10435
|
throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`);
|
|
10436
10436
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir);
|
|
10437
10437
|
const distDir = import_node_path16.default.join(moduleRoot, "lib");
|
|
10438
|
+
const dropsReflection = (obj, name3) => !!name3 && (name3.startsWith("l__swift5_reflection_descriptor") || name3.startsWith("$s") && (name3.endsWith("CMF") || name3.endsWith("VMF")) && !(!obj.file.startsWith(distDir) && obj.file.endsWith(".swift.o")));
|
|
10438
10439
|
const prunedObjsDir = import_node_path16.default.join(directory, ".peach-pruned-objs");
|
|
10439
10440
|
import_node_fs16.default.rmSync(prunedObjsDir, { recursive: true, force: true });
|
|
10440
10441
|
import_node_fs16.default.mkdirSync(prunedObjsDir, { recursive: true });
|
|
@@ -10814,9 +10815,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10814
10815
|
relocs = obj.symDataRelocs.get(item.symIdx) ?? [];
|
|
10815
10816
|
}
|
|
10816
10817
|
for (const symIdx of relocs) {
|
|
10817
|
-
if (obj.isDist && (obj
|
|
10818
|
-
continue;
|
|
10819
|
-
}
|
|
10818
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[symIdx])) continue;
|
|
10820
10819
|
const fl = obj.symFlags[symIdx];
|
|
10821
10820
|
const isUndef = (fl & 16) !== 0;
|
|
10822
10821
|
const isLocal = (fl & 3) === 2;
|
|
@@ -10934,7 +10933,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10934
10933
|
}
|
|
10935
10934
|
} else if (r.ownerSymIdx !== -1) {
|
|
10936
10935
|
if (dLive.has(r.ownerSymIdx)) {
|
|
10937
|
-
if (obj.isDist && (obj
|
|
10936
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[r.rs])) {
|
|
10938
10937
|
zeroDataRelocOffsets.push(r.ro);
|
|
10939
10938
|
} else {
|
|
10940
10939
|
keptDataRelocBytes.push(r.rawBytes);
|
|
@@ -12175,7 +12174,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12175
12174
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12176
12175
|
var MULTI_MANIFEST_VERSION = 65;
|
|
12177
12176
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12178
|
-
var compilerSourceDigest = true ? "
|
|
12177
|
+
var compilerSourceDigest = true ? "abe4d1a74b7a23d3207ef860184654de7a5bd61ad8d782291ac1c577c7863c9f" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12179
12178
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12180
12179
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
12181
12180
|
hash.update(`swift-compile
|
|
@@ -24929,7 +24928,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
24929
24928
|
return hash.digest("hex");
|
|
24930
24929
|
}
|
|
24931
24930
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
24932
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
24931
|
+
var STANDIN_SOURCE_DIGEST = true ? "602b9c9a1c5338ca39136a37c2a3feed2d70360714624751d9bc4e1d49bd016f" : standinSourceDigest();
|
|
24933
24932
|
|
|
24934
24933
|
// src/swift-standins.ts
|
|
24935
24934
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1878 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
package/src/swift-wasm-prune.ts
CHANGED
|
@@ -871,6 +871,14 @@ export function pruneSwiftWasmLink(
|
|
|
871
871
|
throw new Error(`swift-wasm-prune: the build owns its sdk directory ${sdkWasiDir}`)
|
|
872
872
|
const sdkObjsDir = ensureUnpackedSdkObjects(sdkWasiDir)
|
|
873
873
|
const distDir = path.join(moduleRoot, 'lib')
|
|
874
|
+
// the app's own struct and class field descriptors stay: SwiftUI attaches
|
|
875
|
+
// @State and @StateObject by reflecting the app's view structs.
|
|
876
|
+
const dropsReflection = (obj: ParsedObject, name: string | undefined) =>
|
|
877
|
+
!!name &&
|
|
878
|
+
(name.startsWith('l__swift5_reflection_descriptor') ||
|
|
879
|
+
(name.startsWith('$s') &&
|
|
880
|
+
(name.endsWith('CMF') || name.endsWith('VMF')) &&
|
|
881
|
+
!(!obj.file.startsWith(distDir) && obj.file.endsWith('.swift.o'))))
|
|
874
882
|
|
|
875
883
|
const prunedObjsDir = path.join(directory, '.peach-pruned-objs')
|
|
876
884
|
fs.rmSync(prunedObjsDir, { recursive: true, force: true })
|
|
@@ -1339,15 +1347,7 @@ export function pruneSwiftWasmLink(
|
|
|
1339
1347
|
}
|
|
1340
1348
|
|
|
1341
1349
|
for (const symIdx of relocs) {
|
|
1342
|
-
if (
|
|
1343
|
-
obj.isDist &&
|
|
1344
|
-
(obj.symNames[symIdx]?.startsWith('l__swift5_reflection_descriptor') ||
|
|
1345
|
-
(obj.symNames[symIdx]?.startsWith('$s') &&
|
|
1346
|
-
(obj.symNames[symIdx]!.endsWith('CMF') ||
|
|
1347
|
-
obj.symNames[symIdx]!.endsWith('VMF'))))
|
|
1348
|
-
) {
|
|
1349
|
-
continue
|
|
1350
|
-
}
|
|
1350
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[symIdx])) continue
|
|
1351
1351
|
const fl = obj.symFlags[symIdx]!
|
|
1352
1352
|
const isUndef = (fl & 0x10) !== 0
|
|
1353
1353
|
const isLocal = (fl & 0x03) === 0x02
|
|
@@ -1484,13 +1484,7 @@ export function pruneSwiftWasmLink(
|
|
|
1484
1484
|
}
|
|
1485
1485
|
} else if (r.ownerSymIdx !== -1) {
|
|
1486
1486
|
if (dLive.has(r.ownerSymIdx)) {
|
|
1487
|
-
if (
|
|
1488
|
-
obj.isDist &&
|
|
1489
|
-
(obj.symNames[r.rs]?.startsWith('l__swift5_reflection_descriptor') ||
|
|
1490
|
-
(obj.symNames[r.rs]?.startsWith('$s') &&
|
|
1491
|
-
(obj.symNames[r.rs]!.endsWith('CMF') ||
|
|
1492
|
-
obj.symNames[r.rs]!.endsWith('VMF'))))
|
|
1493
|
-
) {
|
|
1487
|
+
if (obj.isDist && dropsReflection(obj, obj.symNames[r.rs])) {
|
|
1494
1488
|
zeroDataRelocOffsets.push(r.ro)
|
|
1495
1489
|
} else {
|
|
1496
1490
|
keptDataRelocBytes.push(r.rawBytes)
|