@juspay/neurolink 9.39.0 → 9.41.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 +12 -0
- package/dist/browser/neurolink.min.js +445 -431
- package/dist/cli/commands/task.d.ts +56 -0
- package/dist/cli/commands/task.js +835 -0
- package/dist/cli/parser.js +4 -1
- package/dist/lib/neurolink.d.ts +22 -1
- package/dist/lib/neurolink.js +195 -14
- package/dist/lib/tasks/backends/bullmqBackend.d.ts +32 -0
- package/dist/lib/tasks/backends/bullmqBackend.js +189 -0
- package/dist/lib/tasks/backends/nodeTimeoutBackend.d.ts +27 -0
- package/dist/lib/tasks/backends/nodeTimeoutBackend.js +141 -0
- package/dist/lib/tasks/backends/taskBackendRegistry.d.ts +31 -0
- package/dist/lib/tasks/backends/taskBackendRegistry.js +66 -0
- package/dist/lib/tasks/errors.d.ts +31 -0
- package/dist/lib/tasks/errors.js +18 -0
- package/dist/lib/tasks/store/fileTaskStore.d.ts +43 -0
- package/dist/lib/tasks/store/fileTaskStore.js +179 -0
- package/dist/lib/tasks/store/redisTaskStore.d.ts +42 -0
- package/dist/lib/tasks/store/redisTaskStore.js +189 -0
- package/dist/lib/tasks/taskExecutor.d.ts +21 -0
- package/dist/lib/tasks/taskExecutor.js +166 -0
- package/dist/lib/tasks/taskManager.d.ts +60 -0
- package/dist/lib/tasks/taskManager.js +393 -0
- package/dist/lib/tasks/tools/taskTools.d.ts +135 -0
- package/dist/lib/tasks/tools/taskTools.js +274 -0
- package/dist/lib/types/configTypes.d.ts +3 -0
- package/dist/lib/types/generateTypes.d.ts +42 -0
- package/dist/lib/types/index.d.ts +2 -1
- package/dist/lib/types/streamTypes.d.ts +7 -0
- package/dist/lib/types/taskTypes.d.ts +275 -0
- package/dist/lib/types/taskTypes.js +37 -0
- package/dist/neurolink.d.ts +22 -1
- package/dist/neurolink.js +195 -14
- package/dist/tasks/backends/bullmqBackend.d.ts +32 -0
- package/dist/tasks/backends/bullmqBackend.js +188 -0
- package/dist/tasks/backends/nodeTimeoutBackend.d.ts +27 -0
- package/dist/tasks/backends/nodeTimeoutBackend.js +140 -0
- package/dist/tasks/backends/taskBackendRegistry.d.ts +31 -0
- package/dist/tasks/backends/taskBackendRegistry.js +65 -0
- package/dist/tasks/errors.d.ts +31 -0
- package/dist/tasks/errors.js +17 -0
- package/dist/tasks/store/fileTaskStore.d.ts +43 -0
- package/dist/tasks/store/fileTaskStore.js +178 -0
- package/dist/tasks/store/redisTaskStore.d.ts +42 -0
- package/dist/tasks/store/redisTaskStore.js +188 -0
- package/dist/tasks/taskExecutor.d.ts +21 -0
- package/dist/tasks/taskExecutor.js +165 -0
- package/dist/tasks/taskManager.d.ts +60 -0
- package/dist/tasks/taskManager.js +392 -0
- package/dist/tasks/tools/taskTools.d.ts +135 -0
- package/dist/tasks/tools/taskTools.js +273 -0
- package/dist/types/configTypes.d.ts +3 -0
- package/dist/types/generateTypes.d.ts +42 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/streamTypes.d.ts +7 -0
- package/dist/types/taskTypes.d.ts +275 -0
- package/dist/types/taskTypes.js +36 -0
- package/package.json +4 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for the NeuroLink TaskManager system.
|
|
3
|
+
*
|
|
4
|
+
* TaskManager provides scheduled and self-running task capabilities,
|
|
5
|
+
* enabling AI agents to execute prompts on cron, interval, or one-shot schedules.
|
|
6
|
+
*/
|
|
7
|
+
// ── Defaults ────────────────────────────────────────────
|
|
8
|
+
const THIRTY_DAYS_MS = 30 * 24 * 60 * 60 * 1000;
|
|
9
|
+
const SEVEN_DAYS_MS = 7 * 24 * 60 * 60 * 1000;
|
|
10
|
+
export const TASK_DEFAULTS = {
|
|
11
|
+
enabled: true,
|
|
12
|
+
maxTasks: 100,
|
|
13
|
+
backend: "bullmq",
|
|
14
|
+
mode: "isolated",
|
|
15
|
+
timeout: 120_000,
|
|
16
|
+
maxConcurrentRuns: 5,
|
|
17
|
+
maxRunLogs: 2000,
|
|
18
|
+
maxHistoryEntries: 200,
|
|
19
|
+
tools: true,
|
|
20
|
+
retry: {
|
|
21
|
+
maxAttempts: 3,
|
|
22
|
+
backoffMs: [30_000, 60_000, 300_000],
|
|
23
|
+
},
|
|
24
|
+
storePath: ".neurolink/tasks/tasks.json",
|
|
25
|
+
logsPath: ".neurolink/tasks/runs/",
|
|
26
|
+
redis: {
|
|
27
|
+
host: "localhost",
|
|
28
|
+
port: 6379,
|
|
29
|
+
},
|
|
30
|
+
retention: {
|
|
31
|
+
completedTTL: THIRTY_DAYS_MS,
|
|
32
|
+
failedTTL: SEVEN_DAYS_MS,
|
|
33
|
+
cancelledTTL: SEVEN_DAYS_MS,
|
|
34
|
+
runLogTTL: THIRTY_DAYS_MS,
|
|
35
|
+
},
|
|
36
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.41.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 13 providers: OpenAI, Anthropic, Google AI, AWS Bedrock, Azure, Hugging Face, Ollama, and Mistral AI.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Juspay Technologies",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"@google/genai": "^1.43.0",
|
|
201
201
|
"@google/generative-ai": "^0.24.1",
|
|
202
202
|
"@huggingface/inference": "^4.13.14",
|
|
203
|
-
"@juspay/hippocampus": "^0.1.
|
|
203
|
+
"@juspay/hippocampus": "^0.1.4",
|
|
204
204
|
"@langfuse/otel": "^5.0.1",
|
|
205
205
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
206
206
|
"@openrouter/ai-sdk-provider": "^2.2.3",
|
|
@@ -212,6 +212,8 @@
|
|
|
212
212
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
213
213
|
"adm-zip": "^0.5.16",
|
|
214
214
|
"ai": "^6.0.134",
|
|
215
|
+
"bullmq": "^5.52.2",
|
|
216
|
+
"croner": "^9.1.0",
|
|
215
217
|
"chalk": "^5.6.2",
|
|
216
218
|
"csv-parser": "^3.2.0",
|
|
217
219
|
"dotenv": "^17.3.1",
|