peachsim 0.1.2481 → 0.1.2482
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/inspect.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 +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +2578 -2595
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-FYDDLFH7.mjs → acorn-3RG2YV22.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-DOTVMR2R.mjs → chunk-5VLHG64M.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-CIRF7MUH.mjs → chunk-7I4VWI2V.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MYAC4QOH.mjs → chunk-CEQOCRNV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6ALMBFOB.mjs → chunk-D5LOEF4I.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-3AHKFCTP.mjs → chunk-DJKPHL72.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XVGPPYRC.mjs → chunk-DYN7524Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-OMWELJZM.mjs → chunk-FKS6QFGF.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-DILJLCVN.mjs → chunk-GVLSR652.mjs} +12 -12
- package/dist-lib/esm-chunks/{chunk-VGOJCWU3.mjs → chunk-JNQJMRSO.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZNG6GMUS.mjs → chunk-MDEXPYPS.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-V27M6XEI.mjs → chunk-NFRYA23T.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-DR66BWZR.mjs → chunk-RUKQSGNO.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-56VSEMVW.mjs → chunk-V7WDCR3N.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YBJYSS46.mjs → chunk-WC3CBCQF.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-MTWECGVY.mjs → chunk-WJCPHHTA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-RRHGYD5I.mjs → chunk-WPW4V4XH.mjs} +2 -2
- package/dist-lib/esm-chunks/{chunk-IKMY4F25.mjs → chunk-YC2PEM6U.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HK2YIUS3.mjs → chunk-YOKV3RRM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-YY4T7YSR.mjs → chunk-YSTOPLNH.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-55FEZERB.mjs → chunk-Z2NSDMD7.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-I2KV5OCI.mjs → chunk-ZXAHJ6YC.mjs} +1 -1
- package/dist-lib/esm-chunks/{metro-layout-parser-EEI7OVUC.mjs → metro-layout-parser-OPFP36W3.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-V5QMDVKG.mjs → swift-package-prebuilt-S7ECXF7I.mjs} +10 -10
- package/dist-lib/esm-chunks/{swift-sdk-app-module-QEWCSQWL.mjs → swift-sdk-app-module-7WOLAFJ6.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-XH4JSUEA.mjs → swift-sdk-image-WDWMRJ76.mjs} +13 -13
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-HQJ5Z6TE.mjs → swift-sdk-image-producer-ZXAKVKXN.mjs} +4 -4
- package/dist-lib/expo-swift-bundle.cjs +219 -230
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +391 -445
- package/dist-lib/host/fetch-proxy-handler.cjs +170 -340
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +79 -79
- package/dist-lib/public-origins-lib.json +77 -77
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- 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 +7 -7
- package/dist-lib/skills.cjs +445 -495
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +10 -10
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +5 -5
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/@xmldom/xmldom.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/bplist-parser.cjs +1 -1
- package/dist-lib/vendor/ignore.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/plist.cjs +1 -1
- package/dist-lib/vendor/smol-toml.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/dist-types/packages/peach-engine/core-abi/style/style-schema.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +2 -2
- package/package.json +1 -1
- package/src/expo-swift-host.ts +17 -35
- package/src/expo-widgets-bundle.ts +6 -4
- package/src/host/bridge-host.ts +4 -25
- package/src/native-preparation.ts +112 -120
- package/src/nitro-bundle.ts +26 -35
- package/src/one-sdk-bundle.ts +1 -0
- package/src/turbo-bundle.ts +5 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2482 | (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;
|
|
@@ -995,7 +995,7 @@ var init_swift_standin_digest = __esm({
|
|
|
995
995
|
|
|
996
996
|
// src/expo-native-compiler-digest.ts
|
|
997
997
|
function expoNativeCompilerDigestValue() {
|
|
998
|
-
return true ? "
|
|
998
|
+
return true ? "12aee4ee3bd89c1730fb89a657de22e7caf0a3e86af4e562a1a0238a7e3b38e6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
999
999
|
}
|
|
1000
1000
|
var import_node_crypto6;
|
|
1001
1001
|
var init_expo_native_compiler_digest = __esm({
|
|
@@ -8506,76 +8506,7 @@ var init_admitted_mac_build = __esm({
|
|
|
8506
8506
|
});
|
|
8507
8507
|
|
|
8508
8508
|
// src/expo-workspace-exclusion.ts
|
|
8509
|
-
|
|
8510
|
-
const listed = await (0, import_node_util4.promisify)(import_node_child_process15.execFile)(
|
|
8511
|
-
"git",
|
|
8512
|
-
["ls-files", "-z", "--others", "--ignored", "--exclude-standard", "--directory"],
|
|
8513
|
-
{
|
|
8514
|
-
cwd: root,
|
|
8515
|
-
encoding: "utf8",
|
|
8516
|
-
maxBuffer: 256 * 1024 * 1024,
|
|
8517
|
-
env: gitEnvironment()
|
|
8518
|
-
}
|
|
8519
|
-
).catch(() => ({ stdout: "" }));
|
|
8520
|
-
const ignored = new Set(
|
|
8521
|
-
listed.stdout.split("\0").filter(Boolean).map((entry) => entry.replace(/\/$/, ""))
|
|
8522
|
-
);
|
|
8523
|
-
const tracked = /* @__PURE__ */ new Set();
|
|
8524
|
-
if (portable) {
|
|
8525
|
-
const cached = await (0, import_node_util4.promisify)(import_node_child_process15.execFile)("git", ["ls-files", "-z", "--cached"], {
|
|
8526
|
-
cwd: root,
|
|
8527
|
-
encoding: "utf8",
|
|
8528
|
-
maxBuffer: 256 * 1024 * 1024,
|
|
8529
|
-
env: gitEnvironment()
|
|
8530
|
-
}).catch(() => ({ stdout: "" }));
|
|
8531
|
-
for (const entry of cached.stdout.split("\0").filter(Boolean)) {
|
|
8532
|
-
const parts = entry.split("/");
|
|
8533
|
-
for (let index = 1; index <= parts.length; index++)
|
|
8534
|
-
tracked.add(parts.slice(0, index).join(import_node_path34.default.sep));
|
|
8535
|
-
}
|
|
8536
|
-
}
|
|
8537
|
-
const ignoredByRules = gitignoreRules(root);
|
|
8538
|
-
return (relative3, knownDirectory) => {
|
|
8539
|
-
const parts = relative3.split(import_node_path34.default.sep);
|
|
8540
|
-
const linked = linkedPackages.some(
|
|
8541
|
-
(directory) => relative3.startsWith(directory + import_node_path34.default.sep)
|
|
8542
|
-
);
|
|
8543
|
-
if (linked) {
|
|
8544
|
-
return ["node_modules", ".git", ".expo", ".one"].some(
|
|
8545
|
-
(name2) => parts.includes(name2)
|
|
8546
|
-
);
|
|
8547
|
-
}
|
|
8548
|
-
if (portable && relative3 && !tracked.has(relative3) && ignoredByRules(
|
|
8549
|
-
relative3,
|
|
8550
|
-
knownDirectory ?? import_node_fs33.default.lstatSync(import_node_path34.default.join(root, relative3)).isDirectory()
|
|
8551
|
-
))
|
|
8552
|
-
return true;
|
|
8553
|
-
return ignored.has(parts.join("/")) && !tracked.has(relative3) || parts.includes("node_modules") || parts.includes(".git") || parts.includes(".expo") || parts.includes(".one") || parts.includes("ios") && (parts.includes("Pods") || parts.includes("build"));
|
|
8554
|
-
};
|
|
8555
|
-
}
|
|
8556
|
-
function gitignoreRules(root) {
|
|
8557
|
-
const ignoreFiles = /* @__PURE__ */ new Map();
|
|
8558
|
-
return (relative3, isDirectory) => {
|
|
8559
|
-
const parts = relative3.split(import_node_path34.default.sep);
|
|
8560
|
-
let excluded = false;
|
|
8561
|
-
for (let index = 0; index < parts.length; index++) {
|
|
8562
|
-
const directory = parts.slice(0, index).join(import_node_path34.default.sep);
|
|
8563
|
-
let rules2 = ignoreFiles.get(directory);
|
|
8564
|
-
if (rules2 === void 0) {
|
|
8565
|
-
const file = import_node_path34.default.join(root, directory, ".gitignore");
|
|
8566
|
-
rules2 = import_node_fs33.default.existsSync(file) ? (0, import_ignore.default)().add(import_node_fs33.default.readFileSync(file, "utf8")) : null;
|
|
8567
|
-
ignoreFiles.set(directory, rules2);
|
|
8568
|
-
}
|
|
8569
|
-
if (!rules2) continue;
|
|
8570
|
-
const item = parts.slice(index).join("/");
|
|
8571
|
-
const result = rules2.test(isDirectory ? `${item}/` : item);
|
|
8572
|
-
if (result.ignored) excluded = true;
|
|
8573
|
-
else if (result.unignored) excluded = false;
|
|
8574
|
-
}
|
|
8575
|
-
return excluded;
|
|
8576
|
-
};
|
|
8577
|
-
}
|
|
8578
|
-
var import_node_child_process15, import_node_fs33, import_node_path34, import_node_util4, import_ignore, gitEnvironment;
|
|
8509
|
+
var import_node_child_process15, import_node_fs33, import_node_path34, import_node_util4, import_ignore;
|
|
8579
8510
|
var init_expo_workspace_exclusion = __esm({
|
|
8580
8511
|
"src/expo-workspace-exclusion.ts"() {
|
|
8581
8512
|
"use strict";
|
|
@@ -8584,11 +8515,6 @@ var init_expo_workspace_exclusion = __esm({
|
|
|
8584
8515
|
import_node_path34 = __toESM(require("node:path"), 1);
|
|
8585
8516
|
import_node_util4 = require("node:util");
|
|
8586
8517
|
import_ignore = __toESM(require("peachsim/vendor/ignore"), 1);
|
|
8587
|
-
gitEnvironment = () => ({
|
|
8588
|
-
...process.env,
|
|
8589
|
-
GIT_CONFIG_GLOBAL: "/dev/null",
|
|
8590
|
-
GIT_CONFIG_SYSTEM: "/dev/null"
|
|
8591
|
-
});
|
|
8592
8518
|
}
|
|
8593
8519
|
});
|
|
8594
8520
|
|
|
@@ -14872,74 +14798,7 @@ var init_native_app_identity_project = __esm({
|
|
|
14872
14798
|
});
|
|
14873
14799
|
|
|
14874
14800
|
// src/native-firebase-config.ts
|
|
14875
|
-
|
|
14876
|
-
const packagePath = import_node_path90.default.join(projectRoot, "package.json");
|
|
14877
|
-
const manifest = import_node_fs87.default.existsSync(packagePath) ? JSON.parse(import_node_fs87.default.readFileSync(packagePath, "utf8")) : null;
|
|
14878
|
-
if (isRecord(manifest)) {
|
|
14879
|
-
const dependencies = [manifest.dependencies, manifest.devDependencies].filter(
|
|
14880
|
-
isRecord
|
|
14881
|
-
);
|
|
14882
|
-
if (dependencies.some((deps) => "one" in deps) && !dependencies.some((deps) => "expo" in deps))
|
|
14883
|
-
return false;
|
|
14884
|
-
}
|
|
14885
|
-
const appJsonPath = import_node_path90.default.join(projectRoot, "app.json");
|
|
14886
|
-
const appJson = import_node_fs87.default.existsSync(appJsonPath) ? JSON.parse(import_node_fs87.default.readFileSync(appJsonPath, "utf8")) : null;
|
|
14887
|
-
const staticExpo = isRecord(appJson) && (isRecord(appJson.expo) || [appJson.ios, appJson.android].some(
|
|
14888
|
-
(value) => isRecord(value) && typeof value.googleServicesFile === "string"
|
|
14889
|
-
));
|
|
14890
|
-
return staticExpo || ["app.config.js", "app.config.ts", "app.config.cjs", "app.config.mjs"].some(
|
|
14891
|
-
(name2) => import_node_fs87.default.existsSync(import_node_path90.default.join(projectRoot, name2))
|
|
14892
|
-
);
|
|
14893
|
-
}
|
|
14894
|
-
function expoConfigArgs(projectRoot, resultPath) {
|
|
14895
|
-
return [
|
|
14896
|
-
"--input-type=commonjs",
|
|
14897
|
-
"-e",
|
|
14898
|
-
EXPO_CONFIG_SCRIPT,
|
|
14899
|
-
import_node_path90.default.resolve(projectRoot),
|
|
14900
|
-
resultPath
|
|
14901
|
-
];
|
|
14902
|
-
}
|
|
14903
|
-
function readExpoConfigResult(resultPath, status, signal, stderr) {
|
|
14904
|
-
if (signal === "SIGTERM")
|
|
14905
|
-
throw new Error(
|
|
14906
|
-
`Expo native configuration evaluation did not finish within ${EXPO_CONFIG_TIMEOUT_MS / 1e3}s.`
|
|
14907
|
-
);
|
|
14908
|
-
if (status !== 0)
|
|
14909
|
-
throw new Error(
|
|
14910
|
-
stderr || (signal ? `Expo native configuration evaluation was killed by ${signal}.` : "Expo native configuration evaluation failed.")
|
|
14911
|
-
);
|
|
14912
|
-
const resolved = JSON.parse(import_node_fs87.default.readFileSync(resultPath, "utf8"));
|
|
14913
|
-
if (!isRecord(resolved)) throw new Error("Expo native configuration is unavailable.");
|
|
14914
|
-
return resolved;
|
|
14915
|
-
}
|
|
14916
|
-
async function readExpoConfigAsync(projectRoot) {
|
|
14917
|
-
if (!hasExpoConfig(projectRoot)) return {};
|
|
14918
|
-
const directory = resultDirectory();
|
|
14919
|
-
const resultPath = import_node_path90.default.join(directory, "config.json");
|
|
14920
|
-
try {
|
|
14921
|
-
const child = (0, import_node_child_process42.spawn)("node", expoConfigArgs(projectRoot, resultPath), {
|
|
14922
|
-
cwd: projectRoot,
|
|
14923
|
-
stdio: ["ignore", "ignore", "pipe"],
|
|
14924
|
-
timeout: EXPO_CONFIG_TIMEOUT_MS
|
|
14925
|
-
});
|
|
14926
|
-
let stderr = "";
|
|
14927
|
-
child.stderr.setEncoding("utf8");
|
|
14928
|
-
child.stderr.on("data", (chunk) => {
|
|
14929
|
-
stderr += chunk;
|
|
14930
|
-
});
|
|
14931
|
-
const [status, signal] = await new Promise(
|
|
14932
|
-
(resolve3, reject) => {
|
|
14933
|
-
child.once("error", reject);
|
|
14934
|
-
child.once("close", (code, closeSignal) => resolve3([code, closeSignal]));
|
|
14935
|
-
}
|
|
14936
|
-
);
|
|
14937
|
-
return readExpoConfigResult(resultPath, status, signal, stderr);
|
|
14938
|
-
} finally {
|
|
14939
|
-
import_node_fs87.default.rmSync(directory, { recursive: true, force: true });
|
|
14940
|
-
}
|
|
14941
|
-
}
|
|
14942
|
-
var import_node_child_process42, import_node_fs87, import_node_module11, import_node_os19, import_node_path90, EXPO_CONFIG_SCRIPT, EXPO_CONFIG_TIMEOUT_MS, resultDirectory;
|
|
14801
|
+
var import_node_child_process42, import_node_fs87, import_node_module11, import_node_os19, import_node_path90;
|
|
14943
14802
|
var init_native_firebase_config = __esm({
|
|
14944
14803
|
"src/native-firebase-config.ts"() {
|
|
14945
14804
|
"use strict";
|
|
@@ -14951,24 +14810,6 @@ var init_native_firebase_config = __esm({
|
|
|
14951
14810
|
init_is_record();
|
|
14952
14811
|
init_plist();
|
|
14953
14812
|
init_xcode_project();
|
|
14954
|
-
EXPO_CONFIG_SCRIPT = `const { createRequire } = require('node:module');
|
|
14955
|
-
const { writeFileSync } = require('node:fs');
|
|
14956
|
-
const { join } = require('node:path');
|
|
14957
|
-
const root = process.argv[1];
|
|
14958
|
-
const projectRequire = createRequire(join(root, 'package.json'));
|
|
14959
|
-
const expoRequire = createRequire(projectRequire.resolve('expo/package.json'));
|
|
14960
|
-
const { getConfig } = expoRequire('@expo/config');
|
|
14961
|
-
let expoEnv = null;
|
|
14962
|
-
try { expoEnv = createRequire(expoRequire.resolve('@expo/cli/package.json'))('@expo/env'); } catch {}
|
|
14963
|
-
if (expoEnv) {
|
|
14964
|
-
process.env.NODE_ENV ||= 'development';
|
|
14965
|
-
expoEnv.load(root, { silent: true });
|
|
14966
|
-
}
|
|
14967
|
-
const result = JSON.stringify(getConfig(root, { skipSDKVersionRequirement: true }).exp);
|
|
14968
|
-
if (Buffer.byteLength(result) > 1024 * 1024) throw new Error('Expo native configuration exceeds 1 MiB.');
|
|
14969
|
-
writeFileSync(process.argv[2], result, { mode: 0o600 });`;
|
|
14970
|
-
EXPO_CONFIG_TIMEOUT_MS = 3e4;
|
|
14971
|
-
resultDirectory = () => import_node_fs87.default.mkdtempSync(import_node_path90.default.join(import_node_os19.default.tmpdir(), "peach-expo-config-"));
|
|
14972
14813
|
}
|
|
14973
14814
|
});
|
|
14974
14815
|
|
|
@@ -15052,137 +14893,134 @@ var init_expo_native_prebuilt = __esm({
|
|
|
15052
14893
|
}
|
|
15053
14894
|
});
|
|
15054
14895
|
|
|
14896
|
+
// src/nativePreparationContract.ts
|
|
14897
|
+
var NATIVE_PREPARE_QUERY_PARAM, NATIVE_PREPARED_QUERY_PARAM;
|
|
14898
|
+
var init_nativePreparationContract = __esm({
|
|
14899
|
+
"src/nativePreparationContract.ts"() {
|
|
14900
|
+
"use strict";
|
|
14901
|
+
NATIVE_PREPARE_QUERY_PARAM = "prepare";
|
|
14902
|
+
NATIVE_PREPARED_QUERY_PARAM = "prepared";
|
|
14903
|
+
}
|
|
14904
|
+
});
|
|
14905
|
+
|
|
15055
14906
|
// src/native-preparation.ts
|
|
15056
|
-
function
|
|
15057
|
-
const
|
|
15058
|
-
|
|
15059
|
-
|
|
15060
|
-
revision = nativeInputRevision(app).catch(() => null);
|
|
15061
|
-
openRevisions.set(key, revision);
|
|
15062
|
-
setTimeoutNode(() => openRevisions.delete(key), OPEN_RECEIPT_MS).unref();
|
|
15063
|
-
}
|
|
15064
|
-
return revision;
|
|
15065
|
-
}
|
|
15066
|
-
async function nativeInputRevision(app) {
|
|
15067
|
-
const root = findWorkspaceRoot(app);
|
|
15068
|
-
const [excluded, config] = await Promise.all([
|
|
15069
|
-
workspaceExclusion(root),
|
|
15070
|
-
readExpoConfigAsync(app)
|
|
15071
|
-
]);
|
|
15072
|
-
const require2 = (0, import_node_module13.createRequire)(import_node_path93.default.join(app, "package.json"));
|
|
15073
|
-
let widgetsOutput;
|
|
15074
|
-
try {
|
|
15075
|
-
widgetsOutput = import_node_path93.default.join(
|
|
15076
|
-
import_node_path93.default.dirname(require2.resolve("expo-widgets/package.json")),
|
|
15077
|
-
"bundle",
|
|
15078
|
-
"build"
|
|
15079
|
-
);
|
|
15080
|
-
} catch (error) {
|
|
15081
|
-
if (!(error instanceof Error && "code" in error && error.code === "MODULE_NOT_FOUND"))
|
|
15082
|
-
throw error;
|
|
15083
|
-
}
|
|
15084
|
-
const hash = (0, import_node_crypto54.createHash)("sha256");
|
|
15085
|
-
hash.update(
|
|
15086
|
-
JSON.stringify([
|
|
15087
|
-
config,
|
|
15088
|
-
resolveActiveRuntimeRoot(),
|
|
15089
|
-
resolveDevCheckoutRuntimeAssetRoot()
|
|
15090
|
-
])
|
|
14907
|
+
function ignoredChange(relative3) {
|
|
14908
|
+
const parts = relative3.split(import_node_path93.default.sep);
|
|
14909
|
+
return relative3 === import_node_path93.default.join(".git", "index") || parts.includes(".cache") || parts.includes(".expo") || /(?:^|[\\/])node_modules[\\/]expo-widgets[\\/]bundle[\\/]build(?:[\\/]|$)/.test(
|
|
14910
|
+
relative3
|
|
15091
14911
|
);
|
|
14912
|
+
}
|
|
14913
|
+
function watchNativeInputs(root) {
|
|
14914
|
+
const workspace = findWorkspaceRoot(root);
|
|
14915
|
+
const existing = watchedInputs.get(workspace);
|
|
14916
|
+
if (existing) {
|
|
14917
|
+
existing.expiry.refresh();
|
|
14918
|
+
return existing;
|
|
14919
|
+
}
|
|
14920
|
+
const watchers = [];
|
|
15092
14921
|
const visited = /* @__PURE__ */ new Set();
|
|
15093
|
-
const
|
|
15094
|
-
|
|
15095
|
-
|
|
15096
|
-
|
|
15097
|
-
|
|
14922
|
+
const expiry = setTimeoutNode(close, RETENTION_MS);
|
|
14923
|
+
expiry.unref();
|
|
14924
|
+
function close() {
|
|
14925
|
+
if (watchedInputs.get(workspace) === inputs2) watchedInputs.delete(workspace);
|
|
14926
|
+
(0, import_node_timers.clearTimeout)(expiry);
|
|
14927
|
+
for (const watcher of watchers) watcher.close();
|
|
14928
|
+
}
|
|
14929
|
+
const inputs2 = { expiry };
|
|
14930
|
+
const watch = (directory, recursive, name2) => {
|
|
14931
|
+
const watcher = import_node_fs90.default.watch(
|
|
14932
|
+
directory,
|
|
14933
|
+
{ recursive, persistent: false },
|
|
14934
|
+
(_event, file) => {
|
|
14935
|
+
if (!file || (name2 ? file === name2 : !ignoredChange(file))) close();
|
|
14936
|
+
}
|
|
14937
|
+
);
|
|
14938
|
+
watchers.push(watcher);
|
|
14939
|
+
watcher.on("error", close);
|
|
14940
|
+
};
|
|
14941
|
+
const scan = (directory, watchRoot) => {
|
|
14942
|
+
if (visited.has(directory)) return;
|
|
15098
14943
|
visited.add(directory);
|
|
15099
|
-
const
|
|
15100
|
-
entries.sort((a, b) => a.name < b.name ? -1 : Number(a.name !== b.name));
|
|
15101
|
-
for (const entry of entries) {
|
|
14944
|
+
for (const entry of import_node_fs90.default.readdirSync(directory, { withFileTypes: true })) {
|
|
15102
14945
|
const file = import_node_path93.default.join(directory, entry.name);
|
|
15103
|
-
|
|
15104
|
-
if (
|
|
15105
|
-
if (!dependency && excluded(import_node_path93.default.relative(root, file), entry.isDirectory()))
|
|
15106
|
-
continue;
|
|
15107
|
-
hash.update(file).update("\0");
|
|
15108
|
-
if (entry.isDirectory()) {
|
|
15109
|
-
directories.push({ file, installed: dependency });
|
|
15110
|
-
continue;
|
|
15111
|
-
}
|
|
15112
|
-
const stat2 = import_node_fs90.default.lstatSync(file);
|
|
15113
|
-
hash.update(
|
|
15114
|
-
`${stat2.dev}:${stat2.ino}:${stat2.size}:${stat2.ctimeMs}:${stat2.mtimeMs}\0`
|
|
15115
|
-
);
|
|
14946
|
+
if (ignoredChange(import_node_path93.default.relative(watchRoot, file)) || entry.name === ".git") continue;
|
|
14947
|
+
if (entry.isDirectory()) scan(file, watchRoot);
|
|
15116
14948
|
if (!entry.isSymbolicLink()) continue;
|
|
15117
|
-
const target = import_node_fs90.default.
|
|
15118
|
-
if (target
|
|
15119
|
-
|
|
15120
|
-
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
);
|
|
15124
|
-
|
|
14949
|
+
const target = import_node_path93.default.resolve(directory, import_node_fs90.default.readlinkSync(file));
|
|
14950
|
+
if (target === workspace || target.startsWith(workspace + import_node_path93.default.sep)) continue;
|
|
14951
|
+
const real = import_node_fs90.default.realpathSync(file);
|
|
14952
|
+
if (visited.has(real)) continue;
|
|
14953
|
+
watch(import_node_path93.default.dirname(real), false, import_node_path93.default.basename(real));
|
|
14954
|
+
if (import_node_fs90.default.statSync(real).isDirectory()) {
|
|
14955
|
+
watch(real, true);
|
|
14956
|
+
scan(real, real);
|
|
14957
|
+
} else visited.add(real);
|
|
15125
14958
|
}
|
|
15126
|
-
|
|
14959
|
+
};
|
|
14960
|
+
try {
|
|
14961
|
+
watch(workspace, true);
|
|
14962
|
+
scan(workspace, workspace);
|
|
14963
|
+
} catch {
|
|
14964
|
+
close();
|
|
14965
|
+
return void 0;
|
|
15127
14966
|
}
|
|
15128
|
-
|
|
14967
|
+
watchedInputs.set(workspace, inputs2);
|
|
14968
|
+
return inputs2;
|
|
15129
14969
|
}
|
|
15130
|
-
var
|
|
14970
|
+
var import_node_fs90, import_node_path93, import_node_timers, setTimeoutNode, RETENTION_MS, watchedInputs, NativePreparation;
|
|
15131
14971
|
var init_native_preparation = __esm({
|
|
15132
14972
|
"src/native-preparation.ts"() {
|
|
15133
14973
|
"use strict";
|
|
15134
|
-
import_node_crypto54 = require("node:crypto");
|
|
15135
14974
|
import_node_fs90 = __toESM(require("node:fs"), 1);
|
|
15136
|
-
import_node_module13 = require("node:module");
|
|
15137
14975
|
import_node_path93 = __toESM(require("node:path"), 1);
|
|
15138
14976
|
import_node_timers = require("node:timers");
|
|
15139
|
-
|
|
15140
|
-
init_expo_workspace_exclusion();
|
|
15141
|
-
init_native_firebase_config();
|
|
14977
|
+
init_nativePreparationContract();
|
|
15142
14978
|
init_runtime_assets();
|
|
15143
14979
|
init_workspace_root();
|
|
15144
14980
|
setTimeoutNode = import_node_timers.setTimeout;
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
14981
|
+
RETENTION_MS = 30 * 60 * 1e3;
|
|
14982
|
+
watchedInputs = /* @__PURE__ */ new Map();
|
|
14983
|
+
NativePreparation = class {
|
|
15148
14984
|
compiling = /* @__PURE__ */ new Map();
|
|
15149
|
-
prepared = /* @__PURE__ */ new
|
|
14985
|
+
prepared = /* @__PURE__ */ new WeakMap();
|
|
15150
14986
|
receipts = /* @__PURE__ */ new Map();
|
|
15151
|
-
async
|
|
15152
|
-
const
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
|
|
15157
|
-
|
|
14987
|
+
async resolve(root, owner, params, compile, reusable = () => true) {
|
|
14988
|
+
const receipt = this.take(owner, params.get(NATIVE_PREPARED_QUERY_PARAM));
|
|
14989
|
+
if (receipt) return receipt.value;
|
|
14990
|
+
const token = params.get(NATIVE_PREPARE_QUERY_PARAM);
|
|
14991
|
+
const inputs2 = token ? watchNativeInputs(root) : void 0;
|
|
14992
|
+
const key = inputs2 ? `${owner}\0${resolveActiveRuntimeRoot() ?? ""}` : owner;
|
|
14993
|
+
let pending = this.compiling;
|
|
14994
|
+
if (inputs2) {
|
|
14995
|
+
const prepared = this.prepared.get(inputs2);
|
|
14996
|
+
if (prepared) pending = prepared;
|
|
14997
|
+
else {
|
|
14998
|
+
pending = /* @__PURE__ */ new Map();
|
|
14999
|
+
this.prepared.set(inputs2, pending);
|
|
15000
|
+
}
|
|
15158
15001
|
}
|
|
15159
|
-
|
|
15160
|
-
if (
|
|
15161
|
-
|
|
15162
|
-
|
|
15002
|
+
let preparation = pending.get(key);
|
|
15003
|
+
if (!preparation || preparation.ready && !reusable(preparation.ready.value)) {
|
|
15004
|
+
const next = { result: Promise.resolve().then(compile) };
|
|
15005
|
+
preparation = next;
|
|
15006
|
+
pending.set(key, next);
|
|
15007
|
+
void next.result.then(
|
|
15008
|
+
(value2) => {
|
|
15009
|
+
if (!inputs2 || !reusable(value2)) pending.delete(key);
|
|
15010
|
+
else next.ready = { value: value2 };
|
|
15011
|
+
},
|
|
15012
|
+
() => pending.delete(key)
|
|
15013
|
+
);
|
|
15163
15014
|
}
|
|
15164
|
-
|
|
15165
|
-
this.
|
|
15166
|
-
|
|
15167
|
-
if (revision) {
|
|
15168
|
-
const expiry = setTimeoutNode(
|
|
15169
|
-
() => this.prepared.delete(owner),
|
|
15170
|
-
OPEN_RECEIPT_MS
|
|
15171
|
-
);
|
|
15172
|
-
expiry.unref();
|
|
15173
|
-
this.prepared.set(owner, { revision, value, expiry });
|
|
15174
|
-
}
|
|
15175
|
-
return value;
|
|
15176
|
-
}).finally(() => this.compiling.delete(owner));
|
|
15177
|
-
this.compiling.set(owner, { revision, result });
|
|
15178
|
-
return result;
|
|
15015
|
+
const value = await preparation.result;
|
|
15016
|
+
this.store(owner, token, value);
|
|
15017
|
+
return value;
|
|
15179
15018
|
}
|
|
15180
|
-
// each open hands its own response to the first tenant request, including null.
|
|
15181
15019
|
store(owner, token, value) {
|
|
15182
15020
|
if (!token) return;
|
|
15183
15021
|
const previous = this.receipts.get(token);
|
|
15184
15022
|
if (previous) (0, import_node_timers.clearTimeout)(previous.expiry);
|
|
15185
|
-
const expiry = setTimeoutNode(() => this.receipts.delete(token),
|
|
15023
|
+
const expiry = setTimeoutNode(() => this.receipts.delete(token), RETENTION_MS);
|
|
15186
15024
|
expiry.unref();
|
|
15187
15025
|
this.receipts.set(token, { owner, value, expiry });
|
|
15188
15026
|
}
|
|
@@ -15212,12 +15050,12 @@ var init_swift_xcframework = __esm({
|
|
|
15212
15050
|
});
|
|
15213
15051
|
|
|
15214
15052
|
// src/native-static-libraries.ts
|
|
15215
|
-
var import_node_child_process43,
|
|
15053
|
+
var import_node_child_process43, import_node_crypto54, import_node_fs92, import_node_path95, WEBRTC_NATIVE_FRAMEWORK, SIGNAL_WEBRTC_NATIVE_FRAMEWORK, WEBRTC_NATIVE_FRAMEWORK_RECIPES, NATIVE_STATIC_LIBRARY_RECIPES;
|
|
15216
15054
|
var init_native_static_libraries = __esm({
|
|
15217
15055
|
"src/native-static-libraries.ts"() {
|
|
15218
15056
|
"use strict";
|
|
15219
15057
|
import_node_child_process43 = require("node:child_process");
|
|
15220
|
-
|
|
15058
|
+
import_node_crypto54 = require("node:crypto");
|
|
15221
15059
|
import_node_fs92 = __toESM(require("node:fs"), 1);
|
|
15222
15060
|
import_node_path95 = __toESM(require("node:path"), 1);
|
|
15223
15061
|
init_home_paths();
|
|
@@ -15515,13 +15353,6 @@ var init_native_static_libraries = __esm({
|
|
|
15515
15353
|
}
|
|
15516
15354
|
});
|
|
15517
15355
|
|
|
15518
|
-
// src/nativePreparationContract.ts
|
|
15519
|
-
var init_nativePreparationContract = __esm({
|
|
15520
|
-
"src/nativePreparationContract.ts"() {
|
|
15521
|
-
"use strict";
|
|
15522
|
-
}
|
|
15523
|
-
});
|
|
15524
|
-
|
|
15525
15356
|
// ../../src/helpers/mapLimit.ts
|
|
15526
15357
|
var init_mapLimit = __esm({
|
|
15527
15358
|
"../../src/helpers/mapLimit.ts"() {
|
|
@@ -15530,27 +15361,27 @@ var init_mapLimit = __esm({
|
|
|
15530
15361
|
});
|
|
15531
15362
|
|
|
15532
15363
|
// src/numbered-lock.ts
|
|
15533
|
-
var
|
|
15364
|
+
var import_node_crypto55, import_node_fs93, import_node_path96;
|
|
15534
15365
|
var init_numbered_lock = __esm({
|
|
15535
15366
|
"src/numbered-lock.ts"() {
|
|
15536
15367
|
"use strict";
|
|
15537
|
-
|
|
15368
|
+
import_node_crypto55 = require("node:crypto");
|
|
15538
15369
|
import_node_fs93 = require("node:fs");
|
|
15539
15370
|
import_node_path96 = require("node:path");
|
|
15540
15371
|
}
|
|
15541
15372
|
});
|
|
15542
15373
|
|
|
15543
15374
|
// src/rive-runtime-dependencies.ts
|
|
15544
|
-
var import_node_child_process44,
|
|
15375
|
+
var import_node_child_process44, import_node_crypto56, import_node_fs94, import_node_os20, import_node_path97, import_promises10;
|
|
15545
15376
|
var init_rive_runtime_dependencies = __esm({
|
|
15546
15377
|
"src/rive-runtime-dependencies.ts"() {
|
|
15547
15378
|
"use strict";
|
|
15548
15379
|
import_node_child_process44 = require("node:child_process");
|
|
15549
|
-
|
|
15380
|
+
import_node_crypto56 = require("node:crypto");
|
|
15550
15381
|
import_node_fs94 = __toESM(require("node:fs"), 1);
|
|
15551
15382
|
import_node_os20 = __toESM(require("node:os"), 1);
|
|
15552
15383
|
import_node_path97 = __toESM(require("node:path"), 1);
|
|
15553
|
-
|
|
15384
|
+
import_promises10 = require("node:timers/promises");
|
|
15554
15385
|
init_home_paths();
|
|
15555
15386
|
init_numbered_lock();
|
|
15556
15387
|
init_swift_compile();
|
|
@@ -15626,15 +15457,15 @@ var init_swift_shipped_binaries = __esm({
|
|
|
15626
15457
|
});
|
|
15627
15458
|
|
|
15628
15459
|
// src/swift-packages.ts
|
|
15629
|
-
var import_node_child_process45,
|
|
15460
|
+
var import_node_child_process45, import_node_crypto57, import_node_fs95, import_node_path98, import_promises11, import_node_util10, execFileAsync2;
|
|
15630
15461
|
var init_swift_packages = __esm({
|
|
15631
15462
|
"src/swift-packages.ts"() {
|
|
15632
15463
|
"use strict";
|
|
15633
15464
|
import_node_child_process45 = require("node:child_process");
|
|
15634
|
-
|
|
15465
|
+
import_node_crypto57 = require("node:crypto");
|
|
15635
15466
|
import_node_fs95 = __toESM(require("node:fs"), 1);
|
|
15636
15467
|
import_node_path98 = __toESM(require("node:path"), 1);
|
|
15637
|
-
|
|
15468
|
+
import_promises11 = require("node:timers/promises");
|
|
15638
15469
|
import_node_util10 = require("node:util");
|
|
15639
15470
|
init_git_repo_env();
|
|
15640
15471
|
init_home_paths();
|
|
@@ -16182,11 +16013,11 @@ var init_genrule_library_builds = __esm({
|
|
|
16182
16013
|
});
|
|
16183
16014
|
|
|
16184
16015
|
// src/native-framework-compiler.ts
|
|
16185
|
-
var
|
|
16016
|
+
var import_node_crypto58, import_node_fs98, import_node_path101, v7;
|
|
16186
16017
|
var init_native_framework_compiler = __esm({
|
|
16187
16018
|
"src/native-framework-compiler.ts"() {
|
|
16188
16019
|
"use strict";
|
|
16189
|
-
|
|
16020
|
+
import_node_crypto58 = require("node:crypto");
|
|
16190
16021
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
16191
16022
|
import_node_path101 = __toESM(require("node:path"), 1);
|
|
16192
16023
|
v7 = __toESM(require("peachsim/vendor/valibot"), 1);
|
|
@@ -16197,12 +16028,12 @@ var init_native_framework_compiler = __esm({
|
|
|
16197
16028
|
});
|
|
16198
16029
|
|
|
16199
16030
|
// src/genrule-archives.ts
|
|
16200
|
-
var import_node_child_process48,
|
|
16031
|
+
var import_node_child_process48, import_node_crypto59, import_node_fs99, import_node_os21, import_node_path102, v8, BUILDERS, cacheDir4;
|
|
16201
16032
|
var init_genrule_archives = __esm({
|
|
16202
16033
|
"src/genrule-archives.ts"() {
|
|
16203
16034
|
"use strict";
|
|
16204
16035
|
import_node_child_process48 = require("node:child_process");
|
|
16205
|
-
|
|
16036
|
+
import_node_crypto59 = require("node:crypto");
|
|
16206
16037
|
import_node_fs99 = __toESM(require("node:fs"), 1);
|
|
16207
16038
|
import_node_os21 = __toESM(require("node:os"), 1);
|
|
16208
16039
|
import_node_path102 = __toESM(require("node:path"), 1);
|
|
@@ -16233,12 +16064,12 @@ var init_native_slices = __esm({
|
|
|
16233
16064
|
});
|
|
16234
16065
|
|
|
16235
16066
|
// src/native-swift-slices.ts
|
|
16236
|
-
var import_node_child_process49,
|
|
16067
|
+
var import_node_child_process49, import_node_crypto60, import_node_fs100, import_node_os22, import_node_path103;
|
|
16237
16068
|
var init_native_swift_slices = __esm({
|
|
16238
16069
|
"src/native-swift-slices.ts"() {
|
|
16239
16070
|
"use strict";
|
|
16240
16071
|
import_node_child_process49 = require("node:child_process");
|
|
16241
|
-
|
|
16072
|
+
import_node_crypto60 = require("node:crypto");
|
|
16242
16073
|
import_node_fs100 = __toESM(require("node:fs"), 1);
|
|
16243
16074
|
import_node_os22 = __toESM(require("node:os"), 1);
|
|
16244
16075
|
import_node_path103 = __toESM(require("node:path"), 1);
|
|
@@ -16259,13 +16090,13 @@ var init_output_lock_stdio = __esm({
|
|
|
16259
16090
|
});
|
|
16260
16091
|
|
|
16261
16092
|
// src/swift-cxx-declarations.ts
|
|
16262
|
-
var import_node_fs102, import_node_path104,
|
|
16093
|
+
var import_node_fs102, import_node_path104, import_promises12, import_stream_json;
|
|
16263
16094
|
var init_swift_cxx_declarations = __esm({
|
|
16264
16095
|
"src/swift-cxx-declarations.ts"() {
|
|
16265
16096
|
"use strict";
|
|
16266
16097
|
import_node_fs102 = __toESM(require("node:fs"), 1);
|
|
16267
16098
|
import_node_path104 = __toESM(require("node:path"), 1);
|
|
16268
|
-
|
|
16099
|
+
import_promises12 = require("node:stream/promises");
|
|
16269
16100
|
import_stream_json = __toESM(require("peachsim/vendor/stream-json"), 1);
|
|
16270
16101
|
}
|
|
16271
16102
|
});
|
|
@@ -16302,12 +16133,12 @@ var init_swift_standin_builtin_behavior = __esm({
|
|
|
16302
16133
|
});
|
|
16303
16134
|
|
|
16304
16135
|
// src/swift-standins.ts
|
|
16305
|
-
var import_node_child_process51,
|
|
16136
|
+
var import_node_child_process51, import_node_crypto61, import_node_fs104, import_node_path106, cacheDir5;
|
|
16306
16137
|
var init_swift_standins = __esm({
|
|
16307
16138
|
"src/swift-standins.ts"() {
|
|
16308
16139
|
"use strict";
|
|
16309
16140
|
import_node_child_process51 = require("node:child_process");
|
|
16310
|
-
|
|
16141
|
+
import_node_crypto61 = require("node:crypto");
|
|
16311
16142
|
import_node_fs104 = __toESM(require("node:fs"), 1);
|
|
16312
16143
|
import_node_path106 = __toESM(require("node:path"), 1);
|
|
16313
16144
|
init_forked_script_contract();
|
|
@@ -16342,12 +16173,12 @@ var init_swift_standins = __esm({
|
|
|
16342
16173
|
});
|
|
16343
16174
|
|
|
16344
16175
|
// src/swift-objc-compile.ts
|
|
16345
|
-
var import_node_child_process52,
|
|
16176
|
+
var import_node_child_process52, import_node_crypto62, import_node_fs105, import_node_path107;
|
|
16346
16177
|
var init_swift_objc_compile = __esm({
|
|
16347
16178
|
"src/swift-objc-compile.ts"() {
|
|
16348
16179
|
"use strict";
|
|
16349
16180
|
import_node_child_process52 = require("node:child_process");
|
|
16350
|
-
|
|
16181
|
+
import_node_crypto62 = require("node:crypto");
|
|
16351
16182
|
import_node_fs105 = __toESM(require("node:fs"), 1);
|
|
16352
16183
|
import_node_path107 = __toESM(require("node:path"), 1);
|
|
16353
16184
|
init_mapLimit();
|
|
@@ -16372,12 +16203,12 @@ var init_swift_objc_compile = __esm({
|
|
|
16372
16203
|
});
|
|
16373
16204
|
|
|
16374
16205
|
// src/react-native-bridge-modules.ts
|
|
16375
|
-
var import_node_fs106,
|
|
16206
|
+
var import_node_fs106, import_node_module13, import_node_path108;
|
|
16376
16207
|
var init_react_native_bridge_modules = __esm({
|
|
16377
16208
|
"src/react-native-bridge-modules.ts"() {
|
|
16378
16209
|
"use strict";
|
|
16379
16210
|
import_node_fs106 = __toESM(require("node:fs"), 1);
|
|
16380
|
-
|
|
16211
|
+
import_node_module13 = require("node:module");
|
|
16381
16212
|
import_node_path108 = __toESM(require("node:path"), 1);
|
|
16382
16213
|
init_answeredNativePackages();
|
|
16383
16214
|
init_swift_compile();
|
|
@@ -16388,13 +16219,13 @@ var init_react_native_bridge_modules = __esm({
|
|
|
16388
16219
|
});
|
|
16389
16220
|
|
|
16390
16221
|
// src/react-native-core.ts
|
|
16391
|
-
var
|
|
16222
|
+
var import_node_crypto63, import_node_fs107, import_node_module14, import_node_path109, import_node_util11, recipe;
|
|
16392
16223
|
var init_react_native_core = __esm({
|
|
16393
16224
|
"src/react-native-core.ts"() {
|
|
16394
16225
|
"use strict";
|
|
16395
|
-
|
|
16226
|
+
import_node_crypto63 = require("node:crypto");
|
|
16396
16227
|
import_node_fs107 = __toESM(require("node:fs"), 1);
|
|
16397
|
-
|
|
16228
|
+
import_node_module14 = require("node:module");
|
|
16398
16229
|
import_node_path109 = __toESM(require("node:path"), 1);
|
|
16399
16230
|
import_node_util11 = require("node:util");
|
|
16400
16231
|
init_home_paths();
|
|
@@ -16411,12 +16242,12 @@ var init_react_native_core = __esm({
|
|
|
16411
16242
|
});
|
|
16412
16243
|
|
|
16413
16244
|
// src/swift-clang-type-ownership.ts
|
|
16414
|
-
var import_node_child_process53,
|
|
16245
|
+
var import_node_child_process53, import_node_crypto64, import_node_fs108, import_node_path110;
|
|
16415
16246
|
var init_swift_clang_type_ownership = __esm({
|
|
16416
16247
|
"src/swift-clang-type-ownership.ts"() {
|
|
16417
16248
|
"use strict";
|
|
16418
16249
|
import_node_child_process53 = require("node:child_process");
|
|
16419
|
-
|
|
16250
|
+
import_node_crypto64 = require("node:crypto");
|
|
16420
16251
|
import_node_fs108 = __toESM(require("node:fs"), 1);
|
|
16421
16252
|
import_node_path110 = __toESM(require("node:path"), 1);
|
|
16422
16253
|
init_is_record();
|
|
@@ -17485,11 +17316,11 @@ var init_core_data_entity_classes = __esm({
|
|
|
17485
17316
|
});
|
|
17486
17317
|
|
|
17487
17318
|
// src/core-data-model.ts
|
|
17488
|
-
var
|
|
17319
|
+
var import_node_crypto65, import_node_fs110, import_node_path112, uid, NULL;
|
|
17489
17320
|
var init_core_data_model = __esm({
|
|
17490
17321
|
"src/core-data-model.ts"() {
|
|
17491
17322
|
"use strict";
|
|
17492
|
-
|
|
17323
|
+
import_node_crypto65 = require("node:crypto");
|
|
17493
17324
|
import_node_fs110 = require("node:fs");
|
|
17494
17325
|
import_node_path112 = __toESM(require("node:path"), 1);
|
|
17495
17326
|
init_core_data_entity_classes();
|
|
@@ -19599,12 +19430,12 @@ var init_swift_catalog_png = __esm({
|
|
|
19599
19430
|
});
|
|
19600
19431
|
|
|
19601
19432
|
// src/swift-cxx-reachable.ts
|
|
19602
|
-
var import_node_child_process54,
|
|
19433
|
+
var import_node_child_process54, import_node_crypto66, import_node_fs111, import_node_path113;
|
|
19603
19434
|
var init_swift_cxx_reachable = __esm({
|
|
19604
19435
|
"src/swift-cxx-reachable.ts"() {
|
|
19605
19436
|
"use strict";
|
|
19606
19437
|
import_node_child_process54 = require("node:child_process");
|
|
19607
|
-
|
|
19438
|
+
import_node_crypto66 = require("node:crypto");
|
|
19608
19439
|
import_node_fs111 = __toESM(require("node:fs"), 1);
|
|
19609
19440
|
import_node_path113 = __toESM(require("node:path"), 1);
|
|
19610
19441
|
init_is_record();
|
|
@@ -19645,13 +19476,13 @@ var init_swift_standin_config = __esm({
|
|
|
19645
19476
|
});
|
|
19646
19477
|
|
|
19647
19478
|
// src/swift-host.ts
|
|
19648
|
-
var import_node_async_hooks2, import_node_child_process56,
|
|
19479
|
+
var import_node_async_hooks2, import_node_child_process56, import_node_crypto67, import_node_fs113, import_node_os24, import_node_path115, projectScope, layoutScope, IOS_SDK_FRAMEWORKS;
|
|
19649
19480
|
var init_swift_host = __esm({
|
|
19650
19481
|
"src/swift-host.ts"() {
|
|
19651
19482
|
"use strict";
|
|
19652
19483
|
import_node_async_hooks2 = require("node:async_hooks");
|
|
19653
19484
|
import_node_child_process56 = require("node:child_process");
|
|
19654
|
-
|
|
19485
|
+
import_node_crypto67 = require("node:crypto");
|
|
19655
19486
|
import_node_fs113 = __toESM(require("node:fs"), 1);
|
|
19656
19487
|
import_node_os24 = __toESM(require("node:os"), 1);
|
|
19657
19488
|
import_node_path115 = __toESM(require("node:path"), 1);
|
|
@@ -19701,12 +19532,12 @@ var init_swift_host = __esm({
|
|
|
19701
19532
|
});
|
|
19702
19533
|
|
|
19703
19534
|
// src/installed-native-libraries.ts
|
|
19704
|
-
var import_node_fs114,
|
|
19535
|
+
var import_node_fs114, import_node_module15, import_node_path116;
|
|
19705
19536
|
var init_installed_native_libraries = __esm({
|
|
19706
19537
|
"src/installed-native-libraries.ts"() {
|
|
19707
19538
|
"use strict";
|
|
19708
19539
|
import_node_fs114 = __toESM(require("node:fs"), 1);
|
|
19709
|
-
|
|
19540
|
+
import_node_module15 = require("node:module");
|
|
19710
19541
|
import_node_path116 = __toESM(require("node:path"), 1);
|
|
19711
19542
|
init_is_record();
|
|
19712
19543
|
init_native_static_libraries();
|
|
@@ -19717,14 +19548,14 @@ var init_installed_native_libraries = __esm({
|
|
|
19717
19548
|
});
|
|
19718
19549
|
|
|
19719
19550
|
// src/turbo-codegen-intake.ts
|
|
19720
|
-
var import_node_child_process57,
|
|
19551
|
+
var import_node_child_process57, import_node_crypto68, import_node_fs115, import_node_module16, import_node_path117, import_node_util12, run5;
|
|
19721
19552
|
var init_turbo_codegen_intake = __esm({
|
|
19722
19553
|
"src/turbo-codegen-intake.ts"() {
|
|
19723
19554
|
"use strict";
|
|
19724
19555
|
import_node_child_process57 = require("node:child_process");
|
|
19725
|
-
|
|
19556
|
+
import_node_crypto68 = require("node:crypto");
|
|
19726
19557
|
import_node_fs115 = __toESM(require("node:fs"), 1);
|
|
19727
|
-
|
|
19558
|
+
import_node_module16 = require("node:module");
|
|
19728
19559
|
import_node_path117 = __toESM(require("node:path"), 1);
|
|
19729
19560
|
import_node_util12 = require("node:util");
|
|
19730
19561
|
init_forked_script_contract();
|
|
@@ -19736,11 +19567,11 @@ var init_turbo_codegen_intake = __esm({
|
|
|
19736
19567
|
});
|
|
19737
19568
|
|
|
19738
19569
|
// src/turbo-source.ts
|
|
19739
|
-
var
|
|
19570
|
+
var import_node_crypto69, import_node_fs116, import_node_path118;
|
|
19740
19571
|
var init_turbo_source = __esm({
|
|
19741
19572
|
"src/turbo-source.ts"() {
|
|
19742
19573
|
"use strict";
|
|
19743
|
-
|
|
19574
|
+
import_node_crypto69 = require("node:crypto");
|
|
19744
19575
|
import_node_fs116 = __toESM(require("node:fs"), 1);
|
|
19745
19576
|
import_node_path118 = __toESM(require("node:path"), 1);
|
|
19746
19577
|
init_cocoapods_trunk();
|
|
@@ -19760,15 +19591,15 @@ var init_turbo_source = __esm({
|
|
|
19760
19591
|
});
|
|
19761
19592
|
|
|
19762
19593
|
// src/expo-swift-host.ts
|
|
19763
|
-
var import_node_async_hooks3, import_node_child_process58,
|
|
19594
|
+
var import_node_async_hooks3, import_node_child_process58, import_node_crypto70, import_node_fs117, import_node_module17, import_node_os25, import_node_path119, import_node_url5, import_node_util13, run6, scriptEnv, traceStore, openPreparations;
|
|
19764
19595
|
var init_expo_swift_host = __esm({
|
|
19765
19596
|
"src/expo-swift-host.ts"() {
|
|
19766
19597
|
"use strict";
|
|
19767
19598
|
import_node_async_hooks3 = require("node:async_hooks");
|
|
19768
19599
|
import_node_child_process58 = require("node:child_process");
|
|
19769
|
-
|
|
19600
|
+
import_node_crypto70 = require("node:crypto");
|
|
19770
19601
|
import_node_fs117 = __toESM(require("node:fs"), 1);
|
|
19771
|
-
|
|
19602
|
+
import_node_module17 = require("node:module");
|
|
19772
19603
|
import_node_os25 = __toESM(require("node:os"), 1);
|
|
19773
19604
|
import_node_path119 = __toESM(require("node:path"), 1);
|
|
19774
19605
|
import_node_url5 = require("node:url");
|
|
@@ -19788,7 +19619,6 @@ var init_expo_swift_host = __esm({
|
|
|
19788
19619
|
init_native_firebase_config();
|
|
19789
19620
|
init_native_preparation();
|
|
19790
19621
|
init_native_static_libraries();
|
|
19791
|
-
init_nativePreparationContract();
|
|
19792
19622
|
init_react_native_bridge_modules();
|
|
19793
19623
|
init_react_native_core();
|
|
19794
19624
|
init_swift_binary_modules();
|
|
@@ -19806,7 +19636,7 @@ var init_expo_swift_host = __esm({
|
|
|
19806
19636
|
run6 = (0, import_node_util13.promisify)(import_node_child_process58.execFile);
|
|
19807
19637
|
scriptEnv = { ...process.env, [PEACH_FORKED_SCRIPT_ENV]: "1" };
|
|
19808
19638
|
traceStore = new import_node_async_hooks3.AsyncLocalStorage();
|
|
19809
|
-
openPreparations = new
|
|
19639
|
+
openPreparations = new NativePreparation();
|
|
19810
19640
|
}
|
|
19811
19641
|
});
|
|
19812
19642
|
|
|
@@ -23198,11 +23028,11 @@ var init_dev_bundle_resolution = __esm({
|
|
|
23198
23028
|
});
|
|
23199
23029
|
|
|
23200
23030
|
// src/settings-bundle.ts
|
|
23201
|
-
var
|
|
23031
|
+
var import_promises13, import_node_path123;
|
|
23202
23032
|
var init_settings_bundle = __esm({
|
|
23203
23033
|
"src/settings-bundle.ts"() {
|
|
23204
23034
|
"use strict";
|
|
23205
|
-
|
|
23035
|
+
import_promises13 = require("node:fs/promises");
|
|
23206
23036
|
import_node_path123 = require("node:path");
|
|
23207
23037
|
init_is_record();
|
|
23208
23038
|
init_plist();
|
|
@@ -23585,7 +23415,7 @@ async function flushCwdQueue() {
|
|
|
23585
23415
|
const needLsof = [];
|
|
23586
23416
|
for (const pid of pending) {
|
|
23587
23417
|
try {
|
|
23588
|
-
const cwd = await (0,
|
|
23418
|
+
const cwd = await (0, import_promises14.readlink)(`/proc/${pid}/cwd`);
|
|
23589
23419
|
if (cwd) {
|
|
23590
23420
|
cwdByPid.set(pid, cwd);
|
|
23591
23421
|
continue;
|
|
@@ -23637,12 +23467,12 @@ function resolveProcessCwd(pid) {
|
|
|
23637
23467
|
kickCwdFlush();
|
|
23638
23468
|
});
|
|
23639
23469
|
}
|
|
23640
|
-
var import_child_process,
|
|
23470
|
+
var import_child_process, import_promises14, import_http, import_net, import_node_fs122, import_node_os27, import_node_path125, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, FALLBACK_PORTS, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing;
|
|
23641
23471
|
var init_dev_server_scanner = __esm({
|
|
23642
23472
|
"scripts/dev-server-scanner.ts"() {
|
|
23643
23473
|
"use strict";
|
|
23644
23474
|
import_child_process = require("child_process");
|
|
23645
|
-
|
|
23475
|
+
import_promises14 = require("fs/promises");
|
|
23646
23476
|
import_http = __toESM(require("http"), 1);
|
|
23647
23477
|
import_net = __toESM(require("net"), 1);
|
|
23648
23478
|
import_node_fs122 = require("node:fs");
|
|
@@ -23800,7 +23630,7 @@ function verifyCompanionFile(file) {
|
|
|
23800
23630
|
}
|
|
23801
23631
|
throw error;
|
|
23802
23632
|
}
|
|
23803
|
-
const hash = (0,
|
|
23633
|
+
const hash = (0, import_node_crypto71.createHash)("sha256").update(bytes).digest("hex");
|
|
23804
23634
|
if (hash !== runtime_companion_default.sha256) {
|
|
23805
23635
|
throw new Error(
|
|
23806
23636
|
"Peach runtime companion does not match this CLI; run `peach runtime install`"
|
|
@@ -23811,7 +23641,7 @@ function getCliRuntime() {
|
|
|
23811
23641
|
if (loaded) return loaded.runtime;
|
|
23812
23642
|
const root = peachRuntimeRoot();
|
|
23813
23643
|
verifyCliCompanion(root);
|
|
23814
|
-
const require2 = (0,
|
|
23644
|
+
const require2 = (0, import_node_module18.createRequire)(__sootsim_import_meta_url);
|
|
23815
23645
|
const runtime = require2((0, import_node_path126.join)(root, cliCompanionPath()));
|
|
23816
23646
|
if (runtime.cliCompanionAbi !== CLI_COMPANION_ABI) {
|
|
23817
23647
|
throw new Error(
|
|
@@ -23822,13 +23652,13 @@ function getCliRuntime() {
|
|
|
23822
23652
|
loaded = { root, runtime };
|
|
23823
23653
|
return runtime;
|
|
23824
23654
|
}
|
|
23825
|
-
var
|
|
23655
|
+
var import_node_crypto71, import_node_fs123, import_node_module18, import_node_path126, CLI_COMPANION_ABI, loaded;
|
|
23826
23656
|
var init_cli_runtime = __esm({
|
|
23827
23657
|
"src/cli-runtime.ts"() {
|
|
23828
23658
|
"use strict";
|
|
23829
|
-
|
|
23659
|
+
import_node_crypto71 = require("node:crypto");
|
|
23830
23660
|
import_node_fs123 = require("node:fs");
|
|
23831
|
-
|
|
23661
|
+
import_node_module18 = require("node:module");
|
|
23832
23662
|
import_node_path126 = require("node:path");
|
|
23833
23663
|
init_src();
|
|
23834
23664
|
init_runtime_companion();
|
|
@@ -23847,7 +23677,7 @@ __export(rolldown_bundle_forward_exports, {
|
|
|
23847
23677
|
async function forwardRolldownBundleResponse(upstream, res) {
|
|
23848
23678
|
res.setHeader(ROLLDOWN_INVENTORY_HEADER, "1");
|
|
23849
23679
|
if (upstream.headers[ROLLDOWN_INVENTORY_HEADER] === "1") {
|
|
23850
|
-
await (0,
|
|
23680
|
+
await (0, import_promises15.pipeline)(upstream, res);
|
|
23851
23681
|
return;
|
|
23852
23682
|
}
|
|
23853
23683
|
const contentType = typeof upstream.headers["content-type"] === "string" ? upstream.headers["content-type"] : "";
|
|
@@ -23889,14 +23719,14 @@ async function forwardRolldownBundleResponse(upstream, res) {
|
|
|
23889
23719
|
}
|
|
23890
23720
|
yield Buffer.from(annotated.slice(sent), "utf8");
|
|
23891
23721
|
};
|
|
23892
|
-
await (0,
|
|
23722
|
+
await (0, import_promises15.pipeline)(import_stream.Readable.from(annotate(), { objectMode: false }), res);
|
|
23893
23723
|
}
|
|
23894
|
-
var import_stream,
|
|
23724
|
+
var import_stream, import_promises15, ROLLDOWN_INVENTORY_HEADER;
|
|
23895
23725
|
var init_rolldown_bundle_forward = __esm({
|
|
23896
23726
|
"src/host/rolldown-bundle-forward.ts"() {
|
|
23897
23727
|
"use strict";
|
|
23898
23728
|
import_stream = require("stream");
|
|
23899
|
-
|
|
23729
|
+
import_promises15 = require("stream/promises");
|
|
23900
23730
|
init_cli_runtime();
|
|
23901
23731
|
ROLLDOWN_INVENTORY_HEADER = "x-peach-rolldown-inventory";
|
|
23902
23732
|
}
|
|
@@ -24224,7 +24054,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24224
24054
|
await route.respond(proxyRes, hopCookies);
|
|
24225
24055
|
if (isNativeCookieRedirect(hop)) res.removeHeader("location");
|
|
24226
24056
|
res.statusCode = isNativeCookieRedirect(hop) ? 200 : status;
|
|
24227
|
-
await (0,
|
|
24057
|
+
await (0, import_promises16.pipeline)(proxyRes, res);
|
|
24228
24058
|
return;
|
|
24229
24059
|
}
|
|
24230
24060
|
if (location && (status === 301 || status === 302 || status === 303 || status === 307 || status === 308)) {
|
|
@@ -24235,7 +24065,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24235
24065
|
const switchToGet = (status === 301 || status === 302) && method === "POST" || status === 303 && method !== "GET" && method !== "HEAD";
|
|
24236
24066
|
const redirectUrl = resolveRedirectUrl(location, targetUrl);
|
|
24237
24067
|
proxyRes.resume();
|
|
24238
|
-
await (0,
|
|
24068
|
+
await (0, import_promises16.finished)(proxyRes);
|
|
24239
24069
|
await proxy(
|
|
24240
24070
|
redirectUrl,
|
|
24241
24071
|
switchToGet ? "GET" : method,
|
|
@@ -24253,7 +24083,7 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24253
24083
|
await forwardRolldownBundleResponse2(proxyRes, res);
|
|
24254
24084
|
return;
|
|
24255
24085
|
}
|
|
24256
|
-
await (0,
|
|
24086
|
+
await (0, import_promises16.pipeline)(proxyRes, res);
|
|
24257
24087
|
};
|
|
24258
24088
|
let upstreamAnswered = false;
|
|
24259
24089
|
let body;
|
|
@@ -24308,13 +24138,13 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
24308
24138
|
else req.socket.destroy();
|
|
24309
24139
|
}
|
|
24310
24140
|
}
|
|
24311
|
-
var import_http2, import_https, import_node_http22,
|
|
24141
|
+
var import_http2, import_https, import_node_http22, import_promises16, fetchProxyHttpAgent, fetchProxyHttpsAgent, tlsMinimumVersions, tlsMinimumAgents, FETCH_PROXY_CORS_HEADERS, APP_API_HEADER_REWRITES;
|
|
24312
24142
|
var init_fetch_proxy_handler = __esm({
|
|
24313
24143
|
"src/host/fetch-proxy-handler.ts"() {
|
|
24314
24144
|
import_http2 = __toESM(require("http"), 1);
|
|
24315
24145
|
import_https = __toESM(require("https"), 1);
|
|
24316
24146
|
import_node_http22 = require("node:http2");
|
|
24317
|
-
|
|
24147
|
+
import_promises16 = require("stream/promises");
|
|
24318
24148
|
init_package_versions();
|
|
24319
24149
|
init_backend_origin();
|
|
24320
24150
|
init_fetch_proxy_overrides();
|