peachsim 0.1.1813 → 0.1.1814
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/README.md +2 -1
- package/cli/cloud-client.ts +5 -4
- package/cli/cloud-session.ts +14 -1
- package/cli/commands/compat.ts +12 -2
- package/cli/commands/control.ts +5 -0
- package/cli/commands/flow.ts +10 -5
- package/cli/commands/inspect/env.ts +3 -2
- package/cli/commands/inspect/wait-selector.ts +30 -9
- 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 +584 -449
- 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 +112 -52
- package/dist-lib/expo-swift-metadata.cjs +1 -17
- package/dist-lib/expo-swift-metadata.mjs +1 -16
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1963 -1891
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -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 +7 -10
- 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 +4 -6
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +6 -6
- 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 +64 -67
- 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 +616 -467
- package/dist-lib/swift-compile.cjs +27 -26
- package/dist-lib/swift-compile.mjs +34 -33
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +5 -3
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +87 -41
- package/dist-lib/vite.cjs +2 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +14 -2
- package/install.mjs +21 -8
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +17 -0
- package/sdk/ios/usr/lib/swift/Dispatch.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +6 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +10 -1
- package/sdk/ios/usr/lib/swift/SwiftUI.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -0
- package/sdk/ios/usr/lib/swift/SwiftUICore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +11 -0
- package/sdk/ios/usr/lib/swift/UIKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +13 -0
- package/sdk/ios/wasm/include/string.h +1 -0
- package/src/expo-kotlin-host.ts +69 -35
- package/src/expo-swift-host.ts +45 -9
- package/src/expoSwiftContract.ts +2 -20
- package/src/nitro-adapter.lock.json +235 -235
- package/src/nitro-bundle.ts +2 -8
- package/src/nitro-superset.lock.json +14 -14
- package/src/nitro-superset.ts +2 -3
- package/src/nitroContract.ts +0 -29
- package/src/react-native-bridge-modules.ts +2 -9
- package/src/swift-compile.ts +2 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-distribution.ts +1 -0
- package/src/swift-icu.ts +21 -27
- package/src/swift-project-user.ts +5 -0
- package/src/swift-shared-sdk.ts +4 -0
- package/src/swift-standins.ts +6 -1
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +5 -2
- package/src/swift-wasm-prune.ts +10 -2
- package/src/turbo-runtime.lock.json +15 -15
- package/src/turbo-source.ts +160 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (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;
|
|
@@ -3882,6 +3882,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
|
|
|
3882
3882
|
if (!import_node_fs7.default.existsSync(headers)) {
|
|
3883
3883
|
import_node_fs7.default.mkdirSync(import_node_path8.default.dirname(headers), { recursive: true });
|
|
3884
3884
|
const staging = import_node_fs7.default.mkdtempSync(`${headers}-`);
|
|
3885
|
+
import_node_fs7.default.chmodSync(staging, 493);
|
|
3885
3886
|
import_node_fs7.default.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
|
|
3886
3887
|
try {
|
|
3887
3888
|
import_node_fs7.default.renameSync(staging, headers);
|
|
@@ -4110,6 +4111,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4110
4111
|
if (!import_node_fs7.default.existsSync(manifest)) {
|
|
4111
4112
|
import_node_fs7.default.mkdirSync(import_node_path8.default.dirname(view), { recursive: true });
|
|
4112
4113
|
const staging = import_node_fs7.default.mkdtempSync(`${view}-`);
|
|
4114
|
+
import_node_fs7.default.chmodSync(staging, 493);
|
|
4113
4115
|
const realRoot = import_node_path8.default.dirname(bundle);
|
|
4114
4116
|
const overrides = new Map([
|
|
4115
4117
|
[import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
@@ -4679,19 +4681,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
|
|
|
4679
4681
|
var raw = /* @__PURE__ */ new Map();
|
|
4680
4682
|
var assets = /* @__PURE__ */ new Map();
|
|
4681
4683
|
var brotliMemoryCache = /* @__PURE__ */ new Map();
|
|
4682
|
-
function cachedBrotli(bytes, quality, cacheKey) {
|
|
4684
|
+
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
4683
4685
|
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : (0, import_node_crypto5.createHash)("sha256").update(bytes).digest("hex");
|
|
4684
4686
|
const cacheId = `${quality}:${key}`;
|
|
4685
4687
|
const cached = brotliMemoryCache.get(cacheId);
|
|
4686
4688
|
if (cached) return cached;
|
|
4687
4689
|
const dir = import_node_path10.default.join(import_node_os5.default.homedir(), ".peach", "cache", "swift-brotli");
|
|
4688
4690
|
const file = import_node_path10.default.join(dir, `${key}${quality === 11 ? "" : "-q4"}.br`);
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
const compressed = await compressBrotli(bytes, {
|
|
4691
|
+
let compressed;
|
|
4692
|
+
try {
|
|
4693
|
+
compressed = await (0, import_promises3.readFile)(file);
|
|
4694
|
+
} catch {
|
|
4695
|
+
compressed = await compressBrotli(bytes, {
|
|
4695
4696
|
params: {
|
|
4696
4697
|
[import_node_zlib.constants.BROTLI_PARAM_QUALITY]: quality,
|
|
4697
4698
|
[import_node_zlib.constants.BROTLI_PARAM_LGWIN]: 24
|
|
@@ -4699,16 +4700,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
|
|
|
4699
4700
|
});
|
|
4700
4701
|
try {
|
|
4701
4702
|
await (0, import_promises3.mkdir)(dir, { recursive: true });
|
|
4702
|
-
const tmp = `${file}.${
|
|
4703
|
+
const tmp = `${file}.${(0, import_node_crypto5.randomUUID)()}.tmp`;
|
|
4703
4704
|
await (0, import_promises3.writeFile)(tmp, compressed);
|
|
4704
4705
|
await (0, import_promises3.rename)(tmp, file);
|
|
4705
4706
|
} catch {
|
|
4706
4707
|
}
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
void pending.catch(() => brotliMemoryCache.delete(cacheId));
|
|
4711
|
-
return pending;
|
|
4708
|
+
}
|
|
4709
|
+
brotliMemoryCache.set(cacheId, compressed);
|
|
4710
|
+
return compressed;
|
|
4712
4711
|
}
|
|
4713
4712
|
function brotliCompressQ11(bytes, cacheKey) {
|
|
4714
4713
|
return cachedBrotli(bytes, 11, cacheKey);
|
|
@@ -4722,14 +4721,12 @@ async function swiftIcuBrotli(icu) {
|
|
|
4722
4721
|
async function swiftIcuBrotliQ4(icu) {
|
|
4723
4722
|
return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
|
|
4724
4723
|
}
|
|
4725
|
-
function memo(cache, key, load2) {
|
|
4726
|
-
|
|
4727
|
-
if (
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
}
|
|
4732
|
-
return pending;
|
|
4724
|
+
async function memo(cache, key, load2) {
|
|
4725
|
+
const cached = cache.get(key);
|
|
4726
|
+
if (cached !== void 0) return cached;
|
|
4727
|
+
const value = await load2();
|
|
4728
|
+
cache.set(key, value);
|
|
4729
|
+
return value;
|
|
4733
4730
|
}
|
|
4734
4731
|
function swiftIcuData(toolchainBin, sdk) {
|
|
4735
4732
|
return memo(
|
|
@@ -6160,6 +6157,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6160
6157
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
6161
6158
|
}
|
|
6162
6159
|
}
|
|
6160
|
+
for (let n = pref.length - 1; n > 2; n--) {
|
|
6161
|
+
const outer = pref.slice(0, n);
|
|
6162
|
+
if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
|
|
6163
|
+
}
|
|
6163
6164
|
const mnName = `${pref}Mn`;
|
|
6164
6165
|
for (let i = 0; i < obj.symNames.length; i++) {
|
|
6165
6166
|
if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
|
|
@@ -6728,8 +6729,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6728
6729
|
writePrunedObject(o, outPath);
|
|
6729
6730
|
prunedMap.set(o.file, outPath);
|
|
6730
6731
|
}
|
|
6731
|
-
const
|
|
6732
|
-
(f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6732
|
+
const extraSdkObjs = allSdkObjFiles.filter(
|
|
6733
|
+
(f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6733
6734
|
).map((f) => import_node_path16.default.join(sdkObjsDir, f));
|
|
6734
6735
|
const outTokens = [];
|
|
6735
6736
|
const emittedPruned = /* @__PURE__ */ new Set();
|
|
@@ -6762,7 +6763,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6762
6763
|
}
|
|
6763
6764
|
}
|
|
6764
6765
|
}
|
|
6765
|
-
outTokens.push(...
|
|
6766
|
+
outTokens.push(...extraSdkObjs);
|
|
6766
6767
|
continue;
|
|
6767
6768
|
}
|
|
6768
6769
|
if (t === "--end-lib") {
|
|
@@ -7851,7 +7852,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7851
7852
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7852
7853
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7853
7854
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7854
|
-
var compilerSourceDigest = true ? "
|
|
7855
|
+
var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
7855
7856
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7856
7857
|
const hash = (0, import_node_crypto8.createHash)("sha256");
|
|
7857
7858
|
hash.update(`swift-compile
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
5
5
|
spawn as spawn3,
|
|
6
6
|
execFileSync as execFileSync9
|
|
7
7
|
} from "node:child_process";
|
|
8
|
-
import { createHash as createHash8, randomUUID as
|
|
8
|
+
import { createHash as createHash8, randomUUID as randomUUID5 } from "node:crypto";
|
|
9
9
|
import {
|
|
10
10
|
cpSync,
|
|
11
11
|
existsSync as existsSync4,
|
|
@@ -3830,6 +3830,7 @@ function swiftSharedSdkRoot(moduleRoot, distribution) {
|
|
|
3830
3830
|
if (!fs3.existsSync(headers)) {
|
|
3831
3831
|
fs3.mkdirSync(path8.dirname(headers), { recursive: true });
|
|
3832
3832
|
const staging = fs3.mkdtempSync(`${headers}-`);
|
|
3833
|
+
fs3.chmodSync(staging, 493);
|
|
3833
3834
|
fs3.cpSync(root, staging, { recursive: true, preserveTimestamps: true });
|
|
3834
3835
|
try {
|
|
3835
3836
|
fs3.renameSync(staging, headers);
|
|
@@ -4058,6 +4059,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4058
4059
|
if (!fs3.existsSync(manifest)) {
|
|
4059
4060
|
fs3.mkdirSync(path8.dirname(view), { recursive: true });
|
|
4060
4061
|
const staging = fs3.mkdtempSync(`${view}-`);
|
|
4062
|
+
fs3.chmodSync(staging, 493);
|
|
4061
4063
|
const realRoot = path8.dirname(bundle);
|
|
4062
4064
|
const overrides = new Map([
|
|
4063
4065
|
[path8.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
@@ -4611,7 +4613,7 @@ var foundationCategoryObjects = [
|
|
|
4611
4613
|
|
|
4612
4614
|
// src/swift-icu.ts
|
|
4613
4615
|
import { execFile as execFile2 } from "node:child_process";
|
|
4614
|
-
import { createHash as createHash5 } from "node:crypto";
|
|
4616
|
+
import { createHash as createHash5, randomUUID as randomUUID2 } from "node:crypto";
|
|
4615
4617
|
import { existsSync, readFileSync as readFileSync7 } from "node:fs";
|
|
4616
4618
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
4617
4619
|
import os2 from "node:os";
|
|
@@ -4627,19 +4629,18 @@ var MEMBER = "icu_packaged_data.cpp.obj";
|
|
|
4627
4629
|
var raw = /* @__PURE__ */ new Map();
|
|
4628
4630
|
var assets = /* @__PURE__ */ new Map();
|
|
4629
4631
|
var brotliMemoryCache = /* @__PURE__ */ new Map();
|
|
4630
|
-
function cachedBrotli(bytes, quality, cacheKey) {
|
|
4632
|
+
async function cachedBrotli(bytes, quality, cacheKey) {
|
|
4631
4633
|
const key = cacheKey && /^[a-f0-9]{64}$/.test(cacheKey) ? cacheKey : createHash5("sha256").update(bytes).digest("hex");
|
|
4632
4634
|
const cacheId = `${quality}:${key}`;
|
|
4633
4635
|
const cached = brotliMemoryCache.get(cacheId);
|
|
4634
4636
|
if (cached) return cached;
|
|
4635
4637
|
const dir = path10.join(os2.homedir(), ".peach", "cache", "swift-brotli");
|
|
4636
4638
|
const file = path10.join(dir, `${key}${quality === 11 ? "" : "-q4"}.br`);
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
const compressed = await compressBrotli(bytes, {
|
|
4639
|
+
let compressed;
|
|
4640
|
+
try {
|
|
4641
|
+
compressed = await readFile(file);
|
|
4642
|
+
} catch {
|
|
4643
|
+
compressed = await compressBrotli(bytes, {
|
|
4643
4644
|
params: {
|
|
4644
4645
|
[zlibConstants.BROTLI_PARAM_QUALITY]: quality,
|
|
4645
4646
|
[zlibConstants.BROTLI_PARAM_LGWIN]: 24
|
|
@@ -4647,16 +4648,14 @@ function cachedBrotli(bytes, quality, cacheKey) {
|
|
|
4647
4648
|
});
|
|
4648
4649
|
try {
|
|
4649
4650
|
await mkdir(dir, { recursive: true });
|
|
4650
|
-
const tmp = `${file}.${
|
|
4651
|
+
const tmp = `${file}.${randomUUID2()}.tmp`;
|
|
4651
4652
|
await writeFile(tmp, compressed);
|
|
4652
4653
|
await rename(tmp, file);
|
|
4653
4654
|
} catch {
|
|
4654
4655
|
}
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
void pending.catch(() => brotliMemoryCache.delete(cacheId));
|
|
4659
|
-
return pending;
|
|
4656
|
+
}
|
|
4657
|
+
brotliMemoryCache.set(cacheId, compressed);
|
|
4658
|
+
return compressed;
|
|
4660
4659
|
}
|
|
4661
4660
|
function brotliCompressQ11(bytes, cacheKey) {
|
|
4662
4661
|
return cachedBrotli(bytes, 11, cacheKey);
|
|
@@ -4670,14 +4669,12 @@ async function swiftIcuBrotli(icu) {
|
|
|
4670
4669
|
async function swiftIcuBrotliQ4(icu) {
|
|
4671
4670
|
return brotliMemoryCache.get(`4:${icu.sha256}`) ?? brotliCompressQ4(await inflateGzip(icu.gzip), icu.sha256);
|
|
4672
4671
|
}
|
|
4673
|
-
function memo(cache, key, load2) {
|
|
4674
|
-
|
|
4675
|
-
if (
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
}
|
|
4680
|
-
return pending;
|
|
4672
|
+
async function memo(cache, key, load2) {
|
|
4673
|
+
const cached = cache.get(key);
|
|
4674
|
+
if (cached !== void 0) return cached;
|
|
4675
|
+
const value = await load2();
|
|
4676
|
+
cache.set(key, value);
|
|
4677
|
+
return value;
|
|
4681
4678
|
}
|
|
4682
4679
|
function swiftIcuData(toolchainBin, sdk) {
|
|
4683
4680
|
return memo(
|
|
@@ -5017,7 +5014,7 @@ function swiftReproducibleBuildFlags(roots) {
|
|
|
5017
5014
|
import {
|
|
5018
5015
|
spawn as spawn2
|
|
5019
5016
|
} from "node:child_process";
|
|
5020
|
-
import { createHash as createHash6, randomUUID as
|
|
5017
|
+
import { createHash as createHash6, randomUUID as randomUUID4 } from "node:crypto";
|
|
5021
5018
|
import {
|
|
5022
5019
|
linkSync,
|
|
5023
5020
|
mkdirSync as mkdirSync2,
|
|
@@ -5030,7 +5027,7 @@ import { homedir as homedir2 } from "node:os";
|
|
|
5030
5027
|
import path14 from "node:path";
|
|
5031
5028
|
|
|
5032
5029
|
// src/home-paths.ts
|
|
5033
|
-
import { randomUUID as
|
|
5030
|
+
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
5034
5031
|
import fs5 from "node:fs";
|
|
5035
5032
|
import { homedir } from "node:os";
|
|
5036
5033
|
import path13 from "node:path";
|
|
@@ -5127,7 +5124,7 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
5127
5124
|
createHash6("sha256").update(root).digest("hex").slice(0, 32)
|
|
5128
5125
|
);
|
|
5129
5126
|
mkdirSync2(directory, { recursive: true });
|
|
5130
|
-
const token =
|
|
5127
|
+
const token = randomUUID4();
|
|
5131
5128
|
const owner = JSON.stringify(ownIdentity(process.pid));
|
|
5132
5129
|
const pending = path14.join(directory, `pending.${token}`);
|
|
5133
5130
|
let held = 0;
|
|
@@ -6129,6 +6126,10 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6129
6126
|
activateSymbolInObj(w.obj, w.symIdx);
|
|
6130
6127
|
}
|
|
6131
6128
|
}
|
|
6129
|
+
for (let n = pref.length - 1; n > 2; n--) {
|
|
6130
|
+
const outer = pref.slice(0, n);
|
|
6131
|
+
if (obj.typePrefixesInObj.has(outer)) markTypeLive(obj, outer);
|
|
6132
|
+
}
|
|
6132
6133
|
const mnName = `${pref}Mn`;
|
|
6133
6134
|
for (let i = 0; i < obj.symNames.length; i++) {
|
|
6134
6135
|
if (obj.symNames[i] === mnName && (obj.symFlags[i] & 16) === 0) {
|
|
@@ -6697,8 +6698,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6697
6698
|
writePrunedObject(o, outPath);
|
|
6698
6699
|
prunedMap.set(o.file, outPath);
|
|
6699
6700
|
}
|
|
6700
|
-
const
|
|
6701
|
-
(f) => f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6701
|
+
const extraSdkObjs = allSdkObjFiles.filter(
|
|
6702
|
+
(f) => f.startsWith("libDarwin__") || f.startsWith("libswiftCore__") && f !== "libswiftCore__Swift.o" || f.startsWith("libswift_Concurrency__") && f !== "libswift_Concurrency___Concurrency.o"
|
|
6702
6703
|
).map((f) => path16.join(sdkObjsDir, f));
|
|
6703
6704
|
const outTokens = [];
|
|
6704
6705
|
const emittedPruned = /* @__PURE__ */ new Set();
|
|
@@ -6731,7 +6732,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6731
6732
|
}
|
|
6732
6733
|
}
|
|
6733
6734
|
}
|
|
6734
|
-
outTokens.push(...
|
|
6735
|
+
outTokens.push(...extraSdkObjs);
|
|
6735
6736
|
continue;
|
|
6736
6737
|
}
|
|
6737
6738
|
if (t === "--end-lib") {
|
|
@@ -7386,7 +7387,7 @@ function swiftModuleDigest(root) {
|
|
|
7386
7387
|
const digest = hash.digest();
|
|
7387
7388
|
linkedModuleDigests.set(root, { stamp, digest });
|
|
7388
7389
|
mkdirSync4(path19.dirname(record), { recursive: true });
|
|
7389
|
-
const partial = `${record}.${process.pid}.${
|
|
7390
|
+
const partial = `${record}.${process.pid}.${randomUUID5()}`;
|
|
7390
7391
|
writeFileSync4(partial, JSON.stringify({ stamp, digest: digest.toString("hex") }));
|
|
7391
7392
|
renameSync2(partial, record);
|
|
7392
7393
|
return digest;
|
|
@@ -7820,7 +7821,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
7820
7821
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
7821
7822
|
var MULTI_MANIFEST_VERSION = 65;
|
|
7822
7823
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
7823
|
-
var compilerSourceDigest = true ? "
|
|
7824
|
+
var compilerSourceDigest = true ? "d62fae69578799a35cdf0157f54acf3e1a0c1688de92c4c991c69287b9e562bb" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
7824
7825
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
7825
7826
|
const hash = createHash8("sha256");
|
|
7826
7827
|
hash.update(`swift-compile
|
|
@@ -11444,7 +11445,7 @@ function stageFrameworkSource(moduleRoot, frameworkKey) {
|
|
|
11444
11445
|
const staged = path19.join(swiftFrameworkScratch(frameworkKey), "source");
|
|
11445
11446
|
const stagedModule = path19.join(staged, "packages", path19.basename(moduleRoot));
|
|
11446
11447
|
if (existsSync4(path19.join(staged, ".complete"))) return stagedModule;
|
|
11447
|
-
const partial = `${staged}.${
|
|
11448
|
+
const partial = `${staged}.${randomUUID5()}`;
|
|
11448
11449
|
mkdirSync4(partial, { recursive: true });
|
|
11449
11450
|
cpSync(moduleRoot, path19.join(partial, "packages", path19.basename(moduleRoot)), {
|
|
11450
11451
|
recursive: true,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (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.1814 | (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;
|
|
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
86
86
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
87
87
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
88
88
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
89
|
-
var SWIFT_HOST_ABI =
|
|
89
|
+
var SWIFT_HOST_ABI = 62;
|
|
90
90
|
var POLL_INTERVAL_MS = 1500;
|
|
91
91
|
function swiftNativeEntry(native, file) {
|
|
92
92
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/is-record.ts
|
|
4
4
|
function isRecord(value) {
|
|
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
|
|
|
40
40
|
var MAX_SWIFT_COMPILE_IMAGES = 256;
|
|
41
41
|
var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
42
42
|
var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
|
|
43
|
-
var SWIFT_HOST_ABI =
|
|
43
|
+
var SWIFT_HOST_ABI = 62;
|
|
44
44
|
var POLL_INTERVAL_MS = 1500;
|
|
45
45
|
function swiftNativeEntry(native, file) {
|
|
46
46
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (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;
|
|
@@ -344,8 +344,10 @@ function ensureSwiftLinuxRuntime(release) {
|
|
|
344
344
|
import_node_fs.default.rmSync(download, { force: true });
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
|
|
348
|
-
import_node_fs.default.
|
|
347
|
+
const staged = `${plan.link}.${process.pid}.tmp`;
|
|
348
|
+
import_node_fs.default.rmSync(staged, { force: true });
|
|
349
|
+
import_node_fs.default.symlinkSync("../../libxml2.so.2", staged);
|
|
350
|
+
import_node_fs.default.renameSync(staged, plan.link);
|
|
349
351
|
for (const name of ["lib", "lib64"]) {
|
|
350
352
|
try {
|
|
351
353
|
import_node_fs.default.symlinkSync(`usr/${name}`, import_node_path.default.join(root, name));
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1814 | (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;
|