peachsim 0.1.2530 → 0.1.2531
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/outbound-endpoints.ts +1 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +25 -11
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-YVRVG3K7.mjs → acorn-NHWX2J24.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-Y2NPAJV3.mjs → chunk-35N2TDU4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NBOGCAWQ.mjs → chunk-4EBD4OKW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3V3QWLVG.mjs → chunk-4KTLY5JC.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-FRV2MWLR.mjs → chunk-4OMQ2R5V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XY5OJABO.mjs → chunk-6IEHVC3Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-IYR5Q33V.mjs → chunk-7CZNR5FB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6PHCBORD.mjs → chunk-AN4HGYLM.mjs} +7 -6
- package/dist-lib/esm-chunks/{chunk-QQ3SVDCR.mjs → chunk-CGW4JC44.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZNYML6R7.mjs → chunk-D4NCFDNF.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-WM26AFHQ.mjs → chunk-EQRWIYYK.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-YOIJ4H4H.mjs → chunk-F52OCOPH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X3MXQKQ3.mjs → chunk-GKJ2T3TK.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B5YOIP4V.mjs → chunk-H4CMYNNG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-EQRX3NE2.mjs → chunk-INLBW6NG.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-2WH6I726.mjs → chunk-LLPNDBX5.mjs} +30 -14
- package/dist-lib/esm-chunks/{chunk-GUIH6C3J.mjs → chunk-PBWV4H5F.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-AFCI2JQL.mjs → chunk-ROJ76CJT.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YO6WUDWP.mjs → chunk-SBKP3U5X.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZKAF7FRZ.mjs → chunk-SUHGSVF2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VSH5P6JS.mjs → chunk-UUWNV4RM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BACARNR4.mjs → chunk-WLZGRQB5.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-MZ26V7TP.mjs → metro-layout-parser-K5R2NP2H.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-SK54BG3Y.mjs → swift-package-prebuilt-FET7FKFD.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-4EUT66BB.mjs → swift-sdk-app-module-JQOFDB45.mjs} +15 -15
- package/dist-lib/esm-chunks/{swift-sdk-image-2Y4Q3HYS.mjs → swift-sdk-image-M3EDI6PV.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-KQC2JCMQ.mjs → swift-sdk-image-producer-ETQMD57W.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +23 -9
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +25 -11
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +69 -69
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +7 -7
- package/dist-lib/skills.cjs +25 -11
- package/dist-lib/swift-compile.cjs +21 -7
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +62 -0
- package/dist-types/packages/peach-engine/src/render-worker/shellScrollContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/swift-sdk-app-module.ts +2 -5
- package/src/swift-sdk-image.ts +2 -4
- package/src/swift-wasm-prune.ts +17 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_AUTOLINK_LINKER,
|
|
4
4
|
SWIFT_CACHE_HOLD_MARKER,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
windowAdmission,
|
|
19
19
|
withSwiftRootLock,
|
|
20
20
|
writeSwiftAutolinkLinker
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-4EBD4OKW.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SWIFT_BINARY_TREES_DIR,
|
|
24
24
|
SWIFT_NATIVE_INPUT_ROOT,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
isSwiftResourcePath,
|
|
34
34
|
isSwiftSourceLinkGraph,
|
|
35
35
|
swiftProjectFilesProblems
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-GKJ2T3TK.mjs";
|
|
37
37
|
import {
|
|
38
38
|
OBJC_RESOURCE_ACCESSOR_BODY,
|
|
39
39
|
OBJC_RESOURCE_ACCESSOR_HEADER,
|
|
@@ -57,16 +57,16 @@ import {
|
|
|
57
57
|
swiftPackagePartition,
|
|
58
58
|
swiftTargetModuleName,
|
|
59
59
|
withoutGlogModuleMap
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7CZNR5FB.mjs";
|
|
61
61
|
import {
|
|
62
62
|
rnxPublicBrand
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-SUHGSVF2.mjs";
|
|
64
64
|
import {
|
|
65
65
|
isRecord
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-PBWV4H5F.mjs";
|
|
67
67
|
import {
|
|
68
68
|
__publicField
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ROJ76CJT.mjs";
|
|
70
70
|
|
|
71
71
|
// src/swift-compile.ts
|
|
72
72
|
import {
|
|
@@ -7098,6 +7098,21 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
7098
7098
|
return false;
|
|
7099
7099
|
}
|
|
7100
7100
|
var SWIFT_PRUNED_LINK_MAP = ".peach-link.map";
|
|
7101
|
+
var SWIFT_PRUNED_LINK_RESPONSE = ".peach-link.pruned.rsp";
|
|
7102
|
+
function readSwiftPrunedLinkResponse(directory) {
|
|
7103
|
+
const file = path14.join(directory, SWIFT_PRUNED_LINK_RESPONSE);
|
|
7104
|
+
const text2 = fs5.readFileSync(file, "utf8").trim();
|
|
7105
|
+
const argument2 = /("(?:[^"\\]|\\.)*")(?:\s+|$)/gy;
|
|
7106
|
+
const args = [];
|
|
7107
|
+
while (argument2.lastIndex < text2.length) {
|
|
7108
|
+
const offset = argument2.lastIndex;
|
|
7109
|
+
const match = argument2.exec(text2);
|
|
7110
|
+
if (!match) throw new Error(`invalid Swift link argument at ${file}:${offset}`);
|
|
7111
|
+
const token = JSON.parse(match[1]);
|
|
7112
|
+
args.push(token);
|
|
7113
|
+
}
|
|
7114
|
+
return args;
|
|
7115
|
+
}
|
|
7101
7116
|
function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
7102
7117
|
const rspPath = path14.join(directory, ".peach-link.rsp");
|
|
7103
7118
|
if (!fs5.existsSync(rspPath)) return;
|
|
@@ -8217,7 +8232,7 @@ function pruneSwiftWasmLink(directory, toolchainBin, moduleRoot, staticClangTarg
|
|
|
8217
8232
|
outTokens.push("--start-lib", ...leftoverArchiveFiles, "--end-lib");
|
|
8218
8233
|
leftoverArchiveFiles.length = 0;
|
|
8219
8234
|
}
|
|
8220
|
-
const prunedRspPath = path14.join(directory,
|
|
8235
|
+
const prunedRspPath = path14.join(directory, SWIFT_PRUNED_LINK_RESPONSE);
|
|
8221
8236
|
fs5.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
8222
8237
|
if (link) {
|
|
8223
8238
|
const sdk = { wasiDirectory: sdkWasiDir, objectDirectory: sdkObjsDir };
|
|
@@ -13439,7 +13454,7 @@ async function compileGuestLink(options) {
|
|
|
13439
13454
|
};
|
|
13440
13455
|
const sdk = options.sdkImage;
|
|
13441
13456
|
const sdkCallers = sdk?.sdkInterface.guestCallers;
|
|
13442
|
-
const sdkObjects = sdk ? (await import("./swift-sdk-image-
|
|
13457
|
+
const sdkObjects = sdk ? (await import("./swift-sdk-image-M3EDI6PV.mjs")).readSwiftSdkManifestIndex(sdk).guestObjects : void 0;
|
|
13443
13458
|
if (sdk && (!sdkCallers || !sdkObjects))
|
|
13444
13459
|
throw new Error("the SDK image has no guest link manifest");
|
|
13445
13460
|
const result = linkPrunedGuestImages({
|
|
@@ -13726,7 +13741,7 @@ async function compileGuestLink(options) {
|
|
|
13726
13741
|
finishSwiftAppModule,
|
|
13727
13742
|
linkSwiftAppModule,
|
|
13728
13743
|
readSwiftSdkUsage
|
|
13729
|
-
} = await import("./swift-sdk-app-module-
|
|
13744
|
+
} = await import("./swift-sdk-app-module-JQOFDB45.mjs");
|
|
13730
13745
|
const project = options.project;
|
|
13731
13746
|
const work = project ? mkdtempSync2(path24.join(directory, "app-module-")) : path24.join(directory, "app-module");
|
|
13732
13747
|
if (project) chownSync(work, project.uid, project.gid);
|
|
@@ -16228,7 +16243,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
16228
16243
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
16229
16244
|
var MULTI_MANIFEST_VERSION = 76;
|
|
16230
16245
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
16231
|
-
var compilerSourceDigest = true ? "
|
|
16246
|
+
var compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
16232
16247
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
16233
16248
|
return swiftCompileInputHash(input, release).update(swiftModuleDigest(moduleRoot)).digest("hex");
|
|
16234
16249
|
}
|
|
@@ -20787,7 +20802,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20787
20802
|
const distribution = swiftDistributionAt(moduleRoot);
|
|
20788
20803
|
const mirrorDistribution = options.linkOnly || options.project ? null : distribution;
|
|
20789
20804
|
if (distribution) refreshSwiftCacheHold(moduleRoot);
|
|
20790
|
-
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-
|
|
20805
|
+
const input = distribution && !options.intermediates ? (await import("./swift-package-prebuilt-FET7FKFD.mjs")).useSwiftPackagePrebuilts(
|
|
20791
20806
|
sources,
|
|
20792
20807
|
moduleRoot,
|
|
20793
20808
|
options.toolchainBin
|
|
@@ -20801,7 +20816,7 @@ async function compileSwiftProjectOnce(sources, options) {
|
|
|
20801
20816
|
multi: compileTargets(input).length > 0
|
|
20802
20817
|
};
|
|
20803
20818
|
const sdkModule = options.sdkModule && !options.linkOnly;
|
|
20804
|
-
const sdkImage = sdkModule ? await (await import("./swift-sdk-image-
|
|
20819
|
+
const sdkImage = sdkModule ? await (await import("./swift-sdk-image-M3EDI6PV.mjs")).buildSwiftSdkImage(
|
|
20805
20820
|
moduleRoot,
|
|
20806
20821
|
!!guestGraph,
|
|
20807
20822
|
distribution ? [] : linkedFrameworkTargets(moduleRoot, input).imports,
|
|
@@ -21426,7 +21441,7 @@ sdk module ${sdkImage.key}`).digest("hex") : sourceHash;
|
|
|
21426
21441
|
if (sdkImage && binding)
|
|
21427
21442
|
sdkAsset = { key: sdkImage.key, sha256: sdkImage.sha256, binding };
|
|
21428
21443
|
} else if (sdkImage) {
|
|
21429
|
-
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-
|
|
21444
|
+
const { buildSwiftAppModule } = await import("./swift-sdk-app-module-JQOFDB45.mjs");
|
|
21430
21445
|
const binding = await buildSwiftAppModule({
|
|
21431
21446
|
buildRoot: root,
|
|
21432
21447
|
toolchainBin: options.toolchainBin,
|
|
@@ -21505,6 +21520,7 @@ export {
|
|
|
21505
21520
|
moduleFamily,
|
|
21506
21521
|
objcCategoryNeedsFamily,
|
|
21507
21522
|
SWIFT_PRUNED_LINK_MAP,
|
|
21523
|
+
readSwiftPrunedLinkResponse,
|
|
21508
21524
|
NATIVE_LAZY_IMPORT_MODULE,
|
|
21509
21525
|
NATIVE_SDK_IMPORT_MODULE,
|
|
21510
21526
|
NATIVE_SDK_THUNK_SECTION,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// ../../node_modules/acorn/dist/acorn.mjs
|
|
4
4
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
package/dist-lib/esm-chunks/{metro-layout-parser-MZ26V7TP.mjs → metro-layout-parser-K5R2NP2H.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
import "./chunk-
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./chunk-ROJ76CJT.mjs";
|
|
3
3
|
|
|
4
4
|
// src/metro-layout-parser.ts
|
|
5
5
|
var whitespace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/y;
|
|
@@ -8,7 +8,7 @@ var lineBreak = /[\r\n\u2028\u2029]/;
|
|
|
8
8
|
var metroLayoutParser;
|
|
9
9
|
async function loadMetroLayoutParser() {
|
|
10
10
|
if (metroLayoutParser) return metroLayoutParser;
|
|
11
|
-
const { Parser } = await import("./acorn-
|
|
11
|
+
const { Parser } = await import("./acorn-NHWX2J24.mjs");
|
|
12
12
|
metroLayoutParser = Parser.extend(
|
|
13
13
|
(Base) => {
|
|
14
14
|
const parseFunctionBody = Reflect.get(Base.prototype, "parseFunctionBody");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
compileTargets,
|
|
4
4
|
fetchNativeEntry,
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
swiftAvailableModules,
|
|
7
7
|
swiftDistributionAt,
|
|
8
8
|
swiftImportNames
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-LLPNDBX5.mjs";
|
|
10
|
+
import "./chunk-4EBD4OKW.mjs";
|
|
11
11
|
import {
|
|
12
12
|
SWIFT_REMOTE_PACKAGES_DIR
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GKJ2T3TK.mjs";
|
|
14
14
|
import {
|
|
15
15
|
manifestCalls
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7CZNR5FB.mjs";
|
|
17
|
+
import "./chunk-CGW4JC44.mjs";
|
|
18
|
+
import "./chunk-SUHGSVF2.mjs";
|
|
19
|
+
import "./chunk-6IEHVC3Z.mjs";
|
|
20
|
+
import "./chunk-PBWV4H5F.mjs";
|
|
21
|
+
import "./chunk-ROJ76CJT.mjs";
|
|
22
22
|
|
|
23
23
|
// src/swift-package-prebuilt.ts
|
|
24
24
|
import { createHash } from "node:crypto";
|
package/dist-lib/esm-chunks/{swift-sdk-app-module-4EUT66BB.mjs → swift-sdk-app-module-JQOFDB45.mjs}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
5
5
|
SWIFT_SDK_MEMORY_BASE,
|
|
6
6
|
SWIFT_SDK_PIECE_FIELDS,
|
|
7
7
|
readSwiftSdkManifest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-AN4HGYLM.mjs";
|
|
9
|
+
import "./chunk-4KTLY5JC.mjs";
|
|
10
|
+
import "./chunk-F52OCOPH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ADDEND_RELOCATIONS,
|
|
13
13
|
KEEP_WASM_NAMES,
|
|
@@ -30,21 +30,22 @@ import {
|
|
|
30
30
|
placeGuestLazyFunctions,
|
|
31
31
|
projectOutputFile,
|
|
32
32
|
readArMembers,
|
|
33
|
+
readSwiftPrunedLinkResponse,
|
|
33
34
|
readWasmLinkMap,
|
|
34
35
|
wasmReader,
|
|
35
36
|
wasmSections,
|
|
36
37
|
writeWasmCustomSection
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LLPNDBX5.mjs";
|
|
38
39
|
import {
|
|
39
40
|
SWIFT_WASM_TRIPLE
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-4EBD4OKW.mjs";
|
|
42
|
+
import "./chunk-GKJ2T3TK.mjs";
|
|
43
|
+
import "./chunk-7CZNR5FB.mjs";
|
|
44
|
+
import "./chunk-CGW4JC44.mjs";
|
|
45
|
+
import "./chunk-SUHGSVF2.mjs";
|
|
46
|
+
import "./chunk-6IEHVC3Z.mjs";
|
|
47
|
+
import "./chunk-PBWV4H5F.mjs";
|
|
48
|
+
import "./chunk-ROJ76CJT.mjs";
|
|
48
49
|
|
|
49
50
|
// src/swift-sdk-app-module.ts
|
|
50
51
|
import { execFile } from "node:child_process";
|
|
@@ -98,11 +99,10 @@ function encodeNativeSdkFixups(triples) {
|
|
|
98
99
|
var run = promisify(execFile);
|
|
99
100
|
async function buildSwiftAppModule(options) {
|
|
100
101
|
const { buildRoot, toolchainBin, sdk, project } = options;
|
|
101
|
-
const rsp = path.join(buildRoot, ".peach-link.pruned.rsp");
|
|
102
102
|
const work = project ? mkdtempSync(path.join(buildRoot, ".peach-sdk-module-")) : path.join(buildRoot, ".peach-sdk-module");
|
|
103
103
|
if (project) chownSync(work, project.uid, project.gid);
|
|
104
104
|
else mkdirSync(work, { recursive: true });
|
|
105
|
-
const tokens =
|
|
105
|
+
const tokens = readSwiftPrunedLinkResponse(buildRoot);
|
|
106
106
|
const outputAt = tokens.indexOf("-o");
|
|
107
107
|
const pruned = project?.linked ?? (outputAt < 0 ? void 0 : tokens[outputAt + 1]);
|
|
108
108
|
if (!pruned) throw new Error("the pruned link names no output");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
4
4
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -15,18 +15,18 @@ import {
|
|
|
15
15
|
swiftSdkImageFile,
|
|
16
16
|
swiftSdkImageKey,
|
|
17
17
|
swiftSdkImageProducts
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-AN4HGYLM.mjs";
|
|
19
|
+
import "./chunk-4KTLY5JC.mjs";
|
|
20
|
+
import "./chunk-F52OCOPH.mjs";
|
|
21
|
+
import "./chunk-LLPNDBX5.mjs";
|
|
22
|
+
import "./chunk-4EBD4OKW.mjs";
|
|
23
|
+
import "./chunk-GKJ2T3TK.mjs";
|
|
24
|
+
import "./chunk-7CZNR5FB.mjs";
|
|
25
|
+
import "./chunk-CGW4JC44.mjs";
|
|
26
|
+
import "./chunk-SUHGSVF2.mjs";
|
|
27
|
+
import "./chunk-6IEHVC3Z.mjs";
|
|
28
|
+
import "./chunk-PBWV4H5F.mjs";
|
|
29
|
+
import "./chunk-ROJ76CJT.mjs";
|
|
30
30
|
export {
|
|
31
31
|
SWIFT_SDK_APP_MEMORY_BASE,
|
|
32
32
|
SWIFT_SDK_APP_TABLE_BASE,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
swiftCacheDir,
|
|
4
4
|
windowAdmission,
|
|
5
5
|
withSwiftRootLock
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4EBD4OKW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-PBWV4H5F.mjs";
|
|
10
|
+
import "./chunk-ROJ76CJT.mjs";
|
|
11
11
|
|
|
12
12
|
// src/swift-sdk-image-producer.ts
|
|
13
13
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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;
|
|
@@ -26242,13 +26242,13 @@ var init_swift_standin_digest = __esm({
|
|
|
26242
26242
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
26243
26243
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
26244
26244
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
26245
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
26245
|
+
STANDIN_SOURCE_DIGEST = true ? "e0c1b88559d18e91bb151977436d182a7ce2ddadd071cf4de70a1b1f71e114ac" : standinSourceDigest();
|
|
26246
26246
|
}
|
|
26247
26247
|
});
|
|
26248
26248
|
|
|
26249
26249
|
// src/expo-native-compiler-digest.ts
|
|
26250
26250
|
function expoNativeCompilerDigestValue() {
|
|
26251
|
-
return true ? "
|
|
26251
|
+
return true ? "99f63187155108498f09b99750abf125dd166933250adfa469fb70ce322a266a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
26252
26252
|
}
|
|
26253
26253
|
var import_node_crypto17;
|
|
26254
26254
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -33411,6 +33411,20 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
33411
33411
|
}
|
|
33412
33412
|
return false;
|
|
33413
33413
|
}
|
|
33414
|
+
function readSwiftPrunedLinkResponse(directory2) {
|
|
33415
|
+
const file = import_node_path43.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
33416
|
+
const text7 = import_node_fs44.default.readFileSync(file, "utf8").trim();
|
|
33417
|
+
const argument2 = /("(?:[^"\\]|\\.)*")(?:\s+|$)/gy;
|
|
33418
|
+
const args = [];
|
|
33419
|
+
while (argument2.lastIndex < text7.length) {
|
|
33420
|
+
const offset = argument2.lastIndex;
|
|
33421
|
+
const match = argument2.exec(text7);
|
|
33422
|
+
if (!match) throw new Error(`invalid Swift link argument at ${file}:${offset}`);
|
|
33423
|
+
const token = JSON.parse(match[1]);
|
|
33424
|
+
args.push(token);
|
|
33425
|
+
}
|
|
33426
|
+
return args;
|
|
33427
|
+
}
|
|
33414
33428
|
function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
33415
33429
|
const rspPath = import_node_path43.default.join(directory2, ".peach-link.rsp");
|
|
33416
33430
|
if (!import_node_fs44.default.existsSync(rspPath)) return;
|
|
@@ -34530,7 +34544,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
34530
34544
|
outTokens.push("--start-lib", ...leftoverArchiveFiles, "--end-lib");
|
|
34531
34545
|
leftoverArchiveFiles.length = 0;
|
|
34532
34546
|
}
|
|
34533
|
-
const prunedRspPath = import_node_path43.default.join(directory2,
|
|
34547
|
+
const prunedRspPath = import_node_path43.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
34534
34548
|
import_node_fs44.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
34535
34549
|
if (link) {
|
|
34536
34550
|
const sdk2 = { wasiDirectory: sdkWasiDir, objectDirectory: sdkObjsDir };
|
|
@@ -34547,7 +34561,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
34547
34561
|
);
|
|
34548
34562
|
import_node_fs44.default.rmSync(rspPath, { force: true });
|
|
34549
34563
|
}
|
|
34550
|
-
var import_node_child_process22, import_node_crypto24, import_node_fs44, import_node_path43, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP;
|
|
34564
|
+
var import_node_child_process22, import_node_crypto24, import_node_fs44, import_node_path43, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
|
|
34551
34565
|
var init_swift_wasm_prune = __esm({
|
|
34552
34566
|
"src/swift-wasm-prune.ts"() {
|
|
34553
34567
|
"use strict";
|
|
@@ -34643,6 +34657,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
34643
34657
|
].map((name3) => `$s7SwiftUI${name3.length}${name3}Mp`)
|
|
34644
34658
|
);
|
|
34645
34659
|
SWIFT_PRUNED_LINK_MAP = ".peach-link.map";
|
|
34660
|
+
SWIFT_PRUNED_LINK_RESPONSE = ".peach-link.pruned.rsp";
|
|
34646
34661
|
}
|
|
34647
34662
|
});
|
|
34648
34663
|
|
|
@@ -42568,7 +42583,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
42568
42583
|
}
|
|
42569
42584
|
function sdkLinkInputs(appRoot) {
|
|
42570
42585
|
const unquote = (token) => token.replace(/^"|"$/g, "").replace(/\\(.)/g, "$1");
|
|
42571
|
-
const tokens2 = (
|
|
42586
|
+
const tokens2 = readSwiftPrunedLinkResponse(appRoot);
|
|
42572
42587
|
const list2 = (0, import_node_fs58.readdirSync)(appRoot).find(
|
|
42573
42588
|
(name3) => name3.startsWith(".peach-distribution-objects-") || name3 === ".peach-framework-objects.rsp"
|
|
42574
42589
|
);
|
|
@@ -42975,11 +42990,10 @@ __export(swift_sdk_app_module_exports, {
|
|
|
42975
42990
|
});
|
|
42976
42991
|
async function buildSwiftAppModule(options2) {
|
|
42977
42992
|
const { buildRoot, toolchainBin, sdk: sdk2, project } = options2;
|
|
42978
|
-
const rsp = import_node_path57.default.join(buildRoot, ".peach-link.pruned.rsp");
|
|
42979
42993
|
const work = project ? (0, import_node_fs59.mkdtempSync)(import_node_path57.default.join(buildRoot, ".peach-sdk-module-")) : import_node_path57.default.join(buildRoot, ".peach-sdk-module");
|
|
42980
42994
|
if (project) (0, import_node_fs59.chownSync)(work, project.uid, project.gid);
|
|
42981
42995
|
else (0, import_node_fs59.mkdirSync)(work, { recursive: true });
|
|
42982
|
-
const tokens2 = (
|
|
42996
|
+
const tokens2 = readSwiftPrunedLinkResponse(buildRoot);
|
|
42983
42997
|
const outputAt = tokens2.indexOf("-o");
|
|
42984
42998
|
const pruned = project?.linked ?? (outputAt < 0 ? void 0 : tokens2[outputAt + 1]);
|
|
42985
42999
|
if (!pruned) throw new Error("the pruned link names no output");
|
|
@@ -52208,7 +52222,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
52208
52222
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
52209
52223
|
MULTI_MANIFEST_VERSION = 76;
|
|
52210
52224
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
52211
|
-
compilerSourceDigest = true ? "
|
|
52225
|
+
compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
52212
52226
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
52213
52227
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
52214
52228
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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,19 +1,19 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-GKJ2T3TK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-D4NCFDNF.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-CGW4JC44.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-H4CMYNNG.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-PBWV4H5F.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-ROJ76CJT.mjs";
|
|
17
17
|
|
|
18
18
|
// src/expoSwiftContract.ts
|
|
19
19
|
function strings(value) {
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2531 | (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.2531 | (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;
|
|
@@ -2106,7 +2106,7 @@ var init_runtime_assets = __esm({
|
|
|
2106
2106
|
var runtime_companion_default;
|
|
2107
2107
|
var init_runtime_companion = __esm({
|
|
2108
2108
|
"runtime-companion.json"() {
|
|
2109
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
2109
|
+
runtime_companion_default = { abi: 1, sha256: "2df38358a3ae16176e6f31e890e3d87514f926f3425b2496548155d93b0e7691", file: "node/cli-2df38358a3ae16176e6f31e890e3d87514f926f3425b2496548155d93b0e7691.cjs" };
|
|
2110
2110
|
}
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
@@ -5704,13 +5704,13 @@ var init_swift_standin_digest = __esm({
|
|
|
5704
5704
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
5705
5705
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
5706
5706
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
5707
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
5707
|
+
STANDIN_SOURCE_DIGEST = true ? "e0c1b88559d18e91bb151977436d182a7ce2ddadd071cf4de70a1b1f71e114ac" : standinSourceDigest();
|
|
5708
5708
|
}
|
|
5709
5709
|
});
|
|
5710
5710
|
|
|
5711
5711
|
// src/expo-native-compiler-digest.ts
|
|
5712
5712
|
function expoNativeCompilerDigestValue() {
|
|
5713
|
-
return true ? "
|
|
5713
|
+
return true ? "99f63187155108498f09b99750abf125dd166933250adfa469fb70ce322a266a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
5714
5714
|
}
|
|
5715
5715
|
var import_node_crypto11;
|
|
5716
5716
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -38598,6 +38598,20 @@ function keepsSwiftUIReflection(file, undefinedSymbols) {
|
|
|
38598
38598
|
}
|
|
38599
38599
|
return false;
|
|
38600
38600
|
}
|
|
38601
|
+
function readSwiftPrunedLinkResponse(directory2) {
|
|
38602
|
+
const file = import_node_path57.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
38603
|
+
const text7 = import_node_fs56.default.readFileSync(file, "utf8").trim();
|
|
38604
|
+
const argument2 = /("(?:[^"\\]|\\.)*")(?:\s+|$)/gy;
|
|
38605
|
+
const args = [];
|
|
38606
|
+
while (argument2.lastIndex < text7.length) {
|
|
38607
|
+
const offset = argument2.lastIndex;
|
|
38608
|
+
const match = argument2.exec(text7);
|
|
38609
|
+
if (!match) throw new Error(`invalid Swift link argument at ${file}:${offset}`);
|
|
38610
|
+
const token = JSON.parse(match[1]);
|
|
38611
|
+
args.push(token);
|
|
38612
|
+
}
|
|
38613
|
+
return args;
|
|
38614
|
+
}
|
|
38601
38615
|
function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTargets = [], owner, link, resourceReferences = []) {
|
|
38602
38616
|
const rspPath = import_node_path57.default.join(directory2, ".peach-link.rsp");
|
|
38603
38617
|
if (!import_node_fs56.default.existsSync(rspPath)) return;
|
|
@@ -39717,7 +39731,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
39717
39731
|
outTokens.push("--start-lib", ...leftoverArchiveFiles, "--end-lib");
|
|
39718
39732
|
leftoverArchiveFiles.length = 0;
|
|
39719
39733
|
}
|
|
39720
|
-
const prunedRspPath = import_node_path57.default.join(directory2,
|
|
39734
|
+
const prunedRspPath = import_node_path57.default.join(directory2, SWIFT_PRUNED_LINK_RESPONSE);
|
|
39721
39735
|
import_node_fs56.default.writeFileSync(prunedRspPath, outTokens.map((t) => JSON.stringify(t)).join(" "));
|
|
39722
39736
|
if (link) {
|
|
39723
39737
|
const sdk2 = { wasiDirectory: sdkWasiDir, objectDirectory: sdkObjsDir };
|
|
@@ -39734,7 +39748,7 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
39734
39748
|
);
|
|
39735
39749
|
import_node_fs56.default.rmSync(rspPath, { force: true });
|
|
39736
39750
|
}
|
|
39737
|
-
var import_node_child_process25, import_node_crypto29, import_node_fs56, import_node_path57, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP;
|
|
39751
|
+
var import_node_child_process25, import_node_crypto29, import_node_fs56, import_node_path57, v3, WIDE_DATA_RELOCS, ROOT_SEG_PREFIXES, RECORD_SEGS, PARTITIONED_SEGS, PRUNED_SDK_ARCHIVES, OMIT_SDK_LIB_FLAGS, NEUTRALIZED_SWIFTRT_SECTIONS, relocationBytes, parsedObjectCache, PARSED_ROOTS, SWIFTUI_WRAPPER_HOST_PROTOCOLS, SWIFT_PRUNED_LINK_MAP, SWIFT_PRUNED_LINK_RESPONSE;
|
|
39738
39752
|
var init_swift_wasm_prune = __esm({
|
|
39739
39753
|
"src/swift-wasm-prune.ts"() {
|
|
39740
39754
|
"use strict";
|
|
@@ -39830,6 +39844,7 @@ var init_swift_wasm_prune = __esm({
|
|
|
39830
39844
|
].map((name3) => `$s7SwiftUI${name3.length}${name3}Mp`)
|
|
39831
39845
|
);
|
|
39832
39846
|
SWIFT_PRUNED_LINK_MAP = ".peach-link.map";
|
|
39847
|
+
SWIFT_PRUNED_LINK_RESPONSE = ".peach-link.pruned.rsp";
|
|
39833
39848
|
}
|
|
39834
39849
|
});
|
|
39835
39850
|
|
|
@@ -48192,7 +48207,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
48192
48207
|
}
|
|
48193
48208
|
function sdkLinkInputs(appRoot) {
|
|
48194
48209
|
const unquote = (token) => token.replace(/^"|"$/g, "").replace(/\\(.)/g, "$1");
|
|
48195
|
-
const tokens2 = (
|
|
48210
|
+
const tokens2 = readSwiftPrunedLinkResponse(appRoot);
|
|
48196
48211
|
const list2 = (0, import_node_fs70.readdirSync)(appRoot).find(
|
|
48197
48212
|
(name3) => name3.startsWith(".peach-distribution-objects-") || name3 === ".peach-framework-objects.rsp"
|
|
48198
48213
|
);
|
|
@@ -48717,11 +48732,10 @@ __export(swift_sdk_app_module_exports, {
|
|
|
48717
48732
|
});
|
|
48718
48733
|
async function buildSwiftAppModule(options2) {
|
|
48719
48734
|
const { buildRoot, toolchainBin, sdk: sdk2, project: project2 } = options2;
|
|
48720
|
-
const rsp = import_node_path71.default.join(buildRoot, ".peach-link.pruned.rsp");
|
|
48721
48735
|
const work = project2 ? (0, import_node_fs71.mkdtempSync)(import_node_path71.default.join(buildRoot, ".peach-sdk-module-")) : import_node_path71.default.join(buildRoot, ".peach-sdk-module");
|
|
48722
48736
|
if (project2) (0, import_node_fs71.chownSync)(work, project2.uid, project2.gid);
|
|
48723
48737
|
else (0, import_node_fs71.mkdirSync)(work, { recursive: true });
|
|
48724
|
-
const tokens2 = (
|
|
48738
|
+
const tokens2 = readSwiftPrunedLinkResponse(buildRoot);
|
|
48725
48739
|
const outputAt = tokens2.indexOf("-o");
|
|
48726
48740
|
const pruned = project2?.linked ?? (outputAt < 0 ? void 0 : tokens2[outputAt + 1]);
|
|
48727
48741
|
if (!pruned) throw new Error("the pruned link names no output");
|
|
@@ -57944,7 +57958,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
57944
57958
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57945
57959
|
MULTI_MANIFEST_VERSION = 76;
|
|
57946
57960
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57947
|
-
compilerSourceDigest = true ? "
|
|
57961
|
+
compilerSourceDigest = true ? "c1b31f85f0a9aa78c7579b0a943fc4c766dee06eb085e8d3c25166b6c46646cf" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
57948
57962
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57949
57963
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
57950
57964
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -117296,7 +117310,7 @@ var init_nitro_superset = __esm({
|
|
|
117296
117310
|
init_nitroContract();
|
|
117297
117311
|
init_swift_standin_digest();
|
|
117298
117312
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
117299
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
117313
|
+
NITRO_COMPILER_DIGEST = true ? "eeecc0d0ffee9c35b75615243249fcd1b164e1035df90ead06fa939e9a3ad0c5" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
117300
117314
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
117301
117315
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
117302
117316
|
published3 = /* @__PURE__ */ new Map();
|