@juspay/neurolink 13.10.3 → 13.10.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.
@@ -2882,9 +2882,9 @@
2882
2882
  {"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":""}},
2883
2883
  {"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":""}},
2884
2884
  {"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":""}},
2885
- {"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 nine 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 and hitl:timeout to\ngetEventEmitter().\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\nApproval Workflows\n\nThe target design supports both synchronous (blocking) and asynchronous (non-blocking) approval patterns. Today only the blocking, event-based flow under \"Currently available\" exists:\n\nSynchronous Approval (Blocking) (Planned)\n\nAI operation pauses until human approves or rejects:\n\nUse cases:\nReal-time operations requiring immediate decision\nInteractive applications with user present\nHigh-risk actions requiring instant validation\n\nAsynchronous Approval (Non-blocking) (Planned)\n\nAI operation returns pending status, continues when approved:\n\nUse cases:\nBatch processing workflows\nOperations requiring expert review (takes time)\nMulti-level approval chains\nIntegration with ticketing systems (Jira, ServiceNow)\nReview Triggers\n\nConfigure when human review is required:\n\nConfidence Threshold Trigger (Planned)\n\nAutomatically request review when AI confidence is low:\n\nTool-Specific Rules (Planned)\n\nToday, list the names in dangerousActions. It matches case-insensitive\nsubstrings of the tool name, not exact names; use a customRules c","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"","lvl3":""}},
2885
+ {"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 ten 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 and hitl:timeout to\ngetEventEmitter().\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, so list the\ntool names in dangerousActions if those calls must be confirmed too. With\nHITL disabled, 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\nApproval Workflows\n\nThe target design supports both synchronous (blocking) and asynchronous (non-blocking) approval patterns. Today only the blocking, event-based flow under \"Currently available\" exists:\n\nSynchronous Approval (Blocking) (Planned)\n\nAI operation pauses until human approves or rejects:\n\nUse cases:\nReal-time operations requiring immedi","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"","lvl3":""}},
2886
2886
  {"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":""}},
2887
- {"objectID":"3e51c59f3c7b66d5d0827896808bc094566b2e937ca0e197111d8c4f73b8ea59","title":"Currently available","url":"/docs/features/enterprise-hitl#currently-available","content":"HITLConfig has exactly these nine 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 and hitl:timeout to\ngetEventEmitter().\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.","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Currently available","lvl3":""}},
2887
+ {"objectID":"3e51c59f3c7b66d5d0827896808bc094566b2e937ca0e197111d8c4f73b8ea59","title":"Currently available","url":"/docs/features/enterprise-hitl#currently-available","content":"HITLConfig has exactly these ten 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 and hitl:timeout to\ngetEventEmitter().\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, so list the\ntool names in dangerousActions if those calls must be confirmed too. With\nHITL disabled, 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.","hierarchy":{"lvl0":"Features","lvl1":"Enterprise Human-in-the-Loop System","lvl2":"Currently available","lvl3":""}},
2888
2888
  {"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":""}},
2889
2889
  {"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":""}},
2890
2890
  {"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":""}},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "13.10.3",
3
+ "version": "13.10.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": {
@@ -263,6 +263,7 @@
263
263
  "test:auth": "pnpm exec tsx test/continuous-test-suite-auth.ts",
264
264
  "test:autoresearch": "pnpm exec tsx test/continuous-test-suite-autoresearch.ts",
265
265
  "test:codex-quota": "svelte-kit sync && vitest run test/codex-quota-observability.test.ts",
266
+ "test:optional-quota-windows": "pnpm exec tsx test/continuous-test-suite-proxy-optional-quota-windows.ts",
266
267
  "test:agents-live": "tsx test/continuous-test-agents-live.ts",
267
268
  "test:tool-routing-cli": "pnpm exec tsx test/continuous-test-suite-tool-routing-cli.ts",
268
269
  "test:tool-dedup": "pnpm exec tsx test/continuous-test-suite-tool-dedup.ts",
@@ -529,8 +530,8 @@
529
530
  }
530
531
  },
531
532
  "dependencies": {
532
- "@anthropic-ai/sdk": "0.102.0",
533
- "@anthropic-ai/vertex-sdk": "0.16.0",
533
+ "@anthropic-ai/sdk": "1.4.0",
534
+ "@anthropic-ai/vertex-sdk": "1.1.1",
534
535
  "@aws-sdk/types": "3.973.7",
535
536
  "@cfworker/json-schema": "4.1.1",
536
537
  "@google/genai": "2.31.0",