peachsim 0.1.2059 → 0.1.2061
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/package.ts +11 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +61 -20
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +56 -18
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +69 -26
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -5
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +4 -5
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +4 -5
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +91 -50
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +6 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4 -4
- package/dist-lib/vite.cjs +4 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/map-command-channel.d.ts +3 -1
- package/package.json +2 -1
- package/src/expo-discovery-cache.ts +48 -5
- package/src/expo-native-prebuilt.ts +7 -4
- package/src/expo-native-workspace.ts +2 -1
- package/src/expo-pod-prebuilt.ts +2 -2
- package/src/swift-toolchain.ts +6 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "8e6020d17d24474150a5a50d042aca6261819ef75c79680a287a66f395909915", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "4b7d4a715cdaf57468ead23f2ff9dce76d02c6a888d73d144d4baa2ae571ba3c", "swift-package.ts": "0b82b3773f9c0b27636f277d9c123b3e631b9c9980995d67d67efa6b3176df4a", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "90c067104b8525e5b2eb9b8dc400cdd19e433e343cc70497d1ff0dc0c324a2ac", "home-paths.ts": "af600a7f017474946ede726320a133d830e77e4e287b043d4fea026a945ce748", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "3dea1482aa4180b576e9151c1a687590d4b43261cadf7657788febb480a640d9", "xcode-target-members.ts": "ad7589132bffab265e8a10b64e24484fe88b4a2b1cc0ee19a97f151a002eca77", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -41981,6 +41981,9 @@ function swiftCacheDir() {
|
|
|
41981
41981
|
const root = buildersRootEnv();
|
|
41982
41982
|
return root ? import_node_path28.default.join(root, "peach-cache") : import_node_path28.default.join(peachHome(), "cache");
|
|
41983
41983
|
}
|
|
41984
|
+
function sharedCacheDir(fallback) {
|
|
41985
|
+
return buildersRootEnv() ? swiftCacheDir() : fallback;
|
|
41986
|
+
}
|
|
41984
41987
|
function swiftPackageCacheOptions() {
|
|
41985
41988
|
const root = import_node_path28.default.join(swiftCacheDir(), "swiftpm");
|
|
41986
41989
|
return [
|
|
@@ -57606,7 +57609,7 @@ var init_swift_compile = __esm({
|
|
|
57606
57609
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57607
57610
|
MULTI_MANIFEST_VERSION = 68;
|
|
57608
57611
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57609
|
-
compilerSourceDigest = true ? "
|
|
57612
|
+
compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57610
57613
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57611
57614
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57612
57615
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63298,7 +63301,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
63298
63301
|
watch2.excluded = excluded;
|
|
63299
63302
|
const manifest = JSON.parse(import_node_fs62.default.readFileSync(import_node_path60.default.join(root, "package.json"), "utf8"));
|
|
63300
63303
|
const appManifest = JSON.parse(import_node_fs62.default.readFileSync(import_node_path60.default.join(app, "package.json"), "utf8"));
|
|
63301
|
-
const work = import_node_path60.default.join(cacheDir(), "expo-native-workspaces", nativeHash);
|
|
63304
|
+
const work = import_node_path60.default.join(sharedCacheDir(cacheDir()), "expo-native-workspaces", nativeHash);
|
|
63302
63305
|
report(`hashed ${root}`);
|
|
63303
63306
|
const result = await withSwiftRootLock(work, async (lease) => {
|
|
63304
63307
|
const marker = import_node_path60.default.join(work, ".peach-complete");
|
|
@@ -63541,6 +63544,7 @@ var init_expo_native_workspace = __esm({
|
|
|
63541
63544
|
init_portable_expo_workspace();
|
|
63542
63545
|
init_retired_cache_directory();
|
|
63543
63546
|
init_swift_root_lock();
|
|
63547
|
+
init_swift_toolchain();
|
|
63544
63548
|
init_workspace_root();
|
|
63545
63549
|
init_xcode_project();
|
|
63546
63550
|
isolatedGitEnv = {
|
|
@@ -63595,7 +63599,33 @@ async function expoDiscoveryKey(options) {
|
|
|
63595
63599
|
return { key: key2, root };
|
|
63596
63600
|
}
|
|
63597
63601
|
function sharedDir() {
|
|
63598
|
-
return import_node_path61.default.join((
|
|
63602
|
+
return import_node_path61.default.join(sharedCacheDir(import_node_path61.default.join(ambientHomeDir(), "cache")), "expo-discovery");
|
|
63603
|
+
}
|
|
63604
|
+
function vanished2(error) {
|
|
63605
|
+
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
63606
|
+
}
|
|
63607
|
+
function renew(file) {
|
|
63608
|
+
const now = /* @__PURE__ */ new Date();
|
|
63609
|
+
try {
|
|
63610
|
+
import_node_fs63.default.utimesSync(file, now, now);
|
|
63611
|
+
} catch (error) {
|
|
63612
|
+
if (!vanished2(error)) throw error;
|
|
63613
|
+
}
|
|
63614
|
+
}
|
|
63615
|
+
function expireDiscovery(dir, keep) {
|
|
63616
|
+
const sweep = (parent, expiry) => {
|
|
63617
|
+
if (!import_node_fs63.default.existsSync(parent)) return;
|
|
63618
|
+
for (const name3 of import_node_fs63.default.readdirSync(parent)) {
|
|
63619
|
+
if (!expiry(name3)) continue;
|
|
63620
|
+
const file = import_node_path61.default.join(parent, name3);
|
|
63621
|
+
const modified = import_node_fs63.default.statSync(file, { throwIfNoEntry: false })?.mtimeMs;
|
|
63622
|
+
if (modified === void 0 || file === keep) continue;
|
|
63623
|
+
const limit = name3.endsWith(".tmp") ? ORPHAN_TEMPORARY_MS : EXPIRY_MS;
|
|
63624
|
+
if (Date.now() - modified > limit) import_node_fs63.default.rmSync(file, { force: true });
|
|
63625
|
+
}
|
|
63626
|
+
};
|
|
63627
|
+
sweep(dir, (name3) => name3.endsWith(".json") || name3.endsWith(".tmp"));
|
|
63628
|
+
sweep(import_node_path61.default.join(dir, "blobs"), () => true);
|
|
63599
63629
|
}
|
|
63600
63630
|
function isExpoSwiftSourceUnit(value) {
|
|
63601
63631
|
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings(value.classes) && strings(value.bridgeModules) && strings(value.appDelegateSubscribers) && strings(value.reactDelegateHandlers) && stringRecord(value.files) && strings(value.frameworks) && (value.workspaceSources === void 0 || strings(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
@@ -63605,8 +63635,9 @@ function isStoredUnit(value) {
|
|
|
63605
63635
|
}
|
|
63606
63636
|
function readExpoDiscovery(key2) {
|
|
63607
63637
|
let parsed;
|
|
63638
|
+
const record3 = import_node_path61.default.join(sharedDir(), `${key2}.json`);
|
|
63608
63639
|
try {
|
|
63609
|
-
parsed = JSON.parse(import_node_fs63.default.readFileSync(
|
|
63640
|
+
parsed = JSON.parse(import_node_fs63.default.readFileSync(record3, "utf8"));
|
|
63610
63641
|
} catch {
|
|
63611
63642
|
return void 0;
|
|
63612
63643
|
}
|
|
@@ -63625,16 +63656,19 @@ function readExpoDiscovery(key2) {
|
|
|
63625
63656
|
} catch {
|
|
63626
63657
|
return void 0;
|
|
63627
63658
|
}
|
|
63659
|
+
renew(record3);
|
|
63628
63660
|
if (parsed.units === null) return null;
|
|
63629
63661
|
if (!strings(parsed.units) || !parsed.units.every(isDigest)) return void 0;
|
|
63630
63662
|
const blobs = /* @__PURE__ */ new Map();
|
|
63631
63663
|
const read = (digest3) => {
|
|
63632
63664
|
const known = blobs.get(digest3);
|
|
63633
63665
|
if (known !== void 0) return known;
|
|
63634
|
-
const
|
|
63666
|
+
const blob = import_node_path61.default.join(sharedDir(), "blobs", digest3);
|
|
63667
|
+
const body = import_node_fs63.default.readFileSync(blob, "utf8");
|
|
63635
63668
|
if ((0, import_node_crypto31.createHash)("sha256").update(body).digest("hex") !== digest3)
|
|
63636
63669
|
throw new Error("discovery blob differs from its digest");
|
|
63637
63670
|
blobs.set(digest3, body);
|
|
63671
|
+
renew(blob);
|
|
63638
63672
|
return body;
|
|
63639
63673
|
};
|
|
63640
63674
|
const resolve13 = (refs) => {
|
|
@@ -63853,6 +63887,7 @@ function writeExpoDiscovery(options) {
|
|
|
63853
63887
|
})
|
|
63854
63888
|
);
|
|
63855
63889
|
import_node_fs63.default.renameSync(tmp, import_node_path61.default.join(dir, `${options.key}.json`));
|
|
63890
|
+
expireDiscovery(dir, import_node_path61.default.join(dir, `${options.key}.json`));
|
|
63856
63891
|
return null;
|
|
63857
63892
|
}
|
|
63858
63893
|
const preparedRoot = import_node_fs63.default.realpathSync(options.preparedRoot);
|
|
@@ -63911,28 +63946,30 @@ function writeExpoDiscovery(options) {
|
|
|
63911
63946
|
})
|
|
63912
63947
|
);
|
|
63913
63948
|
import_node_fs63.default.renameSync(tmp, import_node_path61.default.join(dir, `${options.key}.json`));
|
|
63949
|
+
expireDiscovery(dir, import_node_path61.default.join(dir, `${options.key}.json`));
|
|
63914
63950
|
return rewritten.units;
|
|
63915
63951
|
} catch (error) {
|
|
63916
63952
|
if (options.signal?.aborted) throw error;
|
|
63917
63953
|
return error instanceof Error ? error.message : String(error);
|
|
63918
63954
|
}
|
|
63919
63955
|
}
|
|
63920
|
-
var import_node_crypto31, import_node_fs63,
|
|
63956
|
+
var import_node_crypto31, import_node_fs63, import_node_path61, import_node_url4, FORMAT, PIPELINE_FILES, EXPIRY_MS, ORPHAN_TEMPORARY_MS, strings, stringRecord, isDigest, digestRecord, sourceLocationLine, MISSING_TREE;
|
|
63921
63957
|
var init_expo_discovery_cache = __esm({
|
|
63922
63958
|
"src/expo-discovery-cache.ts"() {
|
|
63923
63959
|
"use strict";
|
|
63924
63960
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
63925
63961
|
import_node_crypto31 = require("node:crypto");
|
|
63926
63962
|
import_node_fs63 = __toESM(require("node:fs"), 1);
|
|
63927
|
-
import_node_os16 = require("node:os");
|
|
63928
63963
|
import_node_path61 = __toESM(require("node:path"), 1);
|
|
63929
63964
|
import_node_url4 = require("node:url");
|
|
63930
63965
|
init_expo_eager_seam_contract();
|
|
63931
63966
|
init_answeredNativePackages();
|
|
63932
63967
|
init_cli_version();
|
|
63933
63968
|
init_expo_native_workspace();
|
|
63969
|
+
init_home_paths();
|
|
63934
63970
|
init_is_record();
|
|
63935
63971
|
init_native_app_identity();
|
|
63972
|
+
init_swift_toolchain();
|
|
63936
63973
|
init_swiftContract();
|
|
63937
63974
|
FORMAT = "expo-discovery-v5";
|
|
63938
63975
|
PIPELINE_FILES = [
|
|
@@ -63957,6 +63994,8 @@ var init_expo_discovery_cache = __esm({
|
|
|
63957
63994
|
"swift-standins",
|
|
63958
63995
|
"xcode-project"
|
|
63959
63996
|
];
|
|
63997
|
+
EXPIRY_MS = 7 * 24 * 36e5;
|
|
63998
|
+
ORPHAN_TEMPORARY_MS = 24 * 36e5;
|
|
63960
63999
|
strings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
63961
64000
|
stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
63962
64001
|
isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
|
|
@@ -64020,7 +64059,7 @@ var init_swift_standin_digest = __esm({
|
|
|
64020
64059
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
64021
64060
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
64022
64061
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
64023
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
64062
|
+
STANDIN_SOURCE_DIGEST = true ? "d3989025f0bd01881a5114ec49ccc0f742ec0a93aba1a3e3271f90514c18d6de" : standinSourceDigest();
|
|
64024
64063
|
}
|
|
64025
64064
|
});
|
|
64026
64065
|
|
|
@@ -64547,6 +64586,9 @@ var init_package_tree_digest = __esm({
|
|
|
64547
64586
|
});
|
|
64548
64587
|
|
|
64549
64588
|
// src/expo-native-prebuilt.ts
|
|
64589
|
+
function expoNativeCompilerDigestValue() {
|
|
64590
|
+
return true ? "f5b03dc470b9bd69a280676280590a82805bc1302c2af585963b4f1aee29626d" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64591
|
+
}
|
|
64550
64592
|
function readSources(value) {
|
|
64551
64593
|
const sources = isRecord(value) ? value.sources : null;
|
|
64552
64594
|
if (!Array.isArray(sources)) throw new Error("invalid Expo fingerprint");
|
|
@@ -64614,7 +64656,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
64614
64656
|
);
|
|
64615
64657
|
return {
|
|
64616
64658
|
inputs: {
|
|
64617
|
-
compiler:
|
|
64659
|
+
compiler: expoNativeCompilerDigestValue(),
|
|
64618
64660
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
64619
64661
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
64620
64662
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
@@ -64727,7 +64769,7 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
64727
64769
|
if (entry.expoSwift.modules.length === 0 && !entry.identity) return entry.expoSwift;
|
|
64728
64770
|
return servedExpoSwift(appRoot, entry, await prebuiltAppTarget(appRoot, signal));
|
|
64729
64771
|
}
|
|
64730
|
-
var import_node_crypto35, import_node_fs68, import_node_module8, import_node_path66, import_node_util11, import_plist5, EXPO_NATIVE_ENTRY_NAME,
|
|
64772
|
+
var import_node_crypto35, import_node_fs68, import_node_module8, import_node_path66, import_node_util11, import_plist5, EXPO_NATIVE_ENTRY_NAME, IDENTITY_SOURCE_SKIPS, expoNativeEntryUrl, isStringRecord, isPlistArray, published, lookups;
|
|
64731
64773
|
var init_expo_native_prebuilt = __esm({
|
|
64732
64774
|
"src/expo-native-prebuilt.ts"() {
|
|
64733
64775
|
"use strict";
|
|
@@ -64750,7 +64792,6 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64750
64792
|
init_swift_native_pin();
|
|
64751
64793
|
init_xcode_project();
|
|
64752
64794
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64753
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "9261d0a9154839a3f56da0055e3fa5dd6156b6224d07aeea0ea0152cf9ccf227" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64754
64795
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64755
64796
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64756
64797
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -72635,7 +72676,7 @@ function rasterBinary() {
|
|
|
72635
72676
|
try {
|
|
72636
72677
|
import_node_fs81.default.mkdirSync(cacheDir(), { recursive: true });
|
|
72637
72678
|
const source = import_node_path78.default.join(
|
|
72638
|
-
import_node_fs81.default.mkdtempSync(import_node_path78.default.join(
|
|
72679
|
+
import_node_fs81.default.mkdtempSync(import_node_path78.default.join(import_node_os16.default.tmpdir(), "swift-pdf-raster-")),
|
|
72639
72680
|
"raster.swift"
|
|
72640
72681
|
);
|
|
72641
72682
|
import_node_fs81.default.writeFileSync(source, RASTER_SWIFT);
|
|
@@ -72660,7 +72701,7 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
72660
72701
|
} catch {
|
|
72661
72702
|
}
|
|
72662
72703
|
const out = import_node_path78.default.join(
|
|
72663
|
-
import_node_fs81.default.mkdtempSync(import_node_path78.default.join(
|
|
72704
|
+
import_node_fs81.default.mkdtempSync(import_node_path78.default.join(import_node_os16.default.tmpdir(), "swift-pdf-png-")),
|
|
72664
72705
|
"out.png"
|
|
72665
72706
|
);
|
|
72666
72707
|
try {
|
|
@@ -72696,7 +72737,7 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
72696
72737
|
import_node_fs81.default.rmSync(import_node_path78.default.dirname(out), { recursive: true, force: true });
|
|
72697
72738
|
}
|
|
72698
72739
|
}
|
|
72699
|
-
var import_node_child_process42, import_node_crypto42, import_node_fs81,
|
|
72740
|
+
var import_node_child_process42, import_node_crypto42, import_node_fs81, import_node_os16, import_node_path78, RASTER_SWIFT;
|
|
72700
72741
|
var init_swift_pdf_raster = __esm({
|
|
72701
72742
|
"src/swift-pdf-raster.ts"() {
|
|
72702
72743
|
"use strict";
|
|
@@ -72704,7 +72745,7 @@ var init_swift_pdf_raster = __esm({
|
|
|
72704
72745
|
import_node_child_process42 = require("node:child_process");
|
|
72705
72746
|
import_node_crypto42 = require("node:crypto");
|
|
72706
72747
|
import_node_fs81 = __toESM(require("node:fs"), 1);
|
|
72707
|
-
|
|
72748
|
+
import_node_os16 = __toESM(require("node:os"), 1);
|
|
72708
72749
|
import_node_path78 = __toESM(require("node:path"), 1);
|
|
72709
72750
|
init_internal_child_contract();
|
|
72710
72751
|
init_self_invocation();
|
|
@@ -74124,7 +74165,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
|
|
|
74124
74165
|
}
|
|
74125
74166
|
}
|
|
74126
74167
|
if (xcode?.app.postBundleScripts.length) {
|
|
74127
|
-
const dir = import_node_fs82.default.mkdtempSync(import_node_path79.default.join(
|
|
74168
|
+
const dir = import_node_fs82.default.mkdtempSync(import_node_path79.default.join(import_node_os17.default.tmpdir(), "peach-xcode-bundle-"));
|
|
74128
74169
|
const wrapper = import_node_path79.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
|
|
74129
74170
|
const bundle = import_node_path79.default.join(dir, wrapper);
|
|
74130
74171
|
try {
|
|
@@ -75022,7 +75063,7 @@ function disposeSwiftProject(packagePath, signal) {
|
|
|
75022
75063
|
xcodeProjects().delete(packagePath);
|
|
75023
75064
|
sourceEntries().delete(packagePath);
|
|
75024
75065
|
}
|
|
75025
|
-
var import_node_async_hooks, import_node_child_process43, import_node_crypto43, import_node_fs82,
|
|
75066
|
+
var import_node_async_hooks, import_node_child_process43, import_node_crypto43, import_node_fs82, import_node_os17, import_node_path79, ARTIFACT_PATH, RESOURCE_PATH, ICU_PATH, SKIP_ROOT_DIRS, NATIVE_DESCRIPTOR, NATIVE_GLUE, SwiftMissingModulesError, sharedProjects, projectScope, projects, sharedSourceEntries, sourceEntries, sharedXcodeProjects, xcodeProjects, preparedScriptInputs, XCODE_APP_DIR, XCODE_FRAMEWORKS_DIR, XCODE_PACKAGES_DIR, layoutScope, HOSTED_LIMITS, LOCAL_LIMITS, inputLimits, RESOURCE_CONTENT_TYPES, API_GAP_PATTERNS, IOS_SDK_FRAMEWORKS;
|
|
75026
75067
|
var init_swift_host = __esm({
|
|
75027
75068
|
"src/swift-host.ts"() {
|
|
75028
75069
|
"use strict";
|
|
@@ -75031,7 +75072,7 @@ var init_swift_host = __esm({
|
|
|
75031
75072
|
import_node_child_process43 = require("node:child_process");
|
|
75032
75073
|
import_node_crypto43 = require("node:crypto");
|
|
75033
75074
|
import_node_fs82 = __toESM(require("node:fs"), 1);
|
|
75034
|
-
|
|
75075
|
+
import_node_os17 = __toESM(require("node:os"), 1);
|
|
75035
75076
|
import_node_path79 = __toESM(require("node:path"), 1);
|
|
75036
75077
|
init_bundleAssets();
|
|
75037
75078
|
init_stringCatalog();
|
|
@@ -79961,7 +80002,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
79961
80002
|
async function compileTurboModule(options) {
|
|
79962
80003
|
await prepareTurboSourceDependencies(options.reactNativeRoot);
|
|
79963
80004
|
const key2 = (0, import_node_crypto46.createHash)("sha256").update(options.providers.map(({ root }) => import_node_fs89.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs89.default.realpathSync(options.moduleRoot)).digest("hex");
|
|
79964
|
-
const scratch2 = import_node_path86.default.join(
|
|
80005
|
+
const scratch2 = import_node_path86.default.join(import_node_os18.default.tmpdir(), "peach-turbo-swift", key2);
|
|
79965
80006
|
import_node_fs89.default.rmSync(import_node_path86.default.join(scratch2, "codegen"), { recursive: true, force: true });
|
|
79966
80007
|
const collection = await collectTurboSources({
|
|
79967
80008
|
appRoot: options.appRoot,
|
|
@@ -80160,7 +80201,7 @@ async function compileTurboModule(options) {
|
|
|
80160
80201
|
collection
|
|
80161
80202
|
};
|
|
80162
80203
|
}
|
|
80163
|
-
var import_node_crypto46, import_node_fs89, import_node_module12,
|
|
80204
|
+
var import_node_crypto46, import_node_fs89, import_node_module12, import_node_os18, import_node_path86;
|
|
80164
80205
|
var init_turbo_compile = __esm({
|
|
80165
80206
|
"src/turbo-compile.ts"() {
|
|
80166
80207
|
"use strict";
|
|
@@ -80168,7 +80209,7 @@ var init_turbo_compile = __esm({
|
|
|
80168
80209
|
import_node_crypto46 = require("node:crypto");
|
|
80169
80210
|
import_node_fs89 = __toESM(require("node:fs"), 1);
|
|
80170
80211
|
import_node_module12 = require("node:module");
|
|
80171
|
-
|
|
80212
|
+
import_node_os18 = __toESM(require("node:os"), 1);
|
|
80172
80213
|
import_node_path86 = __toESM(require("node:path"), 1);
|
|
80173
80214
|
init_native_app_identity_project();
|
|
80174
80215
|
init_nitro_adapter();
|
|
@@ -81654,7 +81695,7 @@ function expoUnitAppPaths(unit2) {
|
|
|
81654
81695
|
});
|
|
81655
81696
|
}
|
|
81656
81697
|
function expoSwiftPackage(appKey, name3) {
|
|
81657
|
-
return import_node_path87.default.join(
|
|
81698
|
+
return import_node_path87.default.join(import_node_os19.default.tmpdir(), "peach-expo-swift", appKey, `p${process.pid}`, name3);
|
|
81658
81699
|
}
|
|
81659
81700
|
function failureRecordPath(packagePath) {
|
|
81660
81701
|
const app = import_node_path87.default.dirname(import_node_path87.default.dirname(packagePath));
|
|
@@ -82374,7 +82415,7 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
82374
82415
|
}
|
|
82375
82416
|
return true;
|
|
82376
82417
|
}
|
|
82377
|
-
var import_node_async_hooks2, import_node_child_process47, import_node_crypto47, import_node_fs90, import_node_module13,
|
|
82418
|
+
var import_node_async_hooks2, import_node_child_process47, import_node_crypto47, import_node_fs90, import_node_module13, import_node_os19, import_node_path87, import_node_url6, import_node_util15, run8, scriptEnv, EXPO_SWIFT_ROUTE, EXPO_SWIFT_ENTRY, WITNESS_BATCH, traceStore, discoveryCache, preparedCache, savedFs, ignoredRoots, compiling, preparedExpoSwift, openPreparations, ExpoSwiftLinkRefusal;
|
|
82378
82419
|
var init_expo_swift_host = __esm({
|
|
82379
82420
|
"src/expo-swift-host.ts"() {
|
|
82380
82421
|
"use strict";
|
|
@@ -82384,7 +82425,7 @@ var init_expo_swift_host = __esm({
|
|
|
82384
82425
|
import_node_crypto47 = require("node:crypto");
|
|
82385
82426
|
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
82386
82427
|
import_node_module13 = require("node:module");
|
|
82387
|
-
|
|
82428
|
+
import_node_os19 = __toESM(require("node:os"), 1);
|
|
82388
82429
|
import_node_path87 = __toESM(require("node:path"), 1);
|
|
82389
82430
|
import_node_url6 = require("node:url");
|
|
82390
82431
|
import_node_util15 = require("node:util");
|
|
@@ -83557,7 +83598,7 @@ async function compileNitroModule(options) {
|
|
|
83557
83598
|
const key2 = (0, import_node_crypto51.createHash)("sha256").update(
|
|
83558
83599
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
83559
83600
|
).update("\0").update(import_node_fs95.default.realpathSync(options.moduleRoot)).update("\0").update(options.configuration).digest("hex");
|
|
83560
|
-
const packagePath = import_node_path92.default.join(
|
|
83601
|
+
const packagePath = import_node_path92.default.join(import_node_os20.default.tmpdir(), "peach-nitro-swift", key2, `p${process.pid}`);
|
|
83561
83602
|
const sharedLibrary = [...nativeLibraries.values()].find(
|
|
83562
83603
|
(pod) => pod.sharedLibrary
|
|
83563
83604
|
)?.sharedLibrary;
|
|
@@ -83605,14 +83646,14 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
83605
83646
|
...sources(import_node_path92.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
83606
83647
|
];
|
|
83607
83648
|
}
|
|
83608
|
-
var import_node_crypto51, import_node_fs95,
|
|
83649
|
+
var import_node_crypto51, import_node_fs95, import_node_os20, import_node_path92, BUNDLED_CXX_NAMESPACES;
|
|
83609
83650
|
var init_nitro_compile = __esm({
|
|
83610
83651
|
"src/nitro-compile.ts"() {
|
|
83611
83652
|
"use strict";
|
|
83612
83653
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
83613
83654
|
import_node_crypto51 = require("node:crypto");
|
|
83614
83655
|
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
83615
|
-
|
|
83656
|
+
import_node_os20 = __toESM(require("node:os"), 1);
|
|
83616
83657
|
import_node_path92 = __toESM(require("node:path"), 1);
|
|
83617
83658
|
init_installed_native_libraries();
|
|
83618
83659
|
init_native_app_identity_project();
|
|
@@ -83775,7 +83816,7 @@ var init_nitro_superset = __esm({
|
|
|
83775
83816
|
init_nitroContract();
|
|
83776
83817
|
init_swift_standin_digest();
|
|
83777
83818
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
83778
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
83819
|
+
NITRO_COMPILER_DIGEST = true ? "3cc5750baacfcc2b136b9721df281ca2921d659c21133bbfb8d04aa7642e9ed5" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
83779
83820
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
83780
83821
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
83781
83822
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -86723,7 +86764,7 @@ async function scanDevServers(opts = {}) {
|
|
|
86723
86764
|
}
|
|
86724
86765
|
return results.filter((r) => !isSootSimSelfServer(r)).sort((a, b) => a.port - b.port);
|
|
86725
86766
|
}
|
|
86726
|
-
var import_child_process, import_promises11, import_http, import_net, import_node_fs101,
|
|
86767
|
+
var import_child_process, import_promises11, import_http, import_net, import_node_fs101, import_node_os21, import_node_path101, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, TIMEOUT_MS, MANIFEST_TIMEOUT_MS, SERVER_SCAN_PROBE_HEADER, TCP_GATE_MS, BODY_TIMEOUT_MS, FALLBACK_PORTS, SELF_PORT_RANGE_START, SELF_PORT_RANGE_END, DevServerScanUnavailableError, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing, localIconPathCache, localIconProbeInFlight, ENRICH_TIMEOUT_MS, enrichmentCache, enrichmentInFlight, knownNonPatched, knownOne, portCache, portCacheInvalidatedAt, NEGATIVE_CACHE_TTL_MS, WEAK_RESULT_CACHE_TTL_MS;
|
|
86727
86768
|
var init_dev_server_scanner = __esm({
|
|
86728
86769
|
"scripts/dev-server-scanner.ts"() {
|
|
86729
86770
|
"use strict";
|
|
@@ -86733,7 +86774,7 @@ var init_dev_server_scanner = __esm({
|
|
|
86733
86774
|
import_http = __toESM(require("http"), 1);
|
|
86734
86775
|
import_net = __toESM(require("net"), 1);
|
|
86735
86776
|
import_node_fs101 = require("node:fs");
|
|
86736
|
-
|
|
86777
|
+
import_node_os21 = require("node:os");
|
|
86737
86778
|
import_node_path101 = require("node:path");
|
|
86738
86779
|
init_backend_origin();
|
|
86739
86780
|
init_config();
|
|
@@ -86745,8 +86786,8 @@ var init_dev_server_scanner = __esm({
|
|
|
86745
86786
|
init_settings_bundle();
|
|
86746
86787
|
init_swiftDiscoveryContract();
|
|
86747
86788
|
init_optional_demo_registry();
|
|
86748
|
-
LISTENER_LOCK_PATH = (0, import_node_path101.join)((0,
|
|
86749
|
-
LISTENER_RESULT_PATH = (0, import_node_path101.join)((0,
|
|
86789
|
+
LISTENER_LOCK_PATH = (0, import_node_path101.join)((0, import_node_os21.tmpdir)(), "peach-listener-scan.lock");
|
|
86790
|
+
LISTENER_RESULT_PATH = (0, import_node_path101.join)((0, import_node_os21.tmpdir)(), "peach-listener-scan.result");
|
|
86750
86791
|
LISTENER_LOCK_STALE_MS = 25e3;
|
|
86751
86792
|
LISTENER_LOCK_WAIT_MS = 8e3;
|
|
86752
86793
|
TIMEOUT_MS = 250;
|
|
@@ -102411,17 +102452,17 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
|
102411
102452
|
schedule();
|
|
102412
102453
|
};
|
|
102413
102454
|
}
|
|
102414
|
-
var import_node_child_process54, import_node_fs122,
|
|
102455
|
+
var import_node_child_process54, import_node_fs122, import_node_os22, import_node_path123, LEDGER_PATH2, TICK_MS2, timers, poll, pollDueAt;
|
|
102415
102456
|
var init_pause_aware_timeout = __esm({
|
|
102416
102457
|
"cli/pause-aware-timeout.ts"() {
|
|
102417
102458
|
"use strict";
|
|
102418
102459
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
102419
102460
|
import_node_child_process54 = require("node:child_process");
|
|
102420
102461
|
import_node_fs122 = require("node:fs");
|
|
102421
|
-
|
|
102462
|
+
import_node_os22 = __toESM(require("node:os"), 1);
|
|
102422
102463
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
102423
102464
|
LEDGER_PATH2 = import_node_path123.default.join(
|
|
102424
|
-
process.env.TM_HOME || import_node_path123.default.join(
|
|
102465
|
+
process.env.TM_HOME || import_node_path123.default.join(import_node_os22.default.homedir(), ".team-machine"),
|
|
102425
102466
|
"governor-pauses.json"
|
|
102426
102467
|
);
|
|
102427
102468
|
TICK_MS2 = 500;
|
|
@@ -106105,7 +106146,7 @@ var init_crash_fingerprint = __esm({
|
|
|
106105
106146
|
// cli/telemetry.ts
|
|
106106
106147
|
function sanitizeDiagnosticMessage(value) {
|
|
106107
106148
|
const firstLine = value.slice(0, 2048).split(/[\r\n\u2028\u2029]/, 1)[0] ?? "";
|
|
106108
|
-
return firstLine.split((0,
|
|
106149
|
+
return firstLine.split((0, import_node_os23.homedir)()).join("<home>").replace(
|
|
106109
106150
|
/<package:(?:@[\w.-]+\/)?[\w.-]+>|(?:https?:\/\/|file:\/\/|[A-Za-z]:[\\/]|<home>[\\/]|\/|\.{1,2}[\\/]|\b[\w.-]+[\\/])(?:[^\s"'<>]|\s(?=[^"'<>]*[\\/]))+/g,
|
|
106110
106151
|
(location) => {
|
|
106111
106152
|
if (location.startsWith("<package:")) return location;
|
|
@@ -106137,12 +106178,12 @@ function trackCliDiagnostic(diagnostic) {
|
|
|
106137
106178
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
106138
106179
|
});
|
|
106139
106180
|
}
|
|
106140
|
-
var
|
|
106181
|
+
var import_node_os23, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
|
|
106141
106182
|
var init_telemetry = __esm({
|
|
106142
106183
|
"cli/telemetry.ts"() {
|
|
106143
106184
|
"use strict";
|
|
106144
106185
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
106145
|
-
|
|
106186
|
+
import_node_os23 = require("node:os");
|
|
106146
106187
|
init_event_identity();
|
|
106147
106188
|
init_cli_version();
|
|
106148
106189
|
init_crash_fingerprint();
|
|
@@ -111823,7 +111864,7 @@ function stageBuiltBundleManifest(bundleUrl, config) {
|
|
|
111823
111864
|
const bundle = new URL(bundleUrl);
|
|
111824
111865
|
if (!isStagedHostFileRequest(bundle.pathname) || Object.keys(config).length === 0)
|
|
111825
111866
|
return null;
|
|
111826
|
-
const directory2 = import_node_fs130.default.mkdtempSync(import_node_path131.default.join(
|
|
111867
|
+
const directory2 = import_node_fs130.default.mkdtempSync(import_node_path131.default.join(import_node_os24.default.tmpdir(), "peach-app-manifest-"));
|
|
111827
111868
|
try {
|
|
111828
111869
|
const file = import_node_path131.default.join(directory2, "manifest.json");
|
|
111829
111870
|
import_node_fs130.default.writeFileSync(file, JSON.stringify({ extra: { expoClient: config } }));
|
|
@@ -112005,13 +112046,13 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
112005
112046
|
for (const entry of opts.args ?? []) url.searchParams.append("arg", entry);
|
|
112006
112047
|
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin);
|
|
112007
112048
|
}
|
|
112008
|
-
var import_node_fs130,
|
|
112049
|
+
var import_node_fs130, import_node_os24, import_node_path131, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS, startedExpoConfigReads;
|
|
112009
112050
|
var init_shell_url = __esm({
|
|
112010
112051
|
"cli/commands/shell-url.ts"() {
|
|
112011
112052
|
"use strict";
|
|
112012
112053
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
112013
112054
|
import_node_fs130 = __toESM(require("node:fs"), 1);
|
|
112014
|
-
|
|
112055
|
+
import_node_os24 = __toESM(require("node:os"), 1);
|
|
112015
112056
|
import_node_path131 = __toESM(require("node:path"), 1);
|
|
112016
112057
|
init_oneViteAliases();
|
|
112017
112058
|
init_dev_server_scanner();
|
|
@@ -121375,7 +121416,7 @@ async function connectBridgeForOpen(preferredPort, explicitPort, resources, runt
|
|
|
121375
121416
|
}
|
|
121376
121417
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
121377
121418
|
const bridgeLogPath = import_node_path140.default.join(
|
|
121378
|
-
|
|
121419
|
+
import_node_os25.default.tmpdir(),
|
|
121379
121420
|
`peach-bridge-${Date.now()}-${process.pid}.log`
|
|
121380
121421
|
);
|
|
121381
121422
|
const bridgeLogFd = import_node_fs139.default.openSync(bridgeLogPath, "a");
|
|
@@ -121560,8 +121601,8 @@ function unreachableBridgeMessage(port, handshake, timeoutMs) {
|
|
|
121560
121601
|
return `peach open: requested bridge port ${port} is held by another program, not a peach bridge. stop it or pass a free port with --port <port>.`;
|
|
121561
121602
|
}
|
|
121562
121603
|
if (handshake === "timeout") {
|
|
121563
|
-
const cores = Math.max(1,
|
|
121564
|
-
const load2 =
|
|
121604
|
+
const cores = Math.max(1, import_node_os25.default.cpus().length);
|
|
121605
|
+
const load2 = import_node_os25.default.loadavg()[0];
|
|
121565
121606
|
if (load2 >= cores) {
|
|
121566
121607
|
return `peach open: requested bridge port ${port} did not finish its handshake within ${timeoutMs / 1e3}s while load average was ${load2.toFixed(1)} on ${cores} cores.`;
|
|
121567
121608
|
}
|
|
@@ -121628,7 +121669,7 @@ async function stagePrebuiltBundle(file, bridgePort, prepareSource) {
|
|
|
121628
121669
|
}
|
|
121629
121670
|
function normalizeReplacementPath(filePath) {
|
|
121630
121671
|
if (filePath.startsWith("~/")) {
|
|
121631
|
-
return import_node_path140.default.join(
|
|
121672
|
+
return import_node_path140.default.join(import_node_os25.default.homedir(), filePath.slice(2));
|
|
121632
121673
|
}
|
|
121633
121674
|
if (import_node_path140.default.isAbsolute(filePath)) return filePath;
|
|
121634
121675
|
return import_node_path140.default.resolve(process.cwd(), filePath);
|
|
@@ -122808,7 +122849,7 @@ async function openSim(args, opts) {
|
|
|
122808
122849
|
});
|
|
122809
122850
|
const attached = await bridge.listSims().then((sims) => sims.find((sim) => sim.id === match.id)?.readyState ?? "gone").catch(() => "unknown");
|
|
122810
122851
|
console.error(
|
|
122811
|
-
` sim ${match.id} bridge state: ${attached}; host load ${
|
|
122852
|
+
` sim ${match.id} bridge state: ${attached}; host load ${import_node_os25.default.loadavg()[0].toFixed(1)} on ${import_node_os25.default.cpus().length} cpus (a loaded host slows a cold first bundle past the budget; a sim that is open but never answers has a blocked page)`
|
|
122812
122853
|
);
|
|
122813
122854
|
await printBridgeFailureDiagnostics(bridge, {
|
|
122814
122855
|
errorsCommand: `peach get errors 5${hint}`,
|
|
@@ -123155,7 +123196,7 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
123155
123196
|
bridge.close();
|
|
123156
123197
|
}
|
|
123157
123198
|
}
|
|
123158
|
-
var import_node_child_process56, import_node_fs139, import_node_http5, import_node_https2, import_node_net,
|
|
123199
|
+
var import_node_child_process56, import_node_fs139, import_node_http5, import_node_https2, import_node_net, import_node_os25, import_node_path140, import_ws7, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, OPEN_BRIDGE_RUNTIME_TIMEOUT_MS, OPEN_BRIDGE_HEALTH_TIMEOUT_MS, OPEN_BRIDGE_SILENCE_MS, LIVE_BRIDGE_HANDSHAKE_TIMEOUT_MS;
|
|
123159
123200
|
var init_control = __esm({
|
|
123160
123201
|
"cli/commands/control.ts"() {
|
|
123161
123202
|
"use strict";
|
|
@@ -123165,7 +123206,7 @@ var init_control = __esm({
|
|
|
123165
123206
|
import_node_http5 = __toESM(require("node:http"), 1);
|
|
123166
123207
|
import_node_https2 = __toESM(require("node:https"), 1);
|
|
123167
123208
|
import_node_net = __toESM(require("node:net"), 1);
|
|
123168
|
-
|
|
123209
|
+
import_node_os25 = __toESM(require("node:os"), 1);
|
|
123169
123210
|
import_node_path140 = __toESM(require("node:path"), 1);
|
|
123170
123211
|
init_src();
|
|
123171
123212
|
import_ws7 = require("ws");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (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;
|
|
@@ -12436,7 +12436,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12436
12436
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12437
12437
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12438
12438
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12439
|
-
var compilerSourceDigest = true ? "
|
|
12439
|
+
var compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12440
12440
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12441
12441
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12442
12442
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -12418,7 +12418,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12418
12418
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12419
12419
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12420
12420
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12421
|
-
var compilerSourceDigest = true ? "
|
|
12421
|
+
var compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12422
12422
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12423
12423
|
const hash = createHash13("sha256");
|
|
12424
12424
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (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;
|
|
@@ -46,6 +46,7 @@ __export(swift_toolchain_exports, {
|
|
|
46
46
|
privateSwiftDistributionRoot: () => privateSwiftDistributionRoot,
|
|
47
47
|
registerSwiftHostCompiler: () => registerSwiftHostCompiler,
|
|
48
48
|
setSwiftLinuxLibraryPath: () => setSwiftLinuxLibraryPath,
|
|
49
|
+
sharedCacheDir: () => sharedCacheDir,
|
|
49
50
|
sourceSwiftCheckout: () => sourceSwiftCheckout,
|
|
50
51
|
swiftCacheDir: () => swiftCacheDir,
|
|
51
52
|
swiftCompiler: () => swiftCompiler,
|
|
@@ -523,6 +524,9 @@ function swiftCacheDir() {
|
|
|
523
524
|
const root = buildersRootEnv();
|
|
524
525
|
return root ? import_node_path.default.join(root, "peach-cache") : import_node_path.default.join(peachHome(), "cache");
|
|
525
526
|
}
|
|
527
|
+
function sharedCacheDir(fallback) {
|
|
528
|
+
return buildersRootEnv() ? swiftCacheDir() : fallback;
|
|
529
|
+
}
|
|
526
530
|
function swiftProjectBuildsDir(checkoutRoot) {
|
|
527
531
|
const root = buildersRootEnv();
|
|
528
532
|
return root ? import_node_path.default.join(swiftCacheDir(), "swift-project-builds") : import_node_path.default.join(checkoutRoot, "scripts", "tmp", "swift-projects");
|
|
@@ -983,6 +987,7 @@ function swiftCompilerInstall(release) {
|
|
|
983
987
|
privateSwiftDistributionRoot,
|
|
984
988
|
registerSwiftHostCompiler,
|
|
985
989
|
setSwiftLinuxLibraryPath,
|
|
990
|
+
sharedCacheDir,
|
|
986
991
|
sourceSwiftCheckout,
|
|
987
992
|
swiftCacheDir,
|
|
988
993
|
swiftCompiler,
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2061 | (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;
|