peachsim 0.1.2434 → 0.1.2435
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 +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 +95 -28
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +94 -27
- 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 +95 -28
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- 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 +14 -6
- 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 +14 -6
- package/dist-lib/native-app-identity-project.cjs +13 -5
- package/dist-lib/native-app-identity-project.mjs +13 -5
- 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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +101 -35
- package/dist-lib/swift-compile.cjs +69 -19
- package/dist-lib/swift-compile.mjs +69 -19
- 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 +92 -25
- package/dist-lib/vite.cjs +3 -3
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
- package/package.json +1 -1
- package/src/bazel-project.ts +11 -3
- package/src/swift-compile.ts +49 -5
- package/src/swift-guest-image-ledger.ts +15 -12
- package/src/swift-guest-link.ts +13 -2
- package/src/swift-host.ts +12 -0
- package/src/swift-submit.ts +2 -0
- package/src/swift-wasm-prune.ts +8 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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;
|
|
@@ -16615,8 +16615,10 @@ function bazelGraph(root, label, configuration) {
|
|
|
16615
16615
|
);
|
|
16616
16616
|
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
16617
16617
|
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
16618
|
+
const strings5 = app2.attrs.get("strings")?.list ?? [];
|
|
16618
16619
|
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
16619
|
-
const
|
|
16620
|
+
const roots = [...deps, ...strings5];
|
|
16621
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${roots.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
16620
16622
|
const output2 = run7(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
16621
16623
|
const defaults = run7([
|
|
16622
16624
|
"cquery",
|
|
@@ -16993,8 +16995,14 @@ ${published2.map(
|
|
|
16993
16995
|
graph.app.attrs.get("infoplists")?.list ?? [],
|
|
16994
16996
|
graph.app.label
|
|
16995
16997
|
);
|
|
16998
|
+
const strings5 = files2.expand(
|
|
16999
|
+
graph.app.attrs.get("strings")?.list ?? [],
|
|
17000
|
+
graph.app.label
|
|
17001
|
+
);
|
|
17002
|
+
resources.push(...strings5);
|
|
16996
17003
|
const absent = () => [
|
|
16997
17004
|
...infoPlistFiles,
|
|
17005
|
+
...strings5,
|
|
16998
17006
|
...[...frameworks, appModule].flatMap((module2) => [
|
|
16999
17007
|
...module2.allSources,
|
|
17000
17008
|
...module2.objc?.headers ?? []
|
|
@@ -17038,7 +17046,7 @@ ${published2.map(
|
|
|
17038
17046
|
const missing = options.requireSources === false ? [] : absent();
|
|
17039
17047
|
if (missing.length > 0)
|
|
17040
17048
|
throw new Error(
|
|
17041
|
-
`bazel
|
|
17049
|
+
`bazel application has ${missing.length} unbuilt inputs: ${missing.slice(0, 5).map((file) => import_node_path41.default.relative(root, file)).join(", ")}`
|
|
17042
17050
|
);
|
|
17043
17051
|
const archives = /* @__PURE__ */ new Map();
|
|
17044
17052
|
for (const rule of order) {
|
|
@@ -17346,7 +17354,7 @@ var init_bazel_project = __esm({
|
|
|
17346
17354
|
HEADER3 = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
|
|
17347
17355
|
PRODUCTS = import_node_path41.default.join(".build", "peach-bazel", "Products");
|
|
17348
17356
|
graphs = /* @__PURE__ */ new Map();
|
|
17349
|
-
GRAPH_FORMAT =
|
|
17357
|
+
GRAPH_FORMAT = 6;
|
|
17350
17358
|
BazelFiles = class {
|
|
17351
17359
|
constructor(graph, root) {
|
|
17352
17360
|
this.graph = graph;
|
|
@@ -25830,7 +25838,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
25830
25838
|
const def = definedGlobalSyms.get(symName);
|
|
25831
25839
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
25832
25840
|
}
|
|
25833
|
-
for (const symName of [
|
|
25841
|
+
for (const symName of [
|
|
25842
|
+
"__peach_dlsym_from_image",
|
|
25843
|
+
"__peach_dlerror",
|
|
25844
|
+
...link ? ["_dyld_register_func_for_add_image"] : []
|
|
25845
|
+
]) {
|
|
25834
25846
|
const provider = lazyProviders.get(symName)?.[0];
|
|
25835
25847
|
if (provider) extractObject(provider);
|
|
25836
25848
|
const def = definedGlobalSyms.get(symName);
|
|
@@ -26480,7 +26492,7 @@ function readString(bytes, position) {
|
|
|
26480
26492
|
const [length, start] = readNumber(bytes, position);
|
|
26481
26493
|
if (start + length > bytes.length) throw new Error("invalid wasm string");
|
|
26482
26494
|
return [
|
|
26483
|
-
Buffer.from(bytes.
|
|
26495
|
+
Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
|
|
26484
26496
|
start + length
|
|
26485
26497
|
];
|
|
26486
26498
|
}
|
|
@@ -26505,7 +26517,7 @@ function llvmType(value) {
|
|
|
26505
26517
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
26506
26518
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
26507
26519
|
throw new Error("expected wasm object");
|
|
26508
|
-
const sections2 = [Buffer.from(bytes.subarray(0, 8))];
|
|
26520
|
+
const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
|
|
26509
26521
|
const types = [];
|
|
26510
26522
|
const functionTypes = [];
|
|
26511
26523
|
const definitions = [];
|
|
@@ -26519,8 +26531,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
26519
26531
|
const [size2, start] = readNumber(bytes, position);
|
|
26520
26532
|
const end = start + size2;
|
|
26521
26533
|
if (end > bytes.length) throw new Error("invalid wasm section");
|
|
26522
|
-
let section = Buffer.from(bytes.subarray(start, end));
|
|
26523
26534
|
position = end;
|
|
26535
|
+
if (!sections2 && id > 3) continue;
|
|
26536
|
+
let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size2);
|
|
26524
26537
|
let offset = 0;
|
|
26525
26538
|
const number3 = () => {
|
|
26526
26539
|
const [value, next] = readNumber(section, offset);
|
|
@@ -26548,7 +26561,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
26548
26561
|
}
|
|
26549
26562
|
} else if (id === 2) {
|
|
26550
26563
|
const count = number3();
|
|
26551
|
-
const imports2 = [encodeNumber(count)];
|
|
26564
|
+
const imports2 = sections2 ? [encodeNumber(count)] : void 0;
|
|
26552
26565
|
for (let i = 0; i < count; i++) {
|
|
26553
26566
|
const module2 = string6();
|
|
26554
26567
|
const name3 = string6();
|
|
@@ -26592,17 +26605,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
26592
26605
|
}
|
|
26593
26606
|
if (isDlsym) usesDlsym = true;
|
|
26594
26607
|
if (isDlerror) usesDlerror = true;
|
|
26595
|
-
imports2
|
|
26608
|
+
imports2?.push(
|
|
26596
26609
|
encodedString(module2),
|
|
26597
26610
|
encodedString(
|
|
26598
|
-
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding(name3) ?? name3 : name3
|
|
26611
|
+
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding?.(name3) ?? name3 : name3
|
|
26599
26612
|
),
|
|
26600
26613
|
Buffer.from([kind]),
|
|
26601
26614
|
section.subarray(typeStart, offset)
|
|
26602
26615
|
);
|
|
26603
26616
|
}
|
|
26604
26617
|
if (offset !== section.length) throw new Error("invalid wasm import section");
|
|
26605
|
-
section = Buffer.concat(imports2);
|
|
26618
|
+
if (imports2) section = Buffer.concat(imports2);
|
|
26606
26619
|
} else if (id === 3) {
|
|
26607
26620
|
const count = number3();
|
|
26608
26621
|
for (let i = 0; i < count; i++) functionTypes.push(number3());
|
|
@@ -26686,7 +26699,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
26686
26699
|
encodedString(name3 === "dlsym" ? callerAlias : "__peach_dlerror"),
|
|
26687
26700
|
section.subarray(nameEnd, offset)
|
|
26688
26701
|
);
|
|
26689
|
-
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding(name3) !== void 0) {
|
|
26702
|
+
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding?.(name3) !== void 0) {
|
|
26690
26703
|
entries.push(
|
|
26691
26704
|
section.subarray(begin, nameStart),
|
|
26692
26705
|
encodedString(binding(name3)),
|
|
@@ -26761,10 +26774,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
26761
26774
|
section = Buffer.concat(parts);
|
|
26762
26775
|
}
|
|
26763
26776
|
}
|
|
26764
|
-
sections2
|
|
26777
|
+
sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
|
|
26765
26778
|
}
|
|
26766
26779
|
return {
|
|
26767
|
-
bytes: Buffer.concat(sections2),
|
|
26780
|
+
bytes: sections2 ? Buffer.concat(sections2) : bytes,
|
|
26768
26781
|
definitions,
|
|
26769
26782
|
functionImports,
|
|
26770
26783
|
usesDlsym,
|
|
@@ -26820,7 +26833,7 @@ function createGuestImageLedger(input) {
|
|
|
26820
26833
|
object7.bytes,
|
|
26821
26834
|
aliases,
|
|
26822
26835
|
`__peach_dlsym_caller_${image.id}`,
|
|
26823
|
-
|
|
26836
|
+
void 0,
|
|
26824
26837
|
object7.instrumentDynamicLookups,
|
|
26825
26838
|
/* @__PURE__ */ new Set()
|
|
26826
26839
|
);
|
|
@@ -29488,13 +29501,21 @@ function verifyGuestSymbolScopes(options) {
|
|
|
29488
29501
|
continue;
|
|
29489
29502
|
if (!scope2.includes(provider)) {
|
|
29490
29503
|
const candidates = options.definitionObjects.get(symbol2) ?? /* @__PURE__ */ new Set();
|
|
29491
|
-
const
|
|
29504
|
+
const traced = [...record3.providers.keys()];
|
|
29505
|
+
const strongTraced = traced.filter(
|
|
29506
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
29507
|
+
);
|
|
29508
|
+
const providers = strongTraced.length === 1 ? strongTraced : traced;
|
|
29492
29509
|
if (options.weakReferences.get(object7)?.has(symbol2) && !providers.some((provider2) => options.systemProviders.has(provider2)))
|
|
29493
29510
|
continue;
|
|
29494
29511
|
const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
|
|
29495
29512
|
(definer) => options.weakDefinitions.get(definer)?.has(symbol2)
|
|
29496
29513
|
);
|
|
29497
|
-
|
|
29514
|
+
const strongCandidates = [...candidates].filter(
|
|
29515
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
29516
|
+
);
|
|
29517
|
+
const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
|
|
29518
|
+
if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
|
|
29498
29519
|
// scope, the root image and its dependency closure, as in elf.
|
|
29499
29520
|
provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object7)?.has(symbol2) && options.frameworkProviders.get(object7)?.has(providers[0]))))
|
|
29500
29521
|
throw new Error(
|
|
@@ -33001,6 +33022,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
33001
33022
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
33002
33023
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
33003
33024
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
33025
|
+
if (input.packageHostMacros?.length)
|
|
33026
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
33004
33027
|
if (input.defaultLocalization)
|
|
33005
33028
|
hash.update(`default-localization
|
|
33006
33029
|
${input.defaultLocalization}
|
|
@@ -36633,6 +36656,8 @@ function swiftLinkStamp(args) {
|
|
|
36633
36656
|
hash.update(`swift-link/v1
|
|
36634
36657
|
${args.frameworkKey}
|
|
36635
36658
|
`);
|
|
36659
|
+
if (args.packageHostMacros?.length)
|
|
36660
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
36636
36661
|
if (!args.prebuilt) return hash.digest("hex");
|
|
36637
36662
|
const statOf = (file) => {
|
|
36638
36663
|
const stat = (0, import_node_fs67.statSync)(file, { bigint: true });
|
|
@@ -36857,11 +36882,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
36857
36882
|
});
|
|
36858
36883
|
}
|
|
36859
36884
|
if (options.project) removeProjectLinks(root);
|
|
36885
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
36860
36886
|
if (retireStaleSwiftLink(
|
|
36861
36887
|
root,
|
|
36862
36888
|
swiftLinkStamp({
|
|
36863
36889
|
frameworkKey,
|
|
36864
|
-
prebuilt
|
|
36890
|
+
prebuilt,
|
|
36891
|
+
packageHostMacros
|
|
36865
36892
|
})
|
|
36866
36893
|
))
|
|
36867
36894
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -36884,8 +36911,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
36884
36911
|
).product.name
|
|
36885
36912
|
] : []
|
|
36886
36913
|
);
|
|
36887
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
36888
36914
|
const compiler = preparation.targetToolset ? { CC: import_node_path66.default.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
|
|
36915
|
+
if (packageHostMacros?.length) {
|
|
36916
|
+
const swiftc = import_node_path66.default.join(root, SWIFT_HOST_COMPILER_WRAPPER);
|
|
36917
|
+
writeBuildFile(
|
|
36918
|
+
swiftc,
|
|
36919
|
+
[
|
|
36920
|
+
"#!/bin/sh",
|
|
36921
|
+
"target=",
|
|
36922
|
+
"module=",
|
|
36923
|
+
"compile=",
|
|
36924
|
+
"previous=",
|
|
36925
|
+
"for argument do",
|
|
36926
|
+
' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
|
|
36927
|
+
' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
|
|
36928
|
+
" previous=$argument",
|
|
36929
|
+
"done",
|
|
36930
|
+
'case "$target/$compile" in',
|
|
36931
|
+
" *-*-linux*/1)",
|
|
36932
|
+
' case ",$PEACH_SWIFT_HOST_MACROS," in',
|
|
36933
|
+
' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
|
|
36934
|
+
" esac ;;",
|
|
36935
|
+
"esac",
|
|
36936
|
+
'exec "$PEACH_SWIFTC" "$@"',
|
|
36937
|
+
""
|
|
36938
|
+
].join("\n")
|
|
36939
|
+
);
|
|
36940
|
+
(0, import_node_fs67.chmodSync)(swiftc, 493);
|
|
36941
|
+
compiler.SWIFT_EXEC = swiftc;
|
|
36942
|
+
compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
|
|
36943
|
+
compiler.PEACH_SWIFTC = import_node_path66.default.join(options.toolchainBin, "swiftc");
|
|
36944
|
+
}
|
|
36945
|
+
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
36889
36946
|
const appOptions = projectProcess ? {
|
|
36890
36947
|
...buildOptions,
|
|
36891
36948
|
uid: projectProcess.uid,
|
|
@@ -37240,7 +37297,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
37240
37297
|
releaseDirectory: import_node_path66.default.dirname(linked),
|
|
37241
37298
|
moduleRoot: frameworkRoot,
|
|
37242
37299
|
toolchainBin: options.toolchainBin,
|
|
37243
|
-
swiftCompiler: preparation.headerCompiler ? import_node_path66.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : import_node_path66.default.join(options.toolchainBin, "swiftc"),
|
|
37300
|
+
swiftCompiler: preparation.headerCompiler ? import_node_path66.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path66.default.join(options.toolchainBin, "swiftc"),
|
|
37244
37301
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
37245
37302
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
37246
37303
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
@@ -37278,7 +37335,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
37278
37335
|
options.signal
|
|
37279
37336
|
);
|
|
37280
37337
|
}
|
|
37281
|
-
var import_node_child_process33, import_node_crypto31, import_node_fs67, import_node_os14, import_node_path66, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, REACH_STAGED_FRAMEWORKS, 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, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, 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, cPredefineTable, cPredefineCache, SWIFT_SCAN_KEYWORDS, 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;
|
|
37338
|
+
var import_node_child_process33, import_node_crypto31, import_node_fs67, import_node_os14, import_node_path66, v5, WASM_TRIPLE, SWIFTPM_PROGRESS, SWIFTPM_NOISE, REACH_STAGED_FRAMEWORKS, 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, ARCH_ARM64, NOT_ON_IOS, DELEGATE_CLASS, ARM64_MACRO, WASM_MACRO, ARCH_WASM32, C_WORDS, archEnvironments, 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, cPredefineTable, cPredefineCache, SWIFT_SCAN_KEYWORDS, 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_HOST_COMPILER_WRAPPER, SWIFT_FRAMEWORK_SLOTS, SWIFT_FRAMEWORK_SLOT_KEY, SWIFT_FRAMEWORK_SLOT_ORIGIN;
|
|
37282
37339
|
var init_swift_compile = __esm({
|
|
37283
37340
|
"src/swift-compile.ts"() {
|
|
37284
37341
|
"use strict";
|
|
@@ -37519,7 +37576,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
37519
37576
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
37520
37577
|
MULTI_MANIFEST_VERSION = 72;
|
|
37521
37578
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
37522
|
-
compilerSourceDigest = true ? "
|
|
37579
|
+
compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
37523
37580
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
37524
37581
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
37525
37582
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -38015,6 +38072,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
38015
38072
|
retainedArtifacts = /* @__PURE__ */ new Map();
|
|
38016
38073
|
FRAMEWORK_LINK_TARGET = "PeachFrameworkLink";
|
|
38017
38074
|
SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
38075
|
+
SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
38018
38076
|
SWIFT_FRAMEWORK_SLOTS = 8;
|
|
38019
38077
|
SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
38020
38078
|
SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -41785,7 +41843,7 @@ var init_swift_standin_digest = __esm({
|
|
|
41785
41843
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
41786
41844
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
41787
41845
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
41788
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
41846
|
+
STANDIN_SOURCE_DIGEST = true ? "2517dacc106de8d2cadefded667b8502b029a35f04f5453646eb48792e0fb55c" : standinSourceDigest();
|
|
41789
41847
|
}
|
|
41790
41848
|
});
|
|
41791
41849
|
|
|
@@ -53090,6 +53148,13 @@ function packageSnapshot(project, entry, moduleRoot) {
|
|
|
53090
53148
|
...Object.keys(projectFiles).length > 0 ? { projectFiles } : {},
|
|
53091
53149
|
...Object.keys(packageFiles2).length > 0 ? {
|
|
53092
53150
|
packageFiles: packageFiles2,
|
|
53151
|
+
packageHostMacros: [
|
|
53152
|
+
...new Set(
|
|
53153
|
+
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
53154
|
+
({ manifest }) => [...manifest.targets.values()].filter((target) => target.type === "macro").map((target) => swiftTargetModuleName(target.name))
|
|
53155
|
+
)
|
|
53156
|
+
)
|
|
53157
|
+
].sort(),
|
|
53093
53158
|
packageGuestImports: [
|
|
53094
53159
|
...new Set(
|
|
53095
53160
|
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
@@ -53156,7 +53221,8 @@ function snapshotCompileInput(snapshot) {
|
|
|
53156
53221
|
files: snapshot.files,
|
|
53157
53222
|
...snapshot.packageFiles ? {
|
|
53158
53223
|
packageFiles: snapshot.packageFiles,
|
|
53159
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
53224
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
53225
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
53160
53226
|
} : {},
|
|
53161
53227
|
...snapshot.projectFiles ? { projectFiles: snapshot.projectFiles } : {},
|
|
53162
53228
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
@@ -53415,7 +53481,8 @@ async function compileRemote(packagePath, snapshot, hosted, ownerSignal) {
|
|
|
53415
53481
|
files: snapshot.files,
|
|
53416
53482
|
...snapshot.packageFiles ? {
|
|
53417
53483
|
packageFiles: snapshot.packageFiles,
|
|
53418
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
53484
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
53485
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
53419
53486
|
} : {},
|
|
53420
53487
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
53421
53488
|
...snapshot.sourceLinkGraph ? { sourceLinkGraph: snapshot.sourceLinkGraph } : {},
|
|
@@ -75074,7 +75141,7 @@ init_swift_native_pin();
|
|
|
75074
75141
|
init_xcode_project();
|
|
75075
75142
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
75076
75143
|
function expoNativeCompilerDigestValue() {
|
|
75077
|
-
return true ? "
|
|
75144
|
+
return true ? "5f4ceb325a4bf4e4aa833707da1460384624555bbc7a3bed9d973bd2507d8db6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
75078
75145
|
}
|
|
75079
75146
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
75080
75147
|
function readSources(value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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;
|