@danainnovations/cortex-mcp 1.0.104 → 1.0.105
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 +20 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4640,13 +4640,26 @@ 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
|
-
var
|
|
4644
|
-
var
|
|
4645
|
-
var
|
|
4646
|
-
(arg) =>
|
|
4643
|
+
var knownCmds = program.commands.map((c) => c.name());
|
|
4644
|
+
var rawArgs = process.argv.slice(1);
|
|
4645
|
+
var hasCmd = rawArgs.some(
|
|
4646
|
+
(arg) => knownCmds.includes(arg) || arg === "-V" || arg === "--version" || arg === "-h" || arg === "--help"
|
|
4647
4647
|
);
|
|
4648
|
-
if (
|
|
4649
|
-
|
|
4648
|
+
if (hasCmd) {
|
|
4649
|
+
program.parse();
|
|
4650
|
+
} else {
|
|
4651
|
+
runSetup().catch((err2) => {
|
|
4652
|
+
if (err2.code === "ERR_USE_AFTER_CLOSE") {
|
|
4653
|
+
process.exit(0);
|
|
4654
|
+
}
|
|
4655
|
+
console.error("Setup failed:", err2);
|
|
4656
|
+
if (process.platform === "win32") {
|
|
4657
|
+
console.error("\nPress Enter to close...");
|
|
4658
|
+
process.stdin.resume();
|
|
4659
|
+
process.stdin.once("data", () => process.exit(1));
|
|
4660
|
+
} else {
|
|
4661
|
+
process.exit(1);
|
|
4662
|
+
}
|
|
4663
|
+
});
|
|
4650
4664
|
}
|
|
4651
|
-
program.parse();
|
|
4652
4665
|
//# sourceMappingURL=cli.js.map
|