peachsim 0.1.2261 → 0.1.2263
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/app-catalog.ts +72 -15
- package/cli/commands/shell-url.ts +11 -3
- package/cli/commands/upload.ts +2 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +71 -19
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2 -2
- 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 +6 -4
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +2 -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 +2 -2
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +163 -113
- 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 +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/bundle-channel.mjs +17 -3
- package/src/nitro-source.ts +8 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2263 | (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;
|
|
@@ -6024,7 +6024,7 @@ var init_supported_native_packages = __esm({
|
|
|
6024
6024
|
"gt-react-native",
|
|
6025
6025
|
// seam+coverage
|
|
6026
6026
|
"jail-monkey",
|
|
6027
|
-
// coverage
|
|
6027
|
+
// seam+coverage
|
|
6028
6028
|
"klaviyo-react-native-sdk",
|
|
6029
6029
|
// seam
|
|
6030
6030
|
"lottie-react-native",
|
|
@@ -8055,7 +8055,7 @@ var init_registry = __esm({
|
|
|
8055
8055
|
coverage: 0.7,
|
|
8056
8056
|
note: "upstream 58.0.1 JavaScript runs unchanged. iOS compiles the installed ExpoHingeModule.swift and HingeObserver.swift through the shared Expo Swift host: UIHingeInteraction attaches to the key window and delivers the fold state the device spec feeds, so a device without a hinge delivers nothing. Android keeps a seam (native-seams/expo-hinge.ts) because no Android device spec has a hinge angle sensor: isAvailable follows API level 30 and getHinge stays null",
|
|
8057
8057
|
working: "iOS isAvailable, getHinge and hingeChange from the upstream observer: Duo initial closed state, partiallyOpen and fullyOpen events, no duplicate event for an unchanged hinge, the cached value without a listener, and a null event when the hinge disappears; a standard iPhone has a null hinge and no events; Android isAvailable from API level 30 and a null hinge",
|
|
8058
|
-
missing: "
|
|
8058
|
+
missing: "the Android sensor and Jetpack WindowManager FoldingFeature states are not compiled or fed: ExpoHingeModule.kt fails at its first import (unresolved reference android.hardware) because the Android platform intake is paused"
|
|
8059
8059
|
}
|
|
8060
8060
|
]
|
|
8061
8061
|
},
|
|
@@ -10227,9 +10227,9 @@ var init_registry = __esm({
|
|
|
10227
10227
|
{
|
|
10228
10228
|
range: ">=3.0.0",
|
|
10229
10229
|
coverage: 0.9,
|
|
10230
|
-
note: "
|
|
10231
|
-
working: "
|
|
10232
|
-
missing: "
|
|
10230
|
+
note: "iOS compiles the packages own JailMonkey.mm and the unchanged JS runs over it; Android answers from a seam",
|
|
10231
|
+
working: "iOS: the compiled Objective-C++ answers every check from the simulated device (isJailBroken, trustFall, hookDetected and isDebuggedMode false, empty jailBrokenMessage, canMockLocation true through the simulator branch of its own source); Android: the seam reports a clean device (all checks false, rootedDetectionMethods empty)",
|
|
10232
|
+
missing: "Android root, hook, external-storage and ADB signals: the seam answers a clean device and Android native intake is paused"
|
|
10233
10233
|
}
|
|
10234
10234
|
]
|
|
10235
10235
|
},
|
|
@@ -13147,15 +13147,15 @@ var init_registry = __esm({
|
|
|
13147
13147
|
versions: [
|
|
13148
13148
|
{
|
|
13149
13149
|
range: ">=1.0.0 <11.0.0",
|
|
13150
|
-
coverage: 0.
|
|
13150
|
+
coverage: 0.8,
|
|
13151
13151
|
note: "real upstream package \u2014 not intercepted. the app's expo-alternate-app-icons JS reads the ExpoAlternateAppIcons native module (native-seams/expo-alternate-app-icons.ts): iOS supportsAlternateIcons from the declared CFBundleAlternateIcons, getAppIconName, and the measured UIKit rejections (inactive-app cancel, unknown-name file-missing, undeclared-app fallback) surfaced through expo's UnexpectedException conversion; iOS native sources are identical through 11.0.0 and ran on 8.0.0. Android is not served below 11: its seam ports the 11.0.0 Kotlin, whose behavior differs",
|
|
13152
|
-
missing: "
|
|
13152
|
+
missing: "the Android launcher icon swap and its persisted selection: Android keeps the enabled alias in seam state and the launcher icon it selects is engine work; iOS performs the change through the engine AppIconHost (confirmation alert, home screen face, persisted preference)"
|
|
13153
13153
|
},
|
|
13154
13154
|
{
|
|
13155
13155
|
range: ">=11.0.0",
|
|
13156
|
-
coverage: 0.
|
|
13156
|
+
coverage: 0.8,
|
|
13157
13157
|
note: "real upstream package \u2014 not intercepted. the app's expo-alternate-app-icons JS reads the ExpoAlternateAppIcons native module (native-seams/expo-alternate-app-icons.ts): iOS supportsAlternateIcons from the declared CFBundleAlternateIcons, getAppIconName, and the measured UIKit rejections (inactive-app cancel, unknown-name file-missing, undeclared-app fallback) surfaced through expo's UnexpectedException conversion; iOS ran on 8.0.0 and its native sources are unchanged in 11.0.0. Android ports the 11.0.0 Kotlin and plugin by source diff against 8.0.0, not a native run: the always-declared enabled Default alias, getAppIconName reading the enabled alias, null or 'Default' mapping to it, an undeclared name resolving unchanged, with the enabled alias in seam state. resetAppIcon runs from the bundle as set(null)",
|
|
13158
|
-
missing: "
|
|
13158
|
+
missing: "the Android launcher icon swap and its persisted selection: Android keeps the enabled alias in seam state and the launcher icon it selects is engine work; iOS performs the change through the engine AppIconHost (confirmation alert, home screen face, persisted preference)"
|
|
13159
13159
|
}
|
|
13160
13160
|
]
|
|
13161
13161
|
},
|
|
@@ -31948,6 +31948,8 @@ function collectNitroSources(options, nativeSourceKeys, sourceRoot) {
|
|
|
31948
31948
|
const source = import_node_fs16.default.realpathSync(import_node_path13.default.join(root, sourceRelative));
|
|
31949
31949
|
if (providerRoots.has(root) && /\.(?:c|cc|cpp|cxx|m|mm|swift)$/.test(entry.name) && !nativeSourceKeys.has(projectSourceKey([sourceRoot], source)))
|
|
31950
31950
|
continue;
|
|
31951
|
+
if (/\.mm?$/.test(entry.name) && /\bRCT_EXTERN_(?:REMAP_)?MODULE\s*\(/.test(import_node_fs16.default.readFileSync(source, "utf8")))
|
|
31952
|
+
continue;
|
|
31951
31953
|
const key2 = `${targetPath(name3)}/upstream/${import_node_path13.default.relative(root, source).split(import_node_path13.default.sep).join("/")}`;
|
|
31952
31954
|
let original = originals.get(source);
|
|
31953
31955
|
if (!original) {
|
|
@@ -66585,7 +66587,7 @@ var init_package_tree_digest = __esm({
|
|
|
66585
66587
|
|
|
66586
66588
|
// src/expo-native-prebuilt.ts
|
|
66587
66589
|
function expoNativeCompilerDigestValue() {
|
|
66588
|
-
return true ? "
|
|
66590
|
+
return true ? "0c7b8eb4e71003ca5db9ff4cdc14faf78c00f0730c4244aa0557c4ca343acf58" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
66589
66591
|
}
|
|
66590
66592
|
function readSources(value) {
|
|
66591
66593
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -86919,6 +86921,15 @@ function parseOneNativeAppCatalog(value) {
|
|
|
86919
86921
|
const assetCatalog = typeof value.assetCatalog === "string" && import_node_path94.default.isAbsolute(value.assetCatalog) ? value.assetCatalog : null;
|
|
86920
86922
|
return accentColor || assetCatalog ? { accentColor, assetCatalog } : null;
|
|
86921
86923
|
}
|
|
86924
|
+
function readOneNativeAppCatalog(entryConfig, root) {
|
|
86925
|
+
const app = isRecord(entryConfig) ? entryConfig.app : void 0;
|
|
86926
|
+
const ios = isRecord(app) ? app.ios : void 0;
|
|
86927
|
+
if (!isRecord(ios)) return null;
|
|
86928
|
+
return parseOneNativeAppCatalog({
|
|
86929
|
+
accentColor: ios.accentColor,
|
|
86930
|
+
assetCatalog: typeof ios.assetCatalog === "string" ? import_node_path94.default.resolve(root, ios.assetCatalog) : null
|
|
86931
|
+
});
|
|
86932
|
+
}
|
|
86922
86933
|
var import_node_path94, ONE_NATIVE_APP_CATALOG_ROUTE, HEX_COLOR;
|
|
86923
86934
|
var init_one_native_app_catalog = __esm({
|
|
86924
86935
|
"src/one-native-app-catalog.ts"() {
|
|
@@ -87017,14 +87028,7 @@ async function discoverAppCatalog(appDir, assetOrigin) {
|
|
|
87017
87028
|
accentName
|
|
87018
87029
|
);
|
|
87019
87030
|
}
|
|
87020
|
-
|
|
87021
|
-
const response = await fetch(`${metroOrigin}${ONE_NATIVE_APP_CATALOG_ROUTE}`, {
|
|
87022
|
-
signal: AbortSignal.timeout(1500)
|
|
87023
|
-
}).catch(() => null);
|
|
87024
|
-
if (!response?.ok || !(response.headers.get("content-type") ?? "").toLowerCase().includes("json"))
|
|
87025
|
-
return null;
|
|
87026
|
-
const declared = parseOneNativeAppCatalog(await response.json().catch(() => null));
|
|
87027
|
-
if (!declared) return null;
|
|
87031
|
+
function oneDeclaredAppCatalog(declared, assetOrigin) {
|
|
87028
87032
|
const { accentColor, assetCatalog } = declared;
|
|
87029
87033
|
const accentName = accentColor ? "AccentColor" : null;
|
|
87030
87034
|
const files2 = [];
|
|
@@ -87038,12 +87042,58 @@ async function discoverOneNativeAppCatalog(metroOrigin, assetOrigin) {
|
|
|
87038
87042
|
if (catalog && accentColor) catalog.colors.AccentColor = accentColor;
|
|
87039
87043
|
return catalog;
|
|
87040
87044
|
}
|
|
87041
|
-
|
|
87045
|
+
async function discoverOneNativeAppCatalog(metroOrigin, assetOrigin) {
|
|
87046
|
+
const response = await fetch(`${metroOrigin}${ONE_NATIVE_APP_CATALOG_ROUTE}`, {
|
|
87047
|
+
signal: AbortSignal.timeout(1500)
|
|
87048
|
+
}).catch(() => null);
|
|
87049
|
+
if (!response?.ok || !(response.headers.get("content-type") ?? "").toLowerCase().includes("json"))
|
|
87050
|
+
return null;
|
|
87051
|
+
const declared = parseOneNativeAppCatalog(await response.json().catch(() => null));
|
|
87052
|
+
return declared ? oneDeclaredAppCatalog(declared, assetOrigin) : null;
|
|
87053
|
+
}
|
|
87054
|
+
async function discoverProjectOneNativeAppCatalog(projectRoot, assetOrigin) {
|
|
87055
|
+
const declared = await readProjectOneNativeAppCatalog(projectRoot, process.env, "node");
|
|
87056
|
+
return declared ? oneDeclaredAppCatalog(declared, assetOrigin) : null;
|
|
87057
|
+
}
|
|
87058
|
+
async function readProjectOneNativeAppCatalog(projectRoot, env, runtimeExecutable) {
|
|
87059
|
+
let onePackage;
|
|
87060
|
+
try {
|
|
87061
|
+
onePackage = (0, import_node_module16.createRequire)(import_node_path95.default.join(projectRoot, "package.json")).resolve(
|
|
87062
|
+
"one/package.json"
|
|
87063
|
+
);
|
|
87064
|
+
} catch {
|
|
87065
|
+
return null;
|
|
87066
|
+
}
|
|
87067
|
+
const loader = (0, import_node_url7.pathToFileURL)(
|
|
87068
|
+
import_node_path95.default.join(import_node_path95.default.dirname(onePackage), "dist/esm/vite/loadConfig.mjs")
|
|
87069
|
+
).href;
|
|
87070
|
+
const { stdout } = await (0, import_node_util18.promisify)(import_node_child_process52.execFile)(
|
|
87071
|
+
runtimeExecutable,
|
|
87072
|
+
[
|
|
87073
|
+
"--input-type=module",
|
|
87074
|
+
"-e",
|
|
87075
|
+
`const { loadUserOneOptions } = await import(process.argv[1])
|
|
87076
|
+
const { oneOptions } = await loadUserOneOptions('build', true)
|
|
87077
|
+
const app = typeof oneOptions?.native === 'object' ? oneOptions.native.app : undefined
|
|
87078
|
+
process.stdout.write('\\n' + JSON.stringify({ app }) + '\\n')
|
|
87079
|
+
process.exit(0)`,
|
|
87080
|
+
loader
|
|
87081
|
+
],
|
|
87082
|
+
{ cwd: projectRoot, env, maxBuffer: 64 * 1024 * 1024 }
|
|
87083
|
+
);
|
|
87084
|
+
const json = stdout.split("\n").findLast((line) => line.startsWith('{"app"'));
|
|
87085
|
+
return readOneNativeAppCatalog(json ? JSON.parse(json) : null, projectRoot);
|
|
87086
|
+
}
|
|
87087
|
+
var import_node_child_process52, import_node_fs97, import_node_module16, import_node_path95, import_node_url7, import_node_util18, ACCENT_BUILD_SETTING, PLIST_ACCENT;
|
|
87042
87088
|
var init_app_catalog = __esm({
|
|
87043
87089
|
"cli/app-catalog.ts"() {
|
|
87044
87090
|
"use strict";
|
|
87091
|
+
import_node_child_process52 = require("node:child_process");
|
|
87045
87092
|
import_node_fs97 = __toESM(require("node:fs"), 1);
|
|
87093
|
+
import_node_module16 = require("node:module");
|
|
87046
87094
|
import_node_path95 = __toESM(require("node:path"), 1);
|
|
87095
|
+
import_node_url7 = require("node:url");
|
|
87096
|
+
import_node_util18 = require("node:util");
|
|
87047
87097
|
init_bundleAssets();
|
|
87048
87098
|
init_expo_native_workspace();
|
|
87049
87099
|
init_staged_host_files();
|
|
@@ -87875,7 +87925,7 @@ var init_nitro_compiler_digest = __esm({
|
|
|
87875
87925
|
|
|
87876
87926
|
// src/nitro-superset-inputs.ts
|
|
87877
87927
|
async function nitroSupersetInputs(options) {
|
|
87878
|
-
const resolve14 = (0,
|
|
87928
|
+
const resolve14 = (0, import_node_module17.createRequire)((0, import_node_path99.join)(options.appRoot, "package.json")).resolve;
|
|
87879
87929
|
const pin2 = swiftNativePin();
|
|
87880
87930
|
const inputs = {
|
|
87881
87931
|
configuration: options.configuration,
|
|
@@ -87892,12 +87942,12 @@ async function nitroSupersetInputs(options) {
|
|
|
87892
87942
|
inputs[`provider:${name3}`] = `${packageVersion(root)}\0${await packageTreeDigest(root)}`;
|
|
87893
87943
|
return inputs;
|
|
87894
87944
|
}
|
|
87895
|
-
var import_node_fs101,
|
|
87945
|
+
var import_node_fs101, import_node_module17, import_node_path99, packageVersion;
|
|
87896
87946
|
var init_nitro_superset_inputs = __esm({
|
|
87897
87947
|
"src/nitro-superset-inputs.ts"() {
|
|
87898
87948
|
"use strict";
|
|
87899
87949
|
import_node_fs101 = require("node:fs");
|
|
87900
|
-
|
|
87950
|
+
import_node_module17 = require("node:module");
|
|
87901
87951
|
import_node_path99 = require("node:path");
|
|
87902
87952
|
init_package_tree_digest();
|
|
87903
87953
|
init_swift_native_pin();
|
|
@@ -88004,7 +88054,7 @@ var init_nitro_superset = __esm({
|
|
|
88004
88054
|
init_nitroContract();
|
|
88005
88055
|
init_swift_standin_digest();
|
|
88006
88056
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88007
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
88057
|
+
NITRO_COMPILER_DIGEST = true ? "279b234bcb016af66f6c96d6750b196b96467a2ed007f51f8b6a8b3008a126b0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88008
88058
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88009
88059
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88010
88060
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -88193,7 +88243,7 @@ var init_nitro_bundle = __esm({
|
|
|
88193
88243
|
|
|
88194
88244
|
// src/expo-widgets-bundle.ts
|
|
88195
88245
|
async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
88196
|
-
const require4 = (0,
|
|
88246
|
+
const require4 = (0, import_node_module18.createRequire)(import_node_path101.default.join(appRoot, "package.json"));
|
|
88197
88247
|
let manifest;
|
|
88198
88248
|
try {
|
|
88199
88249
|
manifest = require4.resolve("expo-widgets/package.json");
|
|
@@ -88206,7 +88256,7 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
88206
88256
|
const runtimeBundle = await withSwiftRootLock(
|
|
88207
88257
|
import_node_path101.default.join(await import_promises9.default.realpath(packageDir), "bundle"),
|
|
88208
88258
|
async () => {
|
|
88209
|
-
await (0,
|
|
88259
|
+
await (0, import_node_util19.promisify)(import_node_child_process53.execFile)(
|
|
88210
88260
|
process.env.NODE_BINARY || "node",
|
|
88211
88261
|
[import_node_path101.default.join(packageDir, "scripts/build-bundle.mjs"), appRoot],
|
|
88212
88262
|
{ cwd: appRoot, maxBuffer: 16 * 1024 * 1024 }
|
|
@@ -88222,15 +88272,15 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
88222
88272
|
}
|
|
88223
88273
|
};
|
|
88224
88274
|
}
|
|
88225
|
-
var
|
|
88275
|
+
var import_node_child_process53, import_promises9, import_node_module18, import_node_path101, import_node_util19, EXPO_WIDGETS_ROUTE, handleExpoWidgetsRequest;
|
|
88226
88276
|
var init_expo_widgets_bundle = __esm({
|
|
88227
88277
|
"src/expo-widgets-bundle.ts"() {
|
|
88228
88278
|
"use strict";
|
|
88229
|
-
|
|
88279
|
+
import_node_child_process53 = require("node:child_process");
|
|
88230
88280
|
import_promises9 = __toESM(require("node:fs/promises"), 1);
|
|
88231
|
-
|
|
88281
|
+
import_node_module18 = require("node:module");
|
|
88232
88282
|
import_node_path101 = __toESM(require("node:path"), 1);
|
|
88233
|
-
|
|
88283
|
+
import_node_util19 = require("node:util");
|
|
88234
88284
|
init_expo_widget_assets();
|
|
88235
88285
|
init_nitro_bundle();
|
|
88236
88286
|
init_swift_root_lock();
|
|
@@ -88712,7 +88762,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
88712
88762
|
var runtime_companion_default;
|
|
88713
88763
|
var init_runtime_companion = __esm({
|
|
88714
88764
|
"runtime-companion.json"() {
|
|
88715
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
88765
|
+
runtime_companion_default = { abi: 1, sha256: "9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b", file: "node/cli-9ea841897a63090ddbce1dbf9be3b55664d3630f612f68e9f3035948dc019b3b.cjs" };
|
|
88716
88766
|
}
|
|
88717
88767
|
});
|
|
88718
88768
|
|
|
@@ -88774,7 +88824,7 @@ function getCliRuntime() {
|
|
|
88774
88824
|
if (loaded2) return loaded2.runtime;
|
|
88775
88825
|
const root = peachRuntimeRoot();
|
|
88776
88826
|
verifyCliCompanion(root);
|
|
88777
|
-
const require4 = (0,
|
|
88827
|
+
const require4 = (0, import_node_module19.createRequire)(__sootsim_import_meta_url);
|
|
88778
88828
|
const runtime = require4((0, import_node_path103.join)(root, cliCompanionPath()));
|
|
88779
88829
|
if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
|
|
88780
88830
|
throw new Error(
|
|
@@ -88785,13 +88835,13 @@ function getCliRuntime() {
|
|
|
88785
88835
|
loaded2 = { root, runtime };
|
|
88786
88836
|
return runtime;
|
|
88787
88837
|
}
|
|
88788
|
-
var import_node_crypto56, import_node_fs104,
|
|
88838
|
+
var import_node_crypto56, import_node_fs104, import_node_module19, import_node_path103, CLI_COMPANION_ABI, loaded2;
|
|
88789
88839
|
var init_cli_runtime = __esm({
|
|
88790
88840
|
"src/cli-runtime.ts"() {
|
|
88791
88841
|
"use strict";
|
|
88792
88842
|
import_node_crypto56 = require("node:crypto");
|
|
88793
88843
|
import_node_fs104 = require("node:fs");
|
|
88794
|
-
|
|
88844
|
+
import_node_module19 = require("node:module");
|
|
88795
88845
|
import_node_path103 = require("node:path");
|
|
88796
88846
|
init_src();
|
|
88797
88847
|
init_runtime_companion();
|
|
@@ -89068,7 +89118,7 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
|
|
|
89068
89118
|
const { artifact, collection } = await compileTurboModule({
|
|
89069
89119
|
appRoot,
|
|
89070
89120
|
reactNativeRoot: import_node_path105.default.dirname(
|
|
89071
|
-
(0,
|
|
89121
|
+
(0, import_node_module20.createRequire)(import_node_path105.default.join(projectRoot, "package.json")).resolve(
|
|
89072
89122
|
"react-native/package.json"
|
|
89073
89123
|
)
|
|
89074
89124
|
),
|
|
@@ -89092,11 +89142,11 @@ async function compileTurboApp(appRoot, origin, moduleRoot, iosTarget, prepareRe
|
|
|
89092
89142
|
}
|
|
89093
89143
|
};
|
|
89094
89144
|
}
|
|
89095
|
-
var
|
|
89145
|
+
var import_node_module20, import_node_path105, TURBO_ROUTE, handleTurboRequest;
|
|
89096
89146
|
var init_turbo_bundle = __esm({
|
|
89097
89147
|
"src/turbo-bundle.ts"() {
|
|
89098
89148
|
"use strict";
|
|
89099
|
-
|
|
89149
|
+
import_node_module20 = require("node:module");
|
|
89100
89150
|
import_node_path105 = __toESM(require("node:path"), 1);
|
|
89101
89151
|
init_app_project();
|
|
89102
89152
|
init_app_config();
|
|
@@ -90058,7 +90108,7 @@ function findInternalDemoRegistry(startDir) {
|
|
|
90058
90108
|
}
|
|
90059
90109
|
async function loadOptionalDemoApps() {
|
|
90060
90110
|
if (cached2) return cached2;
|
|
90061
|
-
const registryPath = findInternalDemoRegistry((0, import_node_path107.dirname)((0,
|
|
90111
|
+
const registryPath = findInternalDemoRegistry((0, import_node_path107.dirname)((0, import_node_url8.fileURLToPath)(__sootsim_import_meta_url)));
|
|
90062
90112
|
if (!registryPath) {
|
|
90063
90113
|
cached2 = [];
|
|
90064
90114
|
return cached2;
|
|
@@ -90066,7 +90116,7 @@ async function loadOptionalDemoApps() {
|
|
|
90066
90116
|
try {
|
|
90067
90117
|
const mod = await import(
|
|
90068
90118
|
/* @vite-ignore */
|
|
90069
|
-
(0,
|
|
90119
|
+
(0, import_node_url8.pathToFileURL)(registryPath).href
|
|
90070
90120
|
);
|
|
90071
90121
|
cached2 = Array.isArray(mod.APPS) ? mod.APPS : [];
|
|
90072
90122
|
} catch {
|
|
@@ -90077,13 +90127,13 @@ async function loadOptionalDemoApps() {
|
|
|
90077
90127
|
function optionalDemoAppsSync() {
|
|
90078
90128
|
return cached2 ?? [];
|
|
90079
90129
|
}
|
|
90080
|
-
var import_node_fs106, import_node_path107,
|
|
90130
|
+
var import_node_fs106, import_node_path107, import_node_url8, REGISTRY_REPO_PATH, MAX_ANCESTOR_STEPS, cached2;
|
|
90081
90131
|
var init_optional_demo_registry = __esm({
|
|
90082
90132
|
"scripts/optional-demo-registry.ts"() {
|
|
90083
90133
|
"use strict";
|
|
90084
90134
|
import_node_fs106 = require("node:fs");
|
|
90085
90135
|
import_node_path107 = require("node:path");
|
|
90086
|
-
|
|
90136
|
+
import_node_url8 = require("node:url");
|
|
90087
90137
|
REGISTRY_REPO_PATH = "packages/peachsim/scripts/demo-app-registry.ts";
|
|
90088
90138
|
MAX_ANCESTOR_STEPS = 8;
|
|
90089
90139
|
cached2 = null;
|
|
@@ -91793,7 +91843,7 @@ function mkfifoSync(p) {
|
|
|
91793
91843
|
import_node_fs109.default.unlinkSync(p);
|
|
91794
91844
|
}
|
|
91795
91845
|
}
|
|
91796
|
-
const result = (0,
|
|
91846
|
+
const result = (0, import_node_child_process54.spawnSync)("mkfifo", ["-m", "600", p]);
|
|
91797
91847
|
if (result.status !== 0) {
|
|
91798
91848
|
throw new Error(
|
|
91799
91849
|
`mkfifo(${p}) failed: ${result.stderr?.toString().trim() || "unknown error"}`
|
|
@@ -91861,7 +91911,7 @@ async function startSession(opts) {
|
|
|
91861
91911
|
if (claudeSessionUuid) {
|
|
91862
91912
|
wrapperArgs.push("--claude-session-uuid", claudeSessionUuid);
|
|
91863
91913
|
}
|
|
91864
|
-
const child = (0,
|
|
91914
|
+
const child = (0, import_node_child_process54.spawn)(executable, wrapperArgs, {
|
|
91865
91915
|
detached: true,
|
|
91866
91916
|
stdio: "ignore",
|
|
91867
91917
|
env: {
|
|
@@ -92013,11 +92063,11 @@ async function waitForFirstEvent(fifo, predicate, timeoutMs) {
|
|
|
92013
92063
|
import_node_fs109.default.closeSync(fd);
|
|
92014
92064
|
}
|
|
92015
92065
|
}
|
|
92016
|
-
var
|
|
92066
|
+
var import_node_child_process54, import_node_crypto58, import_node_fs109, import_node_path110, import_node_readline, AgentSessionError;
|
|
92017
92067
|
var init_agent_sessions = __esm({
|
|
92018
92068
|
"src/agent-sessions.ts"() {
|
|
92019
92069
|
"use strict";
|
|
92020
|
-
|
|
92070
|
+
import_node_child_process54 = require("node:child_process");
|
|
92021
92071
|
import_node_crypto58 = require("node:crypto");
|
|
92022
92072
|
import_node_fs109 = __toESM(require("node:fs"), 1);
|
|
92023
92073
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
@@ -95360,7 +95410,7 @@ async function loadNetworkPolicy(file) {
|
|
|
95360
95410
|
}
|
|
95361
95411
|
const loaded3 = await import(
|
|
95362
95412
|
/* @vite-ignore */
|
|
95363
|
-
(0,
|
|
95413
|
+
(0, import_node_url9.pathToFileURL)(file).href
|
|
95364
95414
|
);
|
|
95365
95415
|
const decide = Reflect.get(Object(loaded3), "default");
|
|
95366
95416
|
if (typeof decide !== "function") {
|
|
@@ -95368,12 +95418,12 @@ async function loadNetworkPolicy(file) {
|
|
|
95368
95418
|
}
|
|
95369
95419
|
return (event) => decide(event);
|
|
95370
95420
|
}
|
|
95371
|
-
var import_node_path114,
|
|
95421
|
+
var import_node_path114, import_node_url9, NETWORK_POLICY_TIMEOUT_MS, NetworkPolicyDeniedError, policyFile, networkPolicyActive, authorizeNetwork;
|
|
95372
95422
|
var init_network_policy = __esm({
|
|
95373
95423
|
"src/host/network-policy.ts"() {
|
|
95374
95424
|
"use strict";
|
|
95375
95425
|
import_node_path114 = require("node:path");
|
|
95376
|
-
|
|
95426
|
+
import_node_url9 = require("node:url");
|
|
95377
95427
|
NETWORK_POLICY_TIMEOUT_MS = 1e4;
|
|
95378
95428
|
NetworkPolicyDeniedError = class extends Error {
|
|
95379
95429
|
code = "EPOLICY";
|
|
@@ -96330,11 +96380,11 @@ function looksBinary(filePath, size) {
|
|
|
96330
96380
|
if (fd !== void 0) import_node_fs114.default.closeSync(fd);
|
|
96331
96381
|
}
|
|
96332
96382
|
}
|
|
96333
|
-
var
|
|
96383
|
+
var import_node_child_process55, import_node_fs114, import_node_path116, CheckoutRequiresGitError, BINARY_SNIFF_BYTES, LIST_FILES_TIMEOUT_MS, LIST_FILES_ATTEMPTS, LIST_FILES_RETRY_MS, CheckoutFilePlane;
|
|
96334
96384
|
var init_checkout_plane = __esm({
|
|
96335
96385
|
"cli/commands/box/checkout-plane.ts"() {
|
|
96336
96386
|
"use strict";
|
|
96337
|
-
|
|
96387
|
+
import_node_child_process55 = require("node:child_process");
|
|
96338
96388
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
96339
96389
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
96340
96390
|
CheckoutRequiresGitError = class extends Error {
|
|
@@ -96362,7 +96412,7 @@ var init_checkout_plane = __esm({
|
|
|
96362
96412
|
}
|
|
96363
96413
|
listFiles() {
|
|
96364
96414
|
const args = this.trackedOnly ? ["ls-files", "-z"] : ["ls-files", "-co", "--exclude-standard", "-z"];
|
|
96365
|
-
const stdout = (0,
|
|
96415
|
+
const stdout = (0, import_node_child_process55.execFileSync)("git", args, {
|
|
96366
96416
|
cwd: this.root,
|
|
96367
96417
|
encoding: "utf8",
|
|
96368
96418
|
maxBuffer: 64 * 1024 * 1024,
|
|
@@ -97904,7 +97954,7 @@ async function resolveExpoAndroidAutolinking(appRoot) {
|
|
|
97904
97954
|
async function resolveAndroidModules(appRoot) {
|
|
97905
97955
|
let autolinker;
|
|
97906
97956
|
try {
|
|
97907
|
-
autolinker = (0,
|
|
97957
|
+
autolinker = (0, import_node_module21.createRequire)(import_node_path119.default.join(appRoot, "package.json")).resolve(
|
|
97908
97958
|
"expo-modules-autolinking/package.json"
|
|
97909
97959
|
);
|
|
97910
97960
|
} catch (error) {
|
|
@@ -97967,20 +98017,20 @@ async function resolveReactNativeAndroidAutolinking(appRoot) {
|
|
|
97967
98017
|
}
|
|
97968
98018
|
return linked;
|
|
97969
98019
|
}
|
|
97970
|
-
var
|
|
98020
|
+
var import_node_child_process56, import_node_fs117, import_node_module21, import_node_path119, import_node_util20, run9, resolving;
|
|
97971
98021
|
var init_android_autolinking = __esm({
|
|
97972
98022
|
"src/android-autolinking.ts"() {
|
|
97973
98023
|
"use strict";
|
|
97974
|
-
|
|
98024
|
+
import_node_child_process56 = require("node:child_process");
|
|
97975
98025
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
97976
|
-
|
|
98026
|
+
import_node_module21 = require("node:module");
|
|
97977
98027
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
97978
|
-
|
|
98028
|
+
import_node_util20 = require("node:util");
|
|
97979
98029
|
init_androidAutolinkingContract();
|
|
97980
98030
|
init_forked_script_contract();
|
|
97981
98031
|
init_is_record();
|
|
97982
98032
|
init_react_native_autolinking();
|
|
97983
|
-
run9 = (0,
|
|
98033
|
+
run9 = (0, import_node_util20.promisify)(import_node_child_process56.execFile);
|
|
97984
98034
|
resolving = /* @__PURE__ */ new Map();
|
|
97985
98035
|
}
|
|
97986
98036
|
});
|
|
@@ -98075,19 +98125,19 @@ async function resolveAndroidGradleSources(request) {
|
|
|
98075
98125
|
import_node_fs118.default.rmSync(work, { recursive: true, force: true });
|
|
98076
98126
|
}
|
|
98077
98127
|
}
|
|
98078
|
-
var
|
|
98128
|
+
var import_node_child_process57, import_node_crypto61, import_node_fs118, import_node_path120, import_node_util21, run10, modelQuery;
|
|
98079
98129
|
var init_android_gradle_sources = __esm({
|
|
98080
98130
|
"src/android-gradle-sources.ts"() {
|
|
98081
98131
|
"use strict";
|
|
98082
|
-
|
|
98132
|
+
import_node_child_process57 = require("node:child_process");
|
|
98083
98133
|
import_node_crypto61 = require("node:crypto");
|
|
98084
98134
|
import_node_fs118 = __toESM(require("node:fs"), 1);
|
|
98085
98135
|
import_node_path120 = __toESM(require("node:path"), 1);
|
|
98086
|
-
|
|
98136
|
+
import_node_util21 = require("node:util");
|
|
98087
98137
|
init_forked_script_contract();
|
|
98088
98138
|
init_is_record();
|
|
98089
98139
|
init_kotlin_toolchain();
|
|
98090
|
-
run10 = (0,
|
|
98140
|
+
run10 = (0, import_node_util21.promisify)(import_node_child_process57.execFile);
|
|
98091
98141
|
modelQuery = `
|
|
98092
98142
|
import groovy.json.JsonOutput
|
|
98093
98143
|
import groovy.json.JsonSlurper
|
|
@@ -98460,19 +98510,19 @@ async function compileJavaModuleAbi(input) {
|
|
|
98460
98510
|
);
|
|
98461
98511
|
return library;
|
|
98462
98512
|
}
|
|
98463
|
-
var
|
|
98513
|
+
var import_node_child_process58, import_node_crypto62, import_node_fs120, import_node_path122, import_node_util22, run11, JAVA_BINDINGS_INITIALIZER;
|
|
98464
98514
|
var init_java_module_abi = __esm({
|
|
98465
98515
|
"src/java-module-abi.ts"() {
|
|
98466
98516
|
"use strict";
|
|
98467
|
-
|
|
98517
|
+
import_node_child_process58 = require("node:child_process");
|
|
98468
98518
|
import_node_crypto62 = require("node:crypto");
|
|
98469
98519
|
import_node_fs120 = __toESM(require("node:fs"), 1);
|
|
98470
98520
|
import_node_path122 = __toESM(require("node:path"), 1);
|
|
98471
|
-
|
|
98521
|
+
import_node_util22 = require("node:util");
|
|
98472
98522
|
init_android_bridge_packages();
|
|
98473
98523
|
init_is_record();
|
|
98474
98524
|
init_kotlin_toolchain();
|
|
98475
|
-
run11 = (0,
|
|
98525
|
+
run11 = (0, import_node_util22.promisify)(import_node_child_process58.execFile);
|
|
98476
98526
|
JAVA_BINDINGS_INITIALIZER = "initializeJavaBindings";
|
|
98477
98527
|
}
|
|
98478
98528
|
});
|
|
@@ -98606,18 +98656,18 @@ async function installKotlinSdkArchive(archive, compilerSha256) {
|
|
|
98606
98656
|
import_node_fs121.default.rmSync(work, { recursive: true, force: true });
|
|
98607
98657
|
}
|
|
98608
98658
|
}
|
|
98609
|
-
var
|
|
98659
|
+
var import_node_child_process59, import_node_crypto63, import_node_fs121, import_node_path123, import_node_util23, run12;
|
|
98610
98660
|
var init_kotlin_sdk = __esm({
|
|
98611
98661
|
"src/kotlin-sdk.ts"() {
|
|
98612
98662
|
"use strict";
|
|
98613
|
-
|
|
98663
|
+
import_node_child_process59 = require("node:child_process");
|
|
98614
98664
|
import_node_crypto63 = require("node:crypto");
|
|
98615
98665
|
import_node_fs121 = __toESM(require("node:fs"), 1);
|
|
98616
98666
|
import_node_path123 = __toESM(require("node:path"), 1);
|
|
98617
|
-
|
|
98667
|
+
import_node_util23 = require("node:util");
|
|
98618
98668
|
init_kotlin_toolchain();
|
|
98619
98669
|
init_kotlinSdkContract();
|
|
98620
|
-
run12 = (0,
|
|
98670
|
+
run12 = (0, import_node_util23.promisify)(import_node_child_process59.execFile);
|
|
98621
98671
|
}
|
|
98622
98672
|
});
|
|
98623
98673
|
|
|
@@ -98712,7 +98762,7 @@ var init_android_bridge_dependencies = __esm({
|
|
|
98712
98762
|
// src/kotlin-module.ts
|
|
98713
98763
|
function peachKotlinModuleRoot() {
|
|
98714
98764
|
if (!IS_STANDALONE)
|
|
98715
|
-
return import_node_path125.default.resolve(import_node_path125.default.dirname((0,
|
|
98765
|
+
return import_node_path125.default.resolve(import_node_path125.default.dirname((0, import_node_url10.fileURLToPath)(__sootsim_import_meta_url)), "..", "kotlin");
|
|
98716
98766
|
if (installedRoot) return installedRoot;
|
|
98717
98767
|
const files2 = JSON.parse(__PEACH_BUNDLED_KOTLIN__);
|
|
98718
98768
|
const digest3 = (0, import_node_crypto64.createHash)("sha256").update(__PEACH_BUNDLED_KOTLIN__).digest("hex");
|
|
@@ -98744,14 +98794,14 @@ function peachKotlinModuleRoot() {
|
|
|
98744
98794
|
installedRoot = root;
|
|
98745
98795
|
return root;
|
|
98746
98796
|
}
|
|
98747
|
-
var import_node_crypto64, import_node_fs123, import_node_path125,
|
|
98797
|
+
var import_node_crypto64, import_node_fs123, import_node_path125, import_node_url10, installedRoot;
|
|
98748
98798
|
var init_kotlin_module = __esm({
|
|
98749
98799
|
"src/kotlin-module.ts"() {
|
|
98750
98800
|
"use strict";
|
|
98751
98801
|
import_node_crypto64 = require("node:crypto");
|
|
98752
98802
|
import_node_fs123 = __toESM(require("node:fs"), 1);
|
|
98753
98803
|
import_node_path125 = __toESM(require("node:path"), 1);
|
|
98754
|
-
|
|
98804
|
+
import_node_url10 = require("node:url");
|
|
98755
98805
|
init_standalone();
|
|
98756
98806
|
init_home_paths();
|
|
98757
98807
|
init_is_record();
|
|
@@ -99011,7 +99061,7 @@ function loadKotlinSdk(moduleRoot, toolchain) {
|
|
|
99011
99061
|
}
|
|
99012
99062
|
function appKotlinLanguage(root) {
|
|
99013
99063
|
const reactNative = import_node_path126.default.dirname(
|
|
99014
|
-
(0,
|
|
99064
|
+
(0, import_node_module22.createRequire)(import_node_path126.default.join(root, "package.json")).resolve("react-native/package.json")
|
|
99015
99065
|
);
|
|
99016
99066
|
const versions = import_node_fs124.default.readFileSync(
|
|
99017
99067
|
import_node_path126.default.join(reactNative, "gradle", "libs.versions.toml"),
|
|
@@ -100218,16 +100268,16 @@ async function serveKotlinRequest(pathname, res, app) {
|
|
|
100218
100268
|
}
|
|
100219
100269
|
return true;
|
|
100220
100270
|
}
|
|
100221
|
-
var
|
|
100271
|
+
var import_node_child_process60, import_node_crypto65, import_node_fs124, import_node_module22, import_node_path126, import_node_util24, import_acorn3, run13, KOTLIN_ARTIFACT_PREFIX, SKIP_DIRS, BUILD_FORMAT, builds, toolScans, BRIDGE_PARAMETERS, BRIDGE_CASTS, BRIDGE_RETURNS, bridgeType, JAVA_CLASSES, argb, escapes2, literal4, CONTENT_TYPES, KOTLIN_PACKAGE_PATH;
|
|
100222
100272
|
var init_kotlin_host = __esm({
|
|
100223
100273
|
"src/kotlin-host.ts"() {
|
|
100224
100274
|
"use strict";
|
|
100225
|
-
|
|
100275
|
+
import_node_child_process60 = require("node:child_process");
|
|
100226
100276
|
import_node_crypto65 = require("node:crypto");
|
|
100227
100277
|
import_node_fs124 = __toESM(require("node:fs"), 1);
|
|
100228
|
-
|
|
100278
|
+
import_node_module22 = require("node:module");
|
|
100229
100279
|
import_node_path126 = __toESM(require("node:path"), 1);
|
|
100230
|
-
|
|
100280
|
+
import_node_util24 = require("node:util");
|
|
100231
100281
|
import_acorn3 = require("acorn");
|
|
100232
100282
|
init_android_bridge_packages();
|
|
100233
100283
|
init_android_view_classes();
|
|
@@ -100238,7 +100288,7 @@ var init_kotlin_host = __esm({
|
|
|
100238
100288
|
init_kotlin_toolchain();
|
|
100239
100289
|
init_kotlin_view_models();
|
|
100240
100290
|
init_kotlin_module();
|
|
100241
|
-
run13 = (0,
|
|
100291
|
+
run13 = (0, import_node_util24.promisify)(import_node_child_process60.execFile);
|
|
100242
100292
|
KOTLIN_ARTIFACT_PREFIX = "/__peach/kotlin-artifact/";
|
|
100243
100293
|
SKIP_DIRS = /* @__PURE__ */ new Set([
|
|
100244
100294
|
"node_modules",
|
|
@@ -107518,7 +107568,7 @@ function pausedPids() {
|
|
|
107518
107568
|
}
|
|
107519
107569
|
function heldRoots(paused, roots) {
|
|
107520
107570
|
const parents = /* @__PURE__ */ new Map();
|
|
107521
|
-
for (const line of (0,
|
|
107571
|
+
for (const line of (0, import_node_child_process61.execFileSync)("ps", ["-A", "-o", "pid=,ppid="], {
|
|
107522
107572
|
encoding: "utf8"
|
|
107523
107573
|
}).split("\n")) {
|
|
107524
107574
|
const [pid, ppid] = line.trim().split(/\s+/).map(Number);
|
|
@@ -107580,11 +107630,11 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
|
107580
107630
|
schedule();
|
|
107581
107631
|
};
|
|
107582
107632
|
}
|
|
107583
|
-
var
|
|
107633
|
+
var import_node_child_process61, import_node_fs131, import_node_os22, import_node_path133, LEDGER_PATH2, TICK_MS2, timers, poll, pollDueAt;
|
|
107584
107634
|
var init_pause_aware_timeout = __esm({
|
|
107585
107635
|
"cli/pause-aware-timeout.ts"() {
|
|
107586
107636
|
"use strict";
|
|
107587
|
-
|
|
107637
|
+
import_node_child_process61 = require("node:child_process");
|
|
107588
107638
|
import_node_fs131 = require("node:fs");
|
|
107589
107639
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
107590
107640
|
import_node_path133 = __toESM(require("node:path"), 1);
|
|
@@ -109121,16 +109171,16 @@ function splashImageUrls(spec) {
|
|
|
109121
109171
|
if (spec.dark?.backgroundImageUrl) urls.add(spec.dark.backgroundImageUrl);
|
|
109122
109172
|
return [...urls];
|
|
109123
109173
|
}
|
|
109124
|
-
var
|
|
109174
|
+
var import_node_module23, require2;
|
|
109125
109175
|
var init_app_splash = __esm({
|
|
109126
109176
|
"cli/app-splash.ts"() {
|
|
109127
109177
|
"use strict";
|
|
109128
|
-
|
|
109178
|
+
import_node_module23 = require("node:module");
|
|
109129
109179
|
init_backend_origin();
|
|
109130
109180
|
init_cli_runtime();
|
|
109131
109181
|
init_native_firebase_config();
|
|
109132
109182
|
init_app_project();
|
|
109133
|
-
require2 = (0,
|
|
109183
|
+
require2 = (0, import_node_module23.createRequire)(__sootsim_import_meta_url);
|
|
109134
109184
|
}
|
|
109135
109185
|
});
|
|
109136
109186
|
|
|
@@ -109163,7 +109213,7 @@ function isAppBinaryPath(target) {
|
|
|
109163
109213
|
}
|
|
109164
109214
|
function extractAppBinaryBundle(binary2) {
|
|
109165
109215
|
const file = import_node_path137.default.resolve(binary2);
|
|
109166
|
-
const entries = (0,
|
|
109216
|
+
const entries = (0, import_node_child_process62.execFileSync)("unzip", ["-Z1", file], {
|
|
109167
109217
|
encoding: "utf8",
|
|
109168
109218
|
maxBuffer: 256 * 1024 * 1024
|
|
109169
109219
|
}).split("\n");
|
|
@@ -109189,7 +109239,7 @@ function extractAppBinaryBundle(binary2) {
|
|
|
109189
109239
|
const iosAssets = `${appRoot}/assets/`;
|
|
109190
109240
|
if (appRoot.startsWith("Payload/") && entries.some((entry) => entry.startsWith(iosAssets)))
|
|
109191
109241
|
patterns.push(`${iosAssets}*`);
|
|
109192
|
-
(0,
|
|
109242
|
+
(0, import_node_child_process62.execFileSync)("unzip", ["-q", "-o", file, ...patterns, "-d", extracted]);
|
|
109193
109243
|
const manifest = readPeachSidecarManifest(
|
|
109194
109244
|
JSON.parse(import_node_fs135.default.readFileSync(import_node_path137.default.join(extracted, manifestEntry), "utf8"))
|
|
109195
109245
|
);
|
|
@@ -109216,11 +109266,11 @@ function extractAppBinaryBundle(binary2) {
|
|
|
109216
109266
|
);
|
|
109217
109267
|
return { bundlePath, platform: platform2 };
|
|
109218
109268
|
}
|
|
109219
|
-
var
|
|
109269
|
+
var import_node_child_process62, import_node_crypto69, import_node_fs135, import_node_path137, import_node_zlib4;
|
|
109220
109270
|
var init_binary_sidecar = __esm({
|
|
109221
109271
|
"cli/binary-sidecar.ts"() {
|
|
109222
109272
|
"use strict";
|
|
109223
|
-
|
|
109273
|
+
import_node_child_process62 = require("node:child_process");
|
|
109224
109274
|
import_node_crypto69 = require("node:crypto");
|
|
109225
109275
|
import_node_fs135 = __toESM(require("node:fs"), 1);
|
|
109226
109276
|
import_node_path137 = __toESM(require("node:path"), 1);
|
|
@@ -110930,14 +110980,14 @@ function resolvePlaywright() {
|
|
|
110930
110980
|
roots.push(`${playwrightCoreDir(PINNED_PLAYWRIGHT_CORE.version)}/`);
|
|
110931
110981
|
for (const root of roots) {
|
|
110932
110982
|
try {
|
|
110933
|
-
const requireFromRoot = (0,
|
|
110983
|
+
const requireFromRoot = (0, import_node_module24.createRequire)(root);
|
|
110934
110984
|
for (const spec of ["playwright", "playwright-chromium", "playwright-core"]) {
|
|
110935
110985
|
try {
|
|
110936
110986
|
const modulePath = requireFromRoot.resolve(spec);
|
|
110937
110987
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
|
|
110938
110988
|
const parsed = JSON.parse((0, import_node_fs136.readFileSync)(packageJsonPath, "utf8"));
|
|
110939
110989
|
if (!isRecord(parsed) || typeof parsed.version !== "string") continue;
|
|
110940
|
-
const corePackagePath = (0,
|
|
110990
|
+
const corePackagePath = (0, import_node_module24.createRequire)(modulePath).resolve(
|
|
110941
110991
|
"playwright-core/package.json"
|
|
110942
110992
|
);
|
|
110943
110993
|
const cliPath = (0, import_node_path138.join)((0, import_node_path138.dirname)(corePackagePath), "cli.js");
|
|
@@ -111013,7 +111063,7 @@ function packageChromiumPath(resolved, env) {
|
|
|
111013
111063
|
const cached4 = known[key2];
|
|
111014
111064
|
if (cached4) return { ok: true, path: cached4 };
|
|
111015
111065
|
const self = rnxSelfInvocation();
|
|
111016
|
-
const probe2 = (0,
|
|
111066
|
+
const probe2 = (0, import_node_child_process63.spawnSync)(
|
|
111017
111067
|
self.executable,
|
|
111018
111068
|
[...self.prefixArgs, RNX_INTERNAL_COMMAND, RNX_INTERNAL_CHILDREN.playwrightProbe],
|
|
111019
111069
|
{
|
|
@@ -111118,7 +111168,7 @@ async function ensurePlaywrightBrowser(resolved, headless, env = process.env) {
|
|
|
111118
111168
|
};
|
|
111119
111169
|
}
|
|
111120
111170
|
const installer = rnxSelfInvocation();
|
|
111121
|
-
const install = (0,
|
|
111171
|
+
const install = (0, import_node_child_process63.spawnSync)(
|
|
111122
111172
|
installer.executable,
|
|
111123
111173
|
[
|
|
111124
111174
|
...installer.prefixArgs,
|
|
@@ -111165,7 +111215,7 @@ async function launchProvisionedPlaywright() {
|
|
|
111165
111215
|
const env = { ...process.env };
|
|
111166
111216
|
const browser = await ensurePlaywrightBrowser(resolved, softwareChromeAllowed(), env);
|
|
111167
111217
|
if (!browser.ok) throw new Error(browser.message);
|
|
111168
|
-
const playwright = (0,
|
|
111218
|
+
const playwright = (0, import_node_module24.createRequire)(resolved.modulePath)(
|
|
111169
111219
|
resolved.modulePath
|
|
111170
111220
|
);
|
|
111171
111221
|
const browserEnv = browser.libraryPath ? {
|
|
@@ -111177,13 +111227,13 @@ async function launchProvisionedPlaywright() {
|
|
|
111177
111227
|
{ headless: true }
|
|
111178
111228
|
);
|
|
111179
111229
|
}
|
|
111180
|
-
var
|
|
111230
|
+
var import_node_child_process63, import_node_fs136, import_node_module24, import_node_path138, CHROMIUM_PATHS_KEPT;
|
|
111181
111231
|
var init_playwright_provisioning = __esm({
|
|
111182
111232
|
"cli/drivers/playwright-provisioning.ts"() {
|
|
111183
111233
|
"use strict";
|
|
111184
|
-
|
|
111234
|
+
import_node_child_process63 = require("node:child_process");
|
|
111185
111235
|
import_node_fs136 = require("node:fs");
|
|
111186
|
-
|
|
111236
|
+
import_node_module24 = require("node:module");
|
|
111187
111237
|
import_node_path138 = require("node:path");
|
|
111188
111238
|
init_src();
|
|
111189
111239
|
init_home_paths();
|
|
@@ -116851,7 +116901,7 @@ var init_material_symbol_fonts = __esm({
|
|
|
116851
116901
|
|
|
116852
116902
|
// cli/material-symbol-fonts.ts
|
|
116853
116903
|
function materialSymbolFontPaths(appDir) {
|
|
116854
|
-
const appRequire = (0,
|
|
116904
|
+
const appRequire = (0, import_node_module25.createRequire)(import_node_path141.default.join(appDir, "package.json"));
|
|
116855
116905
|
let nativeManifest;
|
|
116856
116906
|
try {
|
|
116857
116907
|
nativeManifest = appRequire.resolve("@react-navigation/native/package.json");
|
|
@@ -116862,7 +116912,7 @@ function materialSymbolFontPaths(appDir) {
|
|
|
116862
116912
|
const dependencies = nativePackage && typeof nativePackage === "object" ? Reflect.get(nativePackage, "dependencies") : null;
|
|
116863
116913
|
if (!dependencies || typeof dependencies !== "object" || !Reflect.has(dependencies, "@react-navigation/material-symbols"))
|
|
116864
116914
|
return [];
|
|
116865
|
-
const nativeRequire = (0,
|
|
116915
|
+
const nativeRequire = (0, import_node_module25.createRequire)(nativeManifest);
|
|
116866
116916
|
const symbolsDir = import_node_path141.default.dirname(
|
|
116867
116917
|
nativeRequire.resolve("@react-navigation/material-symbols/package.json")
|
|
116868
116918
|
);
|
|
@@ -116897,13 +116947,13 @@ function materialSymbolFontAssets(fontPaths) {
|
|
|
116897
116947
|
mirroredPath: mirroredFile
|
|
116898
116948
|
};
|
|
116899
116949
|
}
|
|
116900
|
-
var import_node_crypto73, import_node_fs139,
|
|
116950
|
+
var import_node_crypto73, import_node_fs139, import_node_module25, import_node_path141;
|
|
116901
116951
|
var init_material_symbol_fonts2 = __esm({
|
|
116902
116952
|
"cli/material-symbol-fonts.ts"() {
|
|
116903
116953
|
"use strict";
|
|
116904
116954
|
import_node_crypto73 = require("node:crypto");
|
|
116905
116955
|
import_node_fs139 = __toESM(require("node:fs"), 1);
|
|
116906
|
-
|
|
116956
|
+
import_node_module25 = require("node:module");
|
|
116907
116957
|
import_node_path141 = __toESM(require("node:path"), 1);
|
|
116908
116958
|
init_material_symbol_fonts();
|
|
116909
116959
|
}
|
|
@@ -116952,7 +117002,7 @@ function resolveDeclaredFontPath(appDir, declared) {
|
|
|
116952
117002
|
let resolved = import_node_path142.default.resolve(appDir, declared);
|
|
116953
117003
|
if (!import_node_fs140.default.existsSync(resolved)) {
|
|
116954
117004
|
try {
|
|
116955
|
-
resolved = (0,
|
|
117005
|
+
resolved = (0, import_node_module26.createRequire)(import_node_path142.default.join(appDir, "package.json")).resolve(declared);
|
|
116956
117006
|
} catch {
|
|
116957
117007
|
return [];
|
|
116958
117008
|
}
|
|
@@ -117048,7 +117098,7 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
117048
117098
|
if (!relativeRoot.startsWith("..") && !import_node_path142.default.isAbsolute(relativeRoot)) {
|
|
117049
117099
|
collectFontFiles(root);
|
|
117050
117100
|
}
|
|
117051
|
-
const vectorIconRequire = (0,
|
|
117101
|
+
const vectorIconRequire = (0, import_node_module26.createRequire)(import_node_path142.default.join(selectedAppDir, "package.json"));
|
|
117052
117102
|
for (const dependencyName of vectorIconDependencies) {
|
|
117053
117103
|
try {
|
|
117054
117104
|
const entryPath = vectorIconRequire.resolve(dependencyName);
|
|
@@ -117068,7 +117118,7 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
117068
117118
|
try {
|
|
117069
117119
|
const configPath = import_node_path142.default.join(selectedAppDir, "react-native.config.js");
|
|
117070
117120
|
if (import_node_fs140.default.statSync(configPath).isFile()) {
|
|
117071
|
-
const appConfigRequire = (0,
|
|
117121
|
+
const appConfigRequire = (0, import_node_module26.createRequire)(import_node_path142.default.join(selectedAppDir, "package.json"));
|
|
117072
117122
|
const rnConfig = appConfigRequire(configPath);
|
|
117073
117123
|
const assets2 = rnConfig && typeof rnConfig === "object" ? Reflect.get(rnConfig, "assets") : null;
|
|
117074
117124
|
if (Array.isArray(assets2)) {
|
|
@@ -117140,12 +117190,12 @@ function discoverNativeLinkedAppFontAssets(opts) {
|
|
|
117140
117190
|
materialSymbols: materialSymbolFontAssets(materialFonts)
|
|
117141
117191
|
};
|
|
117142
117192
|
}
|
|
117143
|
-
var import_node_fs140,
|
|
117193
|
+
var import_node_fs140, import_node_module26, import_node_path142, require3;
|
|
117144
117194
|
var init_app_fonts = __esm({
|
|
117145
117195
|
"cli/app-fonts.ts"() {
|
|
117146
117196
|
"use strict";
|
|
117147
117197
|
import_node_fs140 = __toESM(require("node:fs"), 1);
|
|
117148
|
-
|
|
117198
|
+
import_node_module26 = require("node:module");
|
|
117149
117199
|
import_node_path142 = __toESM(require("node:path"), 1);
|
|
117150
117200
|
init_cli_runtime();
|
|
117151
117201
|
init_staged_host_files();
|
|
@@ -117154,7 +117204,7 @@ var init_app_fonts = __esm({
|
|
|
117154
117204
|
init_xcode_project();
|
|
117155
117205
|
init_app_project();
|
|
117156
117206
|
init_material_symbol_fonts2();
|
|
117157
|
-
require3 = (0,
|
|
117207
|
+
require3 = (0, import_node_module26.createRequire)(__sootsim_import_meta_url);
|
|
117158
117208
|
}
|
|
117159
117209
|
});
|
|
117160
117210
|
|
|
@@ -117405,8 +117455,8 @@ async function stampAppSplash(urlStr, project2, oneAppSplash) {
|
|
|
117405
117455
|
async function stampAppCatalog(urlStr, assetOrigin, project2) {
|
|
117406
117456
|
const url = new URL(urlStr);
|
|
117407
117457
|
const metroOrigin = loopbackOriginOf(url.searchParams.get("bundle") ?? "");
|
|
117408
|
-
if (!
|
|
117409
|
-
const catalog = await discoverAppCatalog(project2.appDir, assetOrigin) ?? await discoverOneNativeAppCatalog(metroOrigin, assetOrigin);
|
|
117458
|
+
if (!project2) return urlStr;
|
|
117459
|
+
const catalog = await discoverAppCatalog(project2.appDir, assetOrigin) ?? (metroOrigin ? await discoverOneNativeAppCatalog(metroOrigin, assetOrigin) : await discoverProjectOneNativeAppCatalog(project2.appDir, assetOrigin));
|
|
117410
117460
|
if (!catalog) return urlStr;
|
|
117411
117461
|
url.searchParams.set(
|
|
117412
117462
|
"appCatalog",
|
|
@@ -132457,7 +132507,7 @@ async function connectBridgeForOpen(preferredPort, explicitPort, resources, runt
|
|
|
132457
132507
|
const bridgeLogFd = import_node_fs154.default.openSync(bridgeLogPath, "a");
|
|
132458
132508
|
let child;
|
|
132459
132509
|
try {
|
|
132460
|
-
child = (0,
|
|
132510
|
+
child = (0, import_node_child_process64.spawn)(
|
|
132461
132511
|
executable,
|
|
132462
132512
|
[...prefixArgs, "serve", "--quiet", "--port", String(preferredPort)],
|
|
132463
132513
|
{
|
|
@@ -132953,11 +133003,11 @@ function isPlaywrightHostProcess(pid) {
|
|
|
132953
133003
|
return false;
|
|
132954
133004
|
}
|
|
132955
133005
|
}
|
|
132956
|
-
const plain = (0,
|
|
133006
|
+
const plain = (0, import_node_child_process64.spawnSync)("ps", ["-o", "command=", "-p", String(pid)], {
|
|
132957
133007
|
encoding: "utf8",
|
|
132958
133008
|
stdio: ["ignore", "pipe", "pipe"]
|
|
132959
133009
|
});
|
|
132960
|
-
const withEnv = (0,
|
|
133010
|
+
const withEnv = (0, import_node_child_process64.spawnSync)("ps", ["eww", "-o", "command=", "-p", String(pid)], {
|
|
132961
133011
|
encoding: "utf8",
|
|
132962
133012
|
stdio: ["ignore", "pipe", "pipe"]
|
|
132963
133013
|
});
|
|
@@ -134278,11 +134328,11 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
134278
134328
|
bridge.close();
|
|
134279
134329
|
}
|
|
134280
134330
|
}
|
|
134281
|
-
var
|
|
134331
|
+
var import_node_child_process64, import_node_fs154, import_node_http5, import_node_https2, import_node_net, import_node_os26, import_node_path156, import_ws7, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, OPEN_BRIDGE_RUNTIME_TIMEOUT_MS, OPEN_BRIDGE_HEALTH_TIMEOUT_MS, OPEN_BRIDGE_SILENCE_MS, LIVE_BRIDGE_HANDSHAKE_TIMEOUT_MS;
|
|
134282
134332
|
var init_control = __esm({
|
|
134283
134333
|
"cli/commands/control.ts"() {
|
|
134284
134334
|
"use strict";
|
|
134285
|
-
|
|
134335
|
+
import_node_child_process64 = require("node:child_process");
|
|
134286
134336
|
import_node_fs154 = __toESM(require("node:fs"), 1);
|
|
134287
134337
|
import_node_http5 = __toESM(require("node:http"), 1);
|
|
134288
134338
|
import_node_https2 = __toESM(require("node:https"), 1);
|