peachsim 0.1.2706 → 0.1.2707
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 +138 -91
- 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-QOE3FKUQ.mjs → acorn-TWIHA3LV.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-HBDGPP7C.mjs → chunk-27XUVHT4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZJKJVAJF.mjs → chunk-46RSD7AK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7GJKZXKR.mjs → chunk-4DEAP7UN.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-33YI3YGQ.mjs → chunk-5INSHFOP.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MB7GGYCS.mjs → chunk-6J3PF3XL.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-GGKJ33BN.mjs → chunk-DRYPO7NE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MO5TM5DG.mjs → chunk-EG4GPPJQ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AQ3HFJHH.mjs → chunk-FLPFWO3M.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NSF4C4JK.mjs → chunk-GVEPXHG7.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-4DMQVJSO.mjs → chunk-KBWNHTU4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-4XBZXH3X.mjs → chunk-LA3OYMV2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VFDA26K7.mjs → chunk-LPAZZQ54.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-55GHWMDY.mjs → chunk-MJIUOMAU.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-EK42RDKM.mjs → chunk-N2PS4PWR.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-VSPXR3SU.mjs → chunk-NMKOIZGB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-U2W65S7W.mjs → chunk-OEOQTLL7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X6TZ6CZI.mjs → chunk-OLIH4NRJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-T77DQJ6A.mjs → chunk-OP7IEEOR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OZQQOHGI.mjs → chunk-PP7IBQSE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-34JAE4ON.mjs → chunk-Q6L7U3GD.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-4PFFNSXN.mjs → chunk-RG57WL4L.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UJ64555Q.mjs → chunk-YBD5W3WD.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YBCJ5SFK.mjs → chunk-ZT4ZE4EM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PG6V52V2.mjs → chunk-ZTYNI42S.mjs} +73 -32
- package/dist-lib/esm-chunks/{metro-layout-parser-EVB3RJ4M.mjs → metro-layout-parser-AYK7542X.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-PVE3K5W4.mjs → swift-package-prebuilt-VNYND5G3.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-NRQVHUXV.mjs → swift-sdk-app-module-I24JHYNS.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-262Y5QB5.mjs → swift-sdk-image-GYV3O3ZU.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-G5QKQAL4.mjs → swift-sdk-image-producer-B675THYP.mjs} +12 -6
- package/dist-lib/expo-swift-bundle.cjs +124 -77
- 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 +150 -103
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -4
- 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 +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +165 -118
- package/dist-lib/swift-compile.cjs +83 -36
- 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-kit/src/materials/uikit-blur-material.d.ts +1 -1
- package/dist-types/packages/peach-kit/src/materials/variableBlurContract.d.ts +17 -0
- package/package.json +1 -1
- package/src/swift-compile.ts +108 -46
- package/src/swift-sdk-image-producer.ts +13 -2
- package/dist-types/packages/peach-kit/src/materials/types.d.ts +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2707 | (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-6J3PF3XL.mjs";
|
|
8
8
|
import {
|
|
9
9
|
CORE_FOUNDATION_OVERLAY_GLOBALS,
|
|
10
10
|
NATIVE_GRAPH_SDK_VERSION,
|
|
@@ -55,7 +55,7 @@ import {
|
|
|
55
55
|
withoutImportedSdkEnumForwards,
|
|
56
56
|
withoutSwiftDeclarations,
|
|
57
57
|
writeBuildFile
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-4DEAP7UN.mjs";
|
|
59
59
|
import {
|
|
60
60
|
SWIFT_AUTOLINK_LINKER,
|
|
61
61
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
wasmThreadLinkFlags,
|
|
73
73
|
windowAdmission,
|
|
74
74
|
writeSwiftAutolinkLinker
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-KBWNHTU4.mjs";
|
|
76
76
|
import {
|
|
77
77
|
SWIFT_BINARY_TREES_DIR,
|
|
78
78
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
isSwiftResourcePath,
|
|
88
88
|
isSwiftSourceLinkGraph,
|
|
89
89
|
swiftProjectFilesProblems
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-YBD5W3WD.mjs";
|
|
91
91
|
import {
|
|
92
92
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
93
93
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -110,16 +110,16 @@ import {
|
|
|
110
110
|
swiftPackagePartition,
|
|
111
111
|
swiftTargetModuleName,
|
|
112
112
|
withoutGlogModuleMap
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-5INSHFOP.mjs";
|
|
114
114
|
import {
|
|
115
115
|
rnxPublicBrand
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-NMKOIZGB.mjs";
|
|
117
117
|
import {
|
|
118
118
|
isRecord
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-OLIH4NRJ.mjs";
|
|
120
120
|
import {
|
|
121
121
|
__publicField
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-OP7IEEOR.mjs";
|
|
123
123
|
|
|
124
124
|
// src/swift-compile.ts
|
|
125
125
|
import {
|
|
@@ -14363,7 +14363,7 @@ async function compileGuestLink(options) {
|
|
|
14363
14363
|
};
|
|
14364
14364
|
const sdk = options.sdkImage;
|
|
14365
14365
|
const sdkCallers = sdk.sdkInterface.guestCallers;
|
|
14366
|
-
const sdkObjects = (await import("./swift-sdk-image-
|
|
14366
|
+
const sdkObjects = (await import("./swift-sdk-image-GYV3O3ZU.mjs")).readSwiftSdkManifestIndex(
|
|
14367
14367
|
sdk
|
|
14368
14368
|
).guestObjects;
|
|
14369
14369
|
if (!sdkCallers || !sdkObjects)
|
|
@@ -14662,7 +14662,7 @@ async function compileGuestLink(options) {
|
|
|
14662
14662
|
readSwiftSdkUsage,
|
|
14663
14663
|
swiftAppModuleThunkSection,
|
|
14664
14664
|
swiftSdkProjectionSpans
|
|
14665
|
-
} = await import("./swift-sdk-app-module-
|
|
14665
|
+
} = await import("./swift-sdk-app-module-I24JHYNS.mjs");
|
|
14666
14666
|
const project = options.project;
|
|
14667
14667
|
const work = project ? mkdtempSync2(path14.join(directory, "app-module-")) : path14.join(directory, "app-module");
|
|
14668
14668
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16624,7 +16624,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16624
16624
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16625
16625
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16626
16626
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16627
|
-
var compilerSourceDigest = true ? "
|
|
16627
|
+
var compilerSourceDigest = true ? "4b7ad67bd4f7d91fa68366ba127406abc78c8ff5800c109c7214601328e2a4c9" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16628
16628
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16629
16629
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16630
16630
|
}
|
|
@@ -20751,6 +20751,17 @@ function swiftFrameworkSlotKey(slot) {
|
|
|
20751
20751
|
function swiftFrameworkSlotRelease(slot) {
|
|
20752
20752
|
return swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_RELEASE);
|
|
20753
20753
|
}
|
|
20754
|
+
var SWIFT_FRAMEWORK_HOT_RECEIPT_MS = 15 * 60 * 1e3;
|
|
20755
|
+
function swiftFrameworkSlotHasReceipt(slot) {
|
|
20756
|
+
try {
|
|
20757
|
+
return readdirSync4(path23.join(slot, "products-ready")).some(
|
|
20758
|
+
(entry) => entry.endsWith(".json")
|
|
20759
|
+
);
|
|
20760
|
+
} catch (error) {
|
|
20761
|
+
if (vanished(error)) return false;
|
|
20762
|
+
throw error;
|
|
20763
|
+
}
|
|
20764
|
+
}
|
|
20754
20765
|
async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal, work, unoptimized = false) {
|
|
20755
20766
|
const slotCount = swiftFrameworkSlotCount(unoptimized);
|
|
20756
20767
|
const slotsDir = swiftFrameworksDir(unoptimized);
|
|
@@ -20759,7 +20770,17 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20759
20770
|
mkdirSync7(slot, { recursive: true });
|
|
20760
20771
|
return slot;
|
|
20761
20772
|
});
|
|
20762
|
-
const
|
|
20773
|
+
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
20774
|
+
const slotMtimeMs = (slot) => {
|
|
20775
|
+
try {
|
|
20776
|
+
return statSync4(slot).mtimeMs;
|
|
20777
|
+
} catch (error) {
|
|
20778
|
+
if (vanished(error)) return 0;
|
|
20779
|
+
throw error;
|
|
20780
|
+
}
|
|
20781
|
+
};
|
|
20782
|
+
const isRecentForeignReceipt = (slot, now) => !own(slot) && swiftFrameworkSlotHasReceipt(slot) && now - slotMtimeMs(slot) < SWIFT_FRAMEWORK_HOT_RECEIPT_MS;
|
|
20783
|
+
const trySlot = (slot, mode, logSelection, allowHotForeign = true) => {
|
|
20763
20784
|
return withSwiftRootLock(
|
|
20764
20785
|
slot,
|
|
20765
20786
|
async (lease) => {
|
|
@@ -20767,6 +20788,8 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20767
20788
|
if (mode !== "restage" && !matches) return;
|
|
20768
20789
|
const allowWrite = mode !== "reuse";
|
|
20769
20790
|
if (allowWrite && await hasLiveSwiftRootReaders(slot, signal)) return;
|
|
20791
|
+
if (mode === "restage" && !matches && !allowHotForeign && isRecentForeignReceipt(slot, Date.now()))
|
|
20792
|
+
return;
|
|
20770
20793
|
if (!matches) logSelection?.();
|
|
20771
20794
|
const value = await work(slot, lease, allowWrite);
|
|
20772
20795
|
if (value === void 0) return;
|
|
@@ -20789,19 +20812,17 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20789
20812
|
};
|
|
20790
20813
|
const ready = await tryExactSlots();
|
|
20791
20814
|
if (ready) return ready.value;
|
|
20792
|
-
const built = new Map(slots.map((slot) => [slot, statSync4(slot).mtimeMs]));
|
|
20793
|
-
const own = (slot) => swiftFrameworkSlotRecord(slot, SWIFT_FRAMEWORK_SLOT_ORIGIN) === moduleRoot;
|
|
20794
20815
|
const inputs = new Map(
|
|
20795
20816
|
swiftModuleInputFiles(moduleRoot).map((file) => [
|
|
20796
20817
|
file,
|
|
20797
20818
|
readFileSync13(path23.join(moduleRoot, file))
|
|
20798
20819
|
])
|
|
20799
20820
|
);
|
|
20800
|
-
const
|
|
20801
|
-
|
|
20802
|
-
|
|
20803
|
-
|
|
20804
|
-
|
|
20821
|
+
const changesBySlotKey = /* @__PURE__ */ new Map();
|
|
20822
|
+
const changedInputsFor = (slot, slotKey) => {
|
|
20823
|
+
const cacheKey = `${slot}\0${slotKey}`;
|
|
20824
|
+
const cached = changesBySlotKey.get(cacheKey);
|
|
20825
|
+
if (cached !== void 0) return cached;
|
|
20805
20826
|
let changes = 0;
|
|
20806
20827
|
const source = path23.join(slot, "source", "packages", path23.basename(moduleRoot));
|
|
20807
20828
|
for (const [file, contents] of inputs) {
|
|
@@ -20814,24 +20835,44 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
20814
20835
|
changes++;
|
|
20815
20836
|
}
|
|
20816
20837
|
}
|
|
20817
|
-
|
|
20838
|
+
changesBySlotKey.set(cacheKey, changes);
|
|
20839
|
+
return changes;
|
|
20840
|
+
};
|
|
20841
|
+
const rankSlots = (now) => slots.map((slot, index) => {
|
|
20842
|
+
const slotKey = swiftFrameworkSlotKey(slot);
|
|
20843
|
+
const mtimeMs = slotMtimeMs(slot);
|
|
20844
|
+
if (slotKey === null)
|
|
20845
|
+
return { slot, index, tier: 1, changes: Infinity, own: false, mtimeMs };
|
|
20846
|
+
if (swiftFrameworkSlotRelease(slot) !== release)
|
|
20847
|
+
return { slot, index, tier: 3, changes: Infinity, own: false, mtimeMs };
|
|
20848
|
+
const changes = changedInputsFor(slot, slotKey);
|
|
20849
|
+
const isOwn = own(slot);
|
|
20850
|
+
const hotForeign = !isOwn && swiftFrameworkSlotHasReceipt(slot) && now - mtimeMs < SWIFT_FRAMEWORK_HOT_RECEIPT_MS;
|
|
20851
|
+
return { slot, index, tier: hotForeign ? 2 : 0, changes, own: isOwn, mtimeMs };
|
|
20818
20852
|
}).sort((left, right) => {
|
|
20819
20853
|
if (left.tier !== right.tier) return left.tier - right.tier;
|
|
20820
20854
|
if (left.tier === 0)
|
|
20821
|
-
return left.changes - right.changes || Number(
|
|
20855
|
+
return left.changes - right.changes || Number(right.own) - Number(left.own) || left.mtimeMs - right.mtimeMs;
|
|
20822
20856
|
if (left.tier === 1) return left.index - right.index;
|
|
20823
|
-
|
|
20857
|
+
if (left.tier === 2)
|
|
20858
|
+
return left.mtimeMs - right.mtimeMs || left.changes - right.changes;
|
|
20859
|
+
return left.mtimeMs - right.mtimeMs;
|
|
20824
20860
|
});
|
|
20825
20861
|
let announced = false;
|
|
20826
20862
|
for (; ; ) {
|
|
20827
20863
|
signal?.throwIfAborted();
|
|
20828
|
-
for (const { slot, tier, changes } of
|
|
20864
|
+
for (const { slot, tier, changes } of rankSlots(Date.now())) {
|
|
20829
20865
|
if (swiftFrameworkSlotKey(slot) === frameworkKey) continue;
|
|
20830
|
-
const result = await trySlot(
|
|
20831
|
-
|
|
20832
|
-
|
|
20833
|
-
)
|
|
20834
|
-
|
|
20866
|
+
const result = await trySlot(
|
|
20867
|
+
slot,
|
|
20868
|
+
"restage",
|
|
20869
|
+
() => {
|
|
20870
|
+
console.error(
|
|
20871
|
+
`[swift-framework-cache] ${path23.basename(slot)} release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs.size}`
|
|
20872
|
+
);
|
|
20873
|
+
},
|
|
20874
|
+
tier >= 2
|
|
20875
|
+
);
|
|
20835
20876
|
if (result) return result.value;
|
|
20836
20877
|
}
|
|
20837
20878
|
if (!announced) {
|
|
@@ -21077,7 +21118,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21077
21118
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
21078
21119
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
21079
21120
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
21080
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
21121
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-VNYND5G3.mjs")).useSwiftPackagePrebuilts(
|
|
21081
21122
|
sources,
|
|
21082
21123
|
moduleRoot,
|
|
21083
21124
|
options.toolchainBin
|
|
@@ -21090,7 +21131,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
21090
21131
|
sources: path23.join(root, "Sources", "App"),
|
|
21091
21132
|
multi: compileTargets(input).length > 0
|
|
21092
21133
|
};
|
|
21093
|
-
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-
|
|
21134
|
+
const sdkImage = options.linkOnly ? void 0 : await (await import("./swift-sdk-image-GYV3O3ZU.mjs")).buildSwiftSdkImage(
|
|
21094
21135
|
moduleRoot,
|
|
21095
21136
|
!!guestGraph,
|
|
21096
21137
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21809,7 +21850,7 @@ ${compatShape}` : "";
|
|
|
21809
21850
|
});
|
|
21810
21851
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21811
21852
|
} else {
|
|
21812
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21853
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-I24JHYNS.mjs");
|
|
21813
21854
|
const binding = await buildSwiftAppModule({
|
|
21814
21855
|
buildRoot: root2,
|
|
21815
21856
|
toolchainBin: options.toolchainBin,
|
package/dist-lib/esm-chunks/{metro-layout-parser-EVB3RJ4M.mjs → metro-layout-parser-AYK7542X.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2707 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-OP7IEEOR.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-TWIHA3LV.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2707 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
5
5
|
nativeEntryKey,
|
|
6
6
|
swiftAvailableModules
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ZTYNI42S.mjs";
|
|
8
|
+
import "./chunk-6J3PF3XL.mjs";
|
|
9
9
|
import {
|
|
10
10
|
swiftDistributionAt,
|
|
11
11
|
swiftImportNames
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-4DEAP7UN.mjs";
|
|
13
|
+
import "./chunk-KBWNHTU4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YBD5W3WD.mjs";
|
|
17
17
|
import {
|
|
18
18
|
manifestCalls
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-5INSHFOP.mjs";
|
|
20
|
+
import "./chunk-DRYPO7NE.mjs";
|
|
21
|
+
import "./chunk-NMKOIZGB.mjs";
|
|
22
|
+
import "./chunk-LA3OYMV2.mjs";
|
|
23
|
+
import "./chunk-OLIH4NRJ.mjs";
|
|
24
|
+
import "./chunk-OP7IEEOR.mjs";
|
|
25
25
|
|
|
26
26
|
// src/swift-package-prebuilt.ts
|
|
27
27
|
import { createHash } from "node:crypto";
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-NRQVHUXV.mjs → swift-sdk-app-module-I24JHYNS.mjs}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2707 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GVEPXHG7.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ADDEND_RELOCATIONS,
|
|
11
11
|
KEEP_WASM_NAMES,
|
|
@@ -33,22 +33,22 @@ import {
|
|
|
33
33
|
wasmReader,
|
|
34
34
|
wasmSections,
|
|
35
35
|
writeWasmCustomSection
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-ZTYNI42S.mjs";
|
|
37
|
+
import "./chunk-6J3PF3XL.mjs";
|
|
38
|
+
import "./chunk-Q6L7U3GD.mjs";
|
|
39
|
+
import "./chunk-RG57WL4L.mjs";
|
|
40
|
+
import "./chunk-EG4GPPJQ.mjs";
|
|
41
|
+
import "./chunk-4DEAP7UN.mjs";
|
|
42
42
|
import {
|
|
43
43
|
SWIFT_WASM_TRIPLE
|
|
44
|
-
} from "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
44
|
+
} from "./chunk-KBWNHTU4.mjs";
|
|
45
|
+
import "./chunk-YBD5W3WD.mjs";
|
|
46
|
+
import "./chunk-5INSHFOP.mjs";
|
|
47
|
+
import "./chunk-DRYPO7NE.mjs";
|
|
48
|
+
import "./chunk-NMKOIZGB.mjs";
|
|
49
|
+
import "./chunk-LA3OYMV2.mjs";
|
|
50
|
+
import "./chunk-OLIH4NRJ.mjs";
|
|
51
|
+
import "./chunk-OP7IEEOR.mjs";
|
|
52
52
|
|
|
53
53
|
// src/swift-sdk-app-module.ts
|
|
54
54
|
import { execFile } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2707 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
swiftSdkImageFile,
|
|
15
15
|
swiftSdkImageKey,
|
|
16
16
|
swiftSdkImageProducts
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-GVEPXHG7.mjs";
|
|
18
|
+
import "./chunk-ZTYNI42S.mjs";
|
|
19
|
+
import "./chunk-6J3PF3XL.mjs";
|
|
20
|
+
import "./chunk-Q6L7U3GD.mjs";
|
|
21
|
+
import "./chunk-RG57WL4L.mjs";
|
|
22
|
+
import "./chunk-EG4GPPJQ.mjs";
|
|
23
|
+
import "./chunk-4DEAP7UN.mjs";
|
|
24
|
+
import "./chunk-KBWNHTU4.mjs";
|
|
25
|
+
import "./chunk-YBD5W3WD.mjs";
|
|
26
|
+
import "./chunk-5INSHFOP.mjs";
|
|
27
|
+
import "./chunk-DRYPO7NE.mjs";
|
|
28
|
+
import "./chunk-NMKOIZGB.mjs";
|
|
29
|
+
import "./chunk-LA3OYMV2.mjs";
|
|
30
|
+
import "./chunk-OLIH4NRJ.mjs";
|
|
31
|
+
import "./chunk-OP7IEEOR.mjs";
|
|
32
32
|
export {
|
|
33
33
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
34
34
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2707 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
withSwiftRootLock
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6J3PF3XL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
swiftCacheDir,
|
|
7
7
|
windowAdmission
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KBWNHTU4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OLIH4NRJ.mjs";
|
|
12
|
+
import "./chunk-OP7IEEOR.mjs";
|
|
13
13
|
|
|
14
14
|
// src/swift-sdk-image-producer.ts
|
|
15
15
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
rmSync,
|
|
23
23
|
writeFileSync
|
|
24
24
|
} from "node:fs";
|
|
25
|
+
import os from "node:os";
|
|
25
26
|
import path from "node:path";
|
|
26
27
|
import { setTimeout as sleep } from "node:timers/promises";
|
|
27
28
|
import { promisify } from "node:util";
|
|
@@ -162,6 +163,10 @@ function producerSettled(directory) {
|
|
|
162
163
|
const value = JSON.parse(readFileSync(receipt, "utf8"));
|
|
163
164
|
return isRecord(value) && value.released === true;
|
|
164
165
|
}
|
|
166
|
+
function swiftSdkProducerCores(admitted, platform = process.platform, hostCpus = os.availableParallelism()) {
|
|
167
|
+
const floor = platform === "linux" && hostCpus >= 64 ? 24 : 4;
|
|
168
|
+
return Number.isSafeInteger(admitted) && admitted > 0 ? Math.max(floor, admitted) : floor;
|
|
169
|
+
}
|
|
165
170
|
async function produceSwiftSdkImage(input) {
|
|
166
171
|
const root = path.join(swiftCacheDir(), "swift-sdk-image-producers", input.key);
|
|
167
172
|
const current = path.join(root, "current");
|
|
@@ -226,7 +231,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
226
231
|
writeFileSync(next, launchId, { flag: "wx" });
|
|
227
232
|
renameSync(next, current);
|
|
228
233
|
const admitted = windowAdmission()?.cores ?? Number(process.env.TM_EXEC_CPU_CORES);
|
|
229
|
-
const cores =
|
|
234
|
+
const cores = swiftSdkProducerCores(admitted);
|
|
230
235
|
const launched = await run(
|
|
231
236
|
"tm",
|
|
232
237
|
[
|
|
@@ -307,6 +312,7 @@ async function produceSwiftSdkImage(input) {
|
|
|
307
312
|
export {
|
|
308
313
|
applySwiftSdkProducerEnvironment,
|
|
309
314
|
produceSwiftSdkImage,
|
|
315
|
+
swiftSdkProducerCores,
|
|
310
316
|
swiftSdkProducerRequest,
|
|
311
317
|
writeSwiftSdkProducerResult
|
|
312
318
|
};
|