@juspay/neurolink 7.14.6 → 7.14.7
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 +6 -0
- package/dist/lib/neurolink.js +11 -0
- package/dist/neurolink.js +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [7.14.7](https://github.com/juspay/neurolink/compare/v7.14.6...v7.14.7) (2025-08-18)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **(core):** add validation for tool registration ([caed431](https://github.com/juspay/neurolink/commit/caed431ca1a025599ae8f901a4f4cb36b970379c))
|
|
6
|
+
|
|
1
7
|
## [7.14.6](https://github.com/juspay/neurolink/compare/v7.14.5...v7.14.6) (2025-08-18)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/lib/neurolink.js
CHANGED
|
@@ -808,6 +808,17 @@ export class NeuroLink {
|
|
|
808
808
|
timestamp: Date.now(),
|
|
809
809
|
});
|
|
810
810
|
try {
|
|
811
|
+
// --- Start: Added Validation Logic ---
|
|
812
|
+
if (!name || typeof name !== "string") {
|
|
813
|
+
throw new Error("Invalid tool name");
|
|
814
|
+
}
|
|
815
|
+
if (!tool || typeof tool !== "object") {
|
|
816
|
+
throw new Error(`Invalid tool object provided for tool: ${name}`);
|
|
817
|
+
}
|
|
818
|
+
if (typeof tool.execute !== "function") {
|
|
819
|
+
throw new Error(`Tool '${name}' must have an execute method.`);
|
|
820
|
+
}
|
|
821
|
+
// --- End: Added Validation Logic ---
|
|
811
822
|
// Import validation functions synchronously - they are pure functions
|
|
812
823
|
let validateTool;
|
|
813
824
|
let isToolNameAvailable;
|
package/dist/neurolink.js
CHANGED
|
@@ -808,6 +808,17 @@ export class NeuroLink {
|
|
|
808
808
|
timestamp: Date.now(),
|
|
809
809
|
});
|
|
810
810
|
try {
|
|
811
|
+
// --- Start: Added Validation Logic ---
|
|
812
|
+
if (!name || typeof name !== "string") {
|
|
813
|
+
throw new Error("Invalid tool name");
|
|
814
|
+
}
|
|
815
|
+
if (!tool || typeof tool !== "object") {
|
|
816
|
+
throw new Error(`Invalid tool object provided for tool: ${name}`);
|
|
817
|
+
}
|
|
818
|
+
if (typeof tool.execute !== "function") {
|
|
819
|
+
throw new Error(`Tool '${name}' must have an execute method.`);
|
|
820
|
+
}
|
|
821
|
+
// --- End: Added Validation Logic ---
|
|
811
822
|
// Import validation functions synchronously - they are pure functions
|
|
812
823
|
let validateTool;
|
|
813
824
|
let isToolNameAvailable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "7.14.
|
|
3
|
+
"version": "7.14.7",
|
|
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",
|