@juspay/neurolink 8.2.0 → 8.3.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.
- package/CHANGELOG.md +6 -0
- package/README.md +12 -3
- package/dist/cli/loop/conversationSelector.js +4 -0
- package/dist/cli/loop/session.js +27 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [8.3.0](https://github.com/juspay/neurolink/compare/v8.2.0...v8.3.0) (2025-11-28)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- **(cli):** make stream the default command in loop mode ([7aeb1d7](https://github.com/juspay/neurolink/commit/7aeb1d790e1b103b5fc1889e21431e9c7b9dcf5f))
|
|
6
|
+
|
|
1
7
|
## [8.2.0](https://github.com/juspay/neurolink/compare/v8.1.0...v8.2.0) (2025-11-25)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/README.md
CHANGED
|
@@ -211,15 +211,24 @@ npx @juspay/neurolink loop
|
|
|
211
211
|
# Start the interactive session
|
|
212
212
|
$ npx @juspay/neurolink loop
|
|
213
213
|
|
|
214
|
-
neurolink » set provider google-ai
|
|
214
|
+
neurolink » /set provider google-ai
|
|
215
215
|
✓ provider set to google-ai
|
|
216
216
|
|
|
217
|
-
neurolink » set temperature 0.8
|
|
217
|
+
neurolink » /set temperature 0.8
|
|
218
218
|
✓ temperature set to 0.8
|
|
219
219
|
|
|
220
|
-
neurolink »
|
|
220
|
+
neurolink » Tell me a fun fact about space
|
|
221
|
+
|
|
221
222
|
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.
|
|
222
223
|
|
|
224
|
+
# Use "/" for CLI commands
|
|
225
|
+
neurolink » /generate "Draft a haiku"
|
|
226
|
+
...
|
|
227
|
+
|
|
228
|
+
# Use "//" to escape prompts starting with "/"
|
|
229
|
+
neurolink » //what is /usr/bin used for?
|
|
230
|
+
...
|
|
231
|
+
|
|
223
232
|
# Exit the session
|
|
224
233
|
neurolink » exit
|
|
225
234
|
```
|
|
@@ -121,6 +121,10 @@ export class ConversationSelector {
|
|
|
121
121
|
if (conversation &&
|
|
122
122
|
conversation.messages &&
|
|
123
123
|
conversation.messages.length > 0) {
|
|
124
|
+
// Only include conversations with session IDs prefixed with "NL_"
|
|
125
|
+
if (!conversation.sessionId?.startsWith("NL_")) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
124
128
|
return this.createConversationSummary(conversation);
|
|
125
129
|
}
|
|
126
130
|
return null;
|
package/dist/cli/loop/session.js
CHANGED
|
@@ -81,14 +81,31 @@ export class LoopSession {
|
|
|
81
81
|
if (!command) {
|
|
82
82
|
continue;
|
|
83
83
|
}
|
|
84
|
-
//
|
|
85
|
-
if (
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
// Save command to history
|
|
85
|
+
if (command && command.trim()) {
|
|
86
|
+
this.commandHistory.unshift(command);
|
|
87
|
+
await saveCommandToHistory(command);
|
|
88
|
+
}
|
|
89
|
+
let processedCommand;
|
|
90
|
+
if (command.startsWith("//")) {
|
|
91
|
+
// Escape sequence - treat as stream with single /
|
|
92
|
+
processedCommand = ["stream", command.slice(1)];
|
|
93
|
+
}
|
|
94
|
+
else if (command.startsWith("/")) {
|
|
95
|
+
// Explicit CLI command: remove "/" prefix
|
|
96
|
+
processedCommand = command.slice(1).trim();
|
|
97
|
+
if (!processedCommand) {
|
|
98
|
+
logger.always(chalk.red("Type 'help' for available commands."));
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
// Handle session variable commands and skip further processing
|
|
102
|
+
if (await this.handleSessionCommands(processedCommand)) {
|
|
103
|
+
continue;
|
|
90
104
|
}
|
|
91
|
-
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
// Default: treat as stream command with array format
|
|
108
|
+
processedCommand = ["stream", command];
|
|
92
109
|
}
|
|
93
110
|
// Execute the command
|
|
94
111
|
// The .fail() handler in cli.ts is now session-aware and will
|
|
@@ -102,16 +119,11 @@ export class LoopSession {
|
|
|
102
119
|
throw err || new Error(msg);
|
|
103
120
|
})
|
|
104
121
|
.exitProcess(false)
|
|
105
|
-
.parse(
|
|
106
|
-
// Save command to history (both memory and file)
|
|
107
|
-
if (command && command.trim()) {
|
|
108
|
-
this.commandHistory.unshift(command);
|
|
109
|
-
await saveCommandToHistory(command);
|
|
110
|
-
}
|
|
122
|
+
.parse(processedCommand);
|
|
111
123
|
}
|
|
112
124
|
catch (error) {
|
|
113
|
-
//
|
|
114
|
-
handleError(error, "
|
|
125
|
+
// Handle command execution errors gracefully
|
|
126
|
+
handleError(error, "Command execution failed");
|
|
115
127
|
}
|
|
116
128
|
}
|
|
117
129
|
// Cleanup on exit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
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",
|