@juspay/neurolink 4.2.0 → 5.0.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,9 +1,47 @@
|
|
|
1
|
-
# [
|
|
1
|
+
# [5.0.0](https://github.com/juspay/neurolink/compare/v4.2.0...v5.0.0) (2025-07-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* refactor(cli)!: remove agent-generate command, unify CLI to single generate command ([9c034b7](https://github.com/juspay/neurolink/commit/9c034b7b5a8df3b861fccae0e617c5aa4c85a903))
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **scripts:** update docs:generate to use docs:validate instead of removed docs:sync ([3277bab](https://github.com/juspay/neurolink/commit/3277bab3eb1cec24a60fe28bf3897fce63d83d3a))
|
|
10
|
+
|
|
2
11
|
|
|
12
|
+
### BREAKING CHANGES
|
|
13
|
+
|
|
14
|
+
* agent-generate command has been removed
|
|
15
|
+
|
|
16
|
+
The agent-generate command has been completely removed from the CLI. All
|
|
17
|
+
functionality is now available through the enhanced generate command with
|
|
18
|
+
tools enabled by default.
|
|
19
|
+
|
|
20
|
+
### Changes Made:
|
|
21
|
+
- Delete src/cli/commands/agent-generate.ts command implementation
|
|
22
|
+
- Remove agent-generate import and registration from src/cli/index.ts
|
|
23
|
+
- Update docs/CLI-GUIDE.md to remove agent-generate documentation
|
|
24
|
+
- Update memory-bank documentation files to reflect unified approach
|
|
25
|
+
- Remove agent-generate test cases from scripts/corrected-functionality-test.js
|
|
26
|
+
|
|
27
|
+
### Migration Guide:
|
|
28
|
+
- Replace `neurolink agent-generate "prompt"` with `neurolink generate "prompt"`
|
|
29
|
+
- Tools are enabled by default in generate command
|
|
30
|
+
- Use `--disable-tools` flag if tool-calling is not desired
|
|
31
|
+
- All previous agent-generate functionality available in generate command
|
|
32
|
+
|
|
33
|
+
### Technical Impact:
|
|
34
|
+
- Simplified CLI interface with single text generation command
|
|
35
|
+
- Reduced codebase complexity and maintenance overhead
|
|
36
|
+
- Enhanced generate command provides all tool-calling capabilities
|
|
37
|
+
- Zero breaking changes to core functionality
|
|
38
|
+
- Clean TypeScript compilation and documentation consistency
|
|
39
|
+
|
|
40
|
+
# [4.2.0](https://github.com/juspay/neurolink/compare/v4.1.1...v4.2.0) (2025-07-11)
|
|
3
41
|
|
|
4
42
|
### Features
|
|
5
43
|
|
|
6
|
-
|
|
44
|
+
- **mcp:** comprehensive MCP system enhancements with timeout management ([1d35b5e](https://github.com/juspay/neurolink/commit/1d35b5e12d03ce60bcdf0608749a1b99e8565567))
|
|
7
45
|
|
|
8
46
|
## [4.1.1](https://github.com/juspay/neurolink/compare/v4.1.0...v4.1.1) (2025-07-10)
|
|
9
47
|
|
package/dist/cli/index.js
CHANGED
|
@@ -21,7 +21,6 @@ import chalk from "chalk";
|
|
|
21
21
|
import fs from "fs";
|
|
22
22
|
import { addMCPCommands } from "./commands/mcp.js";
|
|
23
23
|
import { addOllamaCommands } from "./commands/ollama.js";
|
|
24
|
-
import { agentGenerateCommand } from "./commands/agent-generate.js";
|
|
25
24
|
import { AgentEnhancedProvider } from "../lib/providers/agent-enhanced-provider.js";
|
|
26
25
|
import { logger } from "../lib/utils/logger.js";
|
|
27
26
|
/**
|
|
@@ -1242,8 +1241,6 @@ const cli = yargs(args)
|
|
|
1242
1241
|
addMCPCommands(cli);
|
|
1243
1242
|
// Add Ollama Commands
|
|
1244
1243
|
addOllamaCommands(cli);
|
|
1245
|
-
// Add Agent Generate Command
|
|
1246
|
-
agentGenerateCommand(cli);
|
|
1247
1244
|
// Execute CLI
|
|
1248
1245
|
(async () => {
|
|
1249
1246
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.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",
|
|
@@ -71,9 +71,8 @@
|
|
|
71
71
|
"content:cleanup": "node tools/converted-scripts/cleanup-hash-named-videos.js",
|
|
72
72
|
"content:all": "pnpm run content:screenshots && pnpm run content:videos",
|
|
73
73
|
"// Documentation Automation": "",
|
|
74
|
-
"docs:sync": "node tools/content/documentation-sync.js",
|
|
75
74
|
"docs:validate": "node tools/content/documentation-sync.js --validate",
|
|
76
|
-
"docs:generate": "pnpm run docs:
|
|
75
|
+
"docs:generate": "pnpm run docs:validate && pnpm run content:screenshots",
|
|
77
76
|
"// Development & Monitoring": "",
|
|
78
77
|
"dev:full": "node tools/development/dev-server.js",
|
|
79
78
|
"dev:health": "node tools/development/health-monitor.js",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function agentGenerateCommand(cli: any): void;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { AgentEnhancedProvider } from "../../lib/providers/agent-enhanced-provider.js";
|
|
2
|
-
import ora from "ora";
|
|
3
|
-
import chalk from "chalk";
|
|
4
|
-
export function agentGenerateCommand(cli) {
|
|
5
|
-
cli.command("agent-generate <prompt>", "Generate text with agent capabilities (tool calling)", (yargs) => yargs
|
|
6
|
-
.positional("prompt", {
|
|
7
|
-
describe: "The prompt for the agent",
|
|
8
|
-
type: "string",
|
|
9
|
-
})
|
|
10
|
-
.option("provider", {
|
|
11
|
-
alias: "p",
|
|
12
|
-
describe: "The AI provider to use",
|
|
13
|
-
type: "string",
|
|
14
|
-
choices: ["google-ai", "openai", "anthropic"],
|
|
15
|
-
default: "google-ai",
|
|
16
|
-
})
|
|
17
|
-
.option("model", {
|
|
18
|
-
alias: "m",
|
|
19
|
-
describe: "The model to use",
|
|
20
|
-
type: "string",
|
|
21
|
-
})
|
|
22
|
-
.option("toolCategory", {
|
|
23
|
-
alias: "t",
|
|
24
|
-
describe: "The category of tools to use",
|
|
25
|
-
type: "string",
|
|
26
|
-
choices: ["basic", "filesystem", "utility", "all"],
|
|
27
|
-
default: "all",
|
|
28
|
-
}), async (argv) => {
|
|
29
|
-
const { prompt, provider, model, toolCategory } = argv;
|
|
30
|
-
const spinner = ora(`Generating response with ${provider} agent...`).start();
|
|
31
|
-
try {
|
|
32
|
-
const agentProvider = new AgentEnhancedProvider({
|
|
33
|
-
provider,
|
|
34
|
-
model,
|
|
35
|
-
toolCategory,
|
|
36
|
-
});
|
|
37
|
-
const result = await agentProvider.generateText(prompt);
|
|
38
|
-
if (result) {
|
|
39
|
-
spinner.succeed("Response generated successfully!");
|
|
40
|
-
console.log(chalk.green("\nAI Response:"));
|
|
41
|
-
console.log(result.text);
|
|
42
|
-
if (result.toolCalls && result.toolCalls.length > 0) {
|
|
43
|
-
console.log(chalk.yellow("\nTools Called:"));
|
|
44
|
-
for (const call of result.toolCalls) {
|
|
45
|
-
console.log(`- ${call.toolName}`);
|
|
46
|
-
console.log(` Args: ${JSON.stringify(call.args)}`);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (result.toolResults && result.toolResults.length > 0) {
|
|
50
|
-
console.log(chalk.blue("\nTool Results:"));
|
|
51
|
-
for (const toolResult of result.toolResults) {
|
|
52
|
-
console.log(`- ${toolResult.toolName}`);
|
|
53
|
-
console.log(` Result: ${JSON.stringify(toolResult.result)}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
spinner.fail("Failed to generate response.");
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch (error) {
|
|
62
|
-
spinner.fail("An error occurred during generation.");
|
|
63
|
-
console.error(chalk.red(error));
|
|
64
|
-
process.exit(1);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|