@q-agent/agent 0.1.24 → 0.1.25
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.
|
@@ -76,6 +76,7 @@ async function ensureChromium() {
|
|
|
76
76
|
const code = await new Promise((resolve) => {
|
|
77
77
|
const child = (0, child_process_1.spawn)((0, paths_1.nodeBin)(), [(0, paths_1.playwrightCli)(), "install", "chromium"], {
|
|
78
78
|
stdio: "inherit",
|
|
79
|
+
windowsHide: true,
|
|
79
80
|
env: { ...process.env, ...(0, paths_1.childNodeEnv)() },
|
|
80
81
|
});
|
|
81
82
|
child.on("close", resolve);
|
|
@@ -68,7 +68,13 @@ function browserHarnessBinDir() {
|
|
|
68
68
|
* Inherits stdio so first-run downloads/installs are visible in the agent log. */
|
|
69
69
|
function run(cmd, args, env) {
|
|
70
70
|
return new Promise((resolve) => {
|
|
71
|
-
|
|
71
|
+
// windowsHide: don't pop a console window for the uv/tar/browser-harness probe
|
|
72
|
+
// when the agent runs as a GUI (Electron) process with no console of its own.
|
|
73
|
+
const child = (0, child_process_1.spawn)(cmd, args, {
|
|
74
|
+
stdio: "inherit",
|
|
75
|
+
windowsHide: true,
|
|
76
|
+
env: { ...process.env, ...env },
|
|
77
|
+
});
|
|
72
78
|
child.on("close", resolve);
|
|
73
79
|
child.on("error", () => resolve(null));
|
|
74
80
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@q-agent/agent",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Q-Agent Local Agent — claims execution jobs from the Q-Agent server and runs Playwright locally, so manual login/MFA happens on the user's own machine and session credentials never leave it.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"bin": {
|