@juspay/neurolink 7.7.1 → 7.9.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +25 -2
  2. package/README.md +34 -2
  3. package/dist/cli/commands/config.d.ts +3 -3
  4. package/dist/cli/commands/sagemaker.d.ts +11 -0
  5. package/dist/cli/commands/sagemaker.js +778 -0
  6. package/dist/cli/factories/commandFactory.js +7 -2
  7. package/dist/cli/index.js +3 -0
  8. package/dist/cli/utils/interactiveSetup.js +28 -0
  9. package/dist/core/baseProvider.d.ts +2 -2
  10. package/dist/core/types.d.ts +16 -4
  11. package/dist/core/types.js +24 -3
  12. package/dist/factories/providerFactory.js +10 -1
  13. package/dist/factories/providerRegistry.js +6 -1
  14. package/dist/lib/core/baseProvider.d.ts +2 -2
  15. package/dist/lib/core/types.d.ts +16 -4
  16. package/dist/lib/core/types.js +24 -3
  17. package/dist/lib/factories/providerFactory.js +10 -1
  18. package/dist/lib/factories/providerRegistry.js +6 -1
  19. package/dist/lib/neurolink.d.ts +15 -0
  20. package/dist/lib/neurolink.js +73 -1
  21. package/dist/lib/providers/amazonSagemaker.d.ts +67 -0
  22. package/dist/lib/providers/amazonSagemaker.js +149 -0
  23. package/dist/lib/providers/googleVertex.d.ts +4 -0
  24. package/dist/lib/providers/googleVertex.js +44 -3
  25. package/dist/lib/providers/index.d.ts +4 -0
  26. package/dist/lib/providers/index.js +4 -0
  27. package/dist/lib/providers/sagemaker/adaptive-semaphore.d.ts +86 -0
  28. package/dist/lib/providers/sagemaker/adaptive-semaphore.js +212 -0
  29. package/dist/lib/providers/sagemaker/client.d.ts +156 -0
  30. package/dist/lib/providers/sagemaker/client.js +462 -0
  31. package/dist/lib/providers/sagemaker/config.d.ts +73 -0
  32. package/dist/lib/providers/sagemaker/config.js +308 -0
  33. package/dist/lib/providers/sagemaker/detection.d.ts +176 -0
  34. package/dist/lib/providers/sagemaker/detection.js +596 -0
  35. package/dist/lib/providers/sagemaker/diagnostics.d.ts +37 -0
  36. package/dist/lib/providers/sagemaker/diagnostics.js +137 -0
  37. package/dist/lib/providers/sagemaker/error-constants.d.ts +78 -0
  38. package/dist/lib/providers/sagemaker/error-constants.js +227 -0
  39. package/dist/lib/providers/sagemaker/errors.d.ts +83 -0
  40. package/dist/lib/providers/sagemaker/errors.js +216 -0
  41. package/dist/lib/providers/sagemaker/index.d.ts +35 -0
  42. package/dist/lib/providers/sagemaker/index.js +67 -0
  43. package/dist/lib/providers/sagemaker/language-model.d.ts +182 -0
  44. package/dist/lib/providers/sagemaker/language-model.js +755 -0
  45. package/dist/lib/providers/sagemaker/parsers.d.ts +136 -0
  46. package/dist/lib/providers/sagemaker/parsers.js +625 -0
  47. package/dist/lib/providers/sagemaker/streaming.d.ts +39 -0
  48. package/dist/lib/providers/sagemaker/streaming.js +320 -0
  49. package/dist/lib/providers/sagemaker/structured-parser.d.ts +117 -0
  50. package/dist/lib/providers/sagemaker/structured-parser.js +625 -0
  51. package/dist/lib/providers/sagemaker/types.d.ts +456 -0
  52. package/dist/lib/providers/sagemaker/types.js +7 -0
  53. package/dist/lib/sdk/toolRegistration.d.ts +1 -1
  54. package/dist/lib/sdk/toolRegistration.js +13 -5
  55. package/dist/lib/types/cli.d.ts +36 -1
  56. package/dist/lib/utils/providerHealth.js +19 -4
  57. package/dist/neurolink.d.ts +15 -0
  58. package/dist/neurolink.js +73 -1
  59. package/dist/providers/amazonSagemaker.d.ts +67 -0
  60. package/dist/providers/amazonSagemaker.js +149 -0
  61. package/dist/providers/googleVertex.d.ts +4 -0
  62. package/dist/providers/googleVertex.js +44 -3
  63. package/dist/providers/index.d.ts +4 -0
  64. package/dist/providers/index.js +4 -0
  65. package/dist/providers/sagemaker/adaptive-semaphore.d.ts +86 -0
  66. package/dist/providers/sagemaker/adaptive-semaphore.js +212 -0
  67. package/dist/providers/sagemaker/client.d.ts +156 -0
  68. package/dist/providers/sagemaker/client.js +462 -0
  69. package/dist/providers/sagemaker/config.d.ts +73 -0
  70. package/dist/providers/sagemaker/config.js +308 -0
  71. package/dist/providers/sagemaker/detection.d.ts +176 -0
  72. package/dist/providers/sagemaker/detection.js +596 -0
  73. package/dist/providers/sagemaker/diagnostics.d.ts +37 -0
  74. package/dist/providers/sagemaker/diagnostics.js +137 -0
  75. package/dist/providers/sagemaker/error-constants.d.ts +78 -0
  76. package/dist/providers/sagemaker/error-constants.js +227 -0
  77. package/dist/providers/sagemaker/errors.d.ts +83 -0
  78. package/dist/providers/sagemaker/errors.js +216 -0
  79. package/dist/providers/sagemaker/index.d.ts +35 -0
  80. package/dist/providers/sagemaker/index.js +67 -0
  81. package/dist/providers/sagemaker/language-model.d.ts +182 -0
  82. package/dist/providers/sagemaker/language-model.js +755 -0
  83. package/dist/providers/sagemaker/parsers.d.ts +136 -0
  84. package/dist/providers/sagemaker/parsers.js +625 -0
  85. package/dist/providers/sagemaker/streaming.d.ts +39 -0
  86. package/dist/providers/sagemaker/streaming.js +320 -0
  87. package/dist/providers/sagemaker/structured-parser.d.ts +117 -0
  88. package/dist/providers/sagemaker/structured-parser.js +625 -0
  89. package/dist/providers/sagemaker/types.d.ts +456 -0
  90. package/dist/providers/sagemaker/types.js +7 -0
  91. package/dist/sdk/toolRegistration.d.ts +1 -1
  92. package/dist/sdk/toolRegistration.js +13 -5
  93. package/dist/types/cli.d.ts +36 -1
  94. package/dist/utils/providerHealth.js +19 -4
  95. package/package.json +8 -2
