peachsim 0.1.2438 → 0.1.2439
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/README.md +30 -98
- package/cli/app-catalog.ts +4 -73
- package/cli/catalog/content.ts +1 -1
- package/cli/cloud-box-artifact.ts +26 -39
- package/cli/cloud-client.ts +69 -117
- package/cli/cloud-session.ts +2 -9
- package/cli/commands/box.ts +6 -6
- package/cli/commands/control.ts +4 -11
- package/cli/commands/flow.ts +5 -9
- package/cli/commands/kotlin.ts +2 -1
- package/cli/commands/platform.ts +21 -39
- package/cli/commands/record-three.ts +1 -1
- package/cli/commands/shell-url.ts +29 -23
- package/cli/dev-build-freshness.ts +4 -3
- package/cli/native-input.ts +2 -2
- package/cli/outbound-endpoints.ts +20 -45
- package/cli/remote-project-bundle.ts +8 -14
- package/cli/remote-simulators.ts +1 -1
- package/cli/send-to-box.ts +2 -1
- package/detox/jest-preset.cjs +1 -1
- package/detox/jest-transform.cjs +40 -2
- package/dist-lib/agent-daemon-client.cjs +34 -24
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +19 -17
- package/dist-lib/auth/shared-session.cjs +18 -16
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -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 +20 -583
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +17 -99
- package/dist-lib/bundle-channel.cjs +8718 -5552
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +13 -363
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +34 -155
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +26 -155
- package/dist-lib/config.cjs +1 -4
- package/dist-lib/config.mjs +11 -30
- package/dist-lib/detox/index.cjs +2554 -230
- package/dist-lib/detox/jest-preset.cjs +1 -1
- package/dist-lib/detox/jest-transform.cjs +40 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/acorn-FGE4PYDJ.mjs +50 -0
- package/dist-lib/esm-chunks/chunk-2EUHEBIJ.mjs +664 -0
- package/dist-lib/esm-chunks/chunk-2NPABFPN.mjs +5719 -0
- package/dist-lib/esm-chunks/chunk-4ZFNH7TU.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-5T4XBUJP.mjs +1353 -0
- package/dist-lib/esm-chunks/chunk-6VY6HTJC.mjs +18951 -0
- package/dist-lib/esm-chunks/chunk-7HANEMO4.mjs +188 -0
- package/dist-lib/esm-chunks/chunk-C3WBGYP6.mjs +186 -0
- package/dist-lib/esm-chunks/chunk-CVGDRROP.mjs +57 -0
- package/dist-lib/esm-chunks/chunk-DADGQELM.mjs +375 -0
- package/dist-lib/esm-chunks/chunk-DEGYKHN7.mjs +12 -0
- package/dist-lib/esm-chunks/chunk-HIDNO3RP.mjs +10992 -0
- package/dist-lib/esm-chunks/chunk-HSADZOVN.mjs +30 -0
- package/dist-lib/esm-chunks/chunk-IWJUYJQO.mjs +42 -0
- package/dist-lib/esm-chunks/chunk-JCKI3VZ6.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-KSQ5KM5Y.mjs +17 -0
- package/dist-lib/esm-chunks/chunk-KVTIDLBK.mjs +598 -0
- package/dist-lib/esm-chunks/chunk-MIQSRBVU.mjs +10 -0
- package/dist-lib/esm-chunks/chunk-YB27R6JG.mjs +115 -0
- package/dist-lib/esm-chunks/metro-layout-parser-MVUAXRUJ.mjs +58 -0
- package/dist-lib/expo-swift-bundle.cjs +7856 -4707
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +16 -165
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +15658 -11404
- package/dist-lib/host/fetch-proxy-handler.cjs +3927 -342
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -1
- package/dist-lib/host/replacement-module-handler.cjs +4 -4
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +9145 -32150
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +2 -2
- package/dist-lib/kotlin-host.cjs +260 -253
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +5 -13
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +5 -6
- package/dist-lib/metro-production-bundle.cjs +22 -3
- package/dist-lib/metro-production-bundle.mjs +26 -92
- package/dist-lib/native-app-identity-project.cjs +663 -451
- package/dist-lib/native-app-identity-project.mjs +509 -2318
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +27 -1340
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +5 -18
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -1
- package/dist-lib/plist.cjs +2 -2
- package/dist-lib/plist.mjs +5 -7
- package/dist-lib/profiles.cjs +2 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +246 -187
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +1059 -1238
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -1
- package/dist-lib/reap-browser.cjs +18 -7
- package/dist-lib/scripts/dev-server-scanner.cjs +6 -230
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +22 -78
- package/dist-lib/skills.cjs +21657 -17374
- package/dist-lib/swift-compile.cjs +1343 -1318
- package/dist-lib/swift-compile.mjs +68 -19013
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +35 -630
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +9 -24
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +18061 -0
- package/dist-lib/vendor/acorn.cjs +5699 -0
- package/dist-lib/vendor/bplist-parser.cjs +1589 -0
- package/dist-lib/vendor/ignore.cjs +455 -0
- package/dist-lib/vendor/magic-string.cjs +1693 -0
- package/dist-lib/vendor/plist.cjs +10978 -0
- package/dist-lib/vendor/smol-toml.cjs +768 -0
- package/dist-lib/vendor/stream-json.cjs +1997 -0
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +23593 -0
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +15750 -0
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +11316 -0
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +482 -0
- package/dist-lib/vendor/sucrase.cjs +23593 -0
- package/dist-lib/vendor/terser.cjs +36874 -0
- package/dist-lib/vendor/valibot.cjs +6253 -0
- package/dist-lib/vendor/zod.cjs +23262 -0
- package/dist-lib/worklet-executable.cjs +3 -3
- package/dist-lib/worklet-executable.mjs +11 -16
- package/dist-types/packages/peach-engine/src/config.d.ts +1 -1
- package/kotlin/fork/NOTICE +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/kotlin/toolchain.json +6 -6
- package/package.json +17 -121
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +13 -223
- package/src/android-autolinking.ts +2 -2
- package/src/bundle-channel.mjs +3 -15
- package/src/cloud-contract.ts +3 -4
- package/src/config.ts +0 -5
- package/src/host/bridge-host.ts +19 -1
- package/src/host/server-scan-handler.ts +1 -9
- package/src/index.ts +0 -2
- package/src/kotlin-host.ts +1 -2
- package/src/kotlinDiscoveryContract.ts +1 -0
- package/src/metro-production-bundle.ts +28 -6
- package/src/native-seam-manifest.ts +0 -13
- package/src/one-native-app-catalog.ts +8 -27
- package/src/one-native-app-config.ts +95 -0
- package/src/one-native-source.ts +250 -0
- package/src/one-widget-metadata.ts +45 -126
- package/src/oneWidgetContract.ts +80 -117
- package/src/serverDiscoveryContract.ts +0 -1
- package/src/simulator-route.ts +8 -0
- package/src/vite-plugin.ts +2 -2
- package/src/xcode-project.ts +1 -1
- package/dist-lib/metro.cjs +0 -27984
- package/dist-lib/vite-swift.cjs +0 -43376
- package/dist-lib/vite.cjs +0 -21456
- package/src/androidAutolinkingContract.ts +0 -48
- package/src/androidRootModuleContract.ts +0 -39
- package/src/dev-server-open.ts +0 -92
- package/src/metro-plugin.ts +0 -578
- package/src/one-widget-discovery.ts +0 -23
- package/src/swift-vite-lifetime.ts +0 -42
- package/src/vite-plugin-one.ts +0 -746
- package/src/vite-plugin-swift.ts +0 -225
- package/src/vite.d.ts +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import "./esm-chunks/chunk-IWJUYJQO.mjs";
|
|
2
3
|
|
|
3
4
|
// src/react-native-host-modules.ts
|
|
4
5
|
var REACT_NATIVE_PASSTHROUGH_SPECIFIERS = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -53,7 +53,7 @@ __export(reap_browser_exports, {
|
|
|
53
53
|
});
|
|
54
54
|
module.exports = __toCommonJS(reap_browser_exports);
|
|
55
55
|
var childProcess = __toESM(require("node:child_process"), 1);
|
|
56
|
-
var
|
|
56
|
+
var import_node_child_process4 = require("node:child_process");
|
|
57
57
|
var import_node_crypto = require("node:crypto");
|
|
58
58
|
var fs = __toESM(require("node:fs"), 1);
|
|
59
59
|
var os2 = __toESM(require("node:os"), 1);
|
|
@@ -297,8 +297,19 @@ function startLaunchDeadline(budgetMs, onExpire) {
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
// src/process-group.ts
|
|
300
|
+
var import_node_child_process3 = require("node:child_process");
|
|
301
|
+
var import_node_fs4 = require("node:fs");
|
|
302
|
+
var import_node_os2 = require("node:os");
|
|
303
|
+
var import_node_path = require("node:path");
|
|
304
|
+
var import_node_stream = require("node:stream");
|
|
305
|
+
var import_promises = require("node:timers/promises");
|
|
306
|
+
|
|
307
|
+
// src/process-table.ts
|
|
300
308
|
var import_node_child_process2 = require("node:child_process");
|
|
301
309
|
var import_node_fs3 = require("node:fs");
|
|
310
|
+
var import_node_os = require("node:os");
|
|
311
|
+
|
|
312
|
+
// src/process-group.ts
|
|
302
313
|
function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
303
314
|
if (parents.some((pid) => !Number.isInteger(pid) || pid <= 1))
|
|
304
315
|
throw new Error("process inspection requires valid parent pids");
|
|
@@ -310,11 +321,11 @@ function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
|
310
321
|
for (const parent of parents) {
|
|
311
322
|
try {
|
|
312
323
|
const tasks = `/proc/${parent}/task`;
|
|
313
|
-
for (const thread of (0,
|
|
324
|
+
for (const thread of (0, import_node_fs4.readdirSync)(tasks)) {
|
|
314
325
|
if (Date.now() >= deadline)
|
|
315
326
|
throw new Error("process descendant inspection exceeded its deadline");
|
|
316
327
|
try {
|
|
317
|
-
lists.push((0,
|
|
328
|
+
lists.push((0, import_node_fs4.readFileSync)(`${tasks}/${thread}/children`, "utf8"));
|
|
318
329
|
} catch (error) {
|
|
319
330
|
if (!(error instanceof Error && "code" in error && error.code === "ENOENT"))
|
|
320
331
|
throw error;
|
|
@@ -327,7 +338,7 @@ function listProcessChildren(parents, timeoutMs = 1e4) {
|
|
|
327
338
|
}
|
|
328
339
|
children = lists.join(" ");
|
|
329
340
|
} else {
|
|
330
|
-
const result = (0,
|
|
341
|
+
const result = (0, import_node_child_process3.spawnSync)("pgrep", ["-P", parents.join(",")], {
|
|
331
342
|
encoding: "utf8",
|
|
332
343
|
stdio: ["ignore", "pipe", "pipe"],
|
|
333
344
|
timeout: Math.max(1, timeoutMs),
|
|
@@ -374,13 +385,13 @@ function withHostHeadless(opts, runtime, software) {
|
|
|
374
385
|
return headless ? { ...opts, headless: true } : opts;
|
|
375
386
|
}
|
|
376
387
|
function processCommand(pid) {
|
|
377
|
-
return (0,
|
|
388
|
+
return (0, import_node_child_process4.execFileSync)("/bin/ps", ["-p", String(pid), "-o", "command="], {
|
|
378
389
|
encoding: "utf8"
|
|
379
390
|
}).trim();
|
|
380
391
|
}
|
|
381
392
|
function processIdentity(pid) {
|
|
382
393
|
try {
|
|
383
|
-
const identity = (0,
|
|
394
|
+
const identity = (0, import_node_child_process4.execFileSync)(
|
|
384
395
|
"/bin/ps",
|
|
385
396
|
["-p", String(pid), "-o", "lstart=", "-o", "command="],
|
|
386
397
|
{ encoding: "utf8" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -141,7 +141,6 @@ var init_node_http_fetch = __esm({
|
|
|
141
141
|
var dev_server_scanner_exports = {};
|
|
142
142
|
__export(dev_server_scanner_exports, {
|
|
143
143
|
DevServerScanUnavailableError: () => DevServerScanUnavailableError,
|
|
144
|
-
SERVER_SCAN_PROBE_HEADER: () => SERVER_SCAN_PROBE_HEADER,
|
|
145
144
|
__attachAppSettingsBundleForTests: () => __attachAppSettingsBundleForTests,
|
|
146
145
|
__resetScannerCache: () => __resetScannerCache,
|
|
147
146
|
__shouldReuseScannerCacheEntry: () => __shouldReuseScannerCacheEntry,
|
|
@@ -367,95 +366,12 @@ function parseKotlinHostDiscovery(value) {
|
|
|
367
366
|
};
|
|
368
367
|
}
|
|
369
368
|
|
|
370
|
-
// src/oneWidgetContract.ts
|
|
371
|
-
var HOME_WIDGET_FAMILIES = [
|
|
372
|
-
"systemSmall",
|
|
373
|
-
"systemMedium",
|
|
374
|
-
"systemLarge",
|
|
375
|
-
"systemExtraLargePortrait"
|
|
376
|
-
];
|
|
377
|
-
function isHomeWidgetFamily(value) {
|
|
378
|
-
return HOME_WIDGET_FAMILIES.some((family) => family === value);
|
|
379
|
-
}
|
|
380
|
-
function parseUrl(value) {
|
|
381
|
-
try {
|
|
382
|
-
return new URL(value);
|
|
383
|
-
} catch {
|
|
384
|
-
return null;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
function configuredWidgetFromScan(value, bundleUrl) {
|
|
388
|
-
if (!Array.isArray(value)) return null;
|
|
389
|
-
const requested = new URL(bundleUrl);
|
|
390
|
-
for (const entry of value) {
|
|
391
|
-
if (!entry || typeof entry !== "object") continue;
|
|
392
|
-
const widget = Reflect.get(entry, "widget");
|
|
393
|
-
if (!widget || typeof widget !== "object") continue;
|
|
394
|
-
const metadata = Reflect.get(widget, "metadata");
|
|
395
|
-
const advertisedUrl = Reflect.get(widget, "bundleUrl");
|
|
396
|
-
const packageUrl = Reflect.get(widget, "packageUrl");
|
|
397
|
-
const projectRoot = Reflect.get(widget, "projectRoot");
|
|
398
|
-
const appIdentity = Reflect.get(widget, "appIdentity");
|
|
399
|
-
const urlSchemes = Reflect.get(widget, "urlSchemes");
|
|
400
|
-
if (typeof advertisedUrl !== "string" || typeof packageUrl !== "string" || typeof projectRoot !== "string" || !projectRoot || typeof appIdentity !== "string" || !/^[a-f0-9]{64}$/.test(appIdentity) || !Array.isArray(urlSchemes) || !urlSchemes.every(
|
|
401
|
-
(scheme) => typeof scheme === "string" && /^[A-Za-z][A-Za-z0-9+.-]*$/.test(scheme)
|
|
402
|
-
) || !metadata || typeof metadata !== "object")
|
|
403
|
-
continue;
|
|
404
|
-
const advertised = parseUrl(alignLoopbackBundleUrlWithProbe(advertisedUrl, bundleUrl));
|
|
405
|
-
const packageLocation = parseUrl(packageUrl);
|
|
406
|
-
if (!advertised || !packageLocation) continue;
|
|
407
|
-
if (advertised.protocol !== requested.protocol || advertised.port !== requested.port || advertised.hostname !== requested.hostname || advertised.pathname !== requested.pathname)
|
|
408
|
-
continue;
|
|
409
|
-
if (["rnxProjectId", "rnxReplacementToken"].some(
|
|
410
|
-
(key) => requested.searchParams.has(key) && requested.searchParams.get(key) !== advertised.searchParams.get(key)
|
|
411
|
-
))
|
|
412
|
-
continue;
|
|
413
|
-
if (packageLocation.origin !== parseUrl(advertisedUrl)?.origin || packageLocation.pathname !== "/__peach/swift-package/OneWidgets")
|
|
414
|
-
continue;
|
|
415
|
-
const appName = Reflect.get(metadata, "appName");
|
|
416
|
-
const bundleId = Reflect.get(metadata, "bundleId");
|
|
417
|
-
const kind = Reflect.get(metadata, "kind");
|
|
418
|
-
const suite = Reflect.get(metadata, "suite");
|
|
419
|
-
const displayName = Reflect.get(metadata, "displayName");
|
|
420
|
-
const description = Reflect.get(metadata, "description");
|
|
421
|
-
const families = Reflect.get(metadata, "families");
|
|
422
|
-
const sources = Reflect.get(metadata, "sources");
|
|
423
|
-
if (typeof appName !== "string" || !/^[A-Za-z][A-Za-z0-9_]*$/.test(appName) || typeof bundleId !== "string" || !bundleId || typeof kind !== "string" || !kind || typeof suite !== "string" || !suite || typeof displayName !== "string" || !displayName || typeof description !== "string" || !description || !Array.isArray(families) || families.length === 0 || !families.every(isHomeWidgetFamily) || !sources || typeof sources !== "object" || Array.isArray(sources))
|
|
424
|
-
continue;
|
|
425
|
-
const sourceHashes = {};
|
|
426
|
-
for (const [file, hash] of Object.entries(sources)) {
|
|
427
|
-
if (typeof hash !== "string" || !/^[a-f0-9]{64}$/.test(hash)) return null;
|
|
428
|
-
sourceHashes[file] = hash;
|
|
429
|
-
}
|
|
430
|
-
if (Object.keys(sourceHashes).length !== 2 || !sourceHashes["ios/OneWidgets/OneWidget.swift"] || !sourceHashes[`ios/${appName}/OneWidgetContract.swift`])
|
|
431
|
-
continue;
|
|
432
|
-
return {
|
|
433
|
-
metadata: {
|
|
434
|
-
appName,
|
|
435
|
-
bundleId,
|
|
436
|
-
kind,
|
|
437
|
-
suite,
|
|
438
|
-
displayName,
|
|
439
|
-
description,
|
|
440
|
-
families,
|
|
441
|
-
sources: sourceHashes
|
|
442
|
-
},
|
|
443
|
-
bundleUrl,
|
|
444
|
-
packageUrl: new URL("/__peach/swift-package/OneWidgets", requested).href,
|
|
445
|
-
projectRoot,
|
|
446
|
-
appIdentity,
|
|
447
|
-
urlSchemes
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
return null;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
369
|
// src/settings-bundle.ts
|
|
454
370
|
var import_promises = require("node:fs/promises");
|
|
455
371
|
var import_node_path = require("node:path");
|
|
456
372
|
|
|
457
373
|
// src/plist.ts
|
|
458
|
-
var import_plist = __toESM(require("plist"), 1);
|
|
374
|
+
var import_plist = __toESM(require("peachsim/vendor/plist"), 1);
|
|
459
375
|
function parsePlistSource(source) {
|
|
460
376
|
return import_plist.default.parse(source);
|
|
461
377
|
}
|
|
@@ -1042,7 +958,6 @@ function spawnReaped(file, args, timeoutMs, maxBuffer = 1024 * 1024) {
|
|
|
1042
958
|
}
|
|
1043
959
|
var TIMEOUT_MS = 250;
|
|
1044
960
|
var MANIFEST_TIMEOUT_MS = 1500;
|
|
1045
|
-
var SERVER_SCAN_PROBE_HEADER = "x-peach-scan-probe";
|
|
1046
961
|
var TCP_GATE_MS = 120;
|
|
1047
962
|
var BODY_TIMEOUT_MS = 3e4;
|
|
1048
963
|
async function tcpPing(port, timeout = TCP_GATE_MS) {
|
|
@@ -1510,7 +1425,7 @@ function applyManifest(result, manifestRes, buildIconProxyUrl) {
|
|
|
1510
1425
|
manifestLaunchUrl,
|
|
1511
1426
|
buildLoopbackProbeBaseUrl("http:", manifestRes.hostname, result.port)
|
|
1512
1427
|
) : void 0;
|
|
1513
|
-
if (launchUrl && !
|
|
1428
|
+
if (launchUrl && !isDirectOneBundleUrl(result.bundleUrl)) {
|
|
1514
1429
|
result.bundleUrl = withRuntimeConfig(result.port, launchUrl, result.cwd);
|
|
1515
1430
|
}
|
|
1516
1431
|
const iosIcon = client.ios?.icon;
|
|
@@ -1614,32 +1529,7 @@ async function fetchManifestEnrichment(result, buildIconProxyUrl) {
|
|
|
1614
1529
|
});
|
|
1615
1530
|
invalidatePortCache(result.port);
|
|
1616
1531
|
}
|
|
1617
|
-
var knownNonPatched = /* @__PURE__ */ new Set();
|
|
1618
1532
|
var knownOne = /* @__PURE__ */ new Set();
|
|
1619
|
-
var oneNativeApps = /* @__PURE__ */ new Map();
|
|
1620
|
-
function oneNativeWidgetFromScan(scan, result, identity) {
|
|
1621
|
-
if (!Array.isArray(scan)) return null;
|
|
1622
|
-
for (const entry of scan) {
|
|
1623
|
-
if (!entry || typeof entry !== "object" || entry.port !== result.port) continue;
|
|
1624
|
-
if (typeof entry.bundleUrl !== "string") continue;
|
|
1625
|
-
let advertised;
|
|
1626
|
-
try {
|
|
1627
|
-
advertised = new URL(entry.bundleUrl);
|
|
1628
|
-
} catch {
|
|
1629
|
-
continue;
|
|
1630
|
-
}
|
|
1631
|
-
if (!isLoopbackHost(advertised.hostname) || advertised.port !== String(result.port))
|
|
1632
|
-
continue;
|
|
1633
|
-
const widget = configuredWidgetFromScan(scan, advertised.href);
|
|
1634
|
-
if (widget?.projectRoot === identity.root && widget.metadata.bundleId === identity.bundleId)
|
|
1635
|
-
return {
|
|
1636
|
-
...widget,
|
|
1637
|
-
bundleUrl: result.bundleUrl,
|
|
1638
|
-
packageUrl: new URL("/__peach/swift-package/OneWidgets", result.bundleUrl).href
|
|
1639
|
-
};
|
|
1640
|
-
}
|
|
1641
|
-
return null;
|
|
1642
|
-
}
|
|
1643
1533
|
async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
1644
1534
|
const demoApps = await loadOptionalDemoApps();
|
|
1645
1535
|
const probeHostname = await tcpPing(port);
|
|
@@ -1655,7 +1545,6 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1655
1545
|
};
|
|
1656
1546
|
})();
|
|
1657
1547
|
const onePath = `/node_modules/one/metro-entry.bundle?platform=ios&dev=true`;
|
|
1658
|
-
const skipPatched = knownNonPatched.has(port);
|
|
1659
1548
|
const skipManifest = knownOne.has(port);
|
|
1660
1549
|
const [[statusRes, manifestRes], owner] = await Promise.all([
|
|
1661
1550
|
Promise.all([
|
|
@@ -1666,62 +1555,12 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1666
1555
|
]);
|
|
1667
1556
|
const manifestParsed = manifestRes ? safeParseManifest(manifestRes.body) : null;
|
|
1668
1557
|
const { launchUrl: manifestLaunchUrl, client: manifestClient } = readExpoManifestFields(manifestParsed);
|
|
1669
|
-
const metadata = manifestParsed?.metadata;
|
|
1670
|
-
const extra = manifestParsed?.extra;
|
|
1671
|
-
const expoGo = extra && typeof extra === "object" ? Reflect.get(extra, "expoGo") : null;
|
|
1672
|
-
const developer = expoGo && typeof expoGo === "object" ? Reflect.get(expoGo, "developer") : null;
|
|
1673
|
-
const projectRoot = developer && typeof developer === "object" ? Reflect.get(developer, "projectRoot") : null;
|
|
1674
|
-
const bundleId = manifestClient.ios?.bundleIdentifier;
|
|
1675
|
-
if (metadata && typeof metadata === "object" && Reflect.get(metadata, "oneNativeApp") === true && typeof projectRoot === "string" && typeof bundleId === "string")
|
|
1676
|
-
oneNativeApps.set(port, { root: projectRoot, bundleId });
|
|
1677
|
-
else if (manifestRes) oneNativeApps.delete(port);
|
|
1678
1558
|
const manifestState = !manifestRes ? "no-answer" : manifestParsed && (manifestLaunchUrl || typeof manifestClient.name === "string") ? "resolved" : "no-manifest";
|
|
1679
1559
|
const metroPackager = !!statusRes?.body.includes("packager-status:running") && !(manifestState === "resolved" && manifestLaunchUrl?.includes("/one/metro-entry.bundle"));
|
|
1680
|
-
const [
|
|
1681
|
-
skipPatched ? Promise.resolve(null) : httpGet(probeHostname, port, "/__peachsim/"),
|
|
1560
|
+
const [swiftRes, kotlinRes] = metroPackager ? [null, null] : await Promise.all([
|
|
1682
1561
|
httpGet(probeHostname, port, SWIFT_DISCOVERY_PATH),
|
|
1683
|
-
httpGet(probeHostname, port, KOTLIN_DISCOVERY_PATH)
|
|
1684
|
-
httpGet(probeHostname, port, "/__server-scan", "GET", MANIFEST_TIMEOUT_MS, {
|
|
1685
|
-
[SERVER_SCAN_PROBE_HEADER]: "1"
|
|
1686
|
-
})
|
|
1562
|
+
httpGet(probeHostname, port, KOTLIN_DISCOVERY_PATH)
|
|
1687
1563
|
]);
|
|
1688
|
-
const oneScan = oneScanRes?.statusCode === 200 ? safeParseManifest(oneScanRes.body) : null;
|
|
1689
|
-
if (Array.isArray(oneScan)) {
|
|
1690
|
-
for (const entry of oneScan) {
|
|
1691
|
-
if (!entry || typeof entry !== "object" || entry.framework !== "one" || entry.port !== port || typeof entry.bundleUrl !== "string")
|
|
1692
|
-
continue;
|
|
1693
|
-
let bundle;
|
|
1694
|
-
try {
|
|
1695
|
-
bundle = new URL(entry.bundleUrl);
|
|
1696
|
-
} catch {
|
|
1697
|
-
continue;
|
|
1698
|
-
}
|
|
1699
|
-
if (bundle.protocol !== "http:" || !isLoopbackHost(bundle.hostname) || bundle.port !== String(port) || !bundle.pathname.endsWith("/one/metro-entry.bundle"))
|
|
1700
|
-
continue;
|
|
1701
|
-
knownOne.add(port);
|
|
1702
|
-
return enrichWithManifest(
|
|
1703
|
-
applyManifest(
|
|
1704
|
-
{
|
|
1705
|
-
port,
|
|
1706
|
-
framework: "one",
|
|
1707
|
-
bundleUrl: withRuntimeConfig(
|
|
1708
|
-
port,
|
|
1709
|
-
alignLoopbackBundleUrlWithProbe(
|
|
1710
|
-
bundle.href,
|
|
1711
|
-
buildLoopbackProbeBaseUrl("http:", probeHostname, port)
|
|
1712
|
-
),
|
|
1713
|
-
owner.cwd
|
|
1714
|
-
),
|
|
1715
|
-
lastSeen: Date.now(),
|
|
1716
|
-
...owner
|
|
1717
|
-
},
|
|
1718
|
-
manifestRes,
|
|
1719
|
-
buildIconProxyUrl
|
|
1720
|
-
),
|
|
1721
|
-
buildIconProxyUrl
|
|
1722
|
-
);
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
1564
|
const swift = swiftRes?.statusCode === 200 ? parseSwiftHostDiscovery(safeParseManifest(swiftRes.body)) : null;
|
|
1726
1565
|
if (swift) {
|
|
1727
1566
|
const base = buildLoopbackProbeBaseUrl("http:", probeHostname, port);
|
|
@@ -1751,7 +1590,6 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1751
1590
|
};
|
|
1752
1591
|
}
|
|
1753
1592
|
if (manifestState === "resolved") {
|
|
1754
|
-
knownNonPatched.add(port);
|
|
1755
1593
|
const launchUrl = manifestLaunchUrl || `${buildLoopbackProbeBaseUrl("http:", probeHostname, port)}/index.bundle?platform=ios&dev=true&hot=true&minify=false`;
|
|
1756
1594
|
const framework = launchUrl.includes(
|
|
1757
1595
|
"/one/metro-entry.bundle"
|
|
@@ -1773,7 +1611,6 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1773
1611
|
);
|
|
1774
1612
|
}
|
|
1775
1613
|
if (statusRes && statusRes.body.includes("packager-status:running")) {
|
|
1776
|
-
knownNonPatched.add(port);
|
|
1777
1614
|
const result = makeResult(probeHostname, port, "metro", owner);
|
|
1778
1615
|
if (manifestState === "no-answer") result.bundleUrlProvisional = true;
|
|
1779
1616
|
return enrichWithManifest(
|
|
@@ -1781,29 +1618,6 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1781
1618
|
buildIconProxyUrl
|
|
1782
1619
|
);
|
|
1783
1620
|
}
|
|
1784
|
-
if (sootsimRes && sootsimRes.statusCode === 200 && sootsimRes.body.includes("sootsim-patched")) {
|
|
1785
|
-
knownNonPatched.delete(port);
|
|
1786
|
-
return enrichWithManifest(
|
|
1787
|
-
applyManifest(
|
|
1788
|
-
{
|
|
1789
|
-
port,
|
|
1790
|
-
framework: "one",
|
|
1791
|
-
bundleUrl: withRuntimeConfig(
|
|
1792
|
-
port,
|
|
1793
|
-
`${buildLoopbackProbeBaseUrl("http:", probeHostname, port)}/__peachsim/bundle.js`,
|
|
1794
|
-
owner.cwd
|
|
1795
|
-
),
|
|
1796
|
-
hmrUrl: `${buildLoopbackProbeBaseUrl("ws:", probeHostname, port)}/hot`,
|
|
1797
|
-
lastSeen: Date.now(),
|
|
1798
|
-
patched: true,
|
|
1799
|
-
...owner
|
|
1800
|
-
},
|
|
1801
|
-
manifestRes,
|
|
1802
|
-
buildIconProxyUrl
|
|
1803
|
-
),
|
|
1804
|
-
buildIconProxyUrl
|
|
1805
|
-
);
|
|
1806
|
-
}
|
|
1807
1621
|
const looksLikeMetroPackager = statusRes && statusRes.statusCode === 200 || manifestRes && manifestRes.statusCode === 200 && manifestParsed != null;
|
|
1808
1622
|
if (looksLikeMetroPackager) {
|
|
1809
1623
|
return null;
|
|
@@ -1811,7 +1625,6 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1811
1625
|
const oneRes = await httpGet(probeHostname, port, onePath, "HEAD");
|
|
1812
1626
|
if (oneRes && oneRes.statusCode > 0 && oneRes.statusCode < 400 && // one's native dev engine serves text/javascript; metro uses application/javascript.
|
|
1813
1627
|
/^(?:application|text)\/javascript(?:\s*;|$)/i.test(oneRes.contentType?.trim() || "")) {
|
|
1814
|
-
knownNonPatched.add(port);
|
|
1815
1628
|
knownOne.add(port);
|
|
1816
1629
|
return enrichWithManifest(
|
|
1817
1630
|
applyManifest(
|
|
@@ -1833,9 +1646,8 @@ async function probePort(port, buildIconProxyUrl, listeningProcess, verdict) {
|
|
|
1833
1646
|
buildIconProxyUrl
|
|
1834
1647
|
);
|
|
1835
1648
|
}
|
|
1836
|
-
if (sootsimRes) knownNonPatched.add(port);
|
|
1837
1649
|
if (verdict) {
|
|
1838
|
-
verdict.answeredNegative =
|
|
1650
|
+
verdict.answeredNegative = statusRes !== null && (skipManifest || manifestRes !== null) && swiftRes !== null && kotlinRes !== null && oneRes !== null;
|
|
1839
1651
|
}
|
|
1840
1652
|
return null;
|
|
1841
1653
|
}
|
|
@@ -1875,9 +1687,7 @@ function __shouldReuseScannerCacheEntry(entry, pid, now = Date.now()) {
|
|
|
1875
1687
|
}
|
|
1876
1688
|
function __resetScannerCache() {
|
|
1877
1689
|
portCache.clear();
|
|
1878
|
-
knownNonPatched.clear();
|
|
1879
1690
|
knownOne.clear();
|
|
1880
|
-
oneNativeApps.clear();
|
|
1881
1691
|
enrichmentCache.clear();
|
|
1882
1692
|
enrichmentInFlight.clear();
|
|
1883
1693
|
portCacheInvalidatedAt.clear();
|
|
@@ -1906,15 +1716,9 @@ async function scanDevServers(opts = {}) {
|
|
|
1906
1716
|
for (const p of [...portCache.keys()]) {
|
|
1907
1717
|
if (!currentPorts.has(p)) portCache.delete(p);
|
|
1908
1718
|
}
|
|
1909
|
-
for (const p of [...knownNonPatched]) {
|
|
1910
|
-
if (!currentPorts.has(p)) knownNonPatched.delete(p);
|
|
1911
|
-
}
|
|
1912
1719
|
for (const p of [...knownOne]) {
|
|
1913
1720
|
if (!currentPorts.has(p)) knownOne.delete(p);
|
|
1914
1721
|
}
|
|
1915
|
-
for (const p of [...oneNativeApps.keys()]) {
|
|
1916
|
-
if (!currentPorts.has(p)) oneNativeApps.delete(p);
|
|
1917
|
-
}
|
|
1918
1722
|
for (const p of [...enrichmentCache.keys()]) {
|
|
1919
1723
|
if (!currentPorts.has(p)) enrichmentCache.delete(p);
|
|
1920
1724
|
}
|
|
@@ -1929,17 +1733,12 @@ async function scanDevServers(opts = {}) {
|
|
|
1929
1733
|
for (const { port, pid } of processes) {
|
|
1930
1734
|
const cached2 = portCache.get(port);
|
|
1931
1735
|
const retryNegative = opts.fresh === true && cached2?.result === null && cached2.answeredNegative;
|
|
1932
|
-
if (retryNegative) {
|
|
1933
|
-
knownNonPatched.delete(port);
|
|
1934
|
-
}
|
|
1935
1736
|
if (cached2 && !retryNegative && __shouldReuseScannerCacheEntry(cached2, pid)) {
|
|
1936
1737
|
if (cached2.result) results.push(cached2.result);
|
|
1937
1738
|
continue;
|
|
1938
1739
|
}
|
|
1939
1740
|
if (cached2 && cached2.pid !== pid) {
|
|
1940
|
-
knownNonPatched.delete(port);
|
|
1941
1741
|
knownOne.delete(port);
|
|
1942
|
-
oneNativeApps.delete(port);
|
|
1943
1742
|
enrichmentCache.delete(port);
|
|
1944
1743
|
localIconPathCache.delete(port);
|
|
1945
1744
|
}
|
|
@@ -1965,28 +1764,6 @@ async function scanDevServers(opts = {}) {
|
|
|
1965
1764
|
if (result) results.push(result);
|
|
1966
1765
|
});
|
|
1967
1766
|
}
|
|
1968
|
-
await Promise.all(
|
|
1969
|
-
results.map(async (result) => {
|
|
1970
|
-
const nativeIdentity = oneNativeApps.get(result.port);
|
|
1971
|
-
if (result.framework !== "one" && result.framework !== "vxrn" && !nativeIdentity) {
|
|
1972
|
-
result.widget = null;
|
|
1973
|
-
return;
|
|
1974
|
-
}
|
|
1975
|
-
const scanRes = await httpGet(
|
|
1976
|
-
normalizeHostname(new URL(result.bundleUrl).hostname),
|
|
1977
|
-
result.port,
|
|
1978
|
-
"/__server-scan",
|
|
1979
|
-
"GET",
|
|
1980
|
-
MANIFEST_TIMEOUT_MS
|
|
1981
|
-
);
|
|
1982
|
-
if (!scanRes) {
|
|
1983
|
-
result.widget ??= null;
|
|
1984
|
-
return;
|
|
1985
|
-
}
|
|
1986
|
-
const scan2 = scanRes.statusCode === 200 && scanRes.contentType?.includes("json") ? safeParseManifest(scanRes.body) : null;
|
|
1987
|
-
result.widget = nativeIdentity ? oneNativeWidgetFromScan(scan2, result, nativeIdentity) : configuredWidgetFromScan(scan2, result.bundleUrl);
|
|
1988
|
-
})
|
|
1989
|
-
);
|
|
1990
1767
|
const pidByPort = /* @__PURE__ */ new Map();
|
|
1991
1768
|
for (const { port, pid } of processes) {
|
|
1992
1769
|
if (pid > 0) pidByPort.set(port, pid);
|
|
@@ -2011,7 +1788,6 @@ async function scanDevServers(opts = {}) {
|
|
|
2011
1788
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2012
1789
|
0 && (module.exports = {
|
|
2013
1790
|
DevServerScanUnavailableError,
|
|
2014
|
-
SERVER_SCAN_PROBE_HEADER,
|
|
2015
1791
|
__attachAppSettingsBundleForTests,
|
|
2016
1792
|
__resetScannerCache,
|
|
2017
1793
|
__shouldReuseScannerCacheEntry,
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,54 +1,25 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// src/bridge-contract-input.ts
|
|
27
|
-
var BridgeInputError = class extends Error {
|
|
28
|
-
constructor(message) {
|
|
29
|
-
super(message);
|
|
30
|
-
this.name = "BridgeInputError";
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
var SEMANTIC_WAIT_MAX_TIMEOUT_MS = 3e4;
|
|
34
|
-
function validationFailure(path, expectation) {
|
|
35
|
-
throw new BridgeInputError(`${path} ${expectation}`);
|
|
36
|
-
}
|
|
37
|
-
function parseDiagnosticsResult(value) {
|
|
38
|
-
if (!isRecord(value) || !Array.isArray(value.channels) || !value.channels.every((channel) => typeof channel === "string") || !Array.isArray(value.availableChannels) || !value.availableChannels.every((channel) => typeof channel === "string") || !Array.isArray(value.events)) {
|
|
39
|
-
validationFailure(
|
|
40
|
-
"remote diagnostics",
|
|
41
|
-
"returned an incompatible native host response"
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
channels: value.channels,
|
|
46
|
-
availableChannels: value.availableChannels,
|
|
47
|
-
runtime: value.runtime,
|
|
48
|
-
found: value.found,
|
|
49
|
-
events: value.events
|
|
50
|
-
};
|
|
51
|
-
}
|
|
1
|
+
/*! peach v0.1.2439 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
|
+
import {
|
|
3
|
+
SEMANTIC_WAIT_MAX_TIMEOUT_MS,
|
|
4
|
+
parseDiagnosticsResult
|
|
5
|
+
} from "./esm-chunks/chunk-KVTIDLBK.mjs";
|
|
6
|
+
import {
|
|
7
|
+
LAUNCH_METADATA_KEYS,
|
|
8
|
+
LAUNCH_METADATA_QUERY_PARAM
|
|
9
|
+
} from "./esm-chunks/chunk-HSADZOVN.mjs";
|
|
10
|
+
import {
|
|
11
|
+
HEADLESS_TENANT_FETCH_HUNG_MARKER,
|
|
12
|
+
readyProbeContentBasis,
|
|
13
|
+
readyProbeHasContent,
|
|
14
|
+
readyProbeIsReady
|
|
15
|
+
} from "./esm-chunks/chunk-YB27R6JG.mjs";
|
|
16
|
+
import {
|
|
17
|
+
sleep
|
|
18
|
+
} from "./esm-chunks/chunk-MIQSRBVU.mjs";
|
|
19
|
+
import "./esm-chunks/chunk-JCKI3VZ6.mjs";
|
|
20
|
+
import {
|
|
21
|
+
__publicField
|
|
22
|
+
} from "./esm-chunks/chunk-IWJUYJQO.mjs";
|
|
52
23
|
|
|
53
24
|
// cli/commands/inspect/core.ts
|
|
54
25
|
var MAX_MS_FLAG_ALIASES = ["--max-ms", "--maxMs", "--maxms", "--max_ms", "--timeout"];
|
|
@@ -2926,33 +2897,6 @@ async function openAppUrl(bridge, target) {
|
|
|
2926
2897
|
return normalized;
|
|
2927
2898
|
}
|
|
2928
2899
|
|
|
2929
|
-
// src/launchMetadataContract.ts
|
|
2930
|
-
var LAUNCH_METADATA_QUERY_PARAM = "launchMetadata";
|
|
2931
|
-
var LAUNCH_METADATA_KEYS = [
|
|
2932
|
-
"appFonts",
|
|
2933
|
-
"appSplash",
|
|
2934
|
-
"appCatalog",
|
|
2935
|
-
"appBundleResources",
|
|
2936
|
-
"nativeAppIdentity",
|
|
2937
|
-
"nativeFirebase",
|
|
2938
|
-
"expoSwift",
|
|
2939
|
-
"expoWidgets",
|
|
2940
|
-
"expoKotlin",
|
|
2941
|
-
"nitro",
|
|
2942
|
-
"turbo",
|
|
2943
|
-
"widgetExtension",
|
|
2944
|
-
"appManifest",
|
|
2945
|
-
"packageVersions",
|
|
2946
|
-
"dotEnv",
|
|
2947
|
-
"env"
|
|
2948
|
-
];
|
|
2949
|
-
var LAUNCH_METADATA_KEYS_BEFORE_RUNTIME_STATED_THEM = LAUNCH_METADATA_KEYS.filter((key) => key !== "widgetExtension");
|
|
2950
|
-
|
|
2951
|
-
// src/sleep.ts
|
|
2952
|
-
function sleep(ms) {
|
|
2953
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
2954
|
-
}
|
|
2955
|
-
|
|
2956
2900
|
// src/sim-client.ts
|
|
2957
2901
|
var SimClientError = class extends Error {
|
|
2958
2902
|
constructor(message) {
|