@juspay/neurolink 1.5.2 → 1.5.3
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 +33 -0
- package/dist/cli/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @juspay/neurolink
|
|
2
2
|
|
|
3
|
+
## 1.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **🔧 CLI Debug Log Persistence Fix**: Fixed unwanted debug logs appearing in production deployments
|
|
8
|
+
- **Issue**: CLI showed debug logs even when `--debug` flag was not provided, cluttering production output
|
|
9
|
+
- **Root Cause**: CLI middleware had logical gap where `NEUROLINK_DEBUG` wasn't explicitly set to `'false'` when no debug flag provided, allowing inherited environment variables to persist
|
|
10
|
+
- **Solution**: Updated middleware to always set `NEUROLINK_DEBUG = 'false'` when debug mode not enabled
|
|
11
|
+
- **Impact**: **Deterministic logging behavior** - debug logs only appear when explicitly requested with `--debug` flag
|
|
12
|
+
|
|
13
|
+
### Technical Changes
|
|
14
|
+
|
|
15
|
+
- **Clean Production Output**: No debug logs in deployed CLI unless `--debug` flag explicitly provided
|
|
16
|
+
- **Deterministic Behavior**: Logging controlled by CLI flags, not inherited environment variables
|
|
17
|
+
- **Backward Compatible**: Debug mode still works perfectly when `--debug` flag is used
|
|
18
|
+
- **Environment Independence**: CLI output no longer affected by external `NEUROLINK_DEBUG` settings
|
|
19
|
+
|
|
20
|
+
### CLI Behavior Fix
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# Before Fix (Problematic)
|
|
24
|
+
neurolink generate-text "test"
|
|
25
|
+
# Could show debug logs if NEUROLINK_DEBUG was set in environment
|
|
26
|
+
|
|
27
|
+
# After Fix (Clean)
|
|
28
|
+
neurolink generate-text "test"
|
|
29
|
+
# Output: ⠋ 🤖 Generating text... ✔ ✅ Text generated successfully! [content]
|
|
30
|
+
|
|
31
|
+
# Debug still works when requested
|
|
32
|
+
neurolink generate-text "test" --debug
|
|
33
|
+
# Output: [debug logs] + spinner + success + content
|
|
34
|
+
```
|
|
35
|
+
|
|
3
36
|
## 1.5.2
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
package/dist/cli/index.js
CHANGED
|
@@ -156,8 +156,8 @@ const cli = yargs(args)
|
|
|
156
156
|
if (argv.debug) {
|
|
157
157
|
process.env.NEUROLINK_DEBUG = 'true';
|
|
158
158
|
}
|
|
159
|
-
else
|
|
160
|
-
//
|
|
159
|
+
else {
|
|
160
|
+
// Always set to false when debug is not enabled (including when not provided)
|
|
161
161
|
process.env.NEUROLINK_DEBUG = 'false';
|
|
162
162
|
}
|
|
163
163
|
// Keep existing quiet middleware
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Universal AI Development Platform with external MCP server integration, multi-provider support, and professional CLI. Connect to 65+ MCP servers for filesystem, GitHub, database operations, and more. Build, test, and deploy AI applications with OpenAI, Anthropic, Google Vertex AI, and AWS Bedrock.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Juspay Technologies",
|