@autohq/cli 0.1.144 → 0.1.146
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/agent-bridge.js +1 -1
- package/dist/index.js +10 -1
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -26274,7 +26274,7 @@ Object.assign(lookup, {
|
|
|
26274
26274
|
// package.json
|
|
26275
26275
|
var package_default = {
|
|
26276
26276
|
name: "@autohq/cli",
|
|
26277
|
-
version: "0.1.
|
|
26277
|
+
version: "0.1.146",
|
|
26278
26278
|
license: "SEE LICENSE IN README.md",
|
|
26279
26279
|
publishConfig: {
|
|
26280
26280
|
access: "public"
|
package/dist/index.js
CHANGED
|
@@ -83,12 +83,21 @@ var init_tokens = __esm({
|
|
|
83
83
|
// src/lib/browser.ts
|
|
84
84
|
import { spawn } from "child_process";
|
|
85
85
|
function openBrowser(url2) {
|
|
86
|
+
if (!shouldOpenBrowser(process.env)) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
86
89
|
const child = spawn(openCommand(), openArgs(url2), {
|
|
87
90
|
detached: true,
|
|
88
91
|
stdio: "ignore"
|
|
89
92
|
});
|
|
90
93
|
child.unref();
|
|
91
94
|
}
|
|
95
|
+
function shouldOpenBrowser(env) {
|
|
96
|
+
if (env.AUTO_ALLOW_BROWSER_OPEN_IN_TESTS === "1") {
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
return !env.NODE_TEST_CONTEXT;
|
|
100
|
+
}
|
|
92
101
|
function openCommand() {
|
|
93
102
|
switch (process.platform) {
|
|
94
103
|
case "darwin":
|
|
@@ -21252,7 +21261,7 @@ var init_package = __esm({
|
|
|
21252
21261
|
"package.json"() {
|
|
21253
21262
|
package_default = {
|
|
21254
21263
|
name: "@autohq/cli",
|
|
21255
|
-
version: "0.1.
|
|
21264
|
+
version: "0.1.146",
|
|
21256
21265
|
license: "SEE LICENSE IN README.md",
|
|
21257
21266
|
publishConfig: {
|
|
21258
21267
|
access: "public"
|