@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +11 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opennous/cli",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "Nous CLI — set up Nous, connect it to your coding agent, and read the Context API from your terminal",
5
5
  "type": "module",
6
6
  "bin": {
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>". The empty "" is start's title argument (else a
36
- // quoted URL is taken as the window title). windowsVerbatimArguments keeps the
37
- // quotes we add, so an & in the auth URL's query string stays inside them and
38
- // isn't parsed by cmd as a command separator.
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('\nYou\'re set. Tell your agent: "set up my GTM context layer and connect it to');
982
- console.log("Nous\" — it audits your project's context, drafts what's missing, and syncs it.\n");
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