@juspay/neurolink 13.12.0 → 13.12.2
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 +5 -3
- package/dist/agent/agentToolRegistrar.js +3 -1
- package/dist/auth/middleware/AuthMiddleware.d.ts +1 -1
- package/dist/browser/neurolink.min.js +467 -467
- package/dist/context/fileSummarizationService.js +2 -0
- package/dist/core/baseProvider.d.ts +2 -2
- package/dist/core/loopEngine.js +20 -8
- package/dist/core/modules/ToolsManager.d.ts +11 -33
- package/dist/core/modules/ToolsManager.js +71 -99
- package/dist/core/modules/Utilities.js +6 -1
- package/dist/core/toolExecutionGuards.js +79 -11
- package/dist/evaluation/ragasEvaluator.js +2 -0
- package/dist/evaluation/scorers/llm/baseLLMScorer.js +2 -0
- package/dist/hitl/hitlErrors.d.ts +8 -0
- package/dist/hitl/hitlErrors.js +12 -0
- package/dist/hitl/hitlManager.d.ts +25 -7
- package/dist/hitl/hitlManager.js +133 -15
- package/dist/hitl/index.d.ts +1 -1
- package/dist/hitl/index.js +1 -1
- package/dist/hitl/toolCallConfirmation.d.ts +57 -0
- package/dist/hitl/toolCallConfirmation.js +296 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -1
- package/dist/mcp/externalServerManager.d.ts +33 -2
- package/dist/mcp/externalServerManager.js +68 -52
- package/dist/mcp/toolDiscoveryService.js +8 -1
- package/dist/mcp/toolRegistry.d.ts +20 -0
- package/dist/mcp/toolRegistry.js +68 -58
- package/dist/middleware/utils/guardrailsUtils.js +2 -0
- package/dist/neurolink.d.ts +114 -2
- package/dist/neurolink.js +492 -71
- package/dist/providers/amazonBedrock/client.js +23 -4
- package/dist/providers/amazonSagemaker.d.ts +1 -1
- package/dist/providers/anthropic/client.js +5 -1
- package/dist/providers/catalog/schema.d.ts +1 -1
- package/dist/providers/googleNativeGemini3/utils.js +5 -1
- package/dist/providers/openaiChatCompletionsBase.js +21 -3
- package/dist/providers/sagemaker/language-model.d.ts +2 -2
- package/dist/proxy/otelLogSink.d.ts +1 -1
- package/dist/rag/metadata/metadataExtractor.js +2 -0
- package/dist/rag/pipeline/RAGPipeline.js +4 -0
- package/dist/rag/pipeline/contextAssembly.d.ts +1 -0
- package/dist/rag/pipeline/contextAssembly.js +2 -0
- package/dist/rag/reranker/reranker.js +4 -0
- package/dist/server/utils/validation.d.ts +28 -28
- package/dist/types/hitl.d.ts +100 -8
- package/dist/types/mcp.d.ts +5 -0
- package/dist/types/providers.d.ts +23 -2
- package/dist/types/tools.d.ts +34 -9
- package/dist/utils/async/index.d.ts +2 -1
- package/dist/utils/async/index.js +2 -1
- package/dist/utils/async/pausableDeadline.d.ts +28 -0
- package/dist/utils/async/pausableDeadline.js +88 -0
- package/dist/utils/async/withTimeout.d.ts +5 -0
- package/dist/utils/async/withTimeout.js +23 -0
- package/dist/utils/errorHandling.d.ts +32 -1
- package/dist/utils/errorHandling.js +70 -18
- package/dist/utils/providerUtils.js +5 -1
- package/dist/workflow/config.d.ts +7 -7
- package/dist/workflow/core/ensembleExecutor.js +2 -0
- package/dist/workflow/core/judgeScorer.js +2 -0
- package/dist/workflow/core/responseConditioner.js +2 -0
- package/docs-site/static/search-index.json +8 -6
- package/package.json +18 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
## [13.12.
|
|
1
|
+
## [13.12.2](https://github.com/juspay/neurolink/compare/v13.12.1...v13.12.2) (2026-11-15)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- **(
|
|
5
|
+
- **(deps):** patch hono and vitest advisories in the demo and enterprise example ([f484d47](https://github.com/juspay/neurolink/commit/f484d4701375df269e13954c33ebeb13b8871443))
|
|
6
|
+
- **(hitl):** confirm a tool call once before any timer or retry ([29f54fb](https://github.com/juspay/neurolink/commit/29f54fb7f9f45f79de73c574d211cd5ef64397a7))
|
|
7
|
+
- **(landing):** ship harfbuzz hb.wasm in Vercel function so /api/og stops 500ing ([2cbbfa5](https://github.com/juspay/neurolink/commit/2cbbfa59d7326819a16803f9dbe21ee106a7ded0))
|
|
6
8
|
|
|
7
9
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
8
10
|
|
|
@@ -255,6 +255,8 @@ export function registerAgentTool(host, definition, options = {}) {
|
|
|
255
255
|
},
|
|
256
256
|
required: ["task"],
|
|
257
257
|
};
|
|
258
|
+
// Never retried: a retry would start a second worker run for the same
|
|
259
|
+
// call, as for delegate_task.
|
|
258
260
|
host.registerTool(name, {
|
|
259
261
|
name,
|
|
260
262
|
description: `Delegate to agent: ${definition.name} — ${definition.description}`,
|
|
@@ -262,7 +264,7 @@ export function registerAgentTool(host, definition, options = {}) {
|
|
|
262
264
|
execute: async (params, context) => {
|
|
263
265
|
return executeDelegation(host, registration, params, context);
|
|
264
266
|
},
|
|
265
|
-
});
|
|
267
|
+
}, { maxRetries: 0 });
|
|
266
268
|
logger.debug("[AgentToolRegistrar] Registered agent tool", {
|
|
267
269
|
name,
|
|
268
270
|
agentId: definition.id,
|
|
@@ -31,7 +31,7 @@ export declare const AuthMiddlewareError: {
|
|
|
31
31
|
readonly PROVIDER_ERROR: "AUTH_MIDDLEWARE-005";
|
|
32
32
|
readonly CONFIGURATION_ERROR: "AUTH_MIDDLEWARE-006";
|
|
33
33
|
};
|
|
34
|
-
create: (code: "
|
|
34
|
+
create: (code: "INVALID_TOKEN" | "MISSING_TOKEN" | "PROVIDER_ERROR" | "CONFIGURATION_ERROR" | "UNAUTHORIZED" | "FORBIDDEN", message: string, options?: {
|
|
35
35
|
retryable?: boolean;
|
|
36
36
|
details?: Record<string, unknown>;
|
|
37
37
|
cause?: Error;
|