peachsim 0.1.2432 → 0.1.2434
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 +105 -85
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +59 -18
- 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 +96 -76
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -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 +6 -4
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +36 -57
- 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 +6 -4
- 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 +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 +112 -79
- package/dist-lib/swift-compile.cjs +25 -16
- package/dist-lib/swift-compile.mjs +25 -16
- 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 +61 -22
- package/dist-lib/vite.cjs +6 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/image-loader-canvaskit.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/ios/apps/canvas-map-data.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +3 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -1
- package/dist-types/packages/peach-globals/src/cameraInputBridgeContract.d.ts +26 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
- package/kotlin/README.md +3 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/java-module-abi.ts +11 -28
- package/src/kotlin-host.ts +13 -32
- package/src/kotlin-toolchain.ts +25 -0
- package/src/react-native-coverage/native-typescript-parser.ts +29 -1
- package/src/swift-guest-source-inputs.ts +5 -1
- package/src/swift-guest-source-plan.ts +25 -9
- package/src/swift-host.ts +28 -5
- package/src/swift-xcframework.ts +24 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2434 | (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;
|
|
@@ -30251,6 +30251,10 @@ var init_expo_eager_seam_contract = __esm({
|
|
|
30251
30251
|
});
|
|
30252
30252
|
|
|
30253
30253
|
// cli/app-project.ts
|
|
30254
|
+
function appNameFromPath(pathOrUrl) {
|
|
30255
|
+
const segment2 = pathOrUrl.split(/[?#]/)[0]?.split(/[/\\]/).filter(Boolean).at(-1) ?? "";
|
|
30256
|
+
return segment2.replace(/\.[^.]+$/, "");
|
|
30257
|
+
}
|
|
30254
30258
|
function firstNamedFile(dir, names) {
|
|
30255
30259
|
for (const name3 of names) {
|
|
30256
30260
|
const candidate = import_node_path7.default.join(dir, name3);
|
|
@@ -30811,6 +30815,24 @@ var init_config = __esm({
|
|
|
30811
30815
|
});
|
|
30812
30816
|
|
|
30813
30817
|
// src/kotlin-toolchain.ts
|
|
30818
|
+
async function runKotlinTool(toolchain, sdkRoot, tool, args, maxBuffer = 16 * 1024 * 1024) {
|
|
30819
|
+
const lib = import_node_path9.default.resolve(import_node_path9.default.dirname(toolchain.kotlinc), "../lib");
|
|
30820
|
+
const { stdout } = await run2(
|
|
30821
|
+
import_node_path9.default.join(toolchain.javaHome, "bin", "java"),
|
|
30822
|
+
[
|
|
30823
|
+
"-cp",
|
|
30824
|
+
[
|
|
30825
|
+
import_node_path9.default.join(sdkRoot, "tools.jar"),
|
|
30826
|
+
import_node_path9.default.join(lib, "kotlin-compiler.jar"),
|
|
30827
|
+
import_node_path9.default.join(lib, "kotlin-stdlib.jar")
|
|
30828
|
+
].join(import_node_path9.default.delimiter),
|
|
30829
|
+
tool,
|
|
30830
|
+
...args
|
|
30831
|
+
],
|
|
30832
|
+
{ maxBuffer }
|
|
30833
|
+
);
|
|
30834
|
+
return stdout;
|
|
30835
|
+
}
|
|
30814
30836
|
function readToolchain(moduleRoot) {
|
|
30815
30837
|
const parsed2 = JSON.parse(
|
|
30816
30838
|
import_node_fs13.default.readFileSync(import_node_path9.default.join(moduleRoot, "toolchain.json"), "utf8")
|
|
@@ -71955,6 +71977,17 @@ function swiftPackageLinkage(target) {
|
|
|
71955
71977
|
throw new Error(`conflicting SwiftPM library linkage for ${target.id}`);
|
|
71956
71978
|
return linkage;
|
|
71957
71979
|
}
|
|
71980
|
+
function linkEdges(targets, id) {
|
|
71981
|
+
const target = targets.get(id);
|
|
71982
|
+
if (!target) throw new Error(`unknown source target ${id}`);
|
|
71983
|
+
return target.dependencies.flatMap((edge) => {
|
|
71984
|
+
if (edge.attributes.length)
|
|
71985
|
+
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
71986
|
+
const dependency = targets.get(edge.target);
|
|
71987
|
+
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
71988
|
+
return dependency.productType.startsWith("swiftpm.library.") && swiftPackageLinkage(dependency) === "static" ? linkEdges(targets, edge.target) : [edge];
|
|
71989
|
+
});
|
|
71990
|
+
}
|
|
71958
71991
|
function guestSourceImages(graph) {
|
|
71959
71992
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
71960
71993
|
const entry = targets.get(graph.entry);
|
|
@@ -71978,17 +72011,14 @@ function guestSourceImages(graph) {
|
|
|
71978
72011
|
ownership.set(id, image.id);
|
|
71979
72012
|
image.members.push(id);
|
|
71980
72013
|
active.add(id);
|
|
71981
|
-
for (const edge of
|
|
71982
|
-
if (edge.attributes.length)
|
|
71983
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
72014
|
+
for (const edge of linkEdges(targets, id)) {
|
|
71984
72015
|
const dependency = targets.get(edge.target);
|
|
71985
|
-
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
71986
72016
|
const type = dependency.productType;
|
|
71987
72017
|
let dynamic;
|
|
71988
72018
|
if (type.startsWith("swiftpm.target.")) {
|
|
71989
72019
|
if (type !== "swiftpm.target.regular" && type !== "swiftpm.target.binary" && type !== "swiftpm.target.system")
|
|
71990
72020
|
throw new Error(`unsupported SwiftPM target ${edge.target}`);
|
|
71991
|
-
dynamic =
|
|
72021
|
+
dynamic = type === "swiftpm.target.binary" && dependency.machOType === "mh_dylib";
|
|
71992
72022
|
} else if (type.startsWith("swiftpm.library.")) {
|
|
71993
72023
|
dynamic = swiftPackageLinkage(dependency) === "dynamic";
|
|
71994
72024
|
} else if (type === "com.apple.product-type.library.static") {
|
|
@@ -72123,9 +72153,7 @@ function planGuestSourceLink(graph, images, callers, artifacts, symbols) {
|
|
|
72123
72153
|
(flag) => /(?:^|,)-(?:weak|reexport|upward|lazy)(?:[_-]|$)/.test(flag)
|
|
72124
72154
|
))
|
|
72125
72155
|
throw new Error(`unsupported special link flag for ${id}`);
|
|
72126
|
-
for (const edge of
|
|
72127
|
-
if (edge.attributes.length)
|
|
72128
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
72156
|
+
for (const edge of linkEdges(targets, id)) {
|
|
72129
72157
|
const dependencyImage = ownerByTarget.get(edge.target);
|
|
72130
72158
|
if (dependencyImage === void 0)
|
|
72131
72159
|
throw new Error(`linked target ${edge.target} has no guest image`);
|
|
@@ -73843,10 +73871,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
73843
73871
|
plan,
|
|
73844
73872
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
73845
73873
|
);
|
|
73846
|
-
|
|
73874
|
+
const script = import_node_path59.default.join(options.directory, "clang-link-replay.cjs");
|
|
73875
|
+
(0, import_node_fs62.writeFileSync)(script, PARALLEL_REPLAY);
|
|
73876
|
+
(0, import_node_child_process30.execFileSync)(process.execPath, [script], {
|
|
73847
73877
|
stdio: "inherit",
|
|
73848
73878
|
env: {
|
|
73849
73879
|
...process.env,
|
|
73880
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
73850
73881
|
PEACH_CLANG_REPLAYS: plan,
|
|
73851
73882
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
73852
73883
|
}
|
|
@@ -74091,6 +74122,7 @@ var init_swift_guest_source_inputs = __esm({
|
|
|
74091
74122
|
import_node_crypto31 = require("node:crypto");
|
|
74092
74123
|
import_node_fs62 = require("node:fs");
|
|
74093
74124
|
import_node_path59 = __toESM(require("node:path"), 1);
|
|
74125
|
+
init_forked_script_contract();
|
|
74094
74126
|
init_swift_guest_source_plan();
|
|
74095
74127
|
init_swift_runtime_products();
|
|
74096
74128
|
CLANG_TARGET_MODULE_WRAPPER = ".peach-clang";
|
|
@@ -81643,7 +81675,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
81643
81675
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
81644
81676
|
MULTI_MANIFEST_VERSION = 72;
|
|
81645
81677
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
81646
|
-
compilerSourceDigest = true ? "
|
|
81678
|
+
compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
81647
81679
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
81648
81680
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
81649
81681
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -88385,7 +88417,7 @@ var init_swift_standin_digest = __esm({
|
|
|
88385
88417
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
88386
88418
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
88387
88419
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
88388
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
88420
|
+
STANDIN_SOURCE_DIGEST = true ? "1f6eece6339ce20859e9666fa0ad8e9076485c71ec1cd098fe6a45fd6e28a28f" : standinSourceDigest();
|
|
88389
88421
|
}
|
|
88390
88422
|
});
|
|
88391
88423
|
|
|
@@ -88880,7 +88912,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
88880
88912
|
servedExpoSwift: () => servedExpoSwift
|
|
88881
88913
|
});
|
|
88882
88914
|
function expoNativeCompilerDigestValue() {
|
|
88883
|
-
return true ? "
|
|
88915
|
+
return true ? "412a013232d2ba79e33dcada2fa52a4b06e11bdaa1404a1d5ad312b7fe1522b5" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
88884
88916
|
}
|
|
88885
88917
|
function readSources(value) {
|
|
88886
88918
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -89191,6 +89223,28 @@ function simulatorNativeLibrary(dir) {
|
|
|
89191
89223
|
if (matches.length !== 1) throw new Error(`${dir}: ambiguous simulator library`);
|
|
89192
89224
|
return matches[0];
|
|
89193
89225
|
}
|
|
89226
|
+
function isDynamicLibrary2(file) {
|
|
89227
|
+
const fd = import_node_fs88.default.openSync(file, "r");
|
|
89228
|
+
try {
|
|
89229
|
+
const read = (offset) => {
|
|
89230
|
+
const bytes = Buffer.alloc(16);
|
|
89231
|
+
import_node_fs88.default.readSync(fd, bytes, 0, 16, offset);
|
|
89232
|
+
return bytes;
|
|
89233
|
+
};
|
|
89234
|
+
let header = read(0);
|
|
89235
|
+
const universal = header.readUInt32BE(0);
|
|
89236
|
+
if (universal === 3405691582 || universal === 3405691583) {
|
|
89237
|
+
const arch = read(8);
|
|
89238
|
+
header = read(
|
|
89239
|
+
universal === 3405691582 ? arch.readUInt32BE(8) : Number(arch.readBigUInt64BE(8))
|
|
89240
|
+
);
|
|
89241
|
+
}
|
|
89242
|
+
const magic = header.readUInt32LE(0);
|
|
89243
|
+
return (magic === 4277009103 || magic === 4277009102) && header.readUInt32LE(12) === 6;
|
|
89244
|
+
} finally {
|
|
89245
|
+
import_node_fs88.default.closeSync(fd);
|
|
89246
|
+
}
|
|
89247
|
+
}
|
|
89194
89248
|
var import_node_fs88, import_node_path87;
|
|
89195
89249
|
var init_swift_xcframework = __esm({
|
|
89196
89250
|
"src/swift-xcframework.ts"() {
|
|
@@ -99418,6 +99472,7 @@ async function swiftPackages(entry, app) {
|
|
|
99418
99472
|
packages,
|
|
99419
99473
|
binaries: packages.binaries,
|
|
99420
99474
|
standins: [],
|
|
99475
|
+
dynamicFrameworks: /* @__PURE__ */ new Map(),
|
|
99421
99476
|
projectGaps: /* @__PURE__ */ new Map()
|
|
99422
99477
|
};
|
|
99423
99478
|
entry.packages = cached4;
|
|
@@ -99497,6 +99552,14 @@ async function swiftPackages(entry, app) {
|
|
|
99497
99552
|
for (const target of new Set(built2.standins.map((standin) => standin.target)))
|
|
99498
99553
|
console.error(`Peach: target ${target} was replaced with a stand-in`);
|
|
99499
99554
|
cached4.standins = built2.standins;
|
|
99555
|
+
const stoodIn = new Set(built2.standins.map((standin) => standin.target));
|
|
99556
|
+
cached4.dynamicFrameworks = new Map(
|
|
99557
|
+
cxxArtifacts.flatMap((binary2) => {
|
|
99558
|
+
if (!stoodIn.has(binary2.target)) return [];
|
|
99559
|
+
const native = simulatorNativeLibrary(swiftBinaryFramework(binary2).dir);
|
|
99560
|
+
return native?.kind === "framework" && isDynamicLibrary2(native.file) ? [[binary2.target, native.name]] : [];
|
|
99561
|
+
})
|
|
99562
|
+
);
|
|
99500
99563
|
cached4.projectGaps = new Map(
|
|
99501
99564
|
vendored.flatMap(({ target }) => {
|
|
99502
99565
|
const gap = built2.gaps.get(target);
|
|
@@ -99556,10 +99619,7 @@ async function buildXcodeLayout(root) {
|
|
|
99556
99619
|
nativeModules: registered.nativeModules
|
|
99557
99620
|
}
|
|
99558
99621
|
);
|
|
99559
|
-
const { packages, standins, projectGaps, binaries } = await swiftPackages(
|
|
99560
|
-
registered,
|
|
99561
|
-
appTarget
|
|
99562
|
-
);
|
|
99622
|
+
const { packages, standins, dynamicFrameworks, projectGaps, binaries } = await swiftPackages(registered, appTarget);
|
|
99563
99623
|
const sourceFrameworks = new Map(
|
|
99564
99624
|
packages.sourceFrameworks.map(
|
|
99565
99625
|
({
|
|
@@ -100163,7 +100223,8 @@ async function buildXcodeLayout(root) {
|
|
|
100163
100223
|
(owner) => owner.module === original.moduleName
|
|
100164
100224
|
)?.products ?? [] : [];
|
|
100165
100225
|
const packageTarget = target.productType.startsWith("swiftpm.");
|
|
100166
|
-
const
|
|
100226
|
+
const binaryFramework = target.productType === "swiftpm.target.binary" ? dynamicFrameworks.get(target.productName) ?? null : null;
|
|
100227
|
+
const packageFramework = target.productType === "swiftpm.library.dynamic" ? target.productName : binaryFramework;
|
|
100167
100228
|
const buildVersion = {
|
|
100168
100229
|
platform: packageTarget ? applicationBuildVersion.platform : target.buildVersion.platform,
|
|
100169
100230
|
minimumOS: target.buildVersion.minimumOS ?? (packageTarget ? applicationBuildVersion.minimumOS : null),
|
|
@@ -100178,6 +100239,7 @@ async function buildXcodeLayout(root) {
|
|
|
100178
100239
|
id: relative6(target.id),
|
|
100179
100240
|
productName: packageFramework === null ? target.productName : `${packageFramework}.framework`,
|
|
100180
100241
|
installName: packageFramework === null ? target.installName : `@rpath/${packageFramework}.framework/${packageFramework}`,
|
|
100242
|
+
machOType: binaryFramework === null ? target.machOType : "mh_dylib",
|
|
100181
100243
|
sourceTarget: target.sourceTarget === null ? first ?? null : original ? frameworkNames.get(original) ?? original.moduleName : target.sourceTarget,
|
|
100182
100244
|
buildVersion,
|
|
100183
100245
|
dependencies: [
|
|
@@ -101720,6 +101782,7 @@ var init_swift_host = __esm({
|
|
|
101720
101782
|
init_swift_standins();
|
|
101721
101783
|
init_swift_submit();
|
|
101722
101784
|
init_swift_toolchain();
|
|
101785
|
+
init_swift_xcframework();
|
|
101723
101786
|
init_swiftContract();
|
|
101724
101787
|
init_swiftContract();
|
|
101725
101788
|
init_xcode_project();
|
|
@@ -112052,7 +112115,7 @@ var init_nitro_superset = __esm({
|
|
|
112052
112115
|
init_nitroContract();
|
|
112053
112116
|
init_swift_standin_digest();
|
|
112054
112117
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
112055
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
112118
|
+
NITRO_COMPILER_DIGEST = true ? "6764c6ea26594f3a00f19cd9e5f36dd70b5b7512565469477e6ea04833ce04ae" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
112056
112119
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
112057
112120
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
112058
112121
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -112744,7 +112807,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
112744
112807
|
var runtime_companion_default;
|
|
112745
112808
|
var init_runtime_companion = __esm({
|
|
112746
112809
|
"runtime-companion.json"() {
|
|
112747
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
112810
|
+
runtime_companion_default = { abi: 1, sha256: "2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367", file: "node/cli-2d42441f509451bf1c660a06ac087056d0cc7d96ca43aead02f6fd91f5e4e367.cjs" };
|
|
112748
112811
|
}
|
|
112749
112812
|
});
|
|
112750
112813
|
|
|
@@ -122621,19 +122684,11 @@ async function readJavaModuleSpecs(files2, sdkRoot, toolchain) {
|
|
|
122621
122684
|
import_node_fs138.default.writeFileSync(target, bytes);
|
|
122622
122685
|
origins.set(target, file);
|
|
122623
122686
|
}
|
|
122624
|
-
const
|
|
122625
|
-
|
|
122626
|
-
|
|
122627
|
-
|
|
122628
|
-
|
|
122629
|
-
import_node_path142.default.join(sdkRoot, "tools.jar"),
|
|
122630
|
-
import_node_path142.default.resolve(import_node_path142.default.dirname(toolchain.kotlinc), "../lib/kotlin-compiler.jar"),
|
|
122631
|
-
import_node_path142.default.resolve(import_node_path142.default.dirname(toolchain.kotlinc), "../lib/kotlin-stdlib.jar")
|
|
122632
|
-
].join(import_node_path142.default.delimiter),
|
|
122633
|
-
"dev.peach.tools.javaabi.JavaModuleSpecsKt",
|
|
122634
|
-
...origins.keys()
|
|
122635
|
-
],
|
|
122636
|
-
{ maxBuffer: 16 * 1024 * 1024 }
|
|
122687
|
+
const stdout = await runKotlinTool(
|
|
122688
|
+
toolchain,
|
|
122689
|
+
sdkRoot,
|
|
122690
|
+
"dev.peach.tools.javaabi.JavaModuleSpecsKt",
|
|
122691
|
+
[...origins.keys()]
|
|
122637
122692
|
).catch((cause) => {
|
|
122638
122693
|
if (!isRecord(cause) || typeof cause.stderr !== "string") throw cause;
|
|
122639
122694
|
let diagnostic = cause.stderr;
|
|
@@ -122704,20 +122759,11 @@ async function compileJavaModuleAbi(input) {
|
|
|
122704
122759
|
{ maxBuffer: 16 * 1024 * 1024 }
|
|
122705
122760
|
);
|
|
122706
122761
|
const library = import_node_path142.default.join(directory2, "java-abi.klib");
|
|
122707
|
-
await
|
|
122708
|
-
|
|
122709
|
-
|
|
122710
|
-
|
|
122711
|
-
|
|
122712
|
-
import_node_path142.default.join(sdkRoot, "tools.jar"),
|
|
122713
|
-
import_node_path142.default.resolve(import_node_path142.default.dirname(toolchain.kotlinc), "../lib/kotlin-compiler.jar"),
|
|
122714
|
-
import_node_path142.default.resolve(import_node_path142.default.dirname(toolchain.kotlinc), "../lib/kotlin-stdlib.jar")
|
|
122715
|
-
].join(import_node_path142.default.delimiter),
|
|
122716
|
-
"dev.peach.tools.platform.JavaPlatformTypesKt",
|
|
122717
|
-
import_node_path142.default.join(directory2, `${name3}.klib`),
|
|
122718
|
-
library
|
|
122719
|
-
],
|
|
122720
|
-
{ maxBuffer: 16 * 1024 * 1024 }
|
|
122762
|
+
await runKotlinTool(
|
|
122763
|
+
toolchain,
|
|
122764
|
+
sdkRoot,
|
|
122765
|
+
"dev.peach.tools.platform.JavaPlatformTypesKt",
|
|
122766
|
+
[import_node_path142.default.join(directory2, `${name3}.klib`), library]
|
|
122721
122767
|
);
|
|
122722
122768
|
return library;
|
|
122723
122769
|
}
|
|
@@ -123457,23 +123503,7 @@ async function scanSources(tool, parse14, toolchain, moduleRoot, files2) {
|
|
|
123457
123503
|
const key2 = digest3.digest("hex");
|
|
123458
123504
|
let scan3 = toolScans.get(key2);
|
|
123459
123505
|
if (!scan3) {
|
|
123460
|
-
scan3 = (
|
|
123461
|
-
const { kotlinc } = await ensureToolchain(toolchain);
|
|
123462
|
-
const { stdout } = await run11(
|
|
123463
|
-
import_node_path146.default.join(import_node_path146.default.dirname(kotlinc), "kotlin"),
|
|
123464
|
-
[
|
|
123465
|
-
"-cp",
|
|
123466
|
-
[
|
|
123467
|
-
import_node_path146.default.resolve(import_node_path146.default.dirname(kotlinc), "../lib/kotlin-compiler.jar"),
|
|
123468
|
-
import_node_path146.default.join(sdk2.root, "tools.jar")
|
|
123469
|
-
].join(import_node_path146.default.delimiter),
|
|
123470
|
-
tool,
|
|
123471
|
-
...files2
|
|
123472
|
-
],
|
|
123473
|
-
{ maxBuffer: 16 * 1024 * 1024 }
|
|
123474
|
-
);
|
|
123475
|
-
return stdout;
|
|
123476
|
-
})().catch((error) => {
|
|
123506
|
+
scan3 = ensureToolchain(toolchain).then((ready) => runKotlinTool(ready, sdk2.root, tool, files2)).catch((error) => {
|
|
123477
123507
|
toolScans.delete(key2);
|
|
123478
123508
|
throw error;
|
|
123479
123509
|
});
|
|
@@ -124230,18 +124260,12 @@ async function compileKotlin(input, origin) {
|
|
|
124230
124260
|
({ file, bytes }) => sources.includes(file) && bytes.includes("ViewModel")
|
|
124231
124261
|
)) {
|
|
124232
124262
|
await compileKlib(import_node_path146.default.join(work, "abi"));
|
|
124233
|
-
const
|
|
124234
|
-
|
|
124235
|
-
|
|
124236
|
-
|
|
124237
|
-
|
|
124238
|
-
|
|
124239
|
-
import_node_path146.default.join(sdk2.root, "tools.jar")
|
|
124240
|
-
].join(import_node_path146.default.delimiter),
|
|
124241
|
-
viewModels.toolClass,
|
|
124242
|
-
import_node_path146.default.join(work, "abi")
|
|
124243
|
-
],
|
|
124244
|
-
{ maxBuffer: 64 * 1024 * 1024 }
|
|
124263
|
+
const stdout = await runKotlinTool(
|
|
124264
|
+
ready,
|
|
124265
|
+
sdk2.root,
|
|
124266
|
+
viewModels.toolClass,
|
|
124267
|
+
[import_node_path146.default.join(work, "abi")],
|
|
124268
|
+
64 * 1024 * 1024
|
|
124245
124269
|
);
|
|
124246
124270
|
import_node_fs142.default.writeFileSync(
|
|
124247
124271
|
import_node_path146.default.join(generatedDir, viewModels.file),
|
|
@@ -142414,12 +142438,17 @@ async function runStreamCommand(args, opts = {}) {
|
|
|
142414
142438
|
bridge,
|
|
142415
142439
|
"SootSim.bridges.settings.get"
|
|
142416
142440
|
);
|
|
142441
|
+
const name3 = opts.appName ?? await bridge.send({
|
|
142442
|
+
type: "evaluate",
|
|
142443
|
+
code: "globalThis.SootSim?.state?.engineSnapshot?.activeApp?.appName ?? null"
|
|
142444
|
+
});
|
|
142417
142445
|
const response = await fetch(new URL("/api/v1/rnx/streams", origin), {
|
|
142418
142446
|
method: "POST",
|
|
142419
142447
|
headers: { authorization: header, "content-type": "application/json" },
|
|
142420
142448
|
body: JSON.stringify({
|
|
142421
142449
|
accountId: cloudAccountIdOrExit(auth),
|
|
142422
142450
|
device: typeof settings.deviceModel === "string" ? settings.deviceModel : void 0,
|
|
142451
|
+
name: typeof name3 === "string" ? name3 : void 0,
|
|
142423
142452
|
repo: resolveCheckoutRepo() ?? void 0
|
|
142424
142453
|
}),
|
|
142425
142454
|
signal: AbortSignal.timeout(15e3)
|
|
@@ -157178,7 +157207,10 @@ async function runOpenCommand(args, opts = {}) {
|
|
|
157178
157207
|
opts
|
|
157179
157208
|
);
|
|
157180
157209
|
if (opened)
|
|
157181
|
-
await runStreamCommand2(["start", "--sim", opened.simId], {
|
|
157210
|
+
await runStreamCommand2(["start", "--sim", opened.simId], {
|
|
157211
|
+
port: opts.port,
|
|
157212
|
+
appName: opened.appName
|
|
157213
|
+
});
|
|
157182
157214
|
return opened;
|
|
157183
157215
|
}
|
|
157184
157216
|
if (!args.includes("--json")) return openSim(args, opts);
|
|
@@ -157432,6 +157464,7 @@ async function openSim(args, opts) {
|
|
|
157432
157464
|
resolvedBundle?.manifestProjectRoot,
|
|
157433
157465
|
opts.signal
|
|
157434
157466
|
);
|
|
157467
|
+
const appName = resolvedBundle?.projectName ?? (appNameFromPath(project2?.appDir ?? prebuiltBundle ?? "") || void 0);
|
|
157435
157468
|
startExpoConfigRead(project2);
|
|
157436
157469
|
const requestedDriverId = args.find((_, i) => args[i - 1] === "--driver") || "";
|
|
157437
157470
|
if (requestedDriverId && !isDriverId(requestedDriverId)) {
|
|
@@ -157820,7 +157853,7 @@ async function openSim(args, opts) {
|
|
|
157820
157853
|
);
|
|
157821
157854
|
await maybeDescribeAfterOpen(parsed2.wsPort, targetSim.id, args);
|
|
157822
157855
|
printAgentHints(quiet);
|
|
157823
|
-
return { simId: targetSim.id, launched: false };
|
|
157856
|
+
return { simId: targetSim.id, launched: false, appName };
|
|
157824
157857
|
}
|
|
157825
157858
|
} finally {
|
|
157826
157859
|
bridge.close();
|
|
@@ -157973,7 +158006,7 @@ async function openSim(args, opts) {
|
|
|
157973
158006
|
printOpenedSim(openUrl2, match, `${driver.name} driver`, quiet, json);
|
|
157974
158007
|
await maybeDescribeAfterOpen(parsed2.wsPort, match.id, args);
|
|
157975
158008
|
printAgentHints(quiet);
|
|
157976
|
-
return { simId: match.id, launched: true };
|
|
158009
|
+
return { simId: match.id, launched: true, appName };
|
|
157977
158010
|
}
|
|
157978
158011
|
async function runUseLikeCommand(args, opts = {}) {
|
|
157979
158012
|
const parsed2 = parseBridgeCliArgs(args, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2434 | (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;
|
|
@@ -8466,6 +8466,17 @@ function swiftPackageLinkage(target) {
|
|
|
8466
8466
|
throw new Error(`conflicting SwiftPM library linkage for ${target.id}`);
|
|
8467
8467
|
return linkage;
|
|
8468
8468
|
}
|
|
8469
|
+
function linkEdges(targets, id) {
|
|
8470
|
+
const target = targets.get(id);
|
|
8471
|
+
if (!target) throw new Error(`unknown source target ${id}`);
|
|
8472
|
+
return target.dependencies.flatMap((edge) => {
|
|
8473
|
+
if (edge.attributes.length)
|
|
8474
|
+
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8475
|
+
const dependency = targets.get(edge.target);
|
|
8476
|
+
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
8477
|
+
return dependency.productType.startsWith("swiftpm.library.") && swiftPackageLinkage(dependency) === "static" ? linkEdges(targets, edge.target) : [edge];
|
|
8478
|
+
});
|
|
8479
|
+
}
|
|
8469
8480
|
function guestSourceImages(graph) {
|
|
8470
8481
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
8471
8482
|
const entry = targets.get(graph.entry);
|
|
@@ -8489,17 +8500,14 @@ function guestSourceImages(graph) {
|
|
|
8489
8500
|
ownership.set(id, image.id);
|
|
8490
8501
|
image.members.push(id);
|
|
8491
8502
|
active.add(id);
|
|
8492
|
-
for (const edge of
|
|
8493
|
-
if (edge.attributes.length)
|
|
8494
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8503
|
+
for (const edge of linkEdges(targets, id)) {
|
|
8495
8504
|
const dependency = targets.get(edge.target);
|
|
8496
|
-
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
8497
8505
|
const type = dependency.productType;
|
|
8498
8506
|
let dynamic;
|
|
8499
8507
|
if (type.startsWith("swiftpm.target.")) {
|
|
8500
8508
|
if (type !== "swiftpm.target.regular" && type !== "swiftpm.target.binary" && type !== "swiftpm.target.system")
|
|
8501
8509
|
throw new Error(`unsupported SwiftPM target ${edge.target}`);
|
|
8502
|
-
dynamic =
|
|
8510
|
+
dynamic = type === "swiftpm.target.binary" && dependency.machOType === "mh_dylib";
|
|
8503
8511
|
} else if (type.startsWith("swiftpm.library.")) {
|
|
8504
8512
|
dynamic = swiftPackageLinkage(dependency) === "dynamic";
|
|
8505
8513
|
} else if (type === "com.apple.product-type.library.static") {
|
|
@@ -8634,9 +8642,7 @@ function planGuestSourceLink(graph, images, callers, artifacts, symbols) {
|
|
|
8634
8642
|
(flag) => /(?:^|,)-(?:weak|reexport|upward|lazy)(?:[_-]|$)/.test(flag)
|
|
8635
8643
|
))
|
|
8636
8644
|
throw new Error(`unsupported special link flag for ${id}`);
|
|
8637
|
-
for (const edge of
|
|
8638
|
-
if (edge.attributes.length)
|
|
8639
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8645
|
+
for (const edge of linkEdges(targets, id)) {
|
|
8640
8646
|
const dependencyImage = ownerByTarget.get(edge.target);
|
|
8641
8647
|
if (dependencyImage === void 0)
|
|
8642
8648
|
throw new Error(`linked target ${edge.target} has no guest image`);
|
|
@@ -10210,6 +10216,11 @@ var import_node_child_process11 = require("node:child_process");
|
|
|
10210
10216
|
var import_node_crypto10 = require("node:crypto");
|
|
10211
10217
|
var import_node_fs15 = require("node:fs");
|
|
10212
10218
|
var import_node_path15 = __toESM(require("node:path"), 1);
|
|
10219
|
+
|
|
10220
|
+
// src/forked-script-contract.ts
|
|
10221
|
+
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
10222
|
+
|
|
10223
|
+
// src/swift-guest-source-inputs.ts
|
|
10213
10224
|
function clangIrLinkOptions(ir) {
|
|
10214
10225
|
const list = /^!llvm\.linker\.options = !\{([^\n]*)\}$/m.exec(ir);
|
|
10215
10226
|
if (!list) {
|
|
@@ -10330,10 +10341,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10330
10341
|
plan,
|
|
10331
10342
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
10332
10343
|
);
|
|
10333
|
-
|
|
10344
|
+
const script = import_node_path15.default.join(options.directory, "clang-link-replay.cjs");
|
|
10345
|
+
(0, import_node_fs15.writeFileSync)(script, PARALLEL_REPLAY);
|
|
10346
|
+
(0, import_node_child_process11.execFileSync)(process.execPath, [script], {
|
|
10334
10347
|
stdio: "inherit",
|
|
10335
10348
|
env: {
|
|
10336
10349
|
...process.env,
|
|
10350
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
10337
10351
|
PEACH_CLANG_REPLAYS: plan,
|
|
10338
10352
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
10339
10353
|
}
|
|
@@ -11607,11 +11621,6 @@ var import_node_crypto12 = require("node:crypto");
|
|
|
11607
11621
|
var import_node_fs19 = require("node:fs");
|
|
11608
11622
|
var import_node_http = require("node:http");
|
|
11609
11623
|
var import_node_path20 = __toESM(require("node:path"), 1);
|
|
11610
|
-
|
|
11611
|
-
// src/forked-script-contract.ts
|
|
11612
|
-
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
11613
|
-
|
|
11614
|
-
// src/swift-header-compiler.ts
|
|
11615
11624
|
var SWIFT_HEADER_COMPILER_WRAPPER = ".build/peach-swiftc";
|
|
11616
11625
|
var argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
|
|
11617
11626
|
var client = `const { request } = require('node:http')
|
|
@@ -14058,7 +14067,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14058
14067
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14059
14068
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14060
14069
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14061
|
-
var compilerSourceDigest = true ? "
|
|
14070
|
+
var compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
14062
14071
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14063
14072
|
const hash = (0, import_node_crypto15.createHash)("sha256");
|
|
14064
14073
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2434 | (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);
|
|
@@ -8420,6 +8420,17 @@ function swiftPackageLinkage(target) {
|
|
|
8420
8420
|
throw new Error(`conflicting SwiftPM library linkage for ${target.id}`);
|
|
8421
8421
|
return linkage;
|
|
8422
8422
|
}
|
|
8423
|
+
function linkEdges(targets, id) {
|
|
8424
|
+
const target = targets.get(id);
|
|
8425
|
+
if (!target) throw new Error(`unknown source target ${id}`);
|
|
8426
|
+
return target.dependencies.flatMap((edge) => {
|
|
8427
|
+
if (edge.attributes.length)
|
|
8428
|
+
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8429
|
+
const dependency = targets.get(edge.target);
|
|
8430
|
+
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
8431
|
+
return dependency.productType.startsWith("swiftpm.library.") && swiftPackageLinkage(dependency) === "static" ? linkEdges(targets, edge.target) : [edge];
|
|
8432
|
+
});
|
|
8433
|
+
}
|
|
8423
8434
|
function guestSourceImages(graph) {
|
|
8424
8435
|
const targets = new Map(graph.targets.map((target) => [target.id, target]));
|
|
8425
8436
|
const entry = targets.get(graph.entry);
|
|
@@ -8443,17 +8454,14 @@ function guestSourceImages(graph) {
|
|
|
8443
8454
|
ownership.set(id, image.id);
|
|
8444
8455
|
image.members.push(id);
|
|
8445
8456
|
active.add(id);
|
|
8446
|
-
for (const edge of
|
|
8447
|
-
if (edge.attributes.length)
|
|
8448
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8457
|
+
for (const edge of linkEdges(targets, id)) {
|
|
8449
8458
|
const dependency = targets.get(edge.target);
|
|
8450
|
-
if (!dependency) throw new Error(`unknown source target ${edge.target}`);
|
|
8451
8459
|
const type = dependency.productType;
|
|
8452
8460
|
let dynamic;
|
|
8453
8461
|
if (type.startsWith("swiftpm.target.")) {
|
|
8454
8462
|
if (type !== "swiftpm.target.regular" && type !== "swiftpm.target.binary" && type !== "swiftpm.target.system")
|
|
8455
8463
|
throw new Error(`unsupported SwiftPM target ${edge.target}`);
|
|
8456
|
-
dynamic =
|
|
8464
|
+
dynamic = type === "swiftpm.target.binary" && dependency.machOType === "mh_dylib";
|
|
8457
8465
|
} else if (type.startsWith("swiftpm.library.")) {
|
|
8458
8466
|
dynamic = swiftPackageLinkage(dependency) === "dynamic";
|
|
8459
8467
|
} else if (type === "com.apple.product-type.library.static") {
|
|
@@ -8588,9 +8596,7 @@ function planGuestSourceLink(graph, images, callers, artifacts, symbols) {
|
|
|
8588
8596
|
(flag) => /(?:^|,)-(?:weak|reexport|upward|lazy)(?:[_-]|$)/.test(flag)
|
|
8589
8597
|
))
|
|
8590
8598
|
throw new Error(`unsupported special link flag for ${id}`);
|
|
8591
|
-
for (const edge of
|
|
8592
|
-
if (edge.attributes.length)
|
|
8593
|
-
throw new Error(`unsupported link attributes for ${id} -> ${edge.target}`);
|
|
8599
|
+
for (const edge of linkEdges(targets, id)) {
|
|
8594
8600
|
const dependencyImage = ownerByTarget.get(edge.target);
|
|
8595
8601
|
if (dependencyImage === void 0)
|
|
8596
8602
|
throw new Error(`linked target ${edge.target} has no guest image`);
|
|
@@ -10165,6 +10171,11 @@ import { execFileSync as execFileSync8 } from "node:child_process";
|
|
|
10165
10171
|
import { createHash as createHash11 } from "node:crypto";
|
|
10166
10172
|
import { mkdirSync as mkdirSync3, readFileSync as readFileSync11, realpathSync as realpathSync2, writeFileSync as writeFileSync4 } from "node:fs";
|
|
10167
10173
|
import path17 from "node:path";
|
|
10174
|
+
|
|
10175
|
+
// src/forked-script-contract.ts
|
|
10176
|
+
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
10177
|
+
|
|
10178
|
+
// src/swift-guest-source-inputs.ts
|
|
10168
10179
|
function clangIrLinkOptions(ir) {
|
|
10169
10180
|
const list = /^!llvm\.linker\.options = !\{([^\n]*)\}$/m.exec(ir);
|
|
10170
10181
|
if (!list) {
|
|
@@ -10285,10 +10296,13 @@ function sourceGuestClangLinkOptions(options) {
|
|
|
10285
10296
|
plan,
|
|
10286
10297
|
JSON.stringify(replays.map(({ compiler, args }) => [compiler, ...args]))
|
|
10287
10298
|
);
|
|
10288
|
-
|
|
10299
|
+
const script = path17.join(options.directory, "clang-link-replay.cjs");
|
|
10300
|
+
writeFileSync4(script, PARALLEL_REPLAY);
|
|
10301
|
+
execFileSync8(process.execPath, [script], {
|
|
10289
10302
|
stdio: "inherit",
|
|
10290
10303
|
env: {
|
|
10291
10304
|
...process.env,
|
|
10305
|
+
[PEACH_FORKED_SCRIPT_ENV]: "1",
|
|
10292
10306
|
PEACH_CLANG_REPLAYS: plan,
|
|
10293
10307
|
PEACH_CLANG_JOBS: String(options.jobs)
|
|
10294
10308
|
}
|
|
@@ -11580,11 +11594,6 @@ import {
|
|
|
11580
11594
|
} from "node:fs";
|
|
11581
11595
|
import { createServer } from "node:http";
|
|
11582
11596
|
import path22 from "node:path";
|
|
11583
|
-
|
|
11584
|
-
// src/forked-script-contract.ts
|
|
11585
|
-
var PEACH_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
11586
|
-
|
|
11587
|
-
// src/swift-header-compiler.ts
|
|
11588
11597
|
var SWIFT_HEADER_COMPILER_WRAPPER = ".build/peach-swiftc";
|
|
11589
11598
|
var argument = (value) => `'${value.replaceAll("'", `'"'"'`)}'`;
|
|
11590
11599
|
var client = `const { request } = require('node:http')
|
|
@@ -14057,7 +14066,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
14057
14066
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
14058
14067
|
var MULTI_MANIFEST_VERSION = 72;
|
|
14059
14068
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
14060
|
-
var compilerSourceDigest = true ? "
|
|
14069
|
+
var compilerSourceDigest = true ? "2ff4da3ff6b56e29c8968a39135d8974f54c927608bde4993a6a2476beb749e6" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
14061
14070
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
14062
14071
|
const hash = createHash15("sha256");
|
|
14063
14072
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2434 | (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.2434 | (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.2434 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2434 | (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;
|