@juspay/neurolink 13.13.3 → 13.13.5
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 +2 -2
- package/dist/browser/neurolink.min.js +413 -413
- package/dist/core/toolRouting.js +4 -3
- package/dist/core/toolRoutingDecision.d.ts +10 -0
- package/dist/core/toolRoutingDecision.js +13 -0
- package/dist/hitl/hitlManager.js +1 -0
- package/dist/hitl/toolCallConfirmation.d.ts +8 -0
- package/dist/hitl/toolCallConfirmation.js +12 -0
- package/dist/mcp/batching/requestBatcher.d.ts +1 -1
- package/dist/mcp/batching/requestBatcher.js +8 -4
- package/dist/mcp/toolRegistry.js +9 -4
- package/dist/neurolink.d.ts +7 -0
- package/dist/neurolink.js +156 -10
- package/dist/providers/systemOneDecision.js +33 -6
- package/dist/proxy/proxyFetch.js +21 -2
- package/dist/types/decision.d.ts +14 -0
- package/dist/types/hitl.d.ts +8 -0
- package/dist/types/mcp.d.ts +3 -1
- package/docs-site/static/search-index.json +3 -3
- package/package.json +2 -2
|
@@ -2885,9 +2885,9 @@
|
|
|
2885
2885
|
{"objectID":"0de66cb24e860808d3967922706cb8f4c543cf24b9aa150e96a8b7d48788793f","title":"Environment Variables","url":"/docs/features/embeddings#environment-variables","content":"| Variable | Provider(s) | Description |\n| --------------------------- | ------------------------------- | ----------------------------------------------------------------------- |\n| OPENAI_EMBEDDING_MODEL | OpenAI | Override OpenAI default embedding model |\n| GOOGLE_AI_EMBEDDING_MODEL | Google AI Studio | Override AI Studio default embedding model |\n| VERTEX_EMBEDDING_MODEL | Google Vertex | Override Vertex default embedding model (default: text-embedding-004) |\n| GOOGLE_EMBEDDING_MODEL | Google AI Studio, Google Vertex | Shared fallback for Google providers |\n| BEDROCK_EMBEDDING_MODEL | Amazon Bedrock | Override Bedrock default embedding model |\n| AWS_EMBEDDING_MODEL | Amazon Bedrock | Alternative Bedrock env var |\n| VOYAGE_MODEL | Voyage | Override the provider's default embedding model |\n| JINA_MODEL | Jina | Override the provider's default embedding model |\n| OLLAMA_EMBEDDING_MODEL | Ollama | Locally available embedding model |\n| LITELLM_EMBEDDING_MODEL | LiteLLM | Embedding model or deployment served by the gateway |\n| NEUROLINK_EMBEDDING_MODEL | All (CLI RAG only) | Global override for RAG CLI commands |","hierarchy":{"lvl0":"Features","lvl1":"Embeddings","lvl2":"Environment Variables","lvl3":""}},
|
|
2886
2886
|
{"objectID":"2aeebbce7d7d32d83443815b6e956d40b7482158a0ad88582503606c264d8f69","title":"Key Files","url":"/docs/features/embeddings#key-files","content":"| File | Purpose |\n| -------------------------------------- | ------------------------------------------------------------------------------ |\n| src/lib/core/baseProvider.ts | Default embed() / embedMany() stubs |\n| src/lib/providers/openAI.ts | OpenAI embedding implementation |\n| src/lib/providers/googleAiStudio.ts | Google AI Studio embedding implementation |\n| src/lib/providers/googleVertex.ts | Google Vertex embedding implementation |\n| src/lib/providers/amazonBedrock.ts | Amazon Bedrock embedding implementation |\n| src/lib/server/routes/agentRoutes.ts | Server /embed and /embed-many routes |\n| src/lib/server/utils/validation.ts | EmbedRequestSchema, EmbedManyRequestSchema |\n| src/lib/server/types.ts | EmbedRequest, EmbedResponse, EmbedManyRequest, EmbedManyResponse types |\n| src/lib/types/providers.ts | AIProvider type with embedding methods |","hierarchy":{"lvl0":"Features","lvl1":"Embeddings","lvl2":"Key Files","lvl3":""}},
|
|
2887
2887
|
{"objectID":"7dc8cee91fc8da6885116ce742319dbaced7f61b1a073493131e7bcf566e43e7","title":"See Also","url":"/docs/features/embeddings#see-also","content":"RAG Document Processing Guide -- end-to-end RAG pipelines using embeddings\nSDK API Reference -- SDK API reference","hierarchy":{"lvl0":"Features","lvl1":"Embeddings","lvl2":"See Also","lvl3":""}},
|
|
2888
|
-
{"objectID":"d4f8720f9bb7fb3901fbd2263aabda49347af9cc64470e2596d0e244f6e21b71","title":"Enterprise Human-in-the-Loop System","url":"/docs/features/enterprise-hitl","content":"Enterprise Human-in-the-Loop System\n\nSince: v7.39.0 | Availability: SDK\n\nTreat every code sample below as the target API unless it appears in\n\"Currently available\" immediately after this box. A heading marked\n(Planned) has examples that use configuration keys or behaviour that do not\nexist, and (Planned) is not a promise of a date. The sections under \"Quick\nStart (5 Minutes)\" are covered by that heading's own label.\n\nNone of requireApproval, reviewCallback, statusCallback, mode,\nconfidenceThreshold, contentPatterns, escalationPolicy or the object form\nof auditLog exists in src/lib/types/hitl.ts or is handled by\nsrc/lib/hitl/hitlManager.ts. validateConfig does not reject unknown keys\neither, so a config copied from this page is accepted silently and every one\nof those keys is dropped — approval gates that never fire, with no error.\n\nThat includes the compliance sections. The HIPAA / SOC2 / GDPR examples show an\nauditLog storage backend and an escalationPolicy that do not exist; do not\ncite them as evidence of a control.\n\nTracking: #752.\n\nCurrently available\n\nHITLConfig has exactly these
|
|
2888
|
+
{"objectID":"d4f8720f9bb7fb3901fbd2263aabda49347af9cc64470e2596d0e244f6e21b71","title":"Enterprise Human-in-the-Loop System","url":"/docs/features/enterprise-hitl","content":"Enterprise Human-in-the-Loop System\n\nSince: v7.39.0 | Availability: SDK\n\nTreat every code sample below as the target API unless it appears in\n\"Currently available\" immediately after this box. A heading marked\n(Planned) has examples that use configuration keys or behaviour that do not\nexist, and (Planned) is not a promise of a date. The sections under \"Quick\nStart (5 Minutes)\" are covered by that heading's own label.\n\nNone of requireApproval, reviewCallback, statusCallback, mode,\nconfidenceThreshold, contentPatterns, escalationPolicy or the object form\nof auditLog exists in src/lib/types/hitl.ts or is handled by\nsrc/lib/hitl/hitlManager.ts. validateConfig does not reject unknown keys\neither, so a config copied from this page is accepted silently and every one\nof those keys is dropped — approval gates that never fire, with no error.\n\nThat includes the compliance sections. The HIPAA / SOC2 / GDPR examples show an\nauditLog storage backend and an escalationPolicy that do not exist; do not\ncite them as evidence of a control.\n\nTracking: #752.\n\nCurrently available\n\nHITLConfig has exactly these eleven keys (see src/lib/types/hitl.ts).\nAnything else on this page is not implemented.\n\ndangerousActions is required whenever enabled is true; omitting it throws\nHITLConfigurationError from the NeuroLink constructor. auditLogging writes\neach request and decision to the NeuroLink logger at info level. Entries include\nthe full tool arguments, so redact secrets and personal data at the logger sink.\nallowArgumentModification is copied into the request event as\nallowModification for your approval UI; NeuroLink does not enforce it, and a\nhitl:confirmation-response that carries modifiedArguments is applied\neither way, so forward only the arguments you accept. The\nhitl:audit event is emitted on the internal HITLManager, and NeuroLink\nforwards only hitl:confirmation-request, hitl:timeout and\nhitl:cancelled to getEventEmitter(); listen for hitl:cancelled to retire\na card that was withdrawn.\n\nconfirmBuiltinTools (default true) applies only while enabled is true.\nWith it on, the built-in writeFile and executeBashCommand tools need\nconfirmation on every call the model makes during generate() or stream(),\nwhether or not dangerousActions matches them. Setting it to false removes\nonly that built-in rule: those tools are then gated like any other tool, so a\ndangerousActions keyword or a customRules match still requires approval.\nA direct neurolink.executeTool(\"writeFile\", ...) call is checked against\ndangerousActions and customRules only, not against this rule, unless the\nhost opts in with confirmDirectToolCalls: true (default false). With it on,\na direct call to writeFile or executeBashCommand (also as\ndirect.writeFile) needs confirmation like a model's call, and\nconfirmBuiltinTools: false removes that rule for direct calls too. A custom\nor external tool that reuses a built-in's name is never swept in. With HITL\ndisabled, no tool asks for confirmation.\n\nApproval is event-based, through the SDK emitter — there is no\nreviewCallback. The emitter is reached with getEventEmitter(); NeuroLink\ndoes not extend EventEmitter, so neurolink.on(...) and neurolink.emit(...)\ndo not exist:\n\nThis is the shape exercised by test/continuous-test-suite-hitl.ts. For\nproduction use today, refer to the Basic HITL Guide.\n\nExecutive Summary\n\nThis section describes the system the rest of this page is a design for. Today NeuroLink ships event-based tool approval and a log of each request and decision (see \"Currently available\"). It does not ship escalation, asynchronous review or an audit store, and it holds no HIPAA, SOC2 or GDPR certification or control.\n\nStrategic Value Proposition\nRisk Mitigation: Prevent costly AI mistakes through mandatory human checkpoints\nRegulatory Compliance (target): Produce the review records regulated industries ask for. Today auditLogging only writes a log line; compliance is the deployer's responsibility\nTrust & Transparency: Build stakeholder confidence with auditable AI decisions\nContinuous Improvement: Capture human expertise to improve AI accuracy over time\n\nWhen to Use HITL\n\nRequired for:\nMedical diagnosis and treatment recommendations\nFinancial transactions above risk thresholds\nLegal document generation and review\nCode execution in production environments\nPersonal data modification or deletion\nIrreversible operations (send email, post to social media)\n\nNot recommended for:\nRead-only operations (information retrieval)\nLow-stakes content generation\nDevelopment/testing environments\nHigh-volume, low-risk automation\n\nQuick Start (5 Minutes) — target API, not implemented\n\nThe configuration in this section is not implemented. Use\n\"Currently available\" above for a setup that works.\n\nInstallation\n\nHITL is built into NeuroLink SDK v7.39.0+. No additional packages required:\n\nBasic Configuration (Planned)\n\nMinimal setup for tool-based approval workflow:\n\nFirst Approval Request\n\nComplete end-to-end example with error handling:\n\nCore Concepts\n","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"","lvl3":""}},
|
|
2889
2889
|
{"objectID":"f657e6a12a41f2e3e4154c625d37316b34b2b05fd8733d2319733d4f25707890","title":"Enterprise Human-in-the-Loop System","url":"/docs/features/enterprise-hitl#enterprise-human-in-the-loop-system","content":"Since: v7.39.0 | Availability: SDK\n\nTreat every code sample below as the target API unless it appears in\n\"Currently available\" immediately after this box. A heading marked\n(Planned) has examples that use configuration keys or behaviour that do not\nexist, and (Planned) is not a promise of a date. The sections under \"Quick\nStart (5 Minutes)\" are covered by that heading's own label.\n\nNone of requireApproval, reviewCallback, statusCallback, mode,\nconfidenceThreshold, contentPatterns, escalationPolicy or the object form\nof auditLog exists in src/lib/types/hitl.ts or is handled by\nsrc/lib/hitl/hitlManager.ts. validateConfig does not reject unknown keys\neither, so a config copied from this page is accepted silently and every one\nof those keys is dropped — approval gates that never fire, with no error.\n\nThat includes the compliance sections. The HIPAA / SOC2 / GDPR examples show an\nauditLog storage backend and an escalationPolicy that do not exist; do not\ncite them as evidence of a control.\n\nTracking: #752.","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Enterprise Human-in-the-Loop System","lvl3":""}},
|
|
2890
|
-
{"objectID":"3e51c59f3c7b66d5d0827896808bc094566b2e937ca0e197111d8c4f73b8ea59","title":"Currently available","url":"/docs/features/enterprise-hitl#currently-available","content":"HITLConfig has exactly these
|
|
2890
|
+
{"objectID":"3e51c59f3c7b66d5d0827896808bc094566b2e937ca0e197111d8c4f73b8ea59","title":"Currently available","url":"/docs/features/enterprise-hitl#currently-available","content":"HITLConfig has exactly these eleven keys (see src/lib/types/hitl.ts).\nAnything else on this page is not implemented.\n\ndangerousActions is required whenever enabled is true; omitting it throws\nHITLConfigurationError from the NeuroLink constructor. auditLogging writes\neach request and decision to the NeuroLink logger at info level. Entries include\nthe full tool arguments, so redact secrets and personal data at the logger sink.\nallowArgumentModification is copied into the request event as\nallowModification for your approval UI; NeuroLink does not enforce it, and a\nhitl:confirmation-response that carries modifiedArguments is applied\neither way, so forward only the arguments you accept. The\nhitl:audit event is emitted on the internal HITLManager, and NeuroLink\nforwards only hitl:confirmation-request, hitl:timeout and\nhitl:cancelled to getEventEmitter(); listen for hitl:cancelled to retire\na card that was withdrawn.\n\nconfirmBuiltinTools (default true) applies only while enabled is true.\nWith it on, the built-in writeFile and executeBashCommand tools need\nconfirmation on every call the model makes during generate() or stream(),\nwhether or not dangerousActions matches them. Setting it to false removes\nonly that built-in rule: those tools are then gated like any other tool, so a\ndangerousActions keyword or a customRules match still requires approval.\nA direct neurolink.executeTool(\"writeFile\", ...) call is checked against\ndangerousActions and customRules only, not against this rule, unless the\nhost opts in with confirmDirectToolCalls: true (default false). With it on,\na direct call to writeFile or executeBashCommand (also as\ndirect.writeFile) needs confirmation like a model's call, and\nconfirmBuiltinTools: false removes that rule for direct calls too. A custom\nor external tool that reuses a built-in's name is never swept in. With HITL\ndisabled, no tool asks for confirmation.\n\nApproval is event-based, through the SDK emitter — there is no\nreviewCallback.","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Currently available","lvl3":""}},
|
|
2891
2891
|
{"objectID":"cdc9943cec3f7205dd828f820d0811c083a184041806fdec1ab59f96190d9520","title":"Executive Summary","url":"/docs/features/enterprise-hitl#executive-summary","content":"This section describes the system the rest of this page is a design for. Today NeuroLink ships event-based tool approval and a log of each request and decision (see \"Currently available\"). It does not ship escalation, asynchronous review or an audit store, and it holds no HIPAA, SOC2 or GDPR certification or control.","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Executive Summary","lvl3":""}},
|
|
2892
2892
|
{"objectID":"93c851f60f7be9ce5fa8ad235b8ff9c30bc02df6b697a3d8067c863c0a09c316","title":"Strategic Value Proposition","url":"/docs/features/enterprise-hitl#strategic-value-proposition","content":"Risk Mitigation: Prevent costly AI mistakes through mandatory human checkpoints\nRegulatory Compliance (target): Produce the review records regulated industries ask for. Today auditLogging only writes a log line; compliance is the deployer's responsibility\nTrust & Transparency: Build stakeholder confidence with auditable AI decisions\nContinuous Improvement: Capture human expertise to improve AI accuracy over time","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Strategic Value Proposition","lvl3":""}},
|
|
2893
2893
|
{"objectID":"2fde0188cc74ae4920ab9ba5ee8002de8276654a8c4ca8e8ff10ab3120e35b57","title":"When to Use HITL","url":"/docs/features/enterprise-hitl#when-to-use-hitl","content":"Required for:\nMedical diagnosis and treatment recommendations\nFinancial transactions above risk thresholds\nLegal document generation and review\nCode execution in production environments\nPersonal data modification or deletion\nIrreversible operations (send email, post to social media)\n\nNot recommended for:\nRead-only operations (information retrieval)\nLow-stakes content generation\nDevelopment/testing environments\nHigh-volume, low-risk automation","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"When to Use HITL","lvl3":""}},
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
{"objectID":"4d86f092ca7e6b372a961736d886b359fa75e092f709de1fc0632865629f0e19","title":"Security Features","url":"/docs/features/hitl#security-features","content":"One-time permissions: Each approval works for exactly one action\nNo reuse: AI cannot reuse old permissions for new actions\nAutomatic reset: Permission flag clears immediately after use\nFail-safe: Defaults to requiring permission when in doubt","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Security Features","lvl3":""}},
|
|
3046
3046
|
{"objectID":"a0bcb2831207c4628365c2a9a0c21588b0c9d3ccda0f793b63dd9bbff7d63467","title":"Built-in tools","url":"/docs/features/hitl#built-in-tools","content":"HITL applies to the built-in tools (readFile, writeFile, listDirectory,\nanalyzeCSV, calculateMath, getCurrentTime, websearchGrounding and the\nopt-in executeBashCommand) exactly as it applies to tools you register:\ndangerousActions keywords and customRules are matched against the tool\nname on every model-driven call. Before the 2026-10 security audit fix (finding\nC3) built-in tools bypassed HITL entirely — only tools executed through the\ntool registry were gated — so a\nprompt-injected model could write files or, with the bash tool enabled, run\nshell commands with no confirmation, while the bash tool's own description\nclaimed otherwise.\n\nTwo built-ins change the machine and are confirmed on every call while HITL\nis enabled, whatever dangerousActions lists: writeFile and\nexecuteBashCommand. To gate them by keywords only, like every other tool,\nset confirmBuiltinTools: false:\n\nA denied built-in call is reported to the model as a failed tool call\n(Built-in tool execution rejected by user: <reason>); the model sees the denial and\ncan continue without the side effect. A confirmation that returns\nmodifiedArguments runs the tool with those arguments. The confirmation\nrequest carries serverId: \"direct\" for a built-in tool.\n\nPer-call tools passed through generate({ tools }) are the host's own code\nand are not gated by HITL; wrap their execute yourself if they need it.","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Built-in tools","lvl3":""}},
|
|
3047
3047
|
{"objectID":"7854f3abc1202ff2f15b90ddfd8c29a88a2e6e71aa843e416f760a43ab570dfb","title":"Event Types","url":"/docs/features/hitl#event-types","content":"All HITL events ride the SDK emitter returned by\nneurolink.getEventEmitter(); emitter below is that object.\n\nConfirmation Request Event (hitl:confirmation-request):\n\nConfirmation Response (emit from your app):\n\nTimeout Event (hitl:timeout):\n\nCancelled Event (hitl:cancelled): a pending confirmation was withdrawn\nbecause the call that asked was cancelled (its abortSignal fired, for\nexample the turn was aborted). Retire the card in your UI; an answer sent for\nit is ignored.","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Event Types","lvl3":""}},
|
|
3048
|
-
{"objectID":"3e34634f989373951398483eb857081283b841ccc417e6db95768d3bd82649f9","title":"Confirmation and the call's limits","url":"/docs/features/hitl#confirmation-and-the-calls-limits","content":"A call that needs confirmation is confirmed once, before its attempt timeout,\nits retries and the circuit breaker start, and nothing runs until the human\napproves or the card times out under the rule below. A denial or a\ncancellation is final: the call returns a refusal and is not retried. A card\ntimeout is also final, unless autoApproveOnTimeout is enabled and the tool\nis not in autoApproveExclusions: then the timeout approves the call without\na human response, and it runs like any approved call. Once approved, a failed\nor timed-out attempt is retried without a new approval, so a tool with side\neffects can run more than once. A model loop's per-tool deadline does\nnot run while the card waits; approval resumes it with the time that was\nleft.\n\nThe rule applies to the tools of the instance and of its worker instances\n(createWorkerInstance, and so runIsolatedAgent, registerAgentTool and\ndelegate_task): registered tools, external MCP tools and NeuroLink's\nbuilt-in tools, matched by name (for example readFile by\ndangerousActions: [\"read\"]; writeFile and executeBashCommand are\nconfirmed on every call a model loop makes unless confirmBuiltinTools is\nfalse, see Built-in tools). Registered and built-in tools\nare confirmed by the HITL manager the tool registry holds: the instance's own,\nunless another manager was installed there\n(getToolRegistry().setHITLManager(), or a worker with HITL of its own, see\nbelow). External MCP tools are confirmed by the external server manager's: the\ninstance's own, or with none the registry's. A worker with no HITL of its own\nshares its host's registry, so its calls are confirmed by the manager that\nregistry holds, normally the host's, and their cards reach that manager\nowner's emitter. When an agent tool's call ends, through its attempt timeout\nor the caller's abort, its worker run is stopped and any card it raised is\nwithdrawn. Agent-tool calls are never batched.","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Confirmation and the call's limits","lvl3":""}},
|
|
3048
|
+
{"objectID":"3e34634f989373951398483eb857081283b841ccc417e6db95768d3bd82649f9","title":"Confirmation and the call's limits","url":"/docs/features/hitl#confirmation-and-the-calls-limits","content":"A call that needs confirmation is confirmed once, before its attempt timeout,\nits retries and the circuit breaker start, and nothing runs until the human\napproves or the card times out under the rule below. A denial or a\ncancellation is final: the call returns a refusal and is not retried. A card\ntimeout is also final, unless autoApproveOnTimeout is enabled and the tool\nis not in autoApproveExclusions: then the timeout approves the call without\na human response, and it runs like any approved call. Once approved, a failed\nor timed-out attempt is retried without a new approval, so a tool with side\neffects can run more than once. A model loop's per-tool deadline does\nnot run while the card waits; approval resumes it with the time that was\nleft.\n\nThe rule applies to the tools of the instance and of its worker instances\n(createWorkerInstance, and so runIsolatedAgent, registerAgentTool and\ndelegate_task): registered tools, external MCP tools and NeuroLink's\nbuilt-in tools, matched by name (for example readFile by\ndangerousActions: [\"read\"]; writeFile and executeBashCommand are\nconfirmed on every call a model loop makes unless confirmBuiltinTools is\nfalse, and on a direct executeTool() call only with confirmDirectToolCalls: true, see Built-in tools). Registered and built-in tools\nare confirmed by the HITL manager the tool registry holds: the instance's own,\nunless another manager was installed there\n(getToolRegistry().setHITLManager(), or a worker with HITL of its own, see\nbelow). External MCP tools are confirmed by the external server manager's: the\ninstance's own, or with none the registry's. A worker with no HITL of its own\nshares its host's registry, so its calls are confirmed by the manager that\nregistry holds, normally the host's, and their cards reach that manager\nowner's emitter. When an agent tool's call ends, through its attempt timeout\nor the caller's abort, its worker run is stopped and any card it raised is\nwithdrawn. Agent-tool calls are never batched.","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Confirmation and the call's limits","lvl3":""}},
|
|
3049
3049
|
{"objectID":"5068502ff92414daee273da8919813c835390458398854e7834845b1a9b7bdef","title":"Problem: Tool executes without asking for permission","url":"/docs/features/hitl#problem-tool-executes-without-asking-for-permission","content":"Cause: Tool not marked with requiresConfirmation: true\nSolution:\nAdd this boolean flag to any tool that performs risky operations","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Problem: Tool executes without asking for permission","lvl3":""}},
|
|
3050
3050
|
{"objectID":"385ab382fc18fbd69cc1e5d7da2909e9e5c70c897f97f372b61946a0273d456a","title":"Problem: AI keeps asking for confirmation repeatedly","url":"/docs/features/hitl#problem-ai-keeps-asking-for-confirmation-repeatedly","content":"Cause: Confirmation responses not being sent or sent with wrong confirmationId\nSolution:\nExtract confirmation ID from the request event\nAlways respond to every confirmation request\nCritical: Use the same confirmationId from the request","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Problem: AI keeps asking for confirmation repeatedly","lvl3":""}},
|
|
3051
3051
|
{"objectID":"09de33ea71681ebc227efede41ba43f241d943ed4b4628befc274d99b677b587","title":"Problem: Confirmation dialog doesn't show","url":"/docs/features/hitl#problem-confirmation-dialog-doesnt-show","content":"Cause: Not listening to hitl:confirmation-request event\nSolution:\nRegister the event handler early in your application startup\nAll subsequent tool executions will trigger confirmations when needed","hierarchy":{"lvl0":"Features","lvl1":"Human-in-the-Loop (HITL) Workflows","lvl2":"Problem: Confirmation dialog doesn't show","lvl3":""}},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juspay/neurolink",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.5",
|
|
4
4
|
"packageManager": "pnpm@10.34.9+sha512.f49b5a8ea0fdedb44bb3c0c1d6575092a53c2950d95b7ad15df11f17974877a2de3a01c07e934e9b28ce716e51c09a94962c7306d09be2e1e4b18a8c8762fd32",
|
|
5
5
|
"description": "The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002/call) for routing, tool selection and context budgeting. MCP-native (4 transports), voice TTS/STT/realtime, RAG, agents, memory, compaction, 9 observability exporters. OpenAI · Anthropic · Gemini · Bedrock · Azure · Ollama · TypeSafe Jev and more.",
|
|
6
6
|
"author": {
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
"test:reasoning-parity-live": "pnpm exec tsx test/continuous-test-suite-reasoning-parity-live.ts",
|
|
285
285
|
"test:ci": "pnpm run test && pnpm run test:client && pnpm run test:hitl",
|
|
286
286
|
"// CI tier — fast, no live AI calls, safe for every commit (test:unit; also see the separate provider-safety-net CI job, which runs build + test:providers-mocked + test:provider-structure + test:error-classifier-contract on every PR)": "",
|
|
287
|
-
"test:tool-routing": "pnpm exec tsx test/continuous-test-suite-tool-routing.ts && pnpm run test:jev-routing-audit",
|
|
287
|
+
"test:tool-routing": "pnpm exec tsx test/continuous-test-suite-tool-routing.ts && pnpm run test:jev-routing-audit && pnpm exec tsx test/continuous-test-suite-tool-routing-decide-timeout.ts",
|
|
288
288
|
"test:jev-routing-audit": "pnpm exec tsx test/continuous-test-suite-jev-routing-audit.ts && pnpm exec tsx test/continuous-test-suite-jev-routing-audit-privacy.ts",
|
|
289
289
|
"test:tool-routing-semantic": "pnpm exec tsx test/continuous-test-suite-tool-routing-semantic.ts",
|
|
290
290
|
"test:unit": "pnpm run test:bugfixes && pnpm run test:mcp:infra && pnpm run test:mcp:registry && pnpm run test:mcp:spans && pnpm run test:tool-routing && pnpm run test:tool-routing-cli && pnpm run test:tool-dedup && pnpm run test:model-pool && pnpm run test:classifier-router && pnpm run test:tool-routing-semantic && pnpm run test:mcp-result-cache && pnpm run test:mcp-direct-name-repair && pnpm run test:mcp-breaker-resolved-errors && pnpm run test:archive:security && pnpm run test:office && pnpm run test:office:security && pnpm run test:image-exif && pnpm run test:vector-chroma && pnpm run test:vector-pgvector && pnpm run test:vector-pinecone && pnpm run test:provider-wiring && pnpm run test:docs-mcp && pnpm run test:retired-model-defaults && pnpm run test:cli-fallback && pnpm run test:embedding-response-validation && pnpm run test:xiaomi-mimo-pilot && pnpm run test:rag-bounds && pnpm run test:longcat-pilot && pnpm run test:runinfra-pilot && pnpm run test:catalog-output-ceiling && pnpm run test:package-declarations && pnpm run test:realtime-voice",
|