@juspay/neurolink 7.15.0 → 7.16.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [7.16.0](https://github.com/juspay/neurolink/compare/v7.15.0...v7.16.0) (2025-08-19)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **(cli):** Add validate provider config support in CLI ([2e8d6ad](https://github.com/juspay/neurolink/commit/2e8d6ad6475bf24f67f61a76d33689f323821b70))
|
|
6
|
+
|
|
1
7
|
## [7.15.0](https://github.com/juspay/neurolink/compare/v7.14.8...v7.15.0) (2025-08-19)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -45,6 +45,10 @@ export declare class CLICommandFactory {
|
|
|
45
45
|
* Create config commands
|
|
46
46
|
*/
|
|
47
47
|
static createConfigCommands(): CommandModule;
|
|
48
|
+
/**
|
|
49
|
+
* Create validate command
|
|
50
|
+
*/
|
|
51
|
+
static createValidateCommand(): CommandModule;
|
|
48
52
|
/**
|
|
49
53
|
* Create get-best-provider command
|
|
50
54
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NeuroLink } from "../../lib/neurolink.js";
|
|
2
|
+
import { configManager } from "../commands/config.js";
|
|
2
3
|
import { ContextFactory, } from "../../lib/types/contextTypes.js";
|
|
3
4
|
import { ModelsCommandFactory } from "../commands/models.js";
|
|
4
5
|
import { MCPCommandFactory } from "../commands/mcp.js";
|
|
@@ -453,15 +454,12 @@ export class CLICommandFactory {
|
|
|
453
454
|
builder: (yargs) => {
|
|
454
455
|
return yargs
|
|
455
456
|
.command("init", "Interactive configuration setup wizard", (y) => this.buildOptions(y), async (_argv) => {
|
|
456
|
-
const { configManager } = await import("../commands/config.js");
|
|
457
457
|
await configManager.initInteractive();
|
|
458
458
|
})
|
|
459
459
|
.command("show", "Display current configuration", (y) => this.buildOptions(y), async (_argv) => {
|
|
460
|
-
const { configManager } = await import("../commands/config.js");
|
|
461
460
|
configManager.showConfig();
|
|
462
461
|
})
|
|
463
462
|
.command("validate", "Validate current configuration", (y) => this.buildOptions(y), async (_argv) => {
|
|
464
|
-
const { configManager } = await import("../commands/config.js");
|
|
465
463
|
const result = configManager.validateConfig();
|
|
466
464
|
if (result.valid) {
|
|
467
465
|
logger.always(chalk.green("✅ Configuration is valid"));
|
|
@@ -473,7 +471,6 @@ export class CLICommandFactory {
|
|
|
473
471
|
}
|
|
474
472
|
})
|
|
475
473
|
.command("reset", "Reset configuration to defaults", (y) => this.buildOptions(y), async (_argv) => {
|
|
476
|
-
const { configManager } = await import("../commands/config.js");
|
|
477
474
|
configManager.resetConfig();
|
|
478
475
|
})
|
|
479
476
|
.command("export", "Export current configuration", (y) => this.buildOptions(y), (argv) => this.executeConfigExport(argv))
|
|
@@ -482,6 +479,27 @@ export class CLICommandFactory {
|
|
|
482
479
|
handler: () => { }, // No-op handler as subcommands handle everything
|
|
483
480
|
};
|
|
484
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Create validate command
|
|
484
|
+
*/
|
|
485
|
+
static createValidateCommand() {
|
|
486
|
+
return {
|
|
487
|
+
command: "validate",
|
|
488
|
+
describe: "Validate current configuration (alias for 'config validate')",
|
|
489
|
+
builder: (yargs) => this.buildOptions(yargs),
|
|
490
|
+
handler: async (_argv) => {
|
|
491
|
+
const result = configManager.validateConfig();
|
|
492
|
+
if (result.valid) {
|
|
493
|
+
logger.always(chalk.green("✅ Configuration is valid"));
|
|
494
|
+
}
|
|
495
|
+
else {
|
|
496
|
+
logger.always(chalk.red("❌ Configuration has errors:"));
|
|
497
|
+
result.errors.forEach((error) => logger.always(` • ${error}`));
|
|
498
|
+
throw new Error("Configuration is invalid. See errors above.");
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
}
|
|
485
503
|
/**
|
|
486
504
|
* Create get-best-provider command
|
|
487
505
|
*/
|
package/dist/cli/index.js
CHANGED
|
@@ -225,6 +225,8 @@ const cli = yargs(args)
|
|
|
225
225
|
.command(CLICommandFactory.createConfigCommands())
|
|
226
226
|
// Get Best Provider Command - Using CLICommandFactory
|
|
227
227
|
.command(CLICommandFactory.createBestProviderCommand())
|
|
228
|
+
// Validate Command (alias for config validate)
|
|
229
|
+
.command(CLICommandFactory.createValidateCommand())
|
|
228
230
|
// Completion Command - Using CLICommandFactory
|
|
229
231
|
.command(CLICommandFactory.createCompletionCommand());
|
|
230
232
|
// Add Ollama Commands
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.0",
|
|
4
4
|
"description": "Universal AI Development Platform with working MCP integration, multi-provider support, and professional CLI. Built-in tools operational, 58+ external MCP servers discoverable. Connect to filesystem, GitHub, database operations, and more. Build, test, and deploy AI applications with 9 major providers: OpenAI, Anthropic, Google AI, AWS Bedrock, Azure, Hugging Face, Ollama, and Mistral AI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Juspay Technologies",
|