peachsim 0.1.819 → 0.1.821
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/compat.ts +5 -1
- package/cli/commands/control.ts +9 -0
- package/cli/commands/inspect/core.ts +13 -0
- package/cli/commands/screenshot-layers.ts +2 -2
- package/cli/commands/screenshot.ts +4 -3
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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 +4 -2
- package/dist-lib/detox/index.cjs +3 -1
- package/dist-lib/dev-bundle-resolution.cjs +37 -28
- package/dist-lib/expo-swift-bundle.cjs +1 -1
- 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 +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 -2
- 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 -2
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +8 -1
- package/dist-lib/sdk.mjs +7 -1
- package/dist-lib/skills.cjs +49 -30
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/config.ts +10 -2
- package/src/dev-bundle-resolution.ts +51 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/plist.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/plist.mjs
CHANGED
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -50,6 +50,7 @@ __export(sdk_exports, {
|
|
|
50
50
|
formatTimelineSummary: () => formatTimelineSummary,
|
|
51
51
|
getShellState: () => getShellState,
|
|
52
52
|
inspectAccessibilityTree: () => inspectAccessibilityTree,
|
|
53
|
+
inspectCaptureReady: () => inspectCaptureReady,
|
|
53
54
|
inspectDebugFind: () => inspectDebugFind,
|
|
54
55
|
inspectDebugFlags: () => inspectDebugFlags,
|
|
55
56
|
inspectDebugRecent: () => inspectDebugRecent,
|
|
@@ -864,6 +865,11 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
|
|
|
864
865
|
if (!status.ready && options.onProgress) options.onProgress(status);
|
|
865
866
|
return status;
|
|
866
867
|
}
|
|
868
|
+
async function inspectCaptureReady(bridge, timeoutMs) {
|
|
869
|
+
const snapshot = await inspectReadySnapshot(bridge, 0);
|
|
870
|
+
if (snapshot.ready) return snapshot;
|
|
871
|
+
return inspectWaitReady(bridge, timeoutMs);
|
|
872
|
+
}
|
|
867
873
|
var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
|
|
868
874
|
async function inspectReadySnapshot(bridge, budgetMs, simId) {
|
|
869
875
|
const deadline = Date.now() + budgetMs;
|
|
@@ -2667,6 +2673,7 @@ var SimClient = class {
|
|
|
2667
2673
|
formatTimelineSummary,
|
|
2668
2674
|
getShellState,
|
|
2669
2675
|
inspectAccessibilityTree,
|
|
2676
|
+
inspectCaptureReady,
|
|
2670
2677
|
inspectDebugFind,
|
|
2671
2678
|
inspectDebugFlags,
|
|
2672
2679
|
inspectDebugRecent,
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -761,6 +761,11 @@ async function inspectWaitReady(bridge, timeoutMs = 2e4, options = {}) {
|
|
|
761
761
|
if (!status.ready && options.onProgress) options.onProgress(status);
|
|
762
762
|
return status;
|
|
763
763
|
}
|
|
764
|
+
async function inspectCaptureReady(bridge, timeoutMs) {
|
|
765
|
+
const snapshot = await inspectReadySnapshot(bridge, 0);
|
|
766
|
+
if (snapshot.ready) return snapshot;
|
|
767
|
+
return inspectWaitReady(bridge, timeoutMs);
|
|
768
|
+
}
|
|
764
769
|
var READY_SNAPSHOT_SEND_TIMEOUT_MS = 2e3;
|
|
765
770
|
async function inspectReadySnapshot(bridge, budgetMs, simId) {
|
|
766
771
|
const deadline = Date.now() + budgetMs;
|
|
@@ -2563,6 +2568,7 @@ export {
|
|
|
2563
2568
|
formatTimelineSummary,
|
|
2564
2569
|
getShellState,
|
|
2565
2570
|
inspectAccessibilityTree,
|
|
2571
|
+
inspectCaptureReady,
|
|
2566
2572
|
inspectDebugFind,
|
|
2567
2573
|
inspectDebugFlags,
|
|
2568
2574
|
inspectDebugRecent,
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -26602,7 +26602,9 @@ function isPeachConfig(value) {
|
|
|
26602
26602
|
"network",
|
|
26603
26603
|
"settings",
|
|
26604
26604
|
"initialState"
|
|
26605
|
-
].every((key2) => value[key2] === void 0 || isRecord(value[key2]))
|
|
26605
|
+
].every((key2) => value[key2] === void 0 || isRecord(value[key2])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
26606
|
+
(entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
26607
|
+
));
|
|
26606
26608
|
}
|
|
26607
26609
|
function readPeachBundleConfig(value) {
|
|
26608
26610
|
if (value === void 0 || value === null) return null;
|
|
@@ -48624,10 +48626,11 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
|
48624
48626
|
let body;
|
|
48625
48627
|
const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
|
|
48626
48628
|
headers: { "expo-platform": "ios" }
|
|
48627
|
-
}).then(
|
|
48628
|
-
|
|
48629
|
-
()
|
|
48630
|
-
|
|
48629
|
+
}).then(async (res) => ({
|
|
48630
|
+
status: res.status,
|
|
48631
|
+
contentType: res.headers.get("content-type") || "",
|
|
48632
|
+
body: await res.text()
|
|
48633
|
+
})).catch(() => void 0);
|
|
48631
48634
|
let probeDeadline;
|
|
48632
48635
|
const answered = await Promise.race([
|
|
48633
48636
|
pending,
|
|
@@ -48636,20 +48639,35 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
|
48636
48639
|
})
|
|
48637
48640
|
]);
|
|
48638
48641
|
clearTimeout(probeDeadline);
|
|
48639
|
-
if (answered === "timeout"
|
|
48640
|
-
|
|
48642
|
+
if (answered === "timeout")
|
|
48643
|
+
throw new Error(
|
|
48644
|
+
`Metro manifest request timed out after ${MANIFEST_PROBE_TIMEOUT_MS / 1e3}s: ${normalizedBaseUrl}/. Wait for the dev server to finish starting or check its manifest endpoint.`
|
|
48645
|
+
);
|
|
48646
|
+
if (answered === void 0) return { state: "no-answer" };
|
|
48647
|
+
if (answered.status === 404 || answered.status === 405) return { state: "no-manifest" };
|
|
48648
|
+
if (answered.status < 200 || answered.status >= 300)
|
|
48649
|
+
throw new Error(
|
|
48650
|
+
`Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`
|
|
48651
|
+
);
|
|
48641
48652
|
body = answered.body;
|
|
48642
48653
|
if (!body.trim()) return { state: "no-answer" };
|
|
48643
48654
|
let manifest;
|
|
48644
48655
|
try {
|
|
48645
48656
|
manifest = JSON.parse(body);
|
|
48646
48657
|
} catch {
|
|
48658
|
+
if (answered.contentType.includes("json"))
|
|
48659
|
+
throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`);
|
|
48647
48660
|
return { state: "no-manifest" };
|
|
48648
48661
|
}
|
|
48649
|
-
|
|
48650
|
-
const
|
|
48662
|
+
if (!manifest || typeof manifest !== "object") return { state: "no-manifest" };
|
|
48663
|
+
const extra = "extra" in manifest ? manifest.extra : void 0;
|
|
48664
|
+
const expoClient = extra && typeof extra === "object" && "expoClient" in extra ? extra.expoClient : extra;
|
|
48665
|
+
const client = expoClient && typeof expoClient === "object" ? expoClient : {};
|
|
48666
|
+
const launchAsset = "launchAsset" in manifest ? manifest.launchAsset : void 0;
|
|
48667
|
+
const rawLaunchUrl = launchAsset && typeof launchAsset === "object" && "url" in launchAsset && typeof launchAsset.url === "string" ? launchAsset.url : void 0;
|
|
48651
48668
|
const launchUrl2 = rawLaunchUrl ? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl) : void 0;
|
|
48652
|
-
|
|
48669
|
+
const name2 = "name" in client && typeof client.name === "string" ? client.name : void 0;
|
|
48670
|
+
if (!launchUrl2 && !name2) return { state: "no-manifest" };
|
|
48653
48671
|
return {
|
|
48654
48672
|
state: "resolved",
|
|
48655
48673
|
bundle: {
|
|
@@ -48657,14 +48675,19 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
|
48657
48675
|
launchUrl2 || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`
|
|
48658
48676
|
),
|
|
48659
48677
|
port,
|
|
48660
|
-
framework: inferManifestFramework(
|
|
48661
|
-
|
|
48678
|
+
framework: inferManifestFramework(
|
|
48679
|
+
launchUrl2,
|
|
48680
|
+
"sdkVersion" in client ? client.sdkVersion : void 0
|
|
48681
|
+
),
|
|
48682
|
+
projectName: name2
|
|
48662
48683
|
}
|
|
48663
48684
|
};
|
|
48664
48685
|
}
|
|
48665
48686
|
async function isPackagerRunning(normalizedBaseUrl) {
|
|
48666
48687
|
try {
|
|
48667
|
-
const res = await fetchDevProbe(`${normalizedBaseUrl}/status
|
|
48688
|
+
const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
|
|
48689
|
+
signal: AbortSignal.timeout(5e3)
|
|
48690
|
+
});
|
|
48668
48691
|
if (!res.ok) return false;
|
|
48669
48692
|
return (await res.text()).includes("packager-status:running");
|
|
48670
48693
|
} catch {
|
|
@@ -48673,20 +48696,10 @@ async function isPackagerRunning(normalizedBaseUrl) {
|
|
|
48673
48696
|
}
|
|
48674
48697
|
async function probeBaseUrlBundleDirect(baseUrl, port) {
|
|
48675
48698
|
const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
|
|
48676
|
-
|
|
48677
|
-
let packagerConfirmed = false;
|
|
48678
|
-
if (manifest.state === "no-answer") {
|
|
48679
|
-
packagerConfirmed = await isPackagerRunning(normalizedBaseUrl);
|
|
48680
|
-
if (!packagerConfirmed) return null;
|
|
48681
|
-
const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS;
|
|
48682
|
-
while (manifest.state === "no-answer" && Date.now() < deadline) {
|
|
48683
|
-
await new Promise((resolve10) => setTimeout(resolve10, MANIFEST_BOOT_RETRY_MS));
|
|
48684
|
-
manifest = await probeExpoManifest(normalizedBaseUrl, port);
|
|
48685
|
-
}
|
|
48686
|
-
}
|
|
48699
|
+
const manifest = await probeExpoManifest(normalizedBaseUrl, port);
|
|
48687
48700
|
if (manifest.state === "resolved") return manifest.bundle;
|
|
48688
48701
|
if (manifest.state === "no-answer") return null;
|
|
48689
|
-
if (!
|
|
48702
|
+
if (!await isPackagerRunning(normalizedBaseUrl)) return null;
|
|
48690
48703
|
return {
|
|
48691
48704
|
bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
|
|
48692
48705
|
port,
|
|
@@ -48740,15 +48753,13 @@ async function resolveConnectionInput(input) {
|
|
|
48740
48753
|
}
|
|
48741
48754
|
return { bundleUrl: parsed.toString(), port, framework: "unknown" };
|
|
48742
48755
|
}
|
|
48743
|
-
var MANIFEST_PROBE_TIMEOUT_MS
|
|
48756
|
+
var MANIFEST_PROBE_TIMEOUT_MS;
|
|
48744
48757
|
var init_dev_bundle_resolution = __esm({
|
|
48745
48758
|
"src/dev-bundle-resolution.ts"() {
|
|
48746
48759
|
"use strict";
|
|
48747
48760
|
init_backend_origin();
|
|
48748
48761
|
init_native_dev_bundle_url();
|
|
48749
|
-
MANIFEST_PROBE_TIMEOUT_MS =
|
|
48750
|
-
MANIFEST_BOOT_BUDGET_MS = 3e4;
|
|
48751
|
-
MANIFEST_BOOT_RETRY_MS = 1e3;
|
|
48762
|
+
MANIFEST_PROBE_TIMEOUT_MS = 3e4;
|
|
48752
48763
|
}
|
|
48753
48764
|
});
|
|
48754
48765
|
|
|
@@ -53484,6 +53495,7 @@ function localBasePort(target) {
|
|
|
53484
53495
|
async function resolveConnectionInputForCli(target) {
|
|
53485
53496
|
const normalized = normalizeKnownTarget(target);
|
|
53486
53497
|
const registeredPort = /^\d+$/.test(normalized) ? Number(normalized) : localBasePort(normalized);
|
|
53498
|
+
console.log(` resolving native bundle for ${normalized} (manifest timeout: 30s)\u2026`);
|
|
53487
53499
|
let lastError = null;
|
|
53488
53500
|
for (let attempt = 0; attempt < DEV_BUNDLE_RESOLVE_ATTEMPTS; attempt++) {
|
|
53489
53501
|
if (registeredPort && registeredPort > 0) {
|
|
@@ -54970,6 +54982,13 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
54970
54982
|
} catch (err) {
|
|
54971
54983
|
rethrowIfExit(err);
|
|
54972
54984
|
console.error(` close failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
54985
|
+
const word = parsed.positional[0];
|
|
54986
|
+
if (word === "all" || word === "others") {
|
|
54987
|
+
console.error(
|
|
54988
|
+
` to close ${word === "all" ? "every" : "every other"} sim: peach close --${word}`
|
|
54989
|
+
);
|
|
54990
|
+
rnxExit(1);
|
|
54991
|
+
}
|
|
54973
54992
|
await printBridgeFailureDiagnostics(bridge, {
|
|
54974
54993
|
errorsCommand: `peach get errors 5${simHint}`,
|
|
54975
54994
|
warningsCommand: `peach get warnings 5${simHint}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.821 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
package/src/config.ts
CHANGED
|
@@ -22,7 +22,8 @@ export type NativeModuleResolution = ModuleResolution | Record<string, any> // d
|
|
|
22
22
|
// an app's own native view, keyed by its `requireNativeComponent` name or, for
|
|
23
23
|
// an expo module view, `Module_View` (`Module` for a module's only view). the
|
|
24
24
|
// file default-exports the component that renders in its place with its props.
|
|
25
|
-
|
|
25
|
+
// 'noop' explicitly renders nothing in either native view lookup path.
|
|
26
|
+
export type NativeViewResolution = 'noop' | { file: string }
|
|
26
27
|
|
|
27
28
|
export interface PeachConfig<Settings extends Record<string, any> = Record<string, any>> {
|
|
28
29
|
// host-only engine selection. omitted means the current stable runtime.
|
|
@@ -86,7 +87,14 @@ export function isPeachConfig(value: unknown): value is PeachConfig {
|
|
|
86
87
|
'network',
|
|
87
88
|
'settings',
|
|
88
89
|
'initialState',
|
|
89
|
-
].every((key) => value[key] === undefined || isRecord(value[key]))
|
|
90
|
+
].every((key) => value[key] === undefined || isRecord(value[key])) &&
|
|
91
|
+
(value.nativeViews === undefined ||
|
|
92
|
+
(isRecord(value.nativeViews) &&
|
|
93
|
+
Object.values(value.nativeViews).every(
|
|
94
|
+
(entry) =>
|
|
95
|
+
entry === 'noop' ||
|
|
96
|
+
(isRecord(entry) && typeof entry.file === 'string' && entry.file.length > 0),
|
|
97
|
+
)))
|
|
90
98
|
)
|
|
91
99
|
}
|
|
92
100
|
|
|
@@ -154,13 +154,10 @@ type ManifestProbe =
|
|
|
154
154
|
| { state: 'no-manifest' }
|
|
155
155
|
| { state: 'no-answer' }
|
|
156
156
|
|
|
157
|
-
//
|
|
158
|
-
//
|
|
159
|
-
//
|
|
160
|
-
const MANIFEST_PROBE_TIMEOUT_MS =
|
|
161
|
-
// how long to keep asking a confirmed-running packager for its manifest.
|
|
162
|
-
const MANIFEST_BOOT_BUDGET_MS = 30_000
|
|
163
|
-
const MANIFEST_BOOT_RETRY_MS = 1_000
|
|
157
|
+
// keep the same request alive through cold config and fingerprint evaluation.
|
|
158
|
+
// discarding it after a short probe and starting another can never resolve a
|
|
159
|
+
// manifest whose response consistently takes longer than that probe.
|
|
160
|
+
const MANIFEST_PROBE_TIMEOUT_MS = 30_000
|
|
164
161
|
|
|
165
162
|
async function probeExpoManifest(
|
|
166
163
|
normalizedBaseUrl: string,
|
|
@@ -171,14 +168,17 @@ async function probeExpoManifest(
|
|
|
171
168
|
// does the second: it tears down a dev server that is still assembling its
|
|
172
169
|
// manifest, which fires "Cannot pipe to a closed or destroyed stream" into
|
|
173
170
|
// One's manifest middleware and can exit the user's dev server. so nothing
|
|
174
|
-
// here aborts.
|
|
175
|
-
//
|
|
171
|
+
// here aborts. wait on this one request until the startup deadline, then
|
|
172
|
+
// report a terminal timeout instead of restarting the same slow work.
|
|
176
173
|
const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
|
|
177
174
|
headers: { 'expo-platform': 'ios' },
|
|
178
|
-
})
|
|
179
|
-
async (res) => (
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
})
|
|
176
|
+
.then(async (res) => ({
|
|
177
|
+
status: res.status,
|
|
178
|
+
contentType: res.headers.get('content-type') || '',
|
|
179
|
+
body: await res.text(),
|
|
180
|
+
}))
|
|
181
|
+
.catch(() => undefined)
|
|
182
182
|
let probeDeadline: ReturnType<typeof setTimeout> | undefined
|
|
183
183
|
const answered = await Promise.race([
|
|
184
184
|
pending,
|
|
@@ -188,27 +188,49 @@ async function probeExpoManifest(
|
|
|
188
188
|
])
|
|
189
189
|
// the race is settled, so drop the deadline rather than leaving it pending.
|
|
190
190
|
clearTimeout(probeDeadline)
|
|
191
|
-
if (answered === 'timeout'
|
|
192
|
-
|
|
191
|
+
if (answered === 'timeout')
|
|
192
|
+
throw new Error(
|
|
193
|
+
`Metro manifest request timed out after ${MANIFEST_PROBE_TIMEOUT_MS / 1000}s: ${normalizedBaseUrl}/. Wait for the dev server to finish starting or check its manifest endpoint.`,
|
|
194
|
+
)
|
|
195
|
+
if (answered === undefined) return { state: 'no-answer' }
|
|
196
|
+
if (answered.status === 404 || answered.status === 405) return { state: 'no-manifest' }
|
|
197
|
+
if (answered.status < 200 || answered.status >= 300)
|
|
198
|
+
throw new Error(
|
|
199
|
+
`Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`,
|
|
200
|
+
)
|
|
193
201
|
body = answered.body
|
|
194
202
|
if (!body.trim()) return { state: 'no-answer' }
|
|
195
203
|
|
|
196
|
-
let manifest:
|
|
204
|
+
let manifest: unknown
|
|
197
205
|
try {
|
|
198
206
|
manifest = JSON.parse(body)
|
|
199
207
|
} catch {
|
|
208
|
+
if (answered.contentType.includes('json'))
|
|
209
|
+
throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`)
|
|
200
210
|
// a page rather than a manifest — Metro's landing page, or an app's own
|
|
201
211
|
// SSR html. that is a real answer: this server serves no manifest.
|
|
202
212
|
return { state: 'no-manifest' }
|
|
203
213
|
}
|
|
204
214
|
|
|
205
|
-
|
|
215
|
+
if (!manifest || typeof manifest !== 'object') return { state: 'no-manifest' }
|
|
216
|
+
const extra = 'extra' in manifest ? manifest.extra : undefined
|
|
217
|
+
const expoClient =
|
|
218
|
+
extra && typeof extra === 'object' && 'expoClient' in extra ? extra.expoClient : extra
|
|
219
|
+
const client = expoClient && typeof expoClient === 'object' ? expoClient : {}
|
|
220
|
+
const launchAsset = 'launchAsset' in manifest ? manifest.launchAsset : undefined
|
|
206
221
|
const rawLaunchUrl =
|
|
207
|
-
|
|
222
|
+
launchAsset &&
|
|
223
|
+
typeof launchAsset === 'object' &&
|
|
224
|
+
'url' in launchAsset &&
|
|
225
|
+
typeof launchAsset.url === 'string'
|
|
226
|
+
? launchAsset.url
|
|
227
|
+
: undefined
|
|
208
228
|
const launchUrl = rawLaunchUrl
|
|
209
229
|
? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl)
|
|
210
230
|
: undefined
|
|
211
|
-
|
|
231
|
+
const name =
|
|
232
|
+
'name' in client && typeof client.name === 'string' ? client.name : undefined
|
|
233
|
+
if (!launchUrl && !name) return { state: 'no-manifest' }
|
|
212
234
|
|
|
213
235
|
return {
|
|
214
236
|
state: 'resolved',
|
|
@@ -217,15 +239,20 @@ async function probeExpoManifest(
|
|
|
217
239
|
launchUrl || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
|
|
218
240
|
),
|
|
219
241
|
port,
|
|
220
|
-
framework: inferManifestFramework(
|
|
221
|
-
|
|
242
|
+
framework: inferManifestFramework(
|
|
243
|
+
launchUrl,
|
|
244
|
+
'sdkVersion' in client ? client.sdkVersion : undefined,
|
|
245
|
+
),
|
|
246
|
+
projectName: name,
|
|
222
247
|
},
|
|
223
248
|
}
|
|
224
249
|
}
|
|
225
250
|
|
|
226
251
|
async function isPackagerRunning(normalizedBaseUrl: string): Promise<boolean> {
|
|
227
252
|
try {
|
|
228
|
-
const res = await fetchDevProbe(`${normalizedBaseUrl}/status
|
|
253
|
+
const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
|
|
254
|
+
signal: AbortSignal.timeout(5_000),
|
|
255
|
+
})
|
|
229
256
|
if (!res.ok) return false
|
|
230
257
|
return (await res.text()).includes('packager-status:running')
|
|
231
258
|
} catch {
|
|
@@ -239,22 +266,7 @@ async function probeBaseUrlBundleDirect(
|
|
|
239
266
|
): Promise<ResolvedDevBundle | null> {
|
|
240
267
|
const normalizedBaseUrl = baseUrl.replace(/\/+$/, '')
|
|
241
268
|
|
|
242
|
-
|
|
243
|
-
let packagerConfirmed = false
|
|
244
|
-
|
|
245
|
-
// nothing answered `/`. that is either a closed address — the other loopback
|
|
246
|
-
// family, a dead port — or a packager whose manifest middleware has not come
|
|
247
|
-
// up yet. `/status` separates them, and only the second is worth waiting on.
|
|
248
|
-
if (manifest.state === 'no-answer') {
|
|
249
|
-
packagerConfirmed = await isPackagerRunning(normalizedBaseUrl)
|
|
250
|
-
if (!packagerConfirmed) return null
|
|
251
|
-
const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS
|
|
252
|
-
while (manifest.state === 'no-answer' && Date.now() < deadline) {
|
|
253
|
-
await new Promise((resolve) => setTimeout(resolve, MANIFEST_BOOT_RETRY_MS))
|
|
254
|
-
manifest = await probeExpoManifest(normalizedBaseUrl, port)
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
269
|
+
const manifest = await probeExpoManifest(normalizedBaseUrl, port)
|
|
258
270
|
if (manifest.state === 'resolved') return manifest.bundle
|
|
259
271
|
// a server that never says what it is gets no guessed entry point.
|
|
260
272
|
if (manifest.state === 'no-answer') return null
|
|
@@ -271,7 +283,7 @@ async function probeBaseUrlBundleDirect(
|
|
|
271
283
|
// the Expo manifest probe above already returns the correct launchAsset.url
|
|
272
284
|
// for One apps (which serve the Expo manifest format via vxrn), so we
|
|
273
285
|
// drop the bespoke One probe entirely.
|
|
274
|
-
if (!
|
|
286
|
+
if (!(await isPackagerRunning(normalizedBaseUrl))) return null
|
|
275
287
|
return {
|
|
276
288
|
bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
|
|
277
289
|
port,
|