@proagentstore/cli 0.1.10 → 0.1.11
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/index.js +2 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1022,18 +1022,11 @@ var upCommand = new Command7("up").description("Start the browser runner for all
|
|
|
1022
1022
|
Connecting runner to: ${target.name || target.id.slice(0, 8)}...`);
|
|
1023
1023
|
const { spawn: spawn3 } = await import("child_process");
|
|
1024
1024
|
const cliPath = process.argv[1];
|
|
1025
|
-
const args = [
|
|
1026
|
-
cliPath,
|
|
1027
|
-
"runner",
|
|
1028
|
-
"connect",
|
|
1029
|
-
target.id,
|
|
1030
|
-
"--pags-token",
|
|
1031
|
-
session.token
|
|
1032
|
-
];
|
|
1025
|
+
const args = [cliPath, "runner", "connect", target.id];
|
|
1033
1026
|
if (opts.headless) args.push("--headless");
|
|
1034
1027
|
const child = spawn3(process.execPath, args, {
|
|
1035
1028
|
stdio: "inherit",
|
|
1036
|
-
env: process.env
|
|
1029
|
+
env: { ...process.env, PAGS_TOKEN: session.token }
|
|
1037
1030
|
});
|
|
1038
1031
|
child.on("exit", (code) => {
|
|
1039
1032
|
process.exit(code || 0);
|