peachsim 0.1.772 → 0.1.773
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/desktop.ts +1 -1
- package/cli/commands/install-desktop.ts +17 -6
- package/cli/drivers/playwright-sim-host.ts +59 -2
- package/cli/drivers/playwright.ts +28 -7
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +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.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +116 -74
- 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/package.json +1 -1
- package/src/desktop-host-delivery.ts +47 -8
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -40053,6 +40053,14 @@ var init_bridge_diagnostics = __esm({
|
|
|
40053
40053
|
});
|
|
40054
40054
|
|
|
40055
40055
|
// src/desktop-host-delivery.ts
|
|
40056
|
+
function desktopHostPlatform() {
|
|
40057
|
+
if (process.platform === "darwin" && process.arch === "arm64") return "mac-arm64";
|
|
40058
|
+
if (process.platform === "linux" && process.arch === "x64") return "linux-x64";
|
|
40059
|
+
return null;
|
|
40060
|
+
}
|
|
40061
|
+
function desktopHostExecutable() {
|
|
40062
|
+
return desktopHostPlatform() === "linux-x64" ? "bin/node" : "PeachDesktop.app/Contents/MacOS/PeachDesktop";
|
|
40063
|
+
}
|
|
40056
40064
|
function bundleValue(app, key) {
|
|
40057
40065
|
const read = (0, import_node_child_process12.spawnSync)(
|
|
40058
40066
|
"plutil",
|
|
@@ -40065,16 +40073,36 @@ function isNativeHostBundle(app) {
|
|
|
40065
40073
|
return process.platform === "darwin" && bundleValue(app, "CFBundleIdentifier") === HOST_BUNDLE_ID;
|
|
40066
40074
|
}
|
|
40067
40075
|
function placedHostVersion() {
|
|
40076
|
+
if (desktopHostPlatform() === "linux-x64") {
|
|
40077
|
+
try {
|
|
40078
|
+
const version = import_node_fs35.default.readFileSync(import_node_path37.default.join(desktopHostsDir(), "active"), "utf8").trim();
|
|
40079
|
+
return /^\d+\.\d+$/.test(version) && import_node_fs35.default.existsSync(import_node_path37.default.join(desktopHostDir(version), desktopHostExecutable())) ? version : null;
|
|
40080
|
+
} catch {
|
|
40081
|
+
return null;
|
|
40082
|
+
}
|
|
40083
|
+
}
|
|
40068
40084
|
return isNativeHostBundle(MAC_HOST_APP) ? bundleValue(MAC_HOST_APP, "CFBundleVersion") : null;
|
|
40069
40085
|
}
|
|
40070
40086
|
function activeDesktopHostApp() {
|
|
40071
|
-
return placedHostVersion() ? MAC_HOST_APP : null;
|
|
40087
|
+
return process.platform === "darwin" && placedHostVersion() ? MAC_HOST_APP : null;
|
|
40088
|
+
}
|
|
40089
|
+
function headlessHostCommand() {
|
|
40090
|
+
if (desktopHostPlatform() !== "linux-x64") return null;
|
|
40091
|
+
const version = placedHostVersion();
|
|
40092
|
+
if (!version) return null;
|
|
40093
|
+
const dir = desktopHostDir(version);
|
|
40094
|
+
return [
|
|
40095
|
+
import_node_path37.default.join(dir, "bin/node"),
|
|
40096
|
+
"--experimental-vm-modules",
|
|
40097
|
+
import_node_path37.default.join(dir, "node/host.mjs")
|
|
40098
|
+
];
|
|
40072
40099
|
}
|
|
40073
|
-
var import_node_child_process12, import_node_path37, MAC_HOST_APP, HOST_BUNDLE_ID;
|
|
40100
|
+
var import_node_child_process12, import_node_fs35, import_node_path37, MAC_HOST_APP, HOST_BUNDLE_ID;
|
|
40074
40101
|
var init_desktop_host_delivery = __esm({
|
|
40075
40102
|
"src/desktop-host-delivery.ts"() {
|
|
40076
40103
|
"use strict";
|
|
40077
40104
|
import_node_child_process12 = require("node:child_process");
|
|
40105
|
+
import_node_fs35 = __toESM(require("node:fs"), 1);
|
|
40078
40106
|
import_node_path37 = __toESM(require("node:path"), 1);
|
|
40079
40107
|
init_src();
|
|
40080
40108
|
init_home_paths();
|
|
@@ -41623,7 +41651,7 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
41623
41651
|
}
|
|
41624
41652
|
const lock = parseLinuxBrowserLibsLock(linux_browser_libs_lock_default);
|
|
41625
41653
|
const dir = (0, import_node_path38.join)(rnxHomeDir(), "linux-libs", `${lock.id}-${arch}`);
|
|
41626
|
-
if (!(0,
|
|
41654
|
+
if (!(0, import_node_fs36.existsSync)((0, import_node_path38.join)(dir, LINUX_BROWSER_LIBS_MARKER))) {
|
|
41627
41655
|
const url = `${DEFAULT_CLI_RELEASE_ORIGIN}/${linuxBrowserLibsKey(lock.id, arch)}`;
|
|
41628
41656
|
process.stderr.write(
|
|
41629
41657
|
`peach: this system lacks ${missing.length} shared libraries ${browser} links; downloading them\u2026
|
|
@@ -41661,12 +41689,12 @@ async function ensureLinuxBrowserLibraries(executablePath, browser) {
|
|
|
41661
41689
|
}
|
|
41662
41690
|
return { ok: true, libraryPath };
|
|
41663
41691
|
}
|
|
41664
|
-
var import_node_child_process13,
|
|
41692
|
+
var import_node_child_process13, import_node_fs36, import_node_path38, LINUX_BROWSER_LIBS_ARCHES, LINUX_BROWSER_LIBS_MARKER;
|
|
41665
41693
|
var init_linux_browser_libs = __esm({
|
|
41666
41694
|
"cli/drivers/linux-browser-libs.ts"() {
|
|
41667
41695
|
"use strict";
|
|
41668
41696
|
import_node_child_process13 = require("node:child_process");
|
|
41669
|
-
|
|
41697
|
+
import_node_fs36 = require("node:fs");
|
|
41670
41698
|
import_node_path38 = require("node:path");
|
|
41671
41699
|
init_src();
|
|
41672
41700
|
init_home_paths();
|
|
@@ -41691,13 +41719,13 @@ function resolvePlaywright() {
|
|
|
41691
41719
|
try {
|
|
41692
41720
|
const modulePath = requireFromRoot.resolve(spec);
|
|
41693
41721
|
const packageJsonPath = requireFromRoot.resolve(`${spec}/package.json`);
|
|
41694
|
-
const parsed = JSON.parse((0,
|
|
41722
|
+
const parsed = JSON.parse((0, import_node_fs37.readFileSync)(packageJsonPath, "utf8"));
|
|
41695
41723
|
if (!isRecord(parsed) || typeof parsed.version !== "string") continue;
|
|
41696
41724
|
const corePackagePath = (0, import_node_module6.createRequire)(modulePath).resolve(
|
|
41697
41725
|
"playwright-core/package.json"
|
|
41698
41726
|
);
|
|
41699
41727
|
const cliPath = (0, import_node_path39.join)((0, import_node_path39.dirname)(corePackagePath), "cli.js");
|
|
41700
|
-
if (!(0,
|
|
41728
|
+
if (!(0, import_node_fs37.existsSync)(cliPath)) continue;
|
|
41701
41729
|
return {
|
|
41702
41730
|
spec,
|
|
41703
41731
|
modulePath,
|
|
@@ -41768,7 +41796,7 @@ function probeBrowser(resolved, env) {
|
|
|
41768
41796
|
return {
|
|
41769
41797
|
ok: true,
|
|
41770
41798
|
executablePath: parsed.executablePath,
|
|
41771
|
-
exists: parsed.exists && (0,
|
|
41799
|
+
exists: parsed.exists && (0, import_node_fs37.existsSync)(parsed.executablePath)
|
|
41772
41800
|
};
|
|
41773
41801
|
} catch (error) {
|
|
41774
41802
|
return {
|
|
@@ -41836,12 +41864,12 @@ ${detail}` : ""}`
|
|
|
41836
41864
|
libraryPath: libraries.libraryPath
|
|
41837
41865
|
};
|
|
41838
41866
|
}
|
|
41839
|
-
var import_node_child_process14,
|
|
41867
|
+
var import_node_child_process14, import_node_fs37, import_node_module6, import_node_path39;
|
|
41840
41868
|
var init_playwright_provisioning = __esm({
|
|
41841
41869
|
"cli/drivers/playwright-provisioning.ts"() {
|
|
41842
41870
|
"use strict";
|
|
41843
41871
|
import_node_child_process14 = require("node:child_process");
|
|
41844
|
-
|
|
41872
|
+
import_node_fs37 = require("node:fs");
|
|
41845
41873
|
import_node_module6 = require("node:module");
|
|
41846
41874
|
import_node_path39 = require("node:path");
|
|
41847
41875
|
init_src();
|
|
@@ -41881,6 +41909,18 @@ function resolveUserDataDir(opts) {
|
|
|
41881
41909
|
}
|
|
41882
41910
|
return "";
|
|
41883
41911
|
}
|
|
41912
|
+
function freePort() {
|
|
41913
|
+
return new Promise((resolve10, reject) => {
|
|
41914
|
+
const server = (0, import_net2.createServer)();
|
|
41915
|
+
server.once("error", reject);
|
|
41916
|
+
server.listen(0, "127.0.0.1", () => {
|
|
41917
|
+
const address = server.address();
|
|
41918
|
+
server.close(
|
|
41919
|
+
() => typeof address === "object" && address ? resolve10(address.port) : reject(new Error("no port assigned"))
|
|
41920
|
+
);
|
|
41921
|
+
});
|
|
41922
|
+
});
|
|
41923
|
+
}
|
|
41884
41924
|
async function launch(opts) {
|
|
41885
41925
|
if (!opts.url) {
|
|
41886
41926
|
return { launched: false, message: "playwright driver requires a target url" };
|
|
@@ -41928,17 +41968,16 @@ async function launch(opts) {
|
|
|
41928
41968
|
}
|
|
41929
41969
|
}
|
|
41930
41970
|
const playwrightEnv = { ...process.env };
|
|
41931
|
-
const
|
|
41932
|
-
|
|
41933
|
-
opts.headless ?? true,
|
|
41934
|
-
playwrightEnv
|
|
41935
|
-
);
|
|
41971
|
+
const headless = opts.headless ?? true;
|
|
41972
|
+
const provisioning = await ensurePlaywrightBrowser(resolved, headless, playwrightEnv);
|
|
41936
41973
|
if (!provisioning.ok) {
|
|
41937
41974
|
return {
|
|
41938
41975
|
launched: false,
|
|
41939
41976
|
message: `playwright browser provisioning failed: ${provisioning.message}`
|
|
41940
41977
|
};
|
|
41941
41978
|
}
|
|
41979
|
+
const hostCommand = headless ? headlessHostCommand() : null;
|
|
41980
|
+
const cdpPort = opts.cdpPort ?? (hostCommand ? await freePort() : void 0);
|
|
41942
41981
|
const errLog = (0, import_path6.join)((0, import_os2.tmpdir)(), playwrightHostLogName(Date.now(), process.pid));
|
|
41943
41982
|
const connectAckFile = `${errLog}.connected`;
|
|
41944
41983
|
const errFd = (0, import_fs7.openSync)(errLog, "a");
|
|
@@ -41957,9 +41996,10 @@ async function launch(opts) {
|
|
|
41957
41996
|
SOOTSIM_PW_URL: targetUrl.href,
|
|
41958
41997
|
PEACH_PW_FETCH_PROXY_SPKI: fetchProxySpki,
|
|
41959
41998
|
SOOTSIM_PW_BRIDGE_PORT: opts.bridgePort ? String(opts.bridgePort) : "",
|
|
41960
|
-
SOOTSIM_PW_HEADLESS:
|
|
41999
|
+
SOOTSIM_PW_HEADLESS: headless ? "1" : "0",
|
|
41961
42000
|
SOOTSIM_PW_USERDATADIR: resolveUserDataDir(opts),
|
|
41962
|
-
SOOTSIM_PW_CDP_PORT:
|
|
42001
|
+
SOOTSIM_PW_CDP_PORT: cdpPort ? String(cdpPort) : "",
|
|
42002
|
+
PEACH_PW_HOST_COMMAND: hostCommand ? JSON.stringify(hostCommand) : "",
|
|
41963
42003
|
// when the caller passed no viewport, leave the inherited
|
|
41964
42004
|
// SOOTSIM_PW_VIEWPORT (from playwrightEnv) alone instead of
|
|
41965
42005
|
// clobbering it with '' — the driver reads it as its own default.
|
|
@@ -42010,15 +42050,17 @@ ${hint}` : ""}`
|
|
|
42010
42050
|
(0, import_fs7.closeSync)(errFd);
|
|
42011
42051
|
}
|
|
42012
42052
|
}
|
|
42013
|
-
var import_child_process6, import_fs7, import_os2, import_path6, playwrightDriver;
|
|
42053
|
+
var import_child_process6, import_fs7, import_net2, import_os2, import_path6, playwrightDriver;
|
|
42014
42054
|
var init_playwright = __esm({
|
|
42015
42055
|
"cli/drivers/playwright.ts"() {
|
|
42016
42056
|
"use strict";
|
|
42017
42057
|
import_child_process6 = require("child_process");
|
|
42018
42058
|
import_fs7 = require("fs");
|
|
42059
|
+
import_net2 = require("net");
|
|
42019
42060
|
import_os2 = require("os");
|
|
42020
42061
|
import_path6 = require("path");
|
|
42021
42062
|
init_bridge_constants();
|
|
42063
|
+
init_desktop_host_delivery();
|
|
42022
42064
|
init_playwright_host_log();
|
|
42023
42065
|
init_profiles();
|
|
42024
42066
|
init_internal_child();
|
|
@@ -42330,9 +42372,9 @@ function getSkillsDir() {
|
|
|
42330
42372
|
const dir = path32.join(rnxHomeDir(), "skills", getCliVersion());
|
|
42331
42373
|
for (const [file, body] of Object.entries(__PEACH_BUNDLED_SKILLS__)) {
|
|
42332
42374
|
const target = path32.join(dir, file);
|
|
42333
|
-
if (
|
|
42334
|
-
|
|
42335
|
-
|
|
42375
|
+
if (fs28.existsSync(target)) continue;
|
|
42376
|
+
fs28.mkdirSync(path32.dirname(target), { recursive: true });
|
|
42377
|
+
fs28.writeFileSync(target, body);
|
|
42336
42378
|
}
|
|
42337
42379
|
return dir;
|
|
42338
42380
|
}
|
|
@@ -42368,7 +42410,7 @@ function primaryCheckoutPath(dir) {
|
|
|
42368
42410
|
}
|
|
42369
42411
|
if (path32.basename(common) !== ".git") return dir;
|
|
42370
42412
|
const primary = path32.join(path32.dirname(common), path32.relative(top, dir));
|
|
42371
|
-
return
|
|
42413
|
+
return fs28.existsSync(primary) ? primary : dir;
|
|
42372
42414
|
}
|
|
42373
42415
|
function skillsDir() {
|
|
42374
42416
|
skillsDirPath ??= getSkillsDir();
|
|
@@ -42389,7 +42431,7 @@ function hasInstalledPeachSkills() {
|
|
|
42389
42431
|
(file) => /^([^/]+)\/SKILL\.md$/.exec(file)?.[1] ?? []
|
|
42390
42432
|
) : listSkills().map((skill7) => skill7.name);
|
|
42391
42433
|
return defaultAgentTargets().some(
|
|
42392
|
-
({ dir }) => names.some((name2) =>
|
|
42434
|
+
({ dir }) => names.some((name2) => fs28.existsSync(path32.join(dir, name2, "SKILL.md")))
|
|
42393
42435
|
);
|
|
42394
42436
|
}
|
|
42395
42437
|
function parseSkillFrontmatter(content) {
|
|
@@ -42432,24 +42474,24 @@ function readFrontmatterField(frontmatter, field) {
|
|
|
42432
42474
|
return null;
|
|
42433
42475
|
}
|
|
42434
42476
|
function listSkills() {
|
|
42435
|
-
if (!
|
|
42477
|
+
if (!fs28.existsSync(skillsDir())) return [];
|
|
42436
42478
|
const skills = [];
|
|
42437
|
-
for (const entry of
|
|
42479
|
+
for (const entry of fs28.readdirSync(skillsDir())) {
|
|
42438
42480
|
const skillMd = path32.join(skillsDir(), entry, "SKILL.md");
|
|
42439
|
-
if (!
|
|
42440
|
-
const meta = parseSkillFrontmatter(
|
|
42481
|
+
if (!fs28.existsSync(skillMd)) continue;
|
|
42482
|
+
const meta = parseSkillFrontmatter(fs28.readFileSync(skillMd, "utf8"));
|
|
42441
42483
|
if (meta) {
|
|
42442
42484
|
skills.push({ name: entry, description: meta.description });
|
|
42443
42485
|
}
|
|
42444
42486
|
}
|
|
42445
42487
|
return skills.sort((a, b) => a.name.localeCompare(b.name));
|
|
42446
42488
|
}
|
|
42447
|
-
var import_child_process7,
|
|
42489
|
+
var import_child_process7, fs28, os8, path32, import_url3, import_meta4, skillsDirPath;
|
|
42448
42490
|
var init_skills = __esm({
|
|
42449
42491
|
"cli/commands/skills.ts"() {
|
|
42450
42492
|
"use strict";
|
|
42451
42493
|
import_child_process7 = require("child_process");
|
|
42452
|
-
|
|
42494
|
+
fs28 = __toESM(require("fs"), 1);
|
|
42453
42495
|
os8 = __toESM(require("os"), 1);
|
|
42454
42496
|
path32 = __toESM(require("path"), 1);
|
|
42455
42497
|
import_url3 = require("url");
|
|
@@ -42938,7 +42980,7 @@ function assertExplicitBridgeLock(preferredPort, explicitPort, lock) {
|
|
|
42938
42980
|
async function ensureRuntimeForOpen() {
|
|
42939
42981
|
if (resolveDevCheckoutRuntimeRoot()) return;
|
|
42940
42982
|
const active = readActiveRuntime();
|
|
42941
|
-
if (active &&
|
|
42983
|
+
if (active && import_node_fs38.default.existsSync(runtimeDir(active))) return;
|
|
42942
42984
|
console.error(" installing peach engine runtime...");
|
|
42943
42985
|
const { runRuntime: runRuntime2 } = await Promise.resolve().then(() => (init_runtime(), runtime_exports));
|
|
42944
42986
|
await runRuntime2(["install"], {});
|
|
@@ -43114,7 +43156,7 @@ function parseOpenRuntimeConfig(args) {
|
|
|
43114
43156
|
}
|
|
43115
43157
|
const moduleName = raw2.slice(0, eqIndex).trim();
|
|
43116
43158
|
const filePath = normalizeReplacementPath(raw2.slice(eqIndex + 1).trim());
|
|
43117
|
-
if (!
|
|
43159
|
+
if (!import_node_fs38.default.existsSync(filePath)) {
|
|
43118
43160
|
console.error(` peach open: replacement file not found: ${filePath}`);
|
|
43119
43161
|
rnxExit(1);
|
|
43120
43162
|
}
|
|
@@ -43145,7 +43187,7 @@ async function resolveAppProjectForBundleUrl(bundleUrl) {
|
|
|
43145
43187
|
return advertisedRoot ? resolveAppProject(advertisedRoot) : null;
|
|
43146
43188
|
}
|
|
43147
43189
|
async function ensureConfiguredRuntime(version) {
|
|
43148
|
-
if (
|
|
43190
|
+
if (import_node_fs38.default.existsSync(import_node_path40.default.join(runtimeDir(version), "index.html"))) return;
|
|
43149
43191
|
console.error(` installing configured engine runtime ${version}...`);
|
|
43150
43192
|
const result = await rnxRuntime.install({
|
|
43151
43193
|
version,
|
|
@@ -43481,7 +43523,7 @@ function playwrightHostPidForSim(sim) {
|
|
|
43481
43523
|
function signalDriverLaunchConnected(result) {
|
|
43482
43524
|
if (!result.connectAckFile) return false;
|
|
43483
43525
|
try {
|
|
43484
|
-
|
|
43526
|
+
import_node_fs38.default.writeFileSync(
|
|
43485
43527
|
result.connectAckFile,
|
|
43486
43528
|
`${JSON.stringify({ connectedAt: Date.now(), pid: result.pid ?? null })}
|
|
43487
43529
|
`,
|
|
@@ -43495,7 +43537,7 @@ function signalDriverLaunchConnected(result) {
|
|
|
43495
43537
|
function readUnservedUrl(result) {
|
|
43496
43538
|
if (!result.diagnosticLogPath) return null;
|
|
43497
43539
|
try {
|
|
43498
|
-
const detail =
|
|
43540
|
+
const detail = import_node_fs38.default.readFileSync(result.diagnosticLogPath, "utf8");
|
|
43499
43541
|
const match = detail.match(/\[unserved\] nothing serves (\S+)/);
|
|
43500
43542
|
return match ? match[1] : null;
|
|
43501
43543
|
} catch {
|
|
@@ -43505,7 +43547,7 @@ function readUnservedUrl(result) {
|
|
|
43505
43547
|
function printDriverDiagnosticLogTail(result) {
|
|
43506
43548
|
if (!result.diagnosticLogPath) return;
|
|
43507
43549
|
try {
|
|
43508
|
-
const detail =
|
|
43550
|
+
const detail = import_node_fs38.default.readFileSync(result.diagnosticLogPath, "utf8").trim();
|
|
43509
43551
|
if (!detail) {
|
|
43510
43552
|
console.error(` ${import_node_path40.default.basename(result.diagnosticLogPath)} was empty`);
|
|
43511
43553
|
return;
|
|
@@ -44516,12 +44558,12 @@ async function runCloseCommand(args, opts = {}) {
|
|
|
44516
44558
|
bridge.close();
|
|
44517
44559
|
}
|
|
44518
44560
|
}
|
|
44519
|
-
var import_node_child_process15,
|
|
44561
|
+
var import_node_child_process15, import_node_fs38, import_node_os10, import_node_path40, import_app_catalog_wire, import_devices2, import_ws4, DEFAULT_DRIVER_CONNECT_TIMEOUT_MS, DRIVER_CONNECT_INTERVAL_MS, DRIVER_CONNECT_HOST_GRACE_MS, OPEN_BRIDGE_SPAWN_TIMEOUT_MS, SHELL_APPS, DEV_BUNDLE_RESOLVE_ATTEMPTS, DEV_BUNDLE_RESOLVE_INTERVAL_MS;
|
|
44520
44562
|
var init_control = __esm({
|
|
44521
44563
|
"cli/commands/control.ts"() {
|
|
44522
44564
|
"use strict";
|
|
44523
44565
|
import_node_child_process15 = require("node:child_process");
|
|
44524
|
-
|
|
44566
|
+
import_node_fs38 = __toESM(require("node:fs"), 1);
|
|
44525
44567
|
import_node_os10 = __toESM(require("node:os"), 1);
|
|
44526
44568
|
import_node_path40 = __toESM(require("node:path"), 1);
|
|
44527
44569
|
import_app_catalog_wire = require("peach-engine/engine/app-catalog-wire");
|
|
@@ -46041,11 +46083,11 @@ function normalizeBareStringStep(verb) {
|
|
|
46041
46083
|
function parseFlowSteps(content) {
|
|
46042
46084
|
return parseFlowFile(content).steps;
|
|
46043
46085
|
}
|
|
46044
|
-
var
|
|
46086
|
+
var fs31, path34, import_devices4, import_proof_frame, DEFAULT_TIMEOUT, ASSERTION_LOOKUP_MS, FLOW_TIMEOUT_SCALE, scaledTimeout, MAESTRO_SELECTOR_KEYS, SELECTOR_FILTER_KEYS, UNSUPPORTED_SELECTOR_KEYS, ACCESSIBILITY_SELECTOR_KEYS, ACCESSIBILITY_TRAIT_FILTERS, MAESTRO_PERMISSION_KINDS, MAESTRO_PERMISSION_STATUS, SootSimBridgeFlowRunner;
|
|
46045
46087
|
var init_bridge_flow_runner = __esm({
|
|
46046
46088
|
"cli/bridge-flow-runner.ts"() {
|
|
46047
46089
|
"use strict";
|
|
46048
|
-
|
|
46090
|
+
fs31 = __toESM(require("fs"), 1);
|
|
46049
46091
|
path34 = __toESM(require("path"), 1);
|
|
46050
46092
|
import_devices4 = require("peach-engine/settings/devices");
|
|
46051
46093
|
import_proof_frame = __toESM(require_proof_frame(), 1);
|
|
@@ -46371,14 +46413,14 @@ var init_bridge_flow_runner = __esm({
|
|
|
46371
46413
|
if (chunks.length === 0) {
|
|
46372
46414
|
throw new Error("recording requested but no video buffer was produced");
|
|
46373
46415
|
}
|
|
46374
|
-
|
|
46416
|
+
fs31.mkdirSync(this.opts.recordingOutputDir, { recursive: true });
|
|
46375
46417
|
const videoMime = stopped.mime || this.opts.recordingFormat || "video/webm";
|
|
46376
46418
|
const extension = videoMime.includes("mp4") ? "mp4" : "webm";
|
|
46377
46419
|
const outputPath = path34.join(
|
|
46378
46420
|
this.opts.recordingOutputDir,
|
|
46379
46421
|
`peach-${Date.now()}.${extension}`
|
|
46380
46422
|
);
|
|
46381
|
-
|
|
46423
|
+
fs31.writeFileSync(outputPath, Buffer.concat(chunks));
|
|
46382
46424
|
return outputPath;
|
|
46383
46425
|
}
|
|
46384
46426
|
async waitForRecordingTail(opts) {
|
|
@@ -47054,7 +47096,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
47054
47096
|
flowDir: this.opts.flowDir
|
|
47055
47097
|
}
|
|
47056
47098
|
);
|
|
47057
|
-
|
|
47099
|
+
fs31.mkdirSync(path34.dirname(outputPath), { recursive: true });
|
|
47058
47100
|
const layers = spec.layers ?? this.opts.screenshotLayers;
|
|
47059
47101
|
const screenshotRequest = {
|
|
47060
47102
|
type: "screenshot",
|
|
@@ -47089,11 +47131,11 @@ var init_bridge_flow_runner = __esm({
|
|
|
47089
47131
|
throw new Error("could not read current device model for framed screenshot");
|
|
47090
47132
|
}
|
|
47091
47133
|
const framed = await composeFramedScreenshot(rawBuffer, model);
|
|
47092
|
-
|
|
47134
|
+
fs31.writeFileSync(outputPath, framed);
|
|
47093
47135
|
console.log(`[flow] screenshot: ${outputPath} (frame: ${model})`);
|
|
47094
47136
|
return outputPath;
|
|
47095
47137
|
}
|
|
47096
|
-
|
|
47138
|
+
fs31.writeFileSync(outputPath, rawBuffer);
|
|
47097
47139
|
console.log(`[flow] screenshot: ${outputPath}`);
|
|
47098
47140
|
return outputPath;
|
|
47099
47141
|
}
|
|
@@ -47115,10 +47157,10 @@ var init_bridge_flow_runner = __esm({
|
|
|
47115
47157
|
// + a11y tree + console errors/warnings + failed network requests +
|
|
47116
47158
|
// shell state, all under one directory so post-mortem is one grep away.
|
|
47117
47159
|
async captureFailureBundle(outputDir, context) {
|
|
47118
|
-
|
|
47160
|
+
fs31.mkdirSync(outputDir, { recursive: true });
|
|
47119
47161
|
const write = (name2, content) => {
|
|
47120
47162
|
try {
|
|
47121
|
-
|
|
47163
|
+
fs31.writeFileSync(path34.join(outputDir, name2), content);
|
|
47122
47164
|
} catch {
|
|
47123
47165
|
}
|
|
47124
47166
|
};
|
|
@@ -47712,7 +47754,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
47712
47754
|
const spec = typeof target === "string" ? { file: target } : target;
|
|
47713
47755
|
if (!spec.file) throw new Error("runScript requires a file");
|
|
47714
47756
|
const scriptPath = path34.resolve(this.opts.flowDir, spec.file);
|
|
47715
|
-
const source =
|
|
47757
|
+
const source = fs31.readFileSync(scriptPath, "utf8");
|
|
47716
47758
|
this.js.evaluate(source, { env: spec.env });
|
|
47717
47759
|
console.log(`[flow] runScript: ${spec.file} done`);
|
|
47718
47760
|
}
|
|
@@ -48073,7 +48115,7 @@ var init_bridge_flow_runner = __esm({
|
|
|
48073
48115
|
}
|
|
48074
48116
|
if (file) {
|
|
48075
48117
|
const flowPath = path34.resolve(this.opts.flowDir, file);
|
|
48076
|
-
const flowContent =
|
|
48118
|
+
const flowContent = fs31.readFileSync(flowPath, "utf8");
|
|
48077
48119
|
const { frontmatter } = parseFlowFile(flowContent);
|
|
48078
48120
|
if (frontmatter.env && typeof frontmatter.env === "object") {
|
|
48079
48121
|
this.js.defineVariables(frontmatter.env);
|
|
@@ -48250,7 +48292,7 @@ __export(registry_exports, {
|
|
|
48250
48292
|
skillRegistry: () => skillRegistry
|
|
48251
48293
|
});
|
|
48252
48294
|
module.exports = __toCommonJS(registry_exports);
|
|
48253
|
-
var
|
|
48295
|
+
var fs32 = __toESM(require("fs"), 1);
|
|
48254
48296
|
var path35 = __toESM(require("path"), 1);
|
|
48255
48297
|
|
|
48256
48298
|
// src/skills/builtin/a11y-review.ts
|
|
@@ -48271,7 +48313,7 @@ var skill = {
|
|
|
48271
48313
|
async execute(params, context) {
|
|
48272
48314
|
const { chromium } = await import("playwright");
|
|
48273
48315
|
const path36 = await import("path");
|
|
48274
|
-
const
|
|
48316
|
+
const fs33 = await import("fs");
|
|
48275
48317
|
const browser = await launchReapedChrome((options) => chromium.launch(options), {
|
|
48276
48318
|
headless: true
|
|
48277
48319
|
});
|
|
@@ -48329,8 +48371,8 @@ var skill = {
|
|
|
48329
48371
|
tree: typeof tree === "string" ? tree : JSON.stringify(tree)
|
|
48330
48372
|
};
|
|
48331
48373
|
const reportPath = path36.join(context.outputDir, "a11y-report.json");
|
|
48332
|
-
|
|
48333
|
-
|
|
48374
|
+
fs33.mkdirSync(path36.dirname(reportPath), { recursive: true });
|
|
48375
|
+
fs33.writeFileSync(reportPath, JSON.stringify(report, null, 2));
|
|
48334
48376
|
return {
|
|
48335
48377
|
success: issues.filter((i) => i.severity === "error").length === 0,
|
|
48336
48378
|
message: `${report.errors} errors, ${report.warnings} warnings across ${report.nodeCount} nodes`,
|
|
@@ -48363,14 +48405,14 @@ var skill2 = {
|
|
|
48363
48405
|
}
|
|
48364
48406
|
},
|
|
48365
48407
|
async execute(params, context) {
|
|
48366
|
-
const
|
|
48408
|
+
const fs33 = await import("node:fs");
|
|
48367
48409
|
const path36 = await import("node:path");
|
|
48368
48410
|
const { COMPAT_RESULT_CAVEAT: COMPAT_RESULT_CAVEAT2, formatPackageStatus: formatPackageStatus2, formatScanCounts: formatScanCounts2, scanDeps: scanDeps2 } = await Promise.resolve().then(() => (init_web(), web_exports));
|
|
48369
48411
|
const packagePath = path36.join(context.projectDir, "package.json");
|
|
48370
|
-
if (!
|
|
48412
|
+
if (!fs33.existsSync(packagePath)) {
|
|
48371
48413
|
return { success: false, message: "No package.json found" };
|
|
48372
48414
|
}
|
|
48373
|
-
const parsed = JSON.parse(
|
|
48415
|
+
const parsed = JSON.parse(fs33.readFileSync(packagePath, "utf8"));
|
|
48374
48416
|
if (!parsed || typeof parsed !== "object") {
|
|
48375
48417
|
return { success: false, message: "package.json is not an object" };
|
|
48376
48418
|
}
|
|
@@ -48383,8 +48425,8 @@ var skill2 = {
|
|
|
48383
48425
|
const packageResult = params.packageName ? scan.packages[0] : void 0;
|
|
48384
48426
|
const message = packageResult ? `${params.packageName}: ${formatPackageStatus2(packageResult)}. ${COMPAT_RESULT_CAVEAT2}` : `${formatScanCounts2(scan)}. ${COMPAT_RESULT_CAVEAT2}`;
|
|
48385
48427
|
const reportPath = path36.join(context.outputDir, "compat-report.json");
|
|
48386
|
-
|
|
48387
|
-
|
|
48428
|
+
fs33.mkdirSync(path36.dirname(reportPath), { recursive: true });
|
|
48429
|
+
fs33.writeFileSync(reportPath, `${JSON.stringify(scan, null, 2)}
|
|
48388
48430
|
`);
|
|
48389
48431
|
return {
|
|
48390
48432
|
success: true,
|
|
@@ -48426,7 +48468,7 @@ var skill3 = {
|
|
|
48426
48468
|
record: { type: "boolean", description: "Record video of the flow" }
|
|
48427
48469
|
},
|
|
48428
48470
|
async execute(params, context) {
|
|
48429
|
-
const
|
|
48471
|
+
const fs33 = await import("fs");
|
|
48430
48472
|
const path36 = await import("path");
|
|
48431
48473
|
const yaml2 = await import("yaml");
|
|
48432
48474
|
const { DEFAULT_SOOTSIM_BRIDGE_PORT: DEFAULT_SOOTSIM_BRIDGE_PORT3 } = await Promise.resolve().then(() => (init_bridge_constants(), bridge_constants_exports));
|
|
@@ -48437,7 +48479,7 @@ var skill3 = {
|
|
|
48437
48479
|
const host2 = new SootSimBridgeHost2({ port: DEFAULT_SOOTSIM_BRIDGE_PORT3 });
|
|
48438
48480
|
host2.start({ silent: true });
|
|
48439
48481
|
try {
|
|
48440
|
-
const flowContent =
|
|
48482
|
+
const flowContent = fs33.readFileSync(params.flowPath, "utf8");
|
|
48441
48483
|
const fmMatch = flowContent.match(/^---\n([\s\S]*?)\n---\n?/);
|
|
48442
48484
|
const stepsBody = fmMatch ? flowContent.slice(fmMatch[0].length) : flowContent;
|
|
48443
48485
|
const steps = yaml2.parse(stepsBody);
|
|
@@ -48534,7 +48576,7 @@ var skill4 = {
|
|
|
48534
48576
|
async execute(params, context) {
|
|
48535
48577
|
const { chromium } = await import("playwright");
|
|
48536
48578
|
const path36 = await import("path");
|
|
48537
|
-
const
|
|
48579
|
+
const fs33 = await import("fs");
|
|
48538
48580
|
const browser = await launchReapedChrome((options) => chromium.launch(options), {
|
|
48539
48581
|
headless: true
|
|
48540
48582
|
});
|
|
@@ -48563,8 +48605,8 @@ var skill4 = {
|
|
|
48563
48605
|
fps: syncCount > 0 ? (syncCount / (duration / 1e3)).toFixed(1) : "0"
|
|
48564
48606
|
};
|
|
48565
48607
|
const reportPath = path36.join(context.outputDir, "perf-report.json");
|
|
48566
|
-
|
|
48567
|
-
|
|
48608
|
+
fs33.mkdirSync(path36.dirname(reportPath), { recursive: true });
|
|
48609
|
+
fs33.writeFileSync(reportPath, JSON.stringify(report, null, 2));
|
|
48568
48610
|
return {
|
|
48569
48611
|
success: true,
|
|
48570
48612
|
message: `${report.fps} fps, ${profile.avgSyncMs?.toFixed(1)}ms avg sync, ${nodeCount} nodes`,
|
|
@@ -48598,7 +48640,7 @@ var skill5 = {
|
|
|
48598
48640
|
async execute(params, context) {
|
|
48599
48641
|
const { chromium } = await import("playwright");
|
|
48600
48642
|
const path36 = await import("path");
|
|
48601
|
-
const
|
|
48643
|
+
const fs33 = await import("fs");
|
|
48602
48644
|
const browser = await launchReapedChrome((options) => chromium.launch(options), {
|
|
48603
48645
|
headless: true
|
|
48604
48646
|
});
|
|
@@ -48607,7 +48649,7 @@ var skill5 = {
|
|
|
48607
48649
|
await page.goto(context.url, { waitUntil: "networkidle" });
|
|
48608
48650
|
await page.waitForTimeout(2e3);
|
|
48609
48651
|
const outputPath = path36.join(context.outputDir, `${params.name}.png`);
|
|
48610
|
-
|
|
48652
|
+
fs33.mkdirSync(path36.dirname(outputPath), { recursive: true });
|
|
48611
48653
|
await page.screenshot({ path: outputPath });
|
|
48612
48654
|
return {
|
|
48613
48655
|
success: true,
|
|
@@ -48649,7 +48691,7 @@ var skill6 = {
|
|
|
48649
48691
|
async execute(params, context) {
|
|
48650
48692
|
const { chromium } = await import("playwright");
|
|
48651
48693
|
const path36 = await import("path");
|
|
48652
|
-
const
|
|
48694
|
+
const fs33 = await import("fs");
|
|
48653
48695
|
const browser = await launchReapedChrome((options) => chromium.launch(options), {
|
|
48654
48696
|
headless: true
|
|
48655
48697
|
});
|
|
@@ -48658,13 +48700,13 @@ var skill6 = {
|
|
|
48658
48700
|
await page.goto(context.url, { waitUntil: "networkidle" });
|
|
48659
48701
|
await page.waitForTimeout(2e3);
|
|
48660
48702
|
const currentPath = path36.join(context.outputDir, `${params.name}-current.png`);
|
|
48661
|
-
|
|
48703
|
+
fs33.mkdirSync(path36.dirname(currentPath), { recursive: true });
|
|
48662
48704
|
await page.screenshot({ path: currentPath });
|
|
48663
48705
|
try {
|
|
48664
48706
|
const { PNG } = await import("pngjs");
|
|
48665
48707
|
const pixelmatch = (await import("pixelmatch")).default;
|
|
48666
|
-
const baseline = PNG.sync.read(
|
|
48667
|
-
const current = PNG.sync.read(
|
|
48708
|
+
const baseline = PNG.sync.read(fs33.readFileSync(params.baseline));
|
|
48709
|
+
const current = PNG.sync.read(fs33.readFileSync(currentPath));
|
|
48668
48710
|
const { width, height } = baseline;
|
|
48669
48711
|
const diff = new PNG({ width, height });
|
|
48670
48712
|
const numDiffPixels = pixelmatch(
|
|
@@ -48676,7 +48718,7 @@ var skill6 = {
|
|
|
48676
48718
|
{ threshold: params.threshold || 0.1 }
|
|
48677
48719
|
);
|
|
48678
48720
|
const diffPath = path36.join(context.outputDir, `${params.name}-diff.png`);
|
|
48679
|
-
|
|
48721
|
+
fs33.writeFileSync(diffPath, PNG.sync.write(diff));
|
|
48680
48722
|
const totalPixels = width * height;
|
|
48681
48723
|
const diffPercent = (numDiffPixels / totalPixels * 100).toFixed(2);
|
|
48682
48724
|
return {
|
|
@@ -48741,9 +48783,9 @@ var skillRegistry = {
|
|
|
48741
48783
|
// load skills from a project manifest (rnx-skills.json)
|
|
48742
48784
|
async loadFromManifest(projectDir) {
|
|
48743
48785
|
const manifestPath = path35.join(projectDir, "rnx-skills.json");
|
|
48744
|
-
if (!
|
|
48786
|
+
if (!fs32.existsSync(manifestPath)) return;
|
|
48745
48787
|
try {
|
|
48746
|
-
const manifest = JSON.parse(
|
|
48788
|
+
const manifest = JSON.parse(fs32.readFileSync(manifestPath, "utf8"));
|
|
48747
48789
|
if (Array.isArray(manifest.skills)) {
|
|
48748
48790
|
for (const entry of manifest.skills) {
|
|
48749
48791
|
if (typeof entry === "string") {
|
|
@@ -48768,9 +48810,9 @@ var skillRegistry = {
|
|
|
48768
48810
|
suggestSkills(projectDir) {
|
|
48769
48811
|
const suggestions = [];
|
|
48770
48812
|
const pkgPath = path35.join(projectDir, "package.json");
|
|
48771
|
-
if (!
|
|
48813
|
+
if (!fs32.existsSync(pkgPath)) return suggestions;
|
|
48772
48814
|
try {
|
|
48773
|
-
const pkg = JSON.parse(
|
|
48815
|
+
const pkg = JSON.parse(fs32.readFileSync(pkgPath, "utf8"));
|
|
48774
48816
|
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
48775
48817
|
if (deps["detox"] || deps["maestro"]) {
|
|
48776
48818
|
suggestions.push("maestro-test");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.773 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|