peachsim 0.1.2159 → 0.1.2173
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 +7 -1
- package/cli/app-catalog.ts +22 -15
- package/cli/bridge-flow-runner.ts +8 -7
- package/cli/commands/cleanup.ts +4 -2
- package/cli/commands/control.ts +2 -1
- package/cli/commands/kotlin.ts +2 -2
- package/cli/commands/package.ts +22 -7
- package/cli/commands/shell-url.ts +4 -2
- package/cli/native-input.ts +1 -1
- package/cli/outbound-endpoints.ts +13 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +2 -3
- package/dist-lib/auth/shared-session.cjs +2 -3
- 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 +3653 -3310
- 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 +6 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +4226 -8528
- package/dist-lib/expo-swift-metadata.cjs +5 -1
- package/dist-lib/expo-swift-metadata.mjs +5 -1
- package/dist-lib/home-paths.cjs +2 -3
- package/dist-lib/host/bridge-host.cjs +4568 -4255
- package/dist-lib/host/fetch-proxy-handler.cjs +35 -15
- 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 +195 -155
- 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 +12 -7
- 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 +42 -16
- package/dist-lib/native-app-identity-project.cjs +10 -5
- package/dist-lib/native-app-identity-project.mjs +10 -5
- package/dist-lib/native-app-identity.cjs +9 -1
- package/dist-lib/native-app-identity.mjs +9 -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 +2 -3
- 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 +99 -78
- 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 +4 -2
- 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 +5762 -5118
- package/dist-lib/swift-compile.cjs +22 -11
- package/dist-lib/swift-compile.mjs +22 -11
- 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 +27 -13
- package/dist-lib/vite.cjs +119 -85
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +9 -1
- package/dist-types/packages/peach-engine/src/render-worker/ui-frame-clock.d.ts +26 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-sab.d.ts +1 -6
- package/kotlin/README.md +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/src/answeredNativePackages.ts +1 -5
- package/src/disk-cleanup.ts +44 -1
- package/src/expo-native-compiler-digest.ts +2 -0
- package/src/expo-native-workspace.ts +61 -16
- package/src/expo-swift-host.ts +64 -53
- package/src/expoSwiftContract.ts +6 -0
- package/src/home-activity.ts +124 -0
- package/src/home-paths.ts +1 -2
- package/src/installed-native-build-options.ts +27 -3
- package/src/kotlin-app.ts +156 -31
- package/src/kotlin-compose-bom.ts +64 -0
- package/src/kotlin-host.ts +12 -3
- package/src/kotlin-version-catalog.ts +77 -0
- package/src/native-app-identity-project.ts +3 -0
- package/src/native-app-identity.ts +15 -0
- package/src/native-git.ts +12 -0
- package/src/native-prebuilt.ts +11 -2
- package/src/nitro-compile.ts +12 -4
- package/src/one-native-app-catalog.ts +59 -0
- package/src/one-sdk-bundle.ts +3 -3
- package/src/one-sdk-preparation.ts +53 -8
- package/src/react-native-core-digest.ts +24 -0
- package/src/react-native-core.ts +239 -0
- package/src/reap-browser.ts +3 -1
- package/src/swift-compile.ts +6 -5
- package/src/swift-packages.ts +2 -0
- package/src/swift-wasm-prune.ts +20 -2
- package/src/turbo-bundle.ts +15 -2
- package/src/turbo-compile.ts +32 -6
- package/src/turbo-source.ts +29 -9
- package/src/vite-plugin-one.ts +8 -5
- package/src/one-native-app-accent.ts +0 -32
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (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;
|
|
@@ -5733,7 +5733,21 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5733
5733
|
const rspPath = import_node_path10.default.join(directory, ".peach-link.rsp");
|
|
5734
5734
|
if (!import_node_fs9.default.existsSync(rspPath)) return;
|
|
5735
5735
|
const origRsp = import_node_fs9.default.readFileSync(rspPath, "utf8");
|
|
5736
|
-
const tokens = Array.from(
|
|
5736
|
+
const tokens = Array.from(
|
|
5737
|
+
origRsp.matchAll(/"([^"]+)"|(\S+)/g),
|
|
5738
|
+
(m) => m[1] ?? m[2]
|
|
5739
|
+
).flatMap((token) => {
|
|
5740
|
+
const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(import_node_path10.default.basename(token))?.[1];
|
|
5741
|
+
if (!target || !staticClangTargets.includes(target) || import_node_path10.default.basename(import_node_path10.default.dirname(token)) !== ".peach-libraries")
|
|
5742
|
+
return [token];
|
|
5743
|
+
const objects = import_node_path10.default.join(directory, ".peach-native-libraries", `${target}.build`);
|
|
5744
|
+
import_node_fs9.default.mkdirSync(objects, { recursive: true });
|
|
5745
|
+
return readArMembers(import_node_fs9.default.readFileSync(token)).map((member, index) => {
|
|
5746
|
+
const file = import_node_path10.default.join(objects, `${index}-${import_node_path10.default.basename(member.name)}`);
|
|
5747
|
+
import_node_fs9.default.writeFileSync(file, member.bytes);
|
|
5748
|
+
return file;
|
|
5749
|
+
});
|
|
5750
|
+
});
|
|
5737
5751
|
if (!tokens.includes("--start-lib")) return;
|
|
5738
5752
|
const sdkFlag = tokens.find(
|
|
5739
5753
|
(t) => t.startsWith("-L") && t.endsWith("/swift_static/wasi")
|
|
@@ -5785,7 +5799,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5785
5799
|
} else if (!inStartLib) {
|
|
5786
5800
|
if (t.endsWith("/swiftrt.o")) {
|
|
5787
5801
|
swiftrtOrigPath = t;
|
|
5788
|
-
} else if (
|
|
5802
|
+
} else if (!t.endsWith(".swift.o") && staticClangTargets.some((name2) => t.includes(`/${name2}.build/`))) {
|
|
5789
5803
|
const obj = parseWasmObjectCached(t, false, false);
|
|
5790
5804
|
let definesObjCClassOrCategory = false;
|
|
5791
5805
|
for (let i = 0; i < obj.symKind.length; i++) {
|
|
@@ -10189,8 +10203,7 @@ function ambientHomeDir() {
|
|
|
10189
10203
|
}
|
|
10190
10204
|
function rnxHomeDir() {
|
|
10191
10205
|
const override = process.env[PEACH_HOME_ENV];
|
|
10192
|
-
|
|
10193
|
-
return ambientHomeDir();
|
|
10206
|
+
return override && override.length > 0 ? import_node_path17.default.resolve(override) : ambientHomeDir();
|
|
10194
10207
|
}
|
|
10195
10208
|
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
10196
10209
|
|
|
@@ -12454,7 +12467,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12454
12467
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12455
12468
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12456
12469
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12457
|
-
var compilerSourceDigest = true ? "
|
|
12470
|
+
var compilerSourceDigest = true ? "4fe13bc9a7fef541d09abfb87d6aa775bd9d830d442d6efa43a0e2d6bc34faf5" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12458
12471
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12459
12472
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12460
12473
|
hash.update(`swift-compile
|
|
@@ -16699,11 +16712,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16699
16712
|
])
|
|
16700
16713
|
];
|
|
16701
16714
|
const linked = builtArtifact(layout2);
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
|
|
16705
|
-
(0, import_node_fs25.rmSync)(linked, { force: true });
|
|
16706
|
-
}
|
|
16715
|
+
(0, import_node_fs25.rmSync)(import_node_path27.default.join(root, ".peach-link.rsp"), { force: true });
|
|
16716
|
+
if ((0, import_node_fs25.existsSync)(linked) && (0, import_node_fs25.statSync)(linked).size <= 8)
|
|
16717
|
+
(0, import_node_fs25.rmSync)(linked, { force: true });
|
|
16707
16718
|
report("compiling and linking Swift modules");
|
|
16708
16719
|
try {
|
|
16709
16720
|
const headerBuilds = preparation.headerProductTarget ? [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -5680,7 +5680,21 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5680
5680
|
const rspPath = path10.join(directory, ".peach-link.rsp");
|
|
5681
5681
|
if (!fs4.existsSync(rspPath)) return;
|
|
5682
5682
|
const origRsp = fs4.readFileSync(rspPath, "utf8");
|
|
5683
|
-
const tokens = Array.from(
|
|
5683
|
+
const tokens = Array.from(
|
|
5684
|
+
origRsp.matchAll(/"([^"]+)"|(\S+)/g),
|
|
5685
|
+
(m) => m[1] ?? m[2]
|
|
5686
|
+
).flatMap((token) => {
|
|
5687
|
+
const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(path10.basename(token))?.[1];
|
|
5688
|
+
if (!target || !staticClangTargets.includes(target) || path10.basename(path10.dirname(token)) !== ".peach-libraries")
|
|
5689
|
+
return [token];
|
|
5690
|
+
const objects = path10.join(directory, ".peach-native-libraries", `${target}.build`);
|
|
5691
|
+
fs4.mkdirSync(objects, { recursive: true });
|
|
5692
|
+
return readArMembers(fs4.readFileSync(token)).map((member, index) => {
|
|
5693
|
+
const file = path10.join(objects, `${index}-${path10.basename(member.name)}`);
|
|
5694
|
+
fs4.writeFileSync(file, member.bytes);
|
|
5695
|
+
return file;
|
|
5696
|
+
});
|
|
5697
|
+
});
|
|
5684
5698
|
if (!tokens.includes("--start-lib")) return;
|
|
5685
5699
|
const sdkFlag = tokens.find(
|
|
5686
5700
|
(t) => t.startsWith("-L") && t.endsWith("/swift_static/wasi")
|
|
@@ -5732,7 +5746,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5732
5746
|
} else if (!inStartLib) {
|
|
5733
5747
|
if (t.endsWith("/swiftrt.o")) {
|
|
5734
5748
|
swiftrtOrigPath = t;
|
|
5735
|
-
} else if (
|
|
5749
|
+
} else if (!t.endsWith(".swift.o") && staticClangTargets.some((name2) => t.includes(`/${name2}.build/`))) {
|
|
5736
5750
|
const obj = parseWasmObjectCached(t, false, false);
|
|
5737
5751
|
let definesObjCClassOrCategory = false;
|
|
5738
5752
|
for (let i = 0; i < obj.symKind.length; i++) {
|
|
@@ -10145,8 +10159,7 @@ function ambientHomeDir() {
|
|
|
10145
10159
|
}
|
|
10146
10160
|
function rnxHomeDir() {
|
|
10147
10161
|
const override = process.env[PEACH_HOME_ENV];
|
|
10148
|
-
|
|
10149
|
-
return ambientHomeDir();
|
|
10162
|
+
return override && override.length > 0 ? path18.resolve(override) : ambientHomeDir();
|
|
10150
10163
|
}
|
|
10151
10164
|
var DAEMON_LOCKFILE_MAX_BYTES = 16 * 1024;
|
|
10152
10165
|
|
|
@@ -12434,7 +12447,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12434
12447
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12435
12448
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12436
12449
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12437
|
-
var compilerSourceDigest = true ? "
|
|
12450
|
+
var compilerSourceDigest = true ? "4fe13bc9a7fef541d09abfb87d6aa775bd9d830d442d6efa43a0e2d6bc34faf5" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12438
12451
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12439
12452
|
const hash = createHash13("sha256");
|
|
12440
12453
|
hash.update(`swift-compile
|
|
@@ -16679,11 +16692,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16679
16692
|
])
|
|
16680
16693
|
];
|
|
16681
16694
|
const linked = builtArtifact(layout2);
|
|
16682
|
-
|
|
16683
|
-
|
|
16684
|
-
|
|
16685
|
-
rmSync6(linked, { force: true });
|
|
16686
|
-
}
|
|
16695
|
+
rmSync6(path27.join(root, ".peach-link.rsp"), { force: true });
|
|
16696
|
+
if (existsSync5(linked) && statSync2(linked).size <= 8)
|
|
16697
|
+
rmSync6(linked, { force: true });
|
|
16687
16698
|
report("compiling and linking Swift modules");
|
|
16688
16699
|
try {
|
|
16689
16700
|
const headerBuilds = preparation.headerProductTarget ? [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (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.2173 | (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.2173 | (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.2173 | (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/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2173 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "65a0698bf022ace2f4254f3f891828dedf403d61c102238e242084a2279e04eb", "home-paths.ts": "f5583b61f8bdd81823b3b29ff519a48daf9993719f194ddb7de22218472e90f9", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "5f41cd0bd86cb0cffbfb0047348b963f81d5e51cb0e8dd574c739b1a27aa56de", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -10412,7 +10412,21 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10412
10412
|
const rspPath = import_node_path10.default.join(directory, ".peach-link.rsp");
|
|
10413
10413
|
if (!import_node_fs10.default.existsSync(rspPath)) return;
|
|
10414
10414
|
const origRsp = import_node_fs10.default.readFileSync(rspPath, "utf8");
|
|
10415
|
-
const tokens2 = Array.from(
|
|
10415
|
+
const tokens2 = Array.from(
|
|
10416
|
+
origRsp.matchAll(/"([^"]+)"|(\S+)/g),
|
|
10417
|
+
(m) => m[1] ?? m[2]
|
|
10418
|
+
).flatMap((token) => {
|
|
10419
|
+
const target = /^lib(\w+)-[a-f0-9]{64}\.a$/.exec(import_node_path10.default.basename(token))?.[1];
|
|
10420
|
+
if (!target || !staticClangTargets.includes(target) || import_node_path10.default.basename(import_node_path10.default.dirname(token)) !== ".peach-libraries")
|
|
10421
|
+
return [token];
|
|
10422
|
+
const objects = import_node_path10.default.join(directory, ".peach-native-libraries", `${target}.build`);
|
|
10423
|
+
import_node_fs10.default.mkdirSync(objects, { recursive: true });
|
|
10424
|
+
return readArMembers(import_node_fs10.default.readFileSync(token)).map((member, index) => {
|
|
10425
|
+
const file = import_node_path10.default.join(objects, `${index}-${import_node_path10.default.basename(member.name)}`);
|
|
10426
|
+
import_node_fs10.default.writeFileSync(file, member.bytes);
|
|
10427
|
+
return file;
|
|
10428
|
+
});
|
|
10429
|
+
});
|
|
10416
10430
|
if (!tokens2.includes("--start-lib")) return;
|
|
10417
10431
|
const sdkFlag = tokens2.find(
|
|
10418
10432
|
(t) => t.startsWith("-L") && t.endsWith("/swift_static/wasi")
|
|
@@ -10464,7 +10478,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10464
10478
|
} else if (!inStartLib) {
|
|
10465
10479
|
if (t.endsWith("/swiftrt.o")) {
|
|
10466
10480
|
swiftrtOrigPath = t;
|
|
10467
|
-
} else if (
|
|
10481
|
+
} else if (!t.endsWith(".swift.o") && staticClangTargets.some((name3) => t.includes(`/${name3}.build/`))) {
|
|
10468
10482
|
const obj = parseWasmObjectCached(t, false, false);
|
|
10469
10483
|
let definesObjCClassOrCategory = false;
|
|
10470
10484
|
for (let i = 0; i < obj.symKind.length; i++) {
|
|
@@ -14897,8 +14911,7 @@ function ambientHomeDir() {
|
|
|
14897
14911
|
}
|
|
14898
14912
|
function rnxHomeDir() {
|
|
14899
14913
|
const override = process.env[PEACH_HOME_ENV];
|
|
14900
|
-
|
|
14901
|
-
return ambientHomeDir();
|
|
14914
|
+
return override && override.length > 0 ? import_node_path17.default.resolve(override) : ambientHomeDir();
|
|
14902
14915
|
}
|
|
14903
14916
|
function peachSwiftSdksDir() {
|
|
14904
14917
|
return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path17.default.join(rnxHomeDir(), "swift", "sdks");
|
|
@@ -17026,7 +17039,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
17026
17039
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
17027
17040
|
var MULTI_MANIFEST_VERSION = 68;
|
|
17028
17041
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
17029
|
-
var compilerSourceDigest = true ? "
|
|
17042
|
+
var compilerSourceDigest = true ? "4fe13bc9a7fef541d09abfb87d6aa775bd9d830d442d6efa43a0e2d6bc34faf5" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
17030
17043
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
17031
17044
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
17032
17045
|
hash.update(`swift-compile
|
|
@@ -21178,11 +21191,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
21178
21191
|
])
|
|
21179
21192
|
];
|
|
21180
21193
|
const linked = builtArtifact(layout2);
|
|
21181
|
-
|
|
21182
|
-
|
|
21183
|
-
|
|
21184
|
-
(0, import_node_fs27.rmSync)(linked, { force: true });
|
|
21185
|
-
}
|
|
21194
|
+
(0, import_node_fs27.rmSync)(import_node_path27.default.join(root, ".peach-link.rsp"), { force: true });
|
|
21195
|
+
if ((0, import_node_fs27.existsSync)(linked) && (0, import_node_fs27.statSync)(linked).size <= 8)
|
|
21196
|
+
(0, import_node_fs27.rmSync)(linked, { force: true });
|
|
21186
21197
|
report("compiling and linking Swift modules");
|
|
21187
21198
|
try {
|
|
21188
21199
|
const headerBuilds = preparation.headerProductTarget ? [
|
|
@@ -29500,6 +29511,9 @@ var import_node_fs39 = __toESM(require("node:fs"), 1);
|
|
|
29500
29511
|
var import_node_path40 = __toESM(require("node:path"), 1);
|
|
29501
29512
|
var import_node_util6 = require("node:util");
|
|
29502
29513
|
|
|
29514
|
+
// src/native-git.ts
|
|
29515
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29516
|
+
|
|
29503
29517
|
// src/numbered-lock.ts
|
|
29504
29518
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
29505
29519
|
|
|
@@ -30108,7 +30122,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
30108
30122
|
return hash.digest("hex");
|
|
30109
30123
|
}
|
|
30110
30124
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
30111
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
30125
|
+
var STANDIN_SOURCE_DIGEST = true ? "2cafa88ed6dca7afc4a60a09683b0395b95553c3677c2907ae7ce47fe4f45a73" : standinSourceDigest();
|
|
30112
30126
|
|
|
30113
30127
|
// src/swift-standins.ts
|
|
30114
30128
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|