peachsim 0.1.2737 → 0.1.2742
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 +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 +214 -97
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-N65DFKKS.mjs → acorn-I6YLE7RH.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-BLZBR4EF.mjs → chunk-2SC45KUK.mjs} +185 -89
- package/dist-lib/esm-chunks/{chunk-ZNSVZBWL.mjs → chunk-4CNYVYQW.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-PISYS5VV.mjs → chunk-6LMI5DE3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-TKYSVJ6N.mjs → chunk-6QTRZNLH.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PGMWOIWH.mjs → chunk-CFPPESX7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-X4KKXB5Z.mjs → chunk-FKC5RBXR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZLZG22TP.mjs → chunk-G44GUBAL.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-S4WPF4LQ.mjs → chunk-GMFZTGVJ.mjs} +13 -7
- package/dist-lib/esm-chunks/{chunk-GHLVVIYA.mjs → chunk-GPVGYC45.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RZSEAJNK.mjs → chunk-HJBL2ND3.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-NK3Y2DEM.mjs → chunk-IVVVYJKG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-2VEJSLIG.mjs → chunk-MHRTZ6I7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YHSLBUGG.mjs → chunk-MXADGMSE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-Y2WJJWHK.mjs → chunk-NWGCI4JC.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-EJAMKRK2.mjs → chunk-OXFGIZC4.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-CMN7STHV.mjs → chunk-PLXC42XF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YA6VMXKS.mjs → chunk-QDTQYGJB.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-M3T47BLB.mjs → chunk-RC3JQV7D.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3BDZ7ZVC.mjs → chunk-U262IRGM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PXHA5JY3.mjs → chunk-VH5KY2GM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-K5SO6HTC.mjs → chunk-VWRLBFID.mjs} +8 -5
- package/dist-lib/esm-chunks/{chunk-P3XPAQTO.mjs → chunk-Y4Q3W36I.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-MMV3ZU2G.mjs → chunk-YQSNOLNM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GJYNPYLJ.mjs → chunk-ZRA35GYC.mjs} +5 -5
- package/dist-lib/esm-chunks/{metro-layout-parser-BB2OJQAM.mjs → metro-layout-parser-QGTUKU6T.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-2CNPBFJR.mjs → swift-package-prebuilt-M2IXDM7B.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-FZXV77OV.mjs → swift-sdk-app-module-4KYBNEBW.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-BLP7UKX5.mjs → swift-sdk-image-Z37PPINV.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-S5O7TW4E.mjs → swift-sdk-image-producer-7KFCU6Y6.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +214 -97
- 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 +3686 -1596
- package/dist-lib/host/fetch-proxy-handler.cjs +43 -12
- 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 +5 -3
- package/dist-lib/native-app-identity-project.mjs +16 -16
- 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 +88 -86
- package/dist-lib/public-origins-lib.json +86 -72
- 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 +8 -8
- package/dist-lib/skills.cjs +4117 -2027
- package/dist-lib/swift-compile.cjs +206 -89
- package/dist-lib/swift-compile.mjs +12 -12
- 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 +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +8 -5
- 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/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.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/engine/canvaskit-api.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/effects-shader-registry.d.ts +2 -12
- package/dist-types/packages/peach-engine/src/engine/native-style-store.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/scene-native-binding.d.ts +0 -2
- package/package.json +1 -1
- package/src/one-direct-host-source.ts +254 -0
- package/src/one-native-controls-package.ts +99 -21
- package/src/swift-compile.ts +9 -1
- package/src/swift-sdk-image-map.ts +35 -0
- package/src/swift-sdk-image.ts +12 -2
- package/src/swift-toolchain.ts +11 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2742 | (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;
|
|
@@ -9064,7 +9064,9 @@ exec ${JSON.stringify(import_node_path13.default.join(toolchainBin, "wasm-ld"))}
|
|
|
9064
9064
|
}
|
|
9065
9065
|
function peachHome() {
|
|
9066
9066
|
const override = process.env.PEACH_HOME;
|
|
9067
|
-
|
|
9067
|
+
return override ? import_node_path13.default.resolve(override) : defaultPeachHome();
|
|
9068
|
+
}
|
|
9069
|
+
function defaultPeachHome() {
|
|
9068
9070
|
const home = import_node_path13.default.join(import_node_os6.default.homedir(), ".peach");
|
|
9069
9071
|
return import_node_fs16.default.existsSync(home) ? import_node_fs16.default.realpathSync(home) : home;
|
|
9070
9072
|
}
|
|
@@ -9072,7 +9074,8 @@ function peachSwiftSdksDir() {
|
|
|
9072
9074
|
return process.env.PEACH_SWIFT_SDKS_PATH ?? import_node_path13.default.join(peachHome(), "swift", "sdks");
|
|
9073
9075
|
}
|
|
9074
9076
|
function agentSharedCacheRoot() {
|
|
9075
|
-
if (process.platform !== "darwin"
|
|
9077
|
+
if (!process.env.TM_SESSION || process.platform !== "darwin" && process.platform !== "linux")
|
|
9078
|
+
return null;
|
|
9076
9079
|
if (agentBuildersRoot) return agentBuildersRoot;
|
|
9077
9080
|
const policy = JSON.parse(
|
|
9078
9081
|
(0, import_node_child_process8.execFileSync)("tm", ["machine", "policy", "--json"], {
|
|
@@ -9111,11 +9114,11 @@ function buildersRootEnv() {
|
|
|
9111
9114
|
return root ? root : null;
|
|
9112
9115
|
}
|
|
9113
9116
|
function resolvedBuildersRoot() {
|
|
9114
|
-
return buildersRootEnv() ??
|
|
9117
|
+
return buildersRootEnv() ?? agentSharedCacheRoot();
|
|
9115
9118
|
}
|
|
9116
9119
|
function swiftCacheDir() {
|
|
9117
9120
|
const root = resolvedBuildersRoot();
|
|
9118
|
-
return root ? import_node_path13.default.join(root, "peach-cache") : import_node_path13.default.join(
|
|
9121
|
+
return root ? import_node_path13.default.join(root, "peach-cache") : import_node_path13.default.join(defaultPeachHome(), "cache");
|
|
9119
9122
|
}
|
|
9120
9123
|
function refreshSwiftCacheHold(directory2) {
|
|
9121
9124
|
const cache = swiftCacheDir();
|
|
@@ -19553,7 +19556,7 @@ var init_react_native_core_digest = __esm({
|
|
|
19553
19556
|
|
|
19554
19557
|
// src/swift-compiler-digest.ts
|
|
19555
19558
|
function swiftArchiveCompilerDigestValue() {
|
|
19556
|
-
return true ? "
|
|
19559
|
+
return true ? "0793e59f1e3cdb2b823e46162b3112e01b180b07a4650b5e43a642bc3094d5ef" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
19557
19560
|
}
|
|
19558
19561
|
var import_node_crypto16, import_node_fs32, import_node_path31, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
19559
19562
|
var init_swift_compiler_digest = __esm({
|
|
@@ -19698,13 +19701,13 @@ var init_swift_standin_digest = __esm({
|
|
|
19698
19701
|
];
|
|
19699
19702
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
19700
19703
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
19701
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
19704
|
+
STANDIN_SOURCE_DIGEST = true ? "5ddae8c784aa92fac8a541b367a4e978b8493c2213b935ba97e6dd92b43ad49c" : standinSourceDigest();
|
|
19702
19705
|
}
|
|
19703
19706
|
});
|
|
19704
19707
|
|
|
19705
19708
|
// src/expo-native-compiler-digest.ts
|
|
19706
19709
|
function expoNativeCompilerDigestValue() {
|
|
19707
|
-
return true ? "
|
|
19710
|
+
return true ? "77bd2fbb160fc0dbe5d30a609cfd0c890697b189ef38b63db3c6003f98ae219e" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
19708
19711
|
}
|
|
19709
19712
|
var import_node_crypto18;
|
|
19710
19713
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -24480,6 +24483,27 @@ var init_swift_resource_class_names = __esm({
|
|
|
24480
24483
|
}
|
|
24481
24484
|
});
|
|
24482
24485
|
|
|
24486
|
+
// ../peach-kit/src/guest-engine-services.ts
|
|
24487
|
+
var PEACH_GUEST_SERVICE_MODULE, PEACH_GUEST_SERVICE_PREFIX, peachGuestServiceNames, peachGuestServiceSymbols, peachGuestServiceAllowlist;
|
|
24488
|
+
var init_guest_engine_services = __esm({
|
|
24489
|
+
"../peach-kit/src/guest-engine-services.ts"() {
|
|
24490
|
+
"use strict";
|
|
24491
|
+
PEACH_GUEST_SERVICE_MODULE = "peach_guest_services";
|
|
24492
|
+
PEACH_GUEST_SERVICE_PREFIX = "peach_guest_service_";
|
|
24493
|
+
peachGuestServiceNames = [
|
|
24494
|
+
"peach_app_config_resolve",
|
|
24495
|
+
"peach_audio_host_request",
|
|
24496
|
+
"peach_site_origin",
|
|
24497
|
+
"services_request",
|
|
24498
|
+
"services_storage_error"
|
|
24499
|
+
];
|
|
24500
|
+
peachGuestServiceSymbols = peachGuestServiceNames.map(
|
|
24501
|
+
(name3) => PEACH_GUEST_SERVICE_PREFIX + name3
|
|
24502
|
+
);
|
|
24503
|
+
peachGuestServiceAllowlist = peachGuestServiceSymbols.join("\n") + "\n";
|
|
24504
|
+
}
|
|
24505
|
+
});
|
|
24506
|
+
|
|
24483
24507
|
// src/swift-guest-linked-spans.ts
|
|
24484
24508
|
function number(bytes, start) {
|
|
24485
24509
|
let value = 0;
|
|
@@ -25239,7 +25263,146 @@ var init_swift_guest_linked_spans = __esm({
|
|
|
25239
25263
|
}
|
|
25240
25264
|
});
|
|
25241
25265
|
|
|
25266
|
+
// src/wasm-binary-sections.ts
|
|
25267
|
+
function encodeWasmNumber(value) {
|
|
25268
|
+
const bytes = [];
|
|
25269
|
+
for (let rest = value; ; ) {
|
|
25270
|
+
const byte = rest % 128;
|
|
25271
|
+
rest = Math.floor(rest / 128);
|
|
25272
|
+
if (rest === 0) return [...bytes, byte];
|
|
25273
|
+
bytes.push(byte | 128);
|
|
25274
|
+
}
|
|
25275
|
+
}
|
|
25276
|
+
function encodeWasmName(name3) {
|
|
25277
|
+
const bytes = new TextEncoder().encode(name3);
|
|
25278
|
+
return [...encodeWasmNumber(bytes.length), ...bytes];
|
|
25279
|
+
}
|
|
25280
|
+
function readWasmSection(bytes, start, end) {
|
|
25281
|
+
let at = start;
|
|
25282
|
+
const number3 = () => {
|
|
25283
|
+
let value = 0;
|
|
25284
|
+
for (let shift = 0; ; shift += 7) {
|
|
25285
|
+
if (at >= end || shift > 63) throw new Error("invalid wasm integer");
|
|
25286
|
+
const byte = bytes[at++];
|
|
25287
|
+
value += (byte & 127) * 2 ** shift;
|
|
25288
|
+
if (!(byte & 128)) return value;
|
|
25289
|
+
}
|
|
25290
|
+
};
|
|
25291
|
+
return {
|
|
25292
|
+
number: number3,
|
|
25293
|
+
byte: () => {
|
|
25294
|
+
if (at >= end) throw new Error("truncated wasm section");
|
|
25295
|
+
return bytes[at++];
|
|
25296
|
+
},
|
|
25297
|
+
name: () => {
|
|
25298
|
+
const length = number3();
|
|
25299
|
+
at += length;
|
|
25300
|
+
if (at > end) throw new Error("truncated wasm name");
|
|
25301
|
+
return Buffer.from(bytes.buffer, bytes.byteOffset + at - length, length).toString();
|
|
25302
|
+
},
|
|
25303
|
+
position: () => at,
|
|
25304
|
+
done: () => at === end
|
|
25305
|
+
};
|
|
25306
|
+
}
|
|
25307
|
+
function wasmSections(bytes) {
|
|
25308
|
+
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
25309
|
+
throw new Error("not a wasm module");
|
|
25310
|
+
const found = [];
|
|
25311
|
+
for (let at = 8; at < bytes.length; ) {
|
|
25312
|
+
const header = readWasmSection(bytes, at, bytes.length);
|
|
25313
|
+
const id = header.byte();
|
|
25314
|
+
const size2 = header.number();
|
|
25315
|
+
const start = header.position();
|
|
25316
|
+
if (start + size2 > bytes.length) throw new Error("truncated wasm section");
|
|
25317
|
+
found.push({ id, offset: at, start, end: start + size2 });
|
|
25318
|
+
at = start + size2;
|
|
25319
|
+
}
|
|
25320
|
+
return found;
|
|
25321
|
+
}
|
|
25322
|
+
var init_wasm_binary_sections = __esm({
|
|
25323
|
+
"src/wasm-binary-sections.ts"() {
|
|
25324
|
+
"use strict";
|
|
25325
|
+
}
|
|
25326
|
+
});
|
|
25327
|
+
|
|
25328
|
+
// src/wasm-imports.ts
|
|
25329
|
+
function readWasmImports(bytes, section2, visit3) {
|
|
25330
|
+
const input = readWasmSection(bytes, section2.start, section2.end);
|
|
25331
|
+
const count = input.number();
|
|
25332
|
+
const valueType = () => {
|
|
25333
|
+
const first = input.byte();
|
|
25334
|
+
if (first === 99 || first === 100) input.number();
|
|
25335
|
+
};
|
|
25336
|
+
const limits = () => {
|
|
25337
|
+
const flags = input.number();
|
|
25338
|
+
input.number();
|
|
25339
|
+
if (flags & 1) input.number();
|
|
25340
|
+
if (flags & 8) input.number();
|
|
25341
|
+
};
|
|
25342
|
+
for (let index = 0; index < count; index++) {
|
|
25343
|
+
const start = input.position();
|
|
25344
|
+
const module2 = input.name();
|
|
25345
|
+
const name3 = input.name();
|
|
25346
|
+
const type = input.position();
|
|
25347
|
+
const kind = input.byte();
|
|
25348
|
+
switch (kind) {
|
|
25349
|
+
case 0:
|
|
25350
|
+
input.number();
|
|
25351
|
+
break;
|
|
25352
|
+
case 1:
|
|
25353
|
+
valueType();
|
|
25354
|
+
limits();
|
|
25355
|
+
break;
|
|
25356
|
+
case 2:
|
|
25357
|
+
limits();
|
|
25358
|
+
break;
|
|
25359
|
+
case 3:
|
|
25360
|
+
valueType();
|
|
25361
|
+
input.byte();
|
|
25362
|
+
break;
|
|
25363
|
+
case 4:
|
|
25364
|
+
input.byte();
|
|
25365
|
+
input.number();
|
|
25366
|
+
break;
|
|
25367
|
+
default:
|
|
25368
|
+
throw new Error(`unsupported Wasm import kind ${kind}`);
|
|
25369
|
+
}
|
|
25370
|
+
visit3({ module: module2, name: name3, kind, start, type, end: input.position() });
|
|
25371
|
+
}
|
|
25372
|
+
if (!input.done()) throw new Error("invalid Wasm imports");
|
|
25373
|
+
return count;
|
|
25374
|
+
}
|
|
25375
|
+
var init_wasm_imports = __esm({
|
|
25376
|
+
"src/wasm-imports.ts"() {
|
|
25377
|
+
"use strict";
|
|
25378
|
+
init_wasm_binary_sections();
|
|
25379
|
+
}
|
|
25380
|
+
});
|
|
25381
|
+
|
|
25242
25382
|
// src/swift-sdk-image-map.ts
|
|
25383
|
+
function assertPeachGuestEngineLink(map2, linked) {
|
|
25384
|
+
const guestSymbol = /^peach_guest_(sdk|removed|service)_/;
|
|
25385
|
+
const unresolved = /* @__PURE__ */ new Set();
|
|
25386
|
+
for (const chunk of map2.code) {
|
|
25387
|
+
if (chunk.inputFile !== "<internal>" || chunk.section !== "undefined_stub") continue;
|
|
25388
|
+
for (const { name: name3 } of chunk.symbols) if (guestSymbol.test(name3)) unresolved.add(name3);
|
|
25389
|
+
}
|
|
25390
|
+
if (unresolved.size)
|
|
25391
|
+
throw new Error(
|
|
25392
|
+
`unresolved PeachEngine calls in the Swift SDK:
|
|
25393
|
+
${[...unresolved].sort().join("\n")}`
|
|
25394
|
+
);
|
|
25395
|
+
const imports2 = wasmSections(linked).find((section2) => section2.id === 2);
|
|
25396
|
+
if (imports2)
|
|
25397
|
+
readWasmImports(linked, imports2, ({ kind, module: module2, name: name3 }) => {
|
|
25398
|
+
if (module2 !== PEACH_GUEST_SERVICE_MODULE && !guestSymbol.test(name3)) return;
|
|
25399
|
+
if (kind === 0 && module2 === PEACH_GUEST_SERVICE_MODULE && peachGuestServiceSymbols.includes(name3))
|
|
25400
|
+
return;
|
|
25401
|
+
throw new Error(
|
|
25402
|
+
`unexpected PeachEngine host import in the Swift SDK: ${module2}.${name3}`
|
|
25403
|
+
);
|
|
25404
|
+
});
|
|
25405
|
+
}
|
|
25243
25406
|
function isHexChar(code) {
|
|
25244
25407
|
return code >= 48 && code <= 57 || code >= 97 && code <= 102;
|
|
25245
25408
|
}
|
|
@@ -25408,7 +25571,10 @@ var init_swift_sdk_image_map = __esm({
|
|
|
25408
25571
|
"src/swift-sdk-image-map.ts"() {
|
|
25409
25572
|
"use strict";
|
|
25410
25573
|
import_node_path43 = require("node:path");
|
|
25574
|
+
init_guest_engine_services();
|
|
25411
25575
|
init_swift_guest_linked_spans();
|
|
25576
|
+
init_wasm_binary_sections();
|
|
25577
|
+
init_wasm_imports();
|
|
25412
25578
|
PARTITIONED = [
|
|
25413
25579
|
".rodata",
|
|
25414
25580
|
".data",
|
|
@@ -25481,7 +25647,7 @@ function wasmReader(bytes, start) {
|
|
|
25481
25647
|
}
|
|
25482
25648
|
};
|
|
25483
25649
|
}
|
|
25484
|
-
function
|
|
25650
|
+
function wasmSections2(bytes) {
|
|
25485
25651
|
const out = [];
|
|
25486
25652
|
for (let at = 8; at < bytes.length; ) {
|
|
25487
25653
|
const r = wasmReader(bytes, at);
|
|
@@ -25574,7 +25740,7 @@ function* readFunctionNames(bytes, names) {
|
|
|
25574
25740
|
}
|
|
25575
25741
|
}
|
|
25576
25742
|
function orderObjCConstructors(bytes) {
|
|
25577
|
-
const sections =
|
|
25743
|
+
const sections = wasmSections2(bytes);
|
|
25578
25744
|
const names = sections.find((s) => s.name === "name");
|
|
25579
25745
|
if (!names) return bytes;
|
|
25580
25746
|
let constructors;
|
|
@@ -25622,7 +25788,7 @@ function orderObjCConstructors(bytes) {
|
|
|
25622
25788
|
return ordered;
|
|
25623
25789
|
}
|
|
25624
25790
|
function readModule(bytes) {
|
|
25625
|
-
const sections =
|
|
25791
|
+
const sections = wasmSections2(bytes);
|
|
25626
25792
|
const get = (id) => sections.find((s) => s.id === id);
|
|
25627
25793
|
const types2 = [];
|
|
25628
25794
|
const typeSection = get(1);
|
|
@@ -25826,7 +25992,7 @@ function finishSdkImage(bytes, hostExports, libraries, guestMap) {
|
|
|
25826
25992
|
return { image: Buffer.concat(parts), sdkInterface, functionSlots };
|
|
25827
25993
|
}
|
|
25828
25994
|
function passiveSegments(bytes) {
|
|
25829
|
-
const data =
|
|
25995
|
+
const data = wasmSections2(bytes).find((s) => s.id === 11);
|
|
25830
25996
|
if (!data) throw new Error("sdk image has no data section");
|
|
25831
25997
|
const r = wasmReader(bytes, data.start);
|
|
25832
25998
|
const out = [];
|
|
@@ -25931,7 +26097,7 @@ function codeOnlySdkImage(bytes, constructorMask) {
|
|
|
25931
26097
|
function constructorKeys(map2, bytes) {
|
|
25932
26098
|
const first = map2.code[0];
|
|
25933
26099
|
if (!first) throw new Error("link has no code");
|
|
25934
|
-
const sections =
|
|
26100
|
+
const sections = wasmSections2(bytes);
|
|
25935
26101
|
const code = sections.find((s) => s.id === 10);
|
|
25936
26102
|
if (!code) throw new Error("link has no code");
|
|
25937
26103
|
const ctors = map2.code.find((chunk) => chunk.section === "__wasm_call_ctors");
|
|
@@ -26003,7 +26169,7 @@ function constructorKeys(map2, bytes) {
|
|
|
26003
26169
|
return keys;
|
|
26004
26170
|
}
|
|
26005
26171
|
function relocationEdges(bytes, segmentAddress) {
|
|
26006
|
-
const sections =
|
|
26172
|
+
const sections = wasmSections2(bytes);
|
|
26007
26173
|
const linking = sections.find((s) => s.name === "linking");
|
|
26008
26174
|
if (!linking) throw new Error("relocation link has no linking section");
|
|
26009
26175
|
let symKind = new Uint8Array(0);
|
|
@@ -26171,7 +26337,7 @@ function relocationEdges(bytes, segmentAddress) {
|
|
|
26171
26337
|
return { data, code, dataFunctions, calls };
|
|
26172
26338
|
}
|
|
26173
26339
|
function strongDefinitions(bytes) {
|
|
26174
|
-
const linking =
|
|
26340
|
+
const linking = wasmSections2(bytes).find((s) => s.name === "linking");
|
|
26175
26341
|
if (!linking) return [];
|
|
26176
26342
|
const r = wasmReader(bytes, linking.start);
|
|
26177
26343
|
r.u();
|
|
@@ -26214,7 +26380,7 @@ function strongDefinitions(bytes) {
|
|
|
26214
26380
|
).map((s) => s.name);
|
|
26215
26381
|
}
|
|
26216
26382
|
function unslottedFunctions(bytes) {
|
|
26217
|
-
const sections =
|
|
26383
|
+
const sections = wasmSections2(bytes);
|
|
26218
26384
|
const importedFuncs = countImportedFunctions(
|
|
26219
26385
|
bytes,
|
|
26220
26386
|
sections.find((s) => s.id === 2)
|
|
@@ -30520,71 +30686,9 @@ var init_swift_guest_image_ledger = __esm({
|
|
|
30520
30686
|
}
|
|
30521
30687
|
});
|
|
30522
30688
|
|
|
30523
|
-
// src/wasm-binary-sections.ts
|
|
30524
|
-
function encodeWasmNumber(value) {
|
|
30525
|
-
const bytes = [];
|
|
30526
|
-
for (let rest = value; ; ) {
|
|
30527
|
-
const byte = rest % 128;
|
|
30528
|
-
rest = Math.floor(rest / 128);
|
|
30529
|
-
if (rest === 0) return [...bytes, byte];
|
|
30530
|
-
bytes.push(byte | 128);
|
|
30531
|
-
}
|
|
30532
|
-
}
|
|
30533
|
-
function encodeWasmName(name3) {
|
|
30534
|
-
const bytes = new TextEncoder().encode(name3);
|
|
30535
|
-
return [...encodeWasmNumber(bytes.length), ...bytes];
|
|
30536
|
-
}
|
|
30537
|
-
function readWasmSection(bytes, start, end) {
|
|
30538
|
-
let at = start;
|
|
30539
|
-
const number3 = () => {
|
|
30540
|
-
let value = 0;
|
|
30541
|
-
for (let shift = 0; ; shift += 7) {
|
|
30542
|
-
if (at >= end || shift > 63) throw new Error("invalid wasm integer");
|
|
30543
|
-
const byte = bytes[at++];
|
|
30544
|
-
value += (byte & 127) * 2 ** shift;
|
|
30545
|
-
if (!(byte & 128)) return value;
|
|
30546
|
-
}
|
|
30547
|
-
};
|
|
30548
|
-
return {
|
|
30549
|
-
number: number3,
|
|
30550
|
-
byte: () => {
|
|
30551
|
-
if (at >= end) throw new Error("truncated wasm section");
|
|
30552
|
-
return bytes[at++];
|
|
30553
|
-
},
|
|
30554
|
-
name: () => {
|
|
30555
|
-
const length = number3();
|
|
30556
|
-
at += length;
|
|
30557
|
-
if (at > end) throw new Error("truncated wasm name");
|
|
30558
|
-
return Buffer.from(bytes.buffer, bytes.byteOffset + at - length, length).toString();
|
|
30559
|
-
},
|
|
30560
|
-
position: () => at,
|
|
30561
|
-
done: () => at === end
|
|
30562
|
-
};
|
|
30563
|
-
}
|
|
30564
|
-
function wasmSections2(bytes) {
|
|
30565
|
-
if (Buffer.from(bytes.subarray(0, 8)).toString("hex") !== "0061736d01000000")
|
|
30566
|
-
throw new Error("not a wasm module");
|
|
30567
|
-
const found = [];
|
|
30568
|
-
for (let at = 8; at < bytes.length; ) {
|
|
30569
|
-
const header = readWasmSection(bytes, at, bytes.length);
|
|
30570
|
-
const id = header.byte();
|
|
30571
|
-
const size2 = header.number();
|
|
30572
|
-
const start = header.position();
|
|
30573
|
-
if (start + size2 > bytes.length) throw new Error("truncated wasm section");
|
|
30574
|
-
found.push({ id, offset: at, start, end: start + size2 });
|
|
30575
|
-
at = start + size2;
|
|
30576
|
-
}
|
|
30577
|
-
return found;
|
|
30578
|
-
}
|
|
30579
|
-
var init_wasm_binary_sections = __esm({
|
|
30580
|
-
"src/wasm-binary-sections.ts"() {
|
|
30581
|
-
"use strict";
|
|
30582
|
-
}
|
|
30583
|
-
});
|
|
30584
|
-
|
|
30585
30689
|
// src/wasm-narrow-boundary.ts
|
|
30586
30690
|
function readWasmCustomSection(bytes, name3) {
|
|
30587
|
-
for (const { id, start, end } of
|
|
30691
|
+
for (const { id, start, end } of wasmSections(bytes)) {
|
|
30588
30692
|
if (id !== 0) continue;
|
|
30589
30693
|
const contents2 = readWasmSection(bytes, start, end);
|
|
30590
30694
|
if (contents2.name() === name3) return bytes.subarray(contents2.position(), end);
|
|
@@ -30593,7 +30697,7 @@ function readWasmCustomSection(bytes, name3) {
|
|
|
30593
30697
|
}
|
|
30594
30698
|
function dropWasmCustomSection(bytes, name3) {
|
|
30595
30699
|
const parts = [bytes.subarray(0, 8)];
|
|
30596
|
-
for (const { id, offset, start, end } of
|
|
30700
|
+
for (const { id, offset, start, end } of wasmSections(bytes)) {
|
|
30597
30701
|
if (id === 0 && readWasmSection(bytes, start, end).name() === name3) continue;
|
|
30598
30702
|
parts.push(bytes.subarray(offset, end));
|
|
30599
30703
|
}
|
|
@@ -30605,7 +30709,7 @@ function writeWasmCustomSections(bytes, entries2) {
|
|
|
30605
30709
|
const parts = [];
|
|
30606
30710
|
let sliceStart = 0;
|
|
30607
30711
|
let sliceEnd = 8;
|
|
30608
|
-
for (const { id, start, end } of
|
|
30712
|
+
for (const { id, start, end } of wasmSections(bytes)) {
|
|
30609
30713
|
if (id === 0 && replaced.has(readWasmSection(bytes, start, end).name())) {
|
|
30610
30714
|
if (sliceEnd > sliceStart) parts.push(bytes.subarray(sliceStart, sliceEnd));
|
|
30611
30715
|
sliceStart = end;
|
|
@@ -30629,7 +30733,7 @@ function writeWasmCustomSection(bytes, name3, data) {
|
|
|
30629
30733
|
return writeWasmCustomSections(bytes, [[name3, data]]);
|
|
30630
30734
|
}
|
|
30631
30735
|
function readWasmMemory(bytes) {
|
|
30632
|
-
return readWasmMemoryAndTableImports(bytes,
|
|
30736
|
+
return readWasmMemoryAndTableImports(bytes, wasmSections(bytes)).memory;
|
|
30633
30737
|
}
|
|
30634
30738
|
function readWasmMemoryAndTableImports(bytes, layout2) {
|
|
30635
30739
|
let memory;
|
|
@@ -30690,7 +30794,7 @@ function withSections(bytes, layout2, replacements) {
|
|
|
30690
30794
|
return Buffer.concat(parts);
|
|
30691
30795
|
}
|
|
30692
30796
|
function narrowWasmBoundary(bytes, wideExports) {
|
|
30693
|
-
const layout2 =
|
|
30797
|
+
const layout2 = wasmSections(bytes);
|
|
30694
30798
|
const section2 = (id) => {
|
|
30695
30799
|
const found = layout2.find((entry) => entry.id === id);
|
|
30696
30800
|
return found && readWasmSection(bytes, found.start, found.end);
|
|
@@ -30816,7 +30920,7 @@ ${[...imports2, ...functions].join("\n")}
|
|
|
30816
30920
|
};
|
|
30817
30921
|
}
|
|
30818
30922
|
function dropBoundaryExports(bytes) {
|
|
30819
|
-
const layout2 =
|
|
30923
|
+
const layout2 = wasmSections(bytes);
|
|
30820
30924
|
const found = layout2.find((entry) => entry.id === 7);
|
|
30821
30925
|
if (!found) throw new Error("merged module has no exports");
|
|
30822
30926
|
const exportSection = readWasmSection(bytes, found.start, found.end);
|
|
@@ -30835,7 +30939,7 @@ function dropBoundaryExports(bytes) {
|
|
|
30835
30939
|
);
|
|
30836
30940
|
}
|
|
30837
30941
|
function withWasmTableMinimum(bytes, minimum) {
|
|
30838
|
-
const layout2 =
|
|
30942
|
+
const layout2 = wasmSections(bytes);
|
|
30839
30943
|
const table = layout2.find(({ id }) => id === 4);
|
|
30840
30944
|
if (!table) {
|
|
30841
30945
|
if (readWasmMemoryAndTableImports(bytes, layout2).tableImports === 1) return bytes;
|
|
@@ -31132,7 +31236,7 @@ function entries(bytes, section2, entry) {
|
|
|
31132
31236
|
return out;
|
|
31133
31237
|
}
|
|
31134
31238
|
function appendLazyPlacement(bytes, functions, table) {
|
|
31135
|
-
const sections =
|
|
31239
|
+
const sections = wasmSections2(bytes);
|
|
31136
31240
|
const section2 = (id) => sections.find((s) => s.id === id);
|
|
31137
31241
|
const imports2 = readImports2(bytes, sections);
|
|
31138
31242
|
const changes = /* @__PURE__ */ new Map();
|
|
@@ -31250,7 +31354,7 @@ function skipElementSegment(r) {
|
|
|
31250
31354
|
else r.u();
|
|
31251
31355
|
}
|
|
31252
31356
|
function placeGuestLazyFunctions(bytes, lazy) {
|
|
31253
|
-
const sections =
|
|
31357
|
+
const sections = wasmSections2(bytes);
|
|
31254
31358
|
const lazyIndex = new Map(lazy.map((name3, index) => [name3, index]));
|
|
31255
31359
|
const functions = new Array(lazy.length);
|
|
31256
31360
|
let found = 0;
|
|
@@ -40096,6 +40200,8 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
40096
40200
|
import_node_path58.default.join(work, "exports.rsp"),
|
|
40097
40201
|
[...defined].map((name3) => quote3(`--export-if-defined=${name3}`)).join("\n")
|
|
40098
40202
|
);
|
|
40203
|
+
const guestServices = import_node_path58.default.join(work, "peach-guest-services.allow");
|
|
40204
|
+
(0, import_node_fs60.writeFileSync)(guestServices, peachGuestServiceAllowlist);
|
|
40099
40205
|
const args = [
|
|
40100
40206
|
...link.flags,
|
|
40101
40207
|
`--global-base=${SWIFT_SDK_MEMORY_BASE}`,
|
|
@@ -40107,6 +40213,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
40107
40213
|
...lazy,
|
|
40108
40214
|
"--end-lib",
|
|
40109
40215
|
"--unresolved-symbols=ignore-all",
|
|
40216
|
+
`--allow-undefined-file=${guestServices}`,
|
|
40110
40217
|
"--export-dynamic",
|
|
40111
40218
|
...[
|
|
40112
40219
|
"__peach_sdk_register",
|
|
@@ -40139,8 +40246,9 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
40139
40246
|
if (result.status === "rejected") throw result.reason;
|
|
40140
40247
|
}
|
|
40141
40248
|
const rawLink = (0, import_node_fs60.readFileSync)(linked);
|
|
40142
|
-
const linkedBytes = lookups2 ? rawLink : orderObjCConstructors(rawLink);
|
|
40143
40249
|
const linkMap = readWasmLinkMap(map2, true);
|
|
40250
|
+
assertPeachGuestEngineLink(linkMap, rawLink);
|
|
40251
|
+
const linkedBytes = lookups2 ? rawLink : orderObjCConstructors(rawLink);
|
|
40144
40252
|
const {
|
|
40145
40253
|
image: finished,
|
|
40146
40254
|
sdkInterface,
|
|
@@ -40245,7 +40353,7 @@ function sdkLinkInputs(appRoot) {
|
|
|
40245
40353
|
return { flags, libraries, objects: [crt, ...objects], providers };
|
|
40246
40354
|
}
|
|
40247
40355
|
function autolinkLibraries(bytes) {
|
|
40248
|
-
const entries2 =
|
|
40356
|
+
const entries2 = wasmSections2(bytes).find((s) => s.name === ".swift1_autolink_entries");
|
|
40249
40357
|
if (!entries2) return [];
|
|
40250
40358
|
const raw2 = Buffer.isBuffer(bytes) ? bytes : Buffer.from(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
40251
40359
|
return raw2.toString("utf8", entries2.start, entries2.end).split("\0").filter((entry) => entry.startsWith("-l"));
|
|
@@ -40255,7 +40363,7 @@ function sdkHostExports(appRoot) {
|
|
|
40255
40363
|
const linked = (0, import_node_fs60.readdirSync)(release).find((name3) => name3.endsWith(".wasm"));
|
|
40256
40364
|
if (!linked) throw new Error("the sdk image link found no empty app image");
|
|
40257
40365
|
const bytes = (0, import_node_fs60.readFileSync)(import_node_path58.default.join(release, linked));
|
|
40258
|
-
const exports2 =
|
|
40366
|
+
const exports2 = wasmSections2(bytes).find((s) => s.id === 7);
|
|
40259
40367
|
if (!exports2) return [];
|
|
40260
40368
|
const names = [];
|
|
40261
40369
|
let at = exports2.start;
|
|
@@ -40457,6 +40565,7 @@ var init_swift_sdk_image = __esm({
|
|
|
40457
40565
|
import_node_fs60 = require("node:fs");
|
|
40458
40566
|
import_node_path58 = __toESM(require("node:path"), 1);
|
|
40459
40567
|
import_node_util10 = require("node:util");
|
|
40568
|
+
init_guest_engine_services();
|
|
40460
40569
|
init_native_prebuilt();
|
|
40461
40570
|
init_swift_compile();
|
|
40462
40571
|
init_swift_darwin_records();
|
|
@@ -41152,7 +41261,7 @@ async function linkSwiftAppModule(options2) {
|
|
|
41152
41261
|
};
|
|
41153
41262
|
}
|
|
41154
41263
|
function sdkImportThunks(bytes) {
|
|
41155
|
-
const sections =
|
|
41264
|
+
const sections = wasmSections2(bytes);
|
|
41156
41265
|
const section2 = (id) => sections.find((s) => s.id === id);
|
|
41157
41266
|
const valueType = (r) => {
|
|
41158
41267
|
const type = r.byte();
|
|
@@ -41283,7 +41392,7 @@ function sdkImportThunks(bytes) {
|
|
|
41283
41392
|
function resolveSdkReferences(source, sdk2, forwarders) {
|
|
41284
41393
|
const bytes = new Uint8Array(source.buffer, source.byteOffset, source.byteLength);
|
|
41285
41394
|
const { data: sdkData, signatures } = sdk2.sdkInterface;
|
|
41286
|
-
const sections =
|
|
41395
|
+
const sections = wasmSections2(bytes);
|
|
41287
41396
|
const linking = sections.find((s) => s.name === "linking");
|
|
41288
41397
|
if (!linking) throw new Error("app link has no linking section");
|
|
41289
41398
|
const symbols = [];
|
|
@@ -48730,8 +48839,16 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
48730
48839
|
if (mode === "restage" && !matches && !allowHotForeign && isRecentForeignReceipt(slot, Date.now()))
|
|
48731
48840
|
return;
|
|
48732
48841
|
if (!matches) logSelection?.();
|
|
48842
|
+
if (mode === "extend")
|
|
48843
|
+
console.error(
|
|
48844
|
+
`[swift-framework-cache] ${import_node_path70.default.basename(slot)} miss=products release=${release}`
|
|
48845
|
+
);
|
|
48733
48846
|
const value = await work(slot, lease, allowWrite);
|
|
48734
48847
|
if (value === void 0) return;
|
|
48848
|
+
if (mode === "reuse")
|
|
48849
|
+
console.error(
|
|
48850
|
+
`[swift-framework-cache] ${import_node_path70.default.basename(slot)} hit=products release=${release}`
|
|
48851
|
+
);
|
|
48735
48852
|
const now = /* @__PURE__ */ new Date();
|
|
48736
48853
|
(0, import_node_fs70.utimesSync)(slot, now, now);
|
|
48737
48854
|
return { value };
|
|
@@ -48807,7 +48924,7 @@ async function withSwiftFrameworkSlot(frameworkKey, release, moduleRoot, signal,
|
|
|
48807
48924
|
"restage",
|
|
48808
48925
|
() => {
|
|
48809
48926
|
console.error(
|
|
48810
|
-
`[swift-framework-cache] ${import_node_path70.default.basename(slot)} release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs2.size}`
|
|
48927
|
+
`[swift-framework-cache] ${import_node_path70.default.basename(slot)} miss=revision release=${release} tier=${tier} changedInputs=${changes} totalInputs=${inputs2.size}`
|
|
48811
48928
|
);
|
|
48812
48929
|
},
|
|
48813
48930
|
tier >= 2
|
|
@@ -50065,7 +50182,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
50065
50182
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
50066
50183
|
MULTI_MANIFEST_VERSION = 76;
|
|
50067
50184
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
50068
|
-
compilerSourceDigest = true ? "
|
|
50185
|
+
compilerSourceDigest = true ? "07651c3448f918d1873b3ecc1d3db59948c7cbfdd917cd5b69da610a327f857a" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
50069
50186
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
50070
50187
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
50071
50188
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -70162,7 +70279,7 @@ var init_provenance = __esm({
|
|
|
70162
70279
|
import_node_crypto51 = require("node:crypto");
|
|
70163
70280
|
import_node_fs84 = require("node:fs");
|
|
70164
70281
|
import_node_path85 = require("node:path");
|
|
70165
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"
|
|
70282
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"d6a3228567a46c6d5280895383093889d9b868958a117881061bdd74729a225f","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"facdbeb9de6bb12da4ab4954553edfaadd0e486f1181443138be70c3d8396236","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"523fdfffc0cff95c8df7beeca437622a07d4fd666f0bb22b0ff67d14c42a7b10","swift-package.ts":"05c6cf101fbc944f6684a70db0a9c5aede846b2f0482a6b4a5a0abed737d4658","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"cc32d16a0a3539e97447f853dd876b6b9240d544f5e0f21852c5a8333968e8a5","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"d140088a94d032e28788e18bf11499965e0c626255fd904538764ededcf1d751","xcode-target-members.ts":"2379e6d411c5d63fa65ddc24c4e4fc8bfcd001b5be109b694c848fe62908db86","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path85.join)(__sootsim_import_meta_dirname, ".."));
|
|
70166
70283
|
}
|
|
70167
70284
|
});
|
|
70168
70285
|
|
|
@@ -93216,7 +93333,7 @@ function addressImmediates(bytes) {
|
|
|
93216
93333
|
} else throw new Error(`sdk code has unknown instruction ${op.toString(16)}`);
|
|
93217
93334
|
}
|
|
93218
93335
|
};
|
|
93219
|
-
for (const section2 of
|
|
93336
|
+
for (const section2 of wasmSections(bytes)) {
|
|
93220
93337
|
at = section2.start;
|
|
93221
93338
|
if (section2.id === 6)
|
|
93222
93339
|
for (let n = u(); n > 0; n--) {
|
|
@@ -105447,7 +105564,7 @@ var init_nitro_superset = __esm({
|
|
|
105447
105564
|
init_nitroContract();
|
|
105448
105565
|
init_swift_standin_digest();
|
|
105449
105566
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
105450
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
105567
|
+
NITRO_COMPILER_DIGEST = true ? "044328c5350ebb809f06385360a8f8ac2ddc79127894cab52bbe62745e02eda8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
105451
105568
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
105452
105569
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
105453
105570
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2742 | (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.2742 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
import {
|
|
3
3
|
isSwiftResourcePath
|
|
4
|
-
} from "./esm-chunks/chunk-
|
|
4
|
+
} from "./esm-chunks/chunk-IVVVYJKG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
isNativeAppIdentity
|
|
7
|
-
} from "./esm-chunks/chunk-
|
|
8
|
-
import "./esm-chunks/chunk-
|
|
7
|
+
} from "./esm-chunks/chunk-4CNYVYQW.mjs";
|
|
8
|
+
import "./esm-chunks/chunk-VH5KY2GM.mjs";
|
|
9
9
|
import {
|
|
10
10
|
insertBundleGlobalFooter,
|
|
11
11
|
readBundleGlobalFooter
|
|
12
|
-
} from "./esm-chunks/chunk-
|
|
12
|
+
} from "./esm-chunks/chunk-HJBL2ND3.mjs";
|
|
13
13
|
import {
|
|
14
14
|
isRecord
|
|
15
|
-
} from "./esm-chunks/chunk-
|
|
16
|
-
import "./esm-chunks/chunk-
|
|
15
|
+
} from "./esm-chunks/chunk-RC3JQV7D.mjs";
|
|
16
|
+
import "./esm-chunks/chunk-6QTRZNLH.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.2742 | (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;
|