@boltic/cli 1.0.28 → 1.0.29

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/cli.js CHANGED
@@ -56,6 +56,7 @@ const createCLI = (consoleUrl, apiUrl, serviceName, env) => {
56
56
  }
57
57
 
58
58
  const command = args[2];
59
+ const subCommand = args.length >= 3 ? args[3] : undefined;
59
60
 
60
61
  if (!command) {
61
62
  showHelp(commands);
@@ -81,12 +82,19 @@ const createCLI = (consoleUrl, apiUrl, serviceName, env) => {
81
82
  return;
82
83
  }
83
84
 
85
+ if (!subCommand) {
86
+ // Show help for the command if no subcommand is provided
87
+ const commandObj = commands[command];
88
+ await commandObj.action(args.slice(3));
89
+ }
90
+
84
91
  // Check if user is authenticated for all commands except login, logout, help, and version
85
92
  if (
86
93
  command !== "login" &&
87
94
  command !== "logout" &&
88
95
  command !== "help" &&
89
- command !== "version"
96
+ command !== "version" &&
97
+ (command !== "mcp" || subCommand !== "setup")
90
98
  ) {
91
99
  const secrets = await getAllSecrets();
92
100
  const userData = secrets?.reduce(
package/commands/mcp.js CHANGED
@@ -96,8 +96,6 @@ async function handleSetup(args) {
96
96
  const mcpUrl = url;
97
97
  const command = `composio --sse "${mcpUrl}"`;
98
98
 
99
- console.log(chalk.cyan("💾 Saving configurations..."));
100
-
101
99
  saveMcpConfig(url, client, newKey, mcpUrl, command);
102
100
 
103
101
  console.log(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boltic/cli",
3
- "version": "1.0.28",
3
+ "version": "1.0.29",
4
4
  "description": "A powerful CLI tool for managing Boltic Workflow integrations - create, sync, test, and publish integrations with ease",
5
5
  "main": "index.js",
6
6
  "bin": {