@danainnovations/cortex-mcp 1.0.103 → 1.0.104

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/cli.js CHANGED
@@ -4640,7 +4640,12 @@ program.command("connect-mobile").description("Connect Cortex to Claude on mobil
4640
4640
  console.log("Once connected, tools will be available on web, desktop, and mobile.\n");
4641
4641
  await openBrowser2(url);
4642
4642
  });
4643
- if (process.argv.length <= 2) {
4643
+ var knownCommands = program.commands.map((c) => c.name());
4644
+ var userArgs = process.argv.slice(1);
4645
+ var hasCommand = userArgs.some(
4646
+ (arg) => knownCommands.includes(arg) || arg.startsWith("-")
4647
+ );
4648
+ if (!hasCommand) {
4644
4649
  process.argv.push("setup");
4645
4650
  }
4646
4651
  program.parse();