@juspay/neurolink 8.32.0 → 8.34.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 (39) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/README.md +284 -75
  3. package/dist/action/actionExecutor.d.ts +29 -0
  4. package/dist/action/actionExecutor.js +290 -0
  5. package/dist/action/actionInputs.d.ts +25 -0
  6. package/dist/action/actionInputs.js +293 -0
  7. package/dist/action/githubIntegration.d.ts +21 -0
  8. package/dist/action/githubIntegration.js +187 -0
  9. package/dist/action/index.d.ts +8 -0
  10. package/dist/action/index.js +11 -0
  11. package/dist/index.d.ts +145 -13
  12. package/dist/index.js +145 -13
  13. package/dist/lib/action/actionExecutor.d.ts +29 -0
  14. package/dist/lib/action/actionExecutor.js +291 -0
  15. package/dist/lib/action/actionInputs.d.ts +25 -0
  16. package/dist/lib/action/actionInputs.js +294 -0
  17. package/dist/lib/action/githubIntegration.d.ts +21 -0
  18. package/dist/lib/action/githubIntegration.js +188 -0
  19. package/dist/lib/action/index.d.ts +8 -0
  20. package/dist/lib/action/index.js +12 -0
  21. package/dist/lib/index.d.ts +145 -13
  22. package/dist/lib/index.js +145 -13
  23. package/dist/lib/mcp/externalServerManager.js +41 -7
  24. package/dist/lib/neurolink.d.ts +172 -0
  25. package/dist/lib/neurolink.js +172 -0
  26. package/dist/lib/types/actionTypes.d.ts +205 -0
  27. package/dist/lib/types/actionTypes.js +7 -0
  28. package/dist/lib/types/index.d.ts +1 -0
  29. package/dist/lib/utils/errorHandling.d.ts +8 -0
  30. package/dist/lib/utils/errorHandling.js +29 -0
  31. package/dist/mcp/externalServerManager.js +41 -7
  32. package/dist/neurolink.d.ts +172 -0
  33. package/dist/neurolink.js +172 -0
  34. package/dist/types/actionTypes.d.ts +205 -0
  35. package/dist/types/actionTypes.js +6 -0
  36. package/dist/types/index.d.ts +1 -0
  37. package/dist/utils/errorHandling.d.ts +8 -0
  38. package/dist/utils/errorHandling.js +29 -0
  39. package/package.json +11 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [8.34.0](https://github.com/juspay/neurolink/compare/v8.33.0...v8.34.0) (2026-01-13)
2
+
3
+ ### Features
4
+
5
+ - **(object):** use instance-specific timeout for tool discovery and ([ba1ae4c](https://github.com/juspay/neurolink/commit/ba1ae4c13feeb3513d6800776d50b5aca94d5460))
6
+
7
+ ## [8.33.0](https://github.com/juspay/neurolink/compare/v8.32.0...v8.33.0) (2026-01-12)
8
+
9
+ ### Features
10
+
11
+ - **(action):** add GitHub Action for AI-powered CI/CD workflows ([fa18326](https://github.com/juspay/neurolink/commit/fa183264467e271ed5d825c6a961bdebf3d0000c))
12
+
1
13
  ## [8.32.0](https://github.com/juspay/neurolink/compare/v8.31.3...v8.32.0) (2026-01-05)
2
14
 
3
15
  ### Features
@@ -1601,7 +1613,7 @@ NEUROLINK_DEBUG=true node dist/cli/cli/index.js generate-text "test" --max-token
1601
1613
  docs/
1602
1614
  ├── AI-ANALYSIS-TOOLS.md # AI optimization and analysis tools
1603
1615
  ├── AI-WORKFLOW-TOOLS.md # Development lifecycle tools
1604
- ├── MCP-FOUNDATION.md # Technical MCP architecture
1616
+ ├── mcp-foundation.md # Technical MCP architecture
1605
1617
  └── GOOGLE-AI-STUDIO-INTEGRATION-ARCHIVE.md # Integration details
1606
1618
  ```
1607
1619
 
package/README.md CHANGED
@@ -1,11 +1,21 @@
1
- # 🧠 NeuroLink
2
-
3
- [![NPM Version](https://img.shields.io/npm/v/@juspay/neurolink)](https://www.npmjs.com/package/@juspay/neurolink)
4
- [![Downloads](https://img.shields.io/npm/dm/@juspay/neurolink)](https://www.npmjs.com/package/@juspay/neurolink)
1
+ <div align="center">
2
+ <h1>🧠 NeuroLink</h1>
3
+ <p><strong>The Enterprise AI SDK for Production Applications</strong></p>
4
+ <p>12 Providers | 58+ MCP Tools | HITL Security | Redis Persistence</p>
5
+ </div>
6
+
7
+ <div align="center">
8
+
9
+ [![npm version](https://badge.fury.io/js/%40juspay%2Fneurolink.svg)](https://www.npmjs.com/package/@juspay/neurolink)
10
+ [![npm downloads](https://img.shields.io/npm/dw/@juspay/neurolink)](https://www.npmjs.com/package/@juspay/neurolink)
11
+ [![Build Status](https://github.com/juspay/neurolink/actions/workflows/ci.yml/badge.svg)](https://github.com/juspay/neurolink/actions/workflows/ci.yml)
12
+ [![Coverage Status](https://coveralls.io/repos/github/juspay/neurolink/badge.svg?branch=main)](https://coveralls.io/github/juspay/neurolink?branch=main)
13
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
14
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue.svg)](https://www.typescriptlang.org/)
5
15
  [![GitHub Stars](https://img.shields.io/github/stars/juspay/neurolink)](https://github.com/juspay/neurolink/stargazers)
6
- [![License](https://img.shields.io/npm/l/@juspay/neurolink)](https://github.com/juspay/neurolink/blob/release/LICENSE)
7
- [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue)](https://www.typescriptlang.org/)
8
- [![CI](https://github.com/juspay/neurolink/workflows/CI/badge.svg)](https://github.com/juspay/neurolink/actions)
16
+ [![Discord](https://img.shields.io/discord/DISCORD_SERVER_ID?label=Discord&logo=discord)](https://discord.gg/neurolink)
17
+
18
+ </div>
9
19
 
10
20
  Enterprise AI development platform with unified provider access, production-ready tooling, and an opinionated factory architecture. NeuroLink ships as both a TypeScript SDK and a professional CLI so teams can build, operate, and iterate on AI features quickly.
11
21
 
@@ -23,23 +33,80 @@ Extracted from production systems at Juspay and battle-tested at enterprise scal
23
33
 
24
34
  ---
25
35
 
26
- ## What's New (Q4 2025)
36
+ ## What's New (Q1 2026)
37
+
38
+ | Feature | Version | Description | Guide |
39
+ | ---------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
40
+ | **Image Generation with Gemini** | v8.31.0 | Native image generation using Gemini 2.0 Flash Experimental (`imagen-3.0-generate-002`). High-quality image synthesis directly from Google AI. | [Image Generation Guide](docs/image-generation-streaming.md) |
41
+ | **HTTP/Streamable HTTP Transport** | v8.29.0 | Connect to remote MCP servers via HTTP with authentication headers, automatic retry with exponential backoff, and configurable rate limiting. | [HTTP Transport Guide](docs/mcp-http-transport.md) |
42
+
43
+ ```typescript
44
+ // Image Generation with Gemini (v8.31.0)
45
+ const image = await neurolink.generateImage({
46
+ prompt: "A futuristic cityscape",
47
+ provider: "google-ai",
48
+ model: "imagen-3.0-generate-002",
49
+ });
50
+
51
+ // HTTP Transport for Remote MCP (v8.29.0)
52
+ await neurolink.addExternalMCPServer("remote-tools", {
53
+ transport: "http",
54
+ url: "https://mcp.example.com/v1",
55
+ headers: { Authorization: "Bearer token" },
56
+ retries: 3,
57
+ timeout: 15000,
58
+ });
59
+ ```
27
60
 
28
- - **Image Generation** – Generate images from text prompts using Gemini models via Vertex AI or Google AI Studio. Supports streaming mode with automatic file saving. → [Image Generation Guide](docs/IMAGE-GENERATION-STREAMING.md)
29
- - **HTTP/Streamable HTTP Transport for MCP** – Connect to remote MCP servers via HTTP with authentication headers, retry logic, and rate limiting. → [HTTP Transport Guide](docs/MCP-HTTP-TRANSPORT.md)
30
- - 🧠 **Gemini 3 Preview Support** - Full support for gemini-3-flash-preview and gemini-3-pro-preview with extended thinking capabilities
31
- - **Structured Output with Zod Schemas** – Type-safe JSON generation with automatic validation using `schema` + `output.format: "json"` in `generate()`. → [Structured Output Guide](docs/features/structured-output.md)
32
- - **CSV File Support** – Attach CSV files to prompts for AI-powered data analysis with auto-detection. → [CSV Guide](docs/features/multimodal-chat.md#csv-file-support)
33
- - **PDF File Support** – Process PDF documents with native visual analysis for Vertex AI, Anthropic, Bedrock, AI Studio. → [PDF Guide](docs/features/pdf-support.md)
34
- - **LiteLLM Integration** – Access 100+ AI models from all major providers through unified interface. → [Setup Guide](docs/LITELLM-INTEGRATION.md)
35
- - **SageMaker Integration** – Deploy and use custom trained models on AWS infrastructure. → [Setup Guide](docs/SAGEMAKER-INTEGRATION.md)
36
- - **OpenRouter Integration** – Access 300+ models from OpenAI, Anthropic, Google, Meta, and more through a single unified API. → [Setup Guide](docs/getting-started/providers/openrouter.md)
37
- - **Human-in-the-loop workflows** – Pause generation for user approval/input before tool execution. → [HITL Guide](docs/features/hitl.md)
38
- - **Guardrails middleware** – Block PII, profanity, and unsafe content with built-in filtering. → [Guardrails Guide](docs/features/guardrails.md)
39
- - **Context summarization** – Automatic conversation compression for long-running sessions. → [Summarization Guide](docs/CONTEXT-SUMMARIZATION.md)
40
- - **Redis conversation export** – Export full session history as JSON for analytics and debugging. → [History Guide](docs/features/conversation-history.md)
61
+ ---
41
62
 
42
- > **Q3 highlights** (multimodal chat, auto-evaluation, loop sessions, orchestration) are now in [Platform Capabilities](#platform-capabilities-at-a-glance) below.
63
+ <details>
64
+ <summary><strong>Previous Updates (Q4 2025)</strong></summary>
65
+
66
+ - **Image Generation** – Generate images from text prompts using Gemini models via Vertex AI or Google AI Studio. → [Guide](docs/image-generation-streaming.md)
67
+ - **Gemini 3 Preview Support** - Full support for `gemini-3-flash-preview` and `gemini-3-pro-preview` with extended thinking
68
+ - **Structured Output with Zod Schemas** – Type-safe JSON generation with automatic validation. → [Guide](docs/features/structured-output.md)
69
+ - **CSV & PDF File Support** – Attach CSV/PDF files to prompts with auto-detection. → [CSV](docs/features/multimodal-chat.md#csv-file-support) | [PDF](docs/features/pdf-support.md)
70
+ - **LiteLLM & SageMaker** – Access 100+ models via LiteLLM, deploy custom models on SageMaker. → [LiteLLM](docs/litellm-integration.md) | [SageMaker](docs/sagemaker-integration.md)
71
+ - **OpenRouter Integration** – Access 300+ models through a single unified API. → [Guide](docs/getting-started/providers/openrouter.md)
72
+ - **HITL & Guardrails** – Human-in-the-loop approval workflows and content filtering middleware. → [HITL](docs/features/hitl.md) | [Guardrails](docs/features/guardrails.md)
73
+ - **Redis & Context Management** – Session export, conversation history, and automatic summarization. → [History](docs/features/conversation-history.md)
74
+
75
+ </details>
76
+
77
+ ## Enterprise Security: Human-in-the-Loop (HITL)
78
+
79
+ NeuroLink includes a **production-ready HITL system** for regulated industries and high-stakes AI operations:
80
+
81
+ | Capability | Description | Use Case |
82
+ | --------------------------- | --------------------------------------------------------- | ------------------------------------------ |
83
+ | **Tool Approval Workflows** | Require human approval before AI executes sensitive tools | Financial transactions, data modifications |
84
+ | **Output Validation** | Route AI outputs through human review pipelines | Medical diagnosis, legal documents |
85
+ | **Confidence Thresholds** | Automatically trigger human review below confidence level | Critical business decisions |
86
+ | **Complete Audit Trail** | Full audit logging for compliance (HIPAA, SOC2, GDPR) | Regulated industries |
87
+
88
+ ```typescript
89
+ import { NeuroLink } from "@juspay/neurolink";
90
+
91
+ const neurolink = new NeuroLink({
92
+ hitl: {
93
+ enabled: true,
94
+ requireApproval: ["writeFile", "executeCode", "sendEmail"],
95
+ confidenceThreshold: 0.85,
96
+ reviewCallback: async (action, context) => {
97
+ // Custom review logic - integrate with your approval system
98
+ return await yourApprovalSystem.requestReview(action);
99
+ },
100
+ },
101
+ });
102
+
103
+ // AI pauses for human approval before executing sensitive tools
104
+ const result = await neurolink.generate({
105
+ input: { text: "Send quarterly report to stakeholders" },
106
+ });
107
+ ```
108
+
109
+ **[Enterprise HITL Guide](docs/features/enterprise-hitl.md)** | **[Quick Start](docs/features/hitl.md)**
43
110
 
44
111
  ## Get Started in Two Steps
45
112
 
@@ -69,16 +136,15 @@ NeuroLink is a comprehensive AI development platform. Every feature below is pro
69
136
  | **AWS Bedrock** | Claude, Titan, Llama, Nova | ❌ | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#bedrock) |
70
137
  | **Google Vertex** | Gemini 3/2.5 (gemini-3-\*-preview) | ❌ | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#vertex) |
71
138
  | **Azure OpenAI** | GPT-4, GPT-4o, o1 | ❌ | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#azure) |
72
- | **LiteLLM** | 100+ models unified | Varies | ✅ Full | ✅ Production | [Setup Guide](docs/LITELLM-INTEGRATION.md) |
73
- | **OpenRouter** | 300+ models unified | Varies | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#openrouter) |
74
- | **AWS SageMaker** | Custom deployed models | ❌ | ✅ Full | ✅ Production | [Setup Guide](docs/SAGEMAKER-INTEGRATION.md) |
139
+ | **LiteLLM** | 100+ models unified | Varies | ✅ Full | ✅ Production | [Setup Guide](docs/litellm-integration.md) |
140
+ | **AWS SageMaker** | Custom deployed models | | ✅ Full | ✅ Production | [Setup Guide](docs/sagemaker-integration.md) |
75
141
  | **Mistral AI** | Mistral Large, Small | ✅ Free Tier | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#mistral) |
76
142
  | **Hugging Face** | 100,000+ models | ✅ Free | ⚠️ Partial | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#huggingface) |
77
143
  | **Ollama** | Local models (Llama, Mistral) | ✅ Free (Local) | ⚠️ Partial | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#ollama) |
78
144
  | **OpenAI Compatible** | Any OpenAI-compatible endpoint | Varies | ✅ Full | ✅ Production | [Setup Guide](docs/getting-started/provider-setup.md#openai-compatible) |
79
145
 
80
146
  **[📖 Provider Comparison Guide](docs/reference/provider-comparison.md)** - Detailed feature matrix and selection criteria
81
- **[🔬 Provider Feature Compatibility](docs/reference/provider-feature-compatibility.md)** - Test-based compatibility reference for all 19 features across 11 providers
147
+ **[🔬 Provider Feature Compatibility](docs/reference/provider-feature-compatibility.md)** - Test-based compatibility reference for all 19 features across 13 providers
82
148
 
83
149
  ---
84
150
 
@@ -131,7 +197,7 @@ const result = await neurolink.generate({
131
197
  | `websocket` | Bi-directional | Full-duplex communication |
132
198
 
133
199
  **[📖 MCP Integration Guide](docs/advanced/mcp-integration.md)** - Setup external servers
134
- **[📖 HTTP Transport Guide](docs/MCP-HTTP-TRANSPORT.md)** - Remote MCP server configuration
200
+ **[📖 HTTP Transport Guide](docs/mcp-http-transport.md)** - Remote MCP server configuration
135
201
 
136
202
  ---
137
203
 
@@ -147,7 +213,7 @@ const result = await neurolink.generate({
147
213
  | **Full Type Safety** | Complete TypeScript types | [Type Reference](docs/sdk/api-reference.md) |
148
214
  | **Error Handling** | Graceful provider fallback | [Error Guide](docs/reference/troubleshooting.md) |
149
215
  | **Analytics & Evaluation** | Usage tracking, quality scores | [Analytics Guide](docs/advanced/analytics.md) |
150
- | **Middleware System** | Request/response hooks | [Middleware Guide](docs/CUSTOM-MIDDLEWARE-GUIDE.md) |
216
+ | **Middleware System** | Request/response hooks | [Middleware Guide](docs/custom-middleware-guide.md) |
151
217
  | **Framework Integration** | Next.js, SvelteKit, Express | [Framework Guides](docs/sdk/framework-integration.md) |
152
218
  | **Extended Thinking** | Native thinking/reasoning mode for Gemini 3 and Claude models | [Thinking Guide](docs/features/thinking-configuration.md) |
153
219
 
@@ -159,14 +225,14 @@ const result = await neurolink.generate({
159
225
 
160
226
  | Feature | Description | Use Case | Documentation |
161
227
  | --------------------------- | ---------------------------------- | ------------------------- | ----------------------------------------------------------- |
162
- | **Enterprise Proxy** | Corporate proxy support | Behind firewalls | [Proxy Setup](docs/ENTERPRISE-PROXY-SETUP.md) |
228
+ | **Enterprise Proxy** | Corporate proxy support | Behind firewalls | [Proxy Setup](docs/enterprise-proxy-setup.md) |
163
229
  | **Redis Memory** | Distributed conversation state | Multi-instance deployment | [Redis Guide](docs/getting-started/provider-setup.md#redis) |
164
230
  | **Cost Optimization** | Automatic cheapest model selection | Budget control | [Cost Guide](docs/advanced/index.md) |
165
231
  | **Multi-Provider Failover** | Automatic provider switching | High availability | [Failover Guide](docs/advanced/index.md) |
166
- | **Telemetry & Monitoring** | OpenTelemetry integration | Observability | [Telemetry Guide](docs/TELEMETRY-GUIDE.md) |
232
+ | **Telemetry & Monitoring** | OpenTelemetry integration | Observability | [Telemetry Guide](docs/telemetry-guide.md) |
167
233
  | **Security Hardening** | Credential management, auditing | Compliance | [Security Guide](docs/advanced/enterprise.md) |
168
- | **Custom Model Hosting** | SageMaker integration | Private models | [SageMaker Guide](docs/SAGEMAKER-INTEGRATION.md) |
169
- | **Load Balancing** | LiteLLM proxy integration | Scale & routing | [Load Balancing](docs/LITELLM-INTEGRATION.md) |
234
+ | **Custom Model Hosting** | SageMaker integration | Private models | [SageMaker Guide](docs/sagemaker-integration.md) |
235
+ | **Load Balancing** | LiteLLM proxy integration | Scale & routing | [Load Balancing](docs/litellm-integration.md) |
170
236
 
171
237
  **Security & Compliance:**
172
238
 
@@ -182,6 +248,70 @@ const result = await neurolink.generate({
182
248
 
183
249
  ---
184
250
 
251
+ ## Enterprise Persistence: Redis Memory
252
+
253
+ Production-ready distributed conversation state for multi-instance deployments:
254
+
255
+ ### Capabilities
256
+
257
+ | Feature | Description | Benefit |
258
+ | ---------------------- | -------------------------------------------- | --------------------------- |
259
+ | **Distributed Memory** | Share conversation context across instances | Horizontal scaling |
260
+ | **Session Export** | Export full history as JSON | Analytics, debugging, audit |
261
+ | **Auto-Detection** | Automatic Redis discovery from environment | Zero-config in containers |
262
+ | **Graceful Failover** | Falls back to in-memory if Redis unavailable | High availability |
263
+ | **TTL Management** | Configurable session expiration | Memory management |
264
+
265
+ ### Quick Setup
266
+
267
+ ```typescript
268
+ import { NeuroLink } from "@juspay/neurolink";
269
+
270
+ // Auto-detect Redis from REDIS_URL environment variable
271
+ const neurolink = new NeuroLink({
272
+ conversationMemory: {
273
+ enabled: true,
274
+ store: "redis", // Automatically uses REDIS_URL
275
+ ttl: 86400, // 24-hour session expiration
276
+ },
277
+ });
278
+
279
+ // Or explicit configuration
280
+ const neuriolinkExplicit = new NeuroLink({
281
+ conversationMemory: {
282
+ enabled: true,
283
+ store: "redis",
284
+ redis: {
285
+ host: "redis.example.com",
286
+ port: 6379,
287
+ password: process.env.REDIS_PASSWORD,
288
+ tls: true, // Enable for production
289
+ },
290
+ },
291
+ });
292
+
293
+ // Export conversation for analytics
294
+ const history = await neurolink.exportConversation({ format: "json" });
295
+ await saveToDataWarehouse(history);
296
+ ```
297
+
298
+ ### Docker Quick Start
299
+
300
+ ```bash
301
+ # Start Redis
302
+ docker run -d --name neurolink-redis -p 6379:6379 redis:7-alpine
303
+
304
+ # Configure NeuroLink
305
+ export REDIS_URL=redis://localhost:6379
306
+
307
+ # Start your application
308
+ node your-app.js
309
+ ```
310
+
311
+ **[Redis Setup Guide](docs/getting-started/redis-quickstart.md)** | **[Production Configuration](docs/guides/redis-configuration.md)** | **[Migration Patterns](docs/guides/redis-migration.md)**
312
+
313
+ ---
314
+
185
315
  ### 🎨 Professional CLI
186
316
 
187
317
  **15+ commands** for every workflow:
@@ -199,6 +329,32 @@ const result = await neurolink.generate({
199
329
 
200
330
  **[📖 Complete CLI Reference](docs/cli/commands.md)** - All commands and options
201
331
 
332
+ ---
333
+
334
+ ### 🤖 GitHub Action
335
+
336
+ Run AI-powered workflows directly in GitHub Actions with 13 provider support and automatic PR/issue commenting.
337
+
338
+ ```yaml
339
+ - uses: juspay/neurolink@v1
340
+ with:
341
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
342
+ prompt: "Review this PR for security issues and code quality"
343
+ post_comment: true
344
+ ```
345
+
346
+ | Feature | Description |
347
+ | ---------------------- | ----------------------------------------------- |
348
+ | **Multi-Provider** | 13 providers with unified interface |
349
+ | **PR/Issue Comments** | Auto-post AI responses with intelligent updates |
350
+ | **Multimodal Support** | Attach images, PDFs, CSVs to prompts |
351
+ | **Cost Tracking** | Built-in analytics and quality evaluation |
352
+ | **Extended Thinking** | Deep reasoning with thinking tokens |
353
+
354
+ **[📖 GitHub Action Guide](docs/guides/github-action.md)** - Complete setup and examples
355
+
356
+ ---
357
+
202
358
  ## 💰 Smart Model Selection
203
359
 
204
360
  NeuroLink features intelligent model selection and cost optimization:
@@ -221,51 +377,66 @@ npx @juspay/neurolink generate "Complex analysis" --provider litellm --model "an
221
377
  npx @juspay/neurolink generate "Write code" # Automatically chooses optimal provider
222
378
  ```
223
379
 
224
- ## Interactive Loop Mode
380
+ ## Revolutionary Interactive CLI
225
381
 
226
- NeuroLink features a powerful **interactive loop mode** that transforms the CLI into a persistent, stateful session. This allows you to run multiple commands, set session-wide variables, and maintain conversation history without restarting.
382
+ NeuroLink's CLI goes beyond simple commands - it's a **full AI development environment**:
227
383
 
228
- ### Start the Loop
384
+ ### Why Interactive Mode Changes Everything
229
385
 
230
- ```bash
231
- npx @juspay/neurolink loop
232
- ```
386
+ | Feature | Traditional CLI | NeuroLink Interactive |
387
+ | ------------- | ----------------- | ------------------------------ |
388
+ | Session State | None | Full persistence |
389
+ | Memory | Per-command | Conversation-aware |
390
+ | Configuration | Flags per command | `/set` persists across session |
391
+ | Tool Testing | Manual per tool | Live discovery & testing |
392
+ | Streaming | Optional | Real-time default |
233
393
 
234
- ### Example Session
394
+ ### Live Demo: Development Session
235
395
 
236
396
  ```bash
237
- # Start the interactive session
238
- $ npx @juspay/neurolink loop
397
+ $ npx @juspay/neurolink loop --enable-conversation-memory
398
+
399
+ neurolink > /set provider vertex
400
+ ✓ provider set to vertex (Gemini 3 support enabled)
239
401
 
240
- neurolink » /set provider google-ai
241
- provider set to google-ai
402
+ neurolink > /set model gemini-3-flash-preview
403
+ model set to gemini-3-flash-preview
242
404
 
243
- neurolink » /set temperature 0.8
244
- ✓ temperature set to 0.8
405
+ neurolink > Analyze my project architecture and suggest improvements
245
406
 
246
- neurolink » Tell me a fun fact about space
407
+ Analyzing your project structure...
408
+ [AI provides detailed analysis, remembering context]
247
409
 
248
- The quietest place on Earth is an anechoic chamber at Microsoft's headquarters in Redmond, Washington. The background noise is so low that it's measured in negative decibels, and you can hear your own heartbeat.
410
+ neurolink > Now implement the first suggestion
411
+ [AI remembers previous context and implements suggestion]
249
412
 
250
- # Use "/" for CLI commands
251
- neurolink » /generate "Draft a haiku"
252
- ...
413
+ neurolink > /mcp discover
414
+ Discovered 58 MCP tools:
415
+ GitHub: create_issue, list_repos, create_pr...
416
+ PostgreSQL: query, insert, update...
417
+ [full list]
253
418
 
254
- # Use "//" to escape prompts starting with "/"
255
- neurolink » //what is /usr/bin used for?
256
- ...
419
+ neurolink > Use the GitHub tool to create an issue for this improvement
420
+ Creating issue... (requires HITL approval if configured)
257
421
 
258
- # Exit the session
259
- neurolink » exit
422
+ neurolink > /export json > session-2026-01-01.json
423
+ Exported 15 messages to session-2026-01-01.json
424
+
425
+ neurolink > exit
426
+ Session saved. Resume with: neurolink loop --session session-2026-01-01.json
260
427
  ```
261
428
 
262
- ### Conversation Memory in Loop Mode
429
+ ### Session Commands Reference
263
430
 
264
- Start the loop with conversation memory to have the AI remember the context of your previous commands.
431
+ | Command | Purpose |
432
+ | -------------------- | ---------------------------------------------------- |
433
+ | `/set <key> <value>` | Persist configuration (provider, model, temperature) |
434
+ | `/mcp discover` | List all available MCP tools |
435
+ | `/export json` | Export conversation to JSON |
436
+ | `/history` | View conversation history |
437
+ | `/clear` | Clear context while keeping settings |
265
438
 
266
- ```bash
267
- npx @juspay/neurolink loop --enable-conversation-memory
268
- ```
439
+ **[Interactive CLI Guide](docs/features/interactive-cli.md)** | **[CLI Reference](docs/cli/commands.md)**
269
440
 
270
441
  Skip the wizard and configure manually? See [`docs/getting-started/provider-setup.md`](docs/getting-started/provider-setup.md).
271
442
 
@@ -352,25 +523,63 @@ Full command and API breakdown lives in [`docs/cli/commands.md`](docs/cli/comman
352
523
 
353
524
  ## Documentation Map
354
525
 
355
- | Area | When to Use | Link |
356
- | --------------- | ----------------------------------------------- | ---------------------------------------------------------------- |
357
- | Getting started | Install, configure, run first prompt | [`docs/getting-started/index.md`](docs/getting-started/index.md) |
358
- | Feature guides | Understand new functionality front-to-back | [`docs/features/index.md`](docs/features/index.md) |
359
- | CLI reference | Command syntax, flags, loop sessions | [`docs/cli/index.md`](docs/cli/index.md) |
360
- | SDK reference | Classes, methods, options | [`docs/sdk/index.md`](docs/sdk/index.md) |
361
- | Integrations | LiteLLM, SageMaker, MCP, Mem0 | [`docs/LITELLM-INTEGRATION.md`](docs/LITELLM-INTEGRATION.md) |
362
- | Operations | Configuration, troubleshooting, provider matrix | [`docs/reference/index.md`](docs/reference/index.md) |
363
- | Visual demos | Screens, GIFs, interactive tours | [`docs/demos/index.md`](docs/demos/index.md) |
526
+ | Area | When to Use | Link |
527
+ | --------------- | ----------------------------------------------------- | ---------------------------------------------------------------- |
528
+ | Getting started | Install, configure, run first prompt | [`docs/getting-started/index.md`](docs/getting-started/index.md) |
529
+ | Feature guides | Understand new functionality front-to-back | [`docs/features/index.md`](docs/features/index.md) |
530
+ | CLI reference | Command syntax, flags, loop sessions | [`docs/cli/index.md`](docs/cli/index.md) |
531
+ | SDK reference | Classes, methods, options | [`docs/sdk/index.md`](docs/sdk/index.md) |
532
+ | Integrations | LiteLLM, SageMaker, MCP, Mem0 | [`docs/litellm-integration.md`](docs/litellm-integration.md) |
533
+ | Advanced | Middleware, architecture, streaming patterns | [`docs/advanced/index.md`](docs/advanced/index.md) |
534
+ | Cookbook | Practical recipes for common patterns | [`docs/cookbook/index.md`](docs/cookbook/index.md) |
535
+ | Guides | Migration, Redis, troubleshooting, provider selection | [`docs/guides/index.md`](docs/guides/index.md) |
536
+ | Operations | Configuration, troubleshooting, provider matrix | [`docs/reference/index.md`](docs/reference/index.md) |
537
+
538
+ ### New in 2026: Enhanced Documentation
539
+
540
+ **Enterprise Features:**
541
+
542
+ - [Enterprise HITL Guide](docs/features/enterprise-hitl.md) - Production-ready approval workflows
543
+ - [Interactive CLI Guide](docs/features/interactive-cli.md) - AI development environment
544
+ - [MCP Tools Showcase](docs/features/mcp-tools-showcase.md) - 58+ external tools & 6 built-in tools
545
+
546
+ **Provider Intelligence:**
547
+
548
+ - [Provider Capabilities Audit](docs/reference/provider-capabilities-audit.md) - Technical capabilities matrix
549
+ - [Provider Selection Guide](docs/guides/provider-selection.md) - Interactive decision wizard
550
+ - [Provider Comparison](docs/reference/provider-comparison.md) - Feature & cost comparison
551
+
552
+ **Middleware System:**
553
+
554
+ - [Middleware Architecture](docs/advanced/middleware-architecture.md) - Complete lifecycle & patterns
555
+ - [Built-in Middleware](docs/advanced/builtin-middleware.md) - Analytics, Guardrails, Evaluation
556
+ - [Custom Middleware Guide](docs/custom-middleware-guide.md) - Build your own
557
+
558
+ **Redis & Persistence:**
559
+
560
+ - [Redis Quick Start](docs/getting-started/redis-quickstart.md) - 5-minute setup
561
+ - [Redis Configuration](docs/guides/redis-configuration.md) - Production-ready setup
562
+ - [Redis Migration](docs/guides/redis-migration.md) - Migration patterns
563
+
564
+ **Migration Guides:**
565
+
566
+ - [From LangChain](docs/guides/migration/from-langchain.md) - Complete migration guide
567
+ - [From Vercel AI SDK](docs/guides/migration/from-vercel-ai-sdk.md) - Next.js focused
568
+
569
+ **Developer Experience:**
570
+
571
+ - [Cookbook](docs/cookbook/index.md) - 10 practical recipes
572
+ - [Troubleshooting Guide](docs/guides/troubleshooting.md) - Common issues & solutions
364
573
 
365
574
  ## Integrations
366
575
 
367
- - **LiteLLM 100+ model hub** – Unified access to third-party models via LiteLLM routing. → [`docs/LITELLM-INTEGRATION.md`](docs/LITELLM-INTEGRATION.md)
368
- - **Amazon SageMaker** – Deploy and call custom endpoints directly from NeuroLink CLI/SDK. → [`docs/SAGEMAKER-INTEGRATION.md`](docs/SAGEMAKER-INTEGRATION.md)
369
- - **Mem0 conversational memory** – Persistent semantic memory with vector store support. → [`docs/MEM0_INTEGRATION.md`](docs/MEM0_INTEGRATION.md)
370
- - **Enterprise proxy & security** – Configure outbound policies and compliance posture. → [`docs/ENTERPRISE-PROXY-SETUP.md`](docs/ENTERPRISE-PROXY-SETUP.md)
371
- - **Configuration automation** – Manage environments, regions, and credentials safely. → [`docs/CONFIGURATION-MANAGEMENT.md`](docs/CONFIGURATION-MANAGEMENT.md)
576
+ - **LiteLLM 100+ model hub** – Unified access to third-party models via LiteLLM routing. → [`docs/litellm-integration.md`](docs/litellm-integration.md)
577
+ - **Amazon SageMaker** – Deploy and call custom endpoints directly from NeuroLink CLI/SDK. → [`docs/sagemaker-integration.md`](docs/sagemaker-integration.md)
578
+ - **Mem0 conversational memory** – Persistent semantic memory with vector store support. → [`docs/mem0-integration.md`](docs/mem0-integration.md)
579
+ - **Enterprise proxy & security** – Configure outbound policies and compliance posture. → [`docs/enterprise-proxy-setup.md`](docs/enterprise-proxy-setup.md)
580
+ - **Configuration automation** – Manage environments, regions, and credentials safely. → [`docs/configuration-management.md`](docs/configuration-management.md)
372
581
  - **MCP tool ecosystem** – Auto-discover Model Context Protocol tools and extend workflows. → [`docs/advanced/mcp-integration.md`](docs/advanced/mcp-integration.md)
373
- - **Remote MCP via HTTP** – Connect to HTTP-based MCP servers with authentication, retries, and rate limiting. → [`docs/MCP-HTTP-TRANSPORT.md`](docs/MCP-HTTP-TRANSPORT.md)
582
+ - **Remote MCP via HTTP** – Connect to HTTP-based MCP servers with authentication, retries, and rate limiting. → [`docs/mcp-http-transport.md`](docs/mcp-http-transport.md)
374
583
 
375
584
  ## Contributing & Support
376
585
 
@@ -0,0 +1,29 @@
1
+ /**
2
+ * CLI execution for GitHub Action
3
+ * @module action/actionExecutor
4
+ */
5
+ import type { ActionInputs, ActionExecutionResult, CliResponse } from "../types/actionTypes.js";
6
+ /**
7
+ * Transform CLI response to action result format
8
+ */
9
+ export declare function transformCliResponse(cliResponse: CliResponse): Omit<ActionExecutionResult, "success" | "error">;
10
+ /**
11
+ * Build CLI arguments from action inputs (using verified camelCase flags)
12
+ */
13
+ export declare function buildCliArgs(inputs: ActionInputs): string[];
14
+ /**
15
+ * Install NeuroLink CLI
16
+ */
17
+ export declare function installNeurolink(version: string): Promise<void>;
18
+ /**
19
+ * Execute NeuroLink CLI command
20
+ * @param args - CLI arguments
21
+ * @param env - Environment variables
22
+ * @param workingDirectory - Working directory for execution
23
+ * @param timeout - Timeout in milliseconds (defaults to 5 minutes)
24
+ */
25
+ export declare function executeNeurolink(args: string[], env: Record<string, string>, workingDirectory?: string, timeout?: number): Promise<ActionExecutionResult>;
26
+ /**
27
+ * Run complete NeuroLink action
28
+ */
29
+ export declare function runNeurolink(inputs: ActionInputs): Promise<ActionExecutionResult>;