peachsim 0.1.1918 → 0.1.1919
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +61 -16
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +60 -15
- 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 +61 -16
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +2 -2
- 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 +2 -2
- 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 +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +61 -16
- package/dist-lib/swift-compile.cjs +21 -8
- package/dist-lib/swift-compile.mjs +21 -8
- 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 +59 -14
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/swift-compile.ts +20 -3
- package/src/swift-guest-link.ts +3 -3
- package/src/swift-host.ts +53 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1919 | (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;
|
|
@@ -8780,7 +8780,7 @@ function linkGuestImages(options) {
|
|
|
8780
8780
|
);
|
|
8781
8781
|
const output = import_node_fs13.default.openSync(trace, "w");
|
|
8782
8782
|
try {
|
|
8783
|
-
(0, import_node_child_process10.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output, "
|
|
8783
|
+
(0, import_node_child_process10.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output, "pipe"] });
|
|
8784
8784
|
} finally {
|
|
8785
8785
|
import_node_fs13.default.closeSync(output);
|
|
8786
8786
|
}
|
|
@@ -9152,7 +9152,7 @@ function discoverGuestLinkInputs(options) {
|
|
|
9152
9152
|
const traceOutput = import_node_fs13.default.openSync(trace, "w");
|
|
9153
9153
|
try {
|
|
9154
9154
|
(0, import_node_child_process10.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
9155
|
-
stdio: ["ignore", traceOutput, "
|
|
9155
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
9156
9156
|
});
|
|
9157
9157
|
} finally {
|
|
9158
9158
|
import_node_fs13.default.closeSync(traceOutput);
|
|
@@ -9307,7 +9307,7 @@ function verifyGuestSymbolScopes(options) {
|
|
|
9307
9307
|
const traceOutput = import_node_fs13.default.openSync(tracePath, "w");
|
|
9308
9308
|
try {
|
|
9309
9309
|
(0, import_node_child_process10.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
9310
|
-
stdio: ["ignore", traceOutput, "
|
|
9310
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
9311
9311
|
});
|
|
9312
9312
|
} finally {
|
|
9313
9313
|
import_node_fs13.default.closeSync(traceOutput);
|
|
@@ -11380,7 +11380,7 @@ function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
|
|
|
11380
11380
|
if (declared.size === 0) return null;
|
|
11381
11381
|
return { declared, header: clangInterfaceHeader((0, import_node_fs23.readFileSync)(built, "utf8")) };
|
|
11382
11382
|
}
|
|
11383
|
-
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
|
|
11383
|
+
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
11384
11384
|
var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
11385
11385
|
...[
|
|
11386
11386
|
...header.matchAll(
|
|
@@ -12129,7 +12129,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12129
12129
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12130
12130
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12131
12131
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12132
|
-
var compilerSourceDigest = true ? "
|
|
12132
|
+
var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12133
12133
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12134
12134
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
12135
12135
|
hash.update(`swift-compile
|
|
@@ -14667,7 +14667,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
14667
14667
|
allowExisting: true
|
|
14668
14668
|
}
|
|
14669
14669
|
);
|
|
14670
|
-
const
|
|
14670
|
+
const stagedDir = import_node_path25.default.posix.dirname(file);
|
|
14671
|
+
const quoteDirs = [
|
|
14672
|
+
...stagedDir !== "." ? [stagedDir] : [],
|
|
14673
|
+
...origin && origin !== stagedDir ? [origin] : []
|
|
14674
|
+
];
|
|
14675
|
+
const quoteFlags = quoteDirs.flatMap((dir) => [
|
|
14676
|
+
"-iquote",
|
|
14677
|
+
import_node_path25.default.join(layout2.root, dir)
|
|
14678
|
+
]);
|
|
14671
14679
|
const perFile = [
|
|
14672
14680
|
...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
|
|
14673
14681
|
.../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
|
|
@@ -15416,6 +15424,9 @@ module ${moduleName}.Swift {
|
|
|
15416
15424
|
...producers.filter((name2) => !included.has(name2))
|
|
15417
15425
|
])
|
|
15418
15426
|
],
|
|
15427
|
+
emittedHeaderProducers: [
|
|
15428
|
+
.../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
|
|
15429
|
+
],
|
|
15419
15430
|
nativeHeaderDeclarations,
|
|
15420
15431
|
headerProductTarget,
|
|
15421
15432
|
targetFailures,
|
|
@@ -16342,7 +16353,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16342
16353
|
SWIFTPM_PROGRESS,
|
|
16343
16354
|
SWIFTPM_NOISE
|
|
16344
16355
|
);
|
|
16345
|
-
for (const producer of build === preparation.headerProductTarget ? preparation.
|
|
16356
|
+
for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
|
|
16357
|
+
(candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
|
|
16358
|
+
)) {
|
|
16346
16359
|
const emitted = import_node_path25.default.join(
|
|
16347
16360
|
root,
|
|
16348
16361
|
".build",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1919 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -8729,7 +8729,7 @@ function linkGuestImages(options) {
|
|
|
8729
8729
|
);
|
|
8730
8730
|
const output = fs5.openSync(trace, "w");
|
|
8731
8731
|
try {
|
|
8732
|
-
execFileSync7(wasmLd, [`@${response}`], { stdio: ["ignore", output, "
|
|
8732
|
+
execFileSync7(wasmLd, [`@${response}`], { stdio: ["ignore", output, "pipe"] });
|
|
8733
8733
|
} finally {
|
|
8734
8734
|
fs5.closeSync(output);
|
|
8735
8735
|
}
|
|
@@ -9101,7 +9101,7 @@ function discoverGuestLinkInputs(options) {
|
|
|
9101
9101
|
const traceOutput = fs5.openSync(trace, "w");
|
|
9102
9102
|
try {
|
|
9103
9103
|
execFileSync7(options.wasmLd, [`@${response}`], {
|
|
9104
|
-
stdio: ["ignore", traceOutput, "
|
|
9104
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
9105
9105
|
});
|
|
9106
9106
|
} finally {
|
|
9107
9107
|
fs5.closeSync(traceOutput);
|
|
@@ -9256,7 +9256,7 @@ function verifyGuestSymbolScopes(options) {
|
|
|
9256
9256
|
const traceOutput = fs5.openSync(tracePath, "w");
|
|
9257
9257
|
try {
|
|
9258
9258
|
execFileSync7(options.wasmLd, [`@${response}`], {
|
|
9259
|
-
stdio: ["ignore", traceOutput, "
|
|
9259
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
9260
9260
|
});
|
|
9261
9261
|
} finally {
|
|
9262
9262
|
fs5.closeSync(traceOutput);
|
|
@@ -11356,7 +11356,7 @@ function swiftModuleInterface(moduleRoot, name2, interfaceRoot) {
|
|
|
11356
11356
|
if (declared.size === 0) return null;
|
|
11357
11357
|
return { declared, header: clangInterfaceHeader(readFileSync16(built, "utf8")) };
|
|
11358
11358
|
}
|
|
11359
|
-
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
|
|
11359
|
+
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
11360
11360
|
var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
11361
11361
|
...[
|
|
11362
11362
|
...header.matchAll(
|
|
@@ -12105,7 +12105,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12105
12105
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12106
12106
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12107
12107
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12108
|
-
var compilerSourceDigest = true ? "
|
|
12108
|
+
var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12109
12109
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12110
12110
|
const hash = createHash13("sha256");
|
|
12111
12111
|
hash.update(`swift-compile
|
|
@@ -14643,7 +14643,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
14643
14643
|
allowExisting: true
|
|
14644
14644
|
}
|
|
14645
14645
|
);
|
|
14646
|
-
const
|
|
14646
|
+
const stagedDir = path25.posix.dirname(file);
|
|
14647
|
+
const quoteDirs = [
|
|
14648
|
+
...stagedDir !== "." ? [stagedDir] : [],
|
|
14649
|
+
...origin && origin !== stagedDir ? [origin] : []
|
|
14650
|
+
];
|
|
14651
|
+
const quoteFlags = quoteDirs.flatMap((dir) => [
|
|
14652
|
+
"-iquote",
|
|
14653
|
+
path25.join(layout2.root, dir)
|
|
14654
|
+
]);
|
|
14647
14655
|
const perFile = [
|
|
14648
14656
|
...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
|
|
14649
14657
|
.../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
|
|
@@ -15392,6 +15400,9 @@ module ${moduleName}.Swift {
|
|
|
15392
15400
|
...producers.filter((name2) => !included.has(name2))
|
|
15393
15401
|
])
|
|
15394
15402
|
],
|
|
15403
|
+
emittedHeaderProducers: [
|
|
15404
|
+
.../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
|
|
15405
|
+
],
|
|
15395
15406
|
nativeHeaderDeclarations,
|
|
15396
15407
|
headerProductTarget,
|
|
15397
15408
|
targetFailures,
|
|
@@ -16318,7 +16329,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16318
16329
|
SWIFTPM_PROGRESS,
|
|
16319
16330
|
SWIFTPM_NOISE
|
|
16320
16331
|
);
|
|
16321
|
-
for (const producer of build === preparation.headerProductTarget ? preparation.
|
|
16332
|
+
for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
|
|
16333
|
+
(candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
|
|
16334
|
+
)) {
|
|
16322
16335
|
const emitted = path25.join(
|
|
16323
16336
|
root,
|
|
16324
16337
|
".build",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1919 | (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.1919 | (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.1919 | (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.1919 | (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.1919 | (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;
|
|
@@ -13227,7 +13227,7 @@ function linkGuestImages(options) {
|
|
|
13227
13227
|
);
|
|
13228
13228
|
const output2 = import_node_fs14.default.openSync(trace, "w");
|
|
13229
13229
|
try {
|
|
13230
|
-
(0, import_node_child_process11.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "
|
|
13230
|
+
(0, import_node_child_process11.execFileSync)(wasmLd, [`@${response}`], { stdio: ["ignore", output2, "pipe"] });
|
|
13231
13231
|
} finally {
|
|
13232
13232
|
import_node_fs14.default.closeSync(output2);
|
|
13233
13233
|
}
|
|
@@ -13599,7 +13599,7 @@ function discoverGuestLinkInputs(options) {
|
|
|
13599
13599
|
const traceOutput = import_node_fs14.default.openSync(trace, "w");
|
|
13600
13600
|
try {
|
|
13601
13601
|
(0, import_node_child_process11.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
13602
|
-
stdio: ["ignore", traceOutput, "
|
|
13602
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
13603
13603
|
});
|
|
13604
13604
|
} finally {
|
|
13605
13605
|
import_node_fs14.default.closeSync(traceOutput);
|
|
@@ -13754,7 +13754,7 @@ function verifyGuestSymbolScopes(options) {
|
|
|
13754
13754
|
const traceOutput = import_node_fs14.default.openSync(tracePath, "w");
|
|
13755
13755
|
try {
|
|
13756
13756
|
(0, import_node_child_process11.execFileSync)(options.wasmLd, [`@${response}`], {
|
|
13757
|
-
stdio: ["ignore", traceOutput, "
|
|
13757
|
+
stdio: ["ignore", traceOutput, "pipe"]
|
|
13758
13758
|
});
|
|
13759
13759
|
} finally {
|
|
13760
13760
|
import_node_fs14.default.closeSync(traceOutput);
|
|
@@ -15697,7 +15697,7 @@ function swiftModuleInterface(moduleRoot, name3, interfaceRoot) {
|
|
|
15697
15697
|
if (declared.size === 0) return null;
|
|
15698
15698
|
return { declared, header: clangInterfaceHeader((0, import_node_fs25.readFileSync)(built2, "utf8")) };
|
|
15699
15699
|
}
|
|
15700
|
-
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1");
|
|
15700
|
+
var clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import CoreFoundation;$/gm, "@import Foundation;").replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
15701
15701
|
var swiftInterfaceDeclarations = (header) => /* @__PURE__ */ new Set([
|
|
15702
15702
|
...[
|
|
15703
15703
|
...header.matchAll(
|
|
@@ -16442,7 +16442,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16442
16442
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16443
16443
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16444
16444
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16445
|
-
var compilerSourceDigest = true ? "
|
|
16445
|
+
var compilerSourceDigest = true ? "339c260e88fc3a8f330131082230e5cc084a7a3148c6c57fe58efe33d02096c6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16446
16446
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16447
16447
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
16448
16448
|
hash.update(`swift-compile
|
|
@@ -18887,7 +18887,15 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
18887
18887
|
allowExisting: true
|
|
18888
18888
|
}
|
|
18889
18889
|
);
|
|
18890
|
-
const
|
|
18890
|
+
const stagedDir = import_node_path25.default.posix.dirname(file);
|
|
18891
|
+
const quoteDirs = [
|
|
18892
|
+
...stagedDir !== "." ? [stagedDir] : [],
|
|
18893
|
+
...origin && origin !== stagedDir ? [origin] : []
|
|
18894
|
+
];
|
|
18895
|
+
const quoteFlags = quoteDirs.flatMap((dir) => [
|
|
18896
|
+
"-iquote",
|
|
18897
|
+
import_node_path25.default.join(layout2.root, dir)
|
|
18898
|
+
]);
|
|
18891
18899
|
const perFile = [
|
|
18892
18900
|
...file.endsWith(".c") && swiftWholeFileArm64Guard(contents) ? ["-D__arm64__=1"] : [],
|
|
18893
18901
|
.../\.mm?$/.test(file) ? ["-fobjc-exceptions"] : [],
|
|
@@ -19636,6 +19644,9 @@ module ${moduleName}.Swift {
|
|
|
19636
19644
|
...producers.filter((name3) => !included.has(name3))
|
|
19637
19645
|
])
|
|
19638
19646
|
],
|
|
19647
|
+
emittedHeaderProducers: [
|
|
19648
|
+
.../* @__PURE__ */ new Set([...Object.keys(nativeHeaderDeclarations), ...producers])
|
|
19649
|
+
],
|
|
19639
19650
|
nativeHeaderDeclarations,
|
|
19640
19651
|
headerProductTarget,
|
|
19641
19652
|
targetFailures,
|
|
@@ -20562,7 +20573,9 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20562
20573
|
SWIFTPM_PROGRESS,
|
|
20563
20574
|
SWIFTPM_NOISE
|
|
20564
20575
|
);
|
|
20565
|
-
for (const producer of build === preparation.headerProductTarget ? preparation.
|
|
20576
|
+
for (const producer of build === preparation.headerProductTarget ? preparation.emittedHeaderProducers : preparation.emittedHeaderProducers.filter(
|
|
20577
|
+
(candidate) => candidate === build || !preparation.headerProducers.includes(candidate)
|
|
20578
|
+
)) {
|
|
20566
20579
|
const emitted = import_node_path25.default.join(
|
|
20567
20580
|
root,
|
|
20568
20581
|
".build",
|
|
@@ -29587,7 +29600,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29587
29600
|
return hash.digest("hex");
|
|
29588
29601
|
}
|
|
29589
29602
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29590
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29603
|
+
var STANDIN_SOURCE_DIGEST = true ? "730d33af8983472f094e25750b3ec98a16e2c11f302d5fe81577928991efa489" : standinSourceDigest();
|
|
29591
29604
|
|
|
29592
29605
|
// src/swift-standins.ts
|
|
29593
29606
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -34399,12 +34412,44 @@ async function buildXcodeLayout(root) {
|
|
|
34399
34412
|
for (const framework of app.frameworks) {
|
|
34400
34413
|
const target = targets.find((target2) => target2.name === frameworkNames.get(framework));
|
|
34401
34414
|
if (!target) continue;
|
|
34402
|
-
|
|
34403
|
-
|
|
34404
|
-
|
|
34405
|
-
|
|
34415
|
+
const productLinks = packages.sourceLinks.owners.find((owner) => owner.module === framework.moduleName)?.products ?? [];
|
|
34416
|
+
target.dependencies = [
|
|
34417
|
+
...framework.targetDependencies.flatMap(
|
|
34418
|
+
(identity2) => app.frameworks.filter((dependency) => dependency.targetIdentity === identity2).flatMap((dependency) => {
|
|
34419
|
+
const name3 = frameworkNames.get(dependency);
|
|
34420
|
+
return name3 ? [{ kind: "target", name: name3 }] : [];
|
|
34421
|
+
})
|
|
34422
|
+
),
|
|
34423
|
+
...productLinks.flatMap(({ target: productId }) => {
|
|
34424
|
+
const product = packages.sourceLinks.targets.find((item) => item.id === productId);
|
|
34425
|
+
return (product?.dependencies ?? []).flatMap(({ target: targetId }) => {
|
|
34426
|
+
const item = packages.sourceLinks.targets.find((node) => node.id === targetId);
|
|
34427
|
+
if (!item) return [];
|
|
34428
|
+
if (item.sourceTarget)
|
|
34429
|
+
return [
|
|
34430
|
+
{ kind: "target", name: item.sourceTarget }
|
|
34431
|
+
];
|
|
34432
|
+
return item.productType === "swiftpm.target.binary" ? standins.filter((standin) => standin.target === item.productName).map(
|
|
34433
|
+
(standin) => ({
|
|
34434
|
+
kind: "target",
|
|
34435
|
+
name: standin.module
|
|
34436
|
+
})
|
|
34437
|
+
) : [];
|
|
34438
|
+
});
|
|
34439
|
+
}),
|
|
34440
|
+
...(framework.packageProducts ?? []).flatMap(({ product, source }) => {
|
|
34441
|
+
const native = packages.nativeProducts.find(
|
|
34442
|
+
({ name: name3, source: origin }) => name3 === product && (source.kind === "unnamed" || origin === (source.kind === "remote" ? source.url : import_node_path51.default.resolve(source.dir)))
|
|
34443
|
+
);
|
|
34444
|
+
return native ? [
|
|
34445
|
+
{
|
|
34446
|
+
kind: "product",
|
|
34447
|
+
name: native.name,
|
|
34448
|
+
package: native.packageDir
|
|
34449
|
+
}
|
|
34450
|
+
] : [];
|
|
34406
34451
|
})
|
|
34407
|
-
|
|
34452
|
+
];
|
|
34408
34453
|
}
|
|
34409
34454
|
const packagePaths = /* @__PURE__ */ new Map();
|
|
34410
34455
|
const packageFiles2 = /* @__PURE__ */ new Map();
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1919 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1919 | (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/package.json
CHANGED
package/src/swift-compile.ts
CHANGED
|
@@ -423,6 +423,7 @@ const clangInterfaceHeader = (header: string): string =>
|
|
|
423
423
|
.replace(/^@import (?:UIKitCore|UIKitText);$/gm, '@import UIKit;')
|
|
424
424
|
.replace(/^@import CoreFoundation;$/gm, '@import Foundation;')
|
|
425
425
|
.replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, '$1')
|
|
426
|
+
.replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, '')
|
|
426
427
|
|
|
427
428
|
/** the Objective-C protocols and classes a generated interface header defines. */
|
|
428
429
|
const swiftInterfaceDeclarations = (header: string): Set<string> =>
|
|
@@ -4229,6 +4230,7 @@ export function writeSwiftProject(
|
|
|
4229
4230
|
moduleRoot: string,
|
|
4230
4231
|
prebuilt?: SwiftFrameworkProducts,
|
|
4231
4232
|
): SwiftProjectPreparation & {
|
|
4233
|
+
emittedHeaderProducers: string[]
|
|
4232
4234
|
generatedOwners: Map<string, string>
|
|
4233
4235
|
targetToolset: boolean
|
|
4234
4236
|
} {
|
|
@@ -4950,7 +4952,15 @@ export function writeSwiftProject(
|
|
|
4950
4952
|
)
|
|
4951
4953
|
// a relocated unit still searches its original containing directory
|
|
4952
4954
|
// before quoted header maps and configured user search paths.
|
|
4953
|
-
const
|
|
4955
|
+
const stagedDir = path.posix.dirname(file)
|
|
4956
|
+
const quoteDirs = [
|
|
4957
|
+
...(stagedDir !== '.' ? [stagedDir] : []),
|
|
4958
|
+
...(origin && origin !== stagedDir ? [origin] : []),
|
|
4959
|
+
]
|
|
4960
|
+
const quoteFlags = quoteDirs.flatMap((dir) => [
|
|
4961
|
+
'-iquote',
|
|
4962
|
+
path.join(layout.root, dir),
|
|
4963
|
+
])
|
|
4954
4964
|
const perFile = [
|
|
4955
4965
|
...(file.endsWith('.c') && swiftWholeFileArm64Guard(contents)
|
|
4956
4966
|
? ['-D__arm64__=1']
|
|
@@ -5861,6 +5871,9 @@ export function writeSwiftProject(
|
|
|
5861
5871
|
...producers.filter((name) => !included.has(name)),
|
|
5862
5872
|
]),
|
|
5863
5873
|
],
|
|
5874
|
+
emittedHeaderProducers: [
|
|
5875
|
+
...new Set([...Object.keys(nativeHeaderDeclarations), ...producers]),
|
|
5876
|
+
],
|
|
5864
5877
|
nativeHeaderDeclarations,
|
|
5865
5878
|
headerProductTarget,
|
|
5866
5879
|
targetFailures,
|
|
@@ -7085,8 +7098,12 @@ function compileSwiftProjectOnce(
|
|
|
7085
7098
|
SWIFTPM_NOISE,
|
|
7086
7099
|
)
|
|
7087
7100
|
for (const producer of build === preparation.headerProductTarget
|
|
7088
|
-
? preparation.
|
|
7089
|
-
:
|
|
7101
|
+
? preparation.emittedHeaderProducers
|
|
7102
|
+
: preparation.emittedHeaderProducers.filter(
|
|
7103
|
+
(candidate) =>
|
|
7104
|
+
candidate === build ||
|
|
7105
|
+
!preparation.headerProducers.includes(candidate),
|
|
7106
|
+
)) {
|
|
7090
7107
|
const emitted = path.join(
|
|
7091
7108
|
root,
|
|
7092
7109
|
'.build',
|
package/src/swift-guest-link.ts
CHANGED
|
@@ -336,7 +336,7 @@ export function linkGuestImages(
|
|
|
336
336
|
)
|
|
337
337
|
const output = fs.openSync(trace, 'w')
|
|
338
338
|
try {
|
|
339
|
-
execFileSync(wasmLd, [`@${response}`], { stdio: ['ignore', output, '
|
|
339
|
+
execFileSync(wasmLd, [`@${response}`], { stdio: ['ignore', output, 'pipe'] })
|
|
340
340
|
} finally {
|
|
341
341
|
fs.closeSync(output)
|
|
342
342
|
}
|
|
@@ -760,7 +760,7 @@ export function discoverGuestLinkInputs(options: {
|
|
|
760
760
|
const traceOutput = fs.openSync(trace, 'w')
|
|
761
761
|
try {
|
|
762
762
|
execFileSync(options.wasmLd, [`@${response}`], {
|
|
763
|
-
stdio: ['ignore', traceOutput, '
|
|
763
|
+
stdio: ['ignore', traceOutput, 'pipe'],
|
|
764
764
|
})
|
|
765
765
|
} finally {
|
|
766
766
|
fs.closeSync(traceOutput)
|
|
@@ -988,7 +988,7 @@ export function verifyGuestSymbolScopes(options: {
|
|
|
988
988
|
const traceOutput = fs.openSync(tracePath, 'w')
|
|
989
989
|
try {
|
|
990
990
|
execFileSync(options.wasmLd, [`@${response}`], {
|
|
991
|
-
stdio: ['ignore', traceOutput, '
|
|
991
|
+
stdio: ['ignore', traceOutput, 'pipe'],
|
|
992
992
|
})
|
|
993
993
|
} finally {
|
|
994
994
|
fs.closeSync(traceOutput)
|
package/src/swift-host.ts
CHANGED
|
@@ -872,14 +872,59 @@ async function buildXcodeLayout(root: string): Promise<XcodeLayout | null> {
|
|
|
872
872
|
for (const framework of app.frameworks) {
|
|
873
873
|
const target = targets.find((target) => target.name === frameworkNames.get(framework))
|
|
874
874
|
if (!target) continue
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
875
|
+
const productLinks =
|
|
876
|
+
packages.sourceLinks.owners.find((owner) => owner.module === framework.moduleName)
|
|
877
|
+
?.products ?? []
|
|
878
|
+
target.dependencies = [
|
|
879
|
+
...framework.targetDependencies.flatMap((identity) =>
|
|
880
|
+
app.frameworks
|
|
881
|
+
.filter((dependency) => dependency.targetIdentity === identity)
|
|
882
|
+
.flatMap((dependency) => {
|
|
883
|
+
const name = frameworkNames.get(dependency)
|
|
884
|
+
return name ? [{ kind: 'target', name } satisfies SwiftTargetDependency] : []
|
|
885
|
+
}),
|
|
886
|
+
),
|
|
887
|
+
...productLinks.flatMap(({ target: productId }) => {
|
|
888
|
+
const product = packages.sourceLinks.targets.find((item) => item.id === productId)
|
|
889
|
+
return (product?.dependencies ?? []).flatMap(({ target: targetId }) => {
|
|
890
|
+
const item = packages.sourceLinks.targets.find((node) => node.id === targetId)
|
|
891
|
+
if (!item) return []
|
|
892
|
+
if (item.sourceTarget)
|
|
893
|
+
return [
|
|
894
|
+
{ kind: 'target', name: item.sourceTarget } satisfies SwiftTargetDependency,
|
|
895
|
+
]
|
|
896
|
+
return item.productType === 'swiftpm.target.binary'
|
|
897
|
+
? standins
|
|
898
|
+
.filter((standin) => standin.target === item.productName)
|
|
899
|
+
.map(
|
|
900
|
+
(standin) =>
|
|
901
|
+
({
|
|
902
|
+
kind: 'target',
|
|
903
|
+
name: standin.module,
|
|
904
|
+
}) satisfies SwiftTargetDependency,
|
|
905
|
+
)
|
|
906
|
+
: []
|
|
907
|
+
})
|
|
908
|
+
}),
|
|
909
|
+
...(framework.packageProducts ?? []).flatMap(({ product, source }) => {
|
|
910
|
+
const native = packages.nativeProducts.find(
|
|
911
|
+
({ name, source: origin }) =>
|
|
912
|
+
name === product &&
|
|
913
|
+
(source.kind === 'unnamed' ||
|
|
914
|
+
origin ===
|
|
915
|
+
(source.kind === 'remote' ? source.url : path.resolve(source.dir))),
|
|
916
|
+
)
|
|
917
|
+
return native
|
|
918
|
+
? [
|
|
919
|
+
{
|
|
920
|
+
kind: 'product',
|
|
921
|
+
name: native.name,
|
|
922
|
+
package: native.packageDir,
|
|
923
|
+
} satisfies SwiftTargetDependency,
|
|
924
|
+
]
|
|
925
|
+
: []
|
|
926
|
+
}),
|
|
927
|
+
]
|
|
883
928
|
}
|
|
884
929
|
const packagePaths = new Map<string, string>()
|
|
885
930
|
const packageFiles = new Map<string, string>()
|