@juspay/neurolink 13.12.1 → 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.
Files changed (57) hide show
  1. package/CHANGELOG.md +4 -5
  2. package/dist/agent/agentToolRegistrar.js +3 -1
  3. package/dist/browser/neurolink.min.js +467 -467
  4. package/dist/context/fileSummarizationService.js +2 -0
  5. package/dist/core/baseProvider.d.ts +2 -2
  6. package/dist/core/loopEngine.js +20 -8
  7. package/dist/core/modules/ToolsManager.d.ts +11 -33
  8. package/dist/core/modules/ToolsManager.js +71 -99
  9. package/dist/core/modules/Utilities.js +6 -1
  10. package/dist/core/toolExecutionGuards.js +79 -11
  11. package/dist/evaluation/ragasEvaluator.js +2 -0
  12. package/dist/evaluation/scorers/llm/baseLLMScorer.js +2 -0
  13. package/dist/hitl/hitlErrors.d.ts +8 -0
  14. package/dist/hitl/hitlErrors.js +12 -0
  15. package/dist/hitl/hitlManager.d.ts +25 -7
  16. package/dist/hitl/hitlManager.js +133 -15
  17. package/dist/hitl/index.d.ts +1 -1
  18. package/dist/hitl/index.js +1 -1
  19. package/dist/hitl/toolCallConfirmation.d.ts +57 -0
  20. package/dist/hitl/toolCallConfirmation.js +296 -0
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +4 -1
  23. package/dist/mcp/externalServerManager.d.ts +33 -2
  24. package/dist/mcp/externalServerManager.js +68 -52
  25. package/dist/mcp/toolDiscoveryService.js +8 -1
  26. package/dist/mcp/toolRegistry.d.ts +20 -0
  27. package/dist/mcp/toolRegistry.js +68 -58
  28. package/dist/middleware/utils/guardrailsUtils.js +2 -0
  29. package/dist/neurolink.d.ts +114 -2
  30. package/dist/neurolink.js +492 -71
  31. package/dist/providers/amazonBedrock/client.js +23 -4
  32. package/dist/providers/anthropic/client.js +5 -1
  33. package/dist/providers/googleNativeGemini3/utils.js +5 -1
  34. package/dist/providers/openaiChatCompletionsBase.js +21 -3
  35. package/dist/rag/metadata/metadataExtractor.js +2 -0
  36. package/dist/rag/pipeline/RAGPipeline.js +4 -0
  37. package/dist/rag/pipeline/contextAssembly.d.ts +1 -0
  38. package/dist/rag/pipeline/contextAssembly.js +2 -0
  39. package/dist/rag/reranker/reranker.js +4 -0
  40. package/dist/types/hitl.d.ts +100 -8
  41. package/dist/types/mcp.d.ts +5 -0
  42. package/dist/types/providers.d.ts +23 -2
  43. package/dist/types/tools.d.ts +34 -9
  44. package/dist/utils/async/index.d.ts +2 -1
  45. package/dist/utils/async/index.js +2 -1
  46. package/dist/utils/async/pausableDeadline.d.ts +28 -0
  47. package/dist/utils/async/pausableDeadline.js +88 -0
  48. package/dist/utils/async/withTimeout.d.ts +5 -0
  49. package/dist/utils/async/withTimeout.js +23 -0
  50. package/dist/utils/errorHandling.d.ts +32 -1
  51. package/dist/utils/errorHandling.js +70 -18
  52. package/dist/utils/providerUtils.js +5 -1
  53. package/dist/workflow/core/ensembleExecutor.js +2 -0
  54. package/dist/workflow/core/judgeScorer.js +2 -0
  55. package/dist/workflow/core/responseConditioner.js +2 -0
  56. package/docs-site/static/search-index.json +8 -6
  57. package/package.json +5 -1
package/CHANGELOG.md CHANGED
@@ -1,11 +1,10 @@
1
- ## [13.12.1](https://github.com/juspay/neurolink/compare/v13.12.0...v13.12.1) (2026-11-13)
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
- - **(deps):** bump hono to 4.13.16 and @hono/node-server to 2.1.6 to clear new advisories ([0518a70](https://github.com/juspay/neurolink/commit/0518a707aafd77320dd0882441fbccc409463ea7))
6
- - **(deps):** move minimatch to 11.x where the parent supports it ([2afd1b4](https://github.com/juspay/neurolink/commit/2afd1b477b9cb1a3e39b09b5a7c70efa11aafd2b))
7
- - **(deps):** patch satori and fast-xml-parser advisories ([3b3936d](https://github.com/juspay/neurolink/commit/3b3936dc6410e65aadd7c94dcb4d132bbb8f6d50))
8
- - **(landing):** serve the OG image fonts as WOFF, which satori can parse ([d475500](https://github.com/juspay/neurolink/commit/d475500e51be730cee8d87c639c52c0a5a6e855f))
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))
9
8
 
10
9
  ## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
11
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,