@opennous/cli 0.7.2 → 0.7.4
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/package.json +1 -1
- package/src/index.js +11 -7
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -32,12 +32,16 @@ function openBrowser(url) {
|
|
|
32
32
|
if (process.platform === "darwin") {
|
|
33
33
|
cmd = "open"; args = [url];
|
|
34
34
|
} else if (process.platform === "win32") {
|
|
35
|
-
// cmd.exe /c start "" "<url>".
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
35
|
+
// cmd.exe /c start "" "<url>". `start` reads a lone quoted arg as the window
|
|
36
|
+
// TITLE, so it needs an explicit empty title before the URL — otherwise it just
|
|
37
|
+
// opens a shell titled with the URL and never launches the browser.
|
|
38
|
+
// CRITICAL: the title must be a LITERAL `""` string, not JS's zero-length "".
|
|
39
|
+
// With windowsVerbatimArguments the args are joined by spaces as-is, so a
|
|
40
|
+
// zero-length string collapses to nothing and the title is lost (the URL then
|
|
41
|
+
// becomes the title). Verbatim also keeps our quotes, so an & in the auth URL's
|
|
42
|
+
// query string stays inside them and isn't parsed by cmd as a command separator.
|
|
39
43
|
cmd = process.env.ComSpec || "cmd.exe";
|
|
40
|
-
args = ["/c", "start", "", `"${url}"`];
|
|
44
|
+
args = ["/c", "start", '""', `"${url}"`];
|
|
41
45
|
opts.windowsVerbatimArguments = true;
|
|
42
46
|
} else {
|
|
43
47
|
cmd = "xdg-open"; args = [url];
|
|
@@ -978,8 +982,8 @@ program
|
|
|
978
982
|
}
|
|
979
983
|
}
|
|
980
984
|
|
|
981
|
-
console.log(
|
|
982
|
-
console.log("
|
|
985
|
+
console.log("\nYou're set. Tell your agent:\n");
|
|
986
|
+
console.log(' "set up my Nous workspace and walk me through onboarding"\n');
|
|
983
987
|
console.log(dim("Docs: https://docs.opennous.cloud/mcp/introduction"));
|
|
984
988
|
});
|
|
985
989
|
|