peachsim 0.1.820 → 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/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 +1 -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 +1 -1
- package/dist-lib/sdk.mjs +1 -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}`,
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
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);
|
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,
|