@juspay/neurolink 7.14.5 → 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 +12 -0
- package/README.md +5 -8
- 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,15 @@
|
|
|
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
|
+
|
|
7
|
+
## [7.14.6](https://github.com/juspay/neurolink/compare/v7.14.5...v7.14.6) (2025-08-18)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **(docs):** improve and update cli guide ([4039044](https://github.com/juspay/neurolink/commit/40390444950f763f4e360783f99256b16eb9aab0))
|
|
12
|
+
|
|
1
13
|
## [7.14.5](https://github.com/juspay/neurolink/compare/v7.14.4...v7.14.5) (2025-08-18)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
> **Enterprise AI Development Platform** with universal provider support, factory pattern architecture, and **access to 100+ AI models** through LiteLLM integration. Production-ready with TypeScript support.
|
|
11
11
|
|
|
12
|
-
**NeuroLink** is an Enterprise AI Development Platform that unifies **
|
|
12
|
+
**NeuroLink** is an Enterprise AI Development Platform that unifies **12 major AI providers** with intelligent fallback and built-in tool support. Available as both a **programmatic SDK** and **professional CLI tool**. Features LiteLLM integration for **100+ models**, plus 6 core tools working across all providers. Extracted from production use at Juspay.
|
|
13
13
|
|
|
14
14
|
## 🎉 **NEW: LiteLLM Integration - Access 100+ AI Models**
|
|
15
15
|
|
|
@@ -102,7 +102,7 @@ npx @juspay/neurolink generate "Hello, AI" --provider openai-compatible
|
|
|
102
102
|
export GOOGLE_AI_API_KEY="AIza-your-google-ai-api-key"
|
|
103
103
|
npx @juspay/neurolink generate "Hello, AI" --provider google-ai
|
|
104
104
|
|
|
105
|
-
# Option
|
|
105
|
+
# Option 4: Amazon SageMaker - Use your custom deployed models
|
|
106
106
|
export AWS_ACCESS_KEY_ID="your-access-key"
|
|
107
107
|
export AWS_SECRET_ACCESS_KEY="your-secret-key"
|
|
108
108
|
export SAGEMAKER_DEFAULT_ENDPOINT="your-endpoint-name"
|
|
@@ -204,10 +204,9 @@ const neurolink = new NeuroLink({
|
|
|
204
204
|
Method aliases that match CLI command names:
|
|
205
205
|
|
|
206
206
|
```typescript
|
|
207
|
-
//
|
|
207
|
+
// The following methods are equivalent:
|
|
208
208
|
const result1 = await provider.generate({ input: { text: "Hello" } }); // Original
|
|
209
|
-
const result2 = await provider.
|
|
210
|
-
const result3 = await provider.gen({ input: { text: "Hello" } }); // Matches CLI 'gen'
|
|
209
|
+
const result2 = await provider.gen({ input: { text: "Hello" } }); // Matches CLI 'gen'
|
|
211
210
|
|
|
212
211
|
// Use whichever style you prefer:
|
|
213
212
|
const provider = createBestAIProvider();
|
|
@@ -336,7 +335,7 @@ const productData = JSON.parse(result.content);
|
|
|
336
335
|
console.log(productData.name, productData.price, productData.features);
|
|
337
336
|
```
|
|
338
337
|
|
|
339
|
-
**📖 [Complete Setup Guide](./docs/
|
|
338
|
+
**📖 [Complete Setup Guide](./docs/CONFIGURATION.md)** - All providers with detailed instructions
|
|
340
339
|
|
|
341
340
|
## ✨ Key Features
|
|
342
341
|
|
|
@@ -807,5 +806,3 @@ MIT © [Juspay Technologies](https://juspay.in)
|
|
|
807
806
|
<p align="center">
|
|
808
807
|
<strong>Built with ❤️ by <a href="https://juspay.in">Juspay Technologies</a></strong>
|
|
809
808
|
</p>
|
|
810
|
-
# Force fresh deployment after GitHub Pages source change
|
|
811
|
-
# Trigger fresh CI run
|
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",
|