package/CHANGELOG.md CHANGED
@@ -1,9 +1,32 @@
1
- ## [7.7.1](https://github.com/juspay/neurolink/compare/v7.7.0...v7.7.1) (2025-08-11)
1
+ ## [7.9.0](https://github.com/juspay/neurolink/compare/v7.8.0...v7.9.0) (2025-08-11)
2
+
3
+ ### Features
4
+
5
+ * **(core):** add EventEmitter functionality for real-time event monitoring ([fd8b6b0](https://github.com/juspay/neurolink/commit/fd8b6b075ca46df4f35a58d26ad6cd4839fe2361))
6
+
7
+ ### Bug Fixes
8
+
9
+ * **(ci):** add semantic-release configuration with dependencies and testing ([d48e274](https://github.com/juspay/neurolink/commit/d48e274bed6473df28403ae440d7109656216307))
10
+ * **(ci):** configure semantic-release to handle ticket prefixes with proper JSON escaping ([6d575dc](https://github.com/juspay/neurolink/commit/6d575dcf90611ad6a9854daff551dade3f06e001))
11
+ * **(ci):** correct JSON escaping in semantic-release configuration ([b9bbe50](https://github.com/juspay/neurolink/commit/b9bbe50461771f82e19cdbbb413ca6af6f28c31d))
12
+ * **(cli):** missing model name in analytics output ([416c5b7](https://github.com/juspay/neurolink/commit/416c5b74745776d1b3742557add4f501669f06f9))
13
+ * **(providers):** respect VERTEX_MODEL environment variable in model selection ([40eddb1](https://github.com/juspay/neurolink/commit/40eddb1d52a61891dec7fab5998b840f233352ee))
14
+
15
+ # [7.8.0](https://github.com/juspay/neurolink/compare/v7.7.1...v7.8.0) (2025-08-11)
2
16
 
17
+ ### Bug Fixes
18
+
19
+ - exclude \_site directory from ESLint ([c0e5f1d](https://github.com/juspay/neurolink/commit/c0e5f1dce46e91ee76cd1a4954190569b4a8d1d9))
20
+
21
+ ### Features
22
+
23
+ - **providers:** add comprehensive Amazon SageMaker provider integration ([9ef4ebe](https://github.com/juspay/neurolink/commit/9ef4ebeeda520a71a7461ca5f4f34a83c2062356))
24
+
25
+ ## [7.7.1](https://github.com/juspay/neurolink/compare/v7.7.0...v7.7.1) (2025-08-11)
3
26
 
4
27
  ### Bug Fixes
5
28
 
6
- * **providers:** resolve ESLint errors and improve validation in Vertex AI health checker ([a5822ee](https://github.com/juspay/neurolink/commit/a5822eee3f8b6beaf3d2168ebb8888a6beaa5cb4))
29
+ - **providers:** resolve ESLint errors and improve validation in Vertex AI health checker ([a5822ee](https://github.com/juspay/neurolink/commit/a5822eee3f8b6beaf3d2168ebb8888a6beaa5cb4))
7
30
 
8
31
  # [7.7.0](https://github.com/juspay/neurolink/compare/v7.6.1...v7.7.0) (2025-08-10)
9
32
 
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 **10 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.
12
+ **NeuroLink** is an Enterprise AI Development Platform that unifies **11 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
 
@@ -33,6 +33,30 @@ npx @juspay/neurolink generate "Hello" --provider litellm --model "google/gemini
33
33
 
34
34
  **[📖 Complete LiteLLM Integration Guide](./docs/LITELLM-INTEGRATION.md)** - Setup, configuration, and 100+ model access
35
35
 
36
+ ## 🎉 **NEW: SageMaker Integration - Deploy Your Custom AI Models**
37
+
38
+ **NeuroLink now supports Amazon SageMaker**, enabling you to deploy and use your own custom trained models through NeuroLink's unified interface:
39
+
40
+ - **🏗️ Custom Model Hosting** - Deploy your fine-tuned models on AWS infrastructure
41
+ - **💰 Cost Control** - Pay only for inference usage with auto-scaling capabilities
42
+ - **🔒 Enterprise Security** - Full control over model infrastructure and data privacy
43
+ - **⚡ Performance** - Dedicated compute resources with predictable latency
44
+ - **📊 Monitoring** - Built-in CloudWatch metrics and logging
45
+
46
+ ```bash
47
+ # Quick start with SageMaker
48
+ export AWS_ACCESS_KEY_ID="your-access-key"
49
+ export AWS_SECRET_ACCESS_KEY="your-secret-key"
50
+ export SAGEMAKER_DEFAULT_ENDPOINT="your-endpoint-name"
51
+
52
+ # Use your custom deployed models
53
+ npx @juspay/neurolink generate "Analyze this data" --provider sagemaker
54
+ npx @juspay/neurolink sagemaker status # Check endpoint health
55
+ npx @juspay/neurolink sagemaker benchmark my-endpoint # Performance testing
56
+ ```
57
+
58
+ **[📖 Complete SageMaker Integration Guide](./docs/SAGEMAKER-INTEGRATION.md)** - Setup, deployment, and custom model access
59
+
36
60
  ## 🚀 Enterprise Platform Features
37
61
 
38
62
  - **🏭 Factory Pattern Architecture** - Unified provider management through BaseProvider inheritance
@@ -44,6 +68,7 @@ npx @juspay/neurolink generate "Hello" --provider litellm --model "google/gemini
44
68
  - **⚡ Performance** - Fast response times with streaming support and 68% improved status checks
45
69
  - **🛡️ Error Recovery** - Graceful failures with provider fallback and retry logic
46
70
  - **📊 Analytics & Evaluation** - Built-in usage tracking and AI-powered quality assessment
71
+ - **🎯 Real-time Event Monitoring** - EventEmitter integration for progress tracking and debugging
47
72
  - **🔧 MCP Integration** - Model Context Protocol with 6 built-in tools and 58+ discoverable servers
48
73
  - **🚀 Lighthouse Integration** - Unified tool registration API supporting both object and array formats for seamless Lighthouse tool import
49
74
 
@@ -77,6 +102,12 @@ npx @juspay/neurolink generate "Hello, AI" --provider openai-compatible
77
102
  export GOOGLE_AI_API_KEY="AIza-your-google-ai-api-key"
78
103
  npx @juspay/neurolink generate "Hello, AI" --provider google-ai
79
104
 
105
+ # Option 3: Amazon SageMaker - Use your custom deployed models
106
+ export AWS_ACCESS_KEY_ID="your-access-key"
107
+ export AWS_SECRET_ACCESS_KEY="your-secret-key"
108
+ export SAGEMAKER_DEFAULT_ENDPOINT="your-endpoint-name"
109
+ npx @juspay/neurolink generate "Hello, AI" --provider sagemaker
110
+
80
111
  # CLI Commands - No installation required
81
112
  npx @juspay/neurolink generate "Explain AI" # Auto-selects best provider
82
113
  npx @juspay/neurolink gen "Write code" # Shortest form
@@ -276,7 +307,7 @@ console.log(productData.name, productData.price, productData.features);
276
307
  - 🔍 **Smart Model Auto-Discovery** - OpenAI Compatible provider automatically detects available models via `/v1/models` endpoint
277
308
  - 🏭 **Factory Pattern Architecture** - Unified provider management with BaseProvider inheritance
278
309
  - 🔧 **Tools-First Design** - All providers automatically include 6 direct tools (getCurrentTime, readFile, listDirectory, calculateMath, writeFile, searchFiles)
279
- - 🔄 **11 AI Providers** - OpenAI, Bedrock, Vertex AI, Google AI Studio, Anthropic, Azure, **LiteLLM**, **OpenAI Compatible**, Hugging Face, Ollama, Mistral AI
310
+ - 🔄 **12 AI Providers** - OpenAI, Bedrock, Vertex AI, Google AI Studio, Anthropic, Azure, **LiteLLM**, **OpenAI Compatible**, Hugging Face, Ollama, Mistral AI, **SageMaker**
280
311
  - 💰 **Cost Optimization** - Automatic selection of cheapest models and LiteLLM routing
281
312
  - ⚡ **Automatic Fallback** - Never fail when providers are down, intelligent provider switching
282
313
  - 🖥️ **CLI + SDK** - Use from command line or integrate programmatically with TypeScript support
@@ -563,6 +594,7 @@ cd neurolink-demo && node server.js
563
594
  | **Ollama** 🆕 | Llama 3.2, Gemma, Mistral (Local) | None (Local) | ✅ | ⚠️ Partial | Complete Privacy |
564
595
  | **Hugging Face** 🆕 | 100,000+ open source models | API Key | ✅ | ⚠️ Partial | Open Source |
565
596
  | **Mistral AI** 🆕 | Tiny, Small, Medium, Large | API Key | ✅ | ✅ Full | European/GDPR |
597
+ | **Amazon SageMaker** 🆕 | Custom Models (Your Endpoints) | AWS Credentials | ❌ | ✅ Full | Custom Model Hosting |
566
598
 
567
599
  **Tool Support Legend:**
568
600
 
@@ -60,8 +60,8 @@ declare const ConfigSchema: z.ZodObject<{
60
60
  }, {
61
61
  model?: string | undefined;
62
62
  projectId?: string | undefined;
63
- location?: string | undefined;
64
63
  credentials?: string | undefined;
64
+ location?: string | undefined;
65
65
  serviceAccountKey?: string | undefined;
66
66
  clientEmail?: string | undefined;
67
67
  privateKey?: string | undefined;
@@ -200,8 +200,8 @@ declare const ConfigSchema: z.ZodObject<{
200
200
  vertex?: {
201
201
  model?: string | undefined;
202
202
  projectId?: string | undefined;
203
- location?: string | undefined;
204
203
  credentials?: string | undefined;
204
+ location?: string | undefined;
205
205
  serviceAccountKey?: string | undefined;
206
206
  clientEmail?: string | undefined;
207
207
  privateKey?: string | undefined;
@@ -569,8 +569,8 @@ declare const ConfigSchema: z.ZodObject<{
569
569
  vertex?: {
570
570
  model?: string | undefined;
571
571
  projectId?: string | undefined;
572
- location?: string | undefined;
573
572
  credentials?: string | undefined;
573
+ location?: string | undefined;
574
574
  serviceAccountKey?: string | undefined;
575
575
  clientEmail?: string | undefined;
576
576
  privateKey?: string | undefined;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * SageMaker CLI Commands
3
+ *
4
+ * Provides comprehensive command-line interface for Amazon SageMaker operations
5
+ * including configuration management, endpoint testing, and model deployment.
6
+ */
7
+ import type { Argv } from "yargs";
8
+ /**
9
+ * Add SageMaker commands to the CLI
10
+ */
11
+ export declare function addSageMakerCommands(cli: Argv): void;