@swmansion/argent 0.35.1-next.86 → 0.35.1-next.87
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/cli-cmds.mjs +2 -1
- package/dist/client.js +2 -1
- package/dist/mcp-server.mjs +2 -1
- package/dist/tool-server.cjs +38 -16
- package/package.json +2 -2
package/dist/cli-cmds.mjs
CHANGED
|
@@ -33623,7 +33623,8 @@ function tarEnv(env) {
|
|
|
33623
33623
|
async function runTar(archive, args, signal) {
|
|
33624
33624
|
const child = spawn2("tar", [...args, "-f", "-"], {
|
|
33625
33625
|
signal,
|
|
33626
|
-
env: tarEnv(process.env)
|
|
33626
|
+
env: tarEnv(process.env),
|
|
33627
|
+
windowsHide: true
|
|
33627
33628
|
});
|
|
33628
33629
|
let childError;
|
|
33629
33630
|
child.on("error", (err) => {
|
package/dist/client.js
CHANGED
|
@@ -10092,7 +10092,8 @@ function tarEnv(env) {
|
|
|
10092
10092
|
async function runTar(archive, args, signal) {
|
|
10093
10093
|
const child = spawn2("tar", [...args, "-f", "-"], {
|
|
10094
10094
|
signal,
|
|
10095
|
-
env: tarEnv(process.env)
|
|
10095
|
+
env: tarEnv(process.env),
|
|
10096
|
+
windowsHide: true
|
|
10096
10097
|
});
|
|
10097
10098
|
let childError;
|
|
10098
10099
|
child.on("error", (err) => {
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -34576,7 +34576,8 @@ function tarEnv(env) {
|
|
|
34576
34576
|
async function runTar(archive, args, signal) {
|
|
34577
34577
|
const child = spawn2("tar", [...args, "-f", "-"], {
|
|
34578
34578
|
signal,
|
|
34579
|
-
env: tarEnv(process.env)
|
|
34579
|
+
env: tarEnv(process.env),
|
|
34580
|
+
windowsHide: true
|
|
34580
34581
|
});
|
|
34581
34582
|
let childError;
|
|
34582
34583
|
child.on("error", (err) => {
|
package/dist/tool-server.cjs
CHANGED
|
@@ -48689,7 +48689,10 @@ async function commandOnPath(name) {
|
|
|
48689
48689
|
if (!/^[A-Za-z0-9_.-]+$/.test(name)) return null;
|
|
48690
48690
|
try {
|
|
48691
48691
|
if (process.platform === "win32") {
|
|
48692
|
-
const { stdout: stdout2 } = await execFileAsync("where", [name], {
|
|
48692
|
+
const { stdout: stdout2 } = await execFileAsync("where", [name], {
|
|
48693
|
+
timeout: 2e3,
|
|
48694
|
+
windowsHide: true
|
|
48695
|
+
});
|
|
48693
48696
|
const cwd = import_node_path4.win32.resolve(process.cwd()).toLowerCase();
|
|
48694
48697
|
const match = stdout2.split(/\r?\n/).map((line) => line.trim()).filter(Boolean).find((candidate) => import_node_path4.win32.resolve(import_node_path4.win32.dirname(candidate)).toLowerCase() !== cwd);
|
|
48695
48698
|
return match ?? null;
|
|
@@ -52393,7 +52396,8 @@ async function emulatorSupportsFlag(flag, options = {}) {
|
|
|
52393
52396
|
// wedged in Qt/graphics init) leaves execFile unsettled forever, and
|
|
52394
52397
|
// this await has no deadline of its own.
|
|
52395
52398
|
killSignal: "SIGKILL",
|
|
52396
|
-
maxBuffer: 8 * 1024 * 1024
|
|
52399
|
+
maxBuffer: 8 * 1024 * 1024,
|
|
52400
|
+
windowsHide: true
|
|
52397
52401
|
});
|
|
52398
52402
|
output2 = stdout + stderr;
|
|
52399
52403
|
} catch (err) {
|
|
@@ -52445,7 +52449,8 @@ async function runAdb(args, options = {}) {
|
|
|
52445
52449
|
killSignal: ADB_KILL_SIGNAL,
|
|
52446
52450
|
maxBuffer: 64 * 1024 * 1024,
|
|
52447
52451
|
encoding: "utf-8",
|
|
52448
|
-
env: envWithoutAdbTrace()
|
|
52452
|
+
env: envWithoutAdbTrace(),
|
|
52453
|
+
windowsHide: true
|
|
52449
52454
|
});
|
|
52450
52455
|
return { stdout, stderr };
|
|
52451
52456
|
} catch (err) {
|
|
@@ -52460,7 +52465,8 @@ async function runAdbBinary(args, options = {}) {
|
|
|
52460
52465
|
timeout: options.timeoutMs ?? 3e4,
|
|
52461
52466
|
killSignal: ADB_KILL_SIGNAL,
|
|
52462
52467
|
maxBuffer: 64 * 1024 * 1024,
|
|
52463
|
-
encoding: "buffer"
|
|
52468
|
+
encoding: "buffer",
|
|
52469
|
+
windowsHide: true
|
|
52464
52470
|
});
|
|
52465
52471
|
return stdout;
|
|
52466
52472
|
} catch (err) {
|
|
@@ -52494,7 +52500,8 @@ async function adbShellInput(serial, shellCommand, input2, options = {}) {
|
|
|
52494
52500
|
timeout: options.timeoutMs ?? 3e4,
|
|
52495
52501
|
killSignal: ADB_KILL_SIGNAL,
|
|
52496
52502
|
maxBuffer: 64 * 1024 * 1024,
|
|
52497
|
-
encoding: "utf-8"
|
|
52503
|
+
encoding: "utf-8",
|
|
52504
|
+
windowsHide: true
|
|
52498
52505
|
},
|
|
52499
52506
|
(err, stdout, stderr) => {
|
|
52500
52507
|
if (err) {
|
|
@@ -52722,7 +52729,8 @@ async function listAvds() {
|
|
|
52722
52729
|
try {
|
|
52723
52730
|
const { stdout } = await execFileAsync7(emulatorPath, ["-list-avds"], {
|
|
52724
52731
|
timeout: 5e3,
|
|
52725
|
-
killSignal: "SIGKILL"
|
|
52732
|
+
killSignal: "SIGKILL",
|
|
52733
|
+
windowsHide: true
|
|
52726
52734
|
});
|
|
52727
52735
|
return stdout.split("\n").map((l) => l.trim()).filter((l) => l && AVD_NAME_PATTERN.test(l)).map((name) => ({ name }));
|
|
52728
52736
|
} catch {
|
|
@@ -52742,7 +52750,8 @@ async function checkSnapshotLoadable(avdName, snapshotName = "default_boot", opt
|
|
|
52742
52750
|
const { stdout } = await execFileAsync7(emulatorPath, args, {
|
|
52743
52751
|
timeout: options.timeoutMs ?? 1e4,
|
|
52744
52752
|
killSignal: "SIGKILL",
|
|
52745
|
-
maxBuffer: 4 * 1024 * 1024
|
|
52753
|
+
maxBuffer: 4 * 1024 * 1024,
|
|
52754
|
+
windowsHide: true
|
|
52746
52755
|
});
|
|
52747
52756
|
const tail = stdout.split("\n").slice(-6).join("\n");
|
|
52748
52757
|
if (/(^|\n)\s*Loadable\s*(\n|$)/.test(tail)) return { loadable: true, reason: null };
|
|
@@ -74413,7 +74422,8 @@ function tarEnv(env) {
|
|
|
74413
74422
|
async function runTar(archive, args, signal) {
|
|
74414
74423
|
const child = (0, import_node_child_process2.spawn)("tar", [...args, "-f", "-"], {
|
|
74415
74424
|
signal,
|
|
74416
|
-
env: tarEnv(process.env)
|
|
74425
|
+
env: tarEnv(process.env),
|
|
74426
|
+
windowsHide: true
|
|
74417
74427
|
});
|
|
74418
74428
|
let childError;
|
|
74419
74429
|
child.on("error", (err) => {
|
|
@@ -75038,7 +75048,8 @@ async function runHarmonyEmulator(args, timeoutMs = EMULATOR_TIMEOUT_MS) {
|
|
|
75038
75048
|
const { stdout, stderr } = await execFileAsync4(bin, args, {
|
|
75039
75049
|
timeout: timeoutMs,
|
|
75040
75050
|
killSignal: EMULATOR_KILL_SIGNAL,
|
|
75041
|
-
maxBuffer: 8 * 1024 * 1024
|
|
75051
|
+
maxBuffer: 8 * 1024 * 1024,
|
|
75052
|
+
windowsHide: true
|
|
75042
75053
|
});
|
|
75043
75054
|
return { stdout, stderr };
|
|
75044
75055
|
} catch (err) {
|
|
@@ -75128,7 +75139,8 @@ async function runHdc(args, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
|
75128
75139
|
const { stdout, stderr } = await execFileAsync5(bin, args, {
|
|
75129
75140
|
timeout: timeoutMs,
|
|
75130
75141
|
killSignal: HDC_KILL_SIGNAL,
|
|
75131
|
-
maxBuffer: 64 * 1024 * 1024
|
|
75142
|
+
maxBuffer: 64 * 1024 * 1024,
|
|
75143
|
+
windowsHide: true
|
|
75132
75144
|
});
|
|
75133
75145
|
return { stdout, stderr };
|
|
75134
75146
|
} catch (err) {
|
|
@@ -105190,7 +105202,11 @@ var import_node_util16 = require("node:util");
|
|
|
105190
105202
|
init_device_info();
|
|
105191
105203
|
init_android_binary();
|
|
105192
105204
|
var execFileAsync15 = (0, import_node_util16.promisify)(import_node_child_process21.execFile);
|
|
105193
|
-
var SHUTDOWN_EXEC_OPTIONS = {
|
|
105205
|
+
var SHUTDOWN_EXEC_OPTIONS = {
|
|
105206
|
+
timeout: 3e4,
|
|
105207
|
+
killSignal: "SIGKILL",
|
|
105208
|
+
windowsHide: true
|
|
105209
|
+
};
|
|
105194
105210
|
async function shutdownOwnedDevice(id) {
|
|
105195
105211
|
let platform;
|
|
105196
105212
|
try {
|
|
@@ -112300,7 +112316,7 @@ async function spawnHelper(serial) {
|
|
|
112300
112316
|
const proc = (0, import_node_child_process25.spawn)(
|
|
112301
112317
|
adbPath,
|
|
112302
112318
|
["-s", serial, "shell", "am", "instrument", "-w", manifest.instrumentationRunner],
|
|
112303
|
-
{ stdio: ["ignore", "pipe", "pipe"] }
|
|
112319
|
+
{ stdio: ["ignore", "pipe", "pipe"], windowsHide: true }
|
|
112304
112320
|
);
|
|
112305
112321
|
return new Promise((resolve24, reject) => {
|
|
112306
112322
|
let devicePort = null;
|
|
@@ -116223,7 +116239,8 @@ function streamDirectoryAsArchive(id, entry, req, res) {
|
|
|
116223
116239
|
res.setHeader("Vary", "Accept");
|
|
116224
116240
|
res.setHeader("Content-Disposition", `attachment; filename="${entry.filename}.${ext}"`);
|
|
116225
116241
|
const child = (0, import_node_child_process26.spawn)("tar", createTarArgs(entry.path), {
|
|
116226
|
-
stdio: ["ignore", "pipe", "ignore"]
|
|
116242
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
116243
|
+
windowsHide: true
|
|
116227
116244
|
});
|
|
116228
116245
|
child.on("error", (err) => {
|
|
116229
116246
|
if (!res.headersSent) {
|
|
@@ -159591,7 +159608,10 @@ async function startPerfetto(opts) {
|
|
|
159591
159608
|
"-o",
|
|
159592
159609
|
onDeviceTracePath
|
|
159593
159610
|
];
|
|
159594
|
-
const child = (0, import_child_process7.spawn)(adbPath, adbArgv(args), {
|
|
159611
|
+
const child = (0, import_child_process7.spawn)(adbPath, adbArgv(args), {
|
|
159612
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
159613
|
+
windowsHide: true
|
|
159614
|
+
});
|
|
159595
159615
|
let stdout = "";
|
|
159596
159616
|
let stderr = "";
|
|
159597
159617
|
const pid = await new Promise((resolve24, reject) => {
|
|
@@ -167694,7 +167714,8 @@ function listeningPids(port) {
|
|
|
167694
167714
|
timeout: 5e3,
|
|
167695
167715
|
// `netstat -ano` dumps every socket on the host; Node's default 1 MiB
|
|
167696
167716
|
// can overflow and fail the probe.
|
|
167697
|
-
maxBuffer: 16 * 1024 * 1024
|
|
167717
|
+
maxBuffer: 16 * 1024 * 1024,
|
|
167718
|
+
windowsHide: true
|
|
167698
167719
|
});
|
|
167699
167720
|
return parseNetstatListeningPids(output3, port);
|
|
167700
167721
|
}
|
|
@@ -178307,7 +178328,8 @@ async function listDir(path78) {
|
|
|
178307
178328
|
var COMMAND_TIMEOUT_MS = 3e3;
|
|
178308
178329
|
function runVersionCommand(cmd, args, cwd) {
|
|
178309
178330
|
return new Promise((resolve24) => {
|
|
178310
|
-
const
|
|
178331
|
+
const options = { cwd, timeout: COMMAND_TIMEOUT_MS, windowsHide: true };
|
|
178332
|
+
const child = (0, import_node_child_process57.execFile)(cmd, args, options, (err, stdout) => {
|
|
178311
178333
|
if (err) {
|
|
178312
178334
|
resolve24(null);
|
|
178313
178335
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.35.1-next.
|
|
3
|
+
"version": "0.35.1-next.87",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"vitest": "^5.0.5",
|
|
99
99
|
"yaml": "^2.9.1"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "67e45a9ddc98ae9b6d1a408cc634b5c2ffc017c8"
|
|
102
102
|
}
|