peachsim 0.1.2027 → 0.1.2029
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/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 +1 -1
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1 -1
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +25 -33
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- 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 +1 -1
- 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 +48 -56
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/expo-widgets-bundle.ts +19 -23
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (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;
|
|
@@ -45,13 +45,13 @@ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
|
45
45
|
|
|
46
46
|
// src/chromium-admission.ts
|
|
47
47
|
function readChromiumQueue(deps, verified2, own) {
|
|
48
|
-
const { fs: fs103, os:
|
|
48
|
+
const { fs: fs103, os: os23, path: path126, childProcess: childProcess3 } = deps;
|
|
49
49
|
const dir = path126.join(
|
|
50
|
-
process.platform === "win32" ?
|
|
50
|
+
process.platform === "win32" ? os23.tmpdir() : "/tmp",
|
|
51
51
|
"chromium-admission"
|
|
52
52
|
);
|
|
53
53
|
fs103.mkdirSync(dir, { recursive: true });
|
|
54
|
-
const limit = Math.max(2, Math.floor(
|
|
54
|
+
const limit = Math.max(2, Math.floor(os23.cpus().length / 2));
|
|
55
55
|
const live = (entry) => {
|
|
56
56
|
const match = /^(\d+)-(\d+)-/.exec(entry);
|
|
57
57
|
if (!match) return false;
|
|
@@ -83430,31 +83430,24 @@ async function buildExpoWidgetsBundle(appRoot, origin = "") {
|
|
|
83430
83430
|
return null;
|
|
83431
83431
|
throw error;
|
|
83432
83432
|
}
|
|
83433
|
-
const
|
|
83434
|
-
|
|
83435
|
-
|
|
83436
|
-
|
|
83437
|
-
|
|
83438
|
-
|
|
83439
|
-
|
|
83440
|
-
|
|
83441
|
-
|
|
83442
|
-
|
|
83443
|
-
|
|
83444
|
-
|
|
83445
|
-
|
|
83446
|
-
|
|
83447
|
-
|
|
83448
|
-
|
|
83449
|
-
runtimeBundle: await import_promises9.default.readFile(output2, "utf8"),
|
|
83450
|
-
images: catalog?.images ?? {}
|
|
83451
|
-
}
|
|
83452
|
-
};
|
|
83453
|
-
} finally {
|
|
83454
|
-
await import_promises9.default.rm(temporary, { recursive: true, force: true });
|
|
83455
|
-
}
|
|
83433
|
+
const packageDir = import_node_path93.default.dirname(manifest);
|
|
83434
|
+
await (0, import_node_util16.promisify)(import_node_child_process48.execFile)(
|
|
83435
|
+
process.env.NODE_BINARY || "node",
|
|
83436
|
+
[import_node_path93.default.join(packageDir, "scripts/build-bundle.mjs"), appRoot],
|
|
83437
|
+
{ cwd: appRoot, maxBuffer: 16 * 1024 * 1024 }
|
|
83438
|
+
);
|
|
83439
|
+
const catalog = await stageExpoWidgetAssets(appRoot, origin);
|
|
83440
|
+
return {
|
|
83441
|
+
metadata: {
|
|
83442
|
+
runtimeBundle: await import_promises9.default.readFile(
|
|
83443
|
+
import_node_path93.default.join(packageDir, "bundle/build/ExpoWidgets.bundle"),
|
|
83444
|
+
"utf8"
|
|
83445
|
+
),
|
|
83446
|
+
images: catalog?.images ?? {}
|
|
83447
|
+
}
|
|
83448
|
+
};
|
|
83456
83449
|
}
|
|
83457
|
-
var import_node_child_process48, import_promises9, import_node_module14,
|
|
83450
|
+
var import_node_child_process48, import_promises9, import_node_module14, import_node_path93, import_node_util16, EXPO_WIDGETS_ROUTE, handleExpoWidgetsRequest;
|
|
83458
83451
|
var init_expo_widgets_bundle = __esm({
|
|
83459
83452
|
"src/expo-widgets-bundle.ts"() {
|
|
83460
83453
|
"use strict";
|
|
@@ -83462,7 +83455,6 @@ var init_expo_widgets_bundle = __esm({
|
|
|
83462
83455
|
import_node_child_process48 = require("node:child_process");
|
|
83463
83456
|
import_promises9 = __toESM(require("node:fs/promises"), 1);
|
|
83464
83457
|
import_node_module14 = require("node:module");
|
|
83465
|
-
import_node_os21 = __toESM(require("node:os"), 1);
|
|
83466
83458
|
import_node_path93 = __toESM(require("node:path"), 1);
|
|
83467
83459
|
import_node_util16 = require("node:util");
|
|
83468
83460
|
init_expo_widget_assets();
|
|
@@ -84161,7 +84153,7 @@ function collectTurboCompileInput(collection, runtime, iosDeploymentTarget, depe
|
|
|
84161
84153
|
async function compileTurboModule(options) {
|
|
84162
84154
|
await prepareTurboSourceDependencies(options.reactNativeRoot);
|
|
84163
84155
|
const key2 = (0, import_node_crypto53.createHash)("sha256").update(options.providers.map(({ root }) => import_node_fs98.default.realpathSync(root)).join("\0")).update("\0").update(import_node_fs98.default.realpathSync(options.moduleRoot)).digest("hex");
|
|
84164
|
-
const scratch2 = import_node_path96.default.join(
|
|
84156
|
+
const scratch2 = import_node_path96.default.join(import_node_os21.default.tmpdir(), "peach-turbo-swift", key2);
|
|
84165
84157
|
import_node_fs98.default.rmSync(import_node_path96.default.join(scratch2, "codegen"), { recursive: true, force: true });
|
|
84166
84158
|
const collection = await collectTurboSources({
|
|
84167
84159
|
appRoot: options.appRoot,
|
|
@@ -84360,7 +84352,7 @@ async function compileTurboModule(options) {
|
|
|
84360
84352
|
collection
|
|
84361
84353
|
};
|
|
84362
84354
|
}
|
|
84363
|
-
var import_node_crypto53, import_node_fs98, import_node_module16,
|
|
84355
|
+
var import_node_crypto53, import_node_fs98, import_node_module16, import_node_os21, import_node_path96;
|
|
84364
84356
|
var init_turbo_compile = __esm({
|
|
84365
84357
|
"src/turbo-compile.ts"() {
|
|
84366
84358
|
"use strict";
|
|
@@ -84368,7 +84360,7 @@ var init_turbo_compile = __esm({
|
|
|
84368
84360
|
import_node_crypto53 = require("node:crypto");
|
|
84369
84361
|
import_node_fs98 = __toESM(require("node:fs"), 1);
|
|
84370
84362
|
import_node_module16 = require("node:module");
|
|
84371
|
-
|
|
84363
|
+
import_node_os21 = __toESM(require("node:os"), 1);
|
|
84372
84364
|
import_node_path96 = __toESM(require("node:path"), 1);
|
|
84373
84365
|
init_native_app_identity_project();
|
|
84374
84366
|
init_nitro_adapter();
|
|
@@ -86526,7 +86518,7 @@ async function scanDevServers(opts = {}) {
|
|
|
86526
86518
|
}
|
|
86527
86519
|
return results.filter((r) => !isSootSimSelfServer(r)).sort((a, b) => a.port - b.port);
|
|
86528
86520
|
}
|
|
86529
|
-
var import_child_process, import_promises11, import_http, import_net, import_node_fs100,
|
|
86521
|
+
var import_child_process, import_promises11, import_http, import_net, import_node_fs100, import_node_os22, import_node_path100, LISTENER_LOCK_PATH, LISTENER_RESULT_PATH, LISTENER_LOCK_STALE_MS, LISTENER_LOCK_WAIT_MS, TIMEOUT_MS, MANIFEST_TIMEOUT_MS, SERVER_SCAN_PROBE_HEADER, TCP_GATE_MS, BODY_TIMEOUT_MS, FALLBACK_PORTS, SELF_PORT_RANGE_START, SELF_PORT_RANGE_END, DevServerScanUnavailableError, LISTING_TIMEOUT_MS, LISTENER_CACHE_MS, listenerCache, inflightListing, listenerHolds, cwdByPid, cwdQueue, cwdFlushing, localIconPathCache, localIconProbeInFlight, ENRICH_TIMEOUT_MS, enrichmentCache, enrichmentInFlight, knownNonPatched, knownOne, portCache, portCacheInvalidatedAt, NEGATIVE_CACHE_TTL_MS, WEAK_RESULT_CACHE_TTL_MS;
|
|
86530
86522
|
var init_dev_server_scanner = __esm({
|
|
86531
86523
|
"scripts/dev-server-scanner.ts"() {
|
|
86532
86524
|
"use strict";
|
|
@@ -86536,7 +86528,7 @@ var init_dev_server_scanner = __esm({
|
|
|
86536
86528
|
import_http = __toESM(require("http"), 1);
|
|
86537
86529
|
import_net = __toESM(require("net"), 1);
|
|
86538
86530
|
import_node_fs100 = require("node:fs");
|
|
86539
|
-
|
|
86531
|
+
import_node_os22 = require("node:os");
|
|
86540
86532
|
import_node_path100 = require("node:path");
|
|
86541
86533
|
init_backend_origin();
|
|
86542
86534
|
init_config();
|
|
@@ -86548,8 +86540,8 @@ var init_dev_server_scanner = __esm({
|
|
|
86548
86540
|
init_settings_bundle();
|
|
86549
86541
|
init_swiftDiscoveryContract();
|
|
86550
86542
|
init_optional_demo_registry();
|
|
86551
|
-
LISTENER_LOCK_PATH = (0, import_node_path100.join)((0,
|
|
86552
|
-
LISTENER_RESULT_PATH = (0, import_node_path100.join)((0,
|
|
86543
|
+
LISTENER_LOCK_PATH = (0, import_node_path100.join)((0, import_node_os22.tmpdir)(), "peach-listener-scan.lock");
|
|
86544
|
+
LISTENER_RESULT_PATH = (0, import_node_path100.join)((0, import_node_os22.tmpdir)(), "peach-listener-scan.result");
|
|
86553
86545
|
LISTENER_LOCK_STALE_MS = 25e3;
|
|
86554
86546
|
LISTENER_LOCK_WAIT_MS = 8e3;
|
|
86555
86547
|
TIMEOUT_MS = 250;
|
|
@@ -102193,17 +102185,17 @@ function setPauseAwareTimeout(fn, budgetMs, hostPid) {
|
|
|
102193
102185
|
schedule();
|
|
102194
102186
|
};
|
|
102195
102187
|
}
|
|
102196
|
-
var import_node_child_process54, import_node_fs121,
|
|
102188
|
+
var import_node_child_process54, import_node_fs121, import_node_os23, import_node_path122, LEDGER_PATH2, TICK_MS2, timers, poll, pollDueAt;
|
|
102197
102189
|
var init_pause_aware_timeout = __esm({
|
|
102198
102190
|
"cli/pause-aware-timeout.ts"() {
|
|
102199
102191
|
"use strict";
|
|
102200
102192
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
102201
102193
|
import_node_child_process54 = require("node:child_process");
|
|
102202
102194
|
import_node_fs121 = require("node:fs");
|
|
102203
|
-
|
|
102195
|
+
import_node_os23 = __toESM(require("node:os"), 1);
|
|
102204
102196
|
import_node_path122 = __toESM(require("node:path"), 1);
|
|
102205
102197
|
LEDGER_PATH2 = import_node_path122.default.join(
|
|
102206
|
-
process.env.TM_HOME || import_node_path122.default.join(
|
|
102198
|
+
process.env.TM_HOME || import_node_path122.default.join(import_node_os23.default.homedir(), ".team-machine"),
|
|
102207
102199
|
"governor-pauses.json"
|
|
102208
102200
|
);
|
|
102209
102201
|
TICK_MS2 = 500;
|
|
@@ -105883,7 +105875,7 @@ var init_crash_fingerprint = __esm({
|
|
|
105883
105875
|
// cli/telemetry.ts
|
|
105884
105876
|
function sanitizeDiagnosticMessage(value) {
|
|
105885
105877
|
const firstLine = value.slice(0, 2048).split(/[\r\n\u2028\u2029]/, 1)[0] ?? "";
|
|
105886
|
-
return firstLine.split((0,
|
|
105878
|
+
return firstLine.split((0, import_node_os24.homedir)()).join("<home>").replace(
|
|
105887
105879
|
/<package:(?:@[\w.-]+\/)?[\w.-]+>|(?:https?:\/\/|file:\/\/|[A-Za-z]:[\\/]|<home>[\\/]|\/|\.{1,2}[\\/]|\b[\w.-]+[\\/])(?:[^\s"'<>]|\s(?=[^"'<>]*[\\/]))+/g,
|
|
105888
105880
|
(location) => {
|
|
105889
105881
|
if (location.startsWith("<package:")) return location;
|
|
@@ -105915,12 +105907,12 @@ function trackCliDiagnostic(diagnostic) {
|
|
|
105915
105907
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
105916
105908
|
});
|
|
105917
105909
|
}
|
|
105918
|
-
var
|
|
105910
|
+
var import_node_os24, observedRuntimeVersion, queue, CRASH_REPORT_EVERY_MS;
|
|
105919
105911
|
var init_telemetry = __esm({
|
|
105920
105912
|
"cli/telemetry.ts"() {
|
|
105921
105913
|
"use strict";
|
|
105922
105914
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
105923
|
-
|
|
105915
|
+
import_node_os24 = require("node:os");
|
|
105924
105916
|
init_event_identity();
|
|
105925
105917
|
init_cli_version();
|
|
105926
105918
|
init_crash_fingerprint();
|
|
@@ -111601,7 +111593,7 @@ function stageBuiltBundleManifest(bundleUrl, config) {
|
|
|
111601
111593
|
const bundle = new URL(bundleUrl);
|
|
111602
111594
|
if (!isStagedHostFileRequest(bundle.pathname) || Object.keys(config).length === 0)
|
|
111603
111595
|
return null;
|
|
111604
|
-
const directory2 = import_node_fs129.default.mkdtempSync(import_node_path130.default.join(
|
|
111596
|
+
const directory2 = import_node_fs129.default.mkdtempSync(import_node_path130.default.join(import_node_os25.default.tmpdir(), "peach-app-manifest-"));
|
|
111605
111597
|
try {
|
|
111606
111598
|
const file = import_node_path130.default.join(directory2, "manifest.json");
|
|
111607
111599
|
import_node_fs129.default.writeFileSync(file, JSON.stringify({ extra: { expoClient: config } }));
|
|
@@ -111783,13 +111775,13 @@ async function buildShellUrl(target, baseUrl = resolveDefaultShellBaseUrl(), opt
|
|
|
111783
111775
|
for (const entry of opts.args ?? []) url.searchParams.append("arg", entry);
|
|
111784
111776
|
return opts.offline ? url.toString() : stageHostLaunchMetadata(url, nativeAssetOrigin);
|
|
111785
111777
|
}
|
|
111786
|
-
var import_node_fs129,
|
|
111778
|
+
var import_node_fs129, import_node_os25, import_node_path130, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS, startedExpoConfigReads;
|
|
111787
111779
|
var init_shell_url = __esm({
|
|
111788
111780
|
"cli/commands/shell-url.ts"() {
|
|
111789
111781
|
"use strict";
|
|
111790
111782
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
111791
111783
|
import_node_fs129 = __toESM(require("node:fs"), 1);
|
|
111792
|
-
|
|
111784
|
+
import_node_os25 = __toESM(require("node:os"), 1);
|
|
111793
111785
|
import_node_path130 = __toESM(require("node:path"), 1);
|
|
111794
111786
|
init_oneViteAliases();
|
|
111795
111787
|
init_dev_server_scanner();
|
|
@@ -111887,12 +111879,12 @@ function skillsDir() {
|
|
|
111887
111879
|
return skillsDirPath;
|
|
111888
111880
|
}
|
|
111889
111881
|
function targetFromHome(envName, fallbackDir) {
|
|
111890
|
-
const home = process.env[envName] || path114.join(
|
|
111882
|
+
const home = process.env[envName] || path114.join(os21.homedir(), fallbackDir);
|
|
111891
111883
|
return path114.join(home, "skills");
|
|
111892
111884
|
}
|
|
111893
111885
|
function codexTargets() {
|
|
111894
111886
|
const homes = /* @__PURE__ */ new Map();
|
|
111895
|
-
const userHome = process.env.HOME ||
|
|
111887
|
+
const userHome = process.env.HOME || os21.homedir();
|
|
111896
111888
|
const primaryCodexHome = process.env.CODEX_HOME || path114.join(userHome, ".codex");
|
|
111897
111889
|
homes.set(path114.resolve(primaryCodexHome), "codex");
|
|
111898
111890
|
const tmCodexHomes = process.env.TM_CODEX_HOMES;
|
|
@@ -112020,14 +112012,14 @@ function listSkills() {
|
|
|
112020
112012
|
}
|
|
112021
112013
|
return skills.sort((a, b) => a.name.localeCompare(b.name));
|
|
112022
112014
|
}
|
|
112023
|
-
var import_child_process9, fs90,
|
|
112015
|
+
var import_child_process9, fs90, os21, path114, import_url3, import_meta4, skillsDirPath;
|
|
112024
112016
|
var init_skills = __esm({
|
|
112025
112017
|
"cli/commands/skills.ts"() {
|
|
112026
112018
|
"use strict";
|
|
112027
112019
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
112028
112020
|
import_child_process9 = require("child_process");
|
|
112029
112021
|
fs90 = __toESM(require("fs"), 1);
|
|
112030
|
-
|
|
112022
|
+
os21 = __toESM(require("os"), 1);
|
|
112031
112023
|
path114 = __toESM(require("path"), 1);
|
|
112032
112024
|
import_url3 = require("url");
|
|
112033
112025
|
init_browser();
|
|
@@ -121153,7 +121145,7 @@ async function connectBridgeForOpen(preferredPort, explicitPort, resources, runt
|
|
|
121153
121145
|
}
|
|
121154
121146
|
const { executable, prefixArgs } = rnxSelfInvocation();
|
|
121155
121147
|
const bridgeLogPath = import_node_path139.default.join(
|
|
121156
|
-
|
|
121148
|
+
import_node_os26.default.tmpdir(),
|
|
121157
121149
|
`peach-bridge-${Date.now()}-${process.pid}.log`
|
|
121158
121150
|
);
|
|
121159
121151
|
const bridgeLogFd = import_node_fs138.default.openSync(bridgeLogPath, "a");
|
|
@@ -121338,8 +121330,8 @@ function unreachableBridgeMessage(port, handshake, timeoutMs) {
|
|
|
121338
121330
|
return `peach open: requested bridge port ${port} is held by another program, not a peach bridge. stop it or pass a free port with --port <port>.`;
|
|
121339
121331
|
}
|
|
121340
121332
|
if (handshake === "timeout") {
|
|
121341
|
-
const cores = Math.max(1,
|
|
121342
|
-
const load2 =
|
|
121333
|
+
const cores = Math.max(1, import_node_os26.default.cpus().length);
|
|
121334
|
+
const load2 = import_node_os26.default.loadavg()[0];
|
|
121343
121335
|
if (load2 >= cores) {
|
|
121344
121336
|
return `peach open: requested bridge port ${port} did not finish its handshake within ${timeoutMs / 1e3}s while load average was ${load2.toFixed(1)} on ${cores} cores.`;
|
|
121345
121337
|
}
|
|
@@ -121406,7 +121398,7 @@ async function stagePrebuiltBundle(file, bridgePort, prepareSource) {
|
|
|
121406
121398
|
}
|
|
121407
121399
|
function normalizeReplacementPath(filePath) {
|
|
121408
121400
|
if (filePath.startsWith("~/")) {
|
|
121409
|
-
return import_node_path139.default.join(
|
|
121401
|
+
return import_node_path139.default.join(import_node_os26.default.homedir(), filePath.slice(2));
|
|
121410
121402
|
}
|
|
121411
121403
|
if (import_node_path139.default.isAbsolute(filePath)) return filePath;
|
|
121412
121404
|
return import_node_path139.default.resolve(process.cwd(), filePath);
|
|
@@ -122579,7 +122571,7 @@ async function openSim(args, opts) {
|
|
|
122579
122571
|
});
|
|
122580
122572
|
const attached = await bridge.listSims().then((sims) => sims.find((sim) => sim.id === match.id)?.readyState ?? "gone").catch(() => "unknown");
|
|
122581
122573
|
console.error(
|
|
122582
|
-
` sim ${match.id} bridge state: ${attached}; host load ${
|
|
122574
|
+
` sim ${match.id} bridge state: ${attached}; host load ${import_node_os26.default.loadavg()[0].toFixed(1)} on ${import_node_os26.default.cpus().length} cpus (a loaded host slows a cold first bundle past the budget; a sim that is open but never answers has a blocked page)`
|
|
122583
122575
|
);
|
|
122584
122576
|
await printBridgeFailureDiagnostics(bridge, {
|
|
122585
122577
|
errorsCommand: `peach get errors 5${hint}`,
|
|
@@ -122926,7 +122918,7 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
122926
122918
|
bridge.close();
|
|
122927
122919
|
}
|
|
122928
122920
|
}
|
|
122929
|
-
var import_node_child_process56, import_node_fs138, import_node_http5, import_node_https2, import_node_net,
|
|
122921
|
+
var import_node_child_process56, import_node_fs138, import_node_http5, import_node_https2, import_node_net, import_node_os26, import_node_path139, 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;
|
|
122930
122922
|
var init_control = __esm({
|
|
122931
122923
|
"cli/commands/control.ts"() {
|
|
122932
122924
|
"use strict";
|
|
@@ -122936,7 +122928,7 @@ var init_control = __esm({
|
|
|
122936
122928
|
import_node_http5 = __toESM(require("node:http"), 1);
|
|
122937
122929
|
import_node_https2 = __toESM(require("node:https"), 1);
|
|
122938
122930
|
import_node_net = __toESM(require("node:net"), 1);
|
|
122939
|
-
|
|
122931
|
+
import_node_os26 = __toESM(require("node:os"), 1);
|
|
122940
122932
|
import_node_path139 = __toESM(require("node:path"), 1);
|
|
122941
122933
|
init_src();
|
|
122942
122934
|
import_ws7 = require("ws");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (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;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2029 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { execFile } from 'node:child_process'
|
|
2
2
|
import fs from 'node:fs/promises'
|
|
3
3
|
import { createRequire } from 'node:module'
|
|
4
|
-
import os from 'node:os'
|
|
5
4
|
import path from 'node:path'
|
|
6
5
|
import { promisify } from 'node:util'
|
|
7
6
|
import { stageExpoWidgetAssets } from './expo-widget-assets'
|
|
@@ -25,28 +24,25 @@ export async function buildExpoWidgetsBundle(
|
|
|
25
24
|
return null
|
|
26
25
|
throw error
|
|
27
26
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
} finally {
|
|
49
|
-
await fs.rm(temporary, { recursive: true, force: true })
|
|
27
|
+
// xcode's build phase passes the project root only. expo-widgets 57 forwards
|
|
28
|
+
// every extra argument to `expo export:embed`, which rejects `ios` and an
|
|
29
|
+
// output path. 58 reads an optional platform and output and otherwise writes
|
|
30
|
+
// the same package bundle, so one root argument covers both.
|
|
31
|
+
const packageDir = path.dirname(manifest)
|
|
32
|
+
await promisify(execFile)(
|
|
33
|
+
process.env.NODE_BINARY || 'node',
|
|
34
|
+
[path.join(packageDir, 'scripts/build-bundle.mjs'), appRoot],
|
|
35
|
+
{ cwd: appRoot, maxBuffer: 16 * 1024 * 1024 },
|
|
36
|
+
)
|
|
37
|
+
const catalog = await stageExpoWidgetAssets(appRoot, origin)
|
|
38
|
+
return {
|
|
39
|
+
metadata: {
|
|
40
|
+
runtimeBundle: await fs.readFile(
|
|
41
|
+
path.join(packageDir, 'bundle/build/ExpoWidgets.bundle'),
|
|
42
|
+
'utf8',
|
|
43
|
+
),
|
|
44
|
+
images: catalog?.images ?? {},
|
|
45
|
+
},
|
|
50
46
|
}
|
|
51
47
|
}
|
|
52
48
|
|