peachsim 0.1.2248 → 0.1.2250
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/bridge-flow-runner.ts +30 -3
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/settling.ts +35 -4
- package/cli/drivers/playwright.ts +2 -0
- 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 +203 -53
- 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 +33 -9
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +177 -49
- 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 +210 -54
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +45 -14
- 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 +15 -8
- 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 +2 -2
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +31 -7
- package/dist-lib/sdk.mjs +31 -7
- package/dist-lib/skills.cjs +289 -64
- package/dist-lib/swift-compile.cjs +165 -38
- package/dist-lib/swift-compile.mjs +165 -38
- 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 +174 -46
- package/dist-lib/vite.cjs +15 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/image-pixel-contract.d.ts +0 -4
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/webview-capture-protocol.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/wasm/include/math.h +1 -1
- package/sdk/ios/wasm/include/pthread.h +1 -1
- package/src/assetCatalogContract.ts +6 -0
- package/src/nitro-compile.ts +23 -1
- package/src/process-group.ts +5 -2
- package/src/runtime-packs.ts +8 -0
- package/src/sfSymbolMetricsContract.ts +73 -37
- package/src/swift-compile.ts +119 -13
- package/src/swift-guest-image-ledger.ts +10 -5
- package/src/swift-guest-link.ts +20 -14
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-installed-targets.ts +4 -1
- package/src/swift-standins.ts +11 -8
- package/src/swift-wasm-prune.ts +33 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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;
|
|
@@ -297,7 +297,7 @@ var init_process_table = __esm({
|
|
|
297
297
|
});
|
|
298
298
|
|
|
299
299
|
// src/process-group.ts
|
|
300
|
-
function listProcessChildren(parents, timeoutMs =
|
|
300
|
+
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
301
301
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
302
302
|
throw new Error("process inspection requires valid parent pids");
|
|
303
303
|
if (parents.length === 0) return [];
|
|
@@ -507,7 +507,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
507
507
|
try {
|
|
508
508
|
signalProcessGroup(child, "SIGSTOP");
|
|
509
509
|
let parents = [child.pid];
|
|
510
|
-
const inspectionDeadline = Date.now() +
|
|
510
|
+
const inspectionDeadline = Date.now() + INSPECTION_TIMEOUT_MS;
|
|
511
511
|
while (parents.length > 0) {
|
|
512
512
|
const remaining = inspectionDeadline - Date.now();
|
|
513
513
|
if (remaining <= 0) {
|
|
@@ -603,7 +603,7 @@ async function terminateProcessGroup(child, signal = "SIGTERM", gracefulTimeoutM
|
|
|
603
603
|
}
|
|
604
604
|
if (inspectionError) throw inspectionError;
|
|
605
605
|
}
|
|
606
|
-
var import_node_child_process2, import_node_fs3, import_node_os3, import_node_path2, import_node_stream2, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
606
|
+
var import_node_child_process2, import_node_fs3, import_node_os3, import_node_path2, import_node_stream2, import_promises, GRACEFUL_TIMEOUT_MS, FORCED_EXIT_TIMEOUT_MS, INSPECTION_TIMEOUT_MS, FREEZE_GUARD_NAME;
|
|
607
607
|
var init_process_group = __esm({
|
|
608
608
|
"src/process-group.ts"() {
|
|
609
609
|
"use strict";
|
|
@@ -616,6 +616,7 @@ var init_process_group = __esm({
|
|
|
616
616
|
init_process_table();
|
|
617
617
|
GRACEFUL_TIMEOUT_MS = 3e3;
|
|
618
618
|
FORCED_EXIT_TIMEOUT_MS = 1e3;
|
|
619
|
+
INSPECTION_TIMEOUT_MS = 1e4;
|
|
619
620
|
FREEZE_GUARD_NAME = "process-freeze-guard";
|
|
620
621
|
}
|
|
621
622
|
});
|
|
@@ -20455,7 +20456,11 @@ function parseWasmObjectBytes(file, buf, isDist, symbolFlagOffsets) {
|
|
|
20455
20456
|
objcClassSymToTypePrefix,
|
|
20456
20457
|
typePrefixesInObj,
|
|
20457
20458
|
rootFuncs,
|
|
20458
|
-
rootSegs
|
|
20459
|
+
rootSegs,
|
|
20460
|
+
segPayloadRanges: sEnds.map((end, i) => [
|
|
20461
|
+
dataStart + sPayloadStarts[i],
|
|
20462
|
+
dataStart + end
|
|
20463
|
+
])
|
|
20459
20464
|
};
|
|
20460
20465
|
}
|
|
20461
20466
|
function parseWasmObjectCached(file, isDist, useCache) {
|
|
@@ -20703,6 +20708,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
20703
20708
|
const eagerFiles = [];
|
|
20704
20709
|
const lazyBuildObjects = /* @__PURE__ */ new Map();
|
|
20705
20710
|
const extraArchiveObjs = [];
|
|
20711
|
+
const objectBytes = /* @__PURE__ */ new Map();
|
|
20706
20712
|
let inStartLib = false;
|
|
20707
20713
|
let swiftrtOrigPath = "";
|
|
20708
20714
|
for (const t of tokens2) {
|
|
@@ -20749,7 +20755,9 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
20749
20755
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm64.a") && import_node_fs26.default.existsSync(t)) {
|
|
20750
20756
|
const members2 = readArMembers(new Uint8Array(import_node_fs26.default.readFileSync(t)));
|
|
20751
20757
|
for (const m of members2) {
|
|
20752
|
-
|
|
20758
|
+
const object6 = parseWasmObjectBytes(`${t}(${m.name})`, m.bytes, false);
|
|
20759
|
+
extraArchiveObjs.push(object6);
|
|
20760
|
+
objectBytes.set(object6, Buffer.from(m.bytes));
|
|
20753
20761
|
}
|
|
20754
20762
|
}
|
|
20755
20763
|
}
|
|
@@ -21120,9 +21128,28 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
21120
21128
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufC",
|
|
21121
21129
|
"$s10Foundation16NSSortDescriptorC7keyPath9ascendingACs03KeyE0Cyxq_G_SbtcSLR_r0_lufc"
|
|
21122
21130
|
]);
|
|
21131
|
+
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
21132
|
+
const range2 = obj.segPayloadRanges[segIdx];
|
|
21133
|
+
if (!range2) return;
|
|
21134
|
+
let bytes = objectBytes.get(obj);
|
|
21135
|
+
if (!bytes) objectBytes.set(obj, bytes = import_node_fs26.default.readFileSync(obj.file));
|
|
21136
|
+
const text6 = bytes.toString("latin1", range2[0], range2[1]);
|
|
21137
|
+
for (const match of text6.matchAll(/So(\d+)/g)) {
|
|
21138
|
+
const start = match.index + 2 + match[1].length;
|
|
21139
|
+
const length = Number(match[1]);
|
|
21140
|
+
if (text6[start + length] !== "C") continue;
|
|
21141
|
+
const symbol2 = `._OBJC_CLASS_${text6.slice(start, start + length)}`;
|
|
21142
|
+
for (const provider of lazyProviders.get(symbol2) ?? []) {
|
|
21143
|
+
eagerDynamicObjects.add(provider);
|
|
21144
|
+
extractObject(provider);
|
|
21145
|
+
activateSymbolInObj(provider, provider.symNames.indexOf(symbol2));
|
|
21146
|
+
}
|
|
21147
|
+
}
|
|
21148
|
+
};
|
|
21123
21149
|
while (workQueue.length > 0) {
|
|
21124
21150
|
const item = workQueue.pop();
|
|
21125
21151
|
const obj = item.obj;
|
|
21152
|
+
if (item.kind === "seg") keepObjCClassesNamedInSegment(obj, item.idx);
|
|
21126
21153
|
let relocs;
|
|
21127
21154
|
if (item.kind === "func") {
|
|
21128
21155
|
relocs = obj.funcRelocs[item.idx];
|
|
@@ -22068,8 +22095,12 @@ function createGuestImageLedger(input) {
|
|
|
22068
22095
|
}
|
|
22069
22096
|
}
|
|
22070
22097
|
}
|
|
22098
|
+
const nameBytes = /* @__PURE__ */ new Map();
|
|
22099
|
+
for (const definition2 of definitions)
|
|
22100
|
+
if (!nameBytes.has(definition2.name))
|
|
22101
|
+
nameBytes.set(definition2.name, Buffer.from(definition2.name));
|
|
22071
22102
|
definitions.sort(
|
|
22072
|
-
(a, b) => Buffer.compare(
|
|
22103
|
+
(a, b) => Buffer.compare(nameBytes.get(a.name), nameBytes.get(b.name)) || a.image - b.image
|
|
22073
22104
|
);
|
|
22074
22105
|
const preserveCanonical = /* @__PURE__ */ new Set();
|
|
22075
22106
|
const definitionsByName = Map.groupBy(definitions, (definition2) => definition2.name);
|
|
@@ -22099,12 +22130,12 @@ function createGuestImageLedger(input) {
|
|
|
22099
22130
|
preserveCanonical.add(name3);
|
|
22100
22131
|
for (const name3 of input.commandLineSymbols ?? []) preserveCanonical.add(name3);
|
|
22101
22132
|
const bindingsByImage = /* @__PURE__ */ new Map();
|
|
22133
|
+
const definitionsByImage = Map.groupBy(definitions, (definition2) => definition2.image);
|
|
22102
22134
|
for (const caller of input.callers) {
|
|
22103
22135
|
const bindings = /* @__PURE__ */ new Map();
|
|
22104
22136
|
const seen = /* @__PURE__ */ new Map();
|
|
22105
22137
|
for (const image of [caller.image, ...caller.next])
|
|
22106
|
-
for (const definition2 of
|
|
22107
|
-
if (definition2.image !== image) continue;
|
|
22138
|
+
for (const definition2 of definitionsByImage.get(image) ?? []) {
|
|
22108
22139
|
const previous = seen.get(definition2.name);
|
|
22109
22140
|
if (previous?.image === definition2.image) {
|
|
22110
22141
|
if (previous.weak && !definition2.weak) {
|
|
@@ -22144,8 +22175,9 @@ function createGuestImageLedger(input) {
|
|
|
22144
22175
|
definitionsByAlias.set(definition2.alias, definition2);
|
|
22145
22176
|
}
|
|
22146
22177
|
const objects = units.map(({ image, object: object6, aliases, functionImports }) => {
|
|
22147
|
-
const
|
|
22148
|
-
|
|
22178
|
+
const shared = bindingsByImage.get(image);
|
|
22179
|
+
const own = startup.get(object6.path);
|
|
22180
|
+
const bindings = own ? new Map([...shared, ...own]) : shared;
|
|
22149
22181
|
for (const [name3, type] of functionImports) {
|
|
22150
22182
|
const alias = bindings.get(name3);
|
|
22151
22183
|
const provider = alias === void 0 ? void 0 : definitionsByAlias.get(alias);
|
|
@@ -24064,6 +24096,7 @@ function linkGuestImages(options) {
|
|
|
24064
24096
|
);
|
|
24065
24097
|
}
|
|
24066
24098
|
const archives = /* @__PURE__ */ new Map();
|
|
24099
|
+
const memberBytes = /* @__PURE__ */ new Map();
|
|
24067
24100
|
const prepare2 = (provider2) => {
|
|
24068
24101
|
const trace = runLink("discovery", [
|
|
24069
24102
|
...withOutput(args, discovery, true),
|
|
@@ -24107,20 +24140,23 @@ function linkGuestImages(options) {
|
|
|
24107
24140
|
}
|
|
24108
24141
|
const objectsByImage = /* @__PURE__ */ new Map();
|
|
24109
24142
|
for (const image of plan.images) objectsByImage.set(image.id, []);
|
|
24143
|
+
const artifacts = new Map(plan.artifacts.map((artifact) => [artifact.path, artifact]));
|
|
24110
24144
|
for (const item of selected2) {
|
|
24111
|
-
const artifact =
|
|
24112
|
-
(candidate) => candidate.path === item.artifact
|
|
24113
|
-
);
|
|
24145
|
+
const artifact = artifacts.get(item.artifact);
|
|
24114
24146
|
const image = selectedGuestInputImage(artifact, item.member);
|
|
24115
24147
|
let bytes;
|
|
24116
24148
|
if (item.member === null) bytes = import_node_fs30.default.readFileSync(item.artifact);
|
|
24117
24149
|
else {
|
|
24118
|
-
let
|
|
24119
|
-
if (!
|
|
24120
|
-
members2 = readArMembers(import_node_fs30.default.readFileSync(item.artifact));
|
|
24150
|
+
let byName = memberBytes.get(item.artifact);
|
|
24151
|
+
if (!byName) {
|
|
24152
|
+
const members2 = readArMembers(import_node_fs30.default.readFileSync(item.artifact));
|
|
24121
24153
|
archives.set(item.artifact, members2);
|
|
24154
|
+
byName = /* @__PURE__ */ new Map();
|
|
24155
|
+
for (const member of members2)
|
|
24156
|
+
if (!byName.has(member.name)) byName.set(member.name, member.bytes);
|
|
24157
|
+
memberBytes.set(item.artifact, byName);
|
|
24122
24158
|
}
|
|
24123
|
-
bytes =
|
|
24159
|
+
bytes = byName.get(item.member);
|
|
24124
24160
|
}
|
|
24125
24161
|
const objects = objectsByImage.get(image);
|
|
24126
24162
|
if (!objects) throw new Error(`unknown image ${image}`);
|
|
@@ -24153,10 +24189,11 @@ function linkGuestImages(options) {
|
|
|
24153
24189
|
const { selected, ledger } = prepared;
|
|
24154
24190
|
const replacements = /* @__PURE__ */ new Map();
|
|
24155
24191
|
const linkedOwners = /* @__PURE__ */ new Map();
|
|
24192
|
+
const ledgerObjects = new Map(ledger.objects.map((item) => [item.path, item]));
|
|
24156
24193
|
for (const [index, artifact] of plan.artifacts.entries()) {
|
|
24157
24194
|
const prefix = `${artifact.path}(`;
|
|
24158
24195
|
if (artifact.kind === "object") {
|
|
24159
|
-
const object6 =
|
|
24196
|
+
const object6 = ledgerObjects.get(artifact.path);
|
|
24160
24197
|
if (!object6) continue;
|
|
24161
24198
|
const output3 = import_node_path29.default.join(directory2, `object-${index}.o`);
|
|
24162
24199
|
import_node_fs30.default.writeFileSync(output3, object6.bytes);
|
|
@@ -24176,9 +24213,7 @@ function linkGuestImages(options) {
|
|
|
24176
24213
|
const output2 = import_node_path29.default.join(directory2, `archive-${index}.a`);
|
|
24177
24214
|
const inputs = members2.map((member) => {
|
|
24178
24215
|
const memberOutput = import_node_path29.default.join(memberDir, member.name);
|
|
24179
|
-
const rewritten =
|
|
24180
|
-
(item) => item.path === `${prefix}${member.name})`
|
|
24181
|
-
);
|
|
24216
|
+
const rewritten = ledgerObjects.get(`${prefix}${member.name})`);
|
|
24182
24217
|
import_node_fs30.default.writeFileSync(memberOutput, rewritten?.bytes ?? member.bytes);
|
|
24183
24218
|
if (rewritten) {
|
|
24184
24219
|
linkedOwners.set(
|
|
@@ -24517,10 +24552,13 @@ function selectedGuestSymbolInputs(plan, selected) {
|
|
|
24517
24552
|
else {
|
|
24518
24553
|
let members2 = archives.get(item.artifact);
|
|
24519
24554
|
if (!members2) {
|
|
24520
|
-
members2 =
|
|
24555
|
+
members2 = Map.groupBy(
|
|
24556
|
+
readArMembers(import_node_fs30.default.readFileSync(item.artifact)),
|
|
24557
|
+
(member) => member.name
|
|
24558
|
+
);
|
|
24521
24559
|
archives.set(item.artifact, members2);
|
|
24522
24560
|
}
|
|
24523
|
-
const matching2 = members2.
|
|
24561
|
+
const matching2 = members2.get(item.member) ?? [];
|
|
24524
24562
|
if (matching2.length !== 1)
|
|
24525
24563
|
throw new Error(
|
|
24526
24564
|
`ambiguous selected symbol input ${item.artifact}(${item.member})`
|
|
@@ -24932,9 +24970,10 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
24932
24970
|
if (command.tool !== "clang" || compiler !== (0, import_node_fs31.realpathSync)(import_node_path30.default.join(options.toolchainBin, "clang")) && compiler !== (0, import_node_fs31.realpathSync)(import_node_path30.default.join(options.buildDirectory, CLANG_TARGET_MODULE_WRAPPER)))
|
|
24933
24971
|
throw new Error(`unsupported source object producer ${file}`);
|
|
24934
24972
|
const args = command.args.slice(1).filter((arg) => arg !== "-c");
|
|
24973
|
+
const targetBuild = import_node_path30.default.relative(options.buildDirectory, file).split(import_node_path30.default.sep).findLast((part) => part !== ".build" && part.endsWith(".build"));
|
|
24935
24974
|
const outputDirectory = import_node_path30.default.join(
|
|
24936
24975
|
options.directory,
|
|
24937
|
-
import_node_path30.default.basename(import_node_path30.default.dirname(file))
|
|
24976
|
+
targetBuild ?? import_node_path30.default.basename(import_node_path30.default.dirname(file))
|
|
24938
24977
|
);
|
|
24939
24978
|
(0, import_node_fs31.mkdirSync)(outputDirectory, { recursive: true });
|
|
24940
24979
|
const output2 = import_node_path30.default.join(outputDirectory, `clang-link-${index}.ll`);
|
|
@@ -26921,6 +26960,46 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
|
|
|
26921
26960
|
if (declared.size === 0) return null;
|
|
26922
26961
|
return { declared, header: clangInterfaceHeader((0, import_node_fs41.readFileSync)(built2, "utf8")) };
|
|
26923
26962
|
}
|
|
26963
|
+
function nativelyDeclaredFunctions(generated, headers) {
|
|
26964
|
+
const candidates = [
|
|
26965
|
+
...new Set(
|
|
26966
|
+
[...generated.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
|
|
26967
|
+
(match) => match[1]
|
|
26968
|
+
)
|
|
26969
|
+
)
|
|
26970
|
+
];
|
|
26971
|
+
if (candidates.length === 0) return [];
|
|
26972
|
+
const declaration = new RegExp(`^[^\\n#/*]*?\\b(${candidates.join("|")})\\s*\\(`, "gm");
|
|
26973
|
+
const found = /* @__PURE__ */ new Set();
|
|
26974
|
+
for (const header of headers)
|
|
26975
|
+
for (const match of header.matchAll(declaration)) found.add(match[1]);
|
|
26976
|
+
return [...found];
|
|
26977
|
+
}
|
|
26978
|
+
function sdkObjCDeclarationOwners(frameworks) {
|
|
26979
|
+
const known = sdkDeclarationOwners.get(frameworks);
|
|
26980
|
+
if (known) return known;
|
|
26981
|
+
const owners = /* @__PURE__ */ new Map();
|
|
26982
|
+
for (const framework of (0, import_node_fs41.readdirSync)(frameworks))
|
|
26983
|
+
if (framework.endsWith(".framework")) {
|
|
26984
|
+
const headers = import_node_path40.default.join(frameworks, framework, "Headers");
|
|
26985
|
+
if ((0, import_node_fs41.existsSync)(headers)) {
|
|
26986
|
+
for (const file of (0, import_node_fs41.readdirSync)(headers, { recursive: true, encoding: "utf8" }))
|
|
26987
|
+
if (file.endsWith(".h")) {
|
|
26988
|
+
const header = (0, import_node_fs41.readFileSync)(import_node_path40.default.join(headers, file), "utf8");
|
|
26989
|
+
for (const name3 of [
|
|
26990
|
+
...swiftInterfaceDeclarations(header),
|
|
26991
|
+
...objcEnumerations(header),
|
|
26992
|
+
...[
|
|
26993
|
+
...header.matchAll(/^[A-Z_]*_(?:EXTERN|EXPORT)\b[^;(\n]*?\b(\w+)\s*\(/gm)
|
|
26994
|
+
].map((match) => match[1])
|
|
26995
|
+
])
|
|
26996
|
+
owners.set(name3, framework.slice(0, -".framework".length));
|
|
26997
|
+
}
|
|
26998
|
+
}
|
|
26999
|
+
}
|
|
27000
|
+
sdkDeclarationOwners.set(frameworks, owners);
|
|
27001
|
+
return owners;
|
|
27002
|
+
}
|
|
26924
27003
|
function swiftHeaderWithSuperclassImports(header, interfaceFor) {
|
|
26925
27004
|
const superclasses = new Set(
|
|
26926
27005
|
[...header.matchAll(/@interface\s+\w+\s*:\s*(\w+)/g)].map((match) => match[1])
|
|
@@ -26953,6 +27032,10 @@ function withoutSwiftDeclarations(text6, declared, interfaceImport) {
|
|
|
26953
27032
|
const name3 = /^\s*(?:[A-Z_]\w*(?:\([^()\n]*\))?\s+)*@(?:protocol|interface)\s+(\w+)\s*(?=[:<{]|$)/.exec(
|
|
26954
27033
|
line
|
|
26955
27034
|
)?.[1];
|
|
27035
|
+
const external = /^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(.*\)[^;\n]*;\s*$/.exec(
|
|
27036
|
+
line
|
|
27037
|
+
)?.[1];
|
|
27038
|
+
if (external && declared.has(external)) continue;
|
|
26956
27039
|
const enumeration = /^\s*typedef\s+(?:NS_ENUM|NS_OPTIONS|SWIFT_ENUM(?:_NAMED)?)\s*\(\s*\w+\s*,\s*(\w+)\b/.exec(
|
|
26957
27040
|
line
|
|
26958
27041
|
)?.[1];
|
|
@@ -30182,15 +30265,29 @@ module ${moduleName2}.Swift {
|
|
|
30182
30265
|
[
|
|
30183
30266
|
"#!/bin/sh",
|
|
30184
30267
|
"name=",
|
|
30268
|
+
"explicit=",
|
|
30185
30269
|
"prev=",
|
|
30186
30270
|
'for arg in "$@"; do',
|
|
30187
|
-
|
|
30271
|
+
" case $arg in -fmodule-name=*) explicit=1 ;; esac",
|
|
30272
|
+
' if [ "$prev" = -o ]; then',
|
|
30273
|
+
" case $arg in */*) dir=${arg%/*} ;; *) dir= ;; esac",
|
|
30274
|
+
' while [ -n "$dir" ] && [ "$dir" != / ] && [ "$dir" != . ]; do',
|
|
30275
|
+
" base=${dir##*/}",
|
|
30276
|
+
" case $base in",
|
|
30277
|
+
" .build) break ;;",
|
|
30278
|
+
" *.build) name=${base%.build}; break ;;",
|
|
30279
|
+
" esac",
|
|
30280
|
+
" next=${dir%/*}",
|
|
30281
|
+
' [ "$next" = "$dir" ] && break',
|
|
30282
|
+
" dir=$next",
|
|
30283
|
+
" done",
|
|
30284
|
+
" fi",
|
|
30188
30285
|
" prev=$arg",
|
|
30189
30286
|
"done",
|
|
30190
|
-
"
|
|
30191
|
-
`
|
|
30192
|
-
|
|
30193
|
-
"
|
|
30287
|
+
'if [ -n "$name" ] && [ -z "$explicit" ]; then',
|
|
30288
|
+
` exec '${import_node_path40.default.join(nativeToolchain(), "clang")}' "-fmodule-name=$name" "$@"`,
|
|
30289
|
+
"fi",
|
|
30290
|
+
`exec '${import_node_path40.default.join(nativeToolchain(), "clang")}' "$@"`,
|
|
30194
30291
|
""
|
|
30195
30292
|
].join("\n")
|
|
30196
30293
|
);
|
|
@@ -30649,7 +30746,7 @@ function frameworkLinkClosure(scratch2, roots) {
|
|
|
30649
30746
|
const deps = /* @__PURE__ */ new Set();
|
|
30650
30747
|
for (const file of paths) {
|
|
30651
30748
|
const module2 = /\/Modules\/([^/]+)\.swiftmodule$/.exec(file);
|
|
30652
|
-
const object6 = /\/([^/]+)\.build
|
|
30749
|
+
const object6 = /\/release\/([^/]+)\.build\/.+\.o$/.exec(file);
|
|
30653
30750
|
if (module2) deps.add(module2[1]);
|
|
30654
30751
|
else if (object6 && object6[1] !== pending.name) deps.add(object6[1]);
|
|
30655
30752
|
}
|
|
@@ -31325,11 +31422,28 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31325
31422
|
))
|
|
31326
31423
|
declared.add(name4);
|
|
31327
31424
|
}
|
|
31328
|
-
const
|
|
31425
|
+
const own = withoutSwiftDeclarations(
|
|
31329
31426
|
clangInterfaceHeader((0, import_node_fs41.readFileSync)(source, "utf8")),
|
|
31330
31427
|
declared,
|
|
31331
31428
|
`#import <${name3}/${name3}.h>`
|
|
31332
31429
|
);
|
|
31430
|
+
const owners = sdkObjCDeclarationOwners(import_node_path40.default.dirname(import_node_path40.default.dirname(headers)));
|
|
31431
|
+
const foreign = /* @__PURE__ */ new Map();
|
|
31432
|
+
for (const declaration of [
|
|
31433
|
+
...swiftInterfaceDeclarations(own),
|
|
31434
|
+
...objcEnumerations(own),
|
|
31435
|
+
...[...own.matchAll(/^\s*SWIFT_EXTERN\b[^(\n]*?\b(\w+)\s*\(/gm)].map(
|
|
31436
|
+
(match) => match[1]
|
|
31437
|
+
)
|
|
31438
|
+
]) {
|
|
31439
|
+
const owner = owners.get(declaration);
|
|
31440
|
+
if (owner && owner !== name3) foreign.set(declaration, owner);
|
|
31441
|
+
}
|
|
31442
|
+
const header = foreign.size ? withoutSwiftDeclarations(
|
|
31443
|
+
own,
|
|
31444
|
+
new Set(foreign.keys()),
|
|
31445
|
+
[...new Set(foreign.values())].map((owner) => `#import <${owner}/${owner}.h>`).join("\n")
|
|
31446
|
+
) : own;
|
|
31333
31447
|
const value = {
|
|
31334
31448
|
file: import_node_path40.default.join(root, ".build/peach-framework-objc", `${name3}-Swift.h`),
|
|
31335
31449
|
header,
|
|
@@ -31366,18 +31480,25 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31366
31480
|
`${producer}-Swift.h`
|
|
31367
31481
|
);
|
|
31368
31482
|
const original = preparation.nativeHeaderDeclarations[producer] ? emitted.replace(/-Swift\.h$/, "-Swift.original.h") : emitted;
|
|
31369
|
-
if ((0, import_node_fs41.existsSync)(original))
|
|
31483
|
+
if ((0, import_node_fs41.existsSync)(original)) {
|
|
31484
|
+
const generated = clangInterfaceHeader((0, import_node_fs41.readFileSync)(original, "utf8"));
|
|
31370
31485
|
writeBuildFile(
|
|
31371
31486
|
emitted,
|
|
31372
31487
|
withoutSwiftDeclarations(
|
|
31373
|
-
swiftHeaderWithSuperclassImports(
|
|
31374
|
-
|
|
31375
|
-
|
|
31376
|
-
|
|
31377
|
-
|
|
31488
|
+
swiftHeaderWithSuperclassImports(generated, frameworkInterface),
|
|
31489
|
+
/* @__PURE__ */ new Set([
|
|
31490
|
+
...preparation.nativeHeaderDeclarations[producer] ?? [],
|
|
31491
|
+
...nativelyDeclaredFunctions(
|
|
31492
|
+
generated,
|
|
31493
|
+
Object.entries(input.files).filter(
|
|
31494
|
+
([name3]) => name3.endsWith(".h") && !name3.endsWith("-Swift.h")
|
|
31495
|
+
).map(([, source]) => source)
|
|
31496
|
+
)
|
|
31497
|
+
]),
|
|
31378
31498
|
`#import <${producer}/${producer}.h>`
|
|
31379
31499
|
)
|
|
31380
31500
|
);
|
|
31501
|
+
}
|
|
31381
31502
|
}
|
|
31382
31503
|
}
|
|
31383
31504
|
const checkpoints = import_node_path40.default.join(
|
|
@@ -31515,7 +31636,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
31515
31636
|
options.signal
|
|
31516
31637
|
);
|
|
31517
31638
|
}
|
|
31518
|
-
var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
31639
|
+
var import_node_child_process24, import_node_crypto19, import_node_fs41, import_node_os10, import_node_path40, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, SWIFT_BUILDER_TRANSPORT_MARGIN_MS, SWIFT_BUILDER_DEFAULT_COMPILE_MS, clangInterfaceHeader, objcEnumerations, sdkDeclarationOwners, swiftInterfaceDeclarations, linkedModuleDigests, SYSTEM_MODULE_LIBRARIES, SYSTEM_MODULE_IMPORT, OPTIONAL_FRAMEWORK_DEPENDENCIES, OPTIONAL_FRAMEWORKS, SWIFT_IMPORT, kleeneNot, kleeneAnd, kleeneOr, sdkPaths, availableModules, sdkOverlayFrameworks, DISTRIBUTION_CLANG_MODULES, ONE_PRODUCT, GAME_FAMILY, gameProducts, gameProduct, GAME_REACH, FOUNDATION_IMPLICIT_MODULES, PRECONCURRENCY_FOUNDATION_IMPORT, FOUNDATION_IMPLICIT_FLAGS, ONE_IMPLICIT_FLAGS, executableLinkFlags, darwinRecordsRegion, REACTOR_FLAG, MULTI_MANIFEST_VERSION, SWIFT_HEADER_PRODUCTS_TARGET, compilerSourceDigest, nativeCxxCompilerFlags, cFlagArray, cxxFlagArray, SWIFTPM_DEFAULT_IOS_DEPLOYMENT_TARGET, DIRECTIVE, OS_IOS, NOT_ON_IOS, DELEGATE_CLASS, FOUNDATION_NETWORKING_TYPES, FOUNDATION_OVERLAY_TYPES, FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_OVERLAY_GLOBALS, CORE_FOUNDATION_GEOMETRY_TYPES, CORE_FOUNDATION_GRAPHICS_TYPES, CORE_FOUNDATION_HANDLE_IMPORTS, emptyMacroEnvironment, wasmMacroEnvironment, HIDDEN_UNITS, LIBXML_REFERENCE, LIBXML_SOURCE, ROOT_LOCKS, host, rootLocks, SHARED_ARTIFACT_BUDGET_BYTES, SHARED_ARTIFACT_GRACE_MS, RETIRED_PREFIX, retainedArtifacts, FRAMEWORK_LINK_TARGET, SWIFT_LINK_STAMP, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
31519
31640
|
var init_swift_compile = __esm({
|
|
31520
31641
|
"src/swift-compile.ts"() {
|
|
31521
31642
|
"use strict";
|
|
@@ -31562,6 +31683,12 @@ var init_swift_compile = __esm({
|
|
|
31562
31683
|
/^@import (?:CoreFoundation|FoundationNetworking);$/gm,
|
|
31563
31684
|
"@import Foundation;"
|
|
31564
31685
|
).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
31686
|
+
objcEnumerations = (header) => [
|
|
31687
|
+
...header.matchAll(
|
|
31688
|
+
/^\s*typedef\s+(?:NS|CF|SWIFT)_\w*(?:ENUM|OPTIONS)\w*\s*\(\s*\w+\s*,\s*(\w+)\b/gm
|
|
31689
|
+
)
|
|
31690
|
+
].map((match) => match[1]);
|
|
31691
|
+
sdkDeclarationOwners = /* @__PURE__ */ new Map();
|
|
31565
31692
|
swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
31566
31693
|
...[
|
|
31567
31694
|
...header.matchAll(
|
|
@@ -31744,7 +31871,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
31744
31871
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
31745
31872
|
MULTI_MANIFEST_VERSION = 68;
|
|
31746
31873
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
31747
|
-
compilerSourceDigest = true ? "
|
|
31874
|
+
compilerSourceDigest = true ? "4a1be1d1296381c7090b5b2b704a7d2bebba03ceaa580613acd0f2c39c31ed4c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
31748
31875
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
31749
31876
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
31750
31877
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -43685,7 +43812,7 @@ var init_swift_standin_digest = __esm({
|
|
|
43685
43812
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
43686
43813
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
43687
43814
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
43688
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
43815
|
+
STANDIN_SOURCE_DIGEST = true ? "977c30e838b3cb068d200b9a9a12851b01d2192d0d04e2b5a6abe8189c168d42" : standinSourceDigest();
|
|
43689
43816
|
}
|
|
43690
43817
|
});
|
|
43691
43818
|
|
|
@@ -44451,9 +44578,9 @@ function exec(file, args, cwd) {
|
|
|
44451
44578
|
}
|
|
44452
44579
|
function failure(error) {
|
|
44453
44580
|
const output2 = error && typeof error === "object" && "stderr" in error ? `${String(error.stderr)}
|
|
44454
|
-
${"stdout" in error ? String(error.stdout) : ""}` : String(error);
|
|
44455
|
-
const errors = output2.split("\n").filter((line) =>
|
|
44456
|
-
return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(
|
|
44581
|
+
${"stdout" in error ? String(error.stdout) : ""}` : error instanceof Error ? error.message : String(error);
|
|
44582
|
+
const errors = output2.split("\n").filter((line) => /^(\S.*?:\d+:\d+: )?error:/.test(line)).map((line) => line.replace(/^(.*?:\d+:\d+: )?error:\s*/, "").trim());
|
|
44583
|
+
return [...new Set(errors)].slice(0, 3).join("; ") || output2.trim().slice(-600);
|
|
44457
44584
|
}
|
|
44458
44585
|
function treeDigest(root) {
|
|
44459
44586
|
const names = [];
|
|
@@ -44964,6 +45091,8 @@ function peachModuleDirs(toolchain, imports2, sdkIncludes) {
|
|
|
44964
45091
|
target,
|
|
44965
45092
|
"-Xswiftc",
|
|
44966
45093
|
"-Osize",
|
|
45094
|
+
"-Xswiftc",
|
|
45095
|
+
"-gnone",
|
|
44967
45096
|
...plugins.libraries.flatMap((library) => [
|
|
44968
45097
|
"-Xswiftc",
|
|
44969
45098
|
"-load-plugin-library",
|
|
@@ -46599,10 +46728,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
46599
46728
|
) : binary2.cxxHeaders ? await cxxStandin(surface, binary2, toolchain, dir) : cStandin(surface, binary2, toolchain, dir)
|
|
46600
46729
|
);
|
|
46601
46730
|
} catch (error) {
|
|
46602
|
-
throw new Error(
|
|
46603
|
-
|
|
46604
|
-
|
|
46605
|
-
);
|
|
46731
|
+
throw new Error(`no stand-in for ${surface.module}: ${failure(error)}`, {
|
|
46732
|
+
cause: error
|
|
46733
|
+
});
|
|
46606
46734
|
}
|
|
46607
46735
|
}
|
|
46608
46736
|
publish(result);
|
|
@@ -50924,10 +51052,11 @@ function applyInstalledSwiftTargets(collection, snapshot, generatedTargets, root
|
|
|
50924
51052
|
].map((bundle) => [bundle.target, bundle])
|
|
50925
51053
|
).values()
|
|
50926
51054
|
];
|
|
50927
|
-
|
|
51055
|
+
const headerAliases = {
|
|
50928
51056
|
...collection.headerAliases,
|
|
50929
51057
|
...snapshot.input.headerAliases
|
|
50930
51058
|
};
|
|
51059
|
+
collection.headerAliases = headerAliases;
|
|
50931
51060
|
const canonical = /* @__PURE__ */ new Map();
|
|
50932
51061
|
for (const [key2, source] of Object.entries(snapshot.sourcePaths)) {
|
|
50933
51062
|
const real = import_node_fs80.default.realpathSync(source);
|
|
@@ -50997,6 +51126,8 @@ function applyInstalledSwiftTargets(collection, snapshot, generatedTargets, root
|
|
|
50997
51126
|
const match = supplied.get(file.slice(prefix.length))?.find((candidate) => candidate.content === content);
|
|
50998
51127
|
if (!match) continue;
|
|
50999
51128
|
roots2.add(match.root);
|
|
51129
|
+
aliases[file] = copy;
|
|
51130
|
+
headerAliases[file] = copy;
|
|
51000
51131
|
delete collection.files[file];
|
|
51001
51132
|
}
|
|
51002
51133
|
return roots2;
|
|
@@ -55898,6 +56029,7 @@ async function compileNitroModule(options) {
|
|
|
55898
56029
|
options.packageRoots,
|
|
55899
56030
|
options.answers
|
|
55900
56031
|
).flatMap(({ config }) => config.swiftModule ? [config.swiftModule] : []);
|
|
56032
|
+
let installedTargets = [];
|
|
55901
56033
|
if (swiftModules.length > 0 && workspace) {
|
|
55902
56034
|
const available = new Set(
|
|
55903
56035
|
swiftAvailableModules(
|
|
@@ -55921,12 +56053,13 @@ async function compileNitroModule(options) {
|
|
|
55921
56053
|
},
|
|
55922
56054
|
async (root) => {
|
|
55923
56055
|
const snapshot = await installedWorkspaceInput(root, "main.swift");
|
|
56056
|
+
installedTargets = swiftManifestTargets(snapshot.input.files["Package.swift"]);
|
|
55924
56057
|
const swiftFiles = Object.keys(snapshot.input.files).filter(
|
|
55925
56058
|
(file) => file.endsWith(".swift")
|
|
55926
56059
|
);
|
|
55927
56060
|
const mixedTargets = /* @__PURE__ */ new Set([
|
|
55928
56061
|
...collection.targets.map(({ name: name3 }) => name3),
|
|
55929
|
-
...
|
|
56062
|
+
...installedTargets.filter(
|
|
55930
56063
|
(target) => swiftFiles.some((file) => file.startsWith(`${target.path}/`))
|
|
55931
56064
|
).map(({ name: name3 }) => name3)
|
|
55932
56065
|
]);
|
|
@@ -55967,6 +56100,23 @@ async function compileNitroModule(options) {
|
|
|
55967
56100
|
options.moduleRoot,
|
|
55968
56101
|
installedProviders ? [] : unresolvedFrameworkIncludes(collection.files)
|
|
55969
56102
|
);
|
|
56103
|
+
if (dependencies) {
|
|
56104
|
+
const podTargets = new Set(
|
|
56105
|
+
swiftManifestTargets(dependencies.files["Package.swift"]).map(
|
|
56106
|
+
({ name: name3 }) => name3
|
|
56107
|
+
)
|
|
56108
|
+
);
|
|
56109
|
+
for (const target of collection.targets) {
|
|
56110
|
+
const declared = installedTargets.find(({ name: name3 }) => name3 === target.name);
|
|
56111
|
+
const owned = new Set((target.dependencies ?? []).map(({ name: name3 }) => name3));
|
|
56112
|
+
target.dependencies = [
|
|
56113
|
+
...target.dependencies ?? [],
|
|
56114
|
+
...(declared?.dependencies ?? []).filter(
|
|
56115
|
+
(dependency) => dependency.kind === "target" && podTargets.has(dependency.name) && !owned.has(dependency.name)
|
|
56116
|
+
)
|
|
56117
|
+
];
|
|
56118
|
+
}
|
|
56119
|
+
}
|
|
55970
56120
|
}
|
|
55971
56121
|
const iosDeploymentTarget = readIosAppTarget(
|
|
55972
56122
|
options.projectRoot,
|
|
@@ -56250,7 +56400,7 @@ var init_nitro_superset = __esm({
|
|
|
56250
56400
|
init_nitroContract();
|
|
56251
56401
|
init_swift_standin_digest();
|
|
56252
56402
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
56253
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
56403
|
+
NITRO_COMPILER_DIGEST = true ? "0429b227e3c07f9b7eede2db1261fa41aed089c33099b22004c3776da007bf07" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
56254
56404
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
56255
56405
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
56256
56406
|
published = /* @__PURE__ */ new Map();
|
|
@@ -57467,7 +57617,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
57467
57617
|
|
|
57468
57618
|
// src/expo-native-prebuilt.ts
|
|
57469
57619
|
function expoNativeCompilerDigestValue() {
|
|
57470
|
-
return true ? "
|
|
57620
|
+
return true ? "61015852e514afc4871689bd71712eb2a5ac95c8b04829519dc81f6855f86b30" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
57471
57621
|
}
|
|
57472
57622
|
function readSources(value) {
|
|
57473
57623
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -64911,7 +65061,7 @@ var import_node_path5 = require("node:path");
|
|
|
64911
65061
|
init_src();
|
|
64912
65062
|
|
|
64913
65063
|
// runtime-companion.json
|
|
64914
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
65064
|
+
var runtime_companion_default = { abi: 1, sha256: "15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e", file: "node/cli-15053b90437ccef5f18e3e8cde5732e85d2dc9feb3a3e76076cb671a640c465e.cjs" };
|
|
64915
65065
|
|
|
64916
65066
|
// src/cli-runtime.ts
|
|
64917
65067
|
init_answeredNativePackages();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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.2250 | (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.2250 | (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/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2250 | (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/config.mjs
CHANGED