peachsim 0.1.2057 → 0.1.2060
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/control.ts +8 -1
- 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 +70 -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 +65 -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 +78 -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 +108 -51
- package/dist-lib/swift-compile.cjs +10 -2
- package/dist-lib/swift-compile.mjs +10 -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 +12 -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/components/native-ui/context-menu-types.d.ts +1 -1
- package/package.json +2 -1
- package/src/admitted-mac-build.ts +11 -0
- 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.2060 | (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
|
|
|
@@ -34683,10 +34683,19 @@ var init_expo_autolinking = __esm({
|
|
|
34683
34683
|
|
|
34684
34684
|
// src/admitted-mac-build.ts
|
|
34685
34685
|
function teamMachineInstalled() {
|
|
34686
|
+
if (process.env.CONTRAST_HEAVY_ADMITTED === "1") return false;
|
|
34686
34687
|
const result = (0, import_node_child_process12.spawnSync)("tm", ["--version"], { stdio: "ignore" });
|
|
34687
34688
|
return !(result.error && "code" in result.error && result.error.code === "ENOENT");
|
|
34688
34689
|
}
|
|
34689
34690
|
function windowAdmission() {
|
|
34691
|
+
if (process.env.CONTRAST_HEAVY_ADMITTED === "1") {
|
|
34692
|
+
const cores = Number(process.env.CONTRAST_HEAVY_CPU_CORES);
|
|
34693
|
+
return {
|
|
34694
|
+
kind: process.env.CONTRAST_HEAVY_ADMISSION_MODE === "exclusive" ? "quiet" : "heavy",
|
|
34695
|
+
cores: Number.isFinite(cores) && cores > 0 ? Math.max(1, Math.floor(cores)) : null,
|
|
34696
|
+
scopes: []
|
|
34697
|
+
};
|
|
34698
|
+
}
|
|
34690
34699
|
const result = (0, import_node_child_process12.spawnSync)("tm", ["window", "ancestor", "--json"], {
|
|
34691
34700
|
encoding: "utf8",
|
|
34692
34701
|
stdio: ["ignore", "pipe", "inherit"]
|
|
@@ -41972,6 +41981,9 @@ function swiftCacheDir() {
|
|
|
41972
41981
|
const root = buildersRootEnv();
|
|
41973
41982
|
return root ? import_node_path28.default.join(root, "peach-cache") : import_node_path28.default.join(peachHome(), "cache");
|
|
41974
41983
|
}
|
|
41984
|
+
function sharedCacheDir(fallback) {
|
|
41985
|
+
return buildersRootEnv() ? swiftCacheDir() : fallback;
|
|
41986
|
+
}
|
|
41975
41987
|
function swiftPackageCacheOptions() {
|
|
41976
41988
|
const root = import_node_path28.default.join(swiftCacheDir(), "swiftpm");
|
|
41977
41989
|
return [
|
|
@@ -57597,7 +57609,7 @@ var init_swift_compile = __esm({
|
|
|
57597
57609
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
57598
57610
|
MULTI_MANIFEST_VERSION = 68;
|
|
57599
57611
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
57600
|
-
compilerSourceDigest = true ? "
|
|
57612
|
+
compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
57601
57613
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
57602
57614
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
57603
57615
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -63289,7 +63301,7 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
|
|
|
63289
63301
|
watch2.excluded = excluded;
|
|
63290
63302
|
const manifest = JSON.parse(import_node_fs62.default.readFileSync(import_node_path60.default.join(root, "package.json"), "utf8"));
|
|
63291
63303
|
const appManifest = JSON.parse(import_node_fs62.default.readFileSync(import_node_path60.default.join(app, "package.json"), "utf8"));
|
|
63292
|
-
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);
|
|
63293
63305
|
report(`hashed ${root}`);
|
|
63294
63306
|
const result = await withSwiftRootLock(work, async (lease) => {
|
|
63295
63307
|
const marker = import_node_path60.default.join(work, ".peach-complete");
|
|
@@ -63532,6 +63544,7 @@ var init_expo_native_workspace = __esm({
|
|
|
63532
63544
|
init_portable_expo_workspace();
|
|
63533
63545
|
init_retired_cache_directory();
|
|
63534
63546
|
init_swift_root_lock();
|
|
63547
|
+
init_swift_toolchain();
|
|
63535
63548
|
init_workspace_root();
|
|
63536
63549
|
init_xcode_project();
|
|
63537
63550
|
isolatedGitEnv = {
|
|
@@ -63586,7 +63599,33 @@ async function expoDiscoveryKey(options) {
|
|
|
63586
63599
|
return { key: key2, root };
|
|
63587
63600
|
}
|
|
63588
63601
|
function sharedDir() {
|
|
63589
|
-
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);
|
|
63590
63629
|
}
|
|
63591
63630
|
function isExpoSwiftSourceUnit(value) {
|
|
63592
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");
|
|
@@ -63596,8 +63635,9 @@ function isStoredUnit(value) {
|
|
|
63596
63635
|
}
|
|
63597
63636
|
function readExpoDiscovery(key2) {
|
|
63598
63637
|
let parsed;
|
|
63638
|
+
const record3 = import_node_path61.default.join(sharedDir(), `${key2}.json`);
|
|
63599
63639
|
try {
|
|
63600
|
-
parsed = JSON.parse(import_node_fs63.default.readFileSync(
|
|
63640
|
+
parsed = JSON.parse(import_node_fs63.default.readFileSync(record3, "utf8"));
|
|
63601
63641
|
} catch {
|
|
63602
63642
|
return void 0;
|
|
63603
63643
|
}
|
|
@@ -63616,16 +63656,19 @@ function readExpoDiscovery(key2) {
|
|
|
63616
63656
|
} catch {
|
|
63617
63657
|
return void 0;
|
|
63618
63658
|
}
|
|
63659
|
+
renew(record3);
|
|
63619
63660
|
if (parsed.units === null) return null;
|
|
63620
63661
|
if (!strings(parsed.units) || !parsed.units.every(isDigest)) return void 0;
|
|
63621
63662
|
const blobs = /* @__PURE__ */ new Map();
|
|
63622
63663
|
const read = (digest3) => {
|
|
63623
63664
|
const known = blobs.get(digest3);
|
|
63624
63665
|
if (known !== void 0) return known;
|
|
63625
|
-
const
|
|
63666
|
+
const blob = import_node_path61.default.join(sharedDir(), "blobs", digest3);
|
|
63667
|
+
const body = import_node_fs63.default.readFileSync(blob, "utf8");
|
|
63626
63668
|
if ((0, import_node_crypto31.createHash)("sha256").update(body).digest("hex") !== digest3)
|
|
63627
63669
|
throw new Error("discovery blob differs from its digest");
|
|
63628
63670
|
blobs.set(digest3, body);
|
|
63671
|
+
renew(blob);
|
|
63629
63672
|
return body;
|
|
63630
63673
|
};
|
|
63631
63674
|
const resolve13 = (refs) => {
|
|
@@ -63844,6 +63887,7 @@ function writeExpoDiscovery(options) {
|
|
|
63844
63887
|
})
|
|
63845
63888
|
);
|
|
63846
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`));
|
|
63847
63891
|
return null;
|
|
63848
63892
|
}
|
|
63849
63893
|
const preparedRoot = import_node_fs63.default.realpathSync(options.preparedRoot);
|
|
@@ -63902,28 +63946,30 @@ function writeExpoDiscovery(options) {
|
|
|
63902
63946
|
})
|
|
63903
63947
|
);
|
|
63904
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`));
|
|
63905
63950
|
return rewritten.units;
|
|
63906
63951
|
} catch (error) {
|
|
63907
63952
|
if (options.signal?.aborted) throw error;
|
|
63908
63953
|
return error instanceof Error ? error.message : String(error);
|
|
63909
63954
|
}
|
|
63910
63955
|
}
|
|
63911
|
-
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;
|
|
63912
63957
|
var init_expo_discovery_cache = __esm({
|
|
63913
63958
|
"src/expo-discovery-cache.ts"() {
|
|
63914
63959
|
"use strict";
|
|
63915
63960
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
63916
63961
|
import_node_crypto31 = require("node:crypto");
|
|
63917
63962
|
import_node_fs63 = __toESM(require("node:fs"), 1);
|
|
63918
|
-
import_node_os16 = require("node:os");
|
|
63919
63963
|
import_node_path61 = __toESM(require("node:path"), 1);
|
|
63920
63964
|
import_node_url4 = require("node:url");
|
|
63921
63965
|
init_expo_eager_seam_contract();
|
|
63922
63966
|
init_answeredNativePackages();
|
|
63923
63967
|
init_cli_version();
|
|
63924
63968
|
init_expo_native_workspace();
|
|
63969
|
+
init_home_paths();
|
|
63925
63970
|
init_is_record();
|
|
63926
63971
|
init_native_app_identity();
|
|
63972
|
+
init_swift_toolchain();
|
|
63927
63973
|
init_swiftContract();
|
|
63928
63974
|
FORMAT = "expo-discovery-v5";
|
|
63929
63975
|
PIPELINE_FILES = [
|
|
@@ -63948,6 +63994,8 @@ var init_expo_discovery_cache = __esm({
|
|
|
63948
63994
|
"swift-standins",
|
|
63949
63995
|
"xcode-project"
|
|
63950
63996
|
];
|
|
63997
|
+
EXPIRY_MS = 7 * 24 * 36e5;
|
|
63998
|
+
ORPHAN_TEMPORARY_MS = 24 * 36e5;
|
|
63951
63999
|
strings = (value) => Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
63952
64000
|
stringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
63953
64001
|
isDigest = (value) => /^[0-9a-f]{64}$/.test(value);
|
|
@@ -64011,7 +64059,7 @@ var init_swift_standin_digest = __esm({
|
|
|
64011
64059
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
64012
64060
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
64013
64061
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
64014
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
64062
|
+
STANDIN_SOURCE_DIGEST = true ? "d3989025f0bd01881a5114ec49ccc0f742ec0a93aba1a3e3271f90514c18d6de" : standinSourceDigest();
|
|
64015
64063
|
}
|
|
64016
64064
|
});
|
|
64017
64065
|
|
|
@@ -64538,6 +64586,9 @@ var init_package_tree_digest = __esm({
|
|
|
64538
64586
|
});
|
|
64539
64587
|
|
|
64540
64588
|
// src/expo-native-prebuilt.ts
|
|
64589
|
+
function expoNativeCompilerDigestValue() {
|
|
64590
|
+
return true ? "f5b03dc470b9bd69a280676280590a82805bc1302c2af585963b4f1aee29626d" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64591
|
+
}
|
|
64541
64592
|
function readSources(value) {
|
|
64542
64593
|
const sources = isRecord(value) ? value.sources : null;
|
|
64543
64594
|
if (!Array.isArray(sources)) throw new Error("invalid Expo fingerprint");
|
|
@@ -64605,7 +64656,7 @@ async function expoNativeInputs(appRoot) {
|
|
|
64605
64656
|
);
|
|
64606
64657
|
return {
|
|
64607
64658
|
inputs: {
|
|
64608
|
-
compiler:
|
|
64659
|
+
compiler: expoNativeCompilerDigestValue(),
|
|
64609
64660
|
"swift-pin": JSON.stringify(swiftNativePin()),
|
|
64610
64661
|
answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
|
|
64611
64662
|
"pods-environment": JSON.stringify(reactNativePodsEnvironment()),
|
|
@@ -64718,7 +64769,7 @@ async function prebuiltExpoSwiftResult(appRoot, entry, signal) {
|
|
|
64718
64769
|
if (entry.expoSwift.modules.length === 0 && !entry.identity) return entry.expoSwift;
|
|
64719
64770
|
return servedExpoSwift(appRoot, entry, await prebuiltAppTarget(appRoot, signal));
|
|
64720
64771
|
}
|
|
64721
|
-
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;
|
|
64722
64773
|
var init_expo_native_prebuilt = __esm({
|
|
64723
64774
|
"src/expo-native-prebuilt.ts"() {
|
|
64724
64775
|
"use strict";
|
|
@@ -64741,7 +64792,6 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64741
64792
|
init_swift_native_pin();
|
|
64742
64793
|
init_xcode_project();
|
|
64743
64794
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64744
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "89ad6392c0a0c6d058f383353d7f4b6ca4bc485428759f88c7a553cc709ca3ce" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64745
64795
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64746
64796
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64747
64797
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -72626,7 +72676,7 @@ function rasterBinary() {
|
|
|
72626
72676
|
try {
|
|
72627
72677
|
import_node_fs81.default.mkdirSync(cacheDir(), { recursive: true });
|
|
72628
72678
|
const source = import_node_path78.default.join(
|
|
72629
|
-
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-")),
|
|
72630
72680
|
"raster.swift"
|
|
72631
72681
|
);
|
|
72632
72682
|
import_node_fs81.default.writeFileSync(source, RASTER_SWIFT);
|
|
@@ -72651,7 +72701,7 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
72651
72701
|
} catch {
|
|
72652
72702
|
}
|
|
72653
72703
|
const out = import_node_path78.default.join(
|
|
72654
|
-
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-")),
|
|
72655
72705
|
"out.png"
|
|
72656
72706
|
);
|
|
72657
72707
|
try {
|
|
@@ -72687,7 +72737,7 @@ function rasterizePdfFile(diskPath, pdfSha256) {
|
|
|
72687
72737
|
import_node_fs81.default.rmSync(import_node_path78.default.dirname(out), { recursive: true, force: true });
|
|
72688
72738
|
}
|
|
72689
72739
|
}
|
|
72690
|
-
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;
|
|
72691
72741
|
var init_swift_pdf_raster = __esm({
|
|
72692
72742
|
"src/swift-pdf-raster.ts"() {
|
|
72693
72743
|
"use strict";
|
|
@@ -72695,7 +72745,7 @@ var init_swift_pdf_raster = __esm({
|
|
|
72695
72745
|
import_node_child_process42 = require("node:child_process");
|
|
72696
72746
|
import_node_crypto42 = require("node:crypto");
|
|
72697
72747
|
import_node_fs81 = __toESM(require("node:fs"), 1);
|
|
72698
|
-
|
|
72748
|
+
import_node_os16 = __toESM(require("node:os"), 1);
|
|
72699
72749
|
import_node_path78 = __toESM(require("node:path"), 1);
|
|
72700
72750
|
init_internal_child_contract();
|
|
72701
72751
|
init_self_invocation();
|
|
@@ -74115,7 +74165,7 @@ function buildSwiftBundleFiles(packagePath, hosted, inputs, resourceBundles) {
|
|
|
74115
74165
|
}
|
|
74116
74166
|
}
|
|
74117
74167
|
if (xcode?.app.postBundleScripts.length) {
|
|
74118
|
-
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-"));
|
|
74119
74169
|
const wrapper = import_node_path79.default.basename(xcode.app.settings("UNLOCALIZED_RESOURCES_FOLDER_PATH")) || `${xcode.app.name}.app`;
|
|
74120
74170
|
const bundle = import_node_path79.default.join(dir, wrapper);
|
|
74121
74171
|
try {
|
|
@@ -75013,7 +75063,7 @@ function disposeSwiftProject(packagePath, signal) {
|
|
|
75013
75063
|
xcodeProjects().delete(packagePath);
|
|
75014
75064
|
sourceEntries().delete(packagePath);
|
|
75015
75065
|
}
|
|
75016
|
-
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;
|
|
75017
75067
|
var init_swift_host = __esm({
|
|
75018
75068
|
"src/swift-host.ts"() {
|
|
75019
75069
|
"use strict";
|
|
@@ -75022,7 +75072,7 @@ var init_swift_host = __esm({
|
|
|
75022
75072
|
import_node_child_process43 = require("node:child_process");
|
|
75023
75073
|
import_node_crypto43 = require("node:crypto");
|
|
75024
75074
|
import_node_fs82 = __toESM(require("node:fs"), 1);
|
|
75025
|
-
|
|
75075
|
+
import_node_os17 = __toESM(require("node:os"), 1);
|
|
75026
75076
|
import_node_path79 = __toESM(require("node:path"), 1);
|
|
75027
75077
|
init_bundleAssets();
|
|
75028
75078
|
init_stringCatalog();
|
|
@@ -79952,7 +80002,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
79952
80002
|
async function compileTurboModule(options) {
|
|
79953
80003
|
await prepareTurboSourceDependencies(options.reactNativeRoot);
|
|
79954
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");
|
|
79955
|
-
const scratch2 = import_node_path86.default.join(
|
|
80005
|
+
const scratch2 = import_node_path86.default.join(import_node_os18.default.tmpdir(), "peach-turbo-swift", key2);
|
|
79956
80006
|
import_node_fs89.default.rmSync(import_node_path86.default.join(scratch2, "codegen"), { recursive: true, force: true });
|
|
79957
80007
|
const collection = await collectTurboSources({
|
|
79958
80008
|
appRoot: options.appRoot,
|
|
@@ -80151,7 +80201,7 @@ async function compileTurboModule(options) {
|
|
|
80151
80201
|
collection
|
|
80152
80202
|
};
|
|
80153
80203
|
}
|
|
80154
|
-
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;
|
|
80155
80205
|
var init_turbo_compile = __esm({
|
|
80156
80206
|
"src/turbo-compile.ts"() {
|
|
80157
80207
|
"use strict";
|
|
@@ -80159,7 +80209,7 @@ var init_turbo_compile = __esm({
|
|
|
80159
80209
|
import_node_crypto46 = require("node:crypto");
|
|
80160
80210
|
import_node_fs89 = __toESM(require("node:fs"), 1);
|
|
80161
80211
|
import_node_module12 = require("node:module");
|
|
80162
|
-
|
|
80212
|
+
import_node_os18 = __toESM(require("node:os"), 1);
|
|
80163
80213
|
import_node_path86 = __toESM(require("node:path"), 1);
|
|
80164
80214
|
init_native_app_identity_project();
|
|
80165
80215
|
init_nitro_adapter();
|
|
@@ -81645,7 +81695,7 @@ function expoUnitAppPaths(unit2) {
|
|
|
81645
81695
|
});
|
|
81646
81696
|
}
|
|
81647
81697
|
function expoSwiftPackage(appKey, name3) {
|
|
81648
|
-
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);
|
|
81649
81699
|
}
|
|
81650
81700
|
function failureRecordPath(packagePath) {
|
|
81651
81701
|
const app = import_node_path87.default.dirname(import_node_path87.default.dirname(packagePath));
|
|
@@ -82365,7 +82415,7 @@ async function handleExpoSwiftRequest(req, res) {
|
|
|
82365
82415
|
}
|
|
82366
82416
|
return true;
|
|
82367
82417
|
}
|
|
82368
|
-
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;
|
|
82369
82419
|
var init_expo_swift_host = __esm({
|
|
82370
82420
|
"src/expo-swift-host.ts"() {
|
|
82371
82421
|
"use strict";
|
|
@@ -82375,7 +82425,7 @@ var init_expo_swift_host = __esm({
|
|
|
82375
82425
|
import_node_crypto47 = require("node:crypto");
|
|
82376
82426
|
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
82377
82427
|
import_node_module13 = require("node:module");
|
|
82378
|
-
|
|
82428
|
+
import_node_os19 = __toESM(require("node:os"), 1);
|
|
82379
82429
|
import_node_path87 = __toESM(require("node:path"), 1);
|
|
82380
82430
|
import_node_url6 = require("node:url");
|
|
82381
82431
|
import_node_util15 = require("node:util");
|
|
@@ -83548,7 +83598,7 @@ async function compileNitroModule(options) {
|
|
|
83548
83598
|
const key2 = (0, import_node_crypto51.createHash)("sha256").update(
|
|
83549
83599
|
collection.providers.map(({ root, hybridObjects }) => `${root}\0${hybridObjects.join(",")}`).join("\0")
|
|
83550
83600
|
).update("\0").update(import_node_fs95.default.realpathSync(options.moduleRoot)).update("\0").update(options.configuration).digest("hex");
|
|
83551
|
-
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}`);
|
|
83552
83602
|
const sharedLibrary = [...nativeLibraries.values()].find(
|
|
83553
83603
|
(pod) => pod.sharedLibrary
|
|
83554
83604
|
)?.sharedLibrary;
|
|
@@ -83596,14 +83646,14 @@ function nitrogenGeneratedSources(podDirectory) {
|
|
|
83596
83646
|
...sources(import_node_path92.default.join(generated, "ios"), /\.(h|hpp|c|cpp|mm|swift)$/)
|
|
83597
83647
|
];
|
|
83598
83648
|
}
|
|
83599
|
-
var import_node_crypto51, import_node_fs95,
|
|
83649
|
+
var import_node_crypto51, import_node_fs95, import_node_os20, import_node_path92, BUNDLED_CXX_NAMESPACES;
|
|
83600
83650
|
var init_nitro_compile = __esm({
|
|
83601
83651
|
"src/nitro-compile.ts"() {
|
|
83602
83652
|
"use strict";
|
|
83603
83653
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
83604
83654
|
import_node_crypto51 = require("node:crypto");
|
|
83605
83655
|
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
83606
|
-
|
|
83656
|
+
import_node_os20 = __toESM(require("node:os"), 1);
|
|
83607
83657
|
import_node_path92 = __toESM(require("node:path"), 1);
|
|
83608
83658
|
init_installed_native_libraries();
|
|
83609
83659
|
init_native_app_identity_project();
|
|
@@ -83766,7 +83816,7 @@ var init_nitro_superset = __esm({
|
|
|
83766
83816
|
init_nitroContract();
|
|
83767
83817
|
init_swift_standin_digest();
|
|
83768
83818
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
83769
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
83819
|
+
NITRO_COMPILER_DIGEST = true ? "3cc5750baacfcc2b136b9721df281ca2921d659c21133bbfb8d04aa7642e9ed5" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
83770
83820
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
83771
83821
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
83772
83822
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -86714,7 +86764,7 @@ async function scanDevServers(opts = {}) {
|
|
|
86714
86764
|
}
|
|
86715
86765
|
return results.filter((r) => !isSootSimSelfServer(r)).sort((a, b) => a.port - b.port);
|
|
86716
86766
|
}
|
|
86717
|
-
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;
|
|
86718
86768
|
var init_dev_server_scanner = __esm({
|
|
86719
86769
|
"scripts/dev-server-scanner.ts"() {
|
|
86720
86770
|
"use strict";
|
|
@@ -86724,7 +86774,7 @@ var init_dev_server_scanner = __esm({
|
|
|
86724
86774
|
import_http = __toESM(require("http"), 1);
|
|
86725
86775
|
import_net = __toESM(require("net"), 1);
|
|
86726
86776
|
import_node_fs101 = require("node:fs");
|
|
86727
|
-
|
|
86777
|
+
import_node_os21 = require("node:os");
|
|
86728
86778
|
import_node_path101 = require("node:path");
|
|
86729
86779
|
init_backend_origin();
|
|
86730
86780
|
init_config();
|
|
@@ -86736,8 +86786,8 @@ var init_dev_server_scanner = __esm({
|
|
|
86736
86786
|
init_settings_bundle();
|
|
86737
86787
|
init_swiftDiscoveryContract();
|
|
86738
86788
|
init_optional_demo_registry();
|
|
86739
|
-
LISTENER_LOCK_PATH = (0, import_node_path101.join)((0,
|
|
86740
|
-
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");
|
|
86741
86791
|
LISTENER_LOCK_STALE_MS = 25e3;
|
|
86742
86792
|
LISTENER_LOCK_WAIT_MS = 8e3;
|
|
86743
86793
|
TIMEOUT_MS = 250;
|
|
@@ -102402,17 +102452,17 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
|
102402
102452
|
schedule();
|
|
102403
102453
|
};
|
|
102404
102454
|
}
|
|
102405
|
-
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;
|
|
102406
102456
|
var init_pause_aware_timeout = __esm({
|
|
102407
102457
|
"cli/pause-aware-timeout.ts"() {
|
|
102408
102458
|
"use strict";
|
|
102409
102459
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
102410
102460
|
import_node_child_process54 = require("node:child_process");
|
|
102411
102461
|
import_node_fs122 = require("node:fs");
|
|
102412
|
-
|
|
102462
|
+
import_node_os22 = __toESM(require("node:os"), 1);
|
|
102413
102463
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
102414
102464
|
LEDGER_PATH2 = import_node_path123.default.join(
|
|
102415
|
-
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"),
|
|
102416
102466
|
"governor-pauses.json"
|
|
102417
102467
|
);
|
|
102418
102468
|
TICK_MS2 = 500;
|
|
@@ -106096,7 +106146,7 @@ var init_crash_fingerprint = __esm({
|
|
|
106096
106146
|
// cli/telemetry.ts
|
|
106097
106147
|
function sanitizeDiagnosticMessage(value) {
|
|
106098
106148
|
const firstLine = value.slice(0, 2048).split(/[\r\n\u2028\u2029]/, 1)[0] ?? "";
|
|
106099
|
-
return firstLine.split((0,
|
|
106149
|
+
return firstLine.split((0, import_node_os23.homedir)()).join("<home>").replace(
|
|
106100
106150
|
/<package:(?:@[\w.-]+\/)?[\w.-]+>|(?:https?:\/\/|file:\/\/|[A-Za-z]:[\\/]|<home>[\\/]|\/|\.{1,2}[\\/]|\b[\w.-]+[\\/])(?:[^\s"'<>]|\s(?=[^"'<>]*[\\/]))+/g,
|
|
106101
106151
|
(location) => {
|
|
106102
106152
|
if (location.startsWith("<package:")) return location;
|
|
@@ -106128,12 +106178,12 @@ function trackCliDiagnostic(diagnostic) {
|
|
|
106128
106178
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
106129
106179
|
});
|
|
106130
106180
|
}
|
|
106131
|
-
var
|
|
106181
|
+
var import_node_os23, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
|
|
106132
106182
|
var init_telemetry = __esm({
|
|
106133
106183
|
"cli/telemetry.ts"() {
|
|
106134
106184
|
"use strict";
|
|
106135
106185
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
106136
|
-
|
|
106186
|
+
import_node_os23 = require("node:os");
|
|
106137
106187
|
init_event_identity();
|
|
106138
106188
|
init_cli_version();
|
|
106139
106189
|
init_crash_fingerprint();
|
|
@@ -111814,7 +111864,7 @@ function stageBuiltBundleManifest(bundleUrl, config) {
|
|
|
111814
111864
|
const bundle = new URL(bundleUrl);
|
|
111815
111865
|
if (!isStagedHostFileRequest(bundle.pathname) || Object.keys(config).length === 0)
|
|
111816
111866
|
return null;
|
|
111817
|
-
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-"));
|
|
111818
111868
|
try {
|
|
111819
111869
|
const file = import_node_path131.default.join(directory2, "manifest.json");
|
|
111820
111870
|
import_node_fs130.default.writeFileSync(file, JSON.stringify({ extra: { expoClient: config } }));
|
|
@@ -111996,13 +112046,13 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
111996
112046
|
for (const entry of opts.args ?? []) url.searchParams.append("arg", entry);
|
|
111997
112047
|
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin);
|
|
111998
112048
|
}
|
|
111999
|
-
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;
|
|
112000
112050
|
var init_shell_url = __esm({
|
|
112001
112051
|
"cli/commands/shell-url.ts"() {
|
|
112002
112052
|
"use strict";
|
|
112003
112053
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
112004
112054
|
import_node_fs130 = __toESM(require("node:fs"), 1);
|
|
112005
|
-
|
|
112055
|
+
import_node_os24 = __toESM(require("node:os"), 1);
|
|
112006
112056
|
import_node_path131 = __toESM(require("node:path"), 1);
|
|
112007
112057
|
init_oneViteAliases();
|
|
112008
112058
|
init_dev_server_scanner();
|
|
@@ -121366,7 +121416,7 @@ async function connectBridgeForOpen(preferredPort, explicitPort, resources, runt
|
|
|
121366
121416
|
}
|
|
121367
121417
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
121368
121418
|
const bridgeLogPath = import_node_path140.default.join(
|
|
121369
|
-
|
|
121419
|
+
import_node_os25.default.tmpdir(),
|
|
121370
121420
|
`peach-bridge-${Date.now()}-${process.pid}.log`
|
|
121371
121421
|
);
|
|
121372
121422
|
const bridgeLogFd = import_node_fs139.default.openSync(bridgeLogPath, "a");
|
|
@@ -121551,8 +121601,8 @@ function unreachableBridgeMessage(port, handshake, timeoutMs) {
|
|
|
121551
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>.`;
|
|
121552
121602
|
}
|
|
121553
121603
|
if (handshake === "timeout") {
|
|
121554
|
-
const cores = Math.max(1,
|
|
121555
|
-
const load2 =
|
|
121604
|
+
const cores = Math.max(1, import_node_os25.default.cpus().length);
|
|
121605
|
+
const load2 = import_node_os25.default.loadavg()[0];
|
|
121556
121606
|
if (load2 >= cores) {
|
|
121557
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.`;
|
|
121558
121608
|
}
|
|
@@ -121619,7 +121669,7 @@ async function stagePrebuiltBundle(file, bridgePort, prepareSource) {
|
|
|
121619
121669
|
}
|
|
121620
121670
|
function normalizeReplacementPath(filePath) {
|
|
121621
121671
|
if (filePath.startsWith("~/")) {
|
|
121622
|
-
return import_node_path140.default.join(
|
|
121672
|
+
return import_node_path140.default.join(import_node_os25.default.homedir(), filePath.slice(2));
|
|
121623
121673
|
}
|
|
121624
121674
|
if (import_node_path140.default.isAbsolute(filePath)) return filePath;
|
|
121625
121675
|
return import_node_path140.default.resolve(process.cwd(), filePath);
|
|
@@ -122724,7 +122774,14 @@ async function openSim(args, opts) {
|
|
|
122724
122774
|
cdpPort,
|
|
122725
122775
|
device: deviceArg,
|
|
122726
122776
|
ownerPid,
|
|
122727
|
-
viewport: explicitViewport ?? (deviceFitBox ? {
|
|
122777
|
+
viewport: explicitViewport ?? (deviceFitBox ? {
|
|
122778
|
+
// a fractional frame (the 17 Pro bezel is 15.3pt) has to be a whole
|
|
122779
|
+
// viewport. the fit pads (stage, menu, shadow) are larger than the
|
|
122780
|
+
// old 60pt slack, and the phone was still scaled to about 0.97,
|
|
122781
|
+
// which paints the capture root halfway between raster pixels.
|
|
122782
|
+
width: Math.ceil(deviceFitBox.width + 120),
|
|
122783
|
+
height: Math.ceil(deviceFitBox.height + 140)
|
|
122784
|
+
} : void 0),
|
|
122728
122785
|
connectTimeoutMs: connectWait.hostTimeoutMs
|
|
122729
122786
|
});
|
|
122730
122787
|
if (opts.resources) opts.resources.driver = { ...result, driverId };
|
|
@@ -122792,7 +122849,7 @@ async function openSim(args, opts) {
|
|
|
122792
122849
|
});
|
|
122793
122850
|
const attached = await bridge.listSims().then((sims) => sims.find((sim) => sim.id === match.id)?.readyState ?? "gone").catch(() => "unknown");
|
|
122794
122851
|
console.error(
|
|
122795
|
-
` 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)`
|
|
122796
122853
|
);
|
|
122797
122854
|
await printBridgeFailureDiagnostics(bridge, {
|
|
122798
122855
|
errorsCommand: `peach get errors 5${hint}`,
|
|
@@ -123139,7 +123196,7 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
123139
123196
|
bridge.close();
|
|
123140
123197
|
}
|
|
123141
123198
|
}
|
|
123142
|
-
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;
|
|
123143
123200
|
var init_control = __esm({
|
|
123144
123201
|
"cli/commands/control.ts"() {
|
|
123145
123202
|
"use strict";
|
|
@@ -123149,7 +123206,7 @@ var init_control = __esm({
|
|
|
123149
123206
|
import_node_http5 = __toESM(require("node:http"), 1);
|
|
123150
123207
|
import_node_https2 = __toESM(require("node:https"), 1);
|
|
123151
123208
|
import_node_net = __toESM(require("node:net"), 1);
|
|
123152
|
-
|
|
123209
|
+
import_node_os25 = __toESM(require("node:os"), 1);
|
|
123153
123210
|
import_node_path140 = __toESM(require("node:path"), 1);
|
|
123154
123211
|
init_src();
|
|
123155
123212
|
import_ws7 = require("ws");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2060 | (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;
|
|
@@ -101,6 +101,14 @@ var v5 = __toESM(require("valibot"), 1);
|
|
|
101
101
|
// src/admitted-mac-build.ts
|
|
102
102
|
var import_node_child_process = require("node:child_process");
|
|
103
103
|
function windowAdmission() {
|
|
104
|
+
if (process.env.CONTRAST_HEAVY_ADMITTED === "1") {
|
|
105
|
+
const cores = Number(process.env.CONTRAST_HEAVY_CPU_CORES);
|
|
106
|
+
return {
|
|
107
|
+
kind: process.env.CONTRAST_HEAVY_ADMISSION_MODE === "exclusive" ? "quiet" : "heavy",
|
|
108
|
+
cores: Number.isFinite(cores) && cores > 0 ? Math.max(1, Math.floor(cores)) : null,
|
|
109
|
+
scopes: []
|
|
110
|
+
};
|
|
111
|
+
}
|
|
104
112
|
const result = (0, import_node_child_process.spawnSync)("tm", ["window", "ancestor", "--json"], {
|
|
105
113
|
encoding: "utf8",
|
|
106
114
|
stdio: ["ignore", "pipe", "inherit"]
|
|
@@ -12428,7 +12436,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12428
12436
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12429
12437
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12430
12438
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12431
|
-
var compilerSourceDigest = true ? "
|
|
12439
|
+
var compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
12432
12440
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12433
12441
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
12434
12442
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2060 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/swift-compile.ts
|
|
4
4
|
import {
|
|
@@ -31,6 +31,14 @@ import * as v5 from "valibot";
|
|
|
31
31
|
// src/admitted-mac-build.ts
|
|
32
32
|
import { spawnSync } from "node:child_process";
|
|
33
33
|
function windowAdmission() {
|
|
34
|
+
if (process.env.CONTRAST_HEAVY_ADMITTED === "1") {
|
|
35
|
+
const cores = Number(process.env.CONTRAST_HEAVY_CPU_CORES);
|
|
36
|
+
return {
|
|
37
|
+
kind: process.env.CONTRAST_HEAVY_ADMISSION_MODE === "exclusive" ? "quiet" : "heavy",
|
|
38
|
+
cores: Number.isFinite(cores) && cores > 0 ? Math.max(1, Math.floor(cores)) : null,
|
|
39
|
+
scopes: []
|
|
40
|
+
};
|
|
41
|
+
}
|
|
34
42
|
const result = spawnSync("tm", ["window", "ancestor", "--json"], {
|
|
35
43
|
encoding: "utf8",
|
|
36
44
|
stdio: ["ignore", "pipe", "inherit"]
|
|
@@ -12410,7 +12418,7 @@ var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quo
|
|
|
12410
12418
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
12411
12419
|
var MULTI_MANIFEST_VERSION = 68;
|
|
12412
12420
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
12413
|
-
var compilerSourceDigest = true ? "
|
|
12421
|
+
var compilerSourceDigest = true ? "6d720b5ca62d6aa047168bc2a7096fbe1d29316eb2e828722eca8a3323f450af" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
12414
12422
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
12415
12423
|
const hash = createHash13("sha256");
|
|
12416
12424
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2060 | (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.2060 | (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;
|