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
package/cli/commands/compat.ts
CHANGED
|
@@ -211,7 +211,11 @@ async function scanLocalNative(
|
|
|
211
211
|
): Promise<LocalNative[]> {
|
|
212
212
|
const { config } = await resolveRNXAppConfig(appDir)
|
|
213
213
|
const answered = {
|
|
214
|
-
module: new Set(
|
|
214
|
+
module: new Set(
|
|
215
|
+
Object.entries({ ...config?.turboModules, ...config?.nativeModules })
|
|
216
|
+
.filter(([, resolution]) => resolution !== false)
|
|
217
|
+
.map(([name]) => name),
|
|
218
|
+
),
|
|
215
219
|
view: new Set(Object.keys(config?.nativeViews ?? {})),
|
|
216
220
|
}
|
|
217
221
|
const expoModuleDirs: string[] = []
|
package/cli/commands/control.ts
CHANGED
|
@@ -465,6 +465,7 @@ async function resolveConnectionInputForCli(target: string): Promise<ResolvedDev
|
|
|
465
465
|
? Number(normalized)
|
|
466
466
|
: localBasePort(normalized)
|
|
467
467
|
|
|
468
|
+
console.log(` resolving native bundle for ${normalized} (manifest timeout: 30s)…`)
|
|
468
469
|
let lastError: Error | null = null
|
|
469
470
|
for (let attempt = 0; attempt < DEV_BUNDLE_RESOLVE_ATTEMPTS; attempt++) {
|
|
470
471
|
if (registeredPort && registeredPort > 0) {
|
|
@@ -2504,6 +2505,14 @@ export async function runCloseCommand(args: string[], opts: ControlCommandOption
|
|
|
2504
2505
|
} catch (err) {
|
|
2505
2506
|
rethrowIfExit(err)
|
|
2506
2507
|
console.error(` close failed: ${err instanceof Error ? err.message : String(err)}`)
|
|
2508
|
+
// `all` and `others` are flags, never sim ids.
|
|
2509
|
+
const word = parsed.positional[0]
|
|
2510
|
+
if (word === 'all' || word === 'others') {
|
|
2511
|
+
console.error(
|
|
2512
|
+
` to close ${word === 'all' ? 'every' : 'every other'} sim: peach close --${word}`,
|
|
2513
|
+
)
|
|
2514
|
+
rnxExit(1)
|
|
2515
|
+
}
|
|
2507
2516
|
await printBridgeFailureDiagnostics(bridge, {
|
|
2508
2517
|
errorsCommand: `peach get errors 5${simHint}`,
|
|
2509
2518
|
warningsCommand: `peach get warnings 5${simHint}`,
|
|
@@ -1255,6 +1255,19 @@ export async function inspectWaitReady(
|
|
|
1255
1255
|
return status
|
|
1256
1256
|
}
|
|
1257
1257
|
|
|
1258
|
+
// readiness for a capture: a capture records the screen as it is now, so an
|
|
1259
|
+
// app showing content answers from one probe, and only a booting, loading or
|
|
1260
|
+
// reloading app waits for the stable ready state. waiting out the stability
|
|
1261
|
+
// window on a settled app delayed every screenshot by most of a second.
|
|
1262
|
+
export async function inspectCaptureReady(
|
|
1263
|
+
bridge: InspectBridge,
|
|
1264
|
+
timeoutMs: number,
|
|
1265
|
+
): Promise<WaitReadyStatus> {
|
|
1266
|
+
const snapshot = await inspectReadySnapshot(bridge, 0)
|
|
1267
|
+
if (snapshot.ready) return snapshot
|
|
1268
|
+
return inspectWaitReady(bridge, timeoutMs)
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1258
1271
|
// how long one snapshot request may take to cross the bridge and read once
|
|
1259
1272
|
const READY_SNAPSHOT_SEND_TIMEOUT_MS = 2_000
|
|
1260
1273
|
|
|
@@ -13,7 +13,7 @@ import { devices } from 'peach-engine/settings/devices'
|
|
|
13
13
|
import { buildResolveRectEval, type SampleRect } from '../browser-evals'
|
|
14
14
|
import { rnxExit } from '../run-rnx'
|
|
15
15
|
import { callInBridge, createBridgeFromParsed, parseBridgeCliArgs } from '../ws-bridge'
|
|
16
|
-
import {
|
|
16
|
+
import { inspectCaptureReady, waitReadyReason } from './inspect/core'
|
|
17
17
|
|
|
18
18
|
interface ScreenshotLayersOptions {
|
|
19
19
|
port?: number
|
|
@@ -66,7 +66,7 @@ output:
|
|
|
66
66
|
})
|
|
67
67
|
const bridge = createBridgeFromParsed({ ...parsed, commandTimeoutMs: 45000 })
|
|
68
68
|
try {
|
|
69
|
-
const readiness = await
|
|
69
|
+
const readiness = await inspectCaptureReady(bridge, 90_000)
|
|
70
70
|
if (!readiness.ready) {
|
|
71
71
|
throw new Error(
|
|
72
72
|
`app not ready to capture after ${Math.round(readiness.elapsedMs / 1000)}s ` +
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
createBridgeFromParsed,
|
|
23
23
|
parseBridgeCliArgs,
|
|
24
24
|
} from '../ws-bridge'
|
|
25
|
-
import {
|
|
25
|
+
import { inspectCaptureReady, waitReadyReason } from './inspect/core'
|
|
26
26
|
|
|
27
27
|
interface ScreenshotOptions {
|
|
28
28
|
port?: number
|
|
@@ -243,10 +243,11 @@ async function captureViaBridge(
|
|
|
243
243
|
// login screen. gate on the same probe `wait ready` uses, on this very
|
|
244
244
|
// connection, so the capture only ever fires on real painted content; a
|
|
245
245
|
// genuinely-stuck app yields no image (run.sh treats that as no thumbnail,
|
|
246
|
-
// which beats a boot-card thumbnail).
|
|
246
|
+
// which beats a boot-card thumbnail). an app already showing content
|
|
247
|
+
// answers from one probe, so the capture is of the screen as it is now.
|
|
247
248
|
if (!allowLoading) {
|
|
248
249
|
const readyMaxMs = Number(process.env.CONTRAST_SCREENSHOT_READY_MAX_MS) || 90_000
|
|
249
|
-
const readiness = await
|
|
250
|
+
const readiness = await inspectCaptureReady(bridge, readyMaxMs)
|
|
250
251
|
// "don't baseline this" is not "don't capture this". a boot/loading card
|
|
251
252
|
// is transient and capturing it produces a thumbnail that lies. a crashed
|
|
252
253
|
// app is the opposite: the red box IS the evidence a boot-failure report
|
|
@@ -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;
|
|
@@ -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 __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/dist-lib/beta.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/beta.mjs
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 __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;
|
|
@@ -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 __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/cloud.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/cloud.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);
|
package/dist-lib/config.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;
|
|
@@ -74,7 +74,9 @@ function isPeachConfig(value) {
|
|
|
74
74
|
"network",
|
|
75
75
|
"settings",
|
|
76
76
|
"initialState"
|
|
77
|
-
].every((key) => value[key] === void 0 || isRecord(value[key]))
|
|
77
|
+
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
78
|
+
(entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
79
|
+
));
|
|
78
80
|
}
|
|
79
81
|
var BUNDLE_CONFIG_PREFIX = "globalThis.__peachBundleConfig=";
|
|
80
82
|
var PEACH_CONFIGURED_FILES_HOOK = "__peachInstallConfiguredFiles";
|
package/dist-lib/detox/index.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;
|
|
@@ -2478,6 +2478,7 @@ async function automateWebViewFrames(context, names, helpers) {
|
|
|
2478
2478
|
});
|
|
2479
2479
|
};
|
|
2480
2480
|
context.on("request", (request) => {
|
|
2481
|
+
if (request.serviceWorker()) return;
|
|
2481
2482
|
if (!request.isNavigationRequest() || request.redirectedFrom()) return;
|
|
2482
2483
|
if (!helpers.isAppScheme(request.url())) return;
|
|
2483
2484
|
const frame = request.frame();
|
|
@@ -2504,6 +2505,7 @@ async function automateWebViewFrames(context, names, helpers) {
|
|
|
2504
2505
|
};
|
|
2505
2506
|
context.on("response", (response) => {
|
|
2506
2507
|
const request = response.request();
|
|
2508
|
+
if (request.serviceWorker()) return;
|
|
2507
2509
|
const frame = request.frame();
|
|
2508
2510
|
if (request.isNavigationRequest()) return;
|
|
2509
2511
|
if (frame.parentFrame() !== frame.page().mainFrame()) return;
|
|
@@ -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;
|
|
@@ -158,17 +158,16 @@ async function resolvePortViaServerScan(port) {
|
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
var MANIFEST_PROBE_TIMEOUT_MS =
|
|
162
|
-
var MANIFEST_BOOT_BUDGET_MS = 3e4;
|
|
163
|
-
var MANIFEST_BOOT_RETRY_MS = 1e3;
|
|
161
|
+
var MANIFEST_PROBE_TIMEOUT_MS = 3e4;
|
|
164
162
|
async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
165
163
|
let body;
|
|
166
164
|
const pending = fetchDevProbe(`${normalizedBaseUrl}/`, {
|
|
167
165
|
headers: { "expo-platform": "ios" }
|
|
168
|
-
}).then(
|
|
169
|
-
|
|
170
|
-
()
|
|
171
|
-
|
|
166
|
+
}).then(async (res) => ({
|
|
167
|
+
status: res.status,
|
|
168
|
+
contentType: res.headers.get("content-type") || "",
|
|
169
|
+
body: await res.text()
|
|
170
|
+
})).catch(() => void 0);
|
|
172
171
|
let probeDeadline;
|
|
173
172
|
const answered = await Promise.race([
|
|
174
173
|
pending,
|
|
@@ -177,20 +176,35 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
|
177
176
|
})
|
|
178
177
|
]);
|
|
179
178
|
clearTimeout(probeDeadline);
|
|
180
|
-
if (answered === "timeout"
|
|
181
|
-
|
|
179
|
+
if (answered === "timeout")
|
|
180
|
+
throw new Error(
|
|
181
|
+
`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.`
|
|
182
|
+
);
|
|
183
|
+
if (answered === void 0) return { state: "no-answer" };
|
|
184
|
+
if (answered.status === 404 || answered.status === 405) return { state: "no-manifest" };
|
|
185
|
+
if (answered.status < 200 || answered.status >= 300)
|
|
186
|
+
throw new Error(
|
|
187
|
+
`Metro manifest request failed: HTTP ${answered.status} at ${normalizedBaseUrl}/`
|
|
188
|
+
);
|
|
182
189
|
body = answered.body;
|
|
183
190
|
if (!body.trim()) return { state: "no-answer" };
|
|
184
191
|
let manifest;
|
|
185
192
|
try {
|
|
186
193
|
manifest = JSON.parse(body);
|
|
187
194
|
} catch {
|
|
195
|
+
if (answered.contentType.includes("json"))
|
|
196
|
+
throw new Error(`Metro returned invalid manifest JSON at ${normalizedBaseUrl}/`);
|
|
188
197
|
return { state: "no-manifest" };
|
|
189
198
|
}
|
|
190
|
-
|
|
191
|
-
const
|
|
199
|
+
if (!manifest || typeof manifest !== "object") return { state: "no-manifest" };
|
|
200
|
+
const extra = "extra" in manifest ? manifest.extra : void 0;
|
|
201
|
+
const expoClient = extra && typeof extra === "object" && "expoClient" in extra ? extra.expoClient : extra;
|
|
202
|
+
const client = expoClient && typeof expoClient === "object" ? expoClient : {};
|
|
203
|
+
const launchAsset = "launchAsset" in manifest ? manifest.launchAsset : void 0;
|
|
204
|
+
const rawLaunchUrl = launchAsset && typeof launchAsset === "object" && "url" in launchAsset && typeof launchAsset.url === "string" ? launchAsset.url : void 0;
|
|
192
205
|
const launchUrl = rawLaunchUrl ? alignLoopbackBundleUrlWithProbe(rawLaunchUrl, normalizedBaseUrl) : void 0;
|
|
193
|
-
|
|
206
|
+
const name = "name" in client && typeof client.name === "string" ? client.name : void 0;
|
|
207
|
+
if (!launchUrl && !name) return { state: "no-manifest" };
|
|
194
208
|
return {
|
|
195
209
|
state: "resolved",
|
|
196
210
|
bundle: {
|
|
@@ -198,14 +212,19 @@ async function probeExpoManifest(normalizedBaseUrl, port) {
|
|
|
198
212
|
launchUrl || `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`
|
|
199
213
|
),
|
|
200
214
|
port,
|
|
201
|
-
framework: inferManifestFramework(
|
|
202
|
-
|
|
215
|
+
framework: inferManifestFramework(
|
|
216
|
+
launchUrl,
|
|
217
|
+
"sdkVersion" in client ? client.sdkVersion : void 0
|
|
218
|
+
),
|
|
219
|
+
projectName: name
|
|
203
220
|
}
|
|
204
221
|
};
|
|
205
222
|
}
|
|
206
223
|
async function isPackagerRunning(normalizedBaseUrl) {
|
|
207
224
|
try {
|
|
208
|
-
const res = await fetchDevProbe(`${normalizedBaseUrl}/status
|
|
225
|
+
const res = await fetchDevProbe(`${normalizedBaseUrl}/status`, {
|
|
226
|
+
signal: AbortSignal.timeout(5e3)
|
|
227
|
+
});
|
|
209
228
|
if (!res.ok) return false;
|
|
210
229
|
return (await res.text()).includes("packager-status:running");
|
|
211
230
|
} catch {
|
|
@@ -214,20 +233,10 @@ async function isPackagerRunning(normalizedBaseUrl) {
|
|
|
214
233
|
}
|
|
215
234
|
async function probeBaseUrlBundleDirect(baseUrl, port) {
|
|
216
235
|
const normalizedBaseUrl = baseUrl.replace(/\/+$/, "");
|
|
217
|
-
|
|
218
|
-
let packagerConfirmed = false;
|
|
219
|
-
if (manifest.state === "no-answer") {
|
|
220
|
-
packagerConfirmed = await isPackagerRunning(normalizedBaseUrl);
|
|
221
|
-
if (!packagerConfirmed) return null;
|
|
222
|
-
const deadline = Date.now() + MANIFEST_BOOT_BUDGET_MS;
|
|
223
|
-
while (manifest.state === "no-answer" && Date.now() < deadline) {
|
|
224
|
-
await new Promise((resolve) => setTimeout(resolve, MANIFEST_BOOT_RETRY_MS));
|
|
225
|
-
manifest = await probeExpoManifest(normalizedBaseUrl, port);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
236
|
+
const manifest = await probeExpoManifest(normalizedBaseUrl, port);
|
|
228
237
|
if (manifest.state === "resolved") return manifest.bundle;
|
|
229
238
|
if (manifest.state === "no-answer") return null;
|
|
230
|
-
if (!
|
|
239
|
+
if (!await isPackagerRunning(normalizedBaseUrl)) return null;
|
|
231
240
|
return {
|
|
232
241
|
bundleUrl: `${normalizedBaseUrl}${METRO_BUNDLE_PATH}`,
|
|
233
242
|
port,
|
|
@@ -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/dist-lib/home-paths.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 __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 __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 __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/dist-lib/index.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;
|
|
@@ -2011,7 +2011,9 @@ function isPeachConfig(value) {
|
|
|
2011
2011
|
"network",
|
|
2012
2012
|
"settings",
|
|
2013
2013
|
"initialState"
|
|
2014
|
-
].every((key) => value[key] === void 0 || isRecord(value[key]))
|
|
2014
|
+
].every((key) => value[key] === void 0 || isRecord(value[key])) && (value.nativeViews === void 0 || isRecord(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
2015
|
+
(entry) => entry === "noop" || isRecord(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
2016
|
+
));
|
|
2015
2017
|
}
|
|
2016
2018
|
function readPeachBundleConfig(value) {
|
|
2017
2019
|
if (value === void 0 || value === null) return null;
|
|
@@ -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/kotlin-host.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/menu.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/menu.mjs
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 __defProp = Object.defineProperty;
|
package/dist-lib/metro.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;
|
|
@@ -1994,7 +1994,9 @@ function isPeachConfig(value) {
|
|
|
1994
1994
|
"network",
|
|
1995
1995
|
"settings",
|
|
1996
1996
|
"initialState"
|
|
1997
|
-
].every((key) => value[key] === void 0 || isRecord2(value[key]))
|
|
1997
|
+
].every((key) => value[key] === void 0 || isRecord2(value[key])) && (value.nativeViews === void 0 || isRecord2(value.nativeViews) && Object.values(value.nativeViews).every(
|
|
1998
|
+
(entry) => entry === "noop" || isRecord2(entry) && typeof entry.file === "string" && entry.file.length > 0
|
|
1999
|
+
));
|
|
1998
2000
|
}
|
|
1999
2001
|
function readPeachBundleConfig(value) {
|
|
2000
2002
|
if (value === void 0 || value === null) return null;
|