peachsim 0.1.2433 → 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/cli/app-project.ts +5 -0
- package/cli/commands/box.ts +3 -0
- package/cli/commands/control.ts +14 -6
- package/cli/commands/platform.ts +3 -3
- package/cli/commands/stream.ts +8 -1
- 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 +109 -38
- 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 +99 -28
- 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 +100 -29
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -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 +15 -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 +15 -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 +25 -25
- package/dist-lib/public-origins-lib.json +56 -56
- 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 +122 -39
- package/dist-lib/swift-compile.cjs +78 -25
- package/dist-lib/swift-compile.mjs +78 -25
- 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 +101 -31
- package/dist-lib/vite.cjs +4 -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/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +2 -2
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/src/bazel-project.ts +11 -3
- package/src/react-native-coverage/native-typescript-parser.ts +29 -1
- 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-guest-source-inputs.ts +5 -1
- 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;
|
|
@@ -33322,8 +33322,10 @@ function bazelGraph(root, label, configuration) {
|
|
|
33322
33322
|
);
|
|
33323
33323
|
const deps = app2.attrs.get("deps")?.list ?? [];
|
|
33324
33324
|
if (deps.length === 0) throw new Error(`${label} links no libraries`);
|
|
33325
|
+
const strings7 = app2.attrs.get("strings")?.list ?? [];
|
|
33325
33326
|
const infoplists = app2.attrs.get("infoplists")?.list ?? [];
|
|
33326
|
-
const
|
|
33327
|
+
const roots = [...deps, ...strings7];
|
|
33328
|
+
const query = `kind("${QUERIED_RULES.join("|")}", deps(set(${roots.join(" ")})))${infoplists.length > 0 ? ` + set(${infoplists.join(" ")})` : ""}`;
|
|
33327
33329
|
const output2 = run11(["cquery", query, ...flags, "--output=jsonproto"]);
|
|
33328
33330
|
const defaults = run11([
|
|
33329
33331
|
"cquery",
|
|
@@ -33700,8 +33702,14 @@ ${published3.map(
|
|
|
33700
33702
|
graph.app.attrs.get("infoplists")?.list ?? [],
|
|
33701
33703
|
graph.app.label
|
|
33702
33704
|
);
|
|
33705
|
+
const strings7 = files2.expand(
|
|
33706
|
+
graph.app.attrs.get("strings")?.list ?? [],
|
|
33707
|
+
graph.app.label
|
|
33708
|
+
);
|
|
33709
|
+
resources.push(...strings7);
|
|
33703
33710
|
const absent = () => [
|
|
33704
33711
|
...infoPlistFiles,
|
|
33712
|
+
...strings7,
|
|
33705
33713
|
...[...frameworks, appModule].flatMap((module2) => [
|
|
33706
33714
|
...module2.allSources,
|
|
33707
33715
|
...module2.objc?.headers ?? []
|
|
@@ -33745,7 +33753,7 @@ ${published3.map(
|
|
|
33745
33753
|
const missing2 = options.requireSources === false ? [] : absent();
|
|
33746
33754
|
if (missing2.length > 0)
|
|
33747
33755
|
throw new Error(
|
|
33748
|
-
`bazel
|
|
33756
|
+
`bazel application has ${missing2.length} unbuilt inputs: ${missing2.slice(0, 5).map((file) => import_node_path34.default.relative(root, file)).join(", ")}`
|
|
33749
33757
|
);
|
|
33750
33758
|
const archives = /* @__PURE__ */ new Map();
|
|
33751
33759
|
for (const rule of order) {
|
|
@@ -34053,7 +34061,7 @@ var init_bazel_project = __esm({
|
|
|
34053
34061
|
HEADER2 = /\.(?:h|hh|hpp|hxx|inc|inl|ipp)$/;
|
|
34054
34062
|
PRODUCTS = import_node_path34.default.join(".build", "peach-bazel", "Products");
|
|
34055
34063
|
graphs = /* @__PURE__ */ new Map();
|
|
34056
|
-
GRAPH_FORMAT =
|
|
34064
|
+
GRAPH_FORMAT = 6;
|
|
34057
34065
|
BazelFiles = class {
|
|
34058
34066
|
constructor(graph, root) {
|
|
34059
34067
|
this.graph = graph;
|
|
@@ -42114,7 +42122,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
42114
42122
|
const def = definedGlobalSyms.get(symName);
|
|
42115
42123
|
if (def) activateSymbolInObj(def.obj, def.symIdx);
|
|
42116
42124
|
}
|
|
42117
|
-
for (const symName of [
|
|
42125
|
+
for (const symName of [
|
|
42126
|
+
"__peach_dlsym_from_image",
|
|
42127
|
+
"__peach_dlerror",
|
|
42128
|
+
...link ? ["_dyld_register_func_for_add_image"] : []
|
|
42129
|
+
]) {
|
|
42118
42130
|
const provider = lazyProviders.get(symName)?.[0];
|
|
42119
42131
|
if (provider) extractObject(provider);
|
|
42120
42132
|
const def = definedGlobalSyms.get(symName);
|
|
@@ -42764,7 +42776,7 @@ function readString(bytes, position) {
|
|
|
42764
42776
|
const [length, start] = readNumber(bytes, position);
|
|
42765
42777
|
if (start + length > bytes.length) throw new Error("invalid wasm string");
|
|
42766
42778
|
return [
|
|
42767
|
-
Buffer.from(bytes.
|
|
42779
|
+
Buffer.from(bytes.buffer, bytes.byteOffset + start, length).toString("utf8"),
|
|
42768
42780
|
start + length
|
|
42769
42781
|
];
|
|
42770
42782
|
}
|
|
@@ -42789,7 +42801,7 @@ function llvmType(value) {
|
|
|
42789
42801
|
function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLookups, preserveCanonical) {
|
|
42790
42802
|
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
42791
42803
|
throw new Error("expected wasm object");
|
|
42792
|
-
const sections2 = [Buffer.from(bytes.subarray(0, 8))];
|
|
42804
|
+
const sections2 = binding ? [Buffer.from(bytes.subarray(0, 8))] : void 0;
|
|
42793
42805
|
const types = [];
|
|
42794
42806
|
const functionTypes = [];
|
|
42795
42807
|
const definitions = [];
|
|
@@ -42803,8 +42815,9 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
42803
42815
|
const [size2, start] = readNumber(bytes, position);
|
|
42804
42816
|
const end = start + size2;
|
|
42805
42817
|
if (end > bytes.length) throw new Error("invalid wasm section");
|
|
42806
|
-
let section = Buffer.from(bytes.subarray(start, end));
|
|
42807
42818
|
position = end;
|
|
42819
|
+
if (!sections2 && id > 3) continue;
|
|
42820
|
+
let section = Buffer.from(bytes.buffer, bytes.byteOffset + start, size2);
|
|
42808
42821
|
let offset = 0;
|
|
42809
42822
|
const number3 = () => {
|
|
42810
42823
|
const [value, next] = readNumber(section, offset);
|
|
@@ -42832,7 +42845,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
42832
42845
|
}
|
|
42833
42846
|
} else if (id === 2) {
|
|
42834
42847
|
const count = number3();
|
|
42835
|
-
const imports2 = [encodeNumber(count)];
|
|
42848
|
+
const imports2 = sections2 ? [encodeNumber(count)] : void 0;
|
|
42836
42849
|
for (let i = 0; i < count; i++) {
|
|
42837
42850
|
const module2 = string6();
|
|
42838
42851
|
const name3 = string6();
|
|
@@ -42876,17 +42889,17 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
42876
42889
|
}
|
|
42877
42890
|
if (isDlsym) usesDlsym = true;
|
|
42878
42891
|
if (isDlerror) usesDlerror = true;
|
|
42879
|
-
imports2
|
|
42892
|
+
imports2?.push(
|
|
42880
42893
|
encodedString(module2),
|
|
42881
42894
|
encodedString(
|
|
42882
|
-
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding(name3) ?? name3 : name3
|
|
42895
|
+
isDlsym ? callerAlias : isDlerror ? "__peach_dlerror" : module2 === "env" && name3 !== "dlsym" && name3 !== "dlerror" ? binding?.(name3) ?? name3 : name3
|
|
42883
42896
|
),
|
|
42884
42897
|
Buffer.from([kind]),
|
|
42885
42898
|
section.subarray(typeStart, offset)
|
|
42886
42899
|
);
|
|
42887
42900
|
}
|
|
42888
42901
|
if (offset !== section.length) throw new Error("invalid wasm import section");
|
|
42889
|
-
section = Buffer.concat(imports2);
|
|
42902
|
+
if (imports2) section = Buffer.concat(imports2);
|
|
42890
42903
|
} else if (id === 3) {
|
|
42891
42904
|
const count = number3();
|
|
42892
42905
|
for (let i = 0; i < count; i++) functionTypes.push(number3());
|
|
@@ -42970,7 +42983,7 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
42970
42983
|
encodedString(name3 === "dlsym" ? callerAlias : "__peach_dlerror"),
|
|
42971
42984
|
section.subarray(nameEnd, offset)
|
|
42972
42985
|
);
|
|
42973
|
-
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding(name3) !== void 0) {
|
|
42986
|
+
} else if (flags & 16 && name3 !== "dlsym" && name3 !== "dlerror" && binding?.(name3) !== void 0) {
|
|
42974
42987
|
entries.push(
|
|
42975
42988
|
section.subarray(begin, nameStart),
|
|
42976
42989
|
encodedString(binding(name3)),
|
|
@@ -43045,10 +43058,10 @@ function rewriteObject(bytes, names, callerAlias, binding, instrumentDynamicLook
|
|
|
43045
43058
|
section = Buffer.concat(parts);
|
|
43046
43059
|
}
|
|
43047
43060
|
}
|
|
43048
|
-
sections2
|
|
43061
|
+
sections2?.push(Buffer.from([id]), encodeNumber(section.length), section);
|
|
43049
43062
|
}
|
|
43050
43063
|
return {
|
|
43051
|
-
bytes: Buffer.concat(sections2),
|
|
43064
|
+
bytes: sections2 ? Buffer.concat(sections2) : bytes,
|
|
43052
43065
|
definitions,
|
|
43053
43066
|
functionImports,
|
|
43054
43067
|
usesDlsym,
|
|
@@ -43104,7 +43117,7 @@ function createGuestImageLedger(input) {
|
|
|
43104
43117
|
object7.bytes,
|
|
43105
43118
|
aliases,
|
|
43106
43119
|
`__peach_dlsym_caller_${image.id}`,
|
|
43107
|
-
|
|
43120
|
+
void 0,
|
|
43108
43121
|
object7.instrumentDynamicLookups,
|
|
43109
43122
|
/* @__PURE__ */ new Set()
|
|
43110
43123
|
);
|
|
@@ -45772,13 +45785,21 @@ function verifyGuestSymbolScopes(options) {
|
|
|
45772
45785
|
continue;
|
|
45773
45786
|
if (!scope2.includes(provider)) {
|
|
45774
45787
|
const candidates = options.definitionObjects.get(symbol2) ?? /* @__PURE__ */ new Set();
|
|
45775
|
-
const
|
|
45788
|
+
const traced = [...record4.providers.keys()];
|
|
45789
|
+
const strongTraced = traced.filter(
|
|
45790
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
45791
|
+
);
|
|
45792
|
+
const providers = strongTraced.length === 1 ? strongTraced : traced;
|
|
45776
45793
|
if (options.weakReferences.get(object7)?.has(symbol2) && !providers.some((provider2) => options.systemProviders.has(provider2)))
|
|
45777
45794
|
continue;
|
|
45778
45795
|
const equivalentCopies = providers.length === 1 && candidates.has(providers[0]) && [...candidates].every(
|
|
45779
45796
|
(definer) => options.weakDefinitions.get(definer)?.has(symbol2)
|
|
45780
45797
|
);
|
|
45781
|
-
|
|
45798
|
+
const strongCandidates = [...candidates].filter(
|
|
45799
|
+
(definer) => !options.weakDefinitions.get(definer)?.has(symbol2)
|
|
45800
|
+
);
|
|
45801
|
+
const soleCandidate = candidates.size === 1 || strongCandidates.length === 1 && strongCandidates[0] === providers[0];
|
|
45802
|
+
if (!equivalentCopies && (!soleCandidate || providers.length !== 1 || !candidates.has(providers[0]) || !(options.systemProviders.has(providers[0]) || // a strong undefined reference binds through the process global
|
|
45782
45803
|
// scope, the root image and its dependency closure, as in elf.
|
|
45783
45804
|
provider === 0 || callers.get(0)?.includes(provider) || !options.weakReferences.get(object7)?.has(symbol2) && options.frameworkProviders.get(object7)?.has(providers[0]))))
|
|
45784
45805
|
throw new Error(
|
|
@@ -45939,6 +45960,15 @@ var init_swift_guest_link = __esm({
|
|
|
45939
45960
|
}
|
|
45940
45961
|
});
|
|
45941
45962
|
|
|
45963
|
+
// src/forked-script-contract.ts
|
|
45964
|
+
var PEACH_FORKED_SCRIPT_ENV;
|
|
45965
|
+
var init_forked_script_contract = __esm({
|
|
45966
|
+
"src/forked-script-contract.ts"() {
|
|
45967
|
+
"use strict";
|
|
45968
|
+
PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
45969
|
+
}
|
|
45970
|
+
});
|
|
45971
|
+
|
|
45942
45972
|
// src/swift-guest-source-inputs.ts
|
|
45943
45973
|
function clangIrLinkOptions(ir) {
|
|
45944
45974
|
const list2 = /^!llvm\.linker\.options = !\{([^\n]*)\}$/m.exec(ir);
|
|
@@ -46040,10 +46070,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
46040
46070
|
plan,
|
|
46041
46071
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
46042
46072
|
);
|
|
46043
|
-
|
|
46073
|
+
const script = import_node_path48.default.join(options.directory, "clang-link-replay.cjs");
|
|
46074
|
+
(0, import_node_fs49.writeFileSync)(script, PARALLEL_REPLAY);
|
|
46075
|
+
(0, import_node_child_process23.execFileSync)(process.execPath, [script], {
|
|
46044
46076
|
stdio: "inherit",
|
|
46045
46077
|
env: {
|
|
46046
46078
|
...process.env,
|
|
46079
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
46047
46080
|
PEACH_CLANG_REPLAYS: plan,
|
|
46048
46081
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
46049
46082
|
}
|
|
@@ -46288,6 +46321,7 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
46288
46321
|
import_node_crypto25 = require("node:crypto");
|
|
46289
46322
|
import_node_fs49 = require("node:fs");
|
|
46290
46323
|
import_node_path48 = __toESM(require("node:path"), 1);
|
|
46324
|
+
init_forked_script_contract();
|
|
46291
46325
|
init_swift_guest_source_plan();
|
|
46292
46326
|
init_swift_runtime_products();
|
|
46293
46327
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
@@ -47094,15 +47128,6 @@ var init_swift_guest_compile = __esm({
|
|
|
47094
47128
|
}
|
|
47095
47129
|
});
|
|
47096
47130
|
|
|
47097
|
-
// src/forked-script-contract.ts
|
|
47098
|
-
var PEACH_FORKED_SCRIPT_ENV;
|
|
47099
|
-
var init_forked_script_contract = __esm({
|
|
47100
|
-
"src/forked-script-contract.ts"() {
|
|
47101
|
-
"use strict";
|
|
47102
|
-
PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
47103
|
-
}
|
|
47104
|
-
});
|
|
47105
|
-
|
|
47106
47131
|
// src/swift-header-compiler.ts
|
|
47107
47132
|
function compilerCheckpoint(root, recipe2, args, header) {
|
|
47108
47133
|
const value = (flag) => {
|
|
@@ -49290,6 +49315,8 @@ ${WASM_LOWER_IDENTITY}
|
|
|
49290
49315
|
hash.update(JSON.stringify(input.staticClangTargets ?? []));
|
|
49291
49316
|
hash.update(JSON.stringify(input.headerAliases ?? {}));
|
|
49292
49317
|
hash.update(JSON.stringify(input.packageGuestImports ?? []));
|
|
49318
|
+
if (input.packageHostMacros?.length)
|
|
49319
|
+
hash.update("package-host-macros\n" + JSON.stringify(input.packageHostMacros));
|
|
49293
49320
|
if (input.defaultLocalization)
|
|
49294
49321
|
hash.update(`default-localization
|
|
49295
49322
|
${input.defaultLocalization}
|
|
@@ -52922,6 +52949,8 @@ function swiftLinkStamp(args) {
|
|
|
52922
52949
|
hash.update(`swift-link/v1
|
|
52923
52950
|
${args.frameworkKey}
|
|
52924
52951
|
`);
|
|
52952
|
+
if (args.packageHostMacros?.length)
|
|
52953
|
+
hash.update("package-host-macros\n" + JSON.stringify(args.packageHostMacros));
|
|
52925
52954
|
if (!args.prebuilt) return hash.digest("hex");
|
|
52926
52955
|
const statOf = (file) => {
|
|
52927
52956
|
const stat = (0, import_node_fs59.statSync)(file, { bigint: true });
|
|
@@ -53146,11 +53175,13 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
53146
53175
|
});
|
|
53147
53176
|
}
|
|
53148
53177
|
if (options.project) removeProjectLinks(root);
|
|
53178
|
+
const packageHostMacros = process.platform === "linux" ? input.packageHostMacros : void 0;
|
|
53149
53179
|
if (retireStaleSwiftLink(
|
|
53150
53180
|
root,
|
|
53151
53181
|
swiftLinkStamp({
|
|
53152
53182
|
frameworkKey,
|
|
53153
|
-
prebuilt
|
|
53183
|
+
prebuilt,
|
|
53184
|
+
packageHostMacros
|
|
53154
53185
|
})
|
|
53155
53186
|
))
|
|
53156
53187
|
report("framework revision changed; rebuilding the app link");
|
|
@@ -53173,8 +53204,38 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
53173
53204
|
).product.name
|
|
53174
53205
|
] : []
|
|
53175
53206
|
);
|
|
53176
|
-
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
53177
53207
|
const compiler = preparation.targetToolset ? { CC: import_node_path59.default.join(root, CLANG_TARGET_MODULE_WRAPPER) } : {};
|
|
53208
|
+
if (packageHostMacros?.length) {
|
|
53209
|
+
const swiftc = import_node_path59.default.join(root, SWIFT_HOST_COMPILER_WRAPPER);
|
|
53210
|
+
writeBuildFile(
|
|
53211
|
+
swiftc,
|
|
53212
|
+
[
|
|
53213
|
+
"#!/bin/sh",
|
|
53214
|
+
"target=",
|
|
53215
|
+
"module=",
|
|
53216
|
+
"compile=",
|
|
53217
|
+
"previous=",
|
|
53218
|
+
"for argument do",
|
|
53219
|
+
' case "$previous" in -target) target=$argument ;; -module-name) module=$argument ;; esac',
|
|
53220
|
+
' case "$argument" in -c|-emit-module|-scan-dependencies|-typecheck) compile=1 ;; esac',
|
|
53221
|
+
" previous=$argument",
|
|
53222
|
+
"done",
|
|
53223
|
+
'case "$target/$compile" in',
|
|
53224
|
+
" *-*-linux*/1)",
|
|
53225
|
+
' case ",$PEACH_SWIFT_HOST_MACROS," in',
|
|
53226
|
+
' *",$module,"*) set -- "$@" -Xfrontend -import-module -Xfrontend Foundation ;;',
|
|
53227
|
+
" esac ;;",
|
|
53228
|
+
"esac",
|
|
53229
|
+
'exec "$PEACH_SWIFTC" "$@"',
|
|
53230
|
+
""
|
|
53231
|
+
].join("\n")
|
|
53232
|
+
);
|
|
53233
|
+
(0, import_node_fs59.chmodSync)(swiftc, 493);
|
|
53234
|
+
compiler.SWIFT_EXEC = swiftc;
|
|
53235
|
+
compiler.PEACH_SWIFT_HOST_MACROS = packageHostMacros.join(",");
|
|
53236
|
+
compiler.PEACH_SWIFTC = import_node_path59.default.join(options.toolchainBin, "swiftc");
|
|
53237
|
+
}
|
|
53238
|
+
const projectProcess = options.project ? prepareSwiftProjectProcess(root, options.project) : void 0;
|
|
53178
53239
|
const appOptions = projectProcess ? {
|
|
53179
53240
|
...buildOptions,
|
|
53180
53241
|
uid: projectProcess.uid,
|
|
@@ -53529,7 +53590,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
53529
53590
|
releaseDirectory: import_node_path59.default.dirname(linked),
|
|
53530
53591
|
moduleRoot: frameworkRoot,
|
|
53531
53592
|
toolchainBin: options.toolchainBin,
|
|
53532
|
-
swiftCompiler: preparation.headerCompiler ? import_node_path59.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : import_node_path59.default.join(options.toolchainBin, "swiftc"),
|
|
53593
|
+
swiftCompiler: preparation.headerCompiler ? import_node_path59.default.join(root, SWIFT_HEADER_COMPILER_WRAPPER) : compiler.SWIFT_EXEC ?? import_node_path59.default.join(options.toolchainBin, "swiftc"),
|
|
53533
53594
|
sysroot: swiftSdkPaths(frameworkRoot, options.toolchainBin).sysroot,
|
|
53534
53595
|
sdk: swiftModuleSdk(frameworkRoot),
|
|
53535
53596
|
staticClangTargets: input.staticClangTargets ?? [],
|
|
@@ -53567,7 +53628,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
53567
53628
|
options.signal
|
|
53568
53629
|
);
|
|
53569
53630
|
}
|
|
53570
|
-
var import_node_child_process30, import_node_crypto29, import_node_fs59, import_node_os14, import_node_path59, 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;
|
|
53631
|
+
var import_node_child_process30, import_node_crypto29, import_node_fs59, import_node_os14, import_node_path59, 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;
|
|
53571
53632
|
var init_swift_compile = __esm({
|
|
53572
53633
|
"src/swift-compile.ts"() {
|
|
53573
53634
|
"use strict";
|
|
@@ -53808,7 +53869,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
53808
53869
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
53809
53870
|
MULTI_MANIFEST_VERSION = 72;
|
|
53810
53871
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
53811
|
-
compilerSourceDigest = true ? "
|
|
53872
|
+
compilerSourceDigest = true ? "4a6e02699924195639b15c5cdfd8852b5f17fb2ffacb8f9f964ef3daeee8b9dc" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
53812
53873
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
53813
53874
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
53814
53875
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -54304,6 +54365,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
54304
54365
|
retainedArtifacts = /* @__PURE__ */ new Map();
|
|
54305
54366
|
FRAMEWORK_LINK_TARGET = "PeachFrameworkLink";
|
|
54306
54367
|
SWIFT_LINK_STAMP = ".peach-link-stamp";
|
|
54368
|
+
SWIFT_HOST_COMPILER_WRAPPER = ".peach-swiftc";
|
|
54307
54369
|
SWIFT_FRAMEWORK_SLOTS = 8;
|
|
54308
54370
|
SWIFT_FRAMEWORK_SLOT_KEY = ".peach-framework-key";
|
|
54309
54371
|
SWIFT_FRAMEWORK_SLOT_ORIGIN = ".peach-framework-origin";
|
|
@@ -69097,7 +69159,7 @@ var init_swift_standin_digest = __esm({
|
|
|
69097
69159
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
69098
69160
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
69099
69161
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
69100
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
69162
|
+
STANDIN_SOURCE_DIGEST = true ? "2517dacc106de8d2cadefded667b8502b029a35f04f5453646eb48792e0fb55c" : standinSourceDigest();
|
|
69101
69163
|
}
|
|
69102
69164
|
});
|
|
69103
69165
|
|
|
@@ -76180,6 +76242,13 @@ function packageSnapshot(project2, entry, moduleRoot) {
|
|
|
76180
76242
|
...Object.keys(projectFiles).length > 0 ? { projectFiles } : {},
|
|
76181
76243
|
...Object.keys(packageFiles2).length > 0 ? {
|
|
76182
76244
|
packageFiles: packageFiles2,
|
|
76245
|
+
packageHostMacros: [
|
|
76246
|
+
...new Set(
|
|
76247
|
+
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
76248
|
+
({ manifest }) => [...manifest.targets.values()].filter((target) => target.type === "macro").map((target) => swiftTargetModuleName(target.name))
|
|
76249
|
+
)
|
|
76250
|
+
)
|
|
76251
|
+
].sort(),
|
|
76183
76252
|
packageGuestImports: [
|
|
76184
76253
|
...new Set(
|
|
76185
76254
|
(layout2?.packages.nativePackages ?? []).flatMap(
|
|
@@ -76246,7 +76315,8 @@ function snapshotCompileInput(snapshot) {
|
|
|
76246
76315
|
files: snapshot.files,
|
|
76247
76316
|
...snapshot.packageFiles ? {
|
|
76248
76317
|
packageFiles: snapshot.packageFiles,
|
|
76249
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
76318
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
76319
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
76250
76320
|
} : {},
|
|
76251
76321
|
...snapshot.projectFiles ? { projectFiles: snapshot.projectFiles } : {},
|
|
76252
76322
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
@@ -76512,7 +76582,8 @@ async function compileRemote(packagePath, snapshot, hosted, ownerSignal) {
|
|
|
76512
76582
|
files: snapshot.files,
|
|
76513
76583
|
...snapshot.packageFiles ? {
|
|
76514
76584
|
packageFiles: snapshot.packageFiles,
|
|
76515
|
-
packageGuestImports: snapshot.packageGuestImports
|
|
76585
|
+
packageGuestImports: snapshot.packageGuestImports,
|
|
76586
|
+
packageHostMacros: snapshot.packageHostMacros
|
|
76516
76587
|
} : {},
|
|
76517
76588
|
...snapshot.nativeTargets ? { nativeTargets: snapshot.nativeTargets } : {},
|
|
76518
76589
|
...snapshot.sourceLinkGraph ? { sourceLinkGraph: snapshot.sourceLinkGraph } : {},
|
|
@@ -83662,7 +83733,7 @@ var init_nitro_superset = __esm({
|
|
|
83662
83733
|
init_nitroContract();
|
|
83663
83734
|
init_swift_standin_digest();
|
|
83664
83735
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
83665
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
83736
|
+
NITRO_COMPILER_DIGEST = true ? "3856ca8527b7219f2b4be3736283df1fec84313b7dc56326d4d30f5e0e9b382a" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
83666
83737
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
83667
83738
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
83668
83739
|
published = /* @__PURE__ */ new Map();
|
|
@@ -84901,7 +84972,7 @@ var init_expo_native_compiler_digest = __esm({
|
|
|
84901
84972
|
|
|
84902
84973
|
// src/expo-native-prebuilt.ts
|
|
84903
84974
|
function expoNativeCompilerDigestValue() {
|
|
84904
|
-
return true ? "
|
|
84975
|
+
return true ? "5f4ceb325a4bf4e4aa833707da1460384624555bbc7a3bed9d973bd2507d8db6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
84905
84976
|
}
|
|
84906
84977
|
function readSources(value) {
|
|
84907
84978
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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/cloud.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 __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2435 | (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.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/config.mjs
CHANGED
package/dist-lib/detox/index.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;
|
|
@@ -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;
|