peachsim 0.1.1902 → 0.1.1905
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/commands/record.ts +78 -43
- 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 +97 -40
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +2 -1
- package/dist-lib/cloud-contract.mjs +2 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +3 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +91 -34
- 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 +98 -40
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +4 -3
- 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 +3 -3
- 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 +99 -41
- package/dist-lib/swift-compile.cjs +31 -18
- package/dist-lib/swift-compile.mjs +30 -18
- 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 +30 -20
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +1 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/usr/include/darwin.modulemap +430 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/src/bridge-contract.ts +25 -0
- package/src/cloud-contract.ts +1 -0
- package/src/expo-native-workspace.ts +31 -3
- package/src/expo-swift-host.ts +18 -8
- package/src/expo-workspace-exclusion.ts +15 -1
- package/src/nitro-adapter.lock.json +400 -1360
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-compile.ts +14 -14
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-host.ts +2 -1
- package/src/swift-shared-sdk.ts +12 -7
- package/src/swift-wasm-prune.ts +9 -1
- package/src/turbo-runtime.lock.json +20 -48
- package/src/workspace-root.ts +31 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1905 | (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;
|
|
@@ -41,6 +41,7 @@ __export(swift_compile_exports, {
|
|
|
41
41
|
clearLinkedModuleDigests: () => clearLinkedModuleDigests,
|
|
42
42
|
compileSwiftProjectUnit: () => compileSwiftProjectUnit,
|
|
43
43
|
compileTargets: () => compileTargets,
|
|
44
|
+
compilerSourceDigest: () => compilerSourceDigest,
|
|
44
45
|
emitSwiftPackageManifest: () => emitSwiftPackageManifest,
|
|
45
46
|
ensureMacroPlugins: () => ensureMacroPlugins,
|
|
46
47
|
foundationOwnerOf: () => foundationOwnerOf,
|
|
@@ -4114,7 +4115,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4114
4115
|
const overlay = import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
|
|
4115
4116
|
const overlayFiles = (0, import_node_fs7.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path8.default.join(entry.parentPath, entry.name)).sort();
|
|
4116
4117
|
const key = JSON.stringify([
|
|
4117
|
-
"
|
|
4118
|
+
"v18",
|
|
4118
4119
|
toolchainBin,
|
|
4119
4120
|
sdk,
|
|
4120
4121
|
frameworks,
|
|
@@ -4157,12 +4158,17 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4157
4158
|
const realRoot = import_node_path8.default.dirname(bundle);
|
|
4158
4159
|
const overrides = new Map([
|
|
4159
4160
|
[import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
4160
|
-
...[
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4161
|
+
...[
|
|
4162
|
+
"MacTypes.h",
|
|
4163
|
+
"net/if.h",
|
|
4164
|
+
"notify.h",
|
|
4165
|
+
"notify.modulemap",
|
|
4166
|
+
"module.modulemap",
|
|
4167
|
+
"darwin.modulemap"
|
|
4168
|
+
].map((header) => [
|
|
4169
|
+
import_node_path8.default.join(sysroot, "darwin/usr/include", header),
|
|
4170
|
+
import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
|
|
4171
|
+
])
|
|
4166
4172
|
]);
|
|
4167
4173
|
for (const file of overlayFiles) {
|
|
4168
4174
|
overrides.set(
|
|
@@ -5712,6 +5718,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5712
5718
|
} else {
|
|
5713
5719
|
eagerFiles.push(t);
|
|
5714
5720
|
}
|
|
5721
|
+
} else {
|
|
5722
|
+
lazyBuildObjects.set(t, parseWasmObjectCached(t, false, false));
|
|
5715
5723
|
}
|
|
5716
5724
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm32.a") && import_node_fs9.default.existsSync(t)) {
|
|
5717
5725
|
const members = readArMembers(new Uint8Array(import_node_fs9.default.readFileSync(t)));
|
|
@@ -6470,7 +6478,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6470
6478
|
outTokens.push("--end-lib");
|
|
6471
6479
|
continue;
|
|
6472
6480
|
}
|
|
6473
|
-
if (inStartLib)
|
|
6481
|
+
if (inStartLib) {
|
|
6482
|
+
if (lazyBuildObjects.has(t) && extractedObjs.has(lazyBuildObjects.get(t)))
|
|
6483
|
+
outTokens.push(t);
|
|
6484
|
+
continue;
|
|
6485
|
+
}
|
|
6474
6486
|
if (lazyBuildObjects.has(t)) {
|
|
6475
6487
|
if (extractedObjs.has(lazyBuildObjects.get(t))) outTokens.push(t);
|
|
6476
6488
|
} else if (t === swiftrtOrigPath && patchedSwiftrtPath) {
|
|
@@ -12086,7 +12098,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12086
12098
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12087
12099
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12088
12100
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12089
|
-
var compilerSourceDigest = true ? "
|
|
12101
|
+
var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12090
12102
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12091
12103
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
12092
12104
|
hash.update(`swift-compile
|
|
@@ -12239,9 +12251,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
12239
12251
|
foundationCategoryObjects.map((name2) => `lib/Foundation-${name2}.o`)
|
|
12240
12252
|
);
|
|
12241
12253
|
const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
|
|
12242
|
-
const eager =
|
|
12254
|
+
const eager = new Set(
|
|
12243
12255
|
objects.filter((object3) => roots.has(object3) || categoryObjects.has(object3))
|
|
12244
|
-
)
|
|
12256
|
+
);
|
|
12245
12257
|
const list = [
|
|
12246
12258
|
...[...eager].map(quoted),
|
|
12247
12259
|
"-Wl,--start-lib",
|
|
@@ -15227,8 +15239,7 @@ module ${moduleName}.Swift {
|
|
|
15227
15239
|
distributionLink: {
|
|
15228
15240
|
path: import_node_path25.default.join(layout2.root, ".peach-distribution-objects.rsp"),
|
|
15229
15241
|
files
|
|
15230
|
-
}
|
|
15231
|
-
lazyDistribution: input.optimize
|
|
15242
|
+
}
|
|
15232
15243
|
} : {},
|
|
15233
15244
|
...prebuilt && frameworkLink ? {
|
|
15234
15245
|
prebuilt: {
|
|
@@ -15856,7 +15867,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15856
15867
|
linked.owners.set(object3, "Foundation");
|
|
15857
15868
|
}
|
|
15858
15869
|
const providerDir = import_node_path25.default.join(scratch2, "darwin-records");
|
|
15859
|
-
|
|
15870
|
+
const providerStamp = import_node_path25.default.join(providerDir, ".complete");
|
|
15871
|
+
if (!(0, import_node_fs23.existsSync)(providerStamp) || (0, import_node_fs23.readFileSync)(providerStamp, "utf8") !== args.frameworkKey) {
|
|
15860
15872
|
(0, import_node_fs23.rmSync)(providerDir, { recursive: true, force: true });
|
|
15861
15873
|
(0, import_node_fs23.mkdirSync)(providerDir);
|
|
15862
15874
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
@@ -15868,7 +15880,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15868
15880
|
minimum: darwinRecordsMinimum(),
|
|
15869
15881
|
out: providerDir
|
|
15870
15882
|
});
|
|
15871
|
-
(0, import_node_fs23.writeFileSync)(
|
|
15883
|
+
(0, import_node_fs23.writeFileSync)(providerStamp, args.frameworkKey);
|
|
15872
15884
|
}
|
|
15873
15885
|
const providers = (0, import_node_fs23.readdirSync)(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => import_node_path25.default.join(providerDir, file));
|
|
15874
15886
|
for (const provider of providers) linked.owners.set(provider, "DarwinRecords");
|
|
@@ -16171,7 +16183,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16171
16183
|
process.env.LD_LIBRARY_PATH
|
|
16172
16184
|
].filter(Boolean).join(":")
|
|
16173
16185
|
} : {},
|
|
16174
|
-
|
|
16186
|
+
PEACH_DEFER_WASM_LINK: "1"
|
|
16175
16187
|
},
|
|
16176
16188
|
maxBuffer: 64 * 1024 * 1024,
|
|
16177
16189
|
timeout: options.timeoutMs,
|
|
@@ -16398,7 +16410,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16398
16410
|
);
|
|
16399
16411
|
}
|
|
16400
16412
|
if (options.project) removeProjectLinks(root);
|
|
16401
|
-
if (
|
|
16413
|
+
if (!guestGraph)
|
|
16402
16414
|
pruneSwiftWasmLink(
|
|
16403
16415
|
root,
|
|
16404
16416
|
options.toolchainBin,
|
|
@@ -16451,6 +16463,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16451
16463
|
clearLinkedModuleDigests,
|
|
16452
16464
|
compileSwiftProjectUnit,
|
|
16453
16465
|
compileTargets,
|
|
16466
|
+
compilerSourceDigest,
|
|
16454
16467
|
emitSwiftPackageManifest,
|
|
16455
16468
|
ensureMacroPlugins,
|
|
16456
16469
|
foundationOwnerOf,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1905 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -4063,7 +4063,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4063
4063
|
const overlay = path8.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
|
|
4064
4064
|
const overlayFiles = readdirSync4(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => path8.join(entry.parentPath, entry.name)).sort();
|
|
4065
4065
|
const key = JSON.stringify([
|
|
4066
|
-
"
|
|
4066
|
+
"v18",
|
|
4067
4067
|
toolchainBin,
|
|
4068
4068
|
sdk,
|
|
4069
4069
|
frameworks,
|
|
@@ -4106,12 +4106,17 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
4106
4106
|
const realRoot = path8.dirname(bundle);
|
|
4107
4107
|
const overrides = new Map([
|
|
4108
4108
|
[path8.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
4109
|
-
...[
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4109
|
+
...[
|
|
4110
|
+
"MacTypes.h",
|
|
4111
|
+
"net/if.h",
|
|
4112
|
+
"notify.h",
|
|
4113
|
+
"notify.modulemap",
|
|
4114
|
+
"module.modulemap",
|
|
4115
|
+
"darwin.modulemap"
|
|
4116
|
+
].map((header) => [
|
|
4117
|
+
path8.join(sysroot, "darwin/usr/include", header),
|
|
4118
|
+
path8.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
|
|
4119
|
+
])
|
|
4115
4120
|
]);
|
|
4116
4121
|
for (const file of overlayFiles) {
|
|
4117
4122
|
overrides.set(
|
|
@@ -5661,6 +5666,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
5661
5666
|
} else {
|
|
5662
5667
|
eagerFiles.push(t);
|
|
5663
5668
|
}
|
|
5669
|
+
} else {
|
|
5670
|
+
lazyBuildObjects.set(t, parseWasmObjectCached(t, false, false));
|
|
5664
5671
|
}
|
|
5665
5672
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm32.a") && fs4.existsSync(t)) {
|
|
5666
5673
|
const members = readArMembers(new Uint8Array(fs4.readFileSync(t)));
|
|
@@ -6419,7 +6426,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
6419
6426
|
outTokens.push("--end-lib");
|
|
6420
6427
|
continue;
|
|
6421
6428
|
}
|
|
6422
|
-
if (inStartLib)
|
|
6429
|
+
if (inStartLib) {
|
|
6430
|
+
if (lazyBuildObjects.has(t) && extractedObjs.has(lazyBuildObjects.get(t)))
|
|
6431
|
+
outTokens.push(t);
|
|
6432
|
+
continue;
|
|
6433
|
+
}
|
|
6423
6434
|
if (lazyBuildObjects.has(t)) {
|
|
6424
6435
|
if (extractedObjs.has(lazyBuildObjects.get(t))) outTokens.push(t);
|
|
6425
6436
|
} else if (t === swiftrtOrigPath && patchedSwiftrtPath) {
|
|
@@ -12063,7 +12074,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12063
12074
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12064
12075
|
var MULTI_MANIFEST_VERSION = 66;
|
|
12065
12076
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12066
|
-
var compilerSourceDigest = true ? "
|
|
12077
|
+
var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12067
12078
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12068
12079
|
const hash = createHash13("sha256");
|
|
12069
12080
|
hash.update(`swift-compile
|
|
@@ -12216,9 +12227,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
12216
12227
|
foundationCategoryObjects.map((name2) => `lib/Foundation-${name2}.o`)
|
|
12217
12228
|
);
|
|
12218
12229
|
const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
|
|
12219
|
-
const eager =
|
|
12230
|
+
const eager = new Set(
|
|
12220
12231
|
objects.filter((object3) => roots.has(object3) || categoryObjects.has(object3))
|
|
12221
|
-
)
|
|
12232
|
+
);
|
|
12222
12233
|
const list = [
|
|
12223
12234
|
...[...eager].map(quoted),
|
|
12224
12235
|
"-Wl,--start-lib",
|
|
@@ -15204,8 +15215,7 @@ module ${moduleName}.Swift {
|
|
|
15204
15215
|
distributionLink: {
|
|
15205
15216
|
path: path25.join(layout2.root, ".peach-distribution-objects.rsp"),
|
|
15206
15217
|
files
|
|
15207
|
-
}
|
|
15208
|
-
lazyDistribution: input.optimize
|
|
15218
|
+
}
|
|
15209
15219
|
} : {},
|
|
15210
15220
|
...prebuilt && frameworkLink ? {
|
|
15211
15221
|
prebuilt: {
|
|
@@ -15833,7 +15843,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15833
15843
|
linked.owners.set(object3, "Foundation");
|
|
15834
15844
|
}
|
|
15835
15845
|
const providerDir = path25.join(scratch2, "darwin-records");
|
|
15836
|
-
|
|
15846
|
+
const providerStamp = path25.join(providerDir, ".complete");
|
|
15847
|
+
if (!existsSync4(providerStamp) || readFileSync16(providerStamp, "utf8") !== args.frameworkKey) {
|
|
15837
15848
|
rmSync6(providerDir, { recursive: true, force: true });
|
|
15838
15849
|
mkdirSync6(providerDir);
|
|
15839
15850
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
@@ -15845,7 +15856,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
15845
15856
|
minimum: darwinRecordsMinimum(),
|
|
15846
15857
|
out: providerDir
|
|
15847
15858
|
});
|
|
15848
|
-
writeFileSync7(
|
|
15859
|
+
writeFileSync7(providerStamp, args.frameworkKey);
|
|
15849
15860
|
}
|
|
15850
15861
|
const providers = readdirSync8(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => path25.join(providerDir, file));
|
|
15851
15862
|
for (const provider of providers) linked.owners.set(provider, "DarwinRecords");
|
|
@@ -16148,7 +16159,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16148
16159
|
process.env.LD_LIBRARY_PATH
|
|
16149
16160
|
].filter(Boolean).join(":")
|
|
16150
16161
|
} : {},
|
|
16151
|
-
|
|
16162
|
+
PEACH_DEFER_WASM_LINK: "1"
|
|
16152
16163
|
},
|
|
16153
16164
|
maxBuffer: 64 * 1024 * 1024,
|
|
16154
16165
|
timeout: options.timeoutMs,
|
|
@@ -16375,7 +16386,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
16375
16386
|
);
|
|
16376
16387
|
}
|
|
16377
16388
|
if (options.project) removeProjectLinks(root);
|
|
16378
|
-
if (
|
|
16389
|
+
if (!guestGraph)
|
|
16379
16390
|
pruneSwiftWasmLink(
|
|
16380
16391
|
root,
|
|
16381
16392
|
options.toolchainBin,
|
|
@@ -16427,6 +16438,7 @@ export {
|
|
|
16427
16438
|
clearLinkedModuleDigests,
|
|
16428
16439
|
compileSwiftProjectUnit,
|
|
16429
16440
|
compileTargets,
|
|
16441
|
+
compilerSourceDigest,
|
|
16430
16442
|
emitSwiftPackageManifest,
|
|
16431
16443
|
ensureMacroPlugins,
|
|
16432
16444
|
foundationOwnerOf,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1905 | (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.1905 | (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.1905 | (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.1905 | (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.1905 | (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;
|
|
@@ -8470,7 +8470,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
8470
8470
|
const overlay = import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "wasm/include");
|
|
8471
8471
|
const overlayFiles = (0, import_node_fs8.readdirSync)(overlay, { recursive: true, withFileTypes: true }).filter((entry) => entry.isFile()).map((entry) => import_node_path8.default.join(entry.parentPath, entry.name)).sort();
|
|
8472
8472
|
const key2 = JSON.stringify([
|
|
8473
|
-
"
|
|
8473
|
+
"v18",
|
|
8474
8474
|
toolchainBin,
|
|
8475
8475
|
sdk,
|
|
8476
8476
|
frameworks,
|
|
@@ -8513,12 +8513,17 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
|
|
|
8513
8513
|
const realRoot = import_node_path8.default.dirname(bundle);
|
|
8514
8514
|
const overrides = new Map([
|
|
8515
8515
|
[import_node_path8.default.join(sysroot, "darwin/System/Library/Frameworks"), frameworks],
|
|
8516
|
-
...[
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8516
|
+
...[
|
|
8517
|
+
"MacTypes.h",
|
|
8518
|
+
"net/if.h",
|
|
8519
|
+
"notify.h",
|
|
8520
|
+
"notify.modulemap",
|
|
8521
|
+
"module.modulemap",
|
|
8522
|
+
"darwin.modulemap"
|
|
8523
|
+
].map((header) => [
|
|
8524
|
+
import_node_path8.default.join(sysroot, "darwin/usr/include", header),
|
|
8525
|
+
import_node_path8.default.join(swiftSharedSdkRoot(moduleRoot, distribution), "usr/include", header)
|
|
8526
|
+
])
|
|
8522
8527
|
]);
|
|
8523
8528
|
for (const file of overlayFiles) {
|
|
8524
8529
|
overrides.set(
|
|
@@ -10145,6 +10150,8 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10145
10150
|
} else {
|
|
10146
10151
|
eagerFiles.push(t);
|
|
10147
10152
|
}
|
|
10153
|
+
} else {
|
|
10154
|
+
lazyBuildObjects.set(t, parseWasmObjectCached(t, false, false));
|
|
10148
10155
|
}
|
|
10149
10156
|
} else if (!inStartLib && t.endsWith(".a") && !t.endsWith("libclang_rt.builtins-wasm32.a") && import_node_fs10.default.existsSync(t)) {
|
|
10150
10157
|
const members2 = readArMembers(new Uint8Array(import_node_fs10.default.readFileSync(t)));
|
|
@@ -10903,7 +10910,11 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
10903
10910
|
outTokens.push("--end-lib");
|
|
10904
10911
|
continue;
|
|
10905
10912
|
}
|
|
10906
|
-
if (inStartLib)
|
|
10913
|
+
if (inStartLib) {
|
|
10914
|
+
if (lazyBuildObjects.has(t) && extractedObjs.has(lazyBuildObjects.get(t)))
|
|
10915
|
+
outTokens.push(t);
|
|
10916
|
+
continue;
|
|
10917
|
+
}
|
|
10907
10918
|
if (lazyBuildObjects.has(t)) {
|
|
10908
10919
|
if (extractedObjs.has(lazyBuildObjects.get(t))) outTokens.push(t);
|
|
10909
10920
|
} else if (t === swiftrtOrigPath && patchedSwiftrtPath) {
|
|
@@ -16400,7 +16411,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
16400
16411
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16401
16412
|
var MULTI_MANIFEST_VERSION = 66;
|
|
16402
16413
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16403
|
-
var compilerSourceDigest = true ? "
|
|
16414
|
+
var compilerSourceDigest = true ? "b0327633078ca444a0dc6bfd4a421880f29068767e7244cb3d390c6c576c42f7" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
16404
16415
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16405
16416
|
const hash = (0, import_node_crypto12.createHash)("sha256");
|
|
16406
16417
|
hash.update(`swift-compile
|
|
@@ -16553,9 +16564,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
16553
16564
|
foundationCategoryObjects.map((name3) => `lib/Foundation-${name3}.o`)
|
|
16554
16565
|
);
|
|
16555
16566
|
const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects);
|
|
16556
|
-
const eager =
|
|
16567
|
+
const eager = new Set(
|
|
16557
16568
|
objects.filter((object4) => roots.has(object4) || categoryObjects.has(object4))
|
|
16558
|
-
)
|
|
16569
|
+
);
|
|
16559
16570
|
const list2 = [
|
|
16560
16571
|
...[...eager].map(quoted),
|
|
16561
16572
|
"-Wl,--start-lib",
|
|
@@ -19448,8 +19459,7 @@ module ${moduleName}.Swift {
|
|
|
19448
19459
|
distributionLink: {
|
|
19449
19460
|
path: import_node_path25.default.join(layout2.root, ".peach-distribution-objects.rsp"),
|
|
19450
19461
|
files: files2
|
|
19451
|
-
}
|
|
19452
|
-
lazyDistribution: input.optimize
|
|
19462
|
+
}
|
|
19453
19463
|
} : {},
|
|
19454
19464
|
...prebuilt && frameworkLink ? {
|
|
19455
19465
|
prebuilt: {
|
|
@@ -20077,7 +20087,8 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
20077
20087
|
linked.owners.set(object4, "Foundation");
|
|
20078
20088
|
}
|
|
20079
20089
|
const providerDir = import_node_path25.default.join(scratch2, "darwin-records");
|
|
20080
|
-
|
|
20090
|
+
const providerStamp = import_node_path25.default.join(providerDir, ".complete");
|
|
20091
|
+
if (!(0, import_node_fs25.existsSync)(providerStamp) || (0, import_node_fs25.readFileSync)(providerStamp, "utf8") !== args.frameworkKey) {
|
|
20081
20092
|
(0, import_node_fs25.rmSync)(providerDir, { recursive: true, force: true });
|
|
20082
20093
|
(0, import_node_fs25.mkdirSync)(providerDir);
|
|
20083
20094
|
const sdkPaths2 = swiftSdkPaths(args.moduleRoot, args.toolchainBin);
|
|
@@ -20089,7 +20100,7 @@ async function buildFrameworkProducts(scratch2, args) {
|
|
|
20089
20100
|
minimum: darwinRecordsMinimum(),
|
|
20090
20101
|
out: providerDir
|
|
20091
20102
|
});
|
|
20092
|
-
(0, import_node_fs25.writeFileSync)(
|
|
20103
|
+
(0, import_node_fs25.writeFileSync)(providerStamp, args.frameworkKey);
|
|
20093
20104
|
}
|
|
20094
20105
|
const providers = (0, import_node_fs25.readdirSync)(providerDir).filter((file) => file.endsWith(".o")).sort().map((file) => import_node_path25.default.join(providerDir, file));
|
|
20095
20106
|
for (const provider of providers) linked.owners.set(provider, "DarwinRecords");
|
|
@@ -20392,7 +20403,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20392
20403
|
process.env.LD_LIBRARY_PATH
|
|
20393
20404
|
].filter(Boolean).join(":")
|
|
20394
20405
|
} : {},
|
|
20395
|
-
|
|
20406
|
+
PEACH_DEFER_WASM_LINK: "1"
|
|
20396
20407
|
},
|
|
20397
20408
|
maxBuffer: 64 * 1024 * 1024,
|
|
20398
20409
|
timeout: options.timeoutMs,
|
|
@@ -20619,7 +20630,7 @@ function compileSwiftProjectOnce(input, options) {
|
|
|
20619
20630
|
);
|
|
20620
20631
|
}
|
|
20621
20632
|
if (options.project) removeProjectLinks(root);
|
|
20622
|
-
if (
|
|
20633
|
+
if (!guestGraph)
|
|
20623
20634
|
pruneSwiftWasmLink(
|
|
20624
20635
|
root,
|
|
20625
20636
|
options.toolchainBin,
|
|
@@ -29543,7 +29554,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29543
29554
|
return hash.digest("hex");
|
|
29544
29555
|
}
|
|
29545
29556
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29546
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29557
|
+
var STANDIN_SOURCE_DIGEST = true ? "17e16935fef21af485fe45bc60239cd60c2f1137827bd8f5cf749096bf988cb9" : standinSourceDigest();
|
|
29547
29558
|
|
|
29548
29559
|
// src/swift-standins.ts
|
|
29549
29560
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -34871,7 +34882,6 @@ function sourceTreeFiles(dir, canonicalRoot) {
|
|
|
34871
34882
|
walk3(full);
|
|
34872
34883
|
} else if (stat.isFile()) {
|
|
34873
34884
|
found.push(full);
|
|
34874
|
-
if (found.length > 4096) throw new Error("swift package exceeds 4096 input files");
|
|
34875
34885
|
}
|
|
34876
34886
|
}
|
|
34877
34887
|
ancestors.delete(realDirectory);
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1905 | (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;
|
|
@@ -203,7 +203,7 @@ function isValidRuntimeVersion(value) {
|
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
// runtime-companion.json
|
|
206
|
-
var runtime_companion_default = { abi: 1, sha256: "
|
|
206
|
+
var runtime_companion_default = { abi: 1, sha256: "dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73", file: "node/cli-dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73.cjs" };
|
|
207
207
|
|
|
208
208
|
// src/answeredNativePackages.ts
|
|
209
209
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1905 | (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;
|
|
@@ -30,6 +30,7 @@ export interface FiberScope {
|
|
|
30
30
|
authored: (fiber: FiberDebugLike) => boolean;
|
|
31
31
|
}
|
|
32
32
|
export declare function guestFiberScope(fiber: FiberDebugLike): FiberScope;
|
|
33
|
+
export declare function isEngineSourceLocation(location: string): boolean;
|
|
33
34
|
export declare function setFiberMutationPhase(active: boolean): void;
|
|
34
35
|
export declare function outletContexts(outletHandle: unknown, sourceHandle: unknown): Array<readonly [Context<unknown>, unknown]>;
|
|
35
36
|
export declare function assignFiberDebugMetadata(node: SootSimNode, internalInstanceHandle: FiberDebugLike | null | undefined): void;
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73","file":"node/cli-dd136985ee4f7b0d4287f7d18ce7a66dfde4c654346096dbcecec883f41d9c73.cjs"}
|