peachsim 0.1.2661 → 0.1.2663
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 +381 -34
- 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-USJ3U6EV.mjs → acorn-GXZHC6Z5.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-VO3IKPJQ.mjs → chunk-3PLIZHXJ.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-22OE2SDL.mjs → chunk-45GQD2X5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-N6VYW7ST.mjs → chunk-4V256AAR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZEV5QATR.mjs → chunk-5OJPOD6B.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YG742NZE.mjs → chunk-5Z5Q5DCY.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-FH6AZQ3X.mjs → chunk-6X2G46JR.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-QLD2VNSE.mjs → chunk-CVAO4T6T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YR4VALGH.mjs → chunk-DPLKN4VG.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-5ESYNY5Q.mjs → chunk-DUPDKR46.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-C6SGD3HB.mjs → chunk-EC5A4V5T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MOX3PEKS.mjs → chunk-EDANXB55.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-JZNXRB2R.mjs → chunk-ILEIXGKP.mjs} +25 -2
- package/dist-lib/esm-chunks/{chunk-HIPO6H4T.mjs → chunk-K4YR2DYZ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-THDPLOES.mjs → chunk-PZLZRTLG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I3V626NF.mjs → chunk-QZPLOMNW.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WGKY5MW3.mjs → chunk-R53R5E3O.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MKZYIFGO.mjs → chunk-RK2B4K2F.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-AJGC4BJS.mjs → chunk-S4DRFJWS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-445HQCQW.mjs → chunk-VGO6ZEQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-B27TGLJK.mjs → chunk-VMEBFOJV.mjs} +19 -16
- package/dist-lib/esm-chunks/{chunk-Z6ZFDHEF.mjs → chunk-W32VR7O3.mjs} +20 -15
- package/dist-lib/esm-chunks/{chunk-RCQC45HG.mjs → chunk-WKSBQPZO.mjs} +19 -1
- package/dist-lib/esm-chunks/{chunk-OVGSRJ47.mjs → chunk-WPZBGLGG.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-GBUGHBPX.mjs → chunk-WQ2WN5E2.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-TCSPS6GW.mjs → metro-layout-parser-N2EK3E3B.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-5YV2GUJW.mjs → swift-package-prebuilt-RG7C6DZN.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-BZ5NCBGU.mjs → swift-sdk-app-module-42W4DLYA.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-BRZLNRJ6.mjs → swift-sdk-image-JWECDNB5.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-HFFFGL6R.mjs → swift-sdk-image-producer-JYBC3FRT.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +377 -30
- 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 +388 -39
- package/dist-lib/host/fetch-proxy-handler.cjs +43 -15
- 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 +20 -2
- 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 +85 -85
- package/dist-lib/public-origins-lib.json +69 -64
- 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 +388 -39
- package/dist-lib/swift-compile.cjs +57 -12
- 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 +19 -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/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/java-platform/licenses/openjdk.txt +9 -2
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/swift-compile.ts +5 -1
- package/src/swift-root-lock.ts +26 -0
- package/src/swift-sdk-image.ts +13 -8
- package/src/swift-toolchain.ts +18 -0
- package/src/turbo-fabric-app.ts +281 -0
- package/src/turbo-source.ts +30 -5
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2663 | (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;
|
|
@@ -30666,7 +30666,7 @@ var init_process_liveness = __esm({
|
|
|
30666
30666
|
var runtime_companion_default;
|
|
30667
30667
|
var init_runtime_companion = __esm({
|
|
30668
30668
|
"runtime-companion.json"() {
|
|
30669
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
30669
|
+
runtime_companion_default = { abi: 1, sha256: "0ad3faed77929d763ea2b0a67e07d83b2b0f804b2274fbd017286c33d22db5ef", file: "node/cli-0ad3faed77929d763ea2b0a67e07d83b2b0f804b2274fbd017286c33d22db5ef.cjs" };
|
|
30670
30670
|
}
|
|
30671
30671
|
});
|
|
30672
30672
|
|
|
@@ -36017,7 +36017,7 @@ var init_swift_objc_sdk_tree = __esm({
|
|
|
36017
36017
|
|
|
36018
36018
|
// src/swift-compiler-digest.ts
|
|
36019
36019
|
function swiftArchiveCompilerDigestValue() {
|
|
36020
|
-
return true ? "
|
|
36020
|
+
return true ? "1d6a57a8166d9d9b3e8a4b6c03c70b1f73f858a100be595aef34f901cf8433d9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname, "archive");
|
|
36021
36021
|
}
|
|
36022
36022
|
var import_node_crypto11, import_node_fs27, import_node_path25, SWIFT_DIGEST_SOURCES, LINKED_IMAGE_SOURCES, SWIFT_ARCHIVE_DIGEST_SOURCES;
|
|
36023
36023
|
var init_swift_compiler_digest = __esm({
|
|
@@ -36162,13 +36162,13 @@ var init_swift_standin_digest = __esm({
|
|
|
36162
36162
|
];
|
|
36163
36163
|
RUNTIME_IMPORT = /(?:^|[;\n])[ \t]*(?:import|export)\s+(?!type(?:\s|\{))([\s\S]*?)\s+from\s*['"]([^'"]+)['"]|(?:^|[;\n])[ \t]*import\s+['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
36164
36164
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS, STANDIN_DIGEST_EXCLUDED_FILES);
|
|
36165
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
36165
|
+
STANDIN_SOURCE_DIGEST = true ? "052de0fbd3c71d7f303b5bc9cc36a998a980e3c58320282620a45495172d86ad" : standinSourceDigest();
|
|
36166
36166
|
}
|
|
36167
36167
|
});
|
|
36168
36168
|
|
|
36169
36169
|
// src/expo-native-compiler-digest.ts
|
|
36170
36170
|
function expoNativeCompilerDigestValue() {
|
|
36171
|
-
return true ? "
|
|
36171
|
+
return true ? "7c21202b510e2d8e478f15f4d1d2696e06cb8b02a9bbfa34bf6a353ab6bf8cad" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
36172
36172
|
}
|
|
36173
36173
|
var import_node_crypto13;
|
|
36174
36174
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -44177,6 +44177,24 @@ var init_swift_toolchain = __esm({
|
|
|
44177
44177
|
import_node_zlib3 = __toESM(require("node:zlib"), 1);
|
|
44178
44178
|
init_swiftTargetContract();
|
|
44179
44179
|
compilerArchives = {
|
|
44180
|
+
"swift-6.4.0-RELEASE-custom-747babe6f837e240": {
|
|
44181
|
+
identity: "747babe6f837e240",
|
|
44182
|
+
archive: "tar.zst",
|
|
44183
|
+
hosts: {
|
|
44184
|
+
"darwin-arm64": {
|
|
44185
|
+
checksum: "2bc61029a5e9f29e4d8d0ed85936edd72b249821f48e2fbbf602d1424f30aa69",
|
|
44186
|
+
manifest: "4bdb605f2db31b12e507bbc0998e4054226aae1926ff1361d2e1bd6a8f87d14a"
|
|
44187
|
+
},
|
|
44188
|
+
"linux-x64": {
|
|
44189
|
+
checksum: "99b8ee28b2afe719ae02b88b4258a05584b7a1e29bb8d429c925819de0c10144",
|
|
44190
|
+
manifest: "b3e5970647fb2020917fceb4b632d733bb0247523739a6eaebe11d1a96d7e3e4"
|
|
44191
|
+
},
|
|
44192
|
+
"linux-arm64": {
|
|
44193
|
+
checksum: "34ace308eac458cd9c808e3bb8b1689ae02f0dff3f7b9d71ab7cf779e5a0cb78",
|
|
44194
|
+
manifest: "87b337c62eb9c546662c21cb31082995aadb3f1088ca3624a4843ab8137452b3"
|
|
44195
|
+
}
|
|
44196
|
+
}
|
|
44197
|
+
},
|
|
44180
44198
|
"swift-6.4.0-RELEASE-custom-77d2c2623ec68c0c": {
|
|
44181
44199
|
identity: "77d2c2623ec68c0c",
|
|
44182
44200
|
archive: "tar.zst",
|
|
@@ -73614,9 +73632,11 @@ var swift_root_lock_exports = {};
|
|
|
73614
73632
|
__export(swift_root_lock_exports, {
|
|
73615
73633
|
acquireSwiftRootReadHold: () => acquireSwiftRootReadHold,
|
|
73616
73634
|
hasLiveSwiftRootReaders: () => hasLiveSwiftRootReaders,
|
|
73635
|
+
retainSwiftRootReadHold: () => retainSwiftRootReadHold,
|
|
73617
73636
|
swiftRootLocksDir: () => swiftRootLocksDir,
|
|
73618
73637
|
waitForNoSwiftRootReaders: () => waitForNoSwiftRootReaders,
|
|
73619
|
-
withSwiftRootLock: () => withSwiftRootLock
|
|
73638
|
+
withSwiftRootLock: () => withSwiftRootLock,
|
|
73639
|
+
withSwiftRootReadHolds: () => withSwiftRootReadHolds
|
|
73620
73640
|
});
|
|
73621
73641
|
function errorCode(error) {
|
|
73622
73642
|
return error instanceof Error && "code" in error && typeof error.code === "string" ? error.code : void 0;
|
|
@@ -73730,6 +73750,25 @@ function rootLockKey(root) {
|
|
|
73730
73750
|
function swiftRootLocksDir() {
|
|
73731
73751
|
return import_node_path71.default.join((0, import_node_os15.homedir)(), ".peach", "cache", "swift-root-locks");
|
|
73732
73752
|
}
|
|
73753
|
+
function withSwiftRootReadHolds(work) {
|
|
73754
|
+
const holds = [];
|
|
73755
|
+
const release = () => {
|
|
73756
|
+
for (const hold of holds.splice(0)) hold.release();
|
|
73757
|
+
};
|
|
73758
|
+
return swiftRootReadHolds.run(holds, async () => {
|
|
73759
|
+
try {
|
|
73760
|
+
return await work(release);
|
|
73761
|
+
} finally {
|
|
73762
|
+
release();
|
|
73763
|
+
}
|
|
73764
|
+
});
|
|
73765
|
+
}
|
|
73766
|
+
function retainSwiftRootReadHold(hold) {
|
|
73767
|
+
const holds = swiftRootReadHolds.getStore();
|
|
73768
|
+
if (!holds) return false;
|
|
73769
|
+
holds.push(hold);
|
|
73770
|
+
return true;
|
|
73771
|
+
}
|
|
73733
73772
|
function lockDirectoryFor(root) {
|
|
73734
73773
|
const directory2 = import_node_path71.default.join(
|
|
73735
73774
|
swiftRootLocksDir(),
|
|
@@ -73903,10 +73942,11 @@ async function withSwiftRootLock(root, work, signal, wait = true) {
|
|
|
73903
73942
|
(0, import_node_fs73.writeFileSync)(import_node_path71.default.join(directory2, name2(held, "released")), "");
|
|
73904
73943
|
}
|
|
73905
73944
|
}
|
|
73906
|
-
var import_node_child_process37, import_node_crypto42, import_node_fs73, import_node_os15, import_node_path71, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name2;
|
|
73945
|
+
var import_node_async_hooks2, import_node_child_process37, import_node_crypto42, import_node_fs73, import_node_os15, import_node_path71, POLL_MS, INSPECT_ATTEMPTS, START_TOLERANCE_MS, name2, swiftRootReadHolds;
|
|
73907
73946
|
var init_swift_root_lock = __esm({
|
|
73908
73947
|
"src/swift-root-lock.ts"() {
|
|
73909
73948
|
"use strict";
|
|
73949
|
+
import_node_async_hooks2 = require("node:async_hooks");
|
|
73910
73950
|
import_node_child_process37 = require("node:child_process");
|
|
73911
73951
|
import_node_crypto42 = require("node:crypto");
|
|
73912
73952
|
import_node_fs73 = require("node:fs");
|
|
@@ -73918,6 +73958,7 @@ var init_swift_root_lock = __esm({
|
|
|
73918
73958
|
INSPECT_ATTEMPTS = 5;
|
|
73919
73959
|
START_TOLERANCE_MS = 2e3;
|
|
73920
73960
|
name2 = (number4, suffix) => `${String(number4).padStart(12, "0")}.${suffix}`;
|
|
73961
|
+
swiftRootReadHolds = new import_node_async_hooks2.AsyncLocalStorage();
|
|
73921
73962
|
}
|
|
73922
73963
|
});
|
|
73923
73964
|
|
|
@@ -74368,20 +74409,23 @@ async function buildSwiftSdkImage(moduleRoot, scopedLookups = false, frameworkIm
|
|
|
74368
74409
|
}
|
|
74369
74410
|
const work = `${directory2}.work`;
|
|
74370
74411
|
try {
|
|
74371
|
-
return await
|
|
74372
|
-
|
|
74373
|
-
|
|
74374
|
-
|
|
74375
|
-
|
|
74376
|
-
|
|
74377
|
-
|
|
74412
|
+
return await withSwiftRootReadHolds(
|
|
74413
|
+
(releaseFrameworks) => linkSwiftSdkImage(
|
|
74414
|
+
moduleRoot,
|
|
74415
|
+
key2,
|
|
74416
|
+
directory2,
|
|
74417
|
+
work,
|
|
74418
|
+
scopedLookups,
|
|
74419
|
+
imports2,
|
|
74420
|
+
releaseFrameworks
|
|
74421
|
+
)
|
|
74378
74422
|
);
|
|
74379
74423
|
} finally {
|
|
74380
74424
|
(0, import_node_fs75.rmSync)(work, { recursive: true, force: true });
|
|
74381
74425
|
}
|
|
74382
74426
|
});
|
|
74383
74427
|
}
|
|
74384
|
-
async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2) {
|
|
74428
|
+
async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLookups, imports2, releaseFrameworks) {
|
|
74385
74429
|
(0, import_node_fs75.rmSync)(work, { recursive: true, force: true });
|
|
74386
74430
|
(0, import_node_fs75.mkdirSync)(work, { recursive: true });
|
|
74387
74431
|
const toolchain = swiftModuleToolchain(moduleRoot);
|
|
@@ -74582,6 +74626,7 @@ async function linkSwiftSdkImage(moduleRoot, key2, directory2, work, scopedLooku
|
|
|
74582
74626
|
linkTo("linked", ["-Map", map2, "-o", linked]),
|
|
74583
74627
|
linkTo("relocs", ["--emit-relocs", "-o", withRelocs])
|
|
74584
74628
|
]);
|
|
74629
|
+
releaseFrameworks();
|
|
74585
74630
|
for (const result of links) {
|
|
74586
74631
|
if (result.status === "rejected") throw result.reason;
|
|
74587
74632
|
}
|
|
@@ -83492,7 +83537,7 @@ ${compatShape}` : "";
|
|
|
83492
83537
|
sdk: sdk2,
|
|
83493
83538
|
icu,
|
|
83494
83539
|
prebuilt,
|
|
83495
|
-
readHold
|
|
83540
|
+
readHold: frameworkReadHold
|
|
83496
83541
|
} = await withFrameworkLock(async (slot, frameworkLease) => {
|
|
83497
83542
|
budget.startCompile();
|
|
83498
83543
|
if (slot && swiftFrameworkSlotKey(slot) !== frameworkKey)
|
|
@@ -83543,6 +83588,7 @@ ${compatShape}` : "";
|
|
|
83543
83588
|
readHold: readHold2
|
|
83544
83589
|
};
|
|
83545
83590
|
});
|
|
83591
|
+
let readHold = frameworkReadHold;
|
|
83546
83592
|
const buildOptions = {
|
|
83547
83593
|
env: baseBuildEnv,
|
|
83548
83594
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -84021,6 +84067,7 @@ ${compatShape}` : "";
|
|
|
84021
84067
|
if ((0, import_node_fs84.statSync)(linked).size <= 8)
|
|
84022
84068
|
throw new Error("swift-compile: deferred linker produced no executable");
|
|
84023
84069
|
stage("project link verified");
|
|
84070
|
+
if (readHold && retainSwiftRootReadHold(readHold)) readHold = void 0;
|
|
84024
84071
|
return;
|
|
84025
84072
|
}
|
|
84026
84073
|
const output = options2.project ? projectOutputFile(root2, linked, options2.project) : linked;
|
|
@@ -84341,7 +84388,7 @@ ${wasmThreadLinkFlags.map((flag) => ` "-Xlinker", ${JSON.stringify(flag
|
|
|
84341
84388
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
84342
84389
|
MULTI_MANIFEST_VERSION = 76;
|
|
84343
84390
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
84344
|
-
compilerSourceDigest = true ? "
|
|
84391
|
+
compilerSourceDigest = true ? "a8a1fcc341892ac0e1a3c924e733388ee30478222b3e1839692997c6dd5555a8" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
84345
84392
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
84346
84393
|
MODULE_MAP_RESPONSE_FILE_RUN = 16;
|
|
84347
84394
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
@@ -97464,7 +97511,7 @@ var init_provenance = __esm({
|
|
|
97464
97511
|
import_node_crypto57 = require("node:crypto");
|
|
97465
97512
|
import_node_fs98 = require("node:fs");
|
|
97466
97513
|
import_node_path99 = require("node:path");
|
|
97467
|
-
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":"
|
|
97514
|
+
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":"692791414734a0fe5949c1d2638941d5de882b8737675deae2e3a49512f2a126","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"c72b724fc497e4cf603c355f86eb3c07c929ad299758cffbc6ff88ed241654c6","xcode-project.ts":"e30510099ee19d34de62d8ae859df53f77594a4ab105fdb5bcd7e005ec9689ca","xcode-target-members.ts":"96f6a9f5567a4fbd9806252229b35b9a451a112b20f70f8c20189ffd428815fd","xcode-json-project.ts":"df6d6db28e0c8cfdf1f480e1e32d35f12c9cf1936642d5dda923889fb18a8fd6","openstep-plist.ts":"da11f86885ef1e25979ad989f332195c113c4b7a43f108e8d36646973430b81b"}') : swiftCoverageSourceDigests((0, import_node_path99.join)(__sootsim_import_meta_dirname, ".."));
|
|
97468
97515
|
}
|
|
97469
97516
|
});
|
|
97470
97517
|
|
|
@@ -127169,11 +127216,11 @@ function disposeSwiftProject(packagePath, signal) {
|
|
|
127169
127216
|
xcodeProjects().delete(packagePath);
|
|
127170
127217
|
sourceEntries().delete(packagePath);
|
|
127171
127218
|
}
|
|
127172
|
-
var
|
|
127219
|
+
var import_node_async_hooks3, import_node_child_process67, import_node_crypto82, import_node_fs135, import_node_os29, import_node_path137, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SDK_PATH, SDK_BINDING_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, startupImages, swiftArtifactDigests, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, emptyWasmAssembly, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS, sdkStartups, sdkStartupParts, sdkStartupPlans, sdkPieces2, sdkSplitBindings, sdkBindingFiles, servedSdkBinding;
|
|
127173
127220
|
var init_swift_host = __esm({
|
|
127174
127221
|
"src/swift-host.ts"() {
|
|
127175
127222
|
"use strict";
|
|
127176
|
-
|
|
127223
|
+
import_node_async_hooks3 = require("node:async_hooks");
|
|
127177
127224
|
import_node_child_process67 = require("node:child_process");
|
|
127178
127225
|
import_node_crypto82 = require("node:crypto");
|
|
127179
127226
|
import_node_fs135 = __toESM(require("node:fs"), 1);
|
|
@@ -127232,7 +127279,7 @@ var init_swift_host = __esm({
|
|
|
127232
127279
|
startupImages = /* @__PURE__ */ new WeakMap();
|
|
127233
127280
|
swiftArtifactDigests = /* @__PURE__ */ new WeakMap();
|
|
127234
127281
|
sharedProjects = /* @__PURE__ */ new Map();
|
|
127235
|
-
projectScope = new
|
|
127282
|
+
projectScope = new import_node_async_hooks3.AsyncLocalStorage();
|
|
127236
127283
|
projects = () => projectScope.getStore()?.projects ?? sharedProjects;
|
|
127237
127284
|
sharedSourceEntries = /* @__PURE__ */ new Map();
|
|
127238
127285
|
sourceEntries = () => projectScope.getStore()?.sourceEntries ?? sharedSourceEntries;
|
|
@@ -127243,7 +127290,7 @@ var init_swift_host = __esm({
|
|
|
127243
127290
|
XCODE_APP_DIR = "__app__";
|
|
127244
127291
|
XCODE_FRAMEWORKS_DIR = "__frameworks__";
|
|
127245
127292
|
XCODE_PACKAGES_DIR = SWIFT_REMOTE_PACKAGES_DIR;
|
|
127246
|
-
layoutScope = new
|
|
127293
|
+
layoutScope = new import_node_async_hooks3.AsyncLocalStorage();
|
|
127247
127294
|
HOSTED_LIMITS = {
|
|
127248
127295
|
sourceBytes: MAX_SWIFT_COMPILE_SOURCE_BYTES,
|
|
127249
127296
|
resources: MAX_SWIFT_COMPILE_RESOURCES,
|
|
@@ -128062,6 +128109,291 @@ var init_turbo_codegen_intake = __esm({
|
|
|
128062
128109
|
}
|
|
128063
128110
|
});
|
|
128064
128111
|
|
|
128112
|
+
// src/turbo-fabric-app.ts
|
|
128113
|
+
var FABRIC_APP_INCLUDES, FABRIC_APP_PRESENTER, FABRIC_APP_INSTALL, FABRIC_APP_METHODS, FABRIC_APP_TEARDOWN;
|
|
128114
|
+
var init_turbo_fabric_app = __esm({
|
|
128115
|
+
"src/turbo-fabric-app.ts"() {
|
|
128116
|
+
"use strict";
|
|
128117
|
+
FABRIC_APP_INCLUDES = `#import <Block.h>
|
|
128118
|
+
#import <React/RCTScheduler.h>
|
|
128119
|
+
#import <React/RCTSurfacePresenter.h>
|
|
128120
|
+
#include <jsi/JSIDynamic.h>
|
|
128121
|
+
#include <react/renderer/components/view/BaseViewProps.h>
|
|
128122
|
+
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
128123
|
+
#include <react/renderer/core/InstanceHandle.h>
|
|
128124
|
+
#include <react/renderer/core/LayoutableShadowNode.h>
|
|
128125
|
+
#include <react/renderer/mounting/ShadowTree.h>
|
|
128126
|
+
#include <react/renderer/uimanager/UIManager.h>
|
|
128127
|
+
`;
|
|
128128
|
+
FABRIC_APP_PRESENTER = `
|
|
128129
|
+
namespace {
|
|
128130
|
+
extern std::shared_ptr<react::CallInvoker> fabricInvoker;
|
|
128131
|
+
extern std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
|
|
128132
|
+
}
|
|
128133
|
+
|
|
128134
|
+
@interface PeachAppSurfacePresenter : RCTSurfacePresenter
|
|
128135
|
+
@property(nonatomic) std::function<void(const react::MountingTransaction &)> publishMount;
|
|
128136
|
+
@property(nonatomic) std::function<void(react::Tag, folly::dynamic)> publishProps;
|
|
128137
|
+
@property(nonatomic) std::function<void(react::Tag, const std::string &, const folly::dynamic &)> dispatchCommand;
|
|
128138
|
+
@end
|
|
128139
|
+
|
|
128140
|
+
@implementation PeachAppSurfacePresenter
|
|
128141
|
+
- (void)schedulerDidFinishTransaction:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
128142
|
+
// guest commits can finish outside a React Native scheduler task.
|
|
128143
|
+
fabricInvoker->invokeAsync([](jsi::Runtime &) {
|
|
128144
|
+
fabricScheduler->scheduleWork([](jsi::Runtime &) {});
|
|
128145
|
+
});
|
|
128146
|
+
}
|
|
128147
|
+
|
|
128148
|
+
- (void)schedulerShouldRenderTransactions:(std::shared_ptr<const react::MountingCoordinator>)coordinator {
|
|
128149
|
+
if (auto transaction = coordinator->pullTransaction()) {
|
|
128150
|
+
self.publishMount(*transaction);
|
|
128151
|
+
}
|
|
128152
|
+
}
|
|
128153
|
+
|
|
128154
|
+
- (void)schedulerDidSynchronouslyUpdateViewOnUIThread:(ReactTag)tag props:(folly::dynamic)props {
|
|
128155
|
+
self.publishProps(static_cast<react::Tag>(tag), std::move(props));
|
|
128156
|
+
}
|
|
128157
|
+
|
|
128158
|
+
- (void)schedulerDidDispatchCommand:(const react::ShadowView &)shadowView
|
|
128159
|
+
commandName:(const std::string &)name
|
|
128160
|
+
args:(const folly::dynamic &)args {
|
|
128161
|
+
self.dispatchCommand(shadowView.tag, name, args);
|
|
128162
|
+
}
|
|
128163
|
+
@end
|
|
128164
|
+
|
|
128165
|
+
namespace {
|
|
128166
|
+
using AppNode = std::shared_ptr<const react::ShadowNode>;
|
|
128167
|
+
using AppChildren = std::vector<AppNode>;
|
|
128168
|
+
|
|
128169
|
+
class PeachAppShadowTree {
|
|
128170
|
+
public:
|
|
128171
|
+
PeachAppShadowTree(std::shared_ptr<react::UIManager> manager, const react::ContextContainer &context)
|
|
128172
|
+
: manager_(std::move(manager)), context_(context) {}
|
|
128173
|
+
|
|
128174
|
+
~PeachAppShadowTree() {
|
|
128175
|
+
if (surface_ != 0) manager_->getShadowTreeRegistry().remove(surface_);
|
|
128176
|
+
}
|
|
128177
|
+
|
|
128178
|
+
void commit(jsi::Runtime &rt, react::SurfaceId surface, double width, double height, double scale,
|
|
128179
|
+
bool rtl, const jsi::Array &roots) {
|
|
128180
|
+
react::LayoutConstraints constraints;
|
|
128181
|
+
constraints.maximumSize = {static_cast<react::Float>(width), static_cast<react::Float>(height)};
|
|
128182
|
+
constraints.minimumSize = constraints.maximumSize;
|
|
128183
|
+
constraints.layoutDirection = rtl ? react::LayoutDirection::RightToLeft : react::LayoutDirection::LeftToRight;
|
|
128184
|
+
react::LayoutContext layout;
|
|
128185
|
+
layout.pointScaleFactor = static_cast<react::Float>(scale);
|
|
128186
|
+
layout.viewportSize = constraints.maximumSize;
|
|
128187
|
+
if (surface_ != 0 && surface_ != surface)
|
|
128188
|
+
throw jsi::JSError(rt, "Fabric runtime is already bound to another app surface");
|
|
128189
|
+
if (surface_ == 0) {
|
|
128190
|
+
surface_ = surface;
|
|
128191
|
+
manager_->startEmptySurface(std::make_unique<react::ShadowTree>(surface_, constraints, layout, *manager_, context_));
|
|
128192
|
+
} else if (constraints != constraints_ || layout != layout_) {
|
|
128193
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
128194
|
+
tree.commit([&](const react::RootShadowNode &root) {
|
|
128195
|
+
return root.clone({surface_, context_}, constraints, layout);
|
|
128196
|
+
}, {});
|
|
128197
|
+
});
|
|
128198
|
+
}
|
|
128199
|
+
constraints_ = constraints;
|
|
128200
|
+
layout_ = layout;
|
|
128201
|
+
|
|
128202
|
+
std::unordered_map<react::Tag, AppNode> next;
|
|
128203
|
+
auto children = readChildren(rt, roots, next);
|
|
128204
|
+
nodes_.swap(next);
|
|
128205
|
+
manager_->completeSurface(surface_, children,
|
|
128206
|
+
{.enableStateReconciliation = true, .mountSynchronously = false, .source = react::ShadowTree::CommitSource::React});
|
|
128207
|
+
}
|
|
128208
|
+
|
|
128209
|
+
jsi::Value handle(jsi::Runtime &rt, react::Tag tag, const jsi::Value &surface, const jsi::Value &generation) const {
|
|
128210
|
+
auto value = react::valueFromShadowNode(rt, node(rt, tag));
|
|
128211
|
+
auto object = value.getObject(rt);
|
|
128212
|
+
object.setProperty(rt, "__nativeTag", tag);
|
|
128213
|
+
object.setProperty(rt, "__viewTag", tag);
|
|
128214
|
+
object.setProperty(rt, "__surfaceId", surface);
|
|
128215
|
+
object.setProperty(rt, "__surfaceGeneration", generation);
|
|
128216
|
+
return object;
|
|
128217
|
+
}
|
|
128218
|
+
|
|
128219
|
+
void dispatch(jsi::Runtime &rt, react::Tag tag, std::string type, const jsi::Value &payload) const {
|
|
128220
|
+
const auto emitter = std::dynamic_pointer_cast<const react::ViewEventEmitter>(node(rt, tag)->getEventEmitter());
|
|
128221
|
+
if (emitter) emitter->dispatchEvent(std::move(type), jsi::dynamicFromValue(rt, payload));
|
|
128222
|
+
}
|
|
128223
|
+
|
|
128224
|
+
void publish(jsi::Runtime &rt, const react::ShadowViewMutation &mutation, const jsi::Function &apply) const {
|
|
128225
|
+
using Mutation = react::ShadowViewMutation;
|
|
128226
|
+
if (mutation.type != Mutation::Insert && mutation.type != Mutation::Update) return;
|
|
128227
|
+
const auto &view = mutation.newChildShadowView;
|
|
128228
|
+
const auto found = nodes_.find(view.tag);
|
|
128229
|
+
if (found == nodes_.end()) return;
|
|
128230
|
+
const auto newest = manager_->getNewestCloneOfShadowNode(*found->second);
|
|
128231
|
+
const auto *target = dynamic_cast<const react::LayoutableShadowNode *>(newest.get());
|
|
128232
|
+
if (!target) return;
|
|
128233
|
+
const react::ShadowNode *parent = nullptr;
|
|
128234
|
+
if (mutation.parentTag != surface_) {
|
|
128235
|
+
const auto mountedParent = nodes_.find(mutation.parentTag);
|
|
128236
|
+
if (mountedParent != nodes_.end()) parent = mountedParent->second.get();
|
|
128237
|
+
}
|
|
128238
|
+
auto layout = jsi::Value::null();
|
|
128239
|
+
// fabric's differ includes the offsets of ancestors it flattens into the mount parent.
|
|
128240
|
+
const auto targetMetrics = mutation.parentTag == surface_ || parent
|
|
128241
|
+
? manager_->getRelativeLayoutMetrics(*target, parent, {.includeTransform = false})
|
|
128242
|
+
: react::EmptyLayoutMetrics;
|
|
128243
|
+
if (targetMetrics != react::EmptyLayoutMetrics && view.layoutMetrics.frame != targetMetrics.frame) {
|
|
128244
|
+
const auto &frame = view.layoutMetrics.frame;
|
|
128245
|
+
const auto &targetFrame = targetMetrics.frame;
|
|
128246
|
+
auto rect = jsi::Array(rt, 8);
|
|
128247
|
+
double dimensions[] = {frame.origin.x, frame.origin.y, frame.size.width, frame.size.height,
|
|
128248
|
+
targetFrame.origin.x, targetFrame.origin.y, targetFrame.size.width, targetFrame.size.height};
|
|
128249
|
+
for (size_t i = 0; i < 8; ++i) rect.setValueAtIndex(rt, i, dimensions[i]);
|
|
128250
|
+
layout = std::move(rect);
|
|
128251
|
+
}
|
|
128252
|
+
auto props = jsi::Object(rt);
|
|
128253
|
+
if (const auto *style = dynamic_cast<const react::BaseViewProps *>(view.props.get())) {
|
|
128254
|
+
const auto *targetStyle = dynamic_cast<const react::BaseViewProps *>(target->getProps().get());
|
|
128255
|
+
if (targetStyle && style->opacity != targetStyle->opacity) props.setProperty(rt, "opacity", style->opacity);
|
|
128256
|
+
if (targetStyle && style->transform != targetStyle->transform) {
|
|
128257
|
+
auto matrix = jsi::Array(rt, 16);
|
|
128258
|
+
const auto transform = style->resolveTransform(view.layoutMetrics);
|
|
128259
|
+
for (size_t i = 0; i < 16; ++i) matrix.setValueAtIndex(rt, i, transform.matrix[i]);
|
|
128260
|
+
auto operation = jsi::Object(rt);
|
|
128261
|
+
operation.setProperty(rt, "matrix", std::move(matrix));
|
|
128262
|
+
auto entries = jsi::Array(rt, 1);
|
|
128263
|
+
entries.setValueAtIndex(rt, 0, std::move(operation));
|
|
128264
|
+
props.setProperty(rt, "transform", std::move(entries));
|
|
128265
|
+
}
|
|
128266
|
+
}
|
|
128267
|
+
apply.call(rt, view.tag, std::move(props), std::move(layout));
|
|
128268
|
+
}
|
|
128269
|
+
|
|
128270
|
+
private:
|
|
128271
|
+
AppNode node(jsi::Runtime &rt, react::Tag tag) const {
|
|
128272
|
+
if (tag == surface_) {
|
|
128273
|
+
AppNode root;
|
|
128274
|
+
manager_->getShadowTreeRegistry().visit(surface_, [&](const react::ShadowTree &tree) {
|
|
128275
|
+
root = tree.getCurrentRevision().rootShadowNode;
|
|
128276
|
+
});
|
|
128277
|
+
if (root) return root;
|
|
128278
|
+
}
|
|
128279
|
+
auto found = nodes_.find(tag);
|
|
128280
|
+
if (found == nodes_.end()) throw jsi::JSError(rt, "Fabric view is absent from its committed surface");
|
|
128281
|
+
if (auto current = manager_->getNewestCloneOfShadowNode(*found->second)) return current;
|
|
128282
|
+
return found->second;
|
|
128283
|
+
}
|
|
128284
|
+
|
|
128285
|
+
std::shared_ptr<AppChildren> readChildren(jsi::Runtime &rt, const jsi::Array &values,
|
|
128286
|
+
std::unordered_map<react::Tag, AppNode> &next) const {
|
|
128287
|
+
auto children = std::make_shared<AppChildren>();
|
|
128288
|
+
children->reserve(values.size(rt));
|
|
128289
|
+
for (size_t i = 0; i < values.size(rt); ++i) {
|
|
128290
|
+
auto row = values.getValueAtIndex(rt, i).asObject(rt).asArray(rt);
|
|
128291
|
+
if (row.size(rt) != 5) throw jsi::JSError(rt, "invalid Fabric view in app commit");
|
|
128292
|
+
const auto tag = static_cast<react::Tag>(row.getValueAtIndex(rt, 0).asNumber());
|
|
128293
|
+
const auto component = row.getValueAtIndex(rt, 1).asString(rt).utf8(rt);
|
|
128294
|
+
const auto properties = row.getValueAtIndex(rt, 2);
|
|
128295
|
+
const auto instance = row.getValueAtIndex(rt, 3);
|
|
128296
|
+
auto descendants = readChildren(rt, row.getValueAtIndex(rt, 4).asObject(rt).asArray(rt), next);
|
|
128297
|
+
auto existing = nodes_.find(tag);
|
|
128298
|
+
AppNode view;
|
|
128299
|
+
if (existing == nodes_.end()) {
|
|
128300
|
+
auto initial = manager_->createNode(tag, component, surface_, react::RawProps(rt, properties),
|
|
128301
|
+
std::make_shared<react::InstanceHandle>(rt, instance, tag));
|
|
128302
|
+
for (const auto &child : *descendants) manager_->appendChild(initial, child);
|
|
128303
|
+
view = std::move(initial);
|
|
128304
|
+
} else {
|
|
128305
|
+
view = manager_->cloneNode(*existing->second, descendants, react::RawProps(rt, properties));
|
|
128306
|
+
}
|
|
128307
|
+
if (!next.emplace(tag, view).second) throw jsi::JSError(rt, "duplicate Fabric view tag in app commit");
|
|
128308
|
+
children->push_back(std::move(view));
|
|
128309
|
+
}
|
|
128310
|
+
return children;
|
|
128311
|
+
}
|
|
128312
|
+
|
|
128313
|
+
std::shared_ptr<react::UIManager> manager_;
|
|
128314
|
+
const react::ContextContainer &context_;
|
|
128315
|
+
react::SurfaceId surface_ = 0;
|
|
128316
|
+
react::LayoutConstraints constraints_;
|
|
128317
|
+
react::LayoutContext layout_;
|
|
128318
|
+
std::unordered_map<react::Tag, AppNode> nodes_;
|
|
128319
|
+
};
|
|
128320
|
+
|
|
128321
|
+
PeachAppSurfacePresenter *appSurfacePresenter;
|
|
128322
|
+
std::unique_ptr<PeachAppShadowTree> appShadowTree;
|
|
128323
|
+
std::optional<jsi::Function> appMountHandler;
|
|
128324
|
+
std::optional<jsi::Function> appPropsHandler;
|
|
128325
|
+
std::optional<jsi::Function> appCommandHandler;
|
|
128326
|
+
}
|
|
128327
|
+
|
|
128328
|
+
id peachAppSurfacePresenter() {
|
|
128329
|
+
return appSurfacePresenter;
|
|
128330
|
+
}
|
|
128331
|
+
`;
|
|
128332
|
+
FABRIC_APP_INSTALL = `
|
|
128333
|
+
react::RuntimeExecutor execute = [invoker = fabricInvoker](std::function<void(jsi::Runtime &)> &&work) {
|
|
128334
|
+
using RuntimeBlock = void (^)(jsi::Runtime &);
|
|
128335
|
+
if (const auto *block = work.target<RuntimeBlock>()) {
|
|
128336
|
+
// stack blocks need a copy before the executor can queue them.
|
|
128337
|
+
RuntimeBlock owned = (__bridge_transfer RuntimeBlock)_Block_copy((__bridge const void *)*block);
|
|
128338
|
+
work = [owned](jsi::Runtime &rt) { owned(rt); };
|
|
128339
|
+
}
|
|
128340
|
+
invoker->invokeAsync(std::move(work));
|
|
128341
|
+
};
|
|
128342
|
+
appSurfacePresenter = [[PeachAppSurfacePresenter alloc] initWithContextContainer:fabricContext
|
|
128343
|
+
runtimeExecutor:execute bridgelessBindingsExecutor:execute];
|
|
128344
|
+
appShadowTree = std::make_unique<PeachAppShadowTree>(appSurfacePresenter.scheduler.uiManager, *fabricContext);
|
|
128345
|
+
appSurfacePresenter.publishMount = [execute](const react::MountingTransaction &transaction) {
|
|
128346
|
+
execute([surface = transaction.getSurfaceId(), mutations = transaction.getMutations()](jsi::Runtime &rt) {
|
|
128347
|
+
if (appShadowTree && appMountHandler) {
|
|
128348
|
+
for (const auto &mutation : mutations) appShadowTree->publish(rt, mutation, *appMountHandler);
|
|
128349
|
+
[appSurfacePresenter.scheduler reportMount:surface];
|
|
128350
|
+
}
|
|
128351
|
+
});
|
|
128352
|
+
};
|
|
128353
|
+
appSurfacePresenter.publishProps = [execute](react::Tag tag, folly::dynamic props) {
|
|
128354
|
+
execute([tag, props = std::move(props)](jsi::Runtime &rt) {
|
|
128355
|
+
if (appPropsHandler) appPropsHandler->call(rt, tag, jsi::valueFromDynamic(rt, props));
|
|
128356
|
+
});
|
|
128357
|
+
};
|
|
128358
|
+
appSurfacePresenter.dispatchCommand = [execute](react::Tag tag, const std::string &name, const folly::dynamic &args) {
|
|
128359
|
+
execute([tag, name, args](jsi::Runtime &rt) {
|
|
128360
|
+
if (appCommandHandler) appCommandHandler->call(rt, tag, jsi::String::createFromUtf8(rt, name), jsi::valueFromDynamic(rt, args));
|
|
128361
|
+
});
|
|
128362
|
+
};
|
|
128363
|
+
`;
|
|
128364
|
+
FABRIC_APP_METHODS = `
|
|
128365
|
+
method("commitApp", 6, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
128366
|
+
appShadowTree->commit(rt, static_cast<react::SurfaceId>(args[0].asNumber()), args[1].asNumber(),
|
|
128367
|
+
args[2].asNumber(), args[3].asNumber(), args[4].getBool(), args[5].asObject(rt).asArray(rt));
|
|
128368
|
+
return jsi::Value::undefined();
|
|
128369
|
+
});
|
|
128370
|
+
method("setAppHandlers", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
128371
|
+
appMountHandler = args[0].asObject(rt).asFunction(rt);
|
|
128372
|
+
appPropsHandler = args[1].asObject(rt).asFunction(rt);
|
|
128373
|
+
appCommandHandler = args[2].asObject(rt).asFunction(rt);
|
|
128374
|
+
return jsi::Value::undefined();
|
|
128375
|
+
});
|
|
128376
|
+
method("dispatchAppEvent", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
128377
|
+
appShadowTree->dispatch(rt, static_cast<react::Tag>(args[0].asNumber()), args[1].asString(rt).utf8(rt), args[2]);
|
|
128378
|
+
return jsi::Value::undefined();
|
|
128379
|
+
});
|
|
128380
|
+
constexpr auto *shadowFactory = "peachCreateFabricShadowHandle";
|
|
128381
|
+
rt.global().setProperty(rt, shadowFactory, jsi::Function::createFromHostFunction(rt,
|
|
128382
|
+
jsi::PropNameID::forAscii(rt, shadowFactory), 3,
|
|
128383
|
+
[](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
128384
|
+
return appShadowTree->handle(rt, static_cast<react::Tag>(args[0].asNumber()), args[1], args[2]);
|
|
128385
|
+
}));
|
|
128386
|
+
`;
|
|
128387
|
+
FABRIC_APP_TEARDOWN = `
|
|
128388
|
+
appShadowTree.reset();
|
|
128389
|
+
appMountHandler.reset();
|
|
128390
|
+
appPropsHandler.reset();
|
|
128391
|
+
appCommandHandler.reset();
|
|
128392
|
+
appSurfacePresenter = nil;
|
|
128393
|
+
`;
|
|
128394
|
+
}
|
|
128395
|
+
});
|
|
128396
|
+
|
|
128065
128397
|
// src/turbo-source.ts
|
|
128066
128398
|
function codegenSpecRoot(codegen) {
|
|
128067
128399
|
const nested = import_node_path141.default.join(codegen, "ReactCodegen");
|
|
@@ -129244,6 +129576,7 @@ async function collectTurboSources(options2) {
|
|
|
129244
129576
|
};
|
|
129245
129577
|
let objc = Boolean(options2.reactNativeProvider);
|
|
129246
129578
|
let fabric = Boolean(options2.reactNativeProvider);
|
|
129579
|
+
let appPresenter = false;
|
|
129247
129580
|
const fabricPackages = /* @__PURE__ */ new Set();
|
|
129248
129581
|
const fabricViews = [];
|
|
129249
129582
|
let fabricTarget = null;
|
|
@@ -129381,6 +129714,11 @@ async function collectTurboSources(options2) {
|
|
|
129381
129714
|
providerObjC = true;
|
|
129382
129715
|
const stripped2 = stripComments3(text7);
|
|
129383
129716
|
if (OBJC_TURBO.test(stripped2) || OBJC_BRIDGE.test(stripped2)) {
|
|
129717
|
+
if (/-\s*\(\s*void\s*\)\s*setSurfacePresenter\s*:/.test(stripped2)) {
|
|
129718
|
+
fabric = true;
|
|
129719
|
+
appPresenter = true;
|
|
129720
|
+
fabricTarget ??= { targetName, label, root: provider.root };
|
|
129721
|
+
}
|
|
129384
129722
|
const registers2 = OBJC_REGISTERED.test(stripped2);
|
|
129385
129723
|
for (const [, className2] of stripped2.matchAll(/@implementation\s+(\w+)/g))
|
|
129386
129724
|
if (!managers.has(className2)) {
|
|
@@ -129836,7 +130174,7 @@ async function collectTurboSources(options2) {
|
|
|
129836
130174
|
if (fabricPackages.has(owner))
|
|
129837
130175
|
fabricViews.push({ name: name3, className: className2 });
|
|
129838
130176
|
}
|
|
129839
|
-
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null);
|
|
130177
|
+
const hostTarget = (fabricViews.length > 0 ? fabricTarget : null) ?? (paperClasses.length > 0 ? paperTarget : null) ?? (appPresenter ? fabricTarget : null);
|
|
129840
130178
|
if (hostTarget) {
|
|
129841
130179
|
result.fabricComponents = fabricViews.map(({ name: name3 }) => name3);
|
|
129842
130180
|
result.paperViewManagers = [...new Set(paperClasses)].sort();
|
|
@@ -129870,7 +130208,7 @@ async function collectTurboSources(options2) {
|
|
|
129870
130208
|
}
|
|
129871
130209
|
}
|
|
129872
130210
|
const unit2 = `${targetPath(hostTarget.targetName)}/PeachFabricHost.mm`;
|
|
129873
|
-
add2(unit2, fabricHostSource(fabricViews, result.paperViewManagers));
|
|
130211
|
+
add2(unit2, fabricHostSource(fabricViews, result.paperViewManagers, appPresenter));
|
|
129874
130212
|
scanText(
|
|
129875
130213
|
{ key: unit2, ...hostTarget, relative: "PeachFabricHost.mm" },
|
|
129876
130214
|
result.files[unit2]
|
|
@@ -130308,6 +130646,7 @@ RCT_EXPORT_METHOD(load:(NSString *)uri
|
|
|
130308
130646
|
extern "C" void RCTRegisterModule(Class);
|
|
130309
130647
|
static PeachTurboModuleDelegate *delegate;
|
|
130310
130648
|
static RCTTurboModuleManager *manager;
|
|
130649
|
+
id peachAppSurfacePresenter() __attribute__((weak));
|
|
130311
130650
|
|
|
130312
130651
|
@implementation PeachTurboModuleDelegate
|
|
130313
130652
|
|
|
@@ -130332,6 +130671,9 @@ static RCTTurboModuleManager *manager;
|
|
|
130332
130671
|
- (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass
|
|
130333
130672
|
{
|
|
130334
130673
|
id<RCTTurboModule> module = [moduleClass new];
|
|
130674
|
+
if (peachAppSurfacePresenter && [module respondsToSelector:@selector(setSurfacePresenter:)]) {
|
|
130675
|
+
[module performSelector:@selector(setSurfacePresenter:) withObject:peachAppSurfacePresenter()];
|
|
130676
|
+
}
|
|
130335
130677
|
if ([module respondsToSelector:@selector(setDispatchToJSThread:)])
|
|
130336
130678
|
((id<RCTJSDispatcherModule>)module).dispatchToJSThread = ^(dispatch_block_t block) {
|
|
130337
130679
|
dispatchToJSThread(block);
|
|
@@ -130407,8 +130749,8 @@ ${hasEventDispatcher ? " if (![RCTGetModuleClasses() containsObject:[RCTEventDi
|
|
|
130407
130749
|
auto& runtime = peach::jsi_runtime::create(
|
|
130408
130750
|
[] { invoker->drain(); },
|
|
130409
130751
|
[] {
|
|
130410
|
-
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
130411
130752
|
[manager invalidate];
|
|
130753
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
130412
130754
|
manager = nil;
|
|
130413
130755
|
delegate = nil;
|
|
130414
130756
|
invoker.reset();
|
|
@@ -130514,12 +130856,13 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
130514
130856
|
}
|
|
130515
130857
|
`;
|
|
130516
130858
|
}
|
|
130517
|
-
function fabricHostSource(views, paperClasses) {
|
|
130859
|
+
function fabricHostSource(views, paperClasses, appPresenter) {
|
|
130518
130860
|
const entries2 = views.map(
|
|
130519
130861
|
({ name: name3, className: className2 }) => `@${JSON.stringify(name3)}: NSClassFromString(@${JSON.stringify(className2)})`
|
|
130520
130862
|
).join(", ");
|
|
130521
130863
|
const paper = paperClasses.length > 0;
|
|
130522
|
-
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}
|
|
130864
|
+
return `${FABRIC_HOST_INCLUDES}${paper ? FABRIC_HOST_PAPER_INCLUDES : ""}${appPresenter ? FABRIC_APP_INCLUDES : ""}
|
|
130865
|
+
${appPresenter ? FABRIC_APP_PRESENTER : ""}
|
|
130523
130866
|
@interface PeachFabricComponents : NSObject <RCTComponentViewFactoryComponentProvider>
|
|
130524
130867
|
@end
|
|
130525
130868
|
|
|
@@ -131259,7 +131602,8 @@ static void peachEventDispatcherDispatchEvent(id self, SEL _cmd, id<RCTEvent> ev
|
|
|
131259
131602
|
NSNumber *reactTag = event.viewTag;
|
|
131260
131603
|
if (!reactTag) return;
|
|
131261
131604
|
auto found = fabricViews.find(reactTag.intValue);
|
|
131262
|
-
if (found == fabricViews.end() || !found->second.family
|
|
131605
|
+
if (found == fabricViews.end() || !found->second.family ||
|
|
131606
|
+
!dynamic_cast<const react::LegacyViewManagerInteropComponentDescriptor *>(found->second.descriptor)) return;
|
|
131263
131607
|
NSArray *args = [event arguments];
|
|
131264
131608
|
NSString *eventName = args.count >= 2 && [args[1] isKindOfClass:[NSString class]]
|
|
131265
131609
|
? args[1]
|
|
@@ -131539,6 +131883,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
131539
131883
|
std::weak_ptr<react::EventLogger>());
|
|
131540
131884
|
react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
|
|
131541
131885
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
131886
|
+
${appPresenter ? FABRIC_APP_INSTALL : ""}
|
|
131542
131887
|
auto views = jsi::Object(rt);
|
|
131543
131888
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
131544
131889
|
views.setProperty(
|
|
@@ -131563,6 +131908,7 @@ ${paper ? ` // Register missing Objective-C selectors on UIKit/QuartzCore class
|
|
|
131563
131908
|
}
|
|
131564
131909
|
}));
|
|
131565
131910
|
};
|
|
131911
|
+
${appPresenter ? FABRIC_APP_METHODS : ""}
|
|
131566
131912
|
// create(name, instanceHandle, props), Create then Insert: the family the
|
|
131567
131913
|
// handle's events resolve through, the first props, the initial state, and
|
|
131568
131914
|
// the layout the view has before the engine measures it
|
|
@@ -131923,6 +132269,7 @@ void peachTeardownFabricViews() {
|
|
|
131923
132269
|
fabricFocusParentTag = 0;
|
|
131924
132270
|
fabricOwner.reset();
|
|
131925
132271
|
fabricEventHandler.reset();
|
|
132272
|
+
${appPresenter ? FABRIC_APP_TEARDOWN : ""}
|
|
131926
132273
|
}
|
|
131927
132274
|
|
|
131928
132275
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
@@ -131954,6 +132301,7 @@ var init_turbo_source = __esm({
|
|
|
131954
132301
|
init_swift_source_file();
|
|
131955
132302
|
init_swiftContract();
|
|
131956
132303
|
init_turbo_codegen_intake();
|
|
132304
|
+
init_turbo_fabric_app();
|
|
131957
132305
|
init_xcode_project();
|
|
131958
132306
|
TURBO_CORE_TARGET = "TurboCore";
|
|
131959
132307
|
TURBO_FMT_TARGET = "TurboFmt";
|
|
@@ -132213,6 +132561,7 @@ using namespace facebook;
|
|
|
132213
132561
|
#import <React/RCTUIManager.h>
|
|
132214
132562
|
#import <React/RCTUtils.h>
|
|
132215
132563
|
#import <React/RCTViewManager.h>
|
|
132564
|
+
#include <react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.h>
|
|
132216
132565
|
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
132217
132566
|
#include <react/renderer/core/ShadowNodeFragment.h>
|
|
132218
132567
|
#include <react/utils/FollyConvert.h>
|
|
@@ -133465,7 +133814,7 @@ var init_react_native_core = __esm({
|
|
|
133465
133814
|
init_swift_distribution();
|
|
133466
133815
|
init_swift_package();
|
|
133467
133816
|
init_swiftContract();
|
|
133468
|
-
recipe = true ? "
|
|
133817
|
+
recipe = true ? "32fd4cb91d846dff44d3a53361a8b93d320b064cfdcfc0b760c1861bc7f53cea" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
133469
133818
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
133470
133819
|
building = /* @__PURE__ */ new Map();
|
|
133471
133820
|
}
|
|
@@ -136093,11 +136442,11 @@ ${diagnostics}`}`
|
|
|
136093
136442
|
}
|
|
136094
136443
|
return true;
|
|
136095
136444
|
}
|
|
136096
|
-
var
|
|
136445
|
+
var import_node_async_hooks4, import_node_child_process71, import_node_crypto88, import_node_fs144, import_node_module20, import_node_os31, import_node_path146, import_node_url7, import_node_util19, run13, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, ownTemporaryRoots, EXPO_MODULE_SCAN_TIMEOUT_MS, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
136097
136446
|
var init_expo_swift_host = __esm({
|
|
136098
136447
|
"src/expo-swift-host.ts"() {
|
|
136099
136448
|
"use strict";
|
|
136100
|
-
|
|
136449
|
+
import_node_async_hooks4 = require("node:async_hooks");
|
|
136101
136450
|
import_node_child_process71 = require("node:child_process");
|
|
136102
136451
|
import_node_crypto88 = require("node:crypto");
|
|
136103
136452
|
import_node_fs144 = __toESM(require("node:fs"), 1);
|
|
@@ -136140,7 +136489,7 @@ var init_expo_swift_host = __esm({
|
|
|
136140
136489
|
EXPO_SWIFT_ROUTE = "/__peach/expo-swift";
|
|
136141
136490
|
EXPO_SWIFT_ENTRY = "Sources/PeachExpoApp/PeachExpoEntry.swift";
|
|
136142
136491
|
WITNESS_BATCH = 200;
|
|
136143
|
-
traceStore = new
|
|
136492
|
+
traceStore = new import_node_async_hooks4.AsyncLocalStorage();
|
|
136144
136493
|
discoveryCache = /* @__PURE__ */ new Map();
|
|
136145
136494
|
preparedCache = /* @__PURE__ */ new Map();
|
|
136146
136495
|
savedFs = null;
|
|
@@ -140878,11 +141227,11 @@ async function handleStagedHostFileRequest(req, res) {
|
|
|
140878
141227
|
throw error;
|
|
140879
141228
|
}
|
|
140880
141229
|
}
|
|
140881
|
-
var
|
|
141230
|
+
var import_node_async_hooks5, import_node_crypto90, import_node_fs152, import_node_path154, stagedCapture, STAGED_PREFIX, STAGED_NAME, METRO_INDEX_NAME, STAGED_RETENTION_MS;
|
|
140882
141231
|
var init_staged_host_files = __esm({
|
|
140883
141232
|
"src/host/staged-host-files.ts"() {
|
|
140884
141233
|
"use strict";
|
|
140885
|
-
|
|
141234
|
+
import_node_async_hooks5 = require("node:async_hooks");
|
|
140886
141235
|
import_node_crypto90 = require("node:crypto");
|
|
140887
141236
|
import_node_fs152 = __toESM(require("node:fs"), 1);
|
|
140888
141237
|
import_node_path154 = __toESM(require("node:path"), 1);
|
|
@@ -140892,7 +141241,7 @@ var init_staged_host_files = __esm({
|
|
|
140892
141241
|
init_launchMetadataContract();
|
|
140893
141242
|
init_runtime_assets();
|
|
140894
141243
|
init_app_package_handler();
|
|
140895
|
-
stagedCapture = new
|
|
141244
|
+
stagedCapture = new import_node_async_hooks5.AsyncLocalStorage();
|
|
140896
141245
|
STAGED_PREFIX = "/__peach/staged/";
|
|
140897
141246
|
STAGED_NAME = /^([a-f0-9]{64})(\.[a-z0-9]{1,10})?$/;
|
|
140898
141247
|
METRO_INDEX_NAME = /^metro-([a-f0-9]{64})$/;
|
|
@@ -148310,7 +148659,7 @@ var init_nitro_superset = __esm({
|
|
|
148310
148659
|
init_nitroContract();
|
|
148311
148660
|
init_swift_standin_digest();
|
|
148312
148661
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
148313
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
148662
|
+
NITRO_COMPILER_DIGEST = true ? "778407e61286034d6ed55be5fcb9b0f2902174b4539a50a46d1cb522ad8b7082" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
148314
148663
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
148315
148664
|
nitroSupersetKey = (inputs2) => nativeEntryKey({ ...inputs2, compiler: NITRO_COMPILER_DIGEST });
|
|
148316
148665
|
published3 = /* @__PURE__ */ new Map();
|
|
@@ -149515,11 +149864,11 @@ function rethrowIfExit(error) {
|
|
|
149515
149864
|
function peachExit(code, reason) {
|
|
149516
149865
|
throw new PeachExit(code, reason);
|
|
149517
149866
|
}
|
|
149518
|
-
var
|
|
149867
|
+
var import_node_async_hooks6, PeachExit, sinks, rnxExit;
|
|
149519
149868
|
var init_run_rnx = __esm({
|
|
149520
149869
|
"cli/run-rnx.ts"() {
|
|
149521
149870
|
"use strict";
|
|
149522
|
-
|
|
149871
|
+
import_node_async_hooks6 = require("node:async_hooks");
|
|
149523
149872
|
PeachExit = class extends Error {
|
|
149524
149873
|
code;
|
|
149525
149874
|
reason;
|
|
@@ -149530,7 +149879,7 @@ var init_run_rnx = __esm({
|
|
|
149530
149879
|
this.reason = reason;
|
|
149531
149880
|
}
|
|
149532
149881
|
};
|
|
149533
|
-
sinks = new
|
|
149882
|
+
sinks = new import_node_async_hooks6.AsyncLocalStorage();
|
|
149534
149883
|
rnxExit = peachExit;
|
|
149535
149884
|
}
|
|
149536
149885
|
});
|