@juspay/neurolink 12.32.3 → 12.34.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +6 -2
  2. package/dist/adapters/providerImageAdapter.js +13 -0
  3. package/dist/browser/neurolink.min.js +19 -19
  4. package/dist/constants/contextWindows.js +28 -0
  5. package/dist/constants/enums.d.ts +21 -0
  6. package/dist/constants/enums.js +30 -0
  7. package/dist/constants/tokens.d.ts +3 -0
  8. package/dist/constants/tokens.js +3 -0
  9. package/dist/evaluation/EvaluatorFactory.js +3 -3
  10. package/dist/evaluation/EvaluatorRegistry.js +1 -1
  11. package/dist/evaluation/ragasEvaluator.js +1 -1
  12. package/dist/middleware/utils/guardrailsUtils.js +1 -1
  13. package/dist/models/manifests/anthropic.js +33 -1
  14. package/dist/providers/catalog/api-route.json +2 -2
  15. package/dist/providers/catalog/loader.js +5 -0
  16. package/dist/providers/catalog/mistral.json +2 -2
  17. package/dist/providers/catalog/xai.json +17 -3
  18. package/dist/providers/configuredOpenAICompat.d.ts +20 -2
  19. package/dist/providers/configuredOpenAICompat.js +22 -2
  20. package/dist/providers/googleVertex/client.js +0 -2
  21. package/dist/providers/litellm/client.js +2 -2
  22. package/dist/providers/openAI/client.js +1 -1
  23. package/dist/providers/openRouter/client.js +1 -1
  24. package/dist/types/providerCatalog.d.ts +10 -0
  25. package/dist/types/providers.d.ts +20 -0
  26. package/dist/utils/modelChoices.js +0 -9
  27. package/dist/utils/pricing.js +5 -0
  28. package/dist/utils/providerHealth.js +7 -9
  29. package/dist/utils/tokenLimits.js +9 -0
  30. package/dist/workflow/workflows/multiJudgeWorkflow.js +2 -2
  31. package/docs-site/static/search-index.json +16 -16
  32. package/package.json +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "12.32.3",
3
+ "version": "12.34.0",
4
4
  "packageManager": "pnpm@10.15.1",
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": {
@@ -108,6 +108,7 @@
108
108
  "test:error-classification-e2e": "pnpm exec tsx test/continuous-test-suite-error-classification-e2e.ts",
109
109
  "test:error-classifier-contract": "pnpm exec tsx test/continuous-test-suite-error-classifier-contract.ts",
110
110
  "test:bedrock-inference-profile": "pnpm exec tsx test/continuous-test-suite-bedrock-inference-profile.ts",
111
+ "test:retired-model-defaults": "pnpm exec tsx test/continuous-test-suite-retired-model-defaults.ts",
111
112
  "test:loop-engine": "pnpm exec tsx test/continuous-test-suite-loop-engine.ts",
112
113
  "test:middleware": "pnpm exec tsx test/continuous-test-suite-middleware.ts",
113
114
  "test:stream-middleware": "pnpm exec tsx test/continuous-test-suite-stream-middleware.ts",
@@ -189,7 +190,7 @@
189
190
  "// 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)": "",
190
191
  "test:tool-routing": "pnpm exec tsx test/continuous-test-suite-tool-routing.ts",
191
192
  "test:tool-routing-semantic": "pnpm exec tsx test/continuous-test-suite-tool-routing-semantic.ts",
192
- "test:unit": "pnpm run test:bugfixes && pnpm run test:mcp:infra && 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:model-not-found-retryable && pnpm run test:archive:security && 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",
193
+ "test:unit": "pnpm run test:bugfixes && pnpm run test:mcp:infra && 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:model-not-found-retryable && pnpm run test:archive:security && 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",
193
194
  "// CI tier — live providers, runs only when API keys are present (test:credentials and test:dynamic make real provider calls when keys are set, so they live here, not in test:unit; test:matrix, a different suite covering the full provider capability matrix, runs nightly via .github/workflows/live-matrix.yml — test:providers itself is still only wired into test:live, not any GitHub Actions workflow)": "",
194
195
  "test:live": "pnpm run test:providers && pnpm run test:mcp:http && pnpm run test:mcp:sdk && pnpm run test:mcp:cli && pnpm run test:observability && pnpm run test:context && pnpm run test:memory && pnpm run test:tool-reliability && pnpm run test:evaluation && pnpm run test:autoresearch && pnpm run test:credentials && pnpm run test:dynamic",
195
196
  "// CI tier — product output (image/video/TTS/PPT) — costs $$ per run (not wired into any GitHub Actions workflow as of this comment; run manually or add to live-matrix.yml if nightly coverage is needed)": "